From c099c40ec81fe0e05e750d75a014cee0d21b2f81 Mon Sep 17 00:00:00 2001 From: gaurimadhok Date: Wed, 26 Jun 2024 21:23:17 -0700 Subject: [PATCH] Updated api version of providerhub cli to 2024-04-01-preview (#7691) * new version of providerhub cli * change uri to management.azure.com * update provider reg create test * update provider reg delete * update operations type * delete other test file * updates from release suggestions * remove generated folder * Clean up codes * fix style and test * fix linter issues * .\.azure-pipelines\ * fix linter issues * fix linter issues * add in examples * Example fix * Update setup.py --------- Co-authored-by: kai ru Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> --- src/providerhub/azext_providerhub/__init__.py | 40 +- .../{generated/_validators.py => _help.py} | 1 + src/providerhub/azext_providerhub/_params.py | 13 + .../azext_providerhub/aaz/__init__.py | 6 + .../aio => aaz/latest}/__init__.py | 14 +- .../aaz/latest/providerhub/__cmd_group.py | 23 + .../aaz/latest/providerhub/__init__.py | 11 + .../authorized_application/__cmd_group.py | 23 + .../authorized_application/__init__.py | 17 + .../authorized_application/_create.py | 329 + .../authorized_application/_delete.py | 142 + .../authorized_application/_list.py | 235 + .../authorized_application/_show.py | 235 + .../authorized_application/_update.py | 479 ++ .../authorized_application/_wait.py | 231 + .../providerhub/custom_rollout/__cmd_group.py | 23 + .../providerhub/custom_rollout/__init__.py | 18 + .../providerhub/custom_rollout/_create.py | 5456 ++++++++++++++ .../providerhub/custom_rollout/_delete.py | 146 + .../providerhub/custom_rollout/_list.py | 2087 ++++++ .../providerhub/custom_rollout/_show.py | 2091 ++++++ .../providerhub/custom_rollout/_stop.py | 140 + .../providerhub/custom_rollout/_update.py | 6145 ++++++++++++++++ .../providerhub/custom_rollout/_wait.py | 2087 ++++++ .../default_rollout/__cmd_group.py | 23 + .../providerhub/default_rollout/__init__.py | 18 + .../providerhub/default_rollout/_create.py | 5663 +++++++++++++++ .../providerhub/default_rollout/_delete.py | 146 + .../providerhub/default_rollout/_list.py | 2152 ++++++ .../providerhub/default_rollout/_show.py | 2156 ++++++ .../providerhub/default_rollout/_stop.py | 140 + .../providerhub/default_rollout/_update.py | 6382 +++++++++++++++++ .../providerhub/default_rollout/_wait.py | 2152 ++++++ .../providerhub/manifest/__cmd_group.py | 23 + .../latest/providerhub/manifest/__init__.py | 13 + .../latest/providerhub/manifest/_checkin.py | 203 + .../latest/providerhub/manifest/_generate.py | 924 +++ .../notification_registration/__cmd_group.py | 23 + .../notification_registration/__init__.py | 16 + .../notification_registration/_create.py | 313 + .../notification_registration/_delete.py | 142 + .../notification_registration/_list.py | 234 + .../notification_registration/_show.py | 234 + .../notification_registration/_update.py | 467 ++ .../providerhub/operation/__cmd_group.py | 23 + .../latest/providerhub/operation/__init__.py | 15 + .../latest/providerhub/operation/_create.py | 1105 +++ .../latest/providerhub/operation/_delete.py | 132 + .../aaz/latest/providerhub/operation/_list.py | 198 + .../latest/providerhub/operation/_update.py | 1212 ++++ .../provider_registration/__cmd_group.py | 23 + .../provider_registration/__init__.py | 18 + .../provider_registration/_create.py | 2132 ++++++ .../provider_registration/_delete.py | 132 + .../_generate_operation.py | 199 + .../provider_registration/_list.py | 845 +++ .../provider_registration/_show.py | 846 +++ .../provider_registration/_update.py | 2463 +++++++ .../provider_registration/_wait.py | 842 +++ .../resource_action/__cmd_group.py | 23 + .../resource_action/__init__.py | 12 + .../resource_action/_delete_resource.py | 212 + .../resource_type_registration/__cmd_group.py | 23 + .../resource_type_registration/__init__.py | 17 + .../resource_type_registration/_create.py | 3400 +++++++++ .../resource_type_registration/_delete.py | 166 + .../resource_type_registration/_list.py | 1246 ++++ .../resource_type_registration/_show.py | 1246 ++++ .../resource_type_registration/_update.py | 3873 ++++++++++ .../resource_type_registration/_wait.py | 1242 ++++ .../aaz/latest/providerhub/sku/__cmd_group.py | 23 + .../aaz/latest/providerhub/sku/__init__.py | 16 + .../aaz/latest/providerhub/sku/_create.py | 615 ++ .../aaz/latest/providerhub/sku/_delete.py | 152 + .../aaz/latest/providerhub/sku/_list.py | 339 + .../aaz/latest/providerhub/sku/_show.py | 340 + .../aaz/latest/providerhub/sku/_update.py | 804 +++ .../nested_resource_type_first/__cmd_group.py | 23 + .../nested_resource_type_first/__init__.py | 16 + .../sku/nested_resource_type_first/_create.py | 624 ++ .../sku/nested_resource_type_first/_delete.py | 162 + .../sku/nested_resource_type_first/_list.py | 348 + .../sku/nested_resource_type_first/_show.py | 350 + .../sku/nested_resource_type_first/_update.py | 818 +++ .../__cmd_group.py | 23 + .../nested_resource_type_second/__init__.py | 16 + .../nested_resource_type_second/_create.py | 633 ++ .../nested_resource_type_second/_delete.py | 172 + .../sku/nested_resource_type_second/_list.py | 357 + .../sku/nested_resource_type_second/_show.py | 360 + .../nested_resource_type_second/_update.py | 832 +++ .../nested_resource_type_third/__cmd_group.py | 23 + .../nested_resource_type_third/__init__.py | 16 + .../sku/nested_resource_type_third/_create.py | 639 ++ .../sku/nested_resource_type_third/_delete.py | 179 + .../sku/nested_resource_type_third/_list.py | 363 + .../sku/nested_resource_type_third/_show.py | 367 + .../sku/nested_resource_type_third/_update.py | 843 +++ src/providerhub/azext_providerhub/action.py | 17 - .../azext_providerhub/azext_metadata.json | 4 +- .../__init__.py => commands.py} | 7 +- src/providerhub/azext_providerhub/custom.py | 6 - .../azext_providerhub/generated/__init__.py | 12 - .../generated/_client_factory.py | 49 - .../azext_providerhub/generated/_help.py | 858 --- .../azext_providerhub/generated/_params.py | 561 -- .../azext_providerhub/generated/action.py | 809 --- .../azext_providerhub/generated/commands.py | 117 - .../azext_providerhub/generated/custom.py | 691 -- .../azext_providerhub/manual/__init__.py | 12 - .../tests/latest/example_steps.py | 10 +- .../recordings/test_azure_providerhub.yaml | 78 + .../test_custom_rollout_create.yaml | 60 + .../recordings/test_providerhub_Scenario.yaml | 1784 ----- ...st_step_authorized_application_create.yaml | 100 + ...st_step_authorized_application_delete.yaml | 52 + ...test_step_authorized_application_list.yaml | 48 + ...test_step_authorized_application_show.yaml | 48 + .../test_step_custom_rollout_create.yaml | 112 + .../test_step_custom_rollout_list.yaml | 54 + .../test_step_custom_rollout_show.yaml | 48 + .../test_step_default_rollout_create.yaml | 1611 +++++ .../test_step_default_rollout_delete.yaml | 52 + .../test_step_default_rollout_list.yaml | 53 + .../test_step_default_rollout_show.yaml | 48 + .../test_step_default_rollout_stop.yaml | 52 + .../test_step_manifest_checkin.yaml | 56 + .../test_step_manifest_generate.yaml | 76 + ...ted_resource_type_registration_create.yaml | 59 + ...ted_resource_type_registration_delete.yaml | 50 + ...e_type_registration_extensions_create.yaml | 60 + ...ested_resource_type_registration_show.yaml | 49 + ...step_notification_registration_create.yaml | 58 + ...step_notification_registration_delete.yaml | 52 + ...t_step_notification_registration_list.yaml | 48 + ...t_step_notification_registration_show.yaml | 48 + .../test_step_operation_create.yaml | 57 + .../test_step_operation_delete.yaml | 50 + .../recordings/test_step_operation_list.yaml | 49 + ...est_step_provider_registration_create.yaml | 65 + ...est_step_provider_registration_delete.yaml | 56 + ...vider_registration_generate_operation.yaml | 54 + .../test_step_provider_registration_list.yaml | 59 + .../test_step_provider_registration_show.yaml | 50 + ...tep_resource_type_registration_create.yaml | 55 + ...tep_resource_type_registration_delete.yaml | 50 + ..._step_resource_type_registration_list.yaml | 57 + ..._step_resource_type_registration_show.yaml | 48 + .../recordings/test_step_sku_create.yaml | 54 + .../recordings/test_step_sku_create2.yaml | 57 + .../recordings/test_step_sku_create3.yaml | 57 + .../recordings/test_step_sku_create4.yaml | 57 + .../recordings/test_step_sku_delete.yaml | 50 + .../recordings/test_step_sku_delete2.yaml | 50 + .../recordings/test_step_sku_delete3.yaml | 51 + .../recordings/test_step_sku_delete4.yaml | 51 + .../latest/recordings/test_step_sku_list.yaml | 48 + .../recordings/test_step_sku_list2.yaml | 48 + .../recordings/test_step_sku_list3.yaml | 49 + .../recordings/test_step_sku_list4.yaml | 49 + .../latest/recordings/test_step_sku_show.yaml | 48 + ...p_sku_show_nested_resource_type_first.yaml | 48 + ..._sku_show_nested_resource_type_second.yaml | 49 + ...p_sku_show_nested_resource_type_third.yaml | 49 + .../tests/latest/test_providerhub_scenario.py | 151 - .../test_providerhub_scenario_updated.py | 517 ++ .../vendored_sdks/providerhub/__init__.py | 16 - .../providerhub/_configuration.py | 70 - .../providerhub/_provider_hub.py | 109 - .../vendored_sdks/providerhub/_providerhub.py | 100 - .../providerhub/aio/_configuration.py | 66 - .../providerhub/aio/_provider_hub.py | 99 - .../providerhub/aio/_providerhub.py | 100 - .../providerhub/aio/operations/__init__.py | 29 - .../operations/_custom_rollouts_operations.py | 239 - .../_default_rollouts_operations.py | 415 -- .../_notification_registrations_operations.py | 296 - .../providerhub/aio/operations/_operations.py | 274 - .../operations/_provider_hub_operations.py | 140 - .../_provider_registrations_operations.py | 394 - .../aio/operations/_providerhub_operations.py | 157 - .../_resource_type_registration_operations.py | 264 - ..._resource_type_registrations_operations.py | 375 - .../aio/operations/_skus_operations.py | 1214 ---- .../providerhub/models/__init__.py | 497 -- .../providerhub/models/_models.py | 4372 ----------- .../providerhub/models/_models_py3.py | 4968 ------------- .../providerhub/models/_provider_hub_enums.py | 297 - .../providerhub/models/_providerhub_enums.py | 332 - .../providerhub/operations/__init__.py | 29 - .../operations/_custom_rollouts_operations.py | 254 - .../_default_rollouts_operations.py | 425 -- .../_notification_registrations_operations.py | 304 - .../providerhub/operations/_operations.py | 282 - .../operations/_provider_hub_operations.py | 166 - .../_provider_registrations_operations.py | 556 -- .../_resource_type_registration_operations.py | 444 -- ..._resource_type_registrations_operations.py | 536 -- .../operations/_skus_operations.py | 1254 ---- .../vendored_sdks/providerhub/py.typed | 1 - src/providerhub/gen.zip | Bin 53763 -> 0 bytes src/providerhub/setup.py | 11 +- 202 files changed, 77448 insertions(+), 24193 deletions(-) rename src/providerhub/azext_providerhub/{generated/_validators.py => _help.py} (93%) create mode 100644 src/providerhub/azext_providerhub/_params.py create mode 100644 src/providerhub/azext_providerhub/aaz/__init__.py rename src/providerhub/azext_providerhub/{vendored_sdks/providerhub/aio => aaz/latest}/__init__.py (53%) create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_create.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_delete.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_list.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_show.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_update.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_wait.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_create.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_delete.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_list.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_show.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_stop.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_update.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_wait.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_create.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_delete.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_list.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_show.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_stop.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_update.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_wait.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/_checkin.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/_generate.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_create.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_delete.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_list.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_show.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_update.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_create.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_delete.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_list.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_update.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_create.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_delete.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_generate_operation.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_list.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_show.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_update.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_wait.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/resource_action/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/resource_action/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/resource_action/_delete_resource.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_create.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_delete.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_list.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_show.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_update.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_wait.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_create.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_delete.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_list.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_show.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_update.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_create.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_delete.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_list.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_show.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_update.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_create.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_delete.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_list.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_show.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_update.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/__cmd_group.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/__init__.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_create.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_delete.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_list.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_show.py create mode 100644 src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_update.py delete mode 100644 src/providerhub/azext_providerhub/action.py rename src/providerhub/azext_providerhub/{vendored_sdks/__init__.py => commands.py} (80%) delete mode 100644 src/providerhub/azext_providerhub/generated/__init__.py delete mode 100644 src/providerhub/azext_providerhub/generated/_client_factory.py delete mode 100644 src/providerhub/azext_providerhub/generated/_help.py delete mode 100644 src/providerhub/azext_providerhub/generated/_params.py delete mode 100644 src/providerhub/azext_providerhub/generated/action.py delete mode 100644 src/providerhub/azext_providerhub/generated/commands.py delete mode 100644 src/providerhub/azext_providerhub/generated/custom.py delete mode 100644 src/providerhub/azext_providerhub/manual/__init__.py create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_azure_providerhub.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_custom_rollout_create.yaml delete mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_providerhub_Scenario.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_create.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_delete.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_list.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_show.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_custom_rollout_create.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_custom_rollout_list.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_custom_rollout_show.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_create.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_delete.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_list.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_show.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_stop.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_manifest_checkin.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_manifest_generate.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_create.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_delete.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_extensions_create.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_show.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_create.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_delete.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_list.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_show.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_operation_create.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_operation_delete.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_operation_list.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_create.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_delete.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_generate_operation.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_list.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_show.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_create.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_delete.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_list.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_show.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create2.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create3.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create4.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete2.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete3.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete4.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list2.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list3.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list4.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show_nested_resource_type_first.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show_nested_resource_type_second.yaml create mode 100644 src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show_nested_resource_type_third.yaml delete mode 100644 src/providerhub/azext_providerhub/tests/latest/test_providerhub_scenario.py create mode 100644 src/providerhub/azext_providerhub/tests/latest/test_providerhub_scenario_updated.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/__init__.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/_configuration.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/_provider_hub.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/_providerhub.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/_configuration.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/_provider_hub.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/_providerhub.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/__init__.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_custom_rollouts_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_default_rollouts_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_notification_registrations_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_provider_hub_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_provider_registrations_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_providerhub_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_resource_type_registration_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_resource_type_registrations_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_skus_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/__init__.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_models.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_models_py3.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_provider_hub_enums.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_providerhub_enums.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/__init__.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_custom_rollouts_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_default_rollouts_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_notification_registrations_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_provider_hub_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_provider_registrations_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_resource_type_registration_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_resource_type_registrations_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_skus_operations.py delete mode 100644 src/providerhub/azext_providerhub/vendored_sdks/providerhub/py.typed delete mode 100644 src/providerhub/gen.zip diff --git a/src/providerhub/azext_providerhub/__init__.py b/src/providerhub/azext_providerhub/__init__.py index fd80434fd9d..2549a1d2e76 100644 --- a/src/providerhub/azext_providerhub/__init__.py +++ b/src/providerhub/azext_providerhub/__init__.py @@ -14,42 +14,36 @@ # pylint: disable=super-with-arguments from azure.cli.core import AzCommandsLoader -from azext_providerhub.generated._help import helps # pylint: disable=unused-import -try: - from azext_providerhub.manual._help import helps # pylint: disable=reimported -except ImportError: - pass class ProviderHubCommandsLoader(AzCommandsLoader): def __init__(self, cli_ctx=None): from azure.cli.core.commands import CliCommandType - from azext_providerhub.generated._client_factory import cf_providerhub_cl - providerhub_custom = CliCommandType( - operations_tmpl='azext_providerhub.custom#{}', - client_factory=cf_providerhub_cl) - parent = super(ProviderHubCommandsLoader, self) - parent.__init__(cli_ctx=cli_ctx, custom_command_type=providerhub_custom) + custom_command_type = CliCommandType( + operations_tmpl='azext_providerhub.custom#{}') + super().__init__(cli_ctx=cli_ctx, + custom_command_type=custom_command_type) def load_command_table(self, args): - from azext_providerhub.generated.commands import load_command_table - load_command_table(self, args) + from azext_providerhub.commands import load_command_table + from azure.cli.core.aaz import load_aaz_command_table try: - from azext_providerhub.manual.commands import load_command_table as load_command_table_manual - load_command_table_manual(self, args) + from . import aaz except ImportError: - pass + aaz = None + if aaz: + load_aaz_command_table( + loader=self, + aaz_pkg_name=aaz.__name__, + args=args + ) + load_command_table(args) return self.command_table def load_arguments(self, command): - from azext_providerhub.generated._params import load_arguments - load_arguments(self, command) - try: - from azext_providerhub.manual._params import load_arguments as load_arguments_manual - load_arguments_manual(self, command) - except ImportError: - pass + from azext_providerhub._params import load_arguments + load_arguments(command) COMMAND_LOADER_CLS = ProviderHubCommandsLoader diff --git a/src/providerhub/azext_providerhub/generated/_validators.py b/src/providerhub/azext_providerhub/_help.py similarity index 93% rename from src/providerhub/azext_providerhub/generated/_validators.py rename to src/providerhub/azext_providerhub/_help.py index b33a44c1ebf..ad090433df3 100644 --- a/src/providerhub/azext_providerhub/generated/_validators.py +++ b/src/providerhub/azext_providerhub/_help.py @@ -7,3 +7,4 @@ # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- +# pylint: disable=too-many-lines diff --git a/src/providerhub/azext_providerhub/_params.py b/src/providerhub/azext_providerhub/_params.py new file mode 100644 index 00000000000..abd91f6a3e4 --- /dev/null +++ b/src/providerhub/azext_providerhub/_params.py @@ -0,0 +1,13 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: disable=too-many-lines +# pylint: disable=too-many-statements + + +def load_arguments(_): # pylint: disable=unused-argument + pass diff --git a/src/providerhub/azext_providerhub/aaz/__init__.py b/src/providerhub/azext_providerhub/aaz/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/__init__.py similarity index 53% rename from src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/__init__.py rename to src/providerhub/azext_providerhub/aaz/latest/__init__.py index 236fc35034b..f6acc11aa4e 100644 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/__init__.py +++ b/src/providerhub/azext_providerhub/aaz/latest/__init__.py @@ -1,10 +1,10 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa -from ._provider_hub import ProviderHub -__all__ = ['ProviderHub'] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/__cmd_group.py new file mode 100644 index 00000000000..cdd3b5b137b --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub", +) +class __CMDGroup(AAZCommandGroup): + """Manage resources with ProviderHub. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/__init__.py new file mode 100644 index 00000000000..5a9d61963d6 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/__init__.py @@ -0,0 +1,11 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/__cmd_group.py new file mode 100644 index 00000000000..371e3e29e2a --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub authorized-application", +) +class __CMDGroup(AAZCommandGroup): + """Manage authorized application with providerhub. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/__init__.py new file mode 100644 index 00000000000..db73033039b --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/__init__.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._update import * +from ._wait import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_create.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_create.py new file mode 100644 index 00000000000..dd374996a0f --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_create.py @@ -0,0 +1,329 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub authorized-application create", +) +class Create(AAZCommand): + """Create the authorized application. + + :example: authorized-application create + az providerhub authorized-application create -n "8b51e6a7-7814-42bd-aa17-3fb1837b3b7a" --data-authorizations "[{{role:ServiceOwner}}]" --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/authorizedapplications/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.application_id = AAZUuidArg( + options=["-n", "--name", "--application-id"], + help="The application ID.", + required=True, + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.data_authorizations = AAZListArg( + options=["--data-authorizations"], + arg_group="Properties", + help="The authorizations that determine the level of data access permissions on the specified resource types.", + ) + _args_schema.provider_authorization = AAZObjectArg( + options=["--provider-authorization"], + arg_group="Properties", + help="The resource provider authorization.", + ) + + data_authorizations = cls._args_schema.data_authorizations + data_authorizations.Element = AAZObjectArg() + + _element = cls._args_schema.data_authorizations.Element + _element.resource_types = AAZListArg( + options=["resource-types"], + help="The resource types from the defined resource types in the provider namespace that the application can access. If no resource types are specified and the role is service owner, the default is * which is all resource types", + ) + _element.role = AAZStrArg( + options=["role"], + help="The ownership role the application has on the resource types. The service owner role gives the application owner permissions. The limited owner role gives elevated permissions but does not allow all the permissions of a service owner, such as read/write on internal metadata.", + required=True, + enum={"LimitedOwner": "LimitedOwner", "ServiceOwner": "ServiceOwner"}, + ) + + resource_types = cls._args_schema.data_authorizations.Element.resource_types + resource_types.Element = AAZStrArg() + + provider_authorization = cls._args_schema.provider_authorization + provider_authorization.managed_by_role_definition_id = AAZStrArg( + options=["managed-by-role-definition-id"], + help="The managed by role definition ID for the application.", + ) + provider_authorization.role_definition_id = AAZStrArg( + options=["role-definition-id"], + help="The role definition ID for the application.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + yield self.AuthorizedApplicationsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class AuthorizedApplicationsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/authorizedApplications/{applicationId}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "applicationId", self.ctx.args.application_id, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("dataAuthorizations", AAZListType, ".data_authorizations") + properties.set_prop("providerAuthorization", AAZObjectType, ".provider_authorization") + + data_authorizations = _builder.get(".properties.dataAuthorizations") + if data_authorizations is not None: + data_authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.dataAuthorizations[]") + if _elements is not None: + _elements.set_prop("resourceTypes", AAZListType, ".resource_types") + _elements.set_prop("role", AAZStrType, ".role", typ_kwargs={"flags": {"required": True}}) + + resource_types = _builder.get(".properties.dataAuthorizations[].resourceTypes") + if resource_types is not None: + resource_types.set_elements(AAZStrType, ".") + + provider_authorization = _builder.get(".properties.providerAuthorization") + if provider_authorization is not None: + provider_authorization.set_prop("managedByRoleDefinitionId", AAZStrType, ".managed_by_role_definition_id") + provider_authorization.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType() + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.data_authorizations = AAZListType( + serialized_name="dataAuthorizations", + ) + properties.provider_authorization = AAZObjectType( + serialized_name="providerAuthorization", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + data_authorizations = cls._schema_on_200_201.properties.data_authorizations + data_authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.data_authorizations.Element + _element.resource_types = AAZListType( + serialized_name="resourceTypes", + ) + _element.role = AAZStrType( + flags={"required": True}, + ) + + resource_types = cls._schema_on_200_201.properties.data_authorizations.Element.resource_types + resource_types.Element = AAZStrType() + + provider_authorization = cls._schema_on_200_201.properties.provider_authorization + provider_authorization.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + provider_authorization.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200_201 + + +class _CreateHelper: + """Helper class for Create""" + + +__all__ = ["Create"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_delete.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_delete.py new file mode 100644 index 00000000000..b4bbe5de2af --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_delete.py @@ -0,0 +1,142 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub authorized-application delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete an authorized application. + + :example: authorized-application delete + az providerhub authorized-application delete -y -n "8b51e6a7-7814-42bd-aa17-3fb1837b3b7a" --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/authorizedapplications/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.application_id = AAZUuidArg( + options=["-n", "--name", "--application-id"], + help="The application ID.", + required=True, + id_part="child_name_1", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.AuthorizedApplicationsDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class AuthorizedApplicationsDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/authorizedApplications/{applicationId}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "applicationId", self.ctx.args.application_id, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_list.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_list.py new file mode 100644 index 00000000000..7620c821c89 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_list.py @@ -0,0 +1,235 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub authorized-application list", +) +class List(AAZCommand): + """List the list of the authorized applications in the provider namespace. + + :example: authorized-application list + az providerhub authorized-application list --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/authorizedapplications", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_PAGINATION = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.AuthorizedApplicationsList(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class AuthorizedApplicationsList(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/authorizedApplications", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.data_authorizations = AAZListType( + serialized_name="dataAuthorizations", + ) + properties.provider_authorization = AAZObjectType( + serialized_name="providerAuthorization", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + data_authorizations = cls._schema_on_200.value.Element.properties.data_authorizations + data_authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.data_authorizations.Element + _element.resource_types = AAZListType( + serialized_name="resourceTypes", + ) + _element.role = AAZStrType( + flags={"required": True}, + ) + + resource_types = cls._schema_on_200.value.Element.properties.data_authorizations.Element.resource_types + resource_types.Element = AAZStrType() + + provider_authorization = cls._schema_on_200.value.Element.properties.provider_authorization + provider_authorization.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + provider_authorization.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + +__all__ = ["List"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_show.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_show.py new file mode 100644 index 00000000000..5082dfe7099 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_show.py @@ -0,0 +1,235 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub authorized-application show", +) +class Show(AAZCommand): + """Get the authorized application details. + + :example: authorized-application show + az providerhub authorized-application show -n "8b51e6a7-7814-42bd-aa17-3fb1837b3b7a" --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/authorizedapplications/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.application_id = AAZUuidArg( + options=["-n", "--name", "--application-id"], + help="The application ID.", + required=True, + id_part="child_name_1", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.AuthorizedApplicationsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class AuthorizedApplicationsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/authorizedApplications/{applicationId}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "applicationId", self.ctx.args.application_id, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.data_authorizations = AAZListType( + serialized_name="dataAuthorizations", + ) + properties.provider_authorization = AAZObjectType( + serialized_name="providerAuthorization", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + data_authorizations = cls._schema_on_200.properties.data_authorizations + data_authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.data_authorizations.Element + _element.resource_types = AAZListType( + serialized_name="resourceTypes", + ) + _element.role = AAZStrType( + flags={"required": True}, + ) + + resource_types = cls._schema_on_200.properties.data_authorizations.Element.resource_types + resource_types.Element = AAZStrType() + + provider_authorization = cls._schema_on_200.properties.provider_authorization + provider_authorization.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + provider_authorization.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + +__all__ = ["Show"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_update.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_update.py new file mode 100644 index 00000000000..14d70da035a --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_update.py @@ -0,0 +1,479 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub authorized-application update", +) +class Update(AAZCommand): + """Update the authorized application. + + :example: authorized-application update + az providerhub authorized-application update -n "8b51e6a7-7814-42bd-aa17-3fb1837b3b7a" --data-authorizations "[{{role:ServiceOwner}}]" --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/authorizedapplications/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.application_id = AAZUuidArg( + options=["-n", "--name", "--application-id"], + help="The application ID.", + required=True, + id_part="child_name_1", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.data_authorizations = AAZListArg( + options=["--data-authorizations"], + arg_group="Properties", + help="The authorizations that determine the level of data access permissions on the specified resource types.", + nullable=True, + ) + _args_schema.provider_authorization = AAZObjectArg( + options=["--provider-authorization"], + arg_group="Properties", + help="The resource provider authorization.", + nullable=True, + ) + + data_authorizations = cls._args_schema.data_authorizations + data_authorizations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.data_authorizations.Element + _element.resource_types = AAZListArg( + options=["resource-types"], + help="The resource types from the defined resource types in the provider namespace that the application can access. If no resource types are specified and the role is service owner, the default is * which is all resource types", + nullable=True, + ) + _element.role = AAZStrArg( + options=["role"], + help="The ownership role the application has on the resource types. The service owner role gives the application owner permissions. The limited owner role gives elevated permissions but does not allow all the permissions of a service owner, such as read/write on internal metadata.", + enum={"LimitedOwner": "LimitedOwner", "ServiceOwner": "ServiceOwner"}, + ) + + resource_types = cls._args_schema.data_authorizations.Element.resource_types + resource_types.Element = AAZStrArg( + nullable=True, + ) + + provider_authorization = cls._args_schema.provider_authorization + provider_authorization.managed_by_role_definition_id = AAZStrArg( + options=["managed-by-role-definition-id"], + help="The managed by role definition ID for the application.", + nullable=True, + ) + provider_authorization.role_definition_id = AAZStrArg( + options=["role-definition-id"], + help="The role definition ID for the application.", + nullable=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.AuthorizedApplicationsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + yield self.AuthorizedApplicationsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class AuthorizedApplicationsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/authorizedApplications/{applicationId}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "applicationId", self.ctx.args.application_id, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_authorized_application_read(cls._schema_on_200) + + return cls._schema_on_200 + + class AuthorizedApplicationsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/authorizedApplications/{applicationId}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "applicationId", self.ctx.args.application_id, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_authorized_application_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("dataAuthorizations", AAZListType, ".data_authorizations") + properties.set_prop("providerAuthorization", AAZObjectType, ".provider_authorization") + + data_authorizations = _builder.get(".properties.dataAuthorizations") + if data_authorizations is not None: + data_authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.dataAuthorizations[]") + if _elements is not None: + _elements.set_prop("resourceTypes", AAZListType, ".resource_types") + _elements.set_prop("role", AAZStrType, ".role", typ_kwargs={"flags": {"required": True}}) + + resource_types = _builder.get(".properties.dataAuthorizations[].resourceTypes") + if resource_types is not None: + resource_types.set_elements(AAZStrType, ".") + + provider_authorization = _builder.get(".properties.providerAuthorization") + if provider_authorization is not None: + provider_authorization.set_prop("managedByRoleDefinitionId", AAZStrType, ".managed_by_role_definition_id") + provider_authorization.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + _schema_authorized_application_read = None + + @classmethod + def _build_schema_authorized_application_read(cls, _schema): + if cls._schema_authorized_application_read is not None: + _schema.id = cls._schema_authorized_application_read.id + _schema.name = cls._schema_authorized_application_read.name + _schema.properties = cls._schema_authorized_application_read.properties + _schema.system_data = cls._schema_authorized_application_read.system_data + _schema.type = cls._schema_authorized_application_read.type + return + + cls._schema_authorized_application_read = _schema_authorized_application_read = AAZObjectType() + + authorized_application_read = _schema_authorized_application_read + authorized_application_read.id = AAZStrType( + flags={"read_only": True}, + ) + authorized_application_read.name = AAZStrType( + flags={"read_only": True}, + ) + authorized_application_read.properties = AAZObjectType() + authorized_application_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + authorized_application_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_authorized_application_read.properties + properties.data_authorizations = AAZListType( + serialized_name="dataAuthorizations", + ) + properties.provider_authorization = AAZObjectType( + serialized_name="providerAuthorization", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + data_authorizations = _schema_authorized_application_read.properties.data_authorizations + data_authorizations.Element = AAZObjectType() + + _element = _schema_authorized_application_read.properties.data_authorizations.Element + _element.resource_types = AAZListType( + serialized_name="resourceTypes", + ) + _element.role = AAZStrType( + flags={"required": True}, + ) + + resource_types = _schema_authorized_application_read.properties.data_authorizations.Element.resource_types + resource_types.Element = AAZStrType() + + provider_authorization = _schema_authorized_application_read.properties.provider_authorization + provider_authorization.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + provider_authorization.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + system_data = _schema_authorized_application_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.id = cls._schema_authorized_application_read.id + _schema.name = cls._schema_authorized_application_read.name + _schema.properties = cls._schema_authorized_application_read.properties + _schema.system_data = cls._schema_authorized_application_read.system_data + _schema.type = cls._schema_authorized_application_read.type + + +__all__ = ["Update"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_wait.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_wait.py new file mode 100644 index 00000000000..7e9108e7308 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/authorized_application/_wait.py @@ -0,0 +1,231 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub authorized-application wait", +) +class Wait(AAZWaitCommand): + """Place the CLI in a waiting state until a condition is met. + """ + + _aaz_info = { + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/authorizedapplications/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.application_id = AAZUuidArg( + options=["-n", "--name", "--application-id"], + help="The application ID.", + required=True, + id_part="child_name_1", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.AuthorizedApplicationsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False) + return result + + class AuthorizedApplicationsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/authorizedApplications/{applicationId}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "applicationId", self.ctx.args.application_id, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.data_authorizations = AAZListType( + serialized_name="dataAuthorizations", + ) + properties.provider_authorization = AAZObjectType( + serialized_name="providerAuthorization", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + data_authorizations = cls._schema_on_200.properties.data_authorizations + data_authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.data_authorizations.Element + _element.resource_types = AAZListType( + serialized_name="resourceTypes", + ) + _element.role = AAZStrType( + flags={"required": True}, + ) + + resource_types = cls._schema_on_200.properties.data_authorizations.Element.resource_types + resource_types.Element = AAZStrType() + + provider_authorization = cls._schema_on_200.properties.provider_authorization + provider_authorization.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + provider_authorization.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _WaitHelper: + """Helper class for Wait""" + + +__all__ = ["Wait"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/__cmd_group.py new file mode 100644 index 00000000000..250c5d6c67a --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub custom-rollout", +) +class __CMDGroup(AAZCommandGroup): + """Manage custom rollout with providerhub. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/__init__.py new file mode 100644 index 00000000000..09d8537a13d --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/__init__.py @@ -0,0 +1,18 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._stop import * +from ._update import * +from ._wait import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_create.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_create.py new file mode 100644 index 00000000000..b526356bf6a --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_create.py @@ -0,0 +1,5456 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub custom-rollout create", +) +class Create(AAZCommand): + """Create the rollout details. + + :example: custom-rollout create + az providerhub custom-rollout create --provider-namespace "{providerNamespace}" --rollout-name "{customRolloutName}" --canary region="EastUS2EUAP" region="centraluseuap" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/customrollouts/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + _args_schema.rollout_name = AAZStrArg( + options=["-n", "--name", "--rollout-name"], + help="The rollout name.", + required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._\(\)]+$", + max_length=260, + ), + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.status = AAZObjectArg( + options=["--status"], + arg_group="Properties", + ) + + status = cls._args_schema.status + status.completed_regions = AAZListArg( + options=["completed-regions"], + ) + status.failed_or_skipped_regions = AAZDictArg( + options=["failed-or-skipped-regions"], + ) + status.manifest_checkin_status = AAZObjectArg( + options=["manifest-checkin-status"], + ) + + completed_regions = cls._args_schema.status.completed_regions + completed_regions.Element = AAZStrArg() + + failed_or_skipped_regions = cls._args_schema.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectArg() + cls._build_args_extended_error_info_create(failed_or_skipped_regions.Element) + + manifest_checkin_status = cls._args_schema.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrArg( + options=["commit-id"], + ) + manifest_checkin_status.is_checked_in = AAZBoolArg( + options=["is-checked-in"], + required=True, + ) + manifest_checkin_status.pull_request = AAZStrArg( + options=["pull-request"], + ) + manifest_checkin_status.status_message = AAZStrArg( + options=["status-message"], + required=True, + ) + + # define Arg Group "Specification" + + _args_schema = cls._args_schema + _args_schema.auto_provision_config = AAZObjectArg( + options=["--auto-provision-config"], + arg_group="Specification", + ) + _args_schema.canary = AAZObjectArg( + options=["--canary"], + arg_group="Specification", + help="The canary regions to apply the manifest.", + ) + _args_schema.manifest_checkin_specification = AAZObjectArg( + options=["--manifest-checkin-spec", "--manifest-checkin-specification"], + arg_group="Specification", + help="The manifest checkin specification.", + ) + _args_schema.provider_registration = AAZObjectArg( + options=["--provider-registration"], + arg_group="Specification", + ) + _args_schema.refresh_subscription_registration = AAZBoolArg( + options=["--refresh-sub-reg", "--refresh-subscription-registration"], + arg_group="Specification", + help="Determines if subscription registration should be refreshed.", + ) + _args_schema.release_scopes = AAZListArg( + options=["--release-scopes"], + arg_group="Specification", + ) + _args_schema.resource_type_registrations = AAZListArg( + options=["--rt-regs", "--resource-type-registrations"], + arg_group="Specification", + help="The resource type registrations.", + ) + _args_schema.skip_release_scope_validation = AAZBoolArg( + options=["--skip-validation", "--skip-release-scope-validation"], + arg_group="Specification", + help="Determines if release scope validation should be skipped.", + ) + + auto_provision_config = cls._args_schema.auto_provision_config + auto_provision_config.resource_graph = AAZBoolArg( + options=["resource-graph"], + ) + auto_provision_config.storage = AAZBoolArg( + options=["storage"], + ) + + canary = cls._args_schema.canary + canary.regions = AAZListArg( + options=["regions"], + singular_options=["region"], + help="The canary regions to apply the manifest", + ) + + regions = cls._args_schema.canary.regions + regions.Element = AAZStrArg() + + manifest_checkin_specification = cls._args_schema.manifest_checkin_specification + manifest_checkin_specification.manifest_checkin_option = AAZStrArg( + options=["checkin-option", "manifest-checkin-option"], + help="The manifest checkin option.", + default="DoNotAttemptAutomaticManifestCheckin", + enum={"AttemptAutomaticManifestCheckin": "AttemptAutomaticManifestCheckin", "DoNotAttemptAutomaticManifestCheckin": "DoNotAttemptAutomaticManifestCheckin"}, + ) + manifest_checkin_specification.manifest_checkin_params = AAZObjectArg( + options=["checkin-params", "manifest-checkin-params"], + help="The manifest checkin params.", + ) + + manifest_checkin_params = cls._args_schema.manifest_checkin_specification.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrArg( + options=["baseline-arm-manifest-location"], + help="The baseline ARM manifest location supplied to the checkin manifest operation.", + required=True, + ) + manifest_checkin_params.environment = AAZStrArg( + options=["environment"], + help="The environment supplied to the checkin manifest operation.", + required=True, + ) + + provider_registration = cls._args_schema.provider_registration + provider_registration.kind = AAZStrArg( + options=["kind"], + help="Provider registration kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + default="Managed", + enum={"Direct": "Direct", "Hybrid": "Hybrid", "Managed": "Managed"}, + ) + provider_registration.capabilities = AAZListArg( + options=["capabilities"], + ) + provider_registration.cross_tenant_token_validation = AAZStrArg( + options=["cross-tenant-token-validation"], + enum={"EnsureSecureValidation": "EnsureSecureValidation", "PassthroughInsecureToken": "PassthroughInsecureToken"}, + ) + provider_registration.custom_manifest_version = AAZStrArg( + options=["custom-manifest-version"], + help="Custom manifest version.", + ) + provider_registration.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + ) + provider_registration.enable_tenant_linked_notification = AAZBoolArg( + options=["enable-tenant-linked-notification"], + nullable=True, + ) + provider_registration.features_rule = AAZObjectArg( + options=["features-rule"], + ) + provider_registration.global_notification_endpoints = AAZListArg( + options=["global-notification-endpoints"], + ) + provider_registration.legacy_namespace = AAZStrArg( + options=["legacy-namespace"], + help="Legacy namespace.", + ) + provider_registration.legacy_registrations = AAZListArg( + options=["legacy-registrations"], + help="Legacy registrations.", + ) + provider_registration.linked_notification_rules = AAZListArg( + options=["linked-notification-rules"], + ) + provider_registration.management = AAZObjectArg( + options=["management"], + ) + provider_registration.management_group_global_notification_endpoints = AAZListArg( + options=["management-group-global-notification-endpoints"], + help="Management groups global notification endpoints.", + ) + provider_registration.metadata = AAZFreeFormDictArg( + options=["metadata"], + ) + provider_registration.namespace = AAZStrArg( + options=["namespace"], + ) + provider_registration.notification_options = AAZStrArg( + options=["notification-options"], + help="Notification options.", + enum={"EmitSpendingLimit": "EmitSpendingLimit", "None": "None", "NotSpecified": "NotSpecified"}, + ) + provider_registration.notification_settings = AAZObjectArg( + options=["notification-settings"], + help="Notification settings.", + ) + provider_registration.notifications = AAZListArg( + options=["notifications"], + ) + cls._build_args_notifications_create(provider_registration.notifications) + provider_registration.optional_features = AAZListArg( + options=["optional-features"], + help="Optional features.", + ) + provider_registration.private_resource_provider_configuration = AAZObjectArg( + options=["private-resource-provider-configuration"], + ) + provider_registration.provider_authentication = AAZObjectArg( + options=["provider-authentication"], + ) + provider_registration.provider_authorizations = AAZListArg( + options=["provider-authorizations"], + ) + provider_registration.provider_hub_metadata = AAZObjectArg( + options=["provider-hub-metadata"], + ) + provider_registration.provider_type = AAZStrArg( + options=["provider-type"], + enum={"AuthorizationFree": "AuthorizationFree", "External": "External", "Hidden": "Hidden", "Internal": "Internal", "LegacyRegistrationRequired": "LegacyRegistrationRequired", "NotSpecified": "NotSpecified", "RegistrationFree": "RegistrationFree", "TenantOnly": "TenantOnly"}, + ) + provider_registration.provider_version = AAZStrArg( + options=["provider-version"], + ) + provider_registration.request_header_options = AAZObjectArg( + options=["request-header-options"], + ) + provider_registration.required_features = AAZListArg( + options=["required-features"], + ) + provider_registration.resource_group_lock_option_during_move = AAZObjectArg( + options=["resource-group-lock-option-during-move"], + help="Resource group lock option during move.", + ) + provider_registration.resource_hydration_accounts = AAZListArg( + options=["resource-hydration-accounts"], + help="resource hydration accounts", + ) + provider_registration.resource_provider_authorization_rules = AAZObjectArg( + options=["resource-provider-authorization-rules"], + ) + cls._build_args_resource_provider_authorization_rules_create(provider_registration.resource_provider_authorization_rules) + provider_registration.response_options = AAZObjectArg( + options=["response-options"], + help="Response options.", + ) + provider_registration.service_name = AAZStrArg( + options=["service-name"], + ) + provider_registration.services = AAZListArg( + options=["services"], + ) + provider_registration.subscription_lifecycle_notification_specifications = AAZObjectArg( + options=["subscription-lifecycle-notification-specifications"], + ) + provider_registration.template_deployment_options = AAZObjectArg( + options=["template-deployment-options"], + ) + provider_registration.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + ) + cls._build_args_token_auth_configuration_create(provider_registration.token_auth_configuration) + + capabilities = cls._args_schema.provider_registration.capabilities + capabilities.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.capabilities.Element + _element.effect = AAZStrArg( + options=["effect"], + required=True, + enum={"Allow": "Allow", "Disallow": "Disallow", "NotSpecified": "NotSpecified"}, + ) + _element.quota_id = AAZStrArg( + options=["quota-id"], + required=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + + required_features = cls._args_schema.provider_registration.capabilities.Element.required_features + required_features.Element = AAZStrArg() + + dsts_configuration = cls._args_schema.provider_registration.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + required=True, + ) + + features_rule = cls._args_schema.provider_registration.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + required=True, + enum={"All": "All", "Any": "Any"}, + ) + + global_notification_endpoints = cls._args_schema.provider_registration.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectArg() + cls._build_args_resource_provider_endpoint_create(global_notification_endpoints.Element) + + legacy_registrations = cls._args_schema.provider_registration.legacy_registrations + legacy_registrations.Element = AAZStrArg() + + linked_notification_rules = cls._args_schema.provider_registration.linked_notification_rules + linked_notification_rules.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.linked_notification_rules.Element + _element.actions = AAZListArg( + options=["actions"], + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + ) + _element.endpoints = AAZListArg( + options=["endpoints"], + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + ) + cls._build_args_token_auth_configuration_create(_element.token_auth_configuration) + + actions = cls._args_schema.provider_registration.linked_notification_rules.Element.actions + actions.Element = AAZStrArg() + + dsts_configuration = cls._args_schema.provider_registration.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + required=True, + ) + + endpoints = cls._args_schema.provider_registration.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectArg() + cls._build_args_resource_provider_endpoint_create(endpoints.Element) + + management = cls._args_schema.provider_registration.management + management.authorization_owners = AAZListArg( + options=["authorization-owners"], + ) + management.canary_manifest_owners = AAZListArg( + options=["canary-manifest-owners"], + help="List of manifest owners for canary.", + ) + management.error_response_message_options = AAZObjectArg( + options=["error-response-message-options"], + help="Options for error response messages.", + ) + management.expedited_rollout_metadata = AAZObjectArg( + options=["expedited-rollout-metadata"], + help="Metadata for expedited rollout.", + ) + management.expedited_rollout_submitters = AAZListArg( + options=["expedited-rollout-submitters"], + help="List of expedited rollout submitters.", + ) + management.incident_contact_email = AAZStrArg( + options=["incident-contact-email"], + ) + management.incident_routing_service = AAZStrArg( + options=["incident-routing-service"], + ) + management.incident_routing_team = AAZStrArg( + options=["incident-routing-team"], + ) + management.manifest_owners = AAZListArg( + options=["manifest-owners"], + ) + management.pc_code = AAZStrArg( + options=["pc-code"], + help="The profit center code for the subscription.", + ) + management.profit_center_program_id = AAZStrArg( + options=["profit-center-program-id"], + help="The profit center program id for the subscription.", + ) + management.resource_access_policy = AAZStrArg( + options=["resource-access-policy"], + enum={"AcisActionAllowed": "AcisActionAllowed", "AcisReadAllowed": "AcisReadAllowed", "NotSpecified": "NotSpecified"}, + ) + management.resource_access_roles = AAZListArg( + options=["resource-access-roles"], + ) + management.schema_owners = AAZListArg( + options=["schema-owners"], + ) + management.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + ) + + authorization_owners = cls._args_schema.provider_registration.management.authorization_owners + authorization_owners.Element = AAZStrArg() + + canary_manifest_owners = cls._args_schema.provider_registration.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrArg() + + error_response_message_options = cls._args_schema.provider_registration.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrArg( + options=["server-failure-response-message-type"], + help="Type of server failure response message.", + enum={"NotSpecified": "NotSpecified", "OutageReporting": "OutageReporting"}, + ) + + expedited_rollout_metadata = cls._args_schema.provider_registration.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolArg( + options=["enabled"], + help="Expedited rollout enabled?", + ) + expedited_rollout_metadata.expedited_rollout_intent = AAZStrArg( + options=["expedited-rollout-intent"], + help="Expedited rollout intent.", + enum={"Hotfix": "Hotfix", "NotSpecified": "NotSpecified"}, + ) + + expedited_rollout_submitters = cls._args_schema.provider_registration.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrArg() + + manifest_owners = cls._args_schema.provider_registration.management.manifest_owners + manifest_owners.Element = AAZStrArg() + + resource_access_roles = cls._args_schema.provider_registration.management.resource_access_roles + resource_access_roles.Element = AAZObjectArg() + cls._build_args_resource_access_role_create(resource_access_roles.Element) + + schema_owners = cls._args_schema.provider_registration.management.schema_owners + schema_owners.Element = AAZStrArg() + + service_tree_infos = cls._args_schema.provider_registration.management.service_tree_infos + service_tree_infos.Element = AAZObjectArg() + cls._build_args_service_tree_info_create(service_tree_infos.Element) + + management_group_global_notification_endpoints = cls._args_schema.provider_registration.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectArg() + cls._build_args_resource_provider_endpoint_create(management_group_global_notification_endpoints.Element) + + notification_settings = cls._args_schema.provider_registration.notification_settings + notification_settings.subscriber_settings = AAZListArg( + options=["subscriber-settings"], + ) + + subscriber_settings = cls._args_schema.provider_registration.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListArg( + options=["filter-rules"], + ) + + filter_rules = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListArg( + options=["endpoint-information"], + ) + _element.filter_query = AAZStrArg( + options=["filter-query"], + ) + + endpoint_information = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrArg( + options=["endpoint"], + ) + _element.endpoint_type = AAZStrArg( + options=["endpoint-type"], + enum={"Eventhub": "Eventhub", "Webhook": "Webhook"}, + ) + _element.schema_version = AAZStrArg( + options=["schema-version"], + ) + + optional_features = cls._args_schema.provider_registration.optional_features + optional_features.Element = AAZStrArg() + + private_resource_provider_configuration = cls._args_schema.provider_registration.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListArg( + options=["allowed-subscriptions"], + ) + + allowed_subscriptions = cls._args_schema.provider_registration.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrArg() + + provider_authentication = cls._args_schema.provider_registration.provider_authentication + provider_authentication.allowed_audiences = AAZListArg( + options=["allowed-audiences"], + required=True, + ) + + allowed_audiences = cls._args_schema.provider_registration.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrArg() + + provider_authorizations = cls._args_schema.provider_registration.provider_authorizations + provider_authorizations.Element = AAZObjectArg() + cls._build_args_resource_provider_authorization_create(provider_authorizations.Element) + + provider_hub_metadata = cls._args_schema.provider_registration.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrArg( + options=["direct-rp-role-definition-id"], + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrArg( + options=["global-async-operation-resource-type-name"], + ) + provider_hub_metadata.provider_authentication = AAZObjectArg( + options=["provider-authentication"], + ) + provider_hub_metadata.provider_authorizations = AAZListArg( + options=["provider-authorizations"], + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrArg( + options=["regional-async-operation-resource-type-name"], + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectArg( + options=["third-party-provider-authorization"], + ) + + provider_authentication = cls._args_schema.provider_registration.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListArg( + options=["allowed-audiences"], + required=True, + ) + + allowed_audiences = cls._args_schema.provider_registration.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrArg() + + provider_authorizations = cls._args_schema.provider_registration.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectArg() + cls._build_args_resource_provider_authorization_create(provider_authorizations.Element) + + third_party_provider_authorization = cls._args_schema.provider_registration.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListArg( + options=["authorizations"], + ) + third_party_provider_authorization.managed_by_tenant_id = AAZStrArg( + options=["managed-by-tenant-id"], + ) + + authorizations = cls._args_schema.provider_registration.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrArg( + options=["principal-id"], + required=True, + ) + _element.role_definition_id = AAZStrArg( + options=["role-definition-id"], + required=True, + ) + + request_header_options = cls._args_schema.provider_registration.request_header_options + request_header_options.opt_in_headers = AAZStrArg( + options=["opt-in-headers"], + enum={"ClientGroupMembership": "ClientGroupMembership", "ClientPrincipalNameEncoded": "ClientPrincipalNameEncoded", "MSIResourceIdEncoded": "MSIResourceIdEncoded", "ManagementGroupAncestorsEncoded": "ManagementGroupAncestorsEncoded", "NotSpecified": "NotSpecified", "PrivateLinkId": "PrivateLinkId", "PrivateLinkResourceId": "PrivateLinkResourceId", "PrivateLinkVnetTrafficTag": "PrivateLinkVnetTrafficTag", "ResourceGroupLocation": "ResourceGroupLocation", "SignedAuxiliaryTokens": "SignedAuxiliaryTokens", "SignedUserToken": "SignedUserToken", "UnboundedClientGroupMembership": "UnboundedClientGroupMembership"}, + ) + request_header_options.opt_out_headers = AAZStrArg( + options=["opt-out-headers"], + enum={"NotSpecified": "NotSpecified", "SystemDataCreatedByLastModifiedBy": "SystemDataCreatedByLastModifiedBy"}, + ) + + required_features = cls._args_schema.provider_registration.required_features + required_features.Element = AAZStrArg() + + resource_group_lock_option_during_move = cls._args_schema.provider_registration.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrArg( + options=["block-action-verb"], + help="The action verb that will be blocked when the resource group is locked during move.", + enum={"Action": "Action", "Delete": "Delete", "NotSpecified": "NotSpecified", "Read": "Read", "Unrecognized": "Unrecognized", "Write": "Write"}, + ) + + resource_hydration_accounts = cls._args_schema.provider_registration.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.resource_hydration_accounts.Element + _element.account_name = AAZStrArg( + options=["account-name"], + ) + _element.encrypted_key = AAZStrArg( + options=["encrypted-key"], + ) + _element.max_child_resource_consistency_job_limit = AAZIntArg( + options=["max-child-resource-consistency-job-limit"], + ) + _element.subscription_id = AAZStrArg( + options=["subscription-id"], + ) + + response_options = cls._args_schema.provider_registration.response_options + response_options.service_client_options_type = AAZStrArg( + options=["service-client-options-type"], + enum={"DisableAutomaticDecompression": "DisableAutomaticDecompression", "NotSpecified": "NotSpecified"}, + ) + + services = cls._args_schema.provider_registration.services + services.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.services.Element + _element.service_name = AAZStrArg( + options=["service-name"], + ) + _element.status = AAZStrArg( + options=["status"], + enum={"Active": "Active", "Inactive": "Inactive"}, + ) + + subscription_lifecycle_notification_specifications = cls._args_schema.provider_registration.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZDurationArg( + options=["soft-delete-ttl"], + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListArg( + options=["subscription-state-override-actions"], + ) + + subscription_state_override_actions = cls._args_schema.provider_registration.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectArg() + cls._build_args_subscription_state_override_action_create(subscription_state_override_actions.Element) + + template_deployment_options = cls._args_schema.provider_registration.template_deployment_options + template_deployment_options.preflight_options = AAZListArg( + options=["preflight-options"], + ) + template_deployment_options.preflight_supported = AAZBoolArg( + options=["preflight-supported"], + ) + + preflight_options = cls._args_schema.provider_registration.template_deployment_options.preflight_options + preflight_options.Element = AAZStrArg( + enum={"ContinueDeploymentOnFailure": "ContinueDeploymentOnFailure", "DefaultValidationOnly": "DefaultValidationOnly", "None": "None"}, + ) + + release_scopes = cls._args_schema.release_scopes + release_scopes.Element = AAZStrArg() + + resource_type_registrations = cls._args_schema.resource_type_registrations + resource_type_registrations.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element + _element.kind = AAZStrArg( + options=["kind"], + help="Resource type registration kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + default="Managed", + enum={"Direct": "Direct", "Hybrid": "Hybrid", "Managed": "Managed"}, + ) + _element.add_resource_list_target_locations = AAZBoolArg( + options=["add-resource-list-target-locations"], + help="Add resource list target locations?", + ) + _element.additional_options = AAZStrArg( + options=["additional-options"], + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + _element.allow_empty_role_assignments = AAZBoolArg( + options=["allow-empty-role-assignments"], + ) + _element.allowed_resource_names = AAZListArg( + options=["allowed-resource-names"], + ) + _element.allowed_template_deployment_reference_actions = AAZListArg( + options=["allowed-template-deployment-reference-actions"], + help="Allowed template deployment reference actions.", + ) + _element.allowed_unauthorized_actions = AAZListArg( + options=["allowed-unauthorized-actions"], + ) + _element.api_profiles = AAZListArg( + options=["api-profiles"], + ) + _element.async_operation_resource_type_name = AAZStrArg( + options=["async-operation-resource-type-name"], + ) + _element.async_timeout_rules = AAZListArg( + options=["async-timeout-rules"], + help="Async timeout rules", + ) + _element.authorization_action_mappings = AAZListArg( + options=["authorization-action-mappings"], + ) + _element.availability_zone_rule = AAZObjectArg( + options=["availability-zone-rule"], + ) + _element.capacity_rule = AAZObjectArg( + options=["capacity-rule"], + help="Capacity rule.", + ) + _element.category = AAZStrArg( + options=["category"], + enum={"FreeForm": "FreeForm", "Internal": "Internal", "None": "None", "PureProxy": "PureProxy"}, + ) + _element.check_name_availability_specifications = AAZObjectArg( + options=["check-name-availability-specifications"], + ) + _element.common_api_versions = AAZListArg( + options=["common-api-versions"], + help="Common API versions for the resource type.", + ) + _element.cross_tenant_token_validation = AAZStrArg( + options=["cross-tenant-token-validation"], + enum={"EnsureSecureValidation": "EnsureSecureValidation", "PassthroughInsecureToken": "PassthroughInsecureToken"}, + ) + _element.default_api_version = AAZStrArg( + options=["default-api-version"], + ) + _element.disallowed_action_verbs = AAZListArg( + options=["disallowed-action-verbs"], + ) + _element.disallowed_end_user_operations = AAZListArg( + options=["disallowed-end-user-operations"], + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + ) + _element.enable_async_operation = AAZBoolArg( + options=["enable-async-operation"], + ) + _element.enable_third_party_s2_s = AAZBoolArg( + options=["enable-third-party-s2-s"], + ) + _element.endpoints = AAZListArg( + options=["endpoints"], + ) + _element.extended_locations = AAZListArg( + options=["extended-locations"], + ) + _element.extension_options = AAZObjectArg( + options=["extension-options"], + ) + _element.features_rule = AAZObjectArg( + options=["features-rule"], + ) + _element.frontdoor_request_mode = AAZStrArg( + options=["frontdoor-request-mode"], + enum={"NotSpecified": "NotSpecified", "UseManifest": "UseManifest"}, + ) + _element.grouping_tag = AAZStrArg( + options=["grouping-tag"], + help="Grouping tag.", + ) + _element.identity_management = AAZObjectArg( + options=["identity-management"], + ) + _element.is_pure_proxy = AAZBoolArg( + options=["is-pure-proxy"], + ) + _element.legacy_name = AAZStrArg( + options=["legacy-name"], + ) + _element.legacy_names = AAZListArg( + options=["legacy-names"], + ) + _element.legacy_policy = AAZObjectArg( + options=["legacy-policy"], + ) + _element.linked_access_checks = AAZListArg( + options=["linked-access-checks"], + ) + _element.linked_notification_rules = AAZListArg( + options=["linked-notification-rules"], + ) + _element.linked_operation_rules = AAZListArg( + options=["linked-operation-rules"], + ) + _element.logging_rules = AAZListArg( + options=["logging-rules"], + ) + _element.managed_resource_group_configuration = AAZObjectArg( + options=["managed-resource-group-configuration"], + ) + _element.management = AAZObjectArg( + options=["management"], + ) + _element.manifest_link = AAZStrArg( + options=["manifest-link"], + help="Manifest link.", + ) + _element.marketplace_options = AAZObjectArg( + options=["marketplace-options"], + help="Marketplace options.", + ) + _element.marketplace_type = AAZStrArg( + options=["marketplace-type"], + enum={"AddOn": "AddOn", "Bypass": "Bypass", "NotSpecified": "NotSpecified", "Store": "Store"}, + ) + _element.metadata = AAZDictArg( + options=["metadata"], + ) + _element.notifications = AAZListArg( + options=["notifications"], + ) + cls._build_args_notifications_create(_element.notifications) + _element.on_behalf_of_tokens = AAZObjectArg( + options=["on-behalf-of-tokens"], + ) + _element.open_api_configuration = AAZObjectArg( + options=["open-api-configuration"], + ) + _element.policy_execution_type = AAZStrArg( + options=["policy-execution-type"], + enum={"BypassPolicies": "BypassPolicies", "ExecutePolicies": "ExecutePolicies", "ExpectPartialPutRequests": "ExpectPartialPutRequests", "NotSpecified": "NotSpecified"}, + ) + _element.private_endpoint_configuration = AAZObjectArg( + options=["private-endpoint-configuration"], + ) + _element.quota_rule = AAZObjectArg( + options=["quota-rule"], + ) + _element.regionality = AAZStrArg( + options=["regionality"], + enum={"Global": "Global", "NotSpecified": "NotSpecified", "Regional": "Regional"}, + ) + _element.request_header_options = AAZObjectArg( + options=["request-header-options"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + _element.resource_cache = AAZObjectArg( + options=["resource-cache"], + help="Resource cache options.", + ) + _element.resource_concurrency_control_options = AAZDictArg( + options=["resource-concurrency-control-options"], + ) + _element.resource_deletion_policy = AAZStrArg( + options=["resource-deletion-policy"], + enum={"CascadeDeleteAll": "CascadeDeleteAll", "CascadeDeleteProxyOnlyChildren": "CascadeDeleteProxyOnlyChildren", "NotSpecified": "NotSpecified"}, + ) + _element.resource_graph_configuration = AAZObjectArg( + options=["resource-graph-configuration"], + ) + _element.resource_management_options = AAZObjectArg( + options=["resource-management-options"], + help="Resource management options.", + ) + _element.resource_move_policy = AAZObjectArg( + options=["resource-move-policy"], + ) + _element.resource_provider_authorization_rules = AAZObjectArg( + options=["resource-provider-authorization-rules"], + ) + cls._build_args_resource_provider_authorization_rules_create(_element.resource_provider_authorization_rules) + _element.resource_query_management = AAZObjectArg( + options=["resource-query-management"], + help="Resource query management options.", + ) + _element.resource_sub_type = AAZStrArg( + options=["resource-sub-type"], + enum={"AsyncOperation": "AsyncOperation", "NotSpecified": "NotSpecified"}, + ) + _element.resource_type_common_attribute_management = AAZObjectArg( + options=["resource-type-common-attribute-management"], + help="Resource type common attribute management.", + ) + _element.resource_validation = AAZStrArg( + options=["resource-validation"], + enum={"NotSpecified": "NotSpecified", "ProfaneWords": "ProfaneWords", "ReservedWords": "ReservedWords"}, + ) + _element.routing_rule = AAZObjectArg( + options=["routing-rule"], + help="Routing rule.", + ) + _element.routing_type = AAZStrArg( + options=["routing-type"], + enum={"CascadeExtension": "CascadeExtension", "Default": "Default", "Extension": "Extension", "Failover": "Failover", "Fanout": "Fanout", "HostBased": "HostBased", "LocationBased": "LocationBased", "ProxyOnly": "ProxyOnly", "Tenant": "Tenant"}, + ) + _element.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + ) + _element.sku_link = AAZStrArg( + options=["sku-link"], + ) + _element.subscription_lifecycle_notification_specifications = AAZObjectArg( + options=["subscription-lifecycle-notification-specifications"], + ) + _element.subscription_state_rules = AAZListArg( + options=["subscription-state-rules"], + ) + _element.supports_tags = AAZBoolArg( + options=["supports-tags"], + ) + _element.swagger_specifications = AAZListArg( + options=["swagger-specifications"], + ) + _element.template_deployment_options = AAZObjectArg( + options=["template-deployment-options"], + ) + _element.template_deployment_policy = AAZObjectArg( + options=["template-deployment-policy"], + ) + _element.throttling_rules = AAZListArg( + options=["throttling-rules"], + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + ) + cls._build_args_token_auth_configuration_create(_element.token_auth_configuration) + + allowed_resource_names = cls._args_schema.resource_type_registrations.Element.allowed_resource_names + allowed_resource_names.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.allowed_resource_names.Element + _element.get_action_verb = AAZStrArg( + options=["get-action-verb"], + help="Get action verb.", + ) + _element.name = AAZStrArg( + options=["name"], + help="Resource name.", + ) + + allowed_template_deployment_reference_actions = cls._args_schema.resource_type_registrations.Element.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrArg() + + allowed_unauthorized_actions = cls._args_schema.resource_type_registrations.Element.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrArg() + + api_profiles = cls._args_schema.resource_type_registrations.Element.api_profiles + api_profiles.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.api_profiles.Element + _element.api_version = AAZStrArg( + options=["api-version"], + help="Api version.", + ) + _element.profile_version = AAZStrArg( + options=["profile-version"], + help="Profile version.", + ) + + async_timeout_rules = cls._args_schema.resource_type_registrations.Element.async_timeout_rules + async_timeout_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.async_timeout_rules.Element + _element.action_name = AAZStrArg( + options=["action-name"], + ) + _element.timeout = AAZStrArg( + options=["timeout"], + ) + + authorization_action_mappings = cls._args_schema.resource_type_registrations.Element.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.authorization_action_mappings.Element + _element.desired = AAZStrArg( + options=["desired"], + ) + _element.original = AAZStrArg( + options=["original"], + ) + + availability_zone_rule = cls._args_schema.resource_type_registrations.Element.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrArg( + options=["availability-zone-policy"], + enum={"MultiZoned": "MultiZoned", "NotSpecified": "NotSpecified", "SingleZoned": "SingleZoned"}, + ) + + capacity_rule = cls._args_schema.resource_type_registrations.Element.capacity_rule + capacity_rule.capacity_policy = AAZStrArg( + options=["capacity-policy"], + help="Capacity policy.", + enum={"Default": "Default", "Restricted": "Restricted"}, + ) + capacity_rule.sku_alias = AAZStrArg( + options=["sku-alias"], + help="Sku alias", + ) + + check_name_availability_specifications = cls._args_schema.resource_type_registrations.Element.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolArg( + options=["enable-default-validation"], + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListArg( + options=["resource-types-with-custom-validation"], + ) + + resource_types_with_custom_validation = cls._args_schema.resource_type_registrations.Element.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrArg() + + common_api_versions = cls._args_schema.resource_type_registrations.Element.common_api_versions + common_api_versions.Element = AAZStrArg() + + disallowed_action_verbs = cls._args_schema.resource_type_registrations.Element.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrArg() + + disallowed_end_user_operations = cls._args_schema.resource_type_registrations.Element.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrArg() + + dsts_configuration = cls._args_schema.resource_type_registrations.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + required=True, + ) + + endpoints = cls._args_schema.resource_type_registrations.Element.endpoints + endpoints.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.endpoints.Element + _element.api_version = AAZStrArg( + options=["api-version"], + help="Api version.", + ) + _element.api_versions = AAZListArg( + options=["api-versions"], + ) + _element.data_boundary = AAZStrArg( + options=["data-boundary"], + enum={"EU": "EU", "Global": "Global", "NotDefined": "NotDefined", "US": "US"}, + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + ) + _element.enabled = AAZBoolArg( + options=["enabled"], + ) + _element.endpoint_type = AAZStrArg( + options=["endpoint-type"], + enum={"Canary": "Canary", "NotSpecified": "NotSpecified", "Production": "Production", "TestInProduction": "TestInProduction"}, + ) + _element.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + ) + _element.extensions = AAZListArg( + options=["extensions"], + ) + _element.features_rule = AAZObjectArg( + options=["features-rule"], + ) + _element.kind = AAZStrArg( + options=["kind"], + help="Resource type endpoint kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + default="Managed", + enum={"Direct": "Direct", "Managed": "Managed"}, + ) + _element.locations = AAZListArg( + options=["locations"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + _element.sku_link = AAZStrArg( + options=["sku-link"], + ) + _element.timeout = AAZDurationArg( + options=["timeout"], + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + ) + cls._build_args_token_auth_configuration_create(_element.token_auth_configuration) + _element.zones = AAZListArg( + options=["zones"], + help="List of zones.", + ) + + api_versions = cls._args_schema.resource_type_registrations.Element.endpoints.Element.api_versions + api_versions.Element = AAZStrArg() + + dsts_configuration = cls._args_schema.resource_type_registrations.Element.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + required=True, + ) + + extensions = cls._args_schema.resource_type_registrations.Element.endpoints.Element.extensions + extensions.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + ) + _element.extension_categories = AAZListArg( + options=["extension-categories"], + ) + _element.timeout = AAZDurationArg( + options=["timeout"], + ) + + extension_categories = cls._args_schema.resource_type_registrations.Element.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrArg( + enum={"BestMatchOperationBegin": "BestMatchOperationBegin", "NotSpecified": "NotSpecified", "ResourceCreationBegin": "ResourceCreationBegin", "ResourceCreationCompleted": "ResourceCreationCompleted", "ResourceCreationValidate": "ResourceCreationValidate", "ResourceDeletionBegin": "ResourceDeletionBegin", "ResourceDeletionCompleted": "ResourceDeletionCompleted", "ResourceDeletionValidate": "ResourceDeletionValidate", "ResourceMoveBegin": "ResourceMoveBegin", "ResourceMoveCompleted": "ResourceMoveCompleted", "ResourcePatchBegin": "ResourcePatchBegin", "ResourcePatchCompleted": "ResourcePatchCompleted", "ResourcePatchValidate": "ResourcePatchValidate", "ResourcePostAction": "ResourcePostAction", "ResourceReadBegin": "ResourceReadBegin", "ResourceReadValidate": "ResourceReadValidate", "SubscriptionLifecycleNotification": "SubscriptionLifecycleNotification", "SubscriptionLifecycleNotificationDeletion": "SubscriptionLifecycleNotificationDeletion"}, + ) + + features_rule = cls._args_schema.resource_type_registrations.Element.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + required=True, + enum={"All": "All", "Any": "Any"}, + ) + + locations = cls._args_schema.resource_type_registrations.Element.endpoints.Element.locations + locations.Element = AAZStrArg() + + required_features = cls._args_schema.resource_type_registrations.Element.endpoints.Element.required_features + required_features.Element = AAZStrArg() + + zones = cls._args_schema.resource_type_registrations.Element.endpoints.Element.zones + zones.Element = AAZStrArg() + + extended_locations = cls._args_schema.resource_type_registrations.Element.extended_locations + extended_locations.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.extended_locations.Element + _element.supported_policy = AAZStrArg( + options=["supported-policy"], + ) + _element.type = AAZStrArg( + options=["type"], + ) + + extension_options = cls._args_schema.resource_type_registrations.Element.extension_options + extension_options.resource_creation_begin = AAZObjectArg( + options=["resource-creation-begin"], + ) + + resource_creation_begin = cls._args_schema.resource_type_registrations.Element.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListArg( + options=["request"], + ) + resource_creation_begin.response = AAZListArg( + options=["response"], + ) + + request = cls._args_schema.resource_type_registrations.Element.extension_options.resource_creation_begin.request + request.Element = AAZStrArg( + enum={"DoNotMergeExistingReadOnlyAndSecretProperties": "DoNotMergeExistingReadOnlyAndSecretProperties", "IncludeInternalMetadata": "IncludeInternalMetadata", "NotSpecified": "NotSpecified"}, + ) + + response = cls._args_schema.resource_type_registrations.Element.extension_options.resource_creation_begin.response + response.Element = AAZStrArg( + enum={"DoNotMergeExistingReadOnlyAndSecretProperties": "DoNotMergeExistingReadOnlyAndSecretProperties", "IncludeInternalMetadata": "IncludeInternalMetadata", "NotSpecified": "NotSpecified"}, + ) + + features_rule = cls._args_schema.resource_type_registrations.Element.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + required=True, + enum={"All": "All", "Any": "Any"}, + ) + + identity_management = cls._args_schema.resource_type_registrations.Element.identity_management + identity_management.application_id = AAZStrArg( + options=["application-id"], + ) + identity_management.application_ids = AAZListArg( + options=["application-ids"], + ) + identity_management.delegation_app_ids = AAZListArg( + options=["delegation-app-ids"], + ) + identity_management.type = AAZStrArg( + options=["type"], + enum={"Actor": "Actor", "DelegatedResourceIdentity": "DelegatedResourceIdentity", "NotSpecified": "NotSpecified", "SystemAssigned": "SystemAssigned", "UserAssigned": "UserAssigned"}, + ) + + application_ids = cls._args_schema.resource_type_registrations.Element.identity_management.application_ids + application_ids.Element = AAZStrArg() + + delegation_app_ids = cls._args_schema.resource_type_registrations.Element.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrArg() + + legacy_names = cls._args_schema.resource_type_registrations.Element.legacy_names + legacy_names.Element = AAZStrArg() + + legacy_policy = cls._args_schema.resource_type_registrations.Element.legacy_policy + legacy_policy.disallowed_conditions = AAZListArg( + options=["disallowed-conditions"], + ) + legacy_policy.disallowed_legacy_operations = AAZListArg( + options=["disallowed-legacy-operations"], + ) + + disallowed_conditions = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListArg( + options=["disallowed-legacy-operations"], + ) + _element.feature = AAZStrArg( + options=["feature"], + help="Feature string.", + ) + + disallowed_legacy_operations = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrArg( + enum={"Action": "Action", "AzureAsyncOperationWaiting": "AzureAsyncOperationWaiting", "Create": "Create", "Delete": "Delete", "DeploymentCleanup": "DeploymentCleanup", "EvaluateDeploymentOutput": "EvaluateDeploymentOutput", "NotSpecified": "NotSpecified", "Read": "Read", "ResourceCacheWaiting": "ResourceCacheWaiting", "Waiting": "Waiting"}, + ) + + disallowed_legacy_operations = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrArg( + enum={"Action": "Action", "AzureAsyncOperationWaiting": "AzureAsyncOperationWaiting", "Create": "Create", "Delete": "Delete", "DeploymentCleanup": "DeploymentCleanup", "EvaluateDeploymentOutput": "EvaluateDeploymentOutput", "NotSpecified": "NotSpecified", "Read": "Read", "ResourceCacheWaiting": "ResourceCacheWaiting", "Waiting": "Waiting"}, + ) + + linked_access_checks = cls._args_schema.resource_type_registrations.Element.linked_access_checks + linked_access_checks.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.linked_access_checks.Element + _element.action_name = AAZStrArg( + options=["action-name"], + ) + _element.linked_action = AAZStrArg( + options=["linked-action"], + ) + _element.linked_action_verb = AAZStrArg( + options=["linked-action-verb"], + ) + _element.linked_property = AAZStrArg( + options=["linked-property"], + ) + _element.linked_type = AAZStrArg( + options=["linked-type"], + ) + + linked_notification_rules = cls._args_schema.resource_type_registrations.Element.linked_notification_rules + linked_notification_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element + _element.actions = AAZListArg( + options=["actions"], + ) + _element.actions_on_failed_operation = AAZListArg( + options=["actions-on-failed-operation"], + ) + _element.fast_path_actions = AAZListArg( + options=["fast-path-actions"], + ) + _element.fast_path_actions_on_failed_operation = AAZListArg( + options=["fast-path-actions-on-failed-operation"], + ) + _element.linked_notification_timeout = AAZDurationArg( + options=["linked-notification-timeout"], + ) + + actions = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.actions + actions.Element = AAZStrArg() + + actions_on_failed_operation = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrArg() + + fast_path_actions = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrArg() + + fast_path_actions_on_failed_operation = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrArg() + + linked_operation_rules = cls._args_schema.resource_type_registrations.Element.linked_operation_rules + linked_operation_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.linked_operation_rules.Element + _element.depends_on_types = AAZListArg( + options=["depends-on-types"], + help="Depends on types.", + ) + _element.linked_action = AAZStrArg( + options=["linked-action"], + required=True, + enum={"Blocked": "Blocked", "Enabled": "Enabled", "NotSpecified": "NotSpecified", "Validate": "Validate"}, + ) + _element.linked_operation = AAZStrArg( + options=["linked-operation"], + required=True, + enum={"CrossResourceGroupResourceMove": "CrossResourceGroupResourceMove", "CrossSubscriptionResourceMove": "CrossSubscriptionResourceMove", "None": "None"}, + ) + + depends_on_types = cls._args_schema.resource_type_registrations.Element.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrArg() + + logging_rules = cls._args_schema.resource_type_registrations.Element.logging_rules + logging_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.logging_rules.Element + _element.action = AAZStrArg( + options=["action"], + required=True, + ) + _element.detail_level = AAZStrArg( + options=["detail-level"], + required=True, + enum={"Body": "Body", "None": "None"}, + ) + _element.direction = AAZStrArg( + options=["direction"], + required=True, + enum={"None": "None", "Request": "Request", "Response": "Response"}, + ) + _element.hidden_property_paths = AAZObjectArg( + options=["hidden-property-paths"], + ) + + hidden_property_paths = cls._args_schema.resource_type_registrations.Element.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListArg( + options=["hidden-paths-on-request"], + ) + hidden_property_paths.hidden_paths_on_response = AAZListArg( + options=["hidden-paths-on-response"], + ) + + hidden_paths_on_request = cls._args_schema.resource_type_registrations.Element.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrArg() + + hidden_paths_on_response = cls._args_schema.resource_type_registrations.Element.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrArg() + + managed_resource_group_configuration = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListArg( + options=["application-ids"], + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectArg( + options=["deny-assignment-configuration"], + ) + managed_resource_group_configuration.enabled = AAZBoolArg( + options=["enabled"], + ) + managed_resource_group_configuration.resource_group_location_override = AAZStrArg( + options=["resource-group-location-override"], + ) + + application_ids = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrArg() + + deny_assignment_configuration = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolArg( + options=["enabled"], + ) + deny_assignment_configuration.not_actions = AAZListArg( + options=["not-actions"], + ) + + not_actions = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrArg() + + management = cls._args_schema.resource_type_registrations.Element.management + management.authorization_owners = AAZListArg( + options=["authorization-owners"], + ) + management.canary_manifest_owners = AAZListArg( + options=["canary-manifest-owners"], + help="List of manifest owners for canary.", + ) + management.error_response_message_options = AAZObjectArg( + options=["error-response-message-options"], + help="Options for error response messages.", + ) + management.expedited_rollout_metadata = AAZObjectArg( + options=["expedited-rollout-metadata"], + help="Metadata for expedited rollout.", + ) + management.expedited_rollout_submitters = AAZListArg( + options=["expedited-rollout-submitters"], + help="List of expedited rollout submitters.", + ) + management.incident_contact_email = AAZStrArg( + options=["incident-contact-email"], + ) + management.incident_routing_service = AAZStrArg( + options=["incident-routing-service"], + ) + management.incident_routing_team = AAZStrArg( + options=["incident-routing-team"], + ) + management.manifest_owners = AAZListArg( + options=["manifest-owners"], + ) + management.pc_code = AAZStrArg( + options=["pc-code"], + help="The profit center code for the subscription.", + ) + management.profit_center_program_id = AAZStrArg( + options=["profit-center-program-id"], + help="The profit center program id for the subscription.", + ) + management.resource_access_policy = AAZStrArg( + options=["resource-access-policy"], + enum={"AcisActionAllowed": "AcisActionAllowed", "AcisReadAllowed": "AcisReadAllowed", "NotSpecified": "NotSpecified"}, + ) + management.resource_access_roles = AAZListArg( + options=["resource-access-roles"], + ) + management.schema_owners = AAZListArg( + options=["schema-owners"], + ) + management.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + ) + + authorization_owners = cls._args_schema.resource_type_registrations.Element.management.authorization_owners + authorization_owners.Element = AAZStrArg() + + canary_manifest_owners = cls._args_schema.resource_type_registrations.Element.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrArg() + + error_response_message_options = cls._args_schema.resource_type_registrations.Element.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrArg( + options=["server-failure-response-message-type"], + help="Type of server failure response message.", + enum={"NotSpecified": "NotSpecified", "OutageReporting": "OutageReporting"}, + ) + + expedited_rollout_metadata = cls._args_schema.resource_type_registrations.Element.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolArg( + options=["enabled"], + help="Expedited rollout enabled?", + ) + expedited_rollout_metadata.expedited_rollout_intent = AAZStrArg( + options=["expedited-rollout-intent"], + help="Expedited rollout intent.", + enum={"Hotfix": "Hotfix", "NotSpecified": "NotSpecified"}, + ) + + expedited_rollout_submitters = cls._args_schema.resource_type_registrations.Element.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrArg() + + manifest_owners = cls._args_schema.resource_type_registrations.Element.management.manifest_owners + manifest_owners.Element = AAZStrArg() + + resource_access_roles = cls._args_schema.resource_type_registrations.Element.management.resource_access_roles + resource_access_roles.Element = AAZObjectArg() + cls._build_args_resource_access_role_create(resource_access_roles.Element) + + schema_owners = cls._args_schema.resource_type_registrations.Element.management.schema_owners + schema_owners.Element = AAZStrArg() + + service_tree_infos = cls._args_schema.resource_type_registrations.Element.management.service_tree_infos + service_tree_infos.Element = AAZObjectArg() + cls._build_args_service_tree_info_create(service_tree_infos.Element) + + marketplace_options = cls._args_schema.resource_type_registrations.Element.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolArg( + options=["add-on-plan-conversion-allowed"], + help="Add-on plan conversion allowed.", + ) + + metadata = cls._args_schema.resource_type_registrations.Element.metadata + metadata.Element = AAZFreeFormDictArg( + blank={}, + ) + + on_behalf_of_tokens = cls._args_schema.resource_type_registrations.Element.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrArg( + options=["action-name"], + ) + on_behalf_of_tokens.life_time = AAZStrArg( + options=["life-time"], + ) + + open_api_configuration = cls._args_schema.resource_type_registrations.Element.open_api_configuration + open_api_configuration.validation = AAZObjectArg( + options=["validation"], + ) + + validation = cls._args_schema.resource_type_registrations.Element.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolArg( + options=["allow-noncompliant-collection-response"], + help="Indicates whether a non compliance response is allowed for a LIST call", + ) + + private_endpoint_configuration = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListArg( + options=["group-connectivity-information"], + help="The list of group connectivity information.", + required=True, + ) + private_endpoint_configuration.min_api_version = AAZStrArg( + options=["min-api-version"], + help="The first api version that support private endpoint.", + required=True, + ) + + group_connectivity_information = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrArg( + options=["group-id"], + help="The group id.", + required=True, + ) + _element.redirect_map_id = AAZStrArg( + options=["redirect-map-id"], + help="The redirect map id.", + ) + _element.required_members = AAZListArg( + options=["required-members"], + help="List of required members for the group id.", + required=True, + ) + _element.required_zone_names = AAZListArg( + options=["required-zone-names"], + help="List of required zone names for the group id.", + required=True, + ) + + required_members = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrArg() + + required_zone_names = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrArg() + + quota_rule = cls._args_schema.resource_type_registrations.Element.quota_rule + quota_rule.location_rules = AAZListArg( + options=["location-rules"], + ) + quota_rule.quota_policy = AAZStrArg( + options=["quota-policy"], + help="Quota policy.", + enum={"Default": "Default", "None": "None", "Restricted": "Restricted"}, + ) + quota_rule.required_features = AAZListArg( + options=["required-features"], + ) + + location_rules = cls._args_schema.resource_type_registrations.Element.quota_rule.location_rules + location_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.quota_rule.location_rules.Element + _element.location = AAZStrArg( + options=["location"], + ) + _element.policy = AAZStrArg( + options=["policy"], + help="Quota policy.", + enum={"Default": "Default", "None": "None", "Restricted": "Restricted"}, + ) + _element.quota_id = AAZStrArg( + options=["quota-id"], + ) + + required_features = cls._args_schema.resource_type_registrations.Element.quota_rule.required_features + required_features.Element = AAZStrArg() + + request_header_options = cls._args_schema.resource_type_registrations.Element.request_header_options + request_header_options.opt_in_headers = AAZStrArg( + options=["opt-in-headers"], + enum={"ClientGroupMembership": "ClientGroupMembership", "ClientPrincipalNameEncoded": "ClientPrincipalNameEncoded", "MSIResourceIdEncoded": "MSIResourceIdEncoded", "ManagementGroupAncestorsEncoded": "ManagementGroupAncestorsEncoded", "NotSpecified": "NotSpecified", "PrivateLinkId": "PrivateLinkId", "PrivateLinkResourceId": "PrivateLinkResourceId", "PrivateLinkVnetTrafficTag": "PrivateLinkVnetTrafficTag", "ResourceGroupLocation": "ResourceGroupLocation", "SignedAuxiliaryTokens": "SignedAuxiliaryTokens", "SignedUserToken": "SignedUserToken", "UnboundedClientGroupMembership": "UnboundedClientGroupMembership"}, + ) + request_header_options.opt_out_headers = AAZStrArg( + options=["opt-out-headers"], + enum={"NotSpecified": "NotSpecified", "SystemDataCreatedByLastModifiedBy": "SystemDataCreatedByLastModifiedBy"}, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.required_features + required_features.Element = AAZStrArg() + + resource_cache = cls._args_schema.resource_type_registrations.Element.resource_cache + resource_cache.enable_resource_cache = AAZBoolArg( + options=["enable-resource-cache"], + help="Enable resource cache.", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrArg( + options=["resource-cache-expiration-timespan"], + help="Resource cache expiration timespan.", + ) + + resource_concurrency_control_options = cls._args_schema.resource_type_registrations.Element.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.resource_concurrency_control_options.Element + _element.policy = AAZStrArg( + options=["policy"], + enum={"NotSpecified": "NotSpecified", "SynchronizeBeginExtension": "SynchronizeBeginExtension"}, + ) + + resource_graph_configuration = cls._args_schema.resource_type_registrations.Element.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrArg( + options=["api-version"], + ) + resource_graph_configuration.enabled = AAZBoolArg( + options=["enabled"], + ) + + resource_management_options = cls._args_schema.resource_type_registrations.Element.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectArg( + options=["batch-provisioning-support"], + help="Batch provisioning support.", + ) + resource_management_options.delete_dependencies = AAZListArg( + options=["delete-dependencies"], + help="Delete dependencies.", + ) + resource_management_options.nested_provisioning_support = AAZObjectArg( + options=["nested-provisioning-support"], + help="Nested provisioning support.", + ) + + batch_provisioning_support = cls._args_schema.resource_type_registrations.Element.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrArg( + options=["supported-operations"], + help="Supported operations.", + enum={"Delete": "Delete", "Get": "Get", "NotSpecified": "NotSpecified"}, + ) + + delete_dependencies = cls._args_schema.resource_type_registrations.Element.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrArg( + options=["linked-property"], + help="Linked property.", + ) + _element.linked_type = AAZStrArg( + options=["linked-type"], + help="Linked type.", + ) + _element.required_features = AAZListArg( + options=["required-features"], + help="Required features.", + ) + + required_features = cls._args_schema.resource_type_registrations.Element.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrArg() + + nested_provisioning_support = cls._args_schema.resource_type_registrations.Element.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrArg( + options=["minimum-api-version"], + help="Minimum API version.", + ) + + resource_move_policy = cls._args_schema.resource_type_registrations.Element.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolArg( + options=["cross-resource-group-move-enabled"], + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolArg( + options=["cross-subscription-move-enabled"], + ) + resource_move_policy.validation_required = AAZBoolArg( + options=["validation-required"], + ) + + resource_query_management = cls._args_schema.resource_type_registrations.Element.resource_query_management + resource_query_management.filter_option = AAZStrArg( + options=["filter-option"], + help="Filter option.", + enum={"EnableSubscriptionFilterOnTenant": "EnableSubscriptionFilterOnTenant", "NotSpecified": "NotSpecified"}, + ) + + resource_type_common_attribute_management = cls._args_schema.resource_type_registrations.Element.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrArg( + options=["common-api-versions-merge-mode"], + help="Common api versions merge mode.", + enum={"Merge": "Merge", "Overwrite": "Overwrite"}, + ) + + routing_rule = cls._args_schema.resource_type_registrations.Element.routing_rule + routing_rule.host_resource_type = AAZStrArg( + options=["host-resource-type"], + help="Hosted resource type.", + ) + + service_tree_infos = cls._args_schema.resource_type_registrations.Element.service_tree_infos + service_tree_infos.Element = AAZObjectArg() + cls._build_args_service_tree_info_create(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._args_schema.resource_type_registrations.Element.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZDurationArg( + options=["soft-delete-ttl"], + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListArg( + options=["subscription-state-override-actions"], + ) + + subscription_state_override_actions = cls._args_schema.resource_type_registrations.Element.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectArg() + cls._build_args_subscription_state_override_action_create(subscription_state_override_actions.Element) + + subscription_state_rules = cls._args_schema.resource_type_registrations.Element.subscription_state_rules + subscription_state_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.subscription_state_rules.Element + _element.allowed_actions = AAZListArg( + options=["allowed-actions"], + ) + _element.state = AAZStrArg( + options=["state"], + enum={"Deleted": "Deleted", "Disabled": "Disabled", "Enabled": "Enabled", "NotDefined": "NotDefined", "PastDue": "PastDue", "Warned": "Warned"}, + ) + + allowed_actions = cls._args_schema.resource_type_registrations.Element.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrArg() + + swagger_specifications = cls._args_schema.resource_type_registrations.Element.swagger_specifications + swagger_specifications.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.swagger_specifications.Element + _element.api_versions = AAZListArg( + options=["api-versions"], + ) + _element.swagger_spec_folder_uri = AAZStrArg( + options=["swagger-spec-folder-uri"], + ) + + api_versions = cls._args_schema.resource_type_registrations.Element.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrArg() + + template_deployment_options = cls._args_schema.resource_type_registrations.Element.template_deployment_options + template_deployment_options.preflight_options = AAZListArg( + options=["preflight-options"], + ) + template_deployment_options.preflight_supported = AAZBoolArg( + options=["preflight-supported"], + ) + + preflight_options = cls._args_schema.resource_type_registrations.Element.template_deployment_options.preflight_options + preflight_options.Element = AAZStrArg( + enum={"ContinueDeploymentOnFailure": "ContinueDeploymentOnFailure", "DefaultValidationOnly": "DefaultValidationOnly", "None": "None"}, + ) + + template_deployment_policy = cls._args_schema.resource_type_registrations.Element.template_deployment_policy + template_deployment_policy.capabilities = AAZStrArg( + options=["capabilities"], + required=True, + enum={"Default": "Default", "Preflight": "Preflight"}, + ) + template_deployment_policy.preflight_notifications = AAZStrArg( + options=["preflight-notifications"], + enum={"None": "None", "UnregisteredSubscriptions": "UnregisteredSubscriptions"}, + ) + template_deployment_policy.preflight_options = AAZStrArg( + options=["preflight-options"], + required=True, + enum={"DeploymentRequests": "DeploymentRequests", "None": "None", "RegisteredOnly": "RegisteredOnly", "TestOnly": "TestOnly", "ValidationRequests": "ValidationRequests"}, + ) + + throttling_rules = cls._args_schema.resource_type_registrations.Element.throttling_rules + throttling_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element + _element.action = AAZStrArg( + options=["action"], + required=True, + ) + _element.application_id = AAZListArg( + options=["application-id"], + ) + _element.metrics = AAZListArg( + options=["metrics"], + required=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + + application_id = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.application_id + application_id.Element = AAZStrArg() + + metrics = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.metrics + metrics.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.metrics.Element + _element.interval = AAZDurationArg( + options=["interval"], + ) + _element.limit = AAZIntArg( + options=["limit"], + required=True, + ) + _element.type = AAZStrArg( + options=["type"], + required=True, + enum={"NotSpecified": "NotSpecified", "NumberOfRequests": "NumberOfRequests", "NumberOfResources": "NumberOfResources"}, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.required_features + required_features.Element = AAZStrArg() + return cls._args_schema + + _args_extended_error_info_create = None + + @classmethod + def _build_args_extended_error_info_create(cls, _schema): + if cls._args_extended_error_info_create is not None: + _schema.additional_info = cls._args_extended_error_info_create.additional_info + _schema.code = cls._args_extended_error_info_create.code + _schema.details = cls._args_extended_error_info_create.details + _schema.message = cls._args_extended_error_info_create.message + _schema.target = cls._args_extended_error_info_create.target + return + + cls._args_extended_error_info_create = AAZObjectArg() + + extended_error_info_create = cls._args_extended_error_info_create + extended_error_info_create.additional_info = AAZListArg( + options=["additional-info"], + help="The additional error information.", + ) + extended_error_info_create.code = AAZStrArg( + options=["code"], + help="The error code.", + ) + extended_error_info_create.details = AAZListArg( + options=["details"], + help="The error details.", + ) + extended_error_info_create.message = AAZStrArg( + options=["message"], + help="The error message.", + ) + extended_error_info_create.target = AAZStrArg( + options=["target"], + help="The target of the error.", + ) + + additional_info = cls._args_extended_error_info_create.additional_info + additional_info.Element = AAZObjectArg() + + _element = cls._args_extended_error_info_create.additional_info.Element + _element.type = AAZStrArg( + options=["type"], + help="The type of the error.", + required=True, + ) + + details = cls._args_extended_error_info_create.details + details.Element = AAZObjectArg() + cls._build_args_extended_error_info_create(details.Element) + + _schema.additional_info = cls._args_extended_error_info_create.additional_info + _schema.code = cls._args_extended_error_info_create.code + _schema.details = cls._args_extended_error_info_create.details + _schema.message = cls._args_extended_error_info_create.message + _schema.target = cls._args_extended_error_info_create.target + + _args_notifications_create = None + + @classmethod + def _build_args_notifications_create(cls, _schema): + if cls._args_notifications_create is not None: + _schema.Element = cls._args_notifications_create.Element + return + + cls._args_notifications_create = AAZListArg() + + notifications_create = cls._args_notifications_create + notifications_create.Element = AAZObjectArg() + + _element = cls._args_notifications_create.Element + _element.notification_type = AAZStrArg( + options=["notification-type"], + enum={"SubscriptionNotification": "SubscriptionNotification", "Unspecified": "Unspecified"}, + ) + _element.skip_notifications = AAZStrArg( + options=["skip-notifications"], + enum={"Disabled": "Disabled", "Enabled": "Enabled", "Unspecified": "Unspecified"}, + ) + + _schema.Element = cls._args_notifications_create.Element + + _args_resource_access_role_create = None + + @classmethod + def _build_args_resource_access_role_create(cls, _schema): + if cls._args_resource_access_role_create is not None: + _schema.actions = cls._args_resource_access_role_create.actions + _schema.allowed_group_claims = cls._args_resource_access_role_create.allowed_group_claims + return + + cls._args_resource_access_role_create = AAZObjectArg() + + resource_access_role_create = cls._args_resource_access_role_create + resource_access_role_create.actions = AAZListArg( + options=["actions"], + ) + resource_access_role_create.allowed_group_claims = AAZListArg( + options=["allowed-group-claims"], + ) + + actions = cls._args_resource_access_role_create.actions + actions.Element = AAZStrArg() + + allowed_group_claims = cls._args_resource_access_role_create.allowed_group_claims + allowed_group_claims.Element = AAZStrArg() + + _schema.actions = cls._args_resource_access_role_create.actions + _schema.allowed_group_claims = cls._args_resource_access_role_create.allowed_group_claims + + _args_resource_provider_authorization_rules_create = None + + @classmethod + def _build_args_resource_provider_authorization_rules_create(cls, _schema): + if cls._args_resource_provider_authorization_rules_create is not None: + _schema.async_operation_polling_rules = cls._args_resource_provider_authorization_rules_create.async_operation_polling_rules + return + + cls._args_resource_provider_authorization_rules_create = AAZObjectArg() + + resource_provider_authorization_rules_create = cls._args_resource_provider_authorization_rules_create + resource_provider_authorization_rules_create.async_operation_polling_rules = AAZObjectArg( + options=["async-operation-polling-rules"], + ) + + async_operation_polling_rules = cls._args_resource_provider_authorization_rules_create.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrArg( + options=["additional-options"], + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + async_operation_polling_rules.authorization_actions = AAZListArg( + options=["authorization-actions"], + ) + + authorization_actions = cls._args_resource_provider_authorization_rules_create.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrArg() + + _schema.async_operation_polling_rules = cls._args_resource_provider_authorization_rules_create.async_operation_polling_rules + + _args_resource_provider_authorization_create = None + + @classmethod + def _build_args_resource_provider_authorization_create(cls, _schema): + if cls._args_resource_provider_authorization_create is not None: + _schema.allowed_third_party_extensions = cls._args_resource_provider_authorization_create.allowed_third_party_extensions + _schema.application_id = cls._args_resource_provider_authorization_create.application_id + _schema.grouping_tag = cls._args_resource_provider_authorization_create.grouping_tag + _schema.managed_by_authorization = cls._args_resource_provider_authorization_create.managed_by_authorization + _schema.managed_by_role_definition_id = cls._args_resource_provider_authorization_create.managed_by_role_definition_id + _schema.role_definition_id = cls._args_resource_provider_authorization_create.role_definition_id + return + + cls._args_resource_provider_authorization_create = AAZObjectArg() + + resource_provider_authorization_create = cls._args_resource_provider_authorization_create + resource_provider_authorization_create.allowed_third_party_extensions = AAZListArg( + options=["allowed-third-party-extensions"], + ) + resource_provider_authorization_create.application_id = AAZStrArg( + options=["application-id"], + ) + resource_provider_authorization_create.grouping_tag = AAZStrArg( + options=["grouping-tag"], + ) + resource_provider_authorization_create.managed_by_authorization = AAZObjectArg( + options=["managed-by-authorization"], + help="Managed by authorization.", + ) + resource_provider_authorization_create.managed_by_role_definition_id = AAZStrArg( + options=["managed-by-role-definition-id"], + ) + resource_provider_authorization_create.role_definition_id = AAZStrArg( + options=["role-definition-id"], + ) + + allowed_third_party_extensions = cls._args_resource_provider_authorization_create.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectArg() + + _element = cls._args_resource_provider_authorization_create.allowed_third_party_extensions.Element + _element.name = AAZStrArg( + options=["name"], + help="Name of third party extension.", + ) + + managed_by_authorization = cls._args_resource_provider_authorization_create.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListArg( + options=["additional-authorizations"], + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolArg( + options=["allow-managed-by-inheritance"], + help="Indicates whether the managed by resource role definition ID should be inherited.", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrArg( + options=["managed-by-resource-role-definition-id"], + help="The managed by resource role definition ID for the application.", + ) + + additional_authorizations = cls._args_resource_provider_authorization_create.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectArg() + + _element = cls._args_resource_provider_authorization_create.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrArg( + options=["application-id"], + ) + _element.role_definition_id = AAZStrArg( + options=["role-definition-id"], + ) + + _schema.allowed_third_party_extensions = cls._args_resource_provider_authorization_create.allowed_third_party_extensions + _schema.application_id = cls._args_resource_provider_authorization_create.application_id + _schema.grouping_tag = cls._args_resource_provider_authorization_create.grouping_tag + _schema.managed_by_authorization = cls._args_resource_provider_authorization_create.managed_by_authorization + _schema.managed_by_role_definition_id = cls._args_resource_provider_authorization_create.managed_by_role_definition_id + _schema.role_definition_id = cls._args_resource_provider_authorization_create.role_definition_id + + _args_resource_provider_endpoint_create = None + + @classmethod + def _build_args_resource_provider_endpoint_create(cls, _schema): + if cls._args_resource_provider_endpoint_create is not None: + _schema.api_versions = cls._args_resource_provider_endpoint_create.api_versions + _schema.enabled = cls._args_resource_provider_endpoint_create.enabled + _schema.endpoint_type = cls._args_resource_provider_endpoint_create.endpoint_type + _schema.endpoint_uri = cls._args_resource_provider_endpoint_create.endpoint_uri + _schema.features_rule = cls._args_resource_provider_endpoint_create.features_rule + _schema.locations = cls._args_resource_provider_endpoint_create.locations + _schema.required_features = cls._args_resource_provider_endpoint_create.required_features + _schema.sku_link = cls._args_resource_provider_endpoint_create.sku_link + _schema.timeout = cls._args_resource_provider_endpoint_create.timeout + return + + cls._args_resource_provider_endpoint_create = AAZObjectArg() + + resource_provider_endpoint_create = cls._args_resource_provider_endpoint_create + resource_provider_endpoint_create.api_versions = AAZListArg( + options=["api-versions"], + ) + resource_provider_endpoint_create.enabled = AAZBoolArg( + options=["enabled"], + ) + resource_provider_endpoint_create.endpoint_type = AAZStrArg( + options=["endpoint-type"], + enum={"Canary": "Canary", "NotSpecified": "NotSpecified", "Production": "Production", "TestInProduction": "TestInProduction"}, + ) + resource_provider_endpoint_create.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + ) + resource_provider_endpoint_create.features_rule = AAZObjectArg( + options=["features-rule"], + ) + resource_provider_endpoint_create.locations = AAZListArg( + options=["locations"], + ) + resource_provider_endpoint_create.required_features = AAZListArg( + options=["required-features"], + ) + resource_provider_endpoint_create.sku_link = AAZStrArg( + options=["sku-link"], + ) + resource_provider_endpoint_create.timeout = AAZDurationArg( + options=["timeout"], + ) + + api_versions = cls._args_resource_provider_endpoint_create.api_versions + api_versions.Element = AAZStrArg() + + features_rule = cls._args_resource_provider_endpoint_create.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + required=True, + enum={"All": "All", "Any": "Any"}, + ) + + locations = cls._args_resource_provider_endpoint_create.locations + locations.Element = AAZStrArg() + + required_features = cls._args_resource_provider_endpoint_create.required_features + required_features.Element = AAZStrArg() + + _schema.api_versions = cls._args_resource_provider_endpoint_create.api_versions + _schema.enabled = cls._args_resource_provider_endpoint_create.enabled + _schema.endpoint_type = cls._args_resource_provider_endpoint_create.endpoint_type + _schema.endpoint_uri = cls._args_resource_provider_endpoint_create.endpoint_uri + _schema.features_rule = cls._args_resource_provider_endpoint_create.features_rule + _schema.locations = cls._args_resource_provider_endpoint_create.locations + _schema.required_features = cls._args_resource_provider_endpoint_create.required_features + _schema.sku_link = cls._args_resource_provider_endpoint_create.sku_link + _schema.timeout = cls._args_resource_provider_endpoint_create.timeout + + _args_service_tree_info_create = None + + @classmethod + def _build_args_service_tree_info_create(cls, _schema): + if cls._args_service_tree_info_create is not None: + _schema.component_id = cls._args_service_tree_info_create.component_id + _schema.readiness = cls._args_service_tree_info_create.readiness + _schema.service_id = cls._args_service_tree_info_create.service_id + return + + cls._args_service_tree_info_create = AAZObjectArg() + + service_tree_info_create = cls._args_service_tree_info_create + service_tree_info_create.component_id = AAZStrArg( + options=["component-id"], + ) + service_tree_info_create.readiness = AAZStrArg( + options=["readiness"], + enum={"ClosingDown": "ClosingDown", "Deprecated": "Deprecated", "GA": "GA", "InDevelopment": "InDevelopment", "InternalOnly": "InternalOnly", "PrivatePreview": "PrivatePreview", "PublicPreview": "PublicPreview", "RemovedFromARM": "RemovedFromARM", "Retired": "Retired"}, + ) + service_tree_info_create.service_id = AAZStrArg( + options=["service-id"], + ) + + _schema.component_id = cls._args_service_tree_info_create.component_id + _schema.readiness = cls._args_service_tree_info_create.readiness + _schema.service_id = cls._args_service_tree_info_create.service_id + + _args_subscription_state_override_action_create = None + + @classmethod + def _build_args_subscription_state_override_action_create(cls, _schema): + if cls._args_subscription_state_override_action_create is not None: + _schema.action = cls._args_subscription_state_override_action_create.action + _schema.state = cls._args_subscription_state_override_action_create.state + return + + cls._args_subscription_state_override_action_create = AAZObjectArg() + + subscription_state_override_action_create = cls._args_subscription_state_override_action_create + subscription_state_override_action_create.action = AAZStrArg( + options=["action"], + required=True, + enum={"BillingCancellation": "BillingCancellation", "DeleteAllResources": "DeleteAllResources", "NoOp": "NoOp", "NotDefined": "NotDefined", "SoftDeleteAllResources": "SoftDeleteAllResources", "UndoSoftDelete": "UndoSoftDelete"}, + ) + subscription_state_override_action_create.state = AAZStrArg( + options=["state"], + required=True, + enum={"Deleted": "Deleted", "Registered": "Registered", "Suspended": "Suspended", "SuspendedToDeleted": "SuspendedToDeleted", "SuspendedToRegistered": "SuspendedToRegistered", "SuspendedToUnregistered": "SuspendedToUnregistered", "SuspendedToWarned": "SuspendedToWarned", "Unregistered": "Unregistered", "Warned": "Warned", "WarnedToDeleted": "WarnedToDeleted", "WarnedToRegistered": "WarnedToRegistered", "WarnedToSuspended": "WarnedToSuspended", "WarnedToUnregistered": "WarnedToUnregistered"}, + ) + + _schema.action = cls._args_subscription_state_override_action_create.action + _schema.state = cls._args_subscription_state_override_action_create.state + + _args_token_auth_configuration_create = None + + @classmethod + def _build_args_token_auth_configuration_create(cls, _schema): + if cls._args_token_auth_configuration_create is not None: + _schema.authentication_scheme = cls._args_token_auth_configuration_create.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_create.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_create.signed_request_scope + return + + cls._args_token_auth_configuration_create = AAZObjectArg() + + token_auth_configuration_create = cls._args_token_auth_configuration_create + token_auth_configuration_create.authentication_scheme = AAZStrArg( + options=["authentication-scheme"], + enum={"Bearer": "Bearer", "PoP": "PoP"}, + ) + token_auth_configuration_create.disable_certificate_authentication_fallback = AAZBoolArg( + options=["disable-certificate-authentication-fallback"], + ) + token_auth_configuration_create.signed_request_scope = AAZStrArg( + options=["signed-request-scope"], + enum={"Endpoint": "Endpoint", "ResourceUri": "ResourceUri"}, + ) + + _schema.authentication_scheme = cls._args_token_auth_configuration_create.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_create.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_create.signed_request_scope + + def _execute_operations(self): + self.pre_operations() + yield self.CustomRolloutsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class CustomRolloutsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("specification", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("status", AAZObjectType, ".status") + + specification = _builder.get(".properties.specification") + if specification is not None: + specification.set_prop("autoProvisionConfig", AAZObjectType, ".auto_provision_config") + specification.set_prop("canary", AAZObjectType, ".canary") + specification.set_prop("manifestCheckinSpecification", AAZObjectType, ".manifest_checkin_specification") + specification.set_prop("providerRegistration", AAZObjectType, ".provider_registration") + specification.set_prop("refreshSubscriptionRegistration", AAZBoolType, ".refresh_subscription_registration") + specification.set_prop("releaseScopes", AAZListType, ".release_scopes") + specification.set_prop("resourceTypeRegistrations", AAZListType, ".resource_type_registrations") + specification.set_prop("skipReleaseScopeValidation", AAZBoolType, ".skip_release_scope_validation") + + auto_provision_config = _builder.get(".properties.specification.autoProvisionConfig") + if auto_provision_config is not None: + auto_provision_config.set_prop("resourceGraph", AAZBoolType, ".resource_graph") + auto_provision_config.set_prop("storage", AAZBoolType, ".storage") + + canary = _builder.get(".properties.specification.canary") + if canary is not None: + canary.set_prop("regions", AAZListType, ".regions") + + regions = _builder.get(".properties.specification.canary.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + manifest_checkin_specification = _builder.get(".properties.specification.manifestCheckinSpecification") + if manifest_checkin_specification is not None: + manifest_checkin_specification.set_prop("manifestCheckinOption", AAZStrType, ".manifest_checkin_option") + manifest_checkin_specification.set_prop("manifestCheckinParams", AAZObjectType, ".manifest_checkin_params") + + manifest_checkin_params = _builder.get(".properties.specification.manifestCheckinSpecification.manifestCheckinParams") + if manifest_checkin_params is not None: + manifest_checkin_params.set_prop("baselineArmManifestLocation", AAZStrType, ".baseline_arm_manifest_location", typ_kwargs={"flags": {"required": True}}) + manifest_checkin_params.set_prop("environment", AAZStrType, ".environment", typ_kwargs={"flags": {"required": True}}) + + provider_registration = _builder.get(".properties.specification.providerRegistration") + if provider_registration is not None: + provider_registration.set_prop("kind", AAZStrType, ".kind") + provider_registration.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties.specification.providerRegistration.properties") + if properties is not None: + properties.set_prop("capabilities", AAZListType, ".capabilities") + properties.set_prop("crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") + properties.set_prop("customManifestVersion", AAZStrType, ".custom_manifest_version") + properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + properties.set_prop("enableTenantLinkedNotification", AAZBoolType, ".enable_tenant_linked_notification", typ_kwargs={"nullable": True}) + properties.set_prop("featuresRule", AAZObjectType, ".features_rule") + properties.set_prop("globalNotificationEndpoints", AAZListType, ".global_notification_endpoints") + properties.set_prop("legacyNamespace", AAZStrType, ".legacy_namespace") + properties.set_prop("legacyRegistrations", AAZListType, ".legacy_registrations") + properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") + properties.set_prop("management", AAZObjectType, ".management") + properties.set_prop("managementGroupGlobalNotificationEndpoints", AAZListType, ".management_group_global_notification_endpoints") + properties.set_prop("metadata", AAZFreeFormDictType, ".metadata") + properties.set_prop("namespace", AAZStrType, ".namespace") + properties.set_prop("notificationOptions", AAZStrType, ".notification_options") + properties.set_prop("notificationSettings", AAZObjectType, ".notification_settings") + _CreateHelper._build_schema_notifications_create(properties.set_prop("notifications", AAZListType, ".notifications")) + properties.set_prop("optionalFeatures", AAZListType, ".optional_features") + properties.set_prop("privateResourceProviderConfiguration", AAZObjectType, ".private_resource_provider_configuration") + properties.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") + properties.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") + properties.set_prop("providerHubMetadata", AAZObjectType, ".provider_hub_metadata") + properties.set_prop("providerType", AAZStrType, ".provider_type") + properties.set_prop("providerVersion", AAZStrType, ".provider_version") + properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") + properties.set_prop("requiredFeatures", AAZListType, ".required_features") + properties.set_prop("resourceGroupLockOptionDuringMove", AAZObjectType, ".resource_group_lock_option_during_move") + properties.set_prop("resourceHydrationAccounts", AAZListType, ".resource_hydration_accounts") + _CreateHelper._build_schema_resource_provider_authorization_rules_create(properties.set_prop("resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) + properties.set_prop("responseOptions", AAZObjectType, ".response_options") + properties.set_prop("serviceName", AAZStrType, ".service_name") + properties.set_prop("services", AAZListType, ".services") + properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") + properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") + _CreateHelper._build_schema_token_auth_configuration_create(properties.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + capabilities = _builder.get(".properties.specification.providerRegistration.properties.capabilities") + if capabilities is not None: + capabilities.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.capabilities[]") + if _elements is not None: + _elements.set_prop("effect", AAZStrType, ".effect", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quotaId", AAZStrType, ".quota_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + required_features = _builder.get(".properties.specification.providerRegistration.properties.capabilities[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.providerRegistration.properties.dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + features_rule = _builder.get(".properties.specification.providerRegistration.properties.featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + global_notification_endpoints = _builder.get(".properties.specification.providerRegistration.properties.globalNotificationEndpoints") + if global_notification_endpoints is not None: + _CreateHelper._build_schema_resource_provider_endpoint_create(global_notification_endpoints.set_elements(AAZObjectType, ".")) + + legacy_registrations = _builder.get(".properties.specification.providerRegistration.properties.legacyRegistrations") + if legacy_registrations is not None: + legacy_registrations.set_elements(AAZStrType, ".") + + linked_notification_rules = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules") + if linked_notification_rules is not None: + linked_notification_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + _elements.set_prop("endpoints", AAZListType, ".endpoints") + _CreateHelper._build_schema_token_auth_configuration_create(_elements.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + actions = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[].dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + endpoints = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[].endpoints") + if endpoints is not None: + _CreateHelper._build_schema_resource_provider_endpoint_create(endpoints.set_elements(AAZObjectType, ".")) + + management = _builder.get(".properties.specification.providerRegistration.properties.management") + if management is not None: + management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") + management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") + management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") + management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") + management.set_prop("expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") + management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") + management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") + management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") + management.set_prop("manifestOwners", AAZListType, ".manifest_owners") + management.set_prop("pcCode", AAZStrType, ".pc_code") + management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") + management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") + management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") + management.set_prop("schemaOwners", AAZListType, ".schema_owners") + management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + + authorization_owners = _builder.get(".properties.specification.providerRegistration.properties.management.authorizationOwners") + if authorization_owners is not None: + authorization_owners.set_elements(AAZStrType, ".") + + canary_manifest_owners = _builder.get(".properties.specification.providerRegistration.properties.management.canaryManifestOwners") + if canary_manifest_owners is not None: + canary_manifest_owners.set_elements(AAZStrType, ".") + + error_response_message_options = _builder.get(".properties.specification.providerRegistration.properties.management.errorResponseMessageOptions") + if error_response_message_options is not None: + error_response_message_options.set_prop("serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") + + expedited_rollout_metadata = _builder.get(".properties.specification.providerRegistration.properties.management.expeditedRolloutMetadata") + if expedited_rollout_metadata is not None: + expedited_rollout_metadata.set_prop("enabled", AAZBoolType, ".enabled") + expedited_rollout_metadata.set_prop("expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") + + expedited_rollout_submitters = _builder.get(".properties.specification.providerRegistration.properties.management.expeditedRolloutSubmitters") + if expedited_rollout_submitters is not None: + expedited_rollout_submitters.set_elements(AAZStrType, ".") + + manifest_owners = _builder.get(".properties.specification.providerRegistration.properties.management.manifestOwners") + if manifest_owners is not None: + manifest_owners.set_elements(AAZStrType, ".") + + resource_access_roles = _builder.get(".properties.specification.providerRegistration.properties.management.resourceAccessRoles") + if resource_access_roles is not None: + _CreateHelper._build_schema_resource_access_role_create(resource_access_roles.set_elements(AAZObjectType, ".")) + + schema_owners = _builder.get(".properties.specification.providerRegistration.properties.management.schemaOwners") + if schema_owners is not None: + schema_owners.set_elements(AAZStrType, ".") + + service_tree_infos = _builder.get(".properties.specification.providerRegistration.properties.management.serviceTreeInfos") + if service_tree_infos is not None: + _CreateHelper._build_schema_service_tree_info_create(service_tree_infos.set_elements(AAZObjectType, ".")) + + management_group_global_notification_endpoints = _builder.get(".properties.specification.providerRegistration.properties.managementGroupGlobalNotificationEndpoints") + if management_group_global_notification_endpoints is not None: + _CreateHelper._build_schema_resource_provider_endpoint_create(management_group_global_notification_endpoints.set_elements(AAZObjectType, ".")) + + metadata = _builder.get(".properties.specification.providerRegistration.properties.metadata") + if metadata is not None: + metadata.set_anytype_elements(".") + + notification_settings = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings") + if notification_settings is not None: + notification_settings.set_prop("subscriberSettings", AAZListType, ".subscriber_settings") + + subscriber_settings = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings") + if subscriber_settings is not None: + subscriber_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[]") + if _elements is not None: + _elements.set_prop("filterRules", AAZListType, ".filter_rules") + + filter_rules = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules") + if filter_rules is not None: + filter_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[]") + if _elements is not None: + _elements.set_prop("endpointInformation", AAZListType, ".endpoint_information") + _elements.set_prop("filterQuery", AAZStrType, ".filter_query") + + endpoint_information = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation") + if endpoint_information is not None: + endpoint_information.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation[]") + if _elements is not None: + _elements.set_prop("endpoint", AAZStrType, ".endpoint") + _elements.set_prop("endpointType", AAZStrType, ".endpoint_type") + _elements.set_prop("schemaVersion", AAZStrType, ".schema_version") + + optional_features = _builder.get(".properties.specification.providerRegistration.properties.optionalFeatures") + if optional_features is not None: + optional_features.set_elements(AAZStrType, ".") + + private_resource_provider_configuration = _builder.get(".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration") + if private_resource_provider_configuration is not None: + private_resource_provider_configuration.set_prop("allowedSubscriptions", AAZListType, ".allowed_subscriptions") + + allowed_subscriptions = _builder.get(".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration.allowedSubscriptions") + if allowed_subscriptions is not None: + allowed_subscriptions.set_elements(AAZStrType, ".") + + provider_authentication = _builder.get(".properties.specification.providerRegistration.properties.providerAuthentication") + if provider_authentication is not None: + provider_authentication.set_prop("allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) + + allowed_audiences = _builder.get(".properties.specification.providerRegistration.properties.providerAuthentication.allowedAudiences") + if allowed_audiences is not None: + allowed_audiences.set_elements(AAZStrType, ".") + + provider_authorizations = _builder.get(".properties.specification.providerRegistration.properties.providerAuthorizations") + if provider_authorizations is not None: + _CreateHelper._build_schema_resource_provider_authorization_create(provider_authorizations.set_elements(AAZObjectType, ".")) + + provider_hub_metadata = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata") + if provider_hub_metadata is not None: + provider_hub_metadata.set_prop("directRpRoleDefinitionId", AAZStrType, ".direct_rp_role_definition_id") + provider_hub_metadata.set_prop("globalAsyncOperationResourceTypeName", AAZStrType, ".global_async_operation_resource_type_name") + provider_hub_metadata.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") + provider_hub_metadata.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") + provider_hub_metadata.set_prop("regionalAsyncOperationResourceTypeName", AAZStrType, ".regional_async_operation_resource_type_name") + provider_hub_metadata.set_prop("thirdPartyProviderAuthorization", AAZObjectType, ".third_party_provider_authorization") + + provider_authentication = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication") + if provider_authentication is not None: + provider_authentication.set_prop("allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) + + allowed_audiences = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication.allowedAudiences") + if allowed_audiences is not None: + allowed_audiences.set_elements(AAZStrType, ".") + + provider_authorizations = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthorizations") + if provider_authorizations is not None: + _CreateHelper._build_schema_resource_provider_authorization_create(provider_authorizations.set_elements(AAZObjectType, ".")) + + third_party_provider_authorization = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization") + if third_party_provider_authorization is not None: + third_party_provider_authorization.set_prop("authorizations", AAZListType, ".authorizations") + third_party_provider_authorization.set_prop("managedByTenantId", AAZStrType, ".managed_by_tenant_id") + + authorizations = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations") + if authorizations is not None: + authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations[]") + if _elements is not None: + _elements.set_prop("principalId", AAZStrType, ".principal_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id", typ_kwargs={"flags": {"required": True}}) + + request_header_options = _builder.get(".properties.specification.providerRegistration.properties.requestHeaderOptions") + if request_header_options is not None: + request_header_options.set_prop("optInHeaders", AAZStrType, ".opt_in_headers") + request_header_options.set_prop("optOutHeaders", AAZStrType, ".opt_out_headers") + + required_features = _builder.get(".properties.specification.providerRegistration.properties.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + resource_group_lock_option_during_move = _builder.get(".properties.specification.providerRegistration.properties.resourceGroupLockOptionDuringMove") + if resource_group_lock_option_during_move is not None: + resource_group_lock_option_during_move.set_prop("blockActionVerb", AAZStrType, ".block_action_verb") + + resource_hydration_accounts = _builder.get(".properties.specification.providerRegistration.properties.resourceHydrationAccounts") + if resource_hydration_accounts is not None: + resource_hydration_accounts.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.resourceHydrationAccounts[]") + if _elements is not None: + _elements.set_prop("accountName", AAZStrType, ".account_name") + _elements.set_prop("encryptedKey", AAZStrType, ".encrypted_key") + _elements.set_prop("maxChildResourceConsistencyJobLimit", AAZIntType, ".max_child_resource_consistency_job_limit") + _elements.set_prop("subscriptionId", AAZStrType, ".subscription_id") + + response_options = _builder.get(".properties.specification.providerRegistration.properties.responseOptions") + if response_options is not None: + response_options.set_prop("serviceClientOptionsType", AAZStrType, ".service_client_options_type") + + services = _builder.get(".properties.specification.providerRegistration.properties.services") + if services is not None: + services.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.services[]") + if _elements is not None: + _elements.set_prop("serviceName", AAZStrType, ".service_name") + _elements.set_prop("status", AAZStrType, ".status") + + subscription_lifecycle_notification_specifications = _builder.get(".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications") + if subscription_lifecycle_notification_specifications is not None: + subscription_lifecycle_notification_specifications.set_prop("softDeleteTTL", AAZStrType, ".soft_delete_ttl") + subscription_lifecycle_notification_specifications.set_prop("subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") + + subscription_state_override_actions = _builder.get(".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") + if subscription_state_override_actions is not None: + _CreateHelper._build_schema_subscription_state_override_action_create(subscription_state_override_actions.set_elements(AAZObjectType, ".")) + + template_deployment_options = _builder.get(".properties.specification.providerRegistration.properties.templateDeploymentOptions") + if template_deployment_options is not None: + template_deployment_options.set_prop("preflightOptions", AAZListType, ".preflight_options") + template_deployment_options.set_prop("preflightSupported", AAZBoolType, ".preflight_supported") + + preflight_options = _builder.get(".properties.specification.providerRegistration.properties.templateDeploymentOptions.preflightOptions") + if preflight_options is not None: + preflight_options.set_elements(AAZStrType, ".") + + release_scopes = _builder.get(".properties.specification.releaseScopes") + if release_scopes is not None: + release_scopes.set_elements(AAZStrType, ".") + + resource_type_registrations = _builder.get(".properties.specification.resourceTypeRegistrations") + if resource_type_registrations is not None: + resource_type_registrations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[]") + if _elements is not None: + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties.specification.resourceTypeRegistrations[].properties") + if properties is not None: + properties.set_prop("addResourceListTargetLocations", AAZBoolType, ".add_resource_list_target_locations") + properties.set_prop("additionalOptions", AAZStrType, ".additional_options") + properties.set_prop("allowEmptyRoleAssignments", AAZBoolType, ".allow_empty_role_assignments") + properties.set_prop("allowedResourceNames", AAZListType, ".allowed_resource_names") + properties.set_prop("allowedTemplateDeploymentReferenceActions", AAZListType, ".allowed_template_deployment_reference_actions") + properties.set_prop("allowedUnauthorizedActions", AAZListType, ".allowed_unauthorized_actions") + properties.set_prop("apiProfiles", AAZListType, ".api_profiles") + properties.set_prop("asyncOperationResourceTypeName", AAZStrType, ".async_operation_resource_type_name") + properties.set_prop("asyncTimeoutRules", AAZListType, ".async_timeout_rules") + properties.set_prop("authorizationActionMappings", AAZListType, ".authorization_action_mappings") + properties.set_prop("availabilityZoneRule", AAZObjectType, ".availability_zone_rule") + properties.set_prop("capacityRule", AAZObjectType, ".capacity_rule") + properties.set_prop("category", AAZStrType, ".category") + properties.set_prop("checkNameAvailabilitySpecifications", AAZObjectType, ".check_name_availability_specifications") + properties.set_prop("commonApiVersions", AAZListType, ".common_api_versions") + properties.set_prop("crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") + properties.set_prop("defaultApiVersion", AAZStrType, ".default_api_version") + properties.set_prop("disallowedActionVerbs", AAZListType, ".disallowed_action_verbs") + properties.set_prop("disallowedEndUserOperations", AAZListType, ".disallowed_end_user_operations") + properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + properties.set_prop("enableAsyncOperation", AAZBoolType, ".enable_async_operation") + properties.set_prop("enableThirdPartyS2S", AAZBoolType, ".enable_third_party_s2_s") + properties.set_prop("endpoints", AAZListType, ".endpoints") + properties.set_prop("extendedLocations", AAZListType, ".extended_locations") + properties.set_prop("extensionOptions", AAZObjectType, ".extension_options") + properties.set_prop("featuresRule", AAZObjectType, ".features_rule") + properties.set_prop("frontdoorRequestMode", AAZStrType, ".frontdoor_request_mode") + properties.set_prop("groupingTag", AAZStrType, ".grouping_tag") + properties.set_prop("identityManagement", AAZObjectType, ".identity_management") + properties.set_prop("isPureProxy", AAZBoolType, ".is_pure_proxy") + properties.set_prop("legacyName", AAZStrType, ".legacy_name") + properties.set_prop("legacyNames", AAZListType, ".legacy_names") + properties.set_prop("legacyPolicy", AAZObjectType, ".legacy_policy") + properties.set_prop("linkedAccessChecks", AAZListType, ".linked_access_checks") + properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") + properties.set_prop("linkedOperationRules", AAZListType, ".linked_operation_rules") + properties.set_prop("loggingRules", AAZListType, ".logging_rules") + properties.set_prop("managedResourceGroupConfiguration", AAZObjectType, ".managed_resource_group_configuration") + properties.set_prop("management", AAZObjectType, ".management") + properties.set_prop("manifestLink", AAZStrType, ".manifest_link") + properties.set_prop("marketplaceOptions", AAZObjectType, ".marketplace_options") + properties.set_prop("marketplaceType", AAZStrType, ".marketplace_type") + properties.set_prop("metadata", AAZDictType, ".metadata") + _CreateHelper._build_schema_notifications_create(properties.set_prop("notifications", AAZListType, ".notifications")) + properties.set_prop("onBehalfOfTokens", AAZObjectType, ".on_behalf_of_tokens") + properties.set_prop("openApiConfiguration", AAZObjectType, ".open_api_configuration") + properties.set_prop("policyExecutionType", AAZStrType, ".policy_execution_type") + properties.set_prop("privateEndpointConfiguration", AAZObjectType, ".private_endpoint_configuration") + properties.set_prop("quotaRule", AAZObjectType, ".quota_rule") + properties.set_prop("regionality", AAZStrType, ".regionality") + properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") + properties.set_prop("requiredFeatures", AAZListType, ".required_features") + properties.set_prop("resourceCache", AAZObjectType, ".resource_cache") + properties.set_prop("resourceConcurrencyControlOptions", AAZDictType, ".resource_concurrency_control_options") + properties.set_prop("resourceDeletionPolicy", AAZStrType, ".resource_deletion_policy") + properties.set_prop("resourceGraphConfiguration", AAZObjectType, ".resource_graph_configuration") + properties.set_prop("resourceManagementOptions", AAZObjectType, ".resource_management_options") + properties.set_prop("resourceMovePolicy", AAZObjectType, ".resource_move_policy") + _CreateHelper._build_schema_resource_provider_authorization_rules_create(properties.set_prop("resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) + properties.set_prop("resourceQueryManagement", AAZObjectType, ".resource_query_management") + properties.set_prop("resourceSubType", AAZStrType, ".resource_sub_type") + properties.set_prop("resourceTypeCommonAttributeManagement", AAZObjectType, ".resource_type_common_attribute_management") + properties.set_prop("resourceValidation", AAZStrType, ".resource_validation") + properties.set_prop("routingRule", AAZObjectType, ".routing_rule") + properties.set_prop("routingType", AAZStrType, ".routing_type") + properties.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + properties.set_prop("skuLink", AAZStrType, ".sku_link") + properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") + properties.set_prop("subscriptionStateRules", AAZListType, ".subscription_state_rules") + properties.set_prop("supportsTags", AAZBoolType, ".supports_tags") + properties.set_prop("swaggerSpecifications", AAZListType, ".swagger_specifications") + properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") + properties.set_prop("templateDeploymentPolicy", AAZObjectType, ".template_deployment_policy") + properties.set_prop("throttlingRules", AAZListType, ".throttling_rules") + _CreateHelper._build_schema_token_auth_configuration_create(properties.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + allowed_resource_names = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames") + if allowed_resource_names is not None: + allowed_resource_names.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames[]") + if _elements is not None: + _elements.set_prop("getActionVerb", AAZStrType, ".get_action_verb") + _elements.set_prop("name", AAZStrType, ".name") + + allowed_template_deployment_reference_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedTemplateDeploymentReferenceActions") + if allowed_template_deployment_reference_actions is not None: + allowed_template_deployment_reference_actions.set_elements(AAZStrType, ".") + + allowed_unauthorized_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedUnauthorizedActions") + if allowed_unauthorized_actions is not None: + allowed_unauthorized_actions.set_elements(AAZStrType, ".") + + api_profiles = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.apiProfiles") + if api_profiles is not None: + api_profiles.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.apiProfiles[]") + if _elements is not None: + _elements.set_prop("apiVersion", AAZStrType, ".api_version") + _elements.set_prop("profileVersion", AAZStrType, ".profile_version") + + async_timeout_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules") + if async_timeout_rules is not None: + async_timeout_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules[]") + if _elements is not None: + _elements.set_prop("actionName", AAZStrType, ".action_name") + _elements.set_prop("timeout", AAZStrType, ".timeout") + + authorization_action_mappings = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings") + if authorization_action_mappings is not None: + authorization_action_mappings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings[]") + if _elements is not None: + _elements.set_prop("desired", AAZStrType, ".desired") + _elements.set_prop("original", AAZStrType, ".original") + + availability_zone_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.availabilityZoneRule") + if availability_zone_rule is not None: + availability_zone_rule.set_prop("availabilityZonePolicy", AAZStrType, ".availability_zone_policy") + + capacity_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.capacityRule") + if capacity_rule is not None: + capacity_rule.set_prop("capacityPolicy", AAZStrType, ".capacity_policy") + capacity_rule.set_prop("skuAlias", AAZStrType, ".sku_alias") + + check_name_availability_specifications = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications") + if check_name_availability_specifications is not None: + check_name_availability_specifications.set_prop("enableDefaultValidation", AAZBoolType, ".enable_default_validation") + check_name_availability_specifications.set_prop("resourceTypesWithCustomValidation", AAZListType, ".resource_types_with_custom_validation") + + resource_types_with_custom_validation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications.resourceTypesWithCustomValidation") + if resource_types_with_custom_validation is not None: + resource_types_with_custom_validation.set_elements(AAZStrType, ".") + + common_api_versions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.commonApiVersions") + if common_api_versions is not None: + common_api_versions.set_elements(AAZStrType, ".") + + disallowed_action_verbs = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.disallowedActionVerbs") + if disallowed_action_verbs is not None: + disallowed_action_verbs.set_elements(AAZStrType, ".") + + disallowed_end_user_operations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.disallowedEndUserOperations") + if disallowed_end_user_operations is not None: + disallowed_end_user_operations.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + endpoints = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints") + if endpoints is not None: + endpoints.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[]") + if _elements is not None: + _elements.set_prop("apiVersion", AAZStrType, ".api_version") + _elements.set_prop("apiVersions", AAZListType, ".api_versions") + _elements.set_prop("dataBoundary", AAZStrType, ".data_boundary") + _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + _elements.set_prop("enabled", AAZBoolType, ".enabled") + _elements.set_prop("endpointType", AAZStrType, ".endpoint_type") + _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _elements.set_prop("extensions", AAZListType, ".extensions") + _elements.set_prop("featuresRule", AAZObjectType, ".features_rule") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("skuLink", AAZStrType, ".sku_link") + _elements.set_prop("timeout", AAZStrType, ".timeout") + _CreateHelper._build_schema_token_auth_configuration_create(_elements.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + _elements.set_prop("zones", AAZListType, ".zones") + + api_versions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + extensions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions") + if extensions is not None: + extensions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[]") + if _elements is not None: + _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _elements.set_prop("extensionCategories", AAZListType, ".extension_categories") + _elements.set_prop("timeout", AAZStrType, ".timeout") + + extension_categories = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[].extensionCategories") + if extension_categories is not None: + extension_categories.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + locations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + extended_locations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extendedLocations[]") + if _elements is not None: + _elements.set_prop("supportedPolicy", AAZStrType, ".supported_policy") + _elements.set_prop("type", AAZStrType, ".type") + + extension_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions") + if extension_options is not None: + extension_options.set_prop("resourceCreationBegin", AAZObjectType, ".resource_creation_begin") + + resource_creation_begin = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin") + if resource_creation_begin is not None: + resource_creation_begin.set_prop("request", AAZListType, ".request") + resource_creation_begin.set_prop("response", AAZListType, ".response") + + request = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.request") + if request is not None: + request.set_elements(AAZStrType, ".") + + response = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.response") + if response is not None: + response.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + identity_management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.identityManagement") + if identity_management is not None: + identity_management.set_prop("applicationId", AAZStrType, ".application_id") + identity_management.set_prop("applicationIds", AAZListType, ".application_ids") + identity_management.set_prop("delegationAppIds", AAZListType, ".delegation_app_ids") + identity_management.set_prop("type", AAZStrType, ".type") + + application_ids = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.identityManagement.applicationIds") + if application_ids is not None: + application_ids.set_elements(AAZStrType, ".") + + delegation_app_ids = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.identityManagement.delegationAppIds") + if delegation_app_ids is not None: + delegation_app_ids.set_elements(AAZStrType, ".") + + legacy_names = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyNames") + if legacy_names is not None: + legacy_names.set_elements(AAZStrType, ".") + + legacy_policy = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy") + if legacy_policy is not None: + legacy_policy.set_prop("disallowedConditions", AAZListType, ".disallowed_conditions") + legacy_policy.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") + + disallowed_conditions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions") + if disallowed_conditions is not None: + disallowed_conditions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[]") + if _elements is not None: + _elements.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") + _elements.set_prop("feature", AAZStrType, ".feature") + + disallowed_legacy_operations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[].disallowedLegacyOperations") + if disallowed_legacy_operations is not None: + disallowed_legacy_operations.set_elements(AAZStrType, ".") + + disallowed_legacy_operations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedLegacyOperations") + if disallowed_legacy_operations is not None: + disallowed_legacy_operations.set_elements(AAZStrType, ".") + + linked_access_checks = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks") + if linked_access_checks is not None: + linked_access_checks.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks[]") + if _elements is not None: + _elements.set_prop("actionName", AAZStrType, ".action_name") + _elements.set_prop("linkedAction", AAZStrType, ".linked_action") + _elements.set_prop("linkedActionVerb", AAZStrType, ".linked_action_verb") + _elements.set_prop("linkedProperty", AAZStrType, ".linked_property") + _elements.set_prop("linkedType", AAZStrType, ".linked_type") + + linked_notification_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules") + if linked_notification_rules is not None: + linked_notification_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("actionsOnFailedOperation", AAZListType, ".actions_on_failed_operation") + _elements.set_prop("fastPathActions", AAZListType, ".fast_path_actions") + _elements.set_prop("fastPathActionsOnFailedOperation", AAZListType, ".fast_path_actions_on_failed_operation") + _elements.set_prop("linkedNotificationTimeout", AAZStrType, ".linked_notification_timeout") + + actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + actions_on_failed_operation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actionsOnFailedOperation") + if actions_on_failed_operation is not None: + actions_on_failed_operation.set_elements(AAZStrType, ".") + + fast_path_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActions") + if fast_path_actions is not None: + fast_path_actions.set_elements(AAZStrType, ".") + + fast_path_actions_on_failed_operation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActionsOnFailedOperation") + if fast_path_actions_on_failed_operation is not None: + fast_path_actions_on_failed_operation.set_elements(AAZStrType, ".") + + linked_operation_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules") + if linked_operation_rules is not None: + linked_operation_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[]") + if _elements is not None: + _elements.set_prop("dependsOnTypes", AAZListType, ".depends_on_types") + _elements.set_prop("linkedAction", AAZStrType, ".linked_action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("linkedOperation", AAZStrType, ".linked_operation", typ_kwargs={"flags": {"required": True}}) + + depends_on_types = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[].dependsOnTypes") + if depends_on_types is not None: + depends_on_types.set_elements(AAZStrType, ".") + + logging_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules") + if logging_rules is not None: + logging_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("detailLevel", AAZStrType, ".detail_level", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("direction", AAZStrType, ".direction", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("hiddenPropertyPaths", AAZObjectType, ".hidden_property_paths") + + hidden_property_paths = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths") + if hidden_property_paths is not None: + hidden_property_paths.set_prop("hiddenPathsOnRequest", AAZListType, ".hidden_paths_on_request") + hidden_property_paths.set_prop("hiddenPathsOnResponse", AAZListType, ".hidden_paths_on_response") + + hidden_paths_on_request = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnRequest") + if hidden_paths_on_request is not None: + hidden_paths_on_request.set_elements(AAZStrType, ".") + + hidden_paths_on_response = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnResponse") + if hidden_paths_on_response is not None: + hidden_paths_on_response.set_elements(AAZStrType, ".") + + managed_resource_group_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration") + if managed_resource_group_configuration is not None: + managed_resource_group_configuration.set_prop("applicationIds", AAZListType, ".application_ids") + managed_resource_group_configuration.set_prop("denyAssignmentConfiguration", AAZObjectType, ".deny_assignment_configuration") + managed_resource_group_configuration.set_prop("enabled", AAZBoolType, ".enabled") + managed_resource_group_configuration.set_prop("resourceGroupLocationOverride", AAZStrType, ".resource_group_location_override") + + application_ids = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.applicationIds") + if application_ids is not None: + application_ids.set_elements(AAZStrType, ".") + + deny_assignment_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration") + if deny_assignment_configuration is not None: + deny_assignment_configuration.set_prop("enabled", AAZBoolType, ".enabled") + deny_assignment_configuration.set_prop("notActions", AAZListType, ".not_actions") + + not_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration.notActions") + if not_actions is not None: + not_actions.set_elements(AAZStrType, ".") + + management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management") + if management is not None: + management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") + management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") + management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") + management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") + management.set_prop("expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") + management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") + management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") + management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") + management.set_prop("manifestOwners", AAZListType, ".manifest_owners") + management.set_prop("pcCode", AAZStrType, ".pc_code") + management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") + management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") + management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") + management.set_prop("schemaOwners", AAZListType, ".schema_owners") + management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + + authorization_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.authorizationOwners") + if authorization_owners is not None: + authorization_owners.set_elements(AAZStrType, ".") + + canary_manifest_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.canaryManifestOwners") + if canary_manifest_owners is not None: + canary_manifest_owners.set_elements(AAZStrType, ".") + + error_response_message_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.errorResponseMessageOptions") + if error_response_message_options is not None: + error_response_message_options.set_prop("serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") + + expedited_rollout_metadata = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutMetadata") + if expedited_rollout_metadata is not None: + expedited_rollout_metadata.set_prop("enabled", AAZBoolType, ".enabled") + expedited_rollout_metadata.set_prop("expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") + + expedited_rollout_submitters = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutSubmitters") + if expedited_rollout_submitters is not None: + expedited_rollout_submitters.set_elements(AAZStrType, ".") + + manifest_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.manifestOwners") + if manifest_owners is not None: + manifest_owners.set_elements(AAZStrType, ".") + + resource_access_roles = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.resourceAccessRoles") + if resource_access_roles is not None: + _CreateHelper._build_schema_resource_access_role_create(resource_access_roles.set_elements(AAZObjectType, ".")) + + schema_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.schemaOwners") + if schema_owners is not None: + schema_owners.set_elements(AAZStrType, ".") + + service_tree_infos = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.serviceTreeInfos") + if service_tree_infos is not None: + _CreateHelper._build_schema_service_tree_info_create(service_tree_infos.set_elements(AAZObjectType, ".")) + + marketplace_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.marketplaceOptions") + if marketplace_options is not None: + marketplace_options.set_prop("addOnPlanConversionAllowed", AAZBoolType, ".add_on_plan_conversion_allowed") + + metadata = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.metadata") + if metadata is not None: + metadata.set_elements(AAZFreeFormDictType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.metadata{}") + if _elements is not None: + _elements.set_anytype_elements(".") + + on_behalf_of_tokens = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.onBehalfOfTokens") + if on_behalf_of_tokens is not None: + on_behalf_of_tokens.set_prop("actionName", AAZStrType, ".action_name") + on_behalf_of_tokens.set_prop("lifeTime", AAZStrType, ".life_time") + + open_api_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration") + if open_api_configuration is not None: + open_api_configuration.set_prop("validation", AAZObjectType, ".validation") + + validation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration.validation") + if validation is not None: + validation.set_prop("allowNoncompliantCollectionResponse", AAZBoolType, ".allow_noncompliant_collection_response") + + private_endpoint_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration") + if private_endpoint_configuration is not None: + private_endpoint_configuration.set_prop("groupConnectivityInformation", AAZListType, ".group_connectivity_information", typ_kwargs={"flags": {"required": True}}) + private_endpoint_configuration.set_prop("minApiVersion", AAZStrType, ".min_api_version", typ_kwargs={"flags": {"required": True}}) + + group_connectivity_information = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation") + if group_connectivity_information is not None: + group_connectivity_information.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[]") + if _elements is not None: + _elements.set_prop("groupId", AAZStrType, ".group_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("redirectMapId", AAZStrType, ".redirect_map_id") + _elements.set_prop("requiredMembers", AAZListType, ".required_members", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredZoneNames", AAZListType, ".required_zone_names", typ_kwargs={"flags": {"required": True}}) + + required_members = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredMembers") + if required_members is not None: + required_members.set_elements(AAZStrType, ".") + + required_zone_names = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredZoneNames") + if required_zone_names is not None: + required_zone_names.set_elements(AAZStrType, ".") + + quota_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule") + if quota_rule is not None: + quota_rule.set_prop("locationRules", AAZListType, ".location_rules") + quota_rule.set_prop("quotaPolicy", AAZStrType, ".quota_policy") + quota_rule.set_prop("requiredFeatures", AAZListType, ".required_features") + + location_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules") + if location_rules is not None: + location_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules[]") + if _elements is not None: + _elements.set_prop("location", AAZStrType, ".location") + _elements.set_prop("policy", AAZStrType, ".policy") + _elements.set_prop("quotaId", AAZStrType, ".quota_id") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + request_header_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.requestHeaderOptions") + if request_header_options is not None: + request_header_options.set_prop("optInHeaders", AAZStrType, ".opt_in_headers") + request_header_options.set_prop("optOutHeaders", AAZStrType, ".opt_out_headers") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + resource_cache = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceCache") + if resource_cache is not None: + resource_cache.set_prop("enableResourceCache", AAZBoolType, ".enable_resource_cache") + resource_cache.set_prop("resourceCacheExpirationTimespan", AAZStrType, ".resource_cache_expiration_timespan") + + resource_concurrency_control_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions") + if resource_concurrency_control_options is not None: + resource_concurrency_control_options.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions{}") + if _elements is not None: + _elements.set_prop("policy", AAZStrType, ".policy") + + resource_graph_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceGraphConfiguration") + if resource_graph_configuration is not None: + resource_graph_configuration.set_prop("apiVersion", AAZStrType, ".api_version") + resource_graph_configuration.set_prop("enabled", AAZBoolType, ".enabled") + + resource_management_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions") + if resource_management_options is not None: + resource_management_options.set_prop("batchProvisioningSupport", AAZObjectType, ".batch_provisioning_support") + resource_management_options.set_prop("deleteDependencies", AAZListType, ".delete_dependencies") + resource_management_options.set_prop("nestedProvisioningSupport", AAZObjectType, ".nested_provisioning_support") + + batch_provisioning_support = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.batchProvisioningSupport") + if batch_provisioning_support is not None: + batch_provisioning_support.set_prop("supportedOperations", AAZStrType, ".supported_operations") + + delete_dependencies = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies") + if delete_dependencies is not None: + delete_dependencies.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[]") + if _elements is not None: + _elements.set_prop("linkedProperty", AAZStrType, ".linked_property") + _elements.set_prop("linkedType", AAZStrType, ".linked_type") + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + nested_provisioning_support = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.nestedProvisioningSupport") + if nested_provisioning_support is not None: + nested_provisioning_support.set_prop("minimumApiVersion", AAZStrType, ".minimum_api_version") + + resource_move_policy = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceMovePolicy") + if resource_move_policy is not None: + resource_move_policy.set_prop("crossResourceGroupMoveEnabled", AAZBoolType, ".cross_resource_group_move_enabled") + resource_move_policy.set_prop("crossSubscriptionMoveEnabled", AAZBoolType, ".cross_subscription_move_enabled") + resource_move_policy.set_prop("validationRequired", AAZBoolType, ".validation_required") + + resource_query_management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceQueryManagement") + if resource_query_management is not None: + resource_query_management.set_prop("filterOption", AAZStrType, ".filter_option") + + resource_type_common_attribute_management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceTypeCommonAttributeManagement") + if resource_type_common_attribute_management is not None: + resource_type_common_attribute_management.set_prop("commonApiVersionsMergeMode", AAZStrType, ".common_api_versions_merge_mode") + + routing_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.routingRule") + if routing_rule is not None: + routing_rule.set_prop("hostResourceType", AAZStrType, ".host_resource_type") + + service_tree_infos = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.serviceTreeInfos") + if service_tree_infos is not None: + _CreateHelper._build_schema_service_tree_info_create(service_tree_infos.set_elements(AAZObjectType, ".")) + + subscription_lifecycle_notification_specifications = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications") + if subscription_lifecycle_notification_specifications is not None: + subscription_lifecycle_notification_specifications.set_prop("softDeleteTTL", AAZStrType, ".soft_delete_ttl") + subscription_lifecycle_notification_specifications.set_prop("subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") + + subscription_state_override_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") + if subscription_state_override_actions is not None: + _CreateHelper._build_schema_subscription_state_override_action_create(subscription_state_override_actions.set_elements(AAZObjectType, ".")) + + subscription_state_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules") + if subscription_state_rules is not None: + subscription_state_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[]") + if _elements is not None: + _elements.set_prop("allowedActions", AAZListType, ".allowed_actions") + _elements.set_prop("state", AAZStrType, ".state") + + allowed_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[].allowedActions") + if allowed_actions is not None: + allowed_actions.set_elements(AAZStrType, ".") + + swagger_specifications = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications") + if swagger_specifications is not None: + swagger_specifications.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[]") + if _elements is not None: + _elements.set_prop("apiVersions", AAZListType, ".api_versions") + _elements.set_prop("swaggerSpecFolderUri", AAZStrType, ".swagger_spec_folder_uri") + + api_versions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[].apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + template_deployment_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions") + if template_deployment_options is not None: + template_deployment_options.set_prop("preflightOptions", AAZListType, ".preflight_options") + template_deployment_options.set_prop("preflightSupported", AAZBoolType, ".preflight_supported") + + preflight_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions.preflightOptions") + if preflight_options is not None: + preflight_options.set_elements(AAZStrType, ".") + + template_deployment_policy = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentPolicy") + if template_deployment_policy is not None: + template_deployment_policy.set_prop("capabilities", AAZStrType, ".capabilities", typ_kwargs={"flags": {"required": True}}) + template_deployment_policy.set_prop("preflightNotifications", AAZStrType, ".preflight_notifications") + template_deployment_policy.set_prop("preflightOptions", AAZStrType, ".preflight_options", typ_kwargs={"flags": {"required": True}}) + + throttling_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules") + if throttling_rules is not None: + throttling_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("applicationId", AAZListType, ".application_id") + _elements.set_prop("metrics", AAZListType, ".metrics", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + application_id = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].applicationId") + if application_id is not None: + application_id.set_elements(AAZStrType, ".") + + metrics = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics") + if metrics is not None: + metrics.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics[]") + if _elements is not None: + _elements.set_prop("interval", AAZStrType, ".interval") + _elements.set_prop("limit", AAZIntType, ".limit", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + status = _builder.get(".properties.status") + if status is not None: + status.set_prop("completedRegions", AAZListType, ".completed_regions") + status.set_prop("failedOrSkippedRegions", AAZDictType, ".failed_or_skipped_regions") + status.set_prop("manifestCheckinStatus", AAZObjectType, ".manifest_checkin_status") + + completed_regions = _builder.get(".properties.status.completedRegions") + if completed_regions is not None: + completed_regions.set_elements(AAZStrType, ".") + + failed_or_skipped_regions = _builder.get(".properties.status.failedOrSkippedRegions") + if failed_or_skipped_regions is not None: + _CreateHelper._build_schema_extended_error_info_create(failed_or_skipped_regions.set_elements(AAZObjectType, ".")) + + manifest_checkin_status = _builder.get(".properties.status.manifestCheckinStatus") + if manifest_checkin_status is not None: + manifest_checkin_status.set_prop("commitId", AAZStrType, ".commit_id") + manifest_checkin_status.set_prop("isCheckedIn", AAZBoolType, ".is_checked_in", typ_kwargs={"flags": {"required": True}}) + manifest_checkin_status.set_prop("pullRequest", AAZStrType, ".pull_request") + manifest_checkin_status.set_prop("statusMessage", AAZStrType, ".status_message", typ_kwargs={"flags": {"required": True}}) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"required": True}, + ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _CreateHelper._build_schema_system_data_read(_schema_on_200_201.system_data) + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.specification = AAZObjectType( + flags={"required": True}, + ) + properties.status = AAZObjectType() + + specification = cls._schema_on_200_201.properties.specification + specification.auto_provision_config = AAZObjectType( + serialized_name="autoProvisionConfig", + ) + specification.canary = AAZObjectType() + specification.manifest_checkin_specification = AAZObjectType( + serialized_name="manifestCheckinSpecification", + ) + specification.provider_registration = AAZObjectType( + serialized_name="providerRegistration", + ) + specification.refresh_subscription_registration = AAZBoolType( + serialized_name="refreshSubscriptionRegistration", + ) + specification.release_scopes = AAZListType( + serialized_name="releaseScopes", + ) + specification.resource_type_registrations = AAZListType( + serialized_name="resourceTypeRegistrations", + ) + specification.skip_release_scope_validation = AAZBoolType( + serialized_name="skipReleaseScopeValidation", + ) + + auto_provision_config = cls._schema_on_200_201.properties.specification.auto_provision_config + auto_provision_config.resource_graph = AAZBoolType( + serialized_name="resourceGraph", + ) + auto_provision_config.storage = AAZBoolType() + + canary = cls._schema_on_200_201.properties.specification.canary + canary.regions = AAZListType() + + regions = cls._schema_on_200_201.properties.specification.canary.regions + regions.Element = AAZStrType() + + manifest_checkin_specification = cls._schema_on_200_201.properties.specification.manifest_checkin_specification + manifest_checkin_specification.manifest_checkin_option = AAZStrType( + serialized_name="manifestCheckinOption", + ) + manifest_checkin_specification.manifest_checkin_params = AAZObjectType( + serialized_name="manifestCheckinParams", + ) + + manifest_checkin_params = cls._schema_on_200_201.properties.specification.manifest_checkin_specification.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( + serialized_name="baselineArmManifestLocation", + flags={"required": True}, + ) + manifest_checkin_params.environment = AAZStrType( + flags={"required": True}, + ) + + provider_registration = cls._schema_on_200_201.properties.specification.provider_registration + provider_registration.id = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.kind = AAZStrType() + provider_registration.name = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.properties = AAZObjectType() + provider_registration.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _CreateHelper._build_schema_system_data_read(provider_registration.system_data) + provider_registration.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties.specification.provider_registration.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + _CreateHelper._build_schema_notifications_read(properties.notifications) + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _CreateHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _CreateHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = cls._schema_on_200_201.properties.specification.provider_registration.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200_201.properties.specification.provider_registration.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200_201.properties.specification.provider_registration.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = cls._schema_on_200_201.properties.specification.provider_registration.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = cls._schema_on_200_201.properties.specification.provider_registration.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = cls._schema_on_200_201.properties.specification.provider_registration.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _CreateHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = cls._schema_on_200_201.properties.specification.provider_registration.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _CreateHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _CreateHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + management_group_global_notification_endpoints = cls._schema_on_200_201.properties.specification.provider_registration.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + optional_features = cls._schema_on_200_201.properties.specification.provider_registration.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = cls._schema_on_200_201.properties.specification.provider_registration.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = cls._schema_on_200_201.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200_201.properties.specification.provider_registration.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = cls._schema_on_200_201.properties.specification.provider_registration.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = cls._schema_on_200_201.properties.specification.provider_registration.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + response_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = cls._schema_on_200_201.properties.specification.provider_registration.properties.services + services.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = cls._schema_on_200_201.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200_201.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _CreateHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + template_deployment_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + release_scopes = cls._schema_on_200_201.properties.specification.release_scopes + release_scopes.Element = AAZStrType() + + resource_type_registrations = cls._schema_on_200_201.properties.specification.resource_type_registrations + resource_type_registrations.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.kind = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _CreateHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + _CreateHelper._build_schema_notifications_read(properties.notifications) + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _CreateHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _CreateHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _CreateHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _CreateHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _CreateHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.metadata + metadata.Element = AAZFreeFormDictType() + + on_behalf_of_tokens = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_query_management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _CreateHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _CreateHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + subscription_state_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + status = cls._schema_on_200_201.properties.status + status.completed_regions = AAZListType( + serialized_name="completedRegions", + ) + status.failed_or_skipped_regions = AAZDictType( + serialized_name="failedOrSkippedRegions", + ) + status.manifest_checkin_status = AAZObjectType( + serialized_name="manifestCheckinStatus", + ) + + completed_regions = cls._schema_on_200_201.properties.status.completed_regions + completed_regions.Element = AAZStrType() + + failed_or_skipped_regions = cls._schema_on_200_201.properties.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectType() + _CreateHelper._build_schema_extended_error_info_read(failed_or_skipped_regions.Element) + + manifest_checkin_status = cls._schema_on_200_201.properties.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrType( + serialized_name="commitId", + ) + manifest_checkin_status.is_checked_in = AAZBoolType( + serialized_name="isCheckedIn", + flags={"required": True}, + ) + manifest_checkin_status.pull_request = AAZStrType( + serialized_name="pullRequest", + ) + manifest_checkin_status.status_message = AAZStrType( + serialized_name="statusMessage", + flags={"required": True}, + ) + + return cls._schema_on_200_201 + + +class _CreateHelper: + """Helper class for Create""" + + @classmethod + def _build_schema_extended_error_info_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("additionalInfo", AAZListType, ".additional_info") + _builder.set_prop("code", AAZStrType, ".code") + _builder.set_prop("details", AAZListType, ".details") + _builder.set_prop("message", AAZStrType, ".message") + _builder.set_prop("target", AAZStrType, ".target") + + additional_info = _builder.get(".additionalInfo") + if additional_info is not None: + additional_info.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".additionalInfo[]") + if _elements is not None: + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + details = _builder.get(".details") + if details is not None: + cls._build_schema_extended_error_info_create(details.set_elements(AAZObjectType, ".")) + + @classmethod + def _build_schema_notifications_create(cls, _builder): + if _builder is None: + return + _builder.set_elements(AAZObjectType, ".") + + _elements = _builder.get("[]") + if _elements is not None: + _elements.set_prop("notificationType", AAZStrType, ".notification_type") + _elements.set_prop("skipNotifications", AAZStrType, ".skip_notifications") + + @classmethod + def _build_schema_resource_access_role_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("actions", AAZListType, ".actions") + _builder.set_prop("allowedGroupClaims", AAZListType, ".allowed_group_claims") + + actions = _builder.get(".actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + allowed_group_claims = _builder.get(".allowedGroupClaims") + if allowed_group_claims is not None: + allowed_group_claims.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_resource_provider_authorization_rules_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("asyncOperationPollingRules", AAZObjectType, ".async_operation_polling_rules") + + async_operation_polling_rules = _builder.get(".asyncOperationPollingRules") + if async_operation_polling_rules is not None: + async_operation_polling_rules.set_prop("additionalOptions", AAZStrType, ".additional_options") + async_operation_polling_rules.set_prop("authorizationActions", AAZListType, ".authorization_actions") + + authorization_actions = _builder.get(".asyncOperationPollingRules.authorizationActions") + if authorization_actions is not None: + authorization_actions.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_resource_provider_authorization_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("allowedThirdPartyExtensions", AAZListType, ".allowed_third_party_extensions") + _builder.set_prop("applicationId", AAZStrType, ".application_id") + _builder.set_prop("groupingTag", AAZStrType, ".grouping_tag") + _builder.set_prop("managedByAuthorization", AAZObjectType, ".managed_by_authorization") + _builder.set_prop("managedByRoleDefinitionId", AAZStrType, ".managed_by_role_definition_id") + _builder.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + allowed_third_party_extensions = _builder.get(".allowedThirdPartyExtensions") + if allowed_third_party_extensions is not None: + allowed_third_party_extensions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".allowedThirdPartyExtensions[]") + if _elements is not None: + _elements.set_prop("name", AAZStrType, ".name") + + managed_by_authorization = _builder.get(".managedByAuthorization") + if managed_by_authorization is not None: + managed_by_authorization.set_prop("additionalAuthorizations", AAZListType, ".additional_authorizations") + managed_by_authorization.set_prop("allowManagedByInheritance", AAZBoolType, ".allow_managed_by_inheritance") + managed_by_authorization.set_prop("managedByResourceRoleDefinitionId", AAZStrType, ".managed_by_resource_role_definition_id") + + additional_authorizations = _builder.get(".managedByAuthorization.additionalAuthorizations") + if additional_authorizations is not None: + additional_authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".managedByAuthorization.additionalAuthorizations[]") + if _elements is not None: + _elements.set_prop("applicationId", AAZStrType, ".application_id") + _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + @classmethod + def _build_schema_resource_provider_endpoint_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("apiVersions", AAZListType, ".api_versions") + _builder.set_prop("enabled", AAZBoolType, ".enabled") + _builder.set_prop("endpointType", AAZStrType, ".endpoint_type") + _builder.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _builder.set_prop("featuresRule", AAZObjectType, ".features_rule") + _builder.set_prop("locations", AAZListType, ".locations") + _builder.set_prop("requiredFeatures", AAZListType, ".required_features") + _builder.set_prop("skuLink", AAZStrType, ".sku_link") + _builder.set_prop("timeout", AAZStrType, ".timeout") + + api_versions = _builder.get(".apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + locations = _builder.get(".locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_service_tree_info_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("componentId", AAZStrType, ".component_id") + _builder.set_prop("readiness", AAZStrType, ".readiness") + _builder.set_prop("serviceId", AAZStrType, ".service_id") + + @classmethod + def _build_schema_subscription_state_override_action_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("state", AAZStrType, ".state", typ_kwargs={"flags": {"required": True}}) + + @classmethod + def _build_schema_token_auth_configuration_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("authenticationScheme", AAZStrType, ".authentication_scheme") + _builder.set_prop("disableCertificateAuthenticationFallback", AAZBoolType, ".disable_certificate_authentication_fallback") + _builder.set_prop("signedRequestScope", AAZStrType, ".signed_request_scope") + + _schema_extended_error_info_read = None + + @classmethod + def _build_schema_extended_error_info_read(cls, _schema): + if cls._schema_extended_error_info_read is not None: + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + return + + cls._schema_extended_error_info_read = _schema_extended_error_info_read = AAZObjectType() + + extended_error_info_read = _schema_extended_error_info_read + extended_error_info_read.additional_info = AAZListType( + serialized_name="additionalInfo", + ) + extended_error_info_read.code = AAZStrType() + extended_error_info_read.details = AAZListType() + extended_error_info_read.message = AAZStrType() + extended_error_info_read.target = AAZStrType() + + additional_info = _schema_extended_error_info_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_extended_error_info_read.additional_info.Element + _element.info = AAZObjectType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + details = _schema_extended_error_info_read.details + details.Element = AAZObjectType() + cls._build_schema_extended_error_info_read(details.Element) + + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + + _schema_notifications_read = None + + @classmethod + def _build_schema_notifications_read(cls, _schema): + if cls._schema_notifications_read is not None: + _schema.Element = cls._schema_notifications_read.Element + return + + cls._schema_notifications_read = _schema_notifications_read = AAZListType() + + notifications_read = _schema_notifications_read + notifications_read.Element = AAZObjectType() + + _element = _schema_notifications_read.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + _schema.Element = cls._schema_notifications_read.Element + + _schema_resource_access_role_read = None + + @classmethod + def _build_schema_resource_access_role_read(cls, _schema): + if cls._schema_resource_access_role_read is not None: + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + return + + cls._schema_resource_access_role_read = _schema_resource_access_role_read = AAZObjectType() + + resource_access_role_read = _schema_resource_access_role_read + resource_access_role_read.actions = AAZListType() + resource_access_role_read.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = _schema_resource_access_role_read.actions + actions.Element = AAZStrType() + + allowed_group_claims = _schema_resource_access_role_read.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + + _schema_resource_provider_authorization_rules_read = None + + @classmethod + def _build_schema_resource_provider_authorization_rules_read(cls, _schema): + if cls._schema_resource_provider_authorization_rules_read is not None: + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + return + + cls._schema_resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read = AAZObjectType() + + resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read + resource_provider_authorization_rules_read.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_subscription_state_override_action_read = None + + @classmethod + def _build_schema_subscription_state_override_action_read(cls, _schema): + if cls._schema_subscription_state_override_action_read is not None: + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + return + + cls._schema_subscription_state_override_action_read = _schema_subscription_state_override_action_read = AAZObjectType() + + subscription_state_override_action_read = _schema_subscription_state_override_action_read + subscription_state_override_action_read.action = AAZStrType( + flags={"required": True}, + ) + subscription_state_override_action_read.state = AAZStrType( + flags={"required": True}, + ) + + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Create"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_delete.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_delete.py new file mode 100644 index 00000000000..bfa69b63534 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_delete.py @@ -0,0 +1,146 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub custom-rollout delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete the custom rollout resource. Custom rollout must be in terminal state. + + :example: custom-rollout delete + az providerhub custom-rollout delete --provider-namespace "{providerNamespace}" --rollout-name "{customRolloutName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/customrollouts/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.rollout_name = AAZStrArg( + options=["-n", "--name", "--rollout-name"], + help="The rollout name.", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[-\w\._\(\)]+$", + max_length=260, + ), + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.CustomRolloutsDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class CustomRolloutsDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_list.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_list.py new file mode 100644 index 00000000000..e62b586401a --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_list.py @@ -0,0 +1,2087 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub custom-rollout list", +) +class List(AAZCommand): + """List the list of the custom rollouts for the given provider. + + :example: custom-rollout list + az providerhub custom-rollout list --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/customrollouts", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_PAGINATION = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.CustomRolloutsListByProviderRegistration(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class CustomRolloutsListByProviderRegistration(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"required": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ListHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.specification = AAZObjectType( + flags={"required": True}, + ) + properties.status = AAZObjectType() + + specification = cls._schema_on_200.value.Element.properties.specification + specification.auto_provision_config = AAZObjectType( + serialized_name="autoProvisionConfig", + ) + specification.canary = AAZObjectType() + specification.manifest_checkin_specification = AAZObjectType( + serialized_name="manifestCheckinSpecification", + ) + specification.provider_registration = AAZObjectType( + serialized_name="providerRegistration", + ) + specification.refresh_subscription_registration = AAZBoolType( + serialized_name="refreshSubscriptionRegistration", + ) + specification.release_scopes = AAZListType( + serialized_name="releaseScopes", + ) + specification.resource_type_registrations = AAZListType( + serialized_name="resourceTypeRegistrations", + ) + specification.skip_release_scope_validation = AAZBoolType( + serialized_name="skipReleaseScopeValidation", + ) + + auto_provision_config = cls._schema_on_200.value.Element.properties.specification.auto_provision_config + auto_provision_config.resource_graph = AAZBoolType( + serialized_name="resourceGraph", + ) + auto_provision_config.storage = AAZBoolType() + + canary = cls._schema_on_200.value.Element.properties.specification.canary + canary.regions = AAZListType() + + regions = cls._schema_on_200.value.Element.properties.specification.canary.regions + regions.Element = AAZStrType() + + manifest_checkin_specification = cls._schema_on_200.value.Element.properties.specification.manifest_checkin_specification + manifest_checkin_specification.manifest_checkin_option = AAZStrType( + serialized_name="manifestCheckinOption", + ) + manifest_checkin_specification.manifest_checkin_params = AAZObjectType( + serialized_name="manifestCheckinParams", + ) + + manifest_checkin_params = cls._schema_on_200.value.Element.properties.specification.manifest_checkin_specification.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( + serialized_name="baselineArmManifestLocation", + flags={"required": True}, + ) + manifest_checkin_params.environment = AAZStrType( + flags={"required": True}, + ) + + provider_registration = cls._schema_on_200.value.Element.properties.specification.provider_registration + provider_registration.id = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.kind = AAZStrType() + provider_registration.name = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.properties = AAZObjectType() + provider_registration.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ListHelper._build_schema_system_data_read(provider_registration.system_data) + provider_registration.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + _ListHelper._build_schema_notifications_read(properties.notifications) + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _ListHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ListHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ListHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _ListHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ListHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + management_group_global_notification_endpoints = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + optional_features = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + response_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.services + services.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _ListHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + template_deployment_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + release_scopes = cls._schema_on_200.value.Element.properties.specification.release_scopes + release_scopes.Element = AAZStrType() + + resource_type_registrations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations + resource_type_registrations.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.kind = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ListHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + _ListHelper._build_schema_notifications_read(properties.notifications) + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _ListHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ListHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ListHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _ListHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ListHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.metadata + metadata.Element = AAZFreeFormDictType() + + on_behalf_of_tokens = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_query_management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ListHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _ListHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + subscription_state_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + status = cls._schema_on_200.value.Element.properties.status + status.completed_regions = AAZListType( + serialized_name="completedRegions", + ) + status.failed_or_skipped_regions = AAZDictType( + serialized_name="failedOrSkippedRegions", + ) + status.manifest_checkin_status = AAZObjectType( + serialized_name="manifestCheckinStatus", + ) + + completed_regions = cls._schema_on_200.value.Element.properties.status.completed_regions + completed_regions.Element = AAZStrType() + + failed_or_skipped_regions = cls._schema_on_200.value.Element.properties.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectType() + _ListHelper._build_schema_extended_error_info_read(failed_or_skipped_regions.Element) + + manifest_checkin_status = cls._schema_on_200.value.Element.properties.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrType( + serialized_name="commitId", + ) + manifest_checkin_status.is_checked_in = AAZBoolType( + serialized_name="isCheckedIn", + flags={"required": True}, + ) + manifest_checkin_status.pull_request = AAZStrType( + serialized_name="pullRequest", + ) + manifest_checkin_status.status_message = AAZStrType( + serialized_name="statusMessage", + flags={"required": True}, + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + _schema_extended_error_info_read = None + + @classmethod + def _build_schema_extended_error_info_read(cls, _schema): + if cls._schema_extended_error_info_read is not None: + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + return + + cls._schema_extended_error_info_read = _schema_extended_error_info_read = AAZObjectType() + + extended_error_info_read = _schema_extended_error_info_read + extended_error_info_read.additional_info = AAZListType( + serialized_name="additionalInfo", + ) + extended_error_info_read.code = AAZStrType() + extended_error_info_read.details = AAZListType() + extended_error_info_read.message = AAZStrType() + extended_error_info_read.target = AAZStrType() + + additional_info = _schema_extended_error_info_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_extended_error_info_read.additional_info.Element + _element.info = AAZObjectType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + details = _schema_extended_error_info_read.details + details.Element = AAZObjectType() + cls._build_schema_extended_error_info_read(details.Element) + + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + + _schema_notifications_read = None + + @classmethod + def _build_schema_notifications_read(cls, _schema): + if cls._schema_notifications_read is not None: + _schema.Element = cls._schema_notifications_read.Element + return + + cls._schema_notifications_read = _schema_notifications_read = AAZListType() + + notifications_read = _schema_notifications_read + notifications_read.Element = AAZObjectType() + + _element = _schema_notifications_read.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + _schema.Element = cls._schema_notifications_read.Element + + _schema_resource_access_role_read = None + + @classmethod + def _build_schema_resource_access_role_read(cls, _schema): + if cls._schema_resource_access_role_read is not None: + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + return + + cls._schema_resource_access_role_read = _schema_resource_access_role_read = AAZObjectType() + + resource_access_role_read = _schema_resource_access_role_read + resource_access_role_read.actions = AAZListType() + resource_access_role_read.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = _schema_resource_access_role_read.actions + actions.Element = AAZStrType() + + allowed_group_claims = _schema_resource_access_role_read.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + + _schema_resource_provider_authorization_rules_read = None + + @classmethod + def _build_schema_resource_provider_authorization_rules_read(cls, _schema): + if cls._schema_resource_provider_authorization_rules_read is not None: + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + return + + cls._schema_resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read = AAZObjectType() + + resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read + resource_provider_authorization_rules_read.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_subscription_state_override_action_read = None + + @classmethod + def _build_schema_subscription_state_override_action_read(cls, _schema): + if cls._schema_subscription_state_override_action_read is not None: + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + return + + cls._schema_subscription_state_override_action_read = _schema_subscription_state_override_action_read = AAZObjectType() + + subscription_state_override_action_read = _schema_subscription_state_override_action_read + subscription_state_override_action_read.action = AAZStrType( + flags={"required": True}, + ) + subscription_state_override_action_read.state = AAZStrType( + flags={"required": True}, + ) + + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["List"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_show.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_show.py new file mode 100644 index 00000000000..d513cdd493f --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_show.py @@ -0,0 +1,2091 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub custom-rollout show", +) +class Show(AAZCommand): + """Get the custom rollout details. + + :example: custom-rollout show + az providerhub custom-rollout show --provider-namespace "{providerNamespace}" --rollout-name "{customRolloutName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/customrollouts/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.rollout_name = AAZStrArg( + options=["-n", "--name", "--rollout-name"], + help="The rollout name.", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[-\w\._\(\)]+$", + max_length=260, + ), + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.CustomRolloutsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class CustomRolloutsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"required": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ShowHelper._build_schema_system_data_read(_schema_on_200.system_data) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.specification = AAZObjectType( + flags={"required": True}, + ) + properties.status = AAZObjectType() + + specification = cls._schema_on_200.properties.specification + specification.auto_provision_config = AAZObjectType( + serialized_name="autoProvisionConfig", + ) + specification.canary = AAZObjectType() + specification.manifest_checkin_specification = AAZObjectType( + serialized_name="manifestCheckinSpecification", + ) + specification.provider_registration = AAZObjectType( + serialized_name="providerRegistration", + ) + specification.refresh_subscription_registration = AAZBoolType( + serialized_name="refreshSubscriptionRegistration", + ) + specification.release_scopes = AAZListType( + serialized_name="releaseScopes", + ) + specification.resource_type_registrations = AAZListType( + serialized_name="resourceTypeRegistrations", + ) + specification.skip_release_scope_validation = AAZBoolType( + serialized_name="skipReleaseScopeValidation", + ) + + auto_provision_config = cls._schema_on_200.properties.specification.auto_provision_config + auto_provision_config.resource_graph = AAZBoolType( + serialized_name="resourceGraph", + ) + auto_provision_config.storage = AAZBoolType() + + canary = cls._schema_on_200.properties.specification.canary + canary.regions = AAZListType() + + regions = cls._schema_on_200.properties.specification.canary.regions + regions.Element = AAZStrType() + + manifest_checkin_specification = cls._schema_on_200.properties.specification.manifest_checkin_specification + manifest_checkin_specification.manifest_checkin_option = AAZStrType( + serialized_name="manifestCheckinOption", + ) + manifest_checkin_specification.manifest_checkin_params = AAZObjectType( + serialized_name="manifestCheckinParams", + ) + + manifest_checkin_params = cls._schema_on_200.properties.specification.manifest_checkin_specification.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( + serialized_name="baselineArmManifestLocation", + flags={"required": True}, + ) + manifest_checkin_params.environment = AAZStrType( + flags={"required": True}, + ) + + provider_registration = cls._schema_on_200.properties.specification.provider_registration + provider_registration.id = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.kind = AAZStrType() + provider_registration.name = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.properties = AAZObjectType() + provider_registration.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ShowHelper._build_schema_system_data_read(provider_registration.system_data) + provider_registration.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties.specification.provider_registration.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + _ShowHelper._build_schema_notifications_read(properties.notifications) + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _ShowHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ShowHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = cls._schema_on_200.properties.specification.provider_registration.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = cls._schema_on_200.properties.specification.provider_registration.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ShowHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = cls._schema_on_200.properties.specification.provider_registration.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.properties.specification.provider_registration.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.properties.specification.provider_registration.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _ShowHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.properties.specification.provider_registration.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ShowHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + management_group_global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + optional_features = cls._schema_on_200.properties.specification.provider_registration.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = cls._schema_on_200.properties.specification.provider_registration.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.properties.specification.provider_registration.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = cls._schema_on_200.properties.specification.provider_registration.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + response_options = cls._schema_on_200.properties.specification.provider_registration.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = cls._schema_on_200.properties.specification.provider_registration.properties.services + services.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _ShowHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + template_deployment_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + release_scopes = cls._schema_on_200.properties.specification.release_scopes + release_scopes.Element = AAZStrType() + + resource_type_registrations = cls._schema_on_200.properties.specification.resource_type_registrations + resource_type_registrations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.kind = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ShowHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + _ShowHelper._build_schema_notifications_read(properties.notifications) + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _ShowHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ShowHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ShowHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _ShowHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ShowHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.metadata + metadata.Element = AAZFreeFormDictType() + + on_behalf_of_tokens = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_query_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ShowHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _ShowHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + subscription_state_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + status = cls._schema_on_200.properties.status + status.completed_regions = AAZListType( + serialized_name="completedRegions", + ) + status.failed_or_skipped_regions = AAZDictType( + serialized_name="failedOrSkippedRegions", + ) + status.manifest_checkin_status = AAZObjectType( + serialized_name="manifestCheckinStatus", + ) + + completed_regions = cls._schema_on_200.properties.status.completed_regions + completed_regions.Element = AAZStrType() + + failed_or_skipped_regions = cls._schema_on_200.properties.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectType() + _ShowHelper._build_schema_extended_error_info_read(failed_or_skipped_regions.Element) + + manifest_checkin_status = cls._schema_on_200.properties.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrType( + serialized_name="commitId", + ) + manifest_checkin_status.is_checked_in = AAZBoolType( + serialized_name="isCheckedIn", + flags={"required": True}, + ) + manifest_checkin_status.pull_request = AAZStrType( + serialized_name="pullRequest", + ) + manifest_checkin_status.status_message = AAZStrType( + serialized_name="statusMessage", + flags={"required": True}, + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + _schema_extended_error_info_read = None + + @classmethod + def _build_schema_extended_error_info_read(cls, _schema): + if cls._schema_extended_error_info_read is not None: + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + return + + cls._schema_extended_error_info_read = _schema_extended_error_info_read = AAZObjectType() + + extended_error_info_read = _schema_extended_error_info_read + extended_error_info_read.additional_info = AAZListType( + serialized_name="additionalInfo", + ) + extended_error_info_read.code = AAZStrType() + extended_error_info_read.details = AAZListType() + extended_error_info_read.message = AAZStrType() + extended_error_info_read.target = AAZStrType() + + additional_info = _schema_extended_error_info_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_extended_error_info_read.additional_info.Element + _element.info = AAZObjectType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + details = _schema_extended_error_info_read.details + details.Element = AAZObjectType() + cls._build_schema_extended_error_info_read(details.Element) + + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + + _schema_notifications_read = None + + @classmethod + def _build_schema_notifications_read(cls, _schema): + if cls._schema_notifications_read is not None: + _schema.Element = cls._schema_notifications_read.Element + return + + cls._schema_notifications_read = _schema_notifications_read = AAZListType() + + notifications_read = _schema_notifications_read + notifications_read.Element = AAZObjectType() + + _element = _schema_notifications_read.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + _schema.Element = cls._schema_notifications_read.Element + + _schema_resource_access_role_read = None + + @classmethod + def _build_schema_resource_access_role_read(cls, _schema): + if cls._schema_resource_access_role_read is not None: + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + return + + cls._schema_resource_access_role_read = _schema_resource_access_role_read = AAZObjectType() + + resource_access_role_read = _schema_resource_access_role_read + resource_access_role_read.actions = AAZListType() + resource_access_role_read.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = _schema_resource_access_role_read.actions + actions.Element = AAZStrType() + + allowed_group_claims = _schema_resource_access_role_read.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + + _schema_resource_provider_authorization_rules_read = None + + @classmethod + def _build_schema_resource_provider_authorization_rules_read(cls, _schema): + if cls._schema_resource_provider_authorization_rules_read is not None: + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + return + + cls._schema_resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read = AAZObjectType() + + resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read + resource_provider_authorization_rules_read.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_subscription_state_override_action_read = None + + @classmethod + def _build_schema_subscription_state_override_action_read(cls, _schema): + if cls._schema_subscription_state_override_action_read is not None: + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + return + + cls._schema_subscription_state_override_action_read = _schema_subscription_state_override_action_read = AAZObjectType() + + subscription_state_override_action_read = _schema_subscription_state_override_action_read + subscription_state_override_action_read.action = AAZStrType( + flags={"required": True}, + ) + subscription_state_override_action_read.state = AAZStrType( + flags={"required": True}, + ) + + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Show"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_stop.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_stop.py new file mode 100644 index 00000000000..8ecfb23b4e5 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_stop.py @@ -0,0 +1,140 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub custom-rollout stop", +) +class Stop(AAZCommand): + """Stops or cancels the custom rollout, if in progress. + + :example: custom-rollout stop + az providerhub custom-rollout stop --provider-namespace "{providerNamespace}" --rollout-name "{customRolloutName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/customrollouts/{}/stop", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.rollout_name = AAZStrArg( + options=["--rollout-name"], + help="The rollout name.", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[-\w\._\(\)]+$", + max_length=260, + ), + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.CustomRolloutsStop(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class CustomRolloutsStop(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}/stop", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + +class _StopHelper: + """Helper class for Stop""" + + +__all__ = ["Stop"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_update.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_update.py new file mode 100644 index 00000000000..0ee3855504d --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_update.py @@ -0,0 +1,6145 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub custom-rollout update", +) +class Update(AAZCommand): + """Update the rollout details. + + :example: custom-rollout update + az providerhub custom-rollout update --provider-namespace "{providerNamespace}" --rollout-name "{customRolloutName}" --canary region="EastUS2EUAP" region="centraluseuap" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/customrollouts/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.rollout_name = AAZStrArg( + options=["-n", "--name", "--rollout-name"], + help="The rollout name.", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[-\w\._\(\)]+$", + max_length=260, + ), + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.status = AAZObjectArg( + options=["--status"], + arg_group="Properties", + nullable=True, + ) + + status = cls._args_schema.status + status.completed_regions = AAZListArg( + options=["completed-regions"], + nullable=True, + ) + status.failed_or_skipped_regions = AAZDictArg( + options=["failed-or-skipped-regions"], + nullable=True, + ) + status.manifest_checkin_status = AAZObjectArg( + options=["manifest-checkin-status"], + nullable=True, + ) + + completed_regions = cls._args_schema.status.completed_regions + completed_regions.Element = AAZStrArg( + nullable=True, + ) + + failed_or_skipped_regions = cls._args_schema.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_extended_error_info_update(failed_or_skipped_regions.Element) + + manifest_checkin_status = cls._args_schema.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrArg( + options=["commit-id"], + nullable=True, + ) + manifest_checkin_status.is_checked_in = AAZBoolArg( + options=["is-checked-in"], + ) + manifest_checkin_status.pull_request = AAZStrArg( + options=["pull-request"], + nullable=True, + ) + manifest_checkin_status.status_message = AAZStrArg( + options=["status-message"], + ) + + # define Arg Group "Specification" + + _args_schema = cls._args_schema + _args_schema.auto_provision_config = AAZObjectArg( + options=["--auto-provision-config"], + arg_group="Specification", + nullable=True, + ) + _args_schema.canary = AAZObjectArg( + options=["--canary"], + arg_group="Specification", + help="The canary regions to apply the manifest.", + nullable=True, + ) + _args_schema.manifest_checkin_specification = AAZObjectArg( + options=["--manifest-checkin-spec", "--manifest-checkin-specification"], + arg_group="Specification", + help="The manifest checkin specification.", + nullable=True, + ) + _args_schema.provider_registration = AAZObjectArg( + options=["--provider-registration"], + arg_group="Specification", + nullable=True, + ) + _args_schema.refresh_subscription_registration = AAZBoolArg( + options=["--refresh-sub-reg", "--refresh-subscription-registration"], + arg_group="Specification", + help="Determines if subscription registration should be refreshed.", + nullable=True, + ) + _args_schema.release_scopes = AAZListArg( + options=["--release-scopes"], + arg_group="Specification", + nullable=True, + ) + _args_schema.resource_type_registrations = AAZListArg( + options=["--rt-regs", "--resource-type-registrations"], + arg_group="Specification", + help="The resource type registrations.", + nullable=True, + ) + _args_schema.skip_release_scope_validation = AAZBoolArg( + options=["--skip-validation", "--skip-release-scope-validation"], + arg_group="Specification", + help="Determines if release scope validation should be skipped.", + nullable=True, + ) + + auto_provision_config = cls._args_schema.auto_provision_config + auto_provision_config.resource_graph = AAZBoolArg( + options=["resource-graph"], + nullable=True, + ) + auto_provision_config.storage = AAZBoolArg( + options=["storage"], + nullable=True, + ) + + canary = cls._args_schema.canary + canary.regions = AAZListArg( + options=["regions"], + nullable=True, + ) + + regions = cls._args_schema.canary.regions + regions.Element = AAZStrArg( + nullable=True, + ) + + manifest_checkin_specification = cls._args_schema.manifest_checkin_specification + manifest_checkin_specification.manifest_checkin_option = AAZStrArg( + options=["checkin-option", "manifest-checkin-option"], + help="The manifest checkin option.", + nullable=True, + enum={"AttemptAutomaticManifestCheckin": "AttemptAutomaticManifestCheckin", "DoNotAttemptAutomaticManifestCheckin": "DoNotAttemptAutomaticManifestCheckin"}, + ) + manifest_checkin_specification.manifest_checkin_params = AAZObjectArg( + options=["checkin-params", "manifest-checkin-params"], + help="The manifest checkin params.", + nullable=True, + ) + + manifest_checkin_params = cls._args_schema.manifest_checkin_specification.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrArg( + options=["baseline-arm-manifest-location"], + help="The baseline ARM manifest location supplied to the checkin manifest operation.", + ) + manifest_checkin_params.environment = AAZStrArg( + options=["environment"], + help="The environment supplied to the checkin manifest operation.", + ) + + provider_registration = cls._args_schema.provider_registration + provider_registration.kind = AAZStrArg( + options=["kind"], + help="Provider registration kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + nullable=True, + enum={"Direct": "Direct", "Hybrid": "Hybrid", "Managed": "Managed"}, + ) + provider_registration.capabilities = AAZListArg( + options=["capabilities"], + nullable=True, + ) + provider_registration.cross_tenant_token_validation = AAZStrArg( + options=["cross-tenant-token-validation"], + nullable=True, + enum={"EnsureSecureValidation": "EnsureSecureValidation", "PassthroughInsecureToken": "PassthroughInsecureToken"}, + ) + provider_registration.custom_manifest_version = AAZStrArg( + options=["custom-manifest-version"], + help="Custom manifest version.", + nullable=True, + ) + provider_registration.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + nullable=True, + ) + provider_registration.enable_tenant_linked_notification = AAZBoolArg( + options=["enable-tenant-linked-notification"], + nullable=True, + ) + provider_registration.features_rule = AAZObjectArg( + options=["features-rule"], + nullable=True, + ) + provider_registration.global_notification_endpoints = AAZListArg( + options=["global-notification-endpoints"], + nullable=True, + ) + provider_registration.legacy_namespace = AAZStrArg( + options=["legacy-namespace"], + help="Legacy namespace.", + nullable=True, + ) + provider_registration.legacy_registrations = AAZListArg( + options=["legacy-registrations"], + help="Legacy registrations.", + nullable=True, + ) + provider_registration.linked_notification_rules = AAZListArg( + options=["linked-notification-rules"], + nullable=True, + ) + provider_registration.management = AAZObjectArg( + options=["management"], + nullable=True, + ) + provider_registration.management_group_global_notification_endpoints = AAZListArg( + options=["management-group-global-notification-endpoints"], + help="Management groups global notification endpoints.", + nullable=True, + ) + provider_registration.metadata = AAZFreeFormDictArg( + options=["metadata"], + nullable=True, + ) + provider_registration.namespace = AAZStrArg( + options=["namespace"], + nullable=True, + ) + provider_registration.notification_options = AAZStrArg( + options=["notification-options"], + help="Notification options.", + nullable=True, + enum={"EmitSpendingLimit": "EmitSpendingLimit", "None": "None", "NotSpecified": "NotSpecified"}, + ) + provider_registration.notification_settings = AAZObjectArg( + options=["notification-settings"], + help="Notification settings.", + nullable=True, + ) + provider_registration.notifications = AAZListArg( + options=["notifications"], + nullable=True, + ) + cls._build_args_notifications_update(provider_registration.notifications) + provider_registration.optional_features = AAZListArg( + options=["optional-features"], + help="Optional features.", + nullable=True, + ) + provider_registration.private_resource_provider_configuration = AAZObjectArg( + options=["private-resource-provider-configuration"], + nullable=True, + ) + provider_registration.provider_authentication = AAZObjectArg( + options=["provider-authentication"], + nullable=True, + ) + provider_registration.provider_authorizations = AAZListArg( + options=["provider-authorizations"], + nullable=True, + ) + provider_registration.provider_hub_metadata = AAZObjectArg( + options=["provider-hub-metadata"], + nullable=True, + ) + provider_registration.provider_type = AAZStrArg( + options=["provider-type"], + nullable=True, + enum={"AuthorizationFree": "AuthorizationFree", "External": "External", "Hidden": "Hidden", "Internal": "Internal", "LegacyRegistrationRequired": "LegacyRegistrationRequired", "NotSpecified": "NotSpecified", "RegistrationFree": "RegistrationFree", "TenantOnly": "TenantOnly"}, + ) + provider_registration.provider_version = AAZStrArg( + options=["provider-version"], + nullable=True, + ) + provider_registration.request_header_options = AAZObjectArg( + options=["request-header-options"], + nullable=True, + ) + provider_registration.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + provider_registration.resource_group_lock_option_during_move = AAZObjectArg( + options=["resource-group-lock-option-during-move"], + help="Resource group lock option during move.", + nullable=True, + ) + provider_registration.resource_hydration_accounts = AAZListArg( + options=["resource-hydration-accounts"], + help="resource hydration accounts", + nullable=True, + ) + provider_registration.resource_provider_authorization_rules = AAZObjectArg( + options=["resource-provider-authorization-rules"], + nullable=True, + ) + cls._build_args_resource_provider_authorization_rules_update(provider_registration.resource_provider_authorization_rules) + provider_registration.response_options = AAZObjectArg( + options=["response-options"], + help="Response options.", + nullable=True, + ) + provider_registration.service_name = AAZStrArg( + options=["service-name"], + nullable=True, + ) + provider_registration.services = AAZListArg( + options=["services"], + nullable=True, + ) + provider_registration.subscription_lifecycle_notification_specifications = AAZObjectArg( + options=["subscription-lifecycle-notification-specifications"], + nullable=True, + ) + provider_registration.template_deployment_options = AAZObjectArg( + options=["template-deployment-options"], + nullable=True, + ) + provider_registration.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + nullable=True, + ) + cls._build_args_token_auth_configuration_update(provider_registration.token_auth_configuration) + + capabilities = cls._args_schema.provider_registration.capabilities + capabilities.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.capabilities.Element + _element.effect = AAZStrArg( + options=["effect"], + enum={"Allow": "Allow", "Disallow": "Disallow", "NotSpecified": "NotSpecified"}, + ) + _element.quota_id = AAZStrArg( + options=["quota-id"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + + required_features = cls._args_schema.provider_registration.capabilities.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + dsts_configuration = cls._args_schema.provider_registration.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + nullable=True, + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + ) + + features_rule = cls._args_schema.provider_registration.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + enum={"All": "All", "Any": "Any"}, + ) + + global_notification_endpoints = cls._args_schema.provider_registration.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_endpoint_update(global_notification_endpoints.Element) + + legacy_registrations = cls._args_schema.provider_registration.legacy_registrations + legacy_registrations.Element = AAZStrArg( + nullable=True, + ) + + linked_notification_rules = cls._args_schema.provider_registration.linked_notification_rules + linked_notification_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.linked_notification_rules.Element + _element.actions = AAZListArg( + options=["actions"], + nullable=True, + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + nullable=True, + ) + _element.endpoints = AAZListArg( + options=["endpoints"], + nullable=True, + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + nullable=True, + ) + cls._build_args_token_auth_configuration_update(_element.token_auth_configuration) + + actions = cls._args_schema.provider_registration.linked_notification_rules.Element.actions + actions.Element = AAZStrArg( + nullable=True, + ) + + dsts_configuration = cls._args_schema.provider_registration.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + nullable=True, + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + ) + + endpoints = cls._args_schema.provider_registration.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_endpoint_update(endpoints.Element) + + management = cls._args_schema.provider_registration.management + management.authorization_owners = AAZListArg( + options=["authorization-owners"], + nullable=True, + ) + management.canary_manifest_owners = AAZListArg( + options=["canary-manifest-owners"], + help="List of manifest owners for canary.", + nullable=True, + ) + management.error_response_message_options = AAZObjectArg( + options=["error-response-message-options"], + help="Options for error response messages.", + nullable=True, + ) + management.expedited_rollout_metadata = AAZObjectArg( + options=["expedited-rollout-metadata"], + help="Metadata for expedited rollout.", + nullable=True, + ) + management.expedited_rollout_submitters = AAZListArg( + options=["expedited-rollout-submitters"], + help="List of expedited rollout submitters.", + nullable=True, + ) + management.incident_contact_email = AAZStrArg( + options=["incident-contact-email"], + nullable=True, + ) + management.incident_routing_service = AAZStrArg( + options=["incident-routing-service"], + nullable=True, + ) + management.incident_routing_team = AAZStrArg( + options=["incident-routing-team"], + nullable=True, + ) + management.manifest_owners = AAZListArg( + options=["manifest-owners"], + nullable=True, + ) + management.pc_code = AAZStrArg( + options=["pc-code"], + help="The profit center code for the subscription.", + nullable=True, + ) + management.profit_center_program_id = AAZStrArg( + options=["profit-center-program-id"], + help="The profit center program id for the subscription.", + nullable=True, + ) + management.resource_access_policy = AAZStrArg( + options=["resource-access-policy"], + nullable=True, + enum={"AcisActionAllowed": "AcisActionAllowed", "AcisReadAllowed": "AcisReadAllowed", "NotSpecified": "NotSpecified"}, + ) + management.resource_access_roles = AAZListArg( + options=["resource-access-roles"], + nullable=True, + ) + management.schema_owners = AAZListArg( + options=["schema-owners"], + nullable=True, + ) + management.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + nullable=True, + ) + + authorization_owners = cls._args_schema.provider_registration.management.authorization_owners + authorization_owners.Element = AAZStrArg( + nullable=True, + ) + + canary_manifest_owners = cls._args_schema.provider_registration.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrArg( + nullable=True, + ) + + error_response_message_options = cls._args_schema.provider_registration.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrArg( + options=["server-failure-response-message-type"], + help="Type of server failure response message.", + nullable=True, + enum={"NotSpecified": "NotSpecified", "OutageReporting": "OutageReporting"}, + ) + + expedited_rollout_metadata = cls._args_schema.provider_registration.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolArg( + options=["enabled"], + help="Expedited rollout enabled?", + nullable=True, + ) + expedited_rollout_metadata.expedited_rollout_intent = AAZStrArg( + options=["expedited-rollout-intent"], + help="Expedited rollout intent.", + nullable=True, + enum={"Hotfix": "Hotfix", "NotSpecified": "NotSpecified"}, + ) + + expedited_rollout_submitters = cls._args_schema.provider_registration.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrArg( + nullable=True, + ) + + manifest_owners = cls._args_schema.provider_registration.management.manifest_owners + manifest_owners.Element = AAZStrArg( + nullable=True, + ) + + resource_access_roles = cls._args_schema.provider_registration.management.resource_access_roles + resource_access_roles.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_access_role_update(resource_access_roles.Element) + + schema_owners = cls._args_schema.provider_registration.management.schema_owners + schema_owners.Element = AAZStrArg( + nullable=True, + ) + + service_tree_infos = cls._args_schema.provider_registration.management.service_tree_infos + service_tree_infos.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_service_tree_info_update(service_tree_infos.Element) + + management_group_global_notification_endpoints = cls._args_schema.provider_registration.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_endpoint_update(management_group_global_notification_endpoints.Element) + + notification_settings = cls._args_schema.provider_registration.notification_settings + notification_settings.subscriber_settings = AAZListArg( + options=["subscriber-settings"], + nullable=True, + ) + + subscriber_settings = cls._args_schema.provider_registration.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListArg( + options=["filter-rules"], + nullable=True, + ) + + filter_rules = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListArg( + options=["endpoint-information"], + nullable=True, + ) + _element.filter_query = AAZStrArg( + options=["filter-query"], + nullable=True, + ) + + endpoint_information = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrArg( + options=["endpoint"], + nullable=True, + ) + _element.endpoint_type = AAZStrArg( + options=["endpoint-type"], + nullable=True, + enum={"Eventhub": "Eventhub", "Webhook": "Webhook"}, + ) + _element.schema_version = AAZStrArg( + options=["schema-version"], + nullable=True, + ) + + optional_features = cls._args_schema.provider_registration.optional_features + optional_features.Element = AAZStrArg( + nullable=True, + ) + + private_resource_provider_configuration = cls._args_schema.provider_registration.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListArg( + options=["allowed-subscriptions"], + nullable=True, + ) + + allowed_subscriptions = cls._args_schema.provider_registration.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrArg( + nullable=True, + ) + + provider_authentication = cls._args_schema.provider_registration.provider_authentication + provider_authentication.allowed_audiences = AAZListArg( + options=["allowed-audiences"], + ) + + allowed_audiences = cls._args_schema.provider_registration.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrArg( + nullable=True, + ) + + provider_authorizations = cls._args_schema.provider_registration.provider_authorizations + provider_authorizations.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_authorization_update(provider_authorizations.Element) + + provider_hub_metadata = cls._args_schema.provider_registration.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrArg( + options=["direct-rp-role-definition-id"], + nullable=True, + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrArg( + options=["global-async-operation-resource-type-name"], + nullable=True, + ) + provider_hub_metadata.provider_authentication = AAZObjectArg( + options=["provider-authentication"], + nullable=True, + ) + provider_hub_metadata.provider_authorizations = AAZListArg( + options=["provider-authorizations"], + nullable=True, + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrArg( + options=["regional-async-operation-resource-type-name"], + nullable=True, + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectArg( + options=["third-party-provider-authorization"], + nullable=True, + ) + + provider_authentication = cls._args_schema.provider_registration.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListArg( + options=["allowed-audiences"], + ) + + allowed_audiences = cls._args_schema.provider_registration.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrArg( + nullable=True, + ) + + provider_authorizations = cls._args_schema.provider_registration.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_authorization_update(provider_authorizations.Element) + + third_party_provider_authorization = cls._args_schema.provider_registration.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListArg( + options=["authorizations"], + nullable=True, + ) + third_party_provider_authorization.managed_by_tenant_id = AAZStrArg( + options=["managed-by-tenant-id"], + nullable=True, + ) + + authorizations = cls._args_schema.provider_registration.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrArg( + options=["principal-id"], + ) + _element.role_definition_id = AAZStrArg( + options=["role-definition-id"], + ) + + request_header_options = cls._args_schema.provider_registration.request_header_options + request_header_options.opt_in_headers = AAZStrArg( + options=["opt-in-headers"], + nullable=True, + enum={"ClientGroupMembership": "ClientGroupMembership", "ClientPrincipalNameEncoded": "ClientPrincipalNameEncoded", "MSIResourceIdEncoded": "MSIResourceIdEncoded", "ManagementGroupAncestorsEncoded": "ManagementGroupAncestorsEncoded", "NotSpecified": "NotSpecified", "PrivateLinkId": "PrivateLinkId", "PrivateLinkResourceId": "PrivateLinkResourceId", "PrivateLinkVnetTrafficTag": "PrivateLinkVnetTrafficTag", "ResourceGroupLocation": "ResourceGroupLocation", "SignedAuxiliaryTokens": "SignedAuxiliaryTokens", "SignedUserToken": "SignedUserToken", "UnboundedClientGroupMembership": "UnboundedClientGroupMembership"}, + ) + request_header_options.opt_out_headers = AAZStrArg( + options=["opt-out-headers"], + nullable=True, + enum={"NotSpecified": "NotSpecified", "SystemDataCreatedByLastModifiedBy": "SystemDataCreatedByLastModifiedBy"}, + ) + + required_features = cls._args_schema.provider_registration.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + resource_group_lock_option_during_move = cls._args_schema.provider_registration.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrArg( + options=["block-action-verb"], + help="The action verb that will be blocked when the resource group is locked during move.", + nullable=True, + enum={"Action": "Action", "Delete": "Delete", "NotSpecified": "NotSpecified", "Read": "Read", "Unrecognized": "Unrecognized", "Write": "Write"}, + ) + + resource_hydration_accounts = cls._args_schema.provider_registration.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.resource_hydration_accounts.Element + _element.account_name = AAZStrArg( + options=["account-name"], + nullable=True, + ) + _element.encrypted_key = AAZStrArg( + options=["encrypted-key"], + nullable=True, + ) + _element.max_child_resource_consistency_job_limit = AAZIntArg( + options=["max-child-resource-consistency-job-limit"], + nullable=True, + ) + _element.subscription_id = AAZStrArg( + options=["subscription-id"], + nullable=True, + ) + + response_options = cls._args_schema.provider_registration.response_options + response_options.service_client_options_type = AAZStrArg( + options=["service-client-options-type"], + nullable=True, + enum={"DisableAutomaticDecompression": "DisableAutomaticDecompression", "NotSpecified": "NotSpecified"}, + ) + + services = cls._args_schema.provider_registration.services + services.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.services.Element + _element.service_name = AAZStrArg( + options=["service-name"], + nullable=True, + ) + _element.status = AAZStrArg( + options=["status"], + nullable=True, + enum={"Active": "Active", "Inactive": "Inactive"}, + ) + + subscription_lifecycle_notification_specifications = cls._args_schema.provider_registration.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZDurationArg( + options=["soft-delete-ttl"], + nullable=True, + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListArg( + options=["subscription-state-override-actions"], + nullable=True, + ) + + subscription_state_override_actions = cls._args_schema.provider_registration.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_subscription_state_override_action_update(subscription_state_override_actions.Element) + + template_deployment_options = cls._args_schema.provider_registration.template_deployment_options + template_deployment_options.preflight_options = AAZListArg( + options=["preflight-options"], + nullable=True, + ) + template_deployment_options.preflight_supported = AAZBoolArg( + options=["preflight-supported"], + nullable=True, + ) + + preflight_options = cls._args_schema.provider_registration.template_deployment_options.preflight_options + preflight_options.Element = AAZStrArg( + nullable=True, + enum={"ContinueDeploymentOnFailure": "ContinueDeploymentOnFailure", "DefaultValidationOnly": "DefaultValidationOnly", "None": "None"}, + ) + + release_scopes = cls._args_schema.release_scopes + release_scopes.Element = AAZStrArg( + nullable=True, + ) + + resource_type_registrations = cls._args_schema.resource_type_registrations + resource_type_registrations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element + _element.kind = AAZStrArg( + options=["kind"], + help="Resource type registration kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + nullable=True, + enum={"Direct": "Direct", "Hybrid": "Hybrid", "Managed": "Managed"}, + ) + _element.add_resource_list_target_locations = AAZBoolArg( + options=["add-resource-list-target-locations"], + help="Add resource list target locations?", + nullable=True, + ) + _element.additional_options = AAZStrArg( + options=["additional-options"], + nullable=True, + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + _element.allow_empty_role_assignments = AAZBoolArg( + options=["allow-empty-role-assignments"], + nullable=True, + ) + _element.allowed_resource_names = AAZListArg( + options=["allowed-resource-names"], + nullable=True, + ) + _element.allowed_template_deployment_reference_actions = AAZListArg( + options=["allowed-template-deployment-reference-actions"], + help="Allowed template deployment reference actions.", + nullable=True, + ) + _element.allowed_unauthorized_actions = AAZListArg( + options=["allowed-unauthorized-actions"], + nullable=True, + ) + _element.api_profiles = AAZListArg( + options=["api-profiles"], + nullable=True, + ) + _element.async_operation_resource_type_name = AAZStrArg( + options=["async-operation-resource-type-name"], + nullable=True, + ) + _element.async_timeout_rules = AAZListArg( + options=["async-timeout-rules"], + help="Async timeout rules", + nullable=True, + ) + _element.authorization_action_mappings = AAZListArg( + options=["authorization-action-mappings"], + nullable=True, + ) + _element.availability_zone_rule = AAZObjectArg( + options=["availability-zone-rule"], + nullable=True, + ) + _element.capacity_rule = AAZObjectArg( + options=["capacity-rule"], + help="Capacity rule.", + nullable=True, + ) + _element.category = AAZStrArg( + options=["category"], + nullable=True, + enum={"FreeForm": "FreeForm", "Internal": "Internal", "None": "None", "PureProxy": "PureProxy"}, + ) + _element.check_name_availability_specifications = AAZObjectArg( + options=["check-name-availability-specifications"], + nullable=True, + ) + _element.common_api_versions = AAZListArg( + options=["common-api-versions"], + help="Common API versions for the resource type.", + nullable=True, + ) + _element.cross_tenant_token_validation = AAZStrArg( + options=["cross-tenant-token-validation"], + nullable=True, + enum={"EnsureSecureValidation": "EnsureSecureValidation", "PassthroughInsecureToken": "PassthroughInsecureToken"}, + ) + _element.default_api_version = AAZStrArg( + options=["default-api-version"], + nullable=True, + ) + _element.disallowed_action_verbs = AAZListArg( + options=["disallowed-action-verbs"], + nullable=True, + ) + _element.disallowed_end_user_operations = AAZListArg( + options=["disallowed-end-user-operations"], + nullable=True, + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + nullable=True, + ) + _element.enable_async_operation = AAZBoolArg( + options=["enable-async-operation"], + nullable=True, + ) + _element.enable_third_party_s2_s = AAZBoolArg( + options=["enable-third-party-s2-s"], + nullable=True, + ) + _element.endpoints = AAZListArg( + options=["endpoints"], + nullable=True, + ) + _element.extended_locations = AAZListArg( + options=["extended-locations"], + nullable=True, + ) + _element.extension_options = AAZObjectArg( + options=["extension-options"], + nullable=True, + ) + _element.features_rule = AAZObjectArg( + options=["features-rule"], + nullable=True, + ) + _element.frontdoor_request_mode = AAZStrArg( + options=["frontdoor-request-mode"], + nullable=True, + enum={"NotSpecified": "NotSpecified", "UseManifest": "UseManifest"}, + ) + _element.grouping_tag = AAZStrArg( + options=["grouping-tag"], + help="Grouping tag.", + nullable=True, + ) + _element.identity_management = AAZObjectArg( + options=["identity-management"], + nullable=True, + ) + _element.is_pure_proxy = AAZBoolArg( + options=["is-pure-proxy"], + nullable=True, + ) + _element.legacy_name = AAZStrArg( + options=["legacy-name"], + nullable=True, + ) + _element.legacy_names = AAZListArg( + options=["legacy-names"], + nullable=True, + ) + _element.legacy_policy = AAZObjectArg( + options=["legacy-policy"], + nullable=True, + ) + _element.linked_access_checks = AAZListArg( + options=["linked-access-checks"], + nullable=True, + ) + _element.linked_notification_rules = AAZListArg( + options=["linked-notification-rules"], + nullable=True, + ) + _element.linked_operation_rules = AAZListArg( + options=["linked-operation-rules"], + nullable=True, + ) + _element.logging_rules = AAZListArg( + options=["logging-rules"], + nullable=True, + ) + _element.managed_resource_group_configuration = AAZObjectArg( + options=["managed-resource-group-configuration"], + nullable=True, + ) + _element.management = AAZObjectArg( + options=["management"], + nullable=True, + ) + _element.manifest_link = AAZStrArg( + options=["manifest-link"], + help="Manifest link.", + nullable=True, + ) + _element.marketplace_options = AAZObjectArg( + options=["marketplace-options"], + help="Marketplace options.", + nullable=True, + ) + _element.marketplace_type = AAZStrArg( + options=["marketplace-type"], + nullable=True, + enum={"AddOn": "AddOn", "Bypass": "Bypass", "NotSpecified": "NotSpecified", "Store": "Store"}, + ) + _element.metadata = AAZDictArg( + options=["metadata"], + nullable=True, + ) + _element.notifications = AAZListArg( + options=["notifications"], + nullable=True, + ) + cls._build_args_notifications_update(_element.notifications) + _element.on_behalf_of_tokens = AAZObjectArg( + options=["on-behalf-of-tokens"], + nullable=True, + ) + _element.open_api_configuration = AAZObjectArg( + options=["open-api-configuration"], + nullable=True, + ) + _element.policy_execution_type = AAZStrArg( + options=["policy-execution-type"], + nullable=True, + enum={"BypassPolicies": "BypassPolicies", "ExecutePolicies": "ExecutePolicies", "ExpectPartialPutRequests": "ExpectPartialPutRequests", "NotSpecified": "NotSpecified"}, + ) + _element.private_endpoint_configuration = AAZObjectArg( + options=["private-endpoint-configuration"], + nullable=True, + ) + _element.quota_rule = AAZObjectArg( + options=["quota-rule"], + nullable=True, + ) + _element.regionality = AAZStrArg( + options=["regionality"], + nullable=True, + enum={"Global": "Global", "NotSpecified": "NotSpecified", "Regional": "Regional"}, + ) + _element.request_header_options = AAZObjectArg( + options=["request-header-options"], + nullable=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + _element.resource_cache = AAZObjectArg( + options=["resource-cache"], + help="Resource cache options.", + nullable=True, + ) + _element.resource_concurrency_control_options = AAZDictArg( + options=["resource-concurrency-control-options"], + nullable=True, + ) + _element.resource_deletion_policy = AAZStrArg( + options=["resource-deletion-policy"], + nullable=True, + enum={"CascadeDeleteAll": "CascadeDeleteAll", "CascadeDeleteProxyOnlyChildren": "CascadeDeleteProxyOnlyChildren", "NotSpecified": "NotSpecified"}, + ) + _element.resource_graph_configuration = AAZObjectArg( + options=["resource-graph-configuration"], + nullable=True, + ) + _element.resource_management_options = AAZObjectArg( + options=["resource-management-options"], + help="Resource management options.", + nullable=True, + ) + _element.resource_move_policy = AAZObjectArg( + options=["resource-move-policy"], + nullable=True, + ) + _element.resource_provider_authorization_rules = AAZObjectArg( + options=["resource-provider-authorization-rules"], + nullable=True, + ) + cls._build_args_resource_provider_authorization_rules_update(_element.resource_provider_authorization_rules) + _element.resource_query_management = AAZObjectArg( + options=["resource-query-management"], + help="Resource query management options.", + nullable=True, + ) + _element.resource_sub_type = AAZStrArg( + options=["resource-sub-type"], + nullable=True, + enum={"AsyncOperation": "AsyncOperation", "NotSpecified": "NotSpecified"}, + ) + _element.resource_type_common_attribute_management = AAZObjectArg( + options=["resource-type-common-attribute-management"], + help="Resource type common attribute management.", + nullable=True, + ) + _element.resource_validation = AAZStrArg( + options=["resource-validation"], + nullable=True, + enum={"NotSpecified": "NotSpecified", "ProfaneWords": "ProfaneWords", "ReservedWords": "ReservedWords"}, + ) + _element.routing_rule = AAZObjectArg( + options=["routing-rule"], + help="Routing rule.", + nullable=True, + ) + _element.routing_type = AAZStrArg( + options=["routing-type"], + nullable=True, + enum={"CascadeExtension": "CascadeExtension", "Default": "Default", "Extension": "Extension", "Failover": "Failover", "Fanout": "Fanout", "HostBased": "HostBased", "LocationBased": "LocationBased", "ProxyOnly": "ProxyOnly", "Tenant": "Tenant"}, + ) + _element.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + nullable=True, + ) + _element.sku_link = AAZStrArg( + options=["sku-link"], + nullable=True, + ) + _element.subscription_lifecycle_notification_specifications = AAZObjectArg( + options=["subscription-lifecycle-notification-specifications"], + nullable=True, + ) + _element.subscription_state_rules = AAZListArg( + options=["subscription-state-rules"], + nullable=True, + ) + _element.supports_tags = AAZBoolArg( + options=["supports-tags"], + nullable=True, + ) + _element.swagger_specifications = AAZListArg( + options=["swagger-specifications"], + nullable=True, + ) + _element.template_deployment_options = AAZObjectArg( + options=["template-deployment-options"], + nullable=True, + ) + _element.template_deployment_policy = AAZObjectArg( + options=["template-deployment-policy"], + nullable=True, + ) + _element.throttling_rules = AAZListArg( + options=["throttling-rules"], + nullable=True, + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + nullable=True, + ) + cls._build_args_token_auth_configuration_update(_element.token_auth_configuration) + + allowed_resource_names = cls._args_schema.resource_type_registrations.Element.allowed_resource_names + allowed_resource_names.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.allowed_resource_names.Element + _element.get_action_verb = AAZStrArg( + options=["get-action-verb"], + help="Get action verb.", + nullable=True, + ) + _element.name = AAZStrArg( + options=["name"], + help="Resource name.", + nullable=True, + ) + + allowed_template_deployment_reference_actions = cls._args_schema.resource_type_registrations.Element.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrArg( + nullable=True, + ) + + allowed_unauthorized_actions = cls._args_schema.resource_type_registrations.Element.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrArg( + nullable=True, + ) + + api_profiles = cls._args_schema.resource_type_registrations.Element.api_profiles + api_profiles.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.api_profiles.Element + _element.api_version = AAZStrArg( + options=["api-version"], + help="Api version.", + nullable=True, + ) + _element.profile_version = AAZStrArg( + options=["profile-version"], + help="Profile version.", + nullable=True, + ) + + async_timeout_rules = cls._args_schema.resource_type_registrations.Element.async_timeout_rules + async_timeout_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.async_timeout_rules.Element + _element.action_name = AAZStrArg( + options=["action-name"], + nullable=True, + ) + _element.timeout = AAZStrArg( + options=["timeout"], + nullable=True, + ) + + authorization_action_mappings = cls._args_schema.resource_type_registrations.Element.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.authorization_action_mappings.Element + _element.desired = AAZStrArg( + options=["desired"], + nullable=True, + ) + _element.original = AAZStrArg( + options=["original"], + nullable=True, + ) + + availability_zone_rule = cls._args_schema.resource_type_registrations.Element.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrArg( + options=["availability-zone-policy"], + nullable=True, + enum={"MultiZoned": "MultiZoned", "NotSpecified": "NotSpecified", "SingleZoned": "SingleZoned"}, + ) + + capacity_rule = cls._args_schema.resource_type_registrations.Element.capacity_rule + capacity_rule.capacity_policy = AAZStrArg( + options=["capacity-policy"], + help="Capacity policy.", + nullable=True, + enum={"Default": "Default", "Restricted": "Restricted"}, + ) + capacity_rule.sku_alias = AAZStrArg( + options=["sku-alias"], + help="Sku alias", + nullable=True, + ) + + check_name_availability_specifications = cls._args_schema.resource_type_registrations.Element.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolArg( + options=["enable-default-validation"], + nullable=True, + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListArg( + options=["resource-types-with-custom-validation"], + nullable=True, + ) + + resource_types_with_custom_validation = cls._args_schema.resource_type_registrations.Element.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrArg( + nullable=True, + ) + + common_api_versions = cls._args_schema.resource_type_registrations.Element.common_api_versions + common_api_versions.Element = AAZStrArg( + nullable=True, + ) + + disallowed_action_verbs = cls._args_schema.resource_type_registrations.Element.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrArg( + nullable=True, + ) + + disallowed_end_user_operations = cls._args_schema.resource_type_registrations.Element.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrArg( + nullable=True, + ) + + dsts_configuration = cls._args_schema.resource_type_registrations.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + nullable=True, + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + ) + + endpoints = cls._args_schema.resource_type_registrations.Element.endpoints + endpoints.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.endpoints.Element + _element.api_version = AAZStrArg( + options=["api-version"], + help="Api version.", + nullable=True, + ) + _element.api_versions = AAZListArg( + options=["api-versions"], + nullable=True, + ) + _element.data_boundary = AAZStrArg( + options=["data-boundary"], + nullable=True, + enum={"EU": "EU", "Global": "Global", "NotDefined": "NotDefined", "US": "US"}, + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + nullable=True, + ) + _element.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + _element.endpoint_type = AAZStrArg( + options=["endpoint-type"], + nullable=True, + enum={"Canary": "Canary", "NotSpecified": "NotSpecified", "Production": "Production", "TestInProduction": "TestInProduction"}, + ) + _element.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + nullable=True, + ) + _element.extensions = AAZListArg( + options=["extensions"], + nullable=True, + ) + _element.features_rule = AAZObjectArg( + options=["features-rule"], + nullable=True, + ) + _element.kind = AAZStrArg( + options=["kind"], + help="Resource type endpoint kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + nullable=True, + enum={"Direct": "Direct", "Managed": "Managed"}, + ) + _element.locations = AAZListArg( + options=["locations"], + nullable=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + _element.sku_link = AAZStrArg( + options=["sku-link"], + nullable=True, + ) + _element.timeout = AAZDurationArg( + options=["timeout"], + nullable=True, + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + nullable=True, + ) + cls._build_args_token_auth_configuration_update(_element.token_auth_configuration) + _element.zones = AAZListArg( + options=["zones"], + help="List of zones.", + nullable=True, + ) + + api_versions = cls._args_schema.resource_type_registrations.Element.endpoints.Element.api_versions + api_versions.Element = AAZStrArg( + nullable=True, + ) + + dsts_configuration = cls._args_schema.resource_type_registrations.Element.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + nullable=True, + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + ) + + extensions = cls._args_schema.resource_type_registrations.Element.endpoints.Element.extensions + extensions.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + nullable=True, + ) + _element.extension_categories = AAZListArg( + options=["extension-categories"], + nullable=True, + ) + _element.timeout = AAZDurationArg( + options=["timeout"], + nullable=True, + ) + + extension_categories = cls._args_schema.resource_type_registrations.Element.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrArg( + nullable=True, + enum={"BestMatchOperationBegin": "BestMatchOperationBegin", "NotSpecified": "NotSpecified", "ResourceCreationBegin": "ResourceCreationBegin", "ResourceCreationCompleted": "ResourceCreationCompleted", "ResourceCreationValidate": "ResourceCreationValidate", "ResourceDeletionBegin": "ResourceDeletionBegin", "ResourceDeletionCompleted": "ResourceDeletionCompleted", "ResourceDeletionValidate": "ResourceDeletionValidate", "ResourceMoveBegin": "ResourceMoveBegin", "ResourceMoveCompleted": "ResourceMoveCompleted", "ResourcePatchBegin": "ResourcePatchBegin", "ResourcePatchCompleted": "ResourcePatchCompleted", "ResourcePatchValidate": "ResourcePatchValidate", "ResourcePostAction": "ResourcePostAction", "ResourceReadBegin": "ResourceReadBegin", "ResourceReadValidate": "ResourceReadValidate", "SubscriptionLifecycleNotification": "SubscriptionLifecycleNotification", "SubscriptionLifecycleNotificationDeletion": "SubscriptionLifecycleNotificationDeletion"}, + ) + + features_rule = cls._args_schema.resource_type_registrations.Element.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + enum={"All": "All", "Any": "Any"}, + ) + + locations = cls._args_schema.resource_type_registrations.Element.endpoints.Element.locations + locations.Element = AAZStrArg( + nullable=True, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.endpoints.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + zones = cls._args_schema.resource_type_registrations.Element.endpoints.Element.zones + zones.Element = AAZStrArg( + nullable=True, + ) + + extended_locations = cls._args_schema.resource_type_registrations.Element.extended_locations + extended_locations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.extended_locations.Element + _element.supported_policy = AAZStrArg( + options=["supported-policy"], + nullable=True, + ) + _element.type = AAZStrArg( + options=["type"], + nullable=True, + ) + + extension_options = cls._args_schema.resource_type_registrations.Element.extension_options + extension_options.resource_creation_begin = AAZObjectArg( + options=["resource-creation-begin"], + nullable=True, + ) + + resource_creation_begin = cls._args_schema.resource_type_registrations.Element.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListArg( + options=["request"], + nullable=True, + ) + resource_creation_begin.response = AAZListArg( + options=["response"], + nullable=True, + ) + + request = cls._args_schema.resource_type_registrations.Element.extension_options.resource_creation_begin.request + request.Element = AAZStrArg( + nullable=True, + enum={"DoNotMergeExistingReadOnlyAndSecretProperties": "DoNotMergeExistingReadOnlyAndSecretProperties", "IncludeInternalMetadata": "IncludeInternalMetadata", "NotSpecified": "NotSpecified"}, + ) + + response = cls._args_schema.resource_type_registrations.Element.extension_options.resource_creation_begin.response + response.Element = AAZStrArg( + nullable=True, + enum={"DoNotMergeExistingReadOnlyAndSecretProperties": "DoNotMergeExistingReadOnlyAndSecretProperties", "IncludeInternalMetadata": "IncludeInternalMetadata", "NotSpecified": "NotSpecified"}, + ) + + features_rule = cls._args_schema.resource_type_registrations.Element.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + enum={"All": "All", "Any": "Any"}, + ) + + identity_management = cls._args_schema.resource_type_registrations.Element.identity_management + identity_management.application_id = AAZStrArg( + options=["application-id"], + nullable=True, + ) + identity_management.application_ids = AAZListArg( + options=["application-ids"], + nullable=True, + ) + identity_management.delegation_app_ids = AAZListArg( + options=["delegation-app-ids"], + nullable=True, + ) + identity_management.type = AAZStrArg( + options=["type"], + nullable=True, + enum={"Actor": "Actor", "DelegatedResourceIdentity": "DelegatedResourceIdentity", "NotSpecified": "NotSpecified", "SystemAssigned": "SystemAssigned", "UserAssigned": "UserAssigned"}, + ) + + application_ids = cls._args_schema.resource_type_registrations.Element.identity_management.application_ids + application_ids.Element = AAZStrArg( + nullable=True, + ) + + delegation_app_ids = cls._args_schema.resource_type_registrations.Element.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrArg( + nullable=True, + ) + + legacy_names = cls._args_schema.resource_type_registrations.Element.legacy_names + legacy_names.Element = AAZStrArg( + nullable=True, + ) + + legacy_policy = cls._args_schema.resource_type_registrations.Element.legacy_policy + legacy_policy.disallowed_conditions = AAZListArg( + options=["disallowed-conditions"], + nullable=True, + ) + legacy_policy.disallowed_legacy_operations = AAZListArg( + options=["disallowed-legacy-operations"], + nullable=True, + ) + + disallowed_conditions = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListArg( + options=["disallowed-legacy-operations"], + nullable=True, + ) + _element.feature = AAZStrArg( + options=["feature"], + help="Feature string.", + nullable=True, + ) + + disallowed_legacy_operations = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrArg( + nullable=True, + enum={"Action": "Action", "AzureAsyncOperationWaiting": "AzureAsyncOperationWaiting", "Create": "Create", "Delete": "Delete", "DeploymentCleanup": "DeploymentCleanup", "EvaluateDeploymentOutput": "EvaluateDeploymentOutput", "NotSpecified": "NotSpecified", "Read": "Read", "ResourceCacheWaiting": "ResourceCacheWaiting", "Waiting": "Waiting"}, + ) + + disallowed_legacy_operations = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrArg( + nullable=True, + enum={"Action": "Action", "AzureAsyncOperationWaiting": "AzureAsyncOperationWaiting", "Create": "Create", "Delete": "Delete", "DeploymentCleanup": "DeploymentCleanup", "EvaluateDeploymentOutput": "EvaluateDeploymentOutput", "NotSpecified": "NotSpecified", "Read": "Read", "ResourceCacheWaiting": "ResourceCacheWaiting", "Waiting": "Waiting"}, + ) + + linked_access_checks = cls._args_schema.resource_type_registrations.Element.linked_access_checks + linked_access_checks.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.linked_access_checks.Element + _element.action_name = AAZStrArg( + options=["action-name"], + nullable=True, + ) + _element.linked_action = AAZStrArg( + options=["linked-action"], + nullable=True, + ) + _element.linked_action_verb = AAZStrArg( + options=["linked-action-verb"], + nullable=True, + ) + _element.linked_property = AAZStrArg( + options=["linked-property"], + nullable=True, + ) + _element.linked_type = AAZStrArg( + options=["linked-type"], + nullable=True, + ) + + linked_notification_rules = cls._args_schema.resource_type_registrations.Element.linked_notification_rules + linked_notification_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element + _element.actions = AAZListArg( + options=["actions"], + nullable=True, + ) + _element.actions_on_failed_operation = AAZListArg( + options=["actions-on-failed-operation"], + nullable=True, + ) + _element.fast_path_actions = AAZListArg( + options=["fast-path-actions"], + nullable=True, + ) + _element.fast_path_actions_on_failed_operation = AAZListArg( + options=["fast-path-actions-on-failed-operation"], + nullable=True, + ) + _element.linked_notification_timeout = AAZDurationArg( + options=["linked-notification-timeout"], + nullable=True, + ) + + actions = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.actions + actions.Element = AAZStrArg( + nullable=True, + ) + + actions_on_failed_operation = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrArg( + nullable=True, + ) + + fast_path_actions = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrArg( + nullable=True, + ) + + fast_path_actions_on_failed_operation = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrArg( + nullable=True, + ) + + linked_operation_rules = cls._args_schema.resource_type_registrations.Element.linked_operation_rules + linked_operation_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.linked_operation_rules.Element + _element.depends_on_types = AAZListArg( + options=["depends-on-types"], + help="Depends on types.", + nullable=True, + ) + _element.linked_action = AAZStrArg( + options=["linked-action"], + enum={"Blocked": "Blocked", "Enabled": "Enabled", "NotSpecified": "NotSpecified", "Validate": "Validate"}, + ) + _element.linked_operation = AAZStrArg( + options=["linked-operation"], + enum={"CrossResourceGroupResourceMove": "CrossResourceGroupResourceMove", "CrossSubscriptionResourceMove": "CrossSubscriptionResourceMove", "None": "None"}, + ) + + depends_on_types = cls._args_schema.resource_type_registrations.Element.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrArg( + nullable=True, + ) + + logging_rules = cls._args_schema.resource_type_registrations.Element.logging_rules + logging_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.logging_rules.Element + _element.action = AAZStrArg( + options=["action"], + ) + _element.detail_level = AAZStrArg( + options=["detail-level"], + enum={"Body": "Body", "None": "None"}, + ) + _element.direction = AAZStrArg( + options=["direction"], + enum={"None": "None", "Request": "Request", "Response": "Response"}, + ) + _element.hidden_property_paths = AAZObjectArg( + options=["hidden-property-paths"], + nullable=True, + ) + + hidden_property_paths = cls._args_schema.resource_type_registrations.Element.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListArg( + options=["hidden-paths-on-request"], + nullable=True, + ) + hidden_property_paths.hidden_paths_on_response = AAZListArg( + options=["hidden-paths-on-response"], + nullable=True, + ) + + hidden_paths_on_request = cls._args_schema.resource_type_registrations.Element.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrArg( + nullable=True, + ) + + hidden_paths_on_response = cls._args_schema.resource_type_registrations.Element.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrArg( + nullable=True, + ) + + managed_resource_group_configuration = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListArg( + options=["application-ids"], + nullable=True, + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectArg( + options=["deny-assignment-configuration"], + nullable=True, + ) + managed_resource_group_configuration.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + managed_resource_group_configuration.resource_group_location_override = AAZStrArg( + options=["resource-group-location-override"], + nullable=True, + ) + + application_ids = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrArg( + nullable=True, + ) + + deny_assignment_configuration = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + deny_assignment_configuration.not_actions = AAZListArg( + options=["not-actions"], + nullable=True, + ) + + not_actions = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrArg( + nullable=True, + ) + + management = cls._args_schema.resource_type_registrations.Element.management + management.authorization_owners = AAZListArg( + options=["authorization-owners"], + nullable=True, + ) + management.canary_manifest_owners = AAZListArg( + options=["canary-manifest-owners"], + help="List of manifest owners for canary.", + nullable=True, + ) + management.error_response_message_options = AAZObjectArg( + options=["error-response-message-options"], + help="Options for error response messages.", + nullable=True, + ) + management.expedited_rollout_metadata = AAZObjectArg( + options=["expedited-rollout-metadata"], + help="Metadata for expedited rollout.", + nullable=True, + ) + management.expedited_rollout_submitters = AAZListArg( + options=["expedited-rollout-submitters"], + help="List of expedited rollout submitters.", + nullable=True, + ) + management.incident_contact_email = AAZStrArg( + options=["incident-contact-email"], + nullable=True, + ) + management.incident_routing_service = AAZStrArg( + options=["incident-routing-service"], + nullable=True, + ) + management.incident_routing_team = AAZStrArg( + options=["incident-routing-team"], + nullable=True, + ) + management.manifest_owners = AAZListArg( + options=["manifest-owners"], + nullable=True, + ) + management.pc_code = AAZStrArg( + options=["pc-code"], + help="The profit center code for the subscription.", + nullable=True, + ) + management.profit_center_program_id = AAZStrArg( + options=["profit-center-program-id"], + help="The profit center program id for the subscription.", + nullable=True, + ) + management.resource_access_policy = AAZStrArg( + options=["resource-access-policy"], + nullable=True, + enum={"AcisActionAllowed": "AcisActionAllowed", "AcisReadAllowed": "AcisReadAllowed", "NotSpecified": "NotSpecified"}, + ) + management.resource_access_roles = AAZListArg( + options=["resource-access-roles"], + nullable=True, + ) + management.schema_owners = AAZListArg( + options=["schema-owners"], + nullable=True, + ) + management.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + nullable=True, + ) + + authorization_owners = cls._args_schema.resource_type_registrations.Element.management.authorization_owners + authorization_owners.Element = AAZStrArg( + nullable=True, + ) + + canary_manifest_owners = cls._args_schema.resource_type_registrations.Element.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrArg( + nullable=True, + ) + + error_response_message_options = cls._args_schema.resource_type_registrations.Element.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrArg( + options=["server-failure-response-message-type"], + help="Type of server failure response message.", + nullable=True, + enum={"NotSpecified": "NotSpecified", "OutageReporting": "OutageReporting"}, + ) + + expedited_rollout_metadata = cls._args_schema.resource_type_registrations.Element.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolArg( + options=["enabled"], + help="Expedited rollout enabled?", + nullable=True, + ) + expedited_rollout_metadata.expedited_rollout_intent = AAZStrArg( + options=["expedited-rollout-intent"], + help="Expedited rollout intent.", + nullable=True, + enum={"Hotfix": "Hotfix", "NotSpecified": "NotSpecified"}, + ) + + expedited_rollout_submitters = cls._args_schema.resource_type_registrations.Element.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrArg( + nullable=True, + ) + + manifest_owners = cls._args_schema.resource_type_registrations.Element.management.manifest_owners + manifest_owners.Element = AAZStrArg( + nullable=True, + ) + + resource_access_roles = cls._args_schema.resource_type_registrations.Element.management.resource_access_roles + resource_access_roles.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_access_role_update(resource_access_roles.Element) + + schema_owners = cls._args_schema.resource_type_registrations.Element.management.schema_owners + schema_owners.Element = AAZStrArg( + nullable=True, + ) + + service_tree_infos = cls._args_schema.resource_type_registrations.Element.management.service_tree_infos + service_tree_infos.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_service_tree_info_update(service_tree_infos.Element) + + marketplace_options = cls._args_schema.resource_type_registrations.Element.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolArg( + options=["add-on-plan-conversion-allowed"], + help="Add-on plan conversion allowed.", + nullable=True, + ) + + metadata = cls._args_schema.resource_type_registrations.Element.metadata + metadata.Element = AAZFreeFormDictArg( + nullable=True, + blank={}, + ) + + on_behalf_of_tokens = cls._args_schema.resource_type_registrations.Element.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrArg( + options=["action-name"], + nullable=True, + ) + on_behalf_of_tokens.life_time = AAZStrArg( + options=["life-time"], + nullable=True, + ) + + open_api_configuration = cls._args_schema.resource_type_registrations.Element.open_api_configuration + open_api_configuration.validation = AAZObjectArg( + options=["validation"], + nullable=True, + ) + + validation = cls._args_schema.resource_type_registrations.Element.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolArg( + options=["allow-noncompliant-collection-response"], + help="Indicates whether a non compliance response is allowed for a LIST call", + nullable=True, + ) + + private_endpoint_configuration = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListArg( + options=["group-connectivity-information"], + help="The list of group connectivity information.", + ) + private_endpoint_configuration.min_api_version = AAZStrArg( + options=["min-api-version"], + help="The first api version that support private endpoint.", + ) + + group_connectivity_information = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrArg( + options=["group-id"], + help="The group id.", + ) + _element.redirect_map_id = AAZStrArg( + options=["redirect-map-id"], + help="The redirect map id.", + nullable=True, + ) + _element.required_members = AAZListArg( + options=["required-members"], + help="List of required members for the group id.", + ) + _element.required_zone_names = AAZListArg( + options=["required-zone-names"], + help="List of required zone names for the group id.", + ) + + required_members = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrArg( + nullable=True, + ) + + required_zone_names = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrArg( + nullable=True, + ) + + quota_rule = cls._args_schema.resource_type_registrations.Element.quota_rule + quota_rule.location_rules = AAZListArg( + options=["location-rules"], + nullable=True, + ) + quota_rule.quota_policy = AAZStrArg( + options=["quota-policy"], + help="Quota policy.", + nullable=True, + enum={"Default": "Default", "None": "None", "Restricted": "Restricted"}, + ) + quota_rule.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + + location_rules = cls._args_schema.resource_type_registrations.Element.quota_rule.location_rules + location_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.quota_rule.location_rules.Element + _element.location = AAZStrArg( + options=["location"], + nullable=True, + ) + _element.policy = AAZStrArg( + options=["policy"], + help="Quota policy.", + nullable=True, + enum={"Default": "Default", "None": "None", "Restricted": "Restricted"}, + ) + _element.quota_id = AAZStrArg( + options=["quota-id"], + nullable=True, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.quota_rule.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + request_header_options = cls._args_schema.resource_type_registrations.Element.request_header_options + request_header_options.opt_in_headers = AAZStrArg( + options=["opt-in-headers"], + nullable=True, + enum={"ClientGroupMembership": "ClientGroupMembership", "ClientPrincipalNameEncoded": "ClientPrincipalNameEncoded", "MSIResourceIdEncoded": "MSIResourceIdEncoded", "ManagementGroupAncestorsEncoded": "ManagementGroupAncestorsEncoded", "NotSpecified": "NotSpecified", "PrivateLinkId": "PrivateLinkId", "PrivateLinkResourceId": "PrivateLinkResourceId", "PrivateLinkVnetTrafficTag": "PrivateLinkVnetTrafficTag", "ResourceGroupLocation": "ResourceGroupLocation", "SignedAuxiliaryTokens": "SignedAuxiliaryTokens", "SignedUserToken": "SignedUserToken", "UnboundedClientGroupMembership": "UnboundedClientGroupMembership"}, + ) + request_header_options.opt_out_headers = AAZStrArg( + options=["opt-out-headers"], + nullable=True, + enum={"NotSpecified": "NotSpecified", "SystemDataCreatedByLastModifiedBy": "SystemDataCreatedByLastModifiedBy"}, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + resource_cache = cls._args_schema.resource_type_registrations.Element.resource_cache + resource_cache.enable_resource_cache = AAZBoolArg( + options=["enable-resource-cache"], + help="Enable resource cache.", + nullable=True, + ) + resource_cache.resource_cache_expiration_timespan = AAZStrArg( + options=["resource-cache-expiration-timespan"], + help="Resource cache expiration timespan.", + nullable=True, + ) + + resource_concurrency_control_options = cls._args_schema.resource_type_registrations.Element.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.resource_concurrency_control_options.Element + _element.policy = AAZStrArg( + options=["policy"], + nullable=True, + enum={"NotSpecified": "NotSpecified", "SynchronizeBeginExtension": "SynchronizeBeginExtension"}, + ) + + resource_graph_configuration = cls._args_schema.resource_type_registrations.Element.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrArg( + options=["api-version"], + nullable=True, + ) + resource_graph_configuration.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + + resource_management_options = cls._args_schema.resource_type_registrations.Element.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectArg( + options=["batch-provisioning-support"], + help="Batch provisioning support.", + nullable=True, + ) + resource_management_options.delete_dependencies = AAZListArg( + options=["delete-dependencies"], + help="Delete dependencies.", + nullable=True, + ) + resource_management_options.nested_provisioning_support = AAZObjectArg( + options=["nested-provisioning-support"], + help="Nested provisioning support.", + nullable=True, + ) + + batch_provisioning_support = cls._args_schema.resource_type_registrations.Element.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrArg( + options=["supported-operations"], + help="Supported operations.", + nullable=True, + enum={"Delete": "Delete", "Get": "Get", "NotSpecified": "NotSpecified"}, + ) + + delete_dependencies = cls._args_schema.resource_type_registrations.Element.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrArg( + options=["linked-property"], + help="Linked property.", + nullable=True, + ) + _element.linked_type = AAZStrArg( + options=["linked-type"], + help="Linked type.", + nullable=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + help="Required features.", + nullable=True, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + nested_provisioning_support = cls._args_schema.resource_type_registrations.Element.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrArg( + options=["minimum-api-version"], + help="Minimum API version.", + nullable=True, + ) + + resource_move_policy = cls._args_schema.resource_type_registrations.Element.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolArg( + options=["cross-resource-group-move-enabled"], + nullable=True, + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolArg( + options=["cross-subscription-move-enabled"], + nullable=True, + ) + resource_move_policy.validation_required = AAZBoolArg( + options=["validation-required"], + nullable=True, + ) + + resource_query_management = cls._args_schema.resource_type_registrations.Element.resource_query_management + resource_query_management.filter_option = AAZStrArg( + options=["filter-option"], + help="Filter option.", + nullable=True, + enum={"EnableSubscriptionFilterOnTenant": "EnableSubscriptionFilterOnTenant", "NotSpecified": "NotSpecified"}, + ) + + resource_type_common_attribute_management = cls._args_schema.resource_type_registrations.Element.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrArg( + options=["common-api-versions-merge-mode"], + help="Common api versions merge mode.", + nullable=True, + enum={"Merge": "Merge", "Overwrite": "Overwrite"}, + ) + + routing_rule = cls._args_schema.resource_type_registrations.Element.routing_rule + routing_rule.host_resource_type = AAZStrArg( + options=["host-resource-type"], + help="Hosted resource type.", + nullable=True, + ) + + service_tree_infos = cls._args_schema.resource_type_registrations.Element.service_tree_infos + service_tree_infos.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_service_tree_info_update(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._args_schema.resource_type_registrations.Element.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZDurationArg( + options=["soft-delete-ttl"], + nullable=True, + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListArg( + options=["subscription-state-override-actions"], + nullable=True, + ) + + subscription_state_override_actions = cls._args_schema.resource_type_registrations.Element.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_subscription_state_override_action_update(subscription_state_override_actions.Element) + + subscription_state_rules = cls._args_schema.resource_type_registrations.Element.subscription_state_rules + subscription_state_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.subscription_state_rules.Element + _element.allowed_actions = AAZListArg( + options=["allowed-actions"], + nullable=True, + ) + _element.state = AAZStrArg( + options=["state"], + nullable=True, + enum={"Deleted": "Deleted", "Disabled": "Disabled", "Enabled": "Enabled", "NotDefined": "NotDefined", "PastDue": "PastDue", "Warned": "Warned"}, + ) + + allowed_actions = cls._args_schema.resource_type_registrations.Element.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrArg( + nullable=True, + ) + + swagger_specifications = cls._args_schema.resource_type_registrations.Element.swagger_specifications + swagger_specifications.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.swagger_specifications.Element + _element.api_versions = AAZListArg( + options=["api-versions"], + nullable=True, + ) + _element.swagger_spec_folder_uri = AAZStrArg( + options=["swagger-spec-folder-uri"], + nullable=True, + ) + + api_versions = cls._args_schema.resource_type_registrations.Element.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrArg( + nullable=True, + ) + + template_deployment_options = cls._args_schema.resource_type_registrations.Element.template_deployment_options + template_deployment_options.preflight_options = AAZListArg( + options=["preflight-options"], + nullable=True, + ) + template_deployment_options.preflight_supported = AAZBoolArg( + options=["preflight-supported"], + nullable=True, + ) + + preflight_options = cls._args_schema.resource_type_registrations.Element.template_deployment_options.preflight_options + preflight_options.Element = AAZStrArg( + nullable=True, + enum={"ContinueDeploymentOnFailure": "ContinueDeploymentOnFailure", "DefaultValidationOnly": "DefaultValidationOnly", "None": "None"}, + ) + + template_deployment_policy = cls._args_schema.resource_type_registrations.Element.template_deployment_policy + template_deployment_policy.capabilities = AAZStrArg( + options=["capabilities"], + enum={"Default": "Default", "Preflight": "Preflight"}, + ) + template_deployment_policy.preflight_notifications = AAZStrArg( + options=["preflight-notifications"], + nullable=True, + enum={"None": "None", "UnregisteredSubscriptions": "UnregisteredSubscriptions"}, + ) + template_deployment_policy.preflight_options = AAZStrArg( + options=["preflight-options"], + enum={"DeploymentRequests": "DeploymentRequests", "None": "None", "RegisteredOnly": "RegisteredOnly", "TestOnly": "TestOnly", "ValidationRequests": "ValidationRequests"}, + ) + + throttling_rules = cls._args_schema.resource_type_registrations.Element.throttling_rules + throttling_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element + _element.action = AAZStrArg( + options=["action"], + ) + _element.application_id = AAZListArg( + options=["application-id"], + nullable=True, + ) + _element.metrics = AAZListArg( + options=["metrics"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + + application_id = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.application_id + application_id.Element = AAZStrArg( + nullable=True, + ) + + metrics = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.metrics + metrics.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.metrics.Element + _element.interval = AAZDurationArg( + options=["interval"], + nullable=True, + ) + _element.limit = AAZIntArg( + options=["limit"], + ) + _element.type = AAZStrArg( + options=["type"], + enum={"NotSpecified": "NotSpecified", "NumberOfRequests": "NumberOfRequests", "NumberOfResources": "NumberOfResources"}, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + return cls._args_schema + + _args_extended_error_info_update = None + + @classmethod + def _build_args_extended_error_info_update(cls, _schema): + if cls._args_extended_error_info_update is not None: + _schema.additional_info = cls._args_extended_error_info_update.additional_info + _schema.code = cls._args_extended_error_info_update.code + _schema.details = cls._args_extended_error_info_update.details + _schema.message = cls._args_extended_error_info_update.message + _schema.target = cls._args_extended_error_info_update.target + return + + cls._args_extended_error_info_update = AAZObjectArg( + nullable=True, + ) + + extended_error_info_update = cls._args_extended_error_info_update + extended_error_info_update.additional_info = AAZListArg( + options=["additional-info"], + help="The additional error information.", + nullable=True, + ) + extended_error_info_update.code = AAZStrArg( + options=["code"], + help="The error code.", + nullable=True, + ) + extended_error_info_update.details = AAZListArg( + options=["details"], + help="The error details.", + nullable=True, + ) + extended_error_info_update.message = AAZStrArg( + options=["message"], + help="The error message.", + nullable=True, + ) + extended_error_info_update.target = AAZStrArg( + options=["target"], + help="The target of the error.", + nullable=True, + ) + + additional_info = cls._args_extended_error_info_update.additional_info + additional_info.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_extended_error_info_update.additional_info.Element + _element.type = AAZStrArg( + options=["type"], + help="The type of the error.", + ) + + details = cls._args_extended_error_info_update.details + details.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_extended_error_info_update(details.Element) + + _schema.additional_info = cls._args_extended_error_info_update.additional_info + _schema.code = cls._args_extended_error_info_update.code + _schema.details = cls._args_extended_error_info_update.details + _schema.message = cls._args_extended_error_info_update.message + _schema.target = cls._args_extended_error_info_update.target + + _args_notifications_update = None + + @classmethod + def _build_args_notifications_update(cls, _schema): + if cls._args_notifications_update is not None: + _schema.Element = cls._args_notifications_update.Element + return + + cls._args_notifications_update = AAZListArg( + nullable=True, + ) + + notifications_update = cls._args_notifications_update + notifications_update.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_notifications_update.Element + _element.notification_type = AAZStrArg( + options=["notification-type"], + nullable=True, + enum={"SubscriptionNotification": "SubscriptionNotification", "Unspecified": "Unspecified"}, + ) + _element.skip_notifications = AAZStrArg( + options=["skip-notifications"], + nullable=True, + enum={"Disabled": "Disabled", "Enabled": "Enabled", "Unspecified": "Unspecified"}, + ) + + _schema.Element = cls._args_notifications_update.Element + + _args_resource_access_role_update = None + + @classmethod + def _build_args_resource_access_role_update(cls, _schema): + if cls._args_resource_access_role_update is not None: + _schema.actions = cls._args_resource_access_role_update.actions + _schema.allowed_group_claims = cls._args_resource_access_role_update.allowed_group_claims + return + + cls._args_resource_access_role_update = AAZObjectArg( + nullable=True, + ) + + resource_access_role_update = cls._args_resource_access_role_update + resource_access_role_update.actions = AAZListArg( + options=["actions"], + nullable=True, + ) + resource_access_role_update.allowed_group_claims = AAZListArg( + options=["allowed-group-claims"], + nullable=True, + ) + + actions = cls._args_resource_access_role_update.actions + actions.Element = AAZStrArg( + nullable=True, + ) + + allowed_group_claims = cls._args_resource_access_role_update.allowed_group_claims + allowed_group_claims.Element = AAZStrArg( + nullable=True, + ) + + _schema.actions = cls._args_resource_access_role_update.actions + _schema.allowed_group_claims = cls._args_resource_access_role_update.allowed_group_claims + + _args_resource_provider_authorization_rules_update = None + + @classmethod + def _build_args_resource_provider_authorization_rules_update(cls, _schema): + if cls._args_resource_provider_authorization_rules_update is not None: + _schema.async_operation_polling_rules = cls._args_resource_provider_authorization_rules_update.async_operation_polling_rules + return + + cls._args_resource_provider_authorization_rules_update = AAZObjectArg( + nullable=True, + ) + + resource_provider_authorization_rules_update = cls._args_resource_provider_authorization_rules_update + resource_provider_authorization_rules_update.async_operation_polling_rules = AAZObjectArg( + options=["async-operation-polling-rules"], + nullable=True, + ) + + async_operation_polling_rules = cls._args_resource_provider_authorization_rules_update.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrArg( + options=["additional-options"], + nullable=True, + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + async_operation_polling_rules.authorization_actions = AAZListArg( + options=["authorization-actions"], + nullable=True, + ) + + authorization_actions = cls._args_resource_provider_authorization_rules_update.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrArg( + nullable=True, + ) + + _schema.async_operation_polling_rules = cls._args_resource_provider_authorization_rules_update.async_operation_polling_rules + + _args_resource_provider_authorization_update = None + + @classmethod + def _build_args_resource_provider_authorization_update(cls, _schema): + if cls._args_resource_provider_authorization_update is not None: + _schema.allowed_third_party_extensions = cls._args_resource_provider_authorization_update.allowed_third_party_extensions + _schema.application_id = cls._args_resource_provider_authorization_update.application_id + _schema.grouping_tag = cls._args_resource_provider_authorization_update.grouping_tag + _schema.managed_by_authorization = cls._args_resource_provider_authorization_update.managed_by_authorization + _schema.managed_by_role_definition_id = cls._args_resource_provider_authorization_update.managed_by_role_definition_id + _schema.role_definition_id = cls._args_resource_provider_authorization_update.role_definition_id + return + + cls._args_resource_provider_authorization_update = AAZObjectArg( + nullable=True, + ) + + resource_provider_authorization_update = cls._args_resource_provider_authorization_update + resource_provider_authorization_update.allowed_third_party_extensions = AAZListArg( + options=["allowed-third-party-extensions"], + nullable=True, + ) + resource_provider_authorization_update.application_id = AAZStrArg( + options=["application-id"], + nullable=True, + ) + resource_provider_authorization_update.grouping_tag = AAZStrArg( + options=["grouping-tag"], + nullable=True, + ) + resource_provider_authorization_update.managed_by_authorization = AAZObjectArg( + options=["managed-by-authorization"], + help="Managed by authorization.", + nullable=True, + ) + resource_provider_authorization_update.managed_by_role_definition_id = AAZStrArg( + options=["managed-by-role-definition-id"], + nullable=True, + ) + resource_provider_authorization_update.role_definition_id = AAZStrArg( + options=["role-definition-id"], + nullable=True, + ) + + allowed_third_party_extensions = cls._args_resource_provider_authorization_update.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_resource_provider_authorization_update.allowed_third_party_extensions.Element + _element.name = AAZStrArg( + options=["name"], + help="Name of third party extension.", + nullable=True, + ) + + managed_by_authorization = cls._args_resource_provider_authorization_update.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListArg( + options=["additional-authorizations"], + nullable=True, + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolArg( + options=["allow-managed-by-inheritance"], + help="Indicates whether the managed by resource role definition ID should be inherited.", + nullable=True, + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrArg( + options=["managed-by-resource-role-definition-id"], + help="The managed by resource role definition ID for the application.", + nullable=True, + ) + + additional_authorizations = cls._args_resource_provider_authorization_update.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_resource_provider_authorization_update.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrArg( + options=["application-id"], + nullable=True, + ) + _element.role_definition_id = AAZStrArg( + options=["role-definition-id"], + nullable=True, + ) + + _schema.allowed_third_party_extensions = cls._args_resource_provider_authorization_update.allowed_third_party_extensions + _schema.application_id = cls._args_resource_provider_authorization_update.application_id + _schema.grouping_tag = cls._args_resource_provider_authorization_update.grouping_tag + _schema.managed_by_authorization = cls._args_resource_provider_authorization_update.managed_by_authorization + _schema.managed_by_role_definition_id = cls._args_resource_provider_authorization_update.managed_by_role_definition_id + _schema.role_definition_id = cls._args_resource_provider_authorization_update.role_definition_id + + _args_resource_provider_endpoint_update = None + + @classmethod + def _build_args_resource_provider_endpoint_update(cls, _schema): + if cls._args_resource_provider_endpoint_update is not None: + _schema.api_versions = cls._args_resource_provider_endpoint_update.api_versions + _schema.enabled = cls._args_resource_provider_endpoint_update.enabled + _schema.endpoint_type = cls._args_resource_provider_endpoint_update.endpoint_type + _schema.endpoint_uri = cls._args_resource_provider_endpoint_update.endpoint_uri + _schema.features_rule = cls._args_resource_provider_endpoint_update.features_rule + _schema.locations = cls._args_resource_provider_endpoint_update.locations + _schema.required_features = cls._args_resource_provider_endpoint_update.required_features + _schema.sku_link = cls._args_resource_provider_endpoint_update.sku_link + _schema.timeout = cls._args_resource_provider_endpoint_update.timeout + return + + cls._args_resource_provider_endpoint_update = AAZObjectArg( + nullable=True, + ) + + resource_provider_endpoint_update = cls._args_resource_provider_endpoint_update + resource_provider_endpoint_update.api_versions = AAZListArg( + options=["api-versions"], + nullable=True, + ) + resource_provider_endpoint_update.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + resource_provider_endpoint_update.endpoint_type = AAZStrArg( + options=["endpoint-type"], + nullable=True, + enum={"Canary": "Canary", "NotSpecified": "NotSpecified", "Production": "Production", "TestInProduction": "TestInProduction"}, + ) + resource_provider_endpoint_update.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + nullable=True, + ) + resource_provider_endpoint_update.features_rule = AAZObjectArg( + options=["features-rule"], + nullable=True, + ) + resource_provider_endpoint_update.locations = AAZListArg( + options=["locations"], + nullable=True, + ) + resource_provider_endpoint_update.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + resource_provider_endpoint_update.sku_link = AAZStrArg( + options=["sku-link"], + nullable=True, + ) + resource_provider_endpoint_update.timeout = AAZDurationArg( + options=["timeout"], + nullable=True, + ) + + api_versions = cls._args_resource_provider_endpoint_update.api_versions + api_versions.Element = AAZStrArg( + nullable=True, + ) + + features_rule = cls._args_resource_provider_endpoint_update.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + enum={"All": "All", "Any": "Any"}, + ) + + locations = cls._args_resource_provider_endpoint_update.locations + locations.Element = AAZStrArg( + nullable=True, + ) + + required_features = cls._args_resource_provider_endpoint_update.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + _schema.api_versions = cls._args_resource_provider_endpoint_update.api_versions + _schema.enabled = cls._args_resource_provider_endpoint_update.enabled + _schema.endpoint_type = cls._args_resource_provider_endpoint_update.endpoint_type + _schema.endpoint_uri = cls._args_resource_provider_endpoint_update.endpoint_uri + _schema.features_rule = cls._args_resource_provider_endpoint_update.features_rule + _schema.locations = cls._args_resource_provider_endpoint_update.locations + _schema.required_features = cls._args_resource_provider_endpoint_update.required_features + _schema.sku_link = cls._args_resource_provider_endpoint_update.sku_link + _schema.timeout = cls._args_resource_provider_endpoint_update.timeout + + _args_service_tree_info_update = None + + @classmethod + def _build_args_service_tree_info_update(cls, _schema): + if cls._args_service_tree_info_update is not None: + _schema.component_id = cls._args_service_tree_info_update.component_id + _schema.readiness = cls._args_service_tree_info_update.readiness + _schema.service_id = cls._args_service_tree_info_update.service_id + return + + cls._args_service_tree_info_update = AAZObjectArg( + nullable=True, + ) + + service_tree_info_update = cls._args_service_tree_info_update + service_tree_info_update.component_id = AAZStrArg( + options=["component-id"], + nullable=True, + ) + service_tree_info_update.readiness = AAZStrArg( + options=["readiness"], + nullable=True, + enum={"ClosingDown": "ClosingDown", "Deprecated": "Deprecated", "GA": "GA", "InDevelopment": "InDevelopment", "InternalOnly": "InternalOnly", "PrivatePreview": "PrivatePreview", "PublicPreview": "PublicPreview", "RemovedFromARM": "RemovedFromARM", "Retired": "Retired"}, + ) + service_tree_info_update.service_id = AAZStrArg( + options=["service-id"], + nullable=True, + ) + + _schema.component_id = cls._args_service_tree_info_update.component_id + _schema.readiness = cls._args_service_tree_info_update.readiness + _schema.service_id = cls._args_service_tree_info_update.service_id + + _args_subscription_state_override_action_update = None + + @classmethod + def _build_args_subscription_state_override_action_update(cls, _schema): + if cls._args_subscription_state_override_action_update is not None: + _schema.action = cls._args_subscription_state_override_action_update.action + _schema.state = cls._args_subscription_state_override_action_update.state + return + + cls._args_subscription_state_override_action_update = AAZObjectArg( + nullable=True, + ) + + subscription_state_override_action_update = cls._args_subscription_state_override_action_update + subscription_state_override_action_update.action = AAZStrArg( + options=["action"], + enum={"BillingCancellation": "BillingCancellation", "DeleteAllResources": "DeleteAllResources", "NoOp": "NoOp", "NotDefined": "NotDefined", "SoftDeleteAllResources": "SoftDeleteAllResources", "UndoSoftDelete": "UndoSoftDelete"}, + ) + subscription_state_override_action_update.state = AAZStrArg( + options=["state"], + enum={"Deleted": "Deleted", "Registered": "Registered", "Suspended": "Suspended", "SuspendedToDeleted": "SuspendedToDeleted", "SuspendedToRegistered": "SuspendedToRegistered", "SuspendedToUnregistered": "SuspendedToUnregistered", "SuspendedToWarned": "SuspendedToWarned", "Unregistered": "Unregistered", "Warned": "Warned", "WarnedToDeleted": "WarnedToDeleted", "WarnedToRegistered": "WarnedToRegistered", "WarnedToSuspended": "WarnedToSuspended", "WarnedToUnregistered": "WarnedToUnregistered"}, + ) + + _schema.action = cls._args_subscription_state_override_action_update.action + _schema.state = cls._args_subscription_state_override_action_update.state + + _args_token_auth_configuration_update = None + + @classmethod + def _build_args_token_auth_configuration_update(cls, _schema): + if cls._args_token_auth_configuration_update is not None: + _schema.authentication_scheme = cls._args_token_auth_configuration_update.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_update.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_update.signed_request_scope + return + + cls._args_token_auth_configuration_update = AAZObjectArg( + nullable=True, + ) + + token_auth_configuration_update = cls._args_token_auth_configuration_update + token_auth_configuration_update.authentication_scheme = AAZStrArg( + options=["authentication-scheme"], + nullable=True, + enum={"Bearer": "Bearer", "PoP": "PoP"}, + ) + token_auth_configuration_update.disable_certificate_authentication_fallback = AAZBoolArg( + options=["disable-certificate-authentication-fallback"], + nullable=True, + ) + token_auth_configuration_update.signed_request_scope = AAZStrArg( + options=["signed-request-scope"], + nullable=True, + enum={"Endpoint": "Endpoint", "ResourceUri": "ResourceUri"}, + ) + + _schema.authentication_scheme = cls._args_token_auth_configuration_update.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_update.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_update.signed_request_scope + + def _execute_operations(self): + self.pre_operations() + self.CustomRolloutsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + yield self.CustomRolloutsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class CustomRolloutsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_custom_rollout_read(cls._schema_on_200) + + return cls._schema_on_200 + + class CustomRolloutsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_custom_rollout_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("specification", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("status", AAZObjectType, ".status") + + specification = _builder.get(".properties.specification") + if specification is not None: + specification.set_prop("autoProvisionConfig", AAZObjectType, ".auto_provision_config") + specification.set_prop("canary", AAZObjectType, ".canary") + specification.set_prop("manifestCheckinSpecification", AAZObjectType, ".manifest_checkin_specification") + specification.set_prop("providerRegistration", AAZObjectType, ".provider_registration") + specification.set_prop("refreshSubscriptionRegistration", AAZBoolType, ".refresh_subscription_registration") + specification.set_prop("releaseScopes", AAZListType, ".release_scopes") + specification.set_prop("resourceTypeRegistrations", AAZListType, ".resource_type_registrations") + specification.set_prop("skipReleaseScopeValidation", AAZBoolType, ".skip_release_scope_validation") + + auto_provision_config = _builder.get(".properties.specification.autoProvisionConfig") + if auto_provision_config is not None: + auto_provision_config.set_prop("resourceGraph", AAZBoolType, ".resource_graph") + auto_provision_config.set_prop("storage", AAZBoolType, ".storage") + + canary = _builder.get(".properties.specification.canary") + if canary is not None: + canary.set_prop("regions", AAZListType, ".regions") + + regions = _builder.get(".properties.specification.canary.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + manifest_checkin_specification = _builder.get(".properties.specification.manifestCheckinSpecification") + if manifest_checkin_specification is not None: + manifest_checkin_specification.set_prop("manifestCheckinOption", AAZStrType, ".manifest_checkin_option") + manifest_checkin_specification.set_prop("manifestCheckinParams", AAZObjectType, ".manifest_checkin_params") + + manifest_checkin_params = _builder.get(".properties.specification.manifestCheckinSpecification.manifestCheckinParams") + if manifest_checkin_params is not None: + manifest_checkin_params.set_prop("baselineArmManifestLocation", AAZStrType, ".baseline_arm_manifest_location", typ_kwargs={"flags": {"required": True}}) + manifest_checkin_params.set_prop("environment", AAZStrType, ".environment", typ_kwargs={"flags": {"required": True}}) + + provider_registration = _builder.get(".properties.specification.providerRegistration") + if provider_registration is not None: + provider_registration.set_prop("kind", AAZStrType, ".kind") + provider_registration.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties.specification.providerRegistration.properties") + if properties is not None: + properties.set_prop("capabilities", AAZListType, ".capabilities") + properties.set_prop("crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") + properties.set_prop("customManifestVersion", AAZStrType, ".custom_manifest_version") + properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + properties.set_prop("enableTenantLinkedNotification", AAZBoolType, ".enable_tenant_linked_notification", typ_kwargs={"nullable": True}) + properties.set_prop("featuresRule", AAZObjectType, ".features_rule") + properties.set_prop("globalNotificationEndpoints", AAZListType, ".global_notification_endpoints") + properties.set_prop("legacyNamespace", AAZStrType, ".legacy_namespace") + properties.set_prop("legacyRegistrations", AAZListType, ".legacy_registrations") + properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") + properties.set_prop("management", AAZObjectType, ".management") + properties.set_prop("managementGroupGlobalNotificationEndpoints", AAZListType, ".management_group_global_notification_endpoints") + properties.set_prop("metadata", AAZFreeFormDictType, ".metadata") + properties.set_prop("namespace", AAZStrType, ".namespace") + properties.set_prop("notificationOptions", AAZStrType, ".notification_options") + properties.set_prop("notificationSettings", AAZObjectType, ".notification_settings") + _UpdateHelper._build_schema_notifications_update(properties.set_prop("notifications", AAZListType, ".notifications")) + properties.set_prop("optionalFeatures", AAZListType, ".optional_features") + properties.set_prop("privateResourceProviderConfiguration", AAZObjectType, ".private_resource_provider_configuration") + properties.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") + properties.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") + properties.set_prop("providerHubMetadata", AAZObjectType, ".provider_hub_metadata") + properties.set_prop("providerType", AAZStrType, ".provider_type") + properties.set_prop("providerVersion", AAZStrType, ".provider_version") + properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") + properties.set_prop("requiredFeatures", AAZListType, ".required_features") + properties.set_prop("resourceGroupLockOptionDuringMove", AAZObjectType, ".resource_group_lock_option_during_move") + properties.set_prop("resourceHydrationAccounts", AAZListType, ".resource_hydration_accounts") + _UpdateHelper._build_schema_resource_provider_authorization_rules_update(properties.set_prop("resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) + properties.set_prop("responseOptions", AAZObjectType, ".response_options") + properties.set_prop("serviceName", AAZStrType, ".service_name") + properties.set_prop("services", AAZListType, ".services") + properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") + properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") + _UpdateHelper._build_schema_token_auth_configuration_update(properties.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + capabilities = _builder.get(".properties.specification.providerRegistration.properties.capabilities") + if capabilities is not None: + capabilities.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.capabilities[]") + if _elements is not None: + _elements.set_prop("effect", AAZStrType, ".effect", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quotaId", AAZStrType, ".quota_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + required_features = _builder.get(".properties.specification.providerRegistration.properties.capabilities[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.providerRegistration.properties.dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + features_rule = _builder.get(".properties.specification.providerRegistration.properties.featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + global_notification_endpoints = _builder.get(".properties.specification.providerRegistration.properties.globalNotificationEndpoints") + if global_notification_endpoints is not None: + _UpdateHelper._build_schema_resource_provider_endpoint_update(global_notification_endpoints.set_elements(AAZObjectType, ".")) + + legacy_registrations = _builder.get(".properties.specification.providerRegistration.properties.legacyRegistrations") + if legacy_registrations is not None: + legacy_registrations.set_elements(AAZStrType, ".") + + linked_notification_rules = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules") + if linked_notification_rules is not None: + linked_notification_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + _elements.set_prop("endpoints", AAZListType, ".endpoints") + _UpdateHelper._build_schema_token_auth_configuration_update(_elements.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + actions = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[].dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + endpoints = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[].endpoints") + if endpoints is not None: + _UpdateHelper._build_schema_resource_provider_endpoint_update(endpoints.set_elements(AAZObjectType, ".")) + + management = _builder.get(".properties.specification.providerRegistration.properties.management") + if management is not None: + management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") + management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") + management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") + management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") + management.set_prop("expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") + management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") + management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") + management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") + management.set_prop("manifestOwners", AAZListType, ".manifest_owners") + management.set_prop("pcCode", AAZStrType, ".pc_code") + management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") + management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") + management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") + management.set_prop("schemaOwners", AAZListType, ".schema_owners") + management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + + authorization_owners = _builder.get(".properties.specification.providerRegistration.properties.management.authorizationOwners") + if authorization_owners is not None: + authorization_owners.set_elements(AAZStrType, ".") + + canary_manifest_owners = _builder.get(".properties.specification.providerRegistration.properties.management.canaryManifestOwners") + if canary_manifest_owners is not None: + canary_manifest_owners.set_elements(AAZStrType, ".") + + error_response_message_options = _builder.get(".properties.specification.providerRegistration.properties.management.errorResponseMessageOptions") + if error_response_message_options is not None: + error_response_message_options.set_prop("serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") + + expedited_rollout_metadata = _builder.get(".properties.specification.providerRegistration.properties.management.expeditedRolloutMetadata") + if expedited_rollout_metadata is not None: + expedited_rollout_metadata.set_prop("enabled", AAZBoolType, ".enabled") + expedited_rollout_metadata.set_prop("expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") + + expedited_rollout_submitters = _builder.get(".properties.specification.providerRegistration.properties.management.expeditedRolloutSubmitters") + if expedited_rollout_submitters is not None: + expedited_rollout_submitters.set_elements(AAZStrType, ".") + + manifest_owners = _builder.get(".properties.specification.providerRegistration.properties.management.manifestOwners") + if manifest_owners is not None: + manifest_owners.set_elements(AAZStrType, ".") + + resource_access_roles = _builder.get(".properties.specification.providerRegistration.properties.management.resourceAccessRoles") + if resource_access_roles is not None: + _UpdateHelper._build_schema_resource_access_role_update(resource_access_roles.set_elements(AAZObjectType, ".")) + + schema_owners = _builder.get(".properties.specification.providerRegistration.properties.management.schemaOwners") + if schema_owners is not None: + schema_owners.set_elements(AAZStrType, ".") + + service_tree_infos = _builder.get(".properties.specification.providerRegistration.properties.management.serviceTreeInfos") + if service_tree_infos is not None: + _UpdateHelper._build_schema_service_tree_info_update(service_tree_infos.set_elements(AAZObjectType, ".")) + + management_group_global_notification_endpoints = _builder.get(".properties.specification.providerRegistration.properties.managementGroupGlobalNotificationEndpoints") + if management_group_global_notification_endpoints is not None: + _UpdateHelper._build_schema_resource_provider_endpoint_update(management_group_global_notification_endpoints.set_elements(AAZObjectType, ".")) + + metadata = _builder.get(".properties.specification.providerRegistration.properties.metadata") + if metadata is not None: + metadata.set_anytype_elements(".") + + notification_settings = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings") + if notification_settings is not None: + notification_settings.set_prop("subscriberSettings", AAZListType, ".subscriber_settings") + + subscriber_settings = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings") + if subscriber_settings is not None: + subscriber_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[]") + if _elements is not None: + _elements.set_prop("filterRules", AAZListType, ".filter_rules") + + filter_rules = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules") + if filter_rules is not None: + filter_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[]") + if _elements is not None: + _elements.set_prop("endpointInformation", AAZListType, ".endpoint_information") + _elements.set_prop("filterQuery", AAZStrType, ".filter_query") + + endpoint_information = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation") + if endpoint_information is not None: + endpoint_information.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation[]") + if _elements is not None: + _elements.set_prop("endpoint", AAZStrType, ".endpoint") + _elements.set_prop("endpointType", AAZStrType, ".endpoint_type") + _elements.set_prop("schemaVersion", AAZStrType, ".schema_version") + + optional_features = _builder.get(".properties.specification.providerRegistration.properties.optionalFeatures") + if optional_features is not None: + optional_features.set_elements(AAZStrType, ".") + + private_resource_provider_configuration = _builder.get(".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration") + if private_resource_provider_configuration is not None: + private_resource_provider_configuration.set_prop("allowedSubscriptions", AAZListType, ".allowed_subscriptions") + + allowed_subscriptions = _builder.get(".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration.allowedSubscriptions") + if allowed_subscriptions is not None: + allowed_subscriptions.set_elements(AAZStrType, ".") + + provider_authentication = _builder.get(".properties.specification.providerRegistration.properties.providerAuthentication") + if provider_authentication is not None: + provider_authentication.set_prop("allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) + + allowed_audiences = _builder.get(".properties.specification.providerRegistration.properties.providerAuthentication.allowedAudiences") + if allowed_audiences is not None: + allowed_audiences.set_elements(AAZStrType, ".") + + provider_authorizations = _builder.get(".properties.specification.providerRegistration.properties.providerAuthorizations") + if provider_authorizations is not None: + _UpdateHelper._build_schema_resource_provider_authorization_update(provider_authorizations.set_elements(AAZObjectType, ".")) + + provider_hub_metadata = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata") + if provider_hub_metadata is not None: + provider_hub_metadata.set_prop("directRpRoleDefinitionId", AAZStrType, ".direct_rp_role_definition_id") + provider_hub_metadata.set_prop("globalAsyncOperationResourceTypeName", AAZStrType, ".global_async_operation_resource_type_name") + provider_hub_metadata.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") + provider_hub_metadata.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") + provider_hub_metadata.set_prop("regionalAsyncOperationResourceTypeName", AAZStrType, ".regional_async_operation_resource_type_name") + provider_hub_metadata.set_prop("thirdPartyProviderAuthorization", AAZObjectType, ".third_party_provider_authorization") + + provider_authentication = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication") + if provider_authentication is not None: + provider_authentication.set_prop("allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) + + allowed_audiences = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication.allowedAudiences") + if allowed_audiences is not None: + allowed_audiences.set_elements(AAZStrType, ".") + + provider_authorizations = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthorizations") + if provider_authorizations is not None: + _UpdateHelper._build_schema_resource_provider_authorization_update(provider_authorizations.set_elements(AAZObjectType, ".")) + + third_party_provider_authorization = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization") + if third_party_provider_authorization is not None: + third_party_provider_authorization.set_prop("authorizations", AAZListType, ".authorizations") + third_party_provider_authorization.set_prop("managedByTenantId", AAZStrType, ".managed_by_tenant_id") + + authorizations = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations") + if authorizations is not None: + authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations[]") + if _elements is not None: + _elements.set_prop("principalId", AAZStrType, ".principal_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id", typ_kwargs={"flags": {"required": True}}) + + request_header_options = _builder.get(".properties.specification.providerRegistration.properties.requestHeaderOptions") + if request_header_options is not None: + request_header_options.set_prop("optInHeaders", AAZStrType, ".opt_in_headers") + request_header_options.set_prop("optOutHeaders", AAZStrType, ".opt_out_headers") + + required_features = _builder.get(".properties.specification.providerRegistration.properties.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + resource_group_lock_option_during_move = _builder.get(".properties.specification.providerRegistration.properties.resourceGroupLockOptionDuringMove") + if resource_group_lock_option_during_move is not None: + resource_group_lock_option_during_move.set_prop("blockActionVerb", AAZStrType, ".block_action_verb") + + resource_hydration_accounts = _builder.get(".properties.specification.providerRegistration.properties.resourceHydrationAccounts") + if resource_hydration_accounts is not None: + resource_hydration_accounts.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.resourceHydrationAccounts[]") + if _elements is not None: + _elements.set_prop("accountName", AAZStrType, ".account_name") + _elements.set_prop("encryptedKey", AAZStrType, ".encrypted_key") + _elements.set_prop("maxChildResourceConsistencyJobLimit", AAZIntType, ".max_child_resource_consistency_job_limit") + _elements.set_prop("subscriptionId", AAZStrType, ".subscription_id") + + response_options = _builder.get(".properties.specification.providerRegistration.properties.responseOptions") + if response_options is not None: + response_options.set_prop("serviceClientOptionsType", AAZStrType, ".service_client_options_type") + + services = _builder.get(".properties.specification.providerRegistration.properties.services") + if services is not None: + services.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.services[]") + if _elements is not None: + _elements.set_prop("serviceName", AAZStrType, ".service_name") + _elements.set_prop("status", AAZStrType, ".status") + + subscription_lifecycle_notification_specifications = _builder.get(".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications") + if subscription_lifecycle_notification_specifications is not None: + subscription_lifecycle_notification_specifications.set_prop("softDeleteTTL", AAZStrType, ".soft_delete_ttl") + subscription_lifecycle_notification_specifications.set_prop("subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") + + subscription_state_override_actions = _builder.get(".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") + if subscription_state_override_actions is not None: + _UpdateHelper._build_schema_subscription_state_override_action_update(subscription_state_override_actions.set_elements(AAZObjectType, ".")) + + template_deployment_options = _builder.get(".properties.specification.providerRegistration.properties.templateDeploymentOptions") + if template_deployment_options is not None: + template_deployment_options.set_prop("preflightOptions", AAZListType, ".preflight_options") + template_deployment_options.set_prop("preflightSupported", AAZBoolType, ".preflight_supported") + + preflight_options = _builder.get(".properties.specification.providerRegistration.properties.templateDeploymentOptions.preflightOptions") + if preflight_options is not None: + preflight_options.set_elements(AAZStrType, ".") + + release_scopes = _builder.get(".properties.specification.releaseScopes") + if release_scopes is not None: + release_scopes.set_elements(AAZStrType, ".") + + resource_type_registrations = _builder.get(".properties.specification.resourceTypeRegistrations") + if resource_type_registrations is not None: + resource_type_registrations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[]") + if _elements is not None: + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties.specification.resourceTypeRegistrations[].properties") + if properties is not None: + properties.set_prop("addResourceListTargetLocations", AAZBoolType, ".add_resource_list_target_locations") + properties.set_prop("additionalOptions", AAZStrType, ".additional_options") + properties.set_prop("allowEmptyRoleAssignments", AAZBoolType, ".allow_empty_role_assignments") + properties.set_prop("allowedResourceNames", AAZListType, ".allowed_resource_names") + properties.set_prop("allowedTemplateDeploymentReferenceActions", AAZListType, ".allowed_template_deployment_reference_actions") + properties.set_prop("allowedUnauthorizedActions", AAZListType, ".allowed_unauthorized_actions") + properties.set_prop("apiProfiles", AAZListType, ".api_profiles") + properties.set_prop("asyncOperationResourceTypeName", AAZStrType, ".async_operation_resource_type_name") + properties.set_prop("asyncTimeoutRules", AAZListType, ".async_timeout_rules") + properties.set_prop("authorizationActionMappings", AAZListType, ".authorization_action_mappings") + properties.set_prop("availabilityZoneRule", AAZObjectType, ".availability_zone_rule") + properties.set_prop("capacityRule", AAZObjectType, ".capacity_rule") + properties.set_prop("category", AAZStrType, ".category") + properties.set_prop("checkNameAvailabilitySpecifications", AAZObjectType, ".check_name_availability_specifications") + properties.set_prop("commonApiVersions", AAZListType, ".common_api_versions") + properties.set_prop("crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") + properties.set_prop("defaultApiVersion", AAZStrType, ".default_api_version") + properties.set_prop("disallowedActionVerbs", AAZListType, ".disallowed_action_verbs") + properties.set_prop("disallowedEndUserOperations", AAZListType, ".disallowed_end_user_operations") + properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + properties.set_prop("enableAsyncOperation", AAZBoolType, ".enable_async_operation") + properties.set_prop("enableThirdPartyS2S", AAZBoolType, ".enable_third_party_s2_s") + properties.set_prop("endpoints", AAZListType, ".endpoints") + properties.set_prop("extendedLocations", AAZListType, ".extended_locations") + properties.set_prop("extensionOptions", AAZObjectType, ".extension_options") + properties.set_prop("featuresRule", AAZObjectType, ".features_rule") + properties.set_prop("frontdoorRequestMode", AAZStrType, ".frontdoor_request_mode") + properties.set_prop("groupingTag", AAZStrType, ".grouping_tag") + properties.set_prop("identityManagement", AAZObjectType, ".identity_management") + properties.set_prop("isPureProxy", AAZBoolType, ".is_pure_proxy") + properties.set_prop("legacyName", AAZStrType, ".legacy_name") + properties.set_prop("legacyNames", AAZListType, ".legacy_names") + properties.set_prop("legacyPolicy", AAZObjectType, ".legacy_policy") + properties.set_prop("linkedAccessChecks", AAZListType, ".linked_access_checks") + properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") + properties.set_prop("linkedOperationRules", AAZListType, ".linked_operation_rules") + properties.set_prop("loggingRules", AAZListType, ".logging_rules") + properties.set_prop("managedResourceGroupConfiguration", AAZObjectType, ".managed_resource_group_configuration") + properties.set_prop("management", AAZObjectType, ".management") + properties.set_prop("manifestLink", AAZStrType, ".manifest_link") + properties.set_prop("marketplaceOptions", AAZObjectType, ".marketplace_options") + properties.set_prop("marketplaceType", AAZStrType, ".marketplace_type") + properties.set_prop("metadata", AAZDictType, ".metadata") + _UpdateHelper._build_schema_notifications_update(properties.set_prop("notifications", AAZListType, ".notifications")) + properties.set_prop("onBehalfOfTokens", AAZObjectType, ".on_behalf_of_tokens") + properties.set_prop("openApiConfiguration", AAZObjectType, ".open_api_configuration") + properties.set_prop("policyExecutionType", AAZStrType, ".policy_execution_type") + properties.set_prop("privateEndpointConfiguration", AAZObjectType, ".private_endpoint_configuration") + properties.set_prop("quotaRule", AAZObjectType, ".quota_rule") + properties.set_prop("regionality", AAZStrType, ".regionality") + properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") + properties.set_prop("requiredFeatures", AAZListType, ".required_features") + properties.set_prop("resourceCache", AAZObjectType, ".resource_cache") + properties.set_prop("resourceConcurrencyControlOptions", AAZDictType, ".resource_concurrency_control_options") + properties.set_prop("resourceDeletionPolicy", AAZStrType, ".resource_deletion_policy") + properties.set_prop("resourceGraphConfiguration", AAZObjectType, ".resource_graph_configuration") + properties.set_prop("resourceManagementOptions", AAZObjectType, ".resource_management_options") + properties.set_prop("resourceMovePolicy", AAZObjectType, ".resource_move_policy") + _UpdateHelper._build_schema_resource_provider_authorization_rules_update(properties.set_prop("resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) + properties.set_prop("resourceQueryManagement", AAZObjectType, ".resource_query_management") + properties.set_prop("resourceSubType", AAZStrType, ".resource_sub_type") + properties.set_prop("resourceTypeCommonAttributeManagement", AAZObjectType, ".resource_type_common_attribute_management") + properties.set_prop("resourceValidation", AAZStrType, ".resource_validation") + properties.set_prop("routingRule", AAZObjectType, ".routing_rule") + properties.set_prop("routingType", AAZStrType, ".routing_type") + properties.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + properties.set_prop("skuLink", AAZStrType, ".sku_link") + properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") + properties.set_prop("subscriptionStateRules", AAZListType, ".subscription_state_rules") + properties.set_prop("supportsTags", AAZBoolType, ".supports_tags") + properties.set_prop("swaggerSpecifications", AAZListType, ".swagger_specifications") + properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") + properties.set_prop("templateDeploymentPolicy", AAZObjectType, ".template_deployment_policy") + properties.set_prop("throttlingRules", AAZListType, ".throttling_rules") + _UpdateHelper._build_schema_token_auth_configuration_update(properties.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + allowed_resource_names = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames") + if allowed_resource_names is not None: + allowed_resource_names.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames[]") + if _elements is not None: + _elements.set_prop("getActionVerb", AAZStrType, ".get_action_verb") + _elements.set_prop("name", AAZStrType, ".name") + + allowed_template_deployment_reference_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedTemplateDeploymentReferenceActions") + if allowed_template_deployment_reference_actions is not None: + allowed_template_deployment_reference_actions.set_elements(AAZStrType, ".") + + allowed_unauthorized_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedUnauthorizedActions") + if allowed_unauthorized_actions is not None: + allowed_unauthorized_actions.set_elements(AAZStrType, ".") + + api_profiles = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.apiProfiles") + if api_profiles is not None: + api_profiles.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.apiProfiles[]") + if _elements is not None: + _elements.set_prop("apiVersion", AAZStrType, ".api_version") + _elements.set_prop("profileVersion", AAZStrType, ".profile_version") + + async_timeout_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules") + if async_timeout_rules is not None: + async_timeout_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules[]") + if _elements is not None: + _elements.set_prop("actionName", AAZStrType, ".action_name") + _elements.set_prop("timeout", AAZStrType, ".timeout") + + authorization_action_mappings = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings") + if authorization_action_mappings is not None: + authorization_action_mappings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings[]") + if _elements is not None: + _elements.set_prop("desired", AAZStrType, ".desired") + _elements.set_prop("original", AAZStrType, ".original") + + availability_zone_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.availabilityZoneRule") + if availability_zone_rule is not None: + availability_zone_rule.set_prop("availabilityZonePolicy", AAZStrType, ".availability_zone_policy") + + capacity_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.capacityRule") + if capacity_rule is not None: + capacity_rule.set_prop("capacityPolicy", AAZStrType, ".capacity_policy") + capacity_rule.set_prop("skuAlias", AAZStrType, ".sku_alias") + + check_name_availability_specifications = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications") + if check_name_availability_specifications is not None: + check_name_availability_specifications.set_prop("enableDefaultValidation", AAZBoolType, ".enable_default_validation") + check_name_availability_specifications.set_prop("resourceTypesWithCustomValidation", AAZListType, ".resource_types_with_custom_validation") + + resource_types_with_custom_validation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications.resourceTypesWithCustomValidation") + if resource_types_with_custom_validation is not None: + resource_types_with_custom_validation.set_elements(AAZStrType, ".") + + common_api_versions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.commonApiVersions") + if common_api_versions is not None: + common_api_versions.set_elements(AAZStrType, ".") + + disallowed_action_verbs = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.disallowedActionVerbs") + if disallowed_action_verbs is not None: + disallowed_action_verbs.set_elements(AAZStrType, ".") + + disallowed_end_user_operations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.disallowedEndUserOperations") + if disallowed_end_user_operations is not None: + disallowed_end_user_operations.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + endpoints = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints") + if endpoints is not None: + endpoints.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[]") + if _elements is not None: + _elements.set_prop("apiVersion", AAZStrType, ".api_version") + _elements.set_prop("apiVersions", AAZListType, ".api_versions") + _elements.set_prop("dataBoundary", AAZStrType, ".data_boundary") + _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + _elements.set_prop("enabled", AAZBoolType, ".enabled") + _elements.set_prop("endpointType", AAZStrType, ".endpoint_type") + _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _elements.set_prop("extensions", AAZListType, ".extensions") + _elements.set_prop("featuresRule", AAZObjectType, ".features_rule") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("skuLink", AAZStrType, ".sku_link") + _elements.set_prop("timeout", AAZStrType, ".timeout") + _UpdateHelper._build_schema_token_auth_configuration_update(_elements.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + _elements.set_prop("zones", AAZListType, ".zones") + + api_versions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + extensions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions") + if extensions is not None: + extensions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[]") + if _elements is not None: + _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _elements.set_prop("extensionCategories", AAZListType, ".extension_categories") + _elements.set_prop("timeout", AAZStrType, ".timeout") + + extension_categories = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[].extensionCategories") + if extension_categories is not None: + extension_categories.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + locations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + extended_locations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extendedLocations[]") + if _elements is not None: + _elements.set_prop("supportedPolicy", AAZStrType, ".supported_policy") + _elements.set_prop("type", AAZStrType, ".type") + + extension_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions") + if extension_options is not None: + extension_options.set_prop("resourceCreationBegin", AAZObjectType, ".resource_creation_begin") + + resource_creation_begin = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin") + if resource_creation_begin is not None: + resource_creation_begin.set_prop("request", AAZListType, ".request") + resource_creation_begin.set_prop("response", AAZListType, ".response") + + request = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.request") + if request is not None: + request.set_elements(AAZStrType, ".") + + response = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.response") + if response is not None: + response.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + identity_management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.identityManagement") + if identity_management is not None: + identity_management.set_prop("applicationId", AAZStrType, ".application_id") + identity_management.set_prop("applicationIds", AAZListType, ".application_ids") + identity_management.set_prop("delegationAppIds", AAZListType, ".delegation_app_ids") + identity_management.set_prop("type", AAZStrType, ".type") + + application_ids = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.identityManagement.applicationIds") + if application_ids is not None: + application_ids.set_elements(AAZStrType, ".") + + delegation_app_ids = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.identityManagement.delegationAppIds") + if delegation_app_ids is not None: + delegation_app_ids.set_elements(AAZStrType, ".") + + legacy_names = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyNames") + if legacy_names is not None: + legacy_names.set_elements(AAZStrType, ".") + + legacy_policy = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy") + if legacy_policy is not None: + legacy_policy.set_prop("disallowedConditions", AAZListType, ".disallowed_conditions") + legacy_policy.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") + + disallowed_conditions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions") + if disallowed_conditions is not None: + disallowed_conditions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[]") + if _elements is not None: + _elements.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") + _elements.set_prop("feature", AAZStrType, ".feature") + + disallowed_legacy_operations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[].disallowedLegacyOperations") + if disallowed_legacy_operations is not None: + disallowed_legacy_operations.set_elements(AAZStrType, ".") + + disallowed_legacy_operations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedLegacyOperations") + if disallowed_legacy_operations is not None: + disallowed_legacy_operations.set_elements(AAZStrType, ".") + + linked_access_checks = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks") + if linked_access_checks is not None: + linked_access_checks.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks[]") + if _elements is not None: + _elements.set_prop("actionName", AAZStrType, ".action_name") + _elements.set_prop("linkedAction", AAZStrType, ".linked_action") + _elements.set_prop("linkedActionVerb", AAZStrType, ".linked_action_verb") + _elements.set_prop("linkedProperty", AAZStrType, ".linked_property") + _elements.set_prop("linkedType", AAZStrType, ".linked_type") + + linked_notification_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules") + if linked_notification_rules is not None: + linked_notification_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("actionsOnFailedOperation", AAZListType, ".actions_on_failed_operation") + _elements.set_prop("fastPathActions", AAZListType, ".fast_path_actions") + _elements.set_prop("fastPathActionsOnFailedOperation", AAZListType, ".fast_path_actions_on_failed_operation") + _elements.set_prop("linkedNotificationTimeout", AAZStrType, ".linked_notification_timeout") + + actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + actions_on_failed_operation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actionsOnFailedOperation") + if actions_on_failed_operation is not None: + actions_on_failed_operation.set_elements(AAZStrType, ".") + + fast_path_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActions") + if fast_path_actions is not None: + fast_path_actions.set_elements(AAZStrType, ".") + + fast_path_actions_on_failed_operation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActionsOnFailedOperation") + if fast_path_actions_on_failed_operation is not None: + fast_path_actions_on_failed_operation.set_elements(AAZStrType, ".") + + linked_operation_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules") + if linked_operation_rules is not None: + linked_operation_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[]") + if _elements is not None: + _elements.set_prop("dependsOnTypes", AAZListType, ".depends_on_types") + _elements.set_prop("linkedAction", AAZStrType, ".linked_action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("linkedOperation", AAZStrType, ".linked_operation", typ_kwargs={"flags": {"required": True}}) + + depends_on_types = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[].dependsOnTypes") + if depends_on_types is not None: + depends_on_types.set_elements(AAZStrType, ".") + + logging_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules") + if logging_rules is not None: + logging_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("detailLevel", AAZStrType, ".detail_level", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("direction", AAZStrType, ".direction", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("hiddenPropertyPaths", AAZObjectType, ".hidden_property_paths") + + hidden_property_paths = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths") + if hidden_property_paths is not None: + hidden_property_paths.set_prop("hiddenPathsOnRequest", AAZListType, ".hidden_paths_on_request") + hidden_property_paths.set_prop("hiddenPathsOnResponse", AAZListType, ".hidden_paths_on_response") + + hidden_paths_on_request = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnRequest") + if hidden_paths_on_request is not None: + hidden_paths_on_request.set_elements(AAZStrType, ".") + + hidden_paths_on_response = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnResponse") + if hidden_paths_on_response is not None: + hidden_paths_on_response.set_elements(AAZStrType, ".") + + managed_resource_group_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration") + if managed_resource_group_configuration is not None: + managed_resource_group_configuration.set_prop("applicationIds", AAZListType, ".application_ids") + managed_resource_group_configuration.set_prop("denyAssignmentConfiguration", AAZObjectType, ".deny_assignment_configuration") + managed_resource_group_configuration.set_prop("enabled", AAZBoolType, ".enabled") + managed_resource_group_configuration.set_prop("resourceGroupLocationOverride", AAZStrType, ".resource_group_location_override") + + application_ids = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.applicationIds") + if application_ids is not None: + application_ids.set_elements(AAZStrType, ".") + + deny_assignment_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration") + if deny_assignment_configuration is not None: + deny_assignment_configuration.set_prop("enabled", AAZBoolType, ".enabled") + deny_assignment_configuration.set_prop("notActions", AAZListType, ".not_actions") + + not_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration.notActions") + if not_actions is not None: + not_actions.set_elements(AAZStrType, ".") + + management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management") + if management is not None: + management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") + management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") + management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") + management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") + management.set_prop("expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") + management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") + management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") + management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") + management.set_prop("manifestOwners", AAZListType, ".manifest_owners") + management.set_prop("pcCode", AAZStrType, ".pc_code") + management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") + management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") + management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") + management.set_prop("schemaOwners", AAZListType, ".schema_owners") + management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + + authorization_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.authorizationOwners") + if authorization_owners is not None: + authorization_owners.set_elements(AAZStrType, ".") + + canary_manifest_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.canaryManifestOwners") + if canary_manifest_owners is not None: + canary_manifest_owners.set_elements(AAZStrType, ".") + + error_response_message_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.errorResponseMessageOptions") + if error_response_message_options is not None: + error_response_message_options.set_prop("serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") + + expedited_rollout_metadata = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutMetadata") + if expedited_rollout_metadata is not None: + expedited_rollout_metadata.set_prop("enabled", AAZBoolType, ".enabled") + expedited_rollout_metadata.set_prop("expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") + + expedited_rollout_submitters = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutSubmitters") + if expedited_rollout_submitters is not None: + expedited_rollout_submitters.set_elements(AAZStrType, ".") + + manifest_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.manifestOwners") + if manifest_owners is not None: + manifest_owners.set_elements(AAZStrType, ".") + + resource_access_roles = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.resourceAccessRoles") + if resource_access_roles is not None: + _UpdateHelper._build_schema_resource_access_role_update(resource_access_roles.set_elements(AAZObjectType, ".")) + + schema_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.schemaOwners") + if schema_owners is not None: + schema_owners.set_elements(AAZStrType, ".") + + service_tree_infos = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.serviceTreeInfos") + if service_tree_infos is not None: + _UpdateHelper._build_schema_service_tree_info_update(service_tree_infos.set_elements(AAZObjectType, ".")) + + marketplace_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.marketplaceOptions") + if marketplace_options is not None: + marketplace_options.set_prop("addOnPlanConversionAllowed", AAZBoolType, ".add_on_plan_conversion_allowed") + + metadata = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.metadata") + if metadata is not None: + metadata.set_elements(AAZFreeFormDictType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.metadata{}") + if _elements is not None: + _elements.set_anytype_elements(".") + + on_behalf_of_tokens = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.onBehalfOfTokens") + if on_behalf_of_tokens is not None: + on_behalf_of_tokens.set_prop("actionName", AAZStrType, ".action_name") + on_behalf_of_tokens.set_prop("lifeTime", AAZStrType, ".life_time") + + open_api_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration") + if open_api_configuration is not None: + open_api_configuration.set_prop("validation", AAZObjectType, ".validation") + + validation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration.validation") + if validation is not None: + validation.set_prop("allowNoncompliantCollectionResponse", AAZBoolType, ".allow_noncompliant_collection_response") + + private_endpoint_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration") + if private_endpoint_configuration is not None: + private_endpoint_configuration.set_prop("groupConnectivityInformation", AAZListType, ".group_connectivity_information", typ_kwargs={"flags": {"required": True}}) + private_endpoint_configuration.set_prop("minApiVersion", AAZStrType, ".min_api_version", typ_kwargs={"flags": {"required": True}}) + + group_connectivity_information = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation") + if group_connectivity_information is not None: + group_connectivity_information.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[]") + if _elements is not None: + _elements.set_prop("groupId", AAZStrType, ".group_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("redirectMapId", AAZStrType, ".redirect_map_id") + _elements.set_prop("requiredMembers", AAZListType, ".required_members", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredZoneNames", AAZListType, ".required_zone_names", typ_kwargs={"flags": {"required": True}}) + + required_members = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredMembers") + if required_members is not None: + required_members.set_elements(AAZStrType, ".") + + required_zone_names = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredZoneNames") + if required_zone_names is not None: + required_zone_names.set_elements(AAZStrType, ".") + + quota_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule") + if quota_rule is not None: + quota_rule.set_prop("locationRules", AAZListType, ".location_rules") + quota_rule.set_prop("quotaPolicy", AAZStrType, ".quota_policy") + quota_rule.set_prop("requiredFeatures", AAZListType, ".required_features") + + location_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules") + if location_rules is not None: + location_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules[]") + if _elements is not None: + _elements.set_prop("location", AAZStrType, ".location") + _elements.set_prop("policy", AAZStrType, ".policy") + _elements.set_prop("quotaId", AAZStrType, ".quota_id") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + request_header_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.requestHeaderOptions") + if request_header_options is not None: + request_header_options.set_prop("optInHeaders", AAZStrType, ".opt_in_headers") + request_header_options.set_prop("optOutHeaders", AAZStrType, ".opt_out_headers") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + resource_cache = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceCache") + if resource_cache is not None: + resource_cache.set_prop("enableResourceCache", AAZBoolType, ".enable_resource_cache") + resource_cache.set_prop("resourceCacheExpirationTimespan", AAZStrType, ".resource_cache_expiration_timespan") + + resource_concurrency_control_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions") + if resource_concurrency_control_options is not None: + resource_concurrency_control_options.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions{}") + if _elements is not None: + _elements.set_prop("policy", AAZStrType, ".policy") + + resource_graph_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceGraphConfiguration") + if resource_graph_configuration is not None: + resource_graph_configuration.set_prop("apiVersion", AAZStrType, ".api_version") + resource_graph_configuration.set_prop("enabled", AAZBoolType, ".enabled") + + resource_management_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions") + if resource_management_options is not None: + resource_management_options.set_prop("batchProvisioningSupport", AAZObjectType, ".batch_provisioning_support") + resource_management_options.set_prop("deleteDependencies", AAZListType, ".delete_dependencies") + resource_management_options.set_prop("nestedProvisioningSupport", AAZObjectType, ".nested_provisioning_support") + + batch_provisioning_support = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.batchProvisioningSupport") + if batch_provisioning_support is not None: + batch_provisioning_support.set_prop("supportedOperations", AAZStrType, ".supported_operations") + + delete_dependencies = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies") + if delete_dependencies is not None: + delete_dependencies.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[]") + if _elements is not None: + _elements.set_prop("linkedProperty", AAZStrType, ".linked_property") + _elements.set_prop("linkedType", AAZStrType, ".linked_type") + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + nested_provisioning_support = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.nestedProvisioningSupport") + if nested_provisioning_support is not None: + nested_provisioning_support.set_prop("minimumApiVersion", AAZStrType, ".minimum_api_version") + + resource_move_policy = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceMovePolicy") + if resource_move_policy is not None: + resource_move_policy.set_prop("crossResourceGroupMoveEnabled", AAZBoolType, ".cross_resource_group_move_enabled") + resource_move_policy.set_prop("crossSubscriptionMoveEnabled", AAZBoolType, ".cross_subscription_move_enabled") + resource_move_policy.set_prop("validationRequired", AAZBoolType, ".validation_required") + + resource_query_management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceQueryManagement") + if resource_query_management is not None: + resource_query_management.set_prop("filterOption", AAZStrType, ".filter_option") + + resource_type_common_attribute_management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceTypeCommonAttributeManagement") + if resource_type_common_attribute_management is not None: + resource_type_common_attribute_management.set_prop("commonApiVersionsMergeMode", AAZStrType, ".common_api_versions_merge_mode") + + routing_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.routingRule") + if routing_rule is not None: + routing_rule.set_prop("hostResourceType", AAZStrType, ".host_resource_type") + + service_tree_infos = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.serviceTreeInfos") + if service_tree_infos is not None: + _UpdateHelper._build_schema_service_tree_info_update(service_tree_infos.set_elements(AAZObjectType, ".")) + + subscription_lifecycle_notification_specifications = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications") + if subscription_lifecycle_notification_specifications is not None: + subscription_lifecycle_notification_specifications.set_prop("softDeleteTTL", AAZStrType, ".soft_delete_ttl") + subscription_lifecycle_notification_specifications.set_prop("subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") + + subscription_state_override_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") + if subscription_state_override_actions is not None: + _UpdateHelper._build_schema_subscription_state_override_action_update(subscription_state_override_actions.set_elements(AAZObjectType, ".")) + + subscription_state_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules") + if subscription_state_rules is not None: + subscription_state_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[]") + if _elements is not None: + _elements.set_prop("allowedActions", AAZListType, ".allowed_actions") + _elements.set_prop("state", AAZStrType, ".state") + + allowed_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[].allowedActions") + if allowed_actions is not None: + allowed_actions.set_elements(AAZStrType, ".") + + swagger_specifications = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications") + if swagger_specifications is not None: + swagger_specifications.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[]") + if _elements is not None: + _elements.set_prop("apiVersions", AAZListType, ".api_versions") + _elements.set_prop("swaggerSpecFolderUri", AAZStrType, ".swagger_spec_folder_uri") + + api_versions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[].apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + template_deployment_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions") + if template_deployment_options is not None: + template_deployment_options.set_prop("preflightOptions", AAZListType, ".preflight_options") + template_deployment_options.set_prop("preflightSupported", AAZBoolType, ".preflight_supported") + + preflight_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions.preflightOptions") + if preflight_options is not None: + preflight_options.set_elements(AAZStrType, ".") + + template_deployment_policy = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentPolicy") + if template_deployment_policy is not None: + template_deployment_policy.set_prop("capabilities", AAZStrType, ".capabilities", typ_kwargs={"flags": {"required": True}}) + template_deployment_policy.set_prop("preflightNotifications", AAZStrType, ".preflight_notifications") + template_deployment_policy.set_prop("preflightOptions", AAZStrType, ".preflight_options", typ_kwargs={"flags": {"required": True}}) + + throttling_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules") + if throttling_rules is not None: + throttling_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("applicationId", AAZListType, ".application_id") + _elements.set_prop("metrics", AAZListType, ".metrics", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + application_id = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].applicationId") + if application_id is not None: + application_id.set_elements(AAZStrType, ".") + + metrics = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics") + if metrics is not None: + metrics.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics[]") + if _elements is not None: + _elements.set_prop("interval", AAZStrType, ".interval") + _elements.set_prop("limit", AAZIntType, ".limit", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + status = _builder.get(".properties.status") + if status is not None: + status.set_prop("completedRegions", AAZListType, ".completed_regions") + status.set_prop("failedOrSkippedRegions", AAZDictType, ".failed_or_skipped_regions") + status.set_prop("manifestCheckinStatus", AAZObjectType, ".manifest_checkin_status") + + completed_regions = _builder.get(".properties.status.completedRegions") + if completed_regions is not None: + completed_regions.set_elements(AAZStrType, ".") + + failed_or_skipped_regions = _builder.get(".properties.status.failedOrSkippedRegions") + if failed_or_skipped_regions is not None: + _UpdateHelper._build_schema_extended_error_info_update(failed_or_skipped_regions.set_elements(AAZObjectType, ".")) + + manifest_checkin_status = _builder.get(".properties.status.manifestCheckinStatus") + if manifest_checkin_status is not None: + manifest_checkin_status.set_prop("commitId", AAZStrType, ".commit_id") + manifest_checkin_status.set_prop("isCheckedIn", AAZBoolType, ".is_checked_in", typ_kwargs={"flags": {"required": True}}) + manifest_checkin_status.set_prop("pullRequest", AAZStrType, ".pull_request") + manifest_checkin_status.set_prop("statusMessage", AAZStrType, ".status_message", typ_kwargs={"flags": {"required": True}}) + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + @classmethod + def _build_schema_extended_error_info_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("additionalInfo", AAZListType, ".additional_info") + _builder.set_prop("code", AAZStrType, ".code") + _builder.set_prop("details", AAZListType, ".details") + _builder.set_prop("message", AAZStrType, ".message") + _builder.set_prop("target", AAZStrType, ".target") + + additional_info = _builder.get(".additionalInfo") + if additional_info is not None: + additional_info.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".additionalInfo[]") + if _elements is not None: + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + details = _builder.get(".details") + if details is not None: + cls._build_schema_extended_error_info_update(details.set_elements(AAZObjectType, ".")) + + @classmethod + def _build_schema_notifications_update(cls, _builder): + if _builder is None: + return + _builder.set_elements(AAZObjectType, ".") + + _elements = _builder.get("[]") + if _elements is not None: + _elements.set_prop("notificationType", AAZStrType, ".notification_type") + _elements.set_prop("skipNotifications", AAZStrType, ".skip_notifications") + + @classmethod + def _build_schema_resource_access_role_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("actions", AAZListType, ".actions") + _builder.set_prop("allowedGroupClaims", AAZListType, ".allowed_group_claims") + + actions = _builder.get(".actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + allowed_group_claims = _builder.get(".allowedGroupClaims") + if allowed_group_claims is not None: + allowed_group_claims.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_resource_provider_authorization_rules_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("asyncOperationPollingRules", AAZObjectType, ".async_operation_polling_rules") + + async_operation_polling_rules = _builder.get(".asyncOperationPollingRules") + if async_operation_polling_rules is not None: + async_operation_polling_rules.set_prop("additionalOptions", AAZStrType, ".additional_options") + async_operation_polling_rules.set_prop("authorizationActions", AAZListType, ".authorization_actions") + + authorization_actions = _builder.get(".asyncOperationPollingRules.authorizationActions") + if authorization_actions is not None: + authorization_actions.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_resource_provider_authorization_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("allowedThirdPartyExtensions", AAZListType, ".allowed_third_party_extensions") + _builder.set_prop("applicationId", AAZStrType, ".application_id") + _builder.set_prop("groupingTag", AAZStrType, ".grouping_tag") + _builder.set_prop("managedByAuthorization", AAZObjectType, ".managed_by_authorization") + _builder.set_prop("managedByRoleDefinitionId", AAZStrType, ".managed_by_role_definition_id") + _builder.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + allowed_third_party_extensions = _builder.get(".allowedThirdPartyExtensions") + if allowed_third_party_extensions is not None: + allowed_third_party_extensions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".allowedThirdPartyExtensions[]") + if _elements is not None: + _elements.set_prop("name", AAZStrType, ".name") + + managed_by_authorization = _builder.get(".managedByAuthorization") + if managed_by_authorization is not None: + managed_by_authorization.set_prop("additionalAuthorizations", AAZListType, ".additional_authorizations") + managed_by_authorization.set_prop("allowManagedByInheritance", AAZBoolType, ".allow_managed_by_inheritance") + managed_by_authorization.set_prop("managedByResourceRoleDefinitionId", AAZStrType, ".managed_by_resource_role_definition_id") + + additional_authorizations = _builder.get(".managedByAuthorization.additionalAuthorizations") + if additional_authorizations is not None: + additional_authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".managedByAuthorization.additionalAuthorizations[]") + if _elements is not None: + _elements.set_prop("applicationId", AAZStrType, ".application_id") + _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + @classmethod + def _build_schema_resource_provider_endpoint_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("apiVersions", AAZListType, ".api_versions") + _builder.set_prop("enabled", AAZBoolType, ".enabled") + _builder.set_prop("endpointType", AAZStrType, ".endpoint_type") + _builder.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _builder.set_prop("featuresRule", AAZObjectType, ".features_rule") + _builder.set_prop("locations", AAZListType, ".locations") + _builder.set_prop("requiredFeatures", AAZListType, ".required_features") + _builder.set_prop("skuLink", AAZStrType, ".sku_link") + _builder.set_prop("timeout", AAZStrType, ".timeout") + + api_versions = _builder.get(".apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + locations = _builder.get(".locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_service_tree_info_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("componentId", AAZStrType, ".component_id") + _builder.set_prop("readiness", AAZStrType, ".readiness") + _builder.set_prop("serviceId", AAZStrType, ".service_id") + + @classmethod + def _build_schema_subscription_state_override_action_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("state", AAZStrType, ".state", typ_kwargs={"flags": {"required": True}}) + + @classmethod + def _build_schema_token_auth_configuration_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("authenticationScheme", AAZStrType, ".authentication_scheme") + _builder.set_prop("disableCertificateAuthenticationFallback", AAZBoolType, ".disable_certificate_authentication_fallback") + _builder.set_prop("signedRequestScope", AAZStrType, ".signed_request_scope") + + _schema_custom_rollout_read = None + + @classmethod + def _build_schema_custom_rollout_read(cls, _schema): + if cls._schema_custom_rollout_read is not None: + _schema.id = cls._schema_custom_rollout_read.id + _schema.name = cls._schema_custom_rollout_read.name + _schema.properties = cls._schema_custom_rollout_read.properties + _schema.system_data = cls._schema_custom_rollout_read.system_data + _schema.type = cls._schema_custom_rollout_read.type + return + + cls._schema_custom_rollout_read = _schema_custom_rollout_read = AAZObjectType() + + custom_rollout_read = _schema_custom_rollout_read + custom_rollout_read.id = AAZStrType( + flags={"read_only": True}, + ) + custom_rollout_read.name = AAZStrType( + flags={"read_only": True}, + ) + custom_rollout_read.properties = AAZObjectType( + flags={"required": True}, + ) + custom_rollout_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + cls._build_schema_system_data_read(custom_rollout_read.system_data) + custom_rollout_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_custom_rollout_read.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.specification = AAZObjectType( + flags={"required": True}, + ) + properties.status = AAZObjectType() + + specification = _schema_custom_rollout_read.properties.specification + specification.auto_provision_config = AAZObjectType( + serialized_name="autoProvisionConfig", + ) + specification.canary = AAZObjectType() + specification.manifest_checkin_specification = AAZObjectType( + serialized_name="manifestCheckinSpecification", + ) + specification.provider_registration = AAZObjectType( + serialized_name="providerRegistration", + ) + specification.refresh_subscription_registration = AAZBoolType( + serialized_name="refreshSubscriptionRegistration", + ) + specification.release_scopes = AAZListType( + serialized_name="releaseScopes", + ) + specification.resource_type_registrations = AAZListType( + serialized_name="resourceTypeRegistrations", + ) + specification.skip_release_scope_validation = AAZBoolType( + serialized_name="skipReleaseScopeValidation", + ) + + auto_provision_config = _schema_custom_rollout_read.properties.specification.auto_provision_config + auto_provision_config.resource_graph = AAZBoolType( + serialized_name="resourceGraph", + ) + auto_provision_config.storage = AAZBoolType() + + canary = _schema_custom_rollout_read.properties.specification.canary + canary.regions = AAZListType() + + regions = _schema_custom_rollout_read.properties.specification.canary.regions + regions.Element = AAZStrType() + + manifest_checkin_specification = _schema_custom_rollout_read.properties.specification.manifest_checkin_specification + manifest_checkin_specification.manifest_checkin_option = AAZStrType( + serialized_name="manifestCheckinOption", + ) + manifest_checkin_specification.manifest_checkin_params = AAZObjectType( + serialized_name="manifestCheckinParams", + ) + + manifest_checkin_params = _schema_custom_rollout_read.properties.specification.manifest_checkin_specification.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( + serialized_name="baselineArmManifestLocation", + flags={"required": True}, + ) + manifest_checkin_params.environment = AAZStrType( + flags={"required": True}, + ) + + provider_registration = _schema_custom_rollout_read.properties.specification.provider_registration + provider_registration.id = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.kind = AAZStrType() + provider_registration.name = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.properties = AAZObjectType() + provider_registration.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + cls._build_schema_system_data_read(provider_registration.system_data) + provider_registration.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_custom_rollout_read.properties.specification.provider_registration.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + cls._build_schema_notifications_read(properties.notifications) + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + cls._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + cls._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = _schema_custom_rollout_read.properties.specification.provider_registration.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.provider_registration.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = _schema_custom_rollout_read.properties.specification.provider_registration.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = _schema_custom_rollout_read.properties.specification.provider_registration.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = _schema_custom_rollout_read.properties.specification.provider_registration.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = _schema_custom_rollout_read.properties.specification.provider_registration.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + cls._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = _schema_custom_rollout_read.properties.specification.provider_registration.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = _schema_custom_rollout_read.properties.specification.provider_registration.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.provider_registration.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + cls._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = _schema_custom_rollout_read.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = _schema_custom_rollout_read.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = _schema_custom_rollout_read.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + cls._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = _schema_custom_rollout_read.properties.specification.provider_registration.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = _schema_custom_rollout_read.properties.specification.provider_registration.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = _schema_custom_rollout_read.properties.specification.provider_registration.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = _schema_custom_rollout_read.properties.specification.provider_registration.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = _schema_custom_rollout_read.properties.specification.provider_registration.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = _schema_custom_rollout_read.properties.specification.provider_registration.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = _schema_custom_rollout_read.properties.specification.provider_registration.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = _schema_custom_rollout_read.properties.specification.provider_registration.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + cls._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = _schema_custom_rollout_read.properties.specification.provider_registration.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = _schema_custom_rollout_read.properties.specification.provider_registration.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + cls._build_schema_service_tree_info_read(service_tree_infos.Element) + + management_group_global_notification_endpoints = _schema_custom_rollout_read.properties.specification.provider_registration.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + cls._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = _schema_custom_rollout_read.properties.specification.provider_registration.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = _schema_custom_rollout_read.properties.specification.provider_registration.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = _schema_custom_rollout_read.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = _schema_custom_rollout_read.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + optional_features = _schema_custom_rollout_read.properties.specification.provider_registration.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = _schema_custom_rollout_read.properties.specification.provider_registration.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = _schema_custom_rollout_read.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = _schema_custom_rollout_read.properties.specification.provider_registration.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = _schema_custom_rollout_read.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = _schema_custom_rollout_read.properties.specification.provider_registration.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + cls._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = _schema_custom_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = _schema_custom_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = _schema_custom_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = _schema_custom_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + cls._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = _schema_custom_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = _schema_custom_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = _schema_custom_rollout_read.properties.specification.provider_registration.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = _schema_custom_rollout_read.properties.specification.provider_registration.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = _schema_custom_rollout_read.properties.specification.provider_registration.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = _schema_custom_rollout_read.properties.specification.provider_registration.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.provider_registration.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + response_options = _schema_custom_rollout_read.properties.specification.provider_registration.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = _schema_custom_rollout_read.properties.specification.provider_registration.properties.services + services.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.provider_registration.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = _schema_custom_rollout_read.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = _schema_custom_rollout_read.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + cls._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + template_deployment_options = _schema_custom_rollout_read.properties.specification.provider_registration.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = _schema_custom_rollout_read.properties.specification.provider_registration.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + release_scopes = _schema_custom_rollout_read.properties.specification.release_scopes + release_scopes.Element = AAZStrType() + + resource_type_registrations = _schema_custom_rollout_read.properties.specification.resource_type_registrations + resource_type_registrations.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.kind = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + cls._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + cls._build_schema_notifications_read(properties.notifications) + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + cls._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + cls._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + cls._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + cls._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + cls._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.metadata + metadata.Element = AAZFreeFormDictType() + + on_behalf_of_tokens = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_query_management = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + cls._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + cls._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + subscription_state_rules = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = _schema_custom_rollout_read.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + status = _schema_custom_rollout_read.properties.status + status.completed_regions = AAZListType( + serialized_name="completedRegions", + ) + status.failed_or_skipped_regions = AAZDictType( + serialized_name="failedOrSkippedRegions", + ) + status.manifest_checkin_status = AAZObjectType( + serialized_name="manifestCheckinStatus", + ) + + completed_regions = _schema_custom_rollout_read.properties.status.completed_regions + completed_regions.Element = AAZStrType() + + failed_or_skipped_regions = _schema_custom_rollout_read.properties.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectType() + cls._build_schema_extended_error_info_read(failed_or_skipped_regions.Element) + + manifest_checkin_status = _schema_custom_rollout_read.properties.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrType( + serialized_name="commitId", + ) + manifest_checkin_status.is_checked_in = AAZBoolType( + serialized_name="isCheckedIn", + flags={"required": True}, + ) + manifest_checkin_status.pull_request = AAZStrType( + serialized_name="pullRequest", + ) + manifest_checkin_status.status_message = AAZStrType( + serialized_name="statusMessage", + flags={"required": True}, + ) + + _schema.id = cls._schema_custom_rollout_read.id + _schema.name = cls._schema_custom_rollout_read.name + _schema.properties = cls._schema_custom_rollout_read.properties + _schema.system_data = cls._schema_custom_rollout_read.system_data + _schema.type = cls._schema_custom_rollout_read.type + + _schema_extended_error_info_read = None + + @classmethod + def _build_schema_extended_error_info_read(cls, _schema): + if cls._schema_extended_error_info_read is not None: + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + return + + cls._schema_extended_error_info_read = _schema_extended_error_info_read = AAZObjectType() + + extended_error_info_read = _schema_extended_error_info_read + extended_error_info_read.additional_info = AAZListType( + serialized_name="additionalInfo", + ) + extended_error_info_read.code = AAZStrType() + extended_error_info_read.details = AAZListType() + extended_error_info_read.message = AAZStrType() + extended_error_info_read.target = AAZStrType() + + additional_info = _schema_extended_error_info_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_extended_error_info_read.additional_info.Element + _element.info = AAZObjectType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + details = _schema_extended_error_info_read.details + details.Element = AAZObjectType() + cls._build_schema_extended_error_info_read(details.Element) + + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + + _schema_notifications_read = None + + @classmethod + def _build_schema_notifications_read(cls, _schema): + if cls._schema_notifications_read is not None: + _schema.Element = cls._schema_notifications_read.Element + return + + cls._schema_notifications_read = _schema_notifications_read = AAZListType() + + notifications_read = _schema_notifications_read + notifications_read.Element = AAZObjectType() + + _element = _schema_notifications_read.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + _schema.Element = cls._schema_notifications_read.Element + + _schema_resource_access_role_read = None + + @classmethod + def _build_schema_resource_access_role_read(cls, _schema): + if cls._schema_resource_access_role_read is not None: + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + return + + cls._schema_resource_access_role_read = _schema_resource_access_role_read = AAZObjectType() + + resource_access_role_read = _schema_resource_access_role_read + resource_access_role_read.actions = AAZListType() + resource_access_role_read.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = _schema_resource_access_role_read.actions + actions.Element = AAZStrType() + + allowed_group_claims = _schema_resource_access_role_read.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + + _schema_resource_provider_authorization_rules_read = None + + @classmethod + def _build_schema_resource_provider_authorization_rules_read(cls, _schema): + if cls._schema_resource_provider_authorization_rules_read is not None: + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + return + + cls._schema_resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read = AAZObjectType() + + resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read + resource_provider_authorization_rules_read.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_subscription_state_override_action_read = None + + @classmethod + def _build_schema_subscription_state_override_action_read(cls, _schema): + if cls._schema_subscription_state_override_action_read is not None: + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + return + + cls._schema_subscription_state_override_action_read = _schema_subscription_state_override_action_read = AAZObjectType() + + subscription_state_override_action_read = _schema_subscription_state_override_action_read + subscription_state_override_action_read.action = AAZStrType( + flags={"required": True}, + ) + subscription_state_override_action_read.state = AAZStrType( + flags={"required": True}, + ) + + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Update"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_wait.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_wait.py new file mode 100644 index 00000000000..9624193960a --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/custom_rollout/_wait.py @@ -0,0 +1,2087 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub custom-rollout wait", +) +class Wait(AAZWaitCommand): + """Place the CLI in a waiting state until a condition is met. + """ + + _aaz_info = { + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/customrollouts/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.rollout_name = AAZStrArg( + options=["-n", "--name", "--rollout-name"], + help="The rollout name.", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[-\w\._\(\)]+$", + max_length=260, + ), + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.CustomRolloutsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False) + return result + + class CustomRolloutsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"required": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _WaitHelper._build_schema_system_data_read(_schema_on_200.system_data) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.specification = AAZObjectType( + flags={"required": True}, + ) + properties.status = AAZObjectType() + + specification = cls._schema_on_200.properties.specification + specification.auto_provision_config = AAZObjectType( + serialized_name="autoProvisionConfig", + ) + specification.canary = AAZObjectType() + specification.manifest_checkin_specification = AAZObjectType( + serialized_name="manifestCheckinSpecification", + ) + specification.provider_registration = AAZObjectType( + serialized_name="providerRegistration", + ) + specification.refresh_subscription_registration = AAZBoolType( + serialized_name="refreshSubscriptionRegistration", + ) + specification.release_scopes = AAZListType( + serialized_name="releaseScopes", + ) + specification.resource_type_registrations = AAZListType( + serialized_name="resourceTypeRegistrations", + ) + specification.skip_release_scope_validation = AAZBoolType( + serialized_name="skipReleaseScopeValidation", + ) + + auto_provision_config = cls._schema_on_200.properties.specification.auto_provision_config + auto_provision_config.resource_graph = AAZBoolType( + serialized_name="resourceGraph", + ) + auto_provision_config.storage = AAZBoolType() + + canary = cls._schema_on_200.properties.specification.canary + canary.regions = AAZListType() + + regions = cls._schema_on_200.properties.specification.canary.regions + regions.Element = AAZStrType() + + manifest_checkin_specification = cls._schema_on_200.properties.specification.manifest_checkin_specification + manifest_checkin_specification.manifest_checkin_option = AAZStrType( + serialized_name="manifestCheckinOption", + ) + manifest_checkin_specification.manifest_checkin_params = AAZObjectType( + serialized_name="manifestCheckinParams", + ) + + manifest_checkin_params = cls._schema_on_200.properties.specification.manifest_checkin_specification.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( + serialized_name="baselineArmManifestLocation", + flags={"required": True}, + ) + manifest_checkin_params.environment = AAZStrType( + flags={"required": True}, + ) + + provider_registration = cls._schema_on_200.properties.specification.provider_registration + provider_registration.id = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.kind = AAZStrType() + provider_registration.name = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.properties = AAZObjectType() + provider_registration.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _WaitHelper._build_schema_system_data_read(provider_registration.system_data) + provider_registration.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties.specification.provider_registration.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + _WaitHelper._build_schema_notifications_read(properties.notifications) + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _WaitHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _WaitHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = cls._schema_on_200.properties.specification.provider_registration.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = cls._schema_on_200.properties.specification.provider_registration.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _WaitHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = cls._schema_on_200.properties.specification.provider_registration.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.properties.specification.provider_registration.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.properties.specification.provider_registration.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _WaitHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.properties.specification.provider_registration.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _WaitHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + management_group_global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + optional_features = cls._schema_on_200.properties.specification.provider_registration.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = cls._schema_on_200.properties.specification.provider_registration.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.properties.specification.provider_registration.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = cls._schema_on_200.properties.specification.provider_registration.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + response_options = cls._schema_on_200.properties.specification.provider_registration.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = cls._schema_on_200.properties.specification.provider_registration.properties.services + services.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _WaitHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + template_deployment_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + release_scopes = cls._schema_on_200.properties.specification.release_scopes + release_scopes.Element = AAZStrType() + + resource_type_registrations = cls._schema_on_200.properties.specification.resource_type_registrations + resource_type_registrations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.kind = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _WaitHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + _WaitHelper._build_schema_notifications_read(properties.notifications) + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _WaitHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _WaitHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _WaitHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _WaitHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _WaitHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.metadata + metadata.Element = AAZFreeFormDictType() + + on_behalf_of_tokens = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_query_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _WaitHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _WaitHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + subscription_state_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + status = cls._schema_on_200.properties.status + status.completed_regions = AAZListType( + serialized_name="completedRegions", + ) + status.failed_or_skipped_regions = AAZDictType( + serialized_name="failedOrSkippedRegions", + ) + status.manifest_checkin_status = AAZObjectType( + serialized_name="manifestCheckinStatus", + ) + + completed_regions = cls._schema_on_200.properties.status.completed_regions + completed_regions.Element = AAZStrType() + + failed_or_skipped_regions = cls._schema_on_200.properties.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectType() + _WaitHelper._build_schema_extended_error_info_read(failed_or_skipped_regions.Element) + + manifest_checkin_status = cls._schema_on_200.properties.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrType( + serialized_name="commitId", + ) + manifest_checkin_status.is_checked_in = AAZBoolType( + serialized_name="isCheckedIn", + flags={"required": True}, + ) + manifest_checkin_status.pull_request = AAZStrType( + serialized_name="pullRequest", + ) + manifest_checkin_status.status_message = AAZStrType( + serialized_name="statusMessage", + flags={"required": True}, + ) + + return cls._schema_on_200 + + +class _WaitHelper: + """Helper class for Wait""" + + _schema_extended_error_info_read = None + + @classmethod + def _build_schema_extended_error_info_read(cls, _schema): + if cls._schema_extended_error_info_read is not None: + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + return + + cls._schema_extended_error_info_read = _schema_extended_error_info_read = AAZObjectType() + + extended_error_info_read = _schema_extended_error_info_read + extended_error_info_read.additional_info = AAZListType( + serialized_name="additionalInfo", + ) + extended_error_info_read.code = AAZStrType() + extended_error_info_read.details = AAZListType() + extended_error_info_read.message = AAZStrType() + extended_error_info_read.target = AAZStrType() + + additional_info = _schema_extended_error_info_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_extended_error_info_read.additional_info.Element + _element.info = AAZObjectType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + details = _schema_extended_error_info_read.details + details.Element = AAZObjectType() + cls._build_schema_extended_error_info_read(details.Element) + + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + + _schema_notifications_read = None + + @classmethod + def _build_schema_notifications_read(cls, _schema): + if cls._schema_notifications_read is not None: + _schema.Element = cls._schema_notifications_read.Element + return + + cls._schema_notifications_read = _schema_notifications_read = AAZListType() + + notifications_read = _schema_notifications_read + notifications_read.Element = AAZObjectType() + + _element = _schema_notifications_read.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + _schema.Element = cls._schema_notifications_read.Element + + _schema_resource_access_role_read = None + + @classmethod + def _build_schema_resource_access_role_read(cls, _schema): + if cls._schema_resource_access_role_read is not None: + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + return + + cls._schema_resource_access_role_read = _schema_resource_access_role_read = AAZObjectType() + + resource_access_role_read = _schema_resource_access_role_read + resource_access_role_read.actions = AAZListType() + resource_access_role_read.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = _schema_resource_access_role_read.actions + actions.Element = AAZStrType() + + allowed_group_claims = _schema_resource_access_role_read.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + + _schema_resource_provider_authorization_rules_read = None + + @classmethod + def _build_schema_resource_provider_authorization_rules_read(cls, _schema): + if cls._schema_resource_provider_authorization_rules_read is not None: + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + return + + cls._schema_resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read = AAZObjectType() + + resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read + resource_provider_authorization_rules_read.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_subscription_state_override_action_read = None + + @classmethod + def _build_schema_subscription_state_override_action_read(cls, _schema): + if cls._schema_subscription_state_override_action_read is not None: + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + return + + cls._schema_subscription_state_override_action_read = _schema_subscription_state_override_action_read = AAZObjectType() + + subscription_state_override_action_read = _schema_subscription_state_override_action_read + subscription_state_override_action_read.action = AAZStrType( + flags={"required": True}, + ) + subscription_state_override_action_read.state = AAZStrType( + flags={"required": True}, + ) + + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Wait"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/__cmd_group.py new file mode 100644 index 00000000000..d9950aef1d4 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub default-rollout", +) +class __CMDGroup(AAZCommandGroup): + """Manage default rollout with providerhub. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/__init__.py new file mode 100644 index 00000000000..09d8537a13d --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/__init__.py @@ -0,0 +1,18 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._stop import * +from ._update import * +from ._wait import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_create.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_create.py new file mode 100644 index 00000000000..ae0c975381d --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_create.py @@ -0,0 +1,5663 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub default-rollout create", +) +class Create(AAZCommand): + """Create the rollout details. + + :example: default-rollout create + az providerhub default-rollout create --provider-namespace "{providerNamespace}" --rollout-name "{defaultRolloutName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/defaultrollouts/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + _args_schema.rollout_name = AAZStrArg( + options=["-n", "--name", "--rollout-name"], + help="The rollout name.", + required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._\(\)]+$", + max_length=260, + ), + ) + + # define Arg Group "ManifestCheckinSpecification" + + _args_schema = cls._args_schema + _args_schema.manifest_checkin_option = AAZStrArg( + options=["--checkin-option", "--manifest-checkin-option"], + arg_group="ManifestCheckinSpecification", + help="The manifest checkin option.", + default="DoNotAttemptAutomaticManifestCheckin", + enum={"AttemptAutomaticManifestCheckin": "AttemptAutomaticManifestCheckin", "DoNotAttemptAutomaticManifestCheckin": "DoNotAttemptAutomaticManifestCheckin"}, + ) + _args_schema.manifest_checkin_params = AAZObjectArg( + options=["--checkin-params", "--manifest-checkin-params"], + arg_group="ManifestCheckinSpecification", + help="The manifest checkin params.", + ) + + manifest_checkin_params = cls._args_schema.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrArg( + options=["baseline-arm-manifest-location"], + help="The baseline ARM manifest location supplied to the checkin manifest operation.", + required=True, + default="EastUS2EUAP", + ) + manifest_checkin_params.environment = AAZStrArg( + options=["environment"], + help="The environment supplied to the checkin manifest operation.", + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.status = AAZObjectArg( + options=["--status"], + arg_group="Properties", + ) + + status = cls._args_schema.status + status.completed_regions = AAZListArg( + options=["completed-regions"], + ) + status.failed_or_skipped_regions = AAZDictArg( + options=["failed-or-skipped-regions"], + ) + status.manifest_checkin_status = AAZObjectArg( + options=["manifest-checkin-status"], + ) + status.next_traffic_region = AAZStrArg( + options=["next-traffic-region"], + enum={"Canary": "Canary", "HighTraffic": "HighTraffic", "LowTraffic": "LowTraffic", "MediumTraffic": "MediumTraffic", "None": "None", "NotSpecified": "NotSpecified", "RestOfTheWorldGroupOne": "RestOfTheWorldGroupOne", "RestOfTheWorldGroupTwo": "RestOfTheWorldGroupTwo"}, + ) + status.next_traffic_region_scheduled_time = AAZDateTimeArg( + options=["next-traffic-region-scheduled-time"], + ) + status.subscription_reregistration_result = AAZStrArg( + options=["subscription-reregistration-result"], + enum={"ConditionalUpdate": "ConditionalUpdate", "Failed": "Failed", "ForcedUpdate": "ForcedUpdate", "NotApplicable": "NotApplicable"}, + ) + + completed_regions = cls._args_schema.status.completed_regions + completed_regions.Element = AAZStrArg() + + failed_or_skipped_regions = cls._args_schema.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectArg() + cls._build_args_extended_error_info_create(failed_or_skipped_regions.Element) + + manifest_checkin_status = cls._args_schema.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrArg( + options=["commit-id"], + ) + manifest_checkin_status.is_checked_in = AAZBoolArg( + options=["is-checked-in"], + required=True, + ) + manifest_checkin_status.pull_request = AAZStrArg( + options=["pull-request"], + ) + manifest_checkin_status.status_message = AAZStrArg( + options=["status-message"], + required=True, + ) + + # define Arg Group "Specification" + + _args_schema = cls._args_schema + _args_schema.auto_provision_config = AAZObjectArg( + options=["--auto-provision-config"], + arg_group="Specification", + ) + _args_schema.canary = AAZObjectArg( + options=["--canary"], + arg_group="Specification", + help="The canary regions to skip.", + ) + _args_schema.expedited_rollout = AAZObjectArg( + options=["--expedited-rollout"], + arg_group="Specification", + ) + _args_schema.high_traffic = AAZObjectArg( + options=["--high-traffic"], + arg_group="Specification", + ) + _args_schema.low_traffic = AAZObjectArg( + options=["--low-traffic"], + arg_group="Specification", + ) + _args_schema.medium_traffic = AAZObjectArg( + options=["--medium-traffic"], + arg_group="Specification", + ) + _args_schema.provider_registration = AAZObjectArg( + options=["--provider-registration"], + arg_group="Specification", + ) + _args_schema.resource_type_registrations = AAZListArg( + options=["--rt-regs", "--resource-type-registrations"], + arg_group="Specification", + help="The resource type registrations.", + ) + _args_schema.rest_of_the_world_group_one = AAZObjectArg( + options=["--row1", "--rest-of-the-world-group-one"], + arg_group="Specification", + help="The rest of the world group one options.", + ) + _args_schema.rest_of_the_world_group_two = AAZObjectArg( + options=["--row2", "--rest-of-the-world-group-two"], + arg_group="Specification", + help="The rest of the world group two options.", + ) + + auto_provision_config = cls._args_schema.auto_provision_config + auto_provision_config.resource_graph = AAZBoolArg( + options=["resource-graph"], + ) + auto_provision_config.storage = AAZBoolArg( + options=["storage"], + ) + + canary = cls._args_schema.canary + canary.regions = AAZListArg( + options=["regions"], + ) + canary.skip_regions = AAZListArg( + options=["skip-regions"], + help="The canary skip regions.", + ) + + regions = cls._args_schema.canary.regions + regions.Element = AAZStrArg() + + skip_regions = cls._args_schema.canary.skip_regions + skip_regions.Element = AAZStrArg() + + expedited_rollout = cls._args_schema.expedited_rollout + expedited_rollout.enabled = AAZBoolArg( + options=["enabled"], + help="Indicates whether expedited rollout is enabled/disabled", + ) + + high_traffic = cls._args_schema.high_traffic + high_traffic.regions = AAZListArg( + options=["regions"], + ) + high_traffic.wait_duration = AAZDurationArg( + options=["wait-duration"], + ) + + regions = cls._args_schema.high_traffic.regions + regions.Element = AAZStrArg() + + low_traffic = cls._args_schema.low_traffic + low_traffic.regions = AAZListArg( + options=["regions"], + ) + low_traffic.wait_duration = AAZDurationArg( + options=["wait-duration"], + ) + + regions = cls._args_schema.low_traffic.regions + regions.Element = AAZStrArg() + + medium_traffic = cls._args_schema.medium_traffic + medium_traffic.regions = AAZListArg( + options=["regions"], + ) + medium_traffic.wait_duration = AAZDurationArg( + options=["wait-duration"], + ) + + regions = cls._args_schema.medium_traffic.regions + regions.Element = AAZStrArg() + + provider_registration = cls._args_schema.provider_registration + provider_registration.kind = AAZStrArg( + options=["kind"], + help="Provider registration kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + default="Managed", + enum={"Direct": "Direct", "Hybrid": "Hybrid", "Managed": "Managed"}, + ) + provider_registration.capabilities = AAZListArg( + options=["capabilities"], + ) + provider_registration.cross_tenant_token_validation = AAZStrArg( + options=["cross-tenant-token-validation"], + enum={"EnsureSecureValidation": "EnsureSecureValidation", "PassthroughInsecureToken": "PassthroughInsecureToken"}, + ) + provider_registration.custom_manifest_version = AAZStrArg( + options=["custom-manifest-version"], + help="Custom manifest version.", + ) + provider_registration.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + ) + provider_registration.enable_tenant_linked_notification = AAZBoolArg( + options=["enable-tenant-linked-notification"], + nullable=True, + ) + provider_registration.features_rule = AAZObjectArg( + options=["features-rule"], + ) + provider_registration.global_notification_endpoints = AAZListArg( + options=["global-notification-endpoints"], + ) + provider_registration.legacy_namespace = AAZStrArg( + options=["legacy-namespace"], + help="Legacy namespace.", + ) + provider_registration.legacy_registrations = AAZListArg( + options=["legacy-registrations"], + help="Legacy registrations.", + ) + provider_registration.linked_notification_rules = AAZListArg( + options=["linked-notification-rules"], + ) + provider_registration.management = AAZObjectArg( + options=["management"], + ) + provider_registration.management_group_global_notification_endpoints = AAZListArg( + options=["management-group-global-notification-endpoints"], + help="Management groups global notification endpoints.", + ) + provider_registration.metadata = AAZFreeFormDictArg( + options=["metadata"], + ) + provider_registration.namespace = AAZStrArg( + options=["namespace"], + ) + provider_registration.notification_options = AAZStrArg( + options=["notification-options"], + help="Notification options.", + enum={"EmitSpendingLimit": "EmitSpendingLimit", "None": "None", "NotSpecified": "NotSpecified"}, + ) + provider_registration.notification_settings = AAZObjectArg( + options=["notification-settings"], + help="Notification settings.", + ) + provider_registration.notifications = AAZListArg( + options=["notifications"], + ) + cls._build_args_notifications_create(provider_registration.notifications) + provider_registration.optional_features = AAZListArg( + options=["optional-features"], + help="Optional features.", + ) + provider_registration.private_resource_provider_configuration = AAZObjectArg( + options=["private-resource-provider-configuration"], + ) + provider_registration.provider_authentication = AAZObjectArg( + options=["provider-authentication"], + ) + provider_registration.provider_authorizations = AAZListArg( + options=["provider-authorizations"], + ) + provider_registration.provider_hub_metadata = AAZObjectArg( + options=["provider-hub-metadata"], + ) + provider_registration.provider_type = AAZStrArg( + options=["provider-type"], + enum={"AuthorizationFree": "AuthorizationFree", "External": "External", "Hidden": "Hidden", "Internal": "Internal", "LegacyRegistrationRequired": "LegacyRegistrationRequired", "NotSpecified": "NotSpecified", "RegistrationFree": "RegistrationFree", "TenantOnly": "TenantOnly"}, + ) + provider_registration.provider_version = AAZStrArg( + options=["provider-version"], + ) + provider_registration.request_header_options = AAZObjectArg( + options=["request-header-options"], + ) + provider_registration.required_features = AAZListArg( + options=["required-features"], + ) + provider_registration.resource_group_lock_option_during_move = AAZObjectArg( + options=["resource-group-lock-option-during-move"], + help="Resource group lock option during move.", + ) + provider_registration.resource_hydration_accounts = AAZListArg( + options=["resource-hydration-accounts"], + help="resource hydration accounts", + ) + provider_registration.resource_provider_authorization_rules = AAZObjectArg( + options=["resource-provider-authorization-rules"], + ) + cls._build_args_resource_provider_authorization_rules_create(provider_registration.resource_provider_authorization_rules) + provider_registration.response_options = AAZObjectArg( + options=["response-options"], + help="Response options.", + ) + provider_registration.service_name = AAZStrArg( + options=["service-name"], + ) + provider_registration.services = AAZListArg( + options=["services"], + ) + provider_registration.subscription_lifecycle_notification_specifications = AAZObjectArg( + options=["subscription-lifecycle-notification-specifications"], + ) + provider_registration.template_deployment_options = AAZObjectArg( + options=["template-deployment-options"], + ) + provider_registration.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + ) + cls._build_args_token_auth_configuration_create(provider_registration.token_auth_configuration) + + capabilities = cls._args_schema.provider_registration.capabilities + capabilities.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.capabilities.Element + _element.effect = AAZStrArg( + options=["effect"], + required=True, + enum={"Allow": "Allow", "Disallow": "Disallow", "NotSpecified": "NotSpecified"}, + ) + _element.quota_id = AAZStrArg( + options=["quota-id"], + required=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + + required_features = cls._args_schema.provider_registration.capabilities.Element.required_features + required_features.Element = AAZStrArg() + + dsts_configuration = cls._args_schema.provider_registration.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + required=True, + ) + + features_rule = cls._args_schema.provider_registration.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + required=True, + enum={"All": "All", "Any": "Any"}, + ) + + global_notification_endpoints = cls._args_schema.provider_registration.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectArg() + cls._build_args_resource_provider_endpoint_create(global_notification_endpoints.Element) + + legacy_registrations = cls._args_schema.provider_registration.legacy_registrations + legacy_registrations.Element = AAZStrArg() + + linked_notification_rules = cls._args_schema.provider_registration.linked_notification_rules + linked_notification_rules.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.linked_notification_rules.Element + _element.actions = AAZListArg( + options=["actions"], + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + ) + _element.endpoints = AAZListArg( + options=["endpoints"], + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + ) + cls._build_args_token_auth_configuration_create(_element.token_auth_configuration) + + actions = cls._args_schema.provider_registration.linked_notification_rules.Element.actions + actions.Element = AAZStrArg() + + dsts_configuration = cls._args_schema.provider_registration.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + required=True, + ) + + endpoints = cls._args_schema.provider_registration.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectArg() + cls._build_args_resource_provider_endpoint_create(endpoints.Element) + + management = cls._args_schema.provider_registration.management + management.authorization_owners = AAZListArg( + options=["authorization-owners"], + ) + management.canary_manifest_owners = AAZListArg( + options=["canary-manifest-owners"], + help="List of manifest owners for canary.", + ) + management.error_response_message_options = AAZObjectArg( + options=["error-response-message-options"], + help="Options for error response messages.", + ) + management.expedited_rollout_metadata = AAZObjectArg( + options=["expedited-rollout-metadata"], + help="Metadata for expedited rollout.", + ) + management.expedited_rollout_submitters = AAZListArg( + options=["expedited-rollout-submitters"], + help="List of expedited rollout submitters.", + ) + management.incident_contact_email = AAZStrArg( + options=["incident-contact-email"], + ) + management.incident_routing_service = AAZStrArg( + options=["incident-routing-service"], + ) + management.incident_routing_team = AAZStrArg( + options=["incident-routing-team"], + ) + management.manifest_owners = AAZListArg( + options=["manifest-owners"], + ) + management.pc_code = AAZStrArg( + options=["pc-code"], + help="The profit center code for the subscription.", + ) + management.profit_center_program_id = AAZStrArg( + options=["profit-center-program-id"], + help="The profit center program id for the subscription.", + ) + management.resource_access_policy = AAZStrArg( + options=["resource-access-policy"], + enum={"AcisActionAllowed": "AcisActionAllowed", "AcisReadAllowed": "AcisReadAllowed", "NotSpecified": "NotSpecified"}, + ) + management.resource_access_roles = AAZListArg( + options=["resource-access-roles"], + ) + management.schema_owners = AAZListArg( + options=["schema-owners"], + ) + management.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + ) + + authorization_owners = cls._args_schema.provider_registration.management.authorization_owners + authorization_owners.Element = AAZStrArg() + + canary_manifest_owners = cls._args_schema.provider_registration.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrArg() + + error_response_message_options = cls._args_schema.provider_registration.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrArg( + options=["server-failure-response-message-type"], + help="Type of server failure response message.", + enum={"NotSpecified": "NotSpecified", "OutageReporting": "OutageReporting"}, + ) + + expedited_rollout_metadata = cls._args_schema.provider_registration.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolArg( + options=["enabled"], + help="Expedited rollout enabled?", + ) + expedited_rollout_metadata.expedited_rollout_intent = AAZStrArg( + options=["expedited-rollout-intent"], + help="Expedited rollout intent.", + enum={"Hotfix": "Hotfix", "NotSpecified": "NotSpecified"}, + ) + + expedited_rollout_submitters = cls._args_schema.provider_registration.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrArg() + + manifest_owners = cls._args_schema.provider_registration.management.manifest_owners + manifest_owners.Element = AAZStrArg() + + resource_access_roles = cls._args_schema.provider_registration.management.resource_access_roles + resource_access_roles.Element = AAZObjectArg() + cls._build_args_resource_access_role_create(resource_access_roles.Element) + + schema_owners = cls._args_schema.provider_registration.management.schema_owners + schema_owners.Element = AAZStrArg() + + service_tree_infos = cls._args_schema.provider_registration.management.service_tree_infos + service_tree_infos.Element = AAZObjectArg() + cls._build_args_service_tree_info_create(service_tree_infos.Element) + + management_group_global_notification_endpoints = cls._args_schema.provider_registration.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectArg() + cls._build_args_resource_provider_endpoint_create(management_group_global_notification_endpoints.Element) + + notification_settings = cls._args_schema.provider_registration.notification_settings + notification_settings.subscriber_settings = AAZListArg( + options=["subscriber-settings"], + ) + + subscriber_settings = cls._args_schema.provider_registration.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListArg( + options=["filter-rules"], + ) + + filter_rules = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListArg( + options=["endpoint-information"], + ) + _element.filter_query = AAZStrArg( + options=["filter-query"], + ) + + endpoint_information = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrArg( + options=["endpoint"], + ) + _element.endpoint_type = AAZStrArg( + options=["endpoint-type"], + enum={"Eventhub": "Eventhub", "Webhook": "Webhook"}, + ) + _element.schema_version = AAZStrArg( + options=["schema-version"], + ) + + optional_features = cls._args_schema.provider_registration.optional_features + optional_features.Element = AAZStrArg() + + private_resource_provider_configuration = cls._args_schema.provider_registration.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListArg( + options=["allowed-subscriptions"], + ) + + allowed_subscriptions = cls._args_schema.provider_registration.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrArg() + + provider_authentication = cls._args_schema.provider_registration.provider_authentication + provider_authentication.allowed_audiences = AAZListArg( + options=["allowed-audiences"], + required=True, + ) + + allowed_audiences = cls._args_schema.provider_registration.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrArg() + + provider_authorizations = cls._args_schema.provider_registration.provider_authorizations + provider_authorizations.Element = AAZObjectArg() + cls._build_args_resource_provider_authorization_create(provider_authorizations.Element) + + provider_hub_metadata = cls._args_schema.provider_registration.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrArg( + options=["direct-rp-role-definition-id"], + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrArg( + options=["global-async-operation-resource-type-name"], + ) + provider_hub_metadata.provider_authentication = AAZObjectArg( + options=["provider-authentication"], + ) + provider_hub_metadata.provider_authorizations = AAZListArg( + options=["provider-authorizations"], + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrArg( + options=["regional-async-operation-resource-type-name"], + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectArg( + options=["third-party-provider-authorization"], + ) + + provider_authentication = cls._args_schema.provider_registration.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListArg( + options=["allowed-audiences"], + required=True, + ) + + allowed_audiences = cls._args_schema.provider_registration.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrArg() + + provider_authorizations = cls._args_schema.provider_registration.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectArg() + cls._build_args_resource_provider_authorization_create(provider_authorizations.Element) + + third_party_provider_authorization = cls._args_schema.provider_registration.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListArg( + options=["authorizations"], + ) + third_party_provider_authorization.managed_by_tenant_id = AAZStrArg( + options=["managed-by-tenant-id"], + ) + + authorizations = cls._args_schema.provider_registration.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrArg( + options=["principal-id"], + required=True, + ) + _element.role_definition_id = AAZStrArg( + options=["role-definition-id"], + required=True, + ) + + request_header_options = cls._args_schema.provider_registration.request_header_options + request_header_options.opt_in_headers = AAZStrArg( + options=["opt-in-headers"], + enum={"ClientGroupMembership": "ClientGroupMembership", "ClientPrincipalNameEncoded": "ClientPrincipalNameEncoded", "MSIResourceIdEncoded": "MSIResourceIdEncoded", "ManagementGroupAncestorsEncoded": "ManagementGroupAncestorsEncoded", "NotSpecified": "NotSpecified", "PrivateLinkId": "PrivateLinkId", "PrivateLinkResourceId": "PrivateLinkResourceId", "PrivateLinkVnetTrafficTag": "PrivateLinkVnetTrafficTag", "ResourceGroupLocation": "ResourceGroupLocation", "SignedAuxiliaryTokens": "SignedAuxiliaryTokens", "SignedUserToken": "SignedUserToken", "UnboundedClientGroupMembership": "UnboundedClientGroupMembership"}, + ) + request_header_options.opt_out_headers = AAZStrArg( + options=["opt-out-headers"], + enum={"NotSpecified": "NotSpecified", "SystemDataCreatedByLastModifiedBy": "SystemDataCreatedByLastModifiedBy"}, + ) + + required_features = cls._args_schema.provider_registration.required_features + required_features.Element = AAZStrArg() + + resource_group_lock_option_during_move = cls._args_schema.provider_registration.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrArg( + options=["block-action-verb"], + help="The action verb that will be blocked when the resource group is locked during move.", + enum={"Action": "Action", "Delete": "Delete", "NotSpecified": "NotSpecified", "Read": "Read", "Unrecognized": "Unrecognized", "Write": "Write"}, + ) + + resource_hydration_accounts = cls._args_schema.provider_registration.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.resource_hydration_accounts.Element + _element.account_name = AAZStrArg( + options=["account-name"], + ) + _element.encrypted_key = AAZStrArg( + options=["encrypted-key"], + ) + _element.max_child_resource_consistency_job_limit = AAZIntArg( + options=["max-child-resource-consistency-job-limit"], + ) + _element.subscription_id = AAZStrArg( + options=["subscription-id"], + ) + + response_options = cls._args_schema.provider_registration.response_options + response_options.service_client_options_type = AAZStrArg( + options=["service-client-options-type"], + enum={"DisableAutomaticDecompression": "DisableAutomaticDecompression", "NotSpecified": "NotSpecified"}, + ) + + services = cls._args_schema.provider_registration.services + services.Element = AAZObjectArg() + + _element = cls._args_schema.provider_registration.services.Element + _element.service_name = AAZStrArg( + options=["service-name"], + ) + _element.status = AAZStrArg( + options=["status"], + enum={"Active": "Active", "Inactive": "Inactive"}, + ) + + subscription_lifecycle_notification_specifications = cls._args_schema.provider_registration.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZDurationArg( + options=["soft-delete-ttl"], + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListArg( + options=["subscription-state-override-actions"], + ) + + subscription_state_override_actions = cls._args_schema.provider_registration.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectArg() + cls._build_args_subscription_state_override_action_create(subscription_state_override_actions.Element) + + template_deployment_options = cls._args_schema.provider_registration.template_deployment_options + template_deployment_options.preflight_options = AAZListArg( + options=["preflight-options"], + ) + template_deployment_options.preflight_supported = AAZBoolArg( + options=["preflight-supported"], + ) + + preflight_options = cls._args_schema.provider_registration.template_deployment_options.preflight_options + preflight_options.Element = AAZStrArg( + enum={"ContinueDeploymentOnFailure": "ContinueDeploymentOnFailure", "DefaultValidationOnly": "DefaultValidationOnly", "None": "None"}, + ) + + resource_type_registrations = cls._args_schema.resource_type_registrations + resource_type_registrations.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element + _element.kind = AAZStrArg( + options=["kind"], + help="Resource type registration kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + default="Managed", + enum={"Direct": "Direct", "Hybrid": "Hybrid", "Managed": "Managed"}, + ) + _element.add_resource_list_target_locations = AAZBoolArg( + options=["add-resource-list-target-locations"], + help="Add resource list target locations?", + ) + _element.additional_options = AAZStrArg( + options=["additional-options"], + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + _element.allow_empty_role_assignments = AAZBoolArg( + options=["allow-empty-role-assignments"], + ) + _element.allowed_resource_names = AAZListArg( + options=["allowed-resource-names"], + ) + _element.allowed_template_deployment_reference_actions = AAZListArg( + options=["allowed-template-deployment-reference-actions"], + help="Allowed template deployment reference actions.", + ) + _element.allowed_unauthorized_actions = AAZListArg( + options=["allowed-unauthorized-actions"], + ) + _element.api_profiles = AAZListArg( + options=["api-profiles"], + ) + _element.async_operation_resource_type_name = AAZStrArg( + options=["async-operation-resource-type-name"], + ) + _element.async_timeout_rules = AAZListArg( + options=["async-timeout-rules"], + help="Async timeout rules", + ) + _element.authorization_action_mappings = AAZListArg( + options=["authorization-action-mappings"], + ) + _element.availability_zone_rule = AAZObjectArg( + options=["availability-zone-rule"], + ) + _element.capacity_rule = AAZObjectArg( + options=["capacity-rule"], + help="Capacity rule.", + ) + _element.category = AAZStrArg( + options=["category"], + enum={"FreeForm": "FreeForm", "Internal": "Internal", "None": "None", "PureProxy": "PureProxy"}, + ) + _element.check_name_availability_specifications = AAZObjectArg( + options=["check-name-availability-specifications"], + ) + _element.common_api_versions = AAZListArg( + options=["common-api-versions"], + help="Common API versions for the resource type.", + ) + _element.cross_tenant_token_validation = AAZStrArg( + options=["cross-tenant-token-validation"], + enum={"EnsureSecureValidation": "EnsureSecureValidation", "PassthroughInsecureToken": "PassthroughInsecureToken"}, + ) + _element.default_api_version = AAZStrArg( + options=["default-api-version"], + ) + _element.disallowed_action_verbs = AAZListArg( + options=["disallowed-action-verbs"], + ) + _element.disallowed_end_user_operations = AAZListArg( + options=["disallowed-end-user-operations"], + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + ) + _element.enable_async_operation = AAZBoolArg( + options=["enable-async-operation"], + ) + _element.enable_third_party_s2_s = AAZBoolArg( + options=["enable-third-party-s2-s"], + ) + _element.endpoints = AAZListArg( + options=["endpoints"], + ) + _element.extended_locations = AAZListArg( + options=["extended-locations"], + ) + _element.extension_options = AAZObjectArg( + options=["extension-options"], + ) + _element.features_rule = AAZObjectArg( + options=["features-rule"], + ) + _element.frontdoor_request_mode = AAZStrArg( + options=["frontdoor-request-mode"], + enum={"NotSpecified": "NotSpecified", "UseManifest": "UseManifest"}, + ) + _element.grouping_tag = AAZStrArg( + options=["grouping-tag"], + help="Grouping tag.", + ) + _element.identity_management = AAZObjectArg( + options=["identity-management"], + ) + _element.is_pure_proxy = AAZBoolArg( + options=["is-pure-proxy"], + ) + _element.legacy_name = AAZStrArg( + options=["legacy-name"], + ) + _element.legacy_names = AAZListArg( + options=["legacy-names"], + ) + _element.legacy_policy = AAZObjectArg( + options=["legacy-policy"], + ) + _element.linked_access_checks = AAZListArg( + options=["linked-access-checks"], + ) + _element.linked_notification_rules = AAZListArg( + options=["linked-notification-rules"], + ) + _element.linked_operation_rules = AAZListArg( + options=["linked-operation-rules"], + ) + _element.logging_rules = AAZListArg( + options=["logging-rules"], + ) + _element.managed_resource_group_configuration = AAZObjectArg( + options=["managed-resource-group-configuration"], + ) + _element.management = AAZObjectArg( + options=["management"], + ) + _element.manifest_link = AAZStrArg( + options=["manifest-link"], + help="Manifest link.", + ) + _element.marketplace_options = AAZObjectArg( + options=["marketplace-options"], + help="Marketplace options.", + ) + _element.marketplace_type = AAZStrArg( + options=["marketplace-type"], + enum={"AddOn": "AddOn", "Bypass": "Bypass", "NotSpecified": "NotSpecified", "Store": "Store"}, + ) + _element.metadata = AAZDictArg( + options=["metadata"], + ) + _element.notifications = AAZListArg( + options=["notifications"], + ) + cls._build_args_notifications_create(_element.notifications) + _element.on_behalf_of_tokens = AAZObjectArg( + options=["on-behalf-of-tokens"], + ) + _element.open_api_configuration = AAZObjectArg( + options=["open-api-configuration"], + ) + _element.policy_execution_type = AAZStrArg( + options=["policy-execution-type"], + enum={"BypassPolicies": "BypassPolicies", "ExecutePolicies": "ExecutePolicies", "ExpectPartialPutRequests": "ExpectPartialPutRequests", "NotSpecified": "NotSpecified"}, + ) + _element.private_endpoint_configuration = AAZObjectArg( + options=["private-endpoint-configuration"], + ) + _element.quota_rule = AAZObjectArg( + options=["quota-rule"], + ) + _element.regionality = AAZStrArg( + options=["regionality"], + enum={"Global": "Global", "NotSpecified": "NotSpecified", "Regional": "Regional"}, + ) + _element.request_header_options = AAZObjectArg( + options=["request-header-options"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + _element.resource_cache = AAZObjectArg( + options=["resource-cache"], + help="Resource cache options.", + ) + _element.resource_concurrency_control_options = AAZDictArg( + options=["resource-concurrency-control-options"], + ) + _element.resource_deletion_policy = AAZStrArg( + options=["resource-deletion-policy"], + enum={"CascadeDeleteAll": "CascadeDeleteAll", "CascadeDeleteProxyOnlyChildren": "CascadeDeleteProxyOnlyChildren", "NotSpecified": "NotSpecified"}, + ) + _element.resource_graph_configuration = AAZObjectArg( + options=["resource-graph-configuration"], + ) + _element.resource_management_options = AAZObjectArg( + options=["resource-management-options"], + help="Resource management options.", + ) + _element.resource_move_policy = AAZObjectArg( + options=["resource-move-policy"], + ) + _element.resource_provider_authorization_rules = AAZObjectArg( + options=["resource-provider-authorization-rules"], + ) + cls._build_args_resource_provider_authorization_rules_create(_element.resource_provider_authorization_rules) + _element.resource_query_management = AAZObjectArg( + options=["resource-query-management"], + help="Resource query management options.", + ) + _element.resource_sub_type = AAZStrArg( + options=["resource-sub-type"], + enum={"AsyncOperation": "AsyncOperation", "NotSpecified": "NotSpecified"}, + ) + _element.resource_type_common_attribute_management = AAZObjectArg( + options=["resource-type-common-attribute-management"], + help="Resource type common attribute management.", + ) + _element.resource_validation = AAZStrArg( + options=["resource-validation"], + enum={"NotSpecified": "NotSpecified", "ProfaneWords": "ProfaneWords", "ReservedWords": "ReservedWords"}, + ) + _element.routing_rule = AAZObjectArg( + options=["routing-rule"], + help="Routing rule.", + ) + _element.routing_type = AAZStrArg( + options=["routing-type"], + enum={"CascadeExtension": "CascadeExtension", "Default": "Default", "Extension": "Extension", "Failover": "Failover", "Fanout": "Fanout", "HostBased": "HostBased", "LocationBased": "LocationBased", "ProxyOnly": "ProxyOnly", "Tenant": "Tenant"}, + ) + _element.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + ) + _element.sku_link = AAZStrArg( + options=["sku-link"], + ) + _element.subscription_lifecycle_notification_specifications = AAZObjectArg( + options=["subscription-lifecycle-notification-specifications"], + ) + _element.subscription_state_rules = AAZListArg( + options=["subscription-state-rules"], + ) + _element.supports_tags = AAZBoolArg( + options=["supports-tags"], + ) + _element.swagger_specifications = AAZListArg( + options=["swagger-specifications"], + ) + _element.template_deployment_options = AAZObjectArg( + options=["template-deployment-options"], + ) + _element.template_deployment_policy = AAZObjectArg( + options=["template-deployment-policy"], + ) + _element.throttling_rules = AAZListArg( + options=["throttling-rules"], + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + ) + cls._build_args_token_auth_configuration_create(_element.token_auth_configuration) + + allowed_resource_names = cls._args_schema.resource_type_registrations.Element.allowed_resource_names + allowed_resource_names.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.allowed_resource_names.Element + _element.get_action_verb = AAZStrArg( + options=["get-action-verb"], + help="Get action verb.", + ) + _element.name = AAZStrArg( + options=["name"], + help="Resource name.", + ) + + allowed_template_deployment_reference_actions = cls._args_schema.resource_type_registrations.Element.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrArg() + + allowed_unauthorized_actions = cls._args_schema.resource_type_registrations.Element.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrArg() + + api_profiles = cls._args_schema.resource_type_registrations.Element.api_profiles + api_profiles.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.api_profiles.Element + _element.api_version = AAZStrArg( + options=["api-version"], + help="Api version.", + ) + _element.profile_version = AAZStrArg( + options=["profile-version"], + help="Profile version.", + ) + + async_timeout_rules = cls._args_schema.resource_type_registrations.Element.async_timeout_rules + async_timeout_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.async_timeout_rules.Element + _element.action_name = AAZStrArg( + options=["action-name"], + ) + _element.timeout = AAZStrArg( + options=["timeout"], + ) + + authorization_action_mappings = cls._args_schema.resource_type_registrations.Element.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.authorization_action_mappings.Element + _element.desired = AAZStrArg( + options=["desired"], + ) + _element.original = AAZStrArg( + options=["original"], + ) + + availability_zone_rule = cls._args_schema.resource_type_registrations.Element.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrArg( + options=["availability-zone-policy"], + enum={"MultiZoned": "MultiZoned", "NotSpecified": "NotSpecified", "SingleZoned": "SingleZoned"}, + ) + + capacity_rule = cls._args_schema.resource_type_registrations.Element.capacity_rule + capacity_rule.capacity_policy = AAZStrArg( + options=["capacity-policy"], + help="Capacity policy.", + enum={"Default": "Default", "Restricted": "Restricted"}, + ) + capacity_rule.sku_alias = AAZStrArg( + options=["sku-alias"], + help="Sku alias", + ) + + check_name_availability_specifications = cls._args_schema.resource_type_registrations.Element.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolArg( + options=["enable-default-validation"], + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListArg( + options=["resource-types-with-custom-validation"], + ) + + resource_types_with_custom_validation = cls._args_schema.resource_type_registrations.Element.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrArg() + + common_api_versions = cls._args_schema.resource_type_registrations.Element.common_api_versions + common_api_versions.Element = AAZStrArg() + + disallowed_action_verbs = cls._args_schema.resource_type_registrations.Element.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrArg() + + disallowed_end_user_operations = cls._args_schema.resource_type_registrations.Element.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrArg() + + dsts_configuration = cls._args_schema.resource_type_registrations.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + required=True, + ) + + endpoints = cls._args_schema.resource_type_registrations.Element.endpoints + endpoints.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.endpoints.Element + _element.api_version = AAZStrArg( + options=["api-version"], + help="Api version.", + ) + _element.api_versions = AAZListArg( + options=["api-versions"], + ) + _element.data_boundary = AAZStrArg( + options=["data-boundary"], + enum={"EU": "EU", "Global": "Global", "NotDefined": "NotDefined", "US": "US"}, + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + ) + _element.enabled = AAZBoolArg( + options=["enabled"], + ) + _element.endpoint_type = AAZStrArg( + options=["endpoint-type"], + enum={"Canary": "Canary", "NotSpecified": "NotSpecified", "Production": "Production", "TestInProduction": "TestInProduction"}, + ) + _element.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + ) + _element.extensions = AAZListArg( + options=["extensions"], + ) + _element.features_rule = AAZObjectArg( + options=["features-rule"], + ) + _element.kind = AAZStrArg( + options=["kind"], + help="Resource type endpoint kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + default="Managed", + enum={"Direct": "Direct", "Managed": "Managed"}, + ) + _element.locations = AAZListArg( + options=["locations"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + _element.sku_link = AAZStrArg( + options=["sku-link"], + ) + _element.timeout = AAZDurationArg( + options=["timeout"], + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + ) + cls._build_args_token_auth_configuration_create(_element.token_auth_configuration) + _element.zones = AAZListArg( + options=["zones"], + help="List of zones.", + ) + + api_versions = cls._args_schema.resource_type_registrations.Element.endpoints.Element.api_versions + api_versions.Element = AAZStrArg() + + dsts_configuration = cls._args_schema.resource_type_registrations.Element.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + required=True, + ) + + extensions = cls._args_schema.resource_type_registrations.Element.endpoints.Element.extensions + extensions.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + ) + _element.extension_categories = AAZListArg( + options=["extension-categories"], + ) + _element.timeout = AAZDurationArg( + options=["timeout"], + ) + + extension_categories = cls._args_schema.resource_type_registrations.Element.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrArg( + enum={"BestMatchOperationBegin": "BestMatchOperationBegin", "NotSpecified": "NotSpecified", "ResourceCreationBegin": "ResourceCreationBegin", "ResourceCreationCompleted": "ResourceCreationCompleted", "ResourceCreationValidate": "ResourceCreationValidate", "ResourceDeletionBegin": "ResourceDeletionBegin", "ResourceDeletionCompleted": "ResourceDeletionCompleted", "ResourceDeletionValidate": "ResourceDeletionValidate", "ResourceMoveBegin": "ResourceMoveBegin", "ResourceMoveCompleted": "ResourceMoveCompleted", "ResourcePatchBegin": "ResourcePatchBegin", "ResourcePatchCompleted": "ResourcePatchCompleted", "ResourcePatchValidate": "ResourcePatchValidate", "ResourcePostAction": "ResourcePostAction", "ResourceReadBegin": "ResourceReadBegin", "ResourceReadValidate": "ResourceReadValidate", "SubscriptionLifecycleNotification": "SubscriptionLifecycleNotification", "SubscriptionLifecycleNotificationDeletion": "SubscriptionLifecycleNotificationDeletion"}, + ) + + features_rule = cls._args_schema.resource_type_registrations.Element.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + required=True, + enum={"All": "All", "Any": "Any"}, + ) + + locations = cls._args_schema.resource_type_registrations.Element.endpoints.Element.locations + locations.Element = AAZStrArg() + + required_features = cls._args_schema.resource_type_registrations.Element.endpoints.Element.required_features + required_features.Element = AAZStrArg() + + zones = cls._args_schema.resource_type_registrations.Element.endpoints.Element.zones + zones.Element = AAZStrArg() + + extended_locations = cls._args_schema.resource_type_registrations.Element.extended_locations + extended_locations.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.extended_locations.Element + _element.supported_policy = AAZStrArg( + options=["supported-policy"], + ) + _element.type = AAZStrArg( + options=["type"], + ) + + extension_options = cls._args_schema.resource_type_registrations.Element.extension_options + extension_options.resource_creation_begin = AAZObjectArg( + options=["resource-creation-begin"], + ) + + resource_creation_begin = cls._args_schema.resource_type_registrations.Element.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListArg( + options=["request"], + ) + resource_creation_begin.response = AAZListArg( + options=["response"], + ) + + request = cls._args_schema.resource_type_registrations.Element.extension_options.resource_creation_begin.request + request.Element = AAZStrArg( + enum={"DoNotMergeExistingReadOnlyAndSecretProperties": "DoNotMergeExistingReadOnlyAndSecretProperties", "IncludeInternalMetadata": "IncludeInternalMetadata", "NotSpecified": "NotSpecified"}, + ) + + response = cls._args_schema.resource_type_registrations.Element.extension_options.resource_creation_begin.response + response.Element = AAZStrArg( + enum={"DoNotMergeExistingReadOnlyAndSecretProperties": "DoNotMergeExistingReadOnlyAndSecretProperties", "IncludeInternalMetadata": "IncludeInternalMetadata", "NotSpecified": "NotSpecified"}, + ) + + features_rule = cls._args_schema.resource_type_registrations.Element.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + required=True, + enum={"All": "All", "Any": "Any"}, + ) + + identity_management = cls._args_schema.resource_type_registrations.Element.identity_management + identity_management.application_id = AAZStrArg( + options=["application-id"], + ) + identity_management.application_ids = AAZListArg( + options=["application-ids"], + ) + identity_management.delegation_app_ids = AAZListArg( + options=["delegation-app-ids"], + ) + identity_management.type = AAZStrArg( + options=["type"], + enum={"Actor": "Actor", "DelegatedResourceIdentity": "DelegatedResourceIdentity", "NotSpecified": "NotSpecified", "SystemAssigned": "SystemAssigned", "UserAssigned": "UserAssigned"}, + ) + + application_ids = cls._args_schema.resource_type_registrations.Element.identity_management.application_ids + application_ids.Element = AAZStrArg() + + delegation_app_ids = cls._args_schema.resource_type_registrations.Element.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrArg() + + legacy_names = cls._args_schema.resource_type_registrations.Element.legacy_names + legacy_names.Element = AAZStrArg() + + legacy_policy = cls._args_schema.resource_type_registrations.Element.legacy_policy + legacy_policy.disallowed_conditions = AAZListArg( + options=["disallowed-conditions"], + ) + legacy_policy.disallowed_legacy_operations = AAZListArg( + options=["disallowed-legacy-operations"], + ) + + disallowed_conditions = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListArg( + options=["disallowed-legacy-operations"], + ) + _element.feature = AAZStrArg( + options=["feature"], + help="Feature string.", + ) + + disallowed_legacy_operations = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrArg( + enum={"Action": "Action", "AzureAsyncOperationWaiting": "AzureAsyncOperationWaiting", "Create": "Create", "Delete": "Delete", "DeploymentCleanup": "DeploymentCleanup", "EvaluateDeploymentOutput": "EvaluateDeploymentOutput", "NotSpecified": "NotSpecified", "Read": "Read", "ResourceCacheWaiting": "ResourceCacheWaiting", "Waiting": "Waiting"}, + ) + + disallowed_legacy_operations = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrArg( + enum={"Action": "Action", "AzureAsyncOperationWaiting": "AzureAsyncOperationWaiting", "Create": "Create", "Delete": "Delete", "DeploymentCleanup": "DeploymentCleanup", "EvaluateDeploymentOutput": "EvaluateDeploymentOutput", "NotSpecified": "NotSpecified", "Read": "Read", "ResourceCacheWaiting": "ResourceCacheWaiting", "Waiting": "Waiting"}, + ) + + linked_access_checks = cls._args_schema.resource_type_registrations.Element.linked_access_checks + linked_access_checks.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.linked_access_checks.Element + _element.action_name = AAZStrArg( + options=["action-name"], + ) + _element.linked_action = AAZStrArg( + options=["linked-action"], + ) + _element.linked_action_verb = AAZStrArg( + options=["linked-action-verb"], + ) + _element.linked_property = AAZStrArg( + options=["linked-property"], + ) + _element.linked_type = AAZStrArg( + options=["linked-type"], + ) + + linked_notification_rules = cls._args_schema.resource_type_registrations.Element.linked_notification_rules + linked_notification_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element + _element.actions = AAZListArg( + options=["actions"], + ) + _element.actions_on_failed_operation = AAZListArg( + options=["actions-on-failed-operation"], + ) + _element.fast_path_actions = AAZListArg( + options=["fast-path-actions"], + ) + _element.fast_path_actions_on_failed_operation = AAZListArg( + options=["fast-path-actions-on-failed-operation"], + ) + _element.linked_notification_timeout = AAZDurationArg( + options=["linked-notification-timeout"], + ) + + actions = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.actions + actions.Element = AAZStrArg() + + actions_on_failed_operation = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrArg() + + fast_path_actions = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrArg() + + fast_path_actions_on_failed_operation = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrArg() + + linked_operation_rules = cls._args_schema.resource_type_registrations.Element.linked_operation_rules + linked_operation_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.linked_operation_rules.Element + _element.depends_on_types = AAZListArg( + options=["depends-on-types"], + help="Depends on types.", + ) + _element.linked_action = AAZStrArg( + options=["linked-action"], + required=True, + enum={"Blocked": "Blocked", "Enabled": "Enabled", "NotSpecified": "NotSpecified", "Validate": "Validate"}, + ) + _element.linked_operation = AAZStrArg( + options=["linked-operation"], + required=True, + enum={"CrossResourceGroupResourceMove": "CrossResourceGroupResourceMove", "CrossSubscriptionResourceMove": "CrossSubscriptionResourceMove", "None": "None"}, + ) + + depends_on_types = cls._args_schema.resource_type_registrations.Element.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrArg() + + logging_rules = cls._args_schema.resource_type_registrations.Element.logging_rules + logging_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.logging_rules.Element + _element.action = AAZStrArg( + options=["action"], + required=True, + ) + _element.detail_level = AAZStrArg( + options=["detail-level"], + required=True, + enum={"Body": "Body", "None": "None"}, + ) + _element.direction = AAZStrArg( + options=["direction"], + required=True, + enum={"None": "None", "Request": "Request", "Response": "Response"}, + ) + _element.hidden_property_paths = AAZObjectArg( + options=["hidden-property-paths"], + ) + + hidden_property_paths = cls._args_schema.resource_type_registrations.Element.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListArg( + options=["hidden-paths-on-request"], + ) + hidden_property_paths.hidden_paths_on_response = AAZListArg( + options=["hidden-paths-on-response"], + ) + + hidden_paths_on_request = cls._args_schema.resource_type_registrations.Element.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrArg() + + hidden_paths_on_response = cls._args_schema.resource_type_registrations.Element.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrArg() + + managed_resource_group_configuration = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListArg( + options=["application-ids"], + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectArg( + options=["deny-assignment-configuration"], + ) + managed_resource_group_configuration.enabled = AAZBoolArg( + options=["enabled"], + ) + managed_resource_group_configuration.resource_group_location_override = AAZStrArg( + options=["resource-group-location-override"], + ) + + application_ids = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrArg() + + deny_assignment_configuration = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolArg( + options=["enabled"], + ) + deny_assignment_configuration.not_actions = AAZListArg( + options=["not-actions"], + ) + + not_actions = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrArg() + + management = cls._args_schema.resource_type_registrations.Element.management + management.authorization_owners = AAZListArg( + options=["authorization-owners"], + ) + management.canary_manifest_owners = AAZListArg( + options=["canary-manifest-owners"], + help="List of manifest owners for canary.", + ) + management.error_response_message_options = AAZObjectArg( + options=["error-response-message-options"], + help="Options for error response messages.", + ) + management.expedited_rollout_metadata = AAZObjectArg( + options=["expedited-rollout-metadata"], + help="Metadata for expedited rollout.", + ) + management.expedited_rollout_submitters = AAZListArg( + options=["expedited-rollout-submitters"], + help="List of expedited rollout submitters.", + ) + management.incident_contact_email = AAZStrArg( + options=["incident-contact-email"], + ) + management.incident_routing_service = AAZStrArg( + options=["incident-routing-service"], + ) + management.incident_routing_team = AAZStrArg( + options=["incident-routing-team"], + ) + management.manifest_owners = AAZListArg( + options=["manifest-owners"], + ) + management.pc_code = AAZStrArg( + options=["pc-code"], + help="The profit center code for the subscription.", + ) + management.profit_center_program_id = AAZStrArg( + options=["profit-center-program-id"], + help="The profit center program id for the subscription.", + ) + management.resource_access_policy = AAZStrArg( + options=["resource-access-policy"], + enum={"AcisActionAllowed": "AcisActionAllowed", "AcisReadAllowed": "AcisReadAllowed", "NotSpecified": "NotSpecified"}, + ) + management.resource_access_roles = AAZListArg( + options=["resource-access-roles"], + ) + management.schema_owners = AAZListArg( + options=["schema-owners"], + ) + management.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + ) + + authorization_owners = cls._args_schema.resource_type_registrations.Element.management.authorization_owners + authorization_owners.Element = AAZStrArg() + + canary_manifest_owners = cls._args_schema.resource_type_registrations.Element.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrArg() + + error_response_message_options = cls._args_schema.resource_type_registrations.Element.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrArg( + options=["server-failure-response-message-type"], + help="Type of server failure response message.", + enum={"NotSpecified": "NotSpecified", "OutageReporting": "OutageReporting"}, + ) + + expedited_rollout_metadata = cls._args_schema.resource_type_registrations.Element.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolArg( + options=["enabled"], + help="Expedited rollout enabled?", + ) + expedited_rollout_metadata.expedited_rollout_intent = AAZStrArg( + options=["expedited-rollout-intent"], + help="Expedited rollout intent.", + enum={"Hotfix": "Hotfix", "NotSpecified": "NotSpecified"}, + ) + + expedited_rollout_submitters = cls._args_schema.resource_type_registrations.Element.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrArg() + + manifest_owners = cls._args_schema.resource_type_registrations.Element.management.manifest_owners + manifest_owners.Element = AAZStrArg() + + resource_access_roles = cls._args_schema.resource_type_registrations.Element.management.resource_access_roles + resource_access_roles.Element = AAZObjectArg() + cls._build_args_resource_access_role_create(resource_access_roles.Element) + + schema_owners = cls._args_schema.resource_type_registrations.Element.management.schema_owners + schema_owners.Element = AAZStrArg() + + service_tree_infos = cls._args_schema.resource_type_registrations.Element.management.service_tree_infos + service_tree_infos.Element = AAZObjectArg() + cls._build_args_service_tree_info_create(service_tree_infos.Element) + + marketplace_options = cls._args_schema.resource_type_registrations.Element.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolArg( + options=["add-on-plan-conversion-allowed"], + help="Add-on plan conversion allowed.", + ) + + metadata = cls._args_schema.resource_type_registrations.Element.metadata + metadata.Element = AAZFreeFormDictArg( + blank={}, + ) + + on_behalf_of_tokens = cls._args_schema.resource_type_registrations.Element.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrArg( + options=["action-name"], + ) + on_behalf_of_tokens.life_time = AAZStrArg( + options=["life-time"], + ) + + open_api_configuration = cls._args_schema.resource_type_registrations.Element.open_api_configuration + open_api_configuration.validation = AAZObjectArg( + options=["validation"], + ) + + validation = cls._args_schema.resource_type_registrations.Element.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolArg( + options=["allow-noncompliant-collection-response"], + help="Indicates whether a non compliance response is allowed for a LIST call", + ) + + private_endpoint_configuration = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListArg( + options=["group-connectivity-information"], + help="The list of group connectivity information.", + required=True, + ) + private_endpoint_configuration.min_api_version = AAZStrArg( + options=["min-api-version"], + help="The first api version that support private endpoint.", + required=True, + ) + + group_connectivity_information = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrArg( + options=["group-id"], + help="The group id.", + required=True, + ) + _element.redirect_map_id = AAZStrArg( + options=["redirect-map-id"], + help="The redirect map id.", + ) + _element.required_members = AAZListArg( + options=["required-members"], + help="List of required members for the group id.", + required=True, + ) + _element.required_zone_names = AAZListArg( + options=["required-zone-names"], + help="List of required zone names for the group id.", + required=True, + ) + + required_members = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrArg() + + required_zone_names = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrArg() + + quota_rule = cls._args_schema.resource_type_registrations.Element.quota_rule + quota_rule.location_rules = AAZListArg( + options=["location-rules"], + ) + quota_rule.quota_policy = AAZStrArg( + options=["quota-policy"], + help="Quota policy.", + enum={"Default": "Default", "None": "None", "Restricted": "Restricted"}, + ) + quota_rule.required_features = AAZListArg( + options=["required-features"], + ) + + location_rules = cls._args_schema.resource_type_registrations.Element.quota_rule.location_rules + location_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.quota_rule.location_rules.Element + _element.location = AAZStrArg( + options=["location"], + ) + _element.policy = AAZStrArg( + options=["policy"], + help="Quota policy.", + enum={"Default": "Default", "None": "None", "Restricted": "Restricted"}, + ) + _element.quota_id = AAZStrArg( + options=["quota-id"], + ) + + required_features = cls._args_schema.resource_type_registrations.Element.quota_rule.required_features + required_features.Element = AAZStrArg() + + request_header_options = cls._args_schema.resource_type_registrations.Element.request_header_options + request_header_options.opt_in_headers = AAZStrArg( + options=["opt-in-headers"], + enum={"ClientGroupMembership": "ClientGroupMembership", "ClientPrincipalNameEncoded": "ClientPrincipalNameEncoded", "MSIResourceIdEncoded": "MSIResourceIdEncoded", "ManagementGroupAncestorsEncoded": "ManagementGroupAncestorsEncoded", "NotSpecified": "NotSpecified", "PrivateLinkId": "PrivateLinkId", "PrivateLinkResourceId": "PrivateLinkResourceId", "PrivateLinkVnetTrafficTag": "PrivateLinkVnetTrafficTag", "ResourceGroupLocation": "ResourceGroupLocation", "SignedAuxiliaryTokens": "SignedAuxiliaryTokens", "SignedUserToken": "SignedUserToken", "UnboundedClientGroupMembership": "UnboundedClientGroupMembership"}, + ) + request_header_options.opt_out_headers = AAZStrArg( + options=["opt-out-headers"], + enum={"NotSpecified": "NotSpecified", "SystemDataCreatedByLastModifiedBy": "SystemDataCreatedByLastModifiedBy"}, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.required_features + required_features.Element = AAZStrArg() + + resource_cache = cls._args_schema.resource_type_registrations.Element.resource_cache + resource_cache.enable_resource_cache = AAZBoolArg( + options=["enable-resource-cache"], + help="Enable resource cache.", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrArg( + options=["resource-cache-expiration-timespan"], + help="Resource cache expiration timespan.", + ) + + resource_concurrency_control_options = cls._args_schema.resource_type_registrations.Element.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.resource_concurrency_control_options.Element + _element.policy = AAZStrArg( + options=["policy"], + enum={"NotSpecified": "NotSpecified", "SynchronizeBeginExtension": "SynchronizeBeginExtension"}, + ) + + resource_graph_configuration = cls._args_schema.resource_type_registrations.Element.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrArg( + options=["api-version"], + ) + resource_graph_configuration.enabled = AAZBoolArg( + options=["enabled"], + ) + + resource_management_options = cls._args_schema.resource_type_registrations.Element.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectArg( + options=["batch-provisioning-support"], + help="Batch provisioning support.", + ) + resource_management_options.delete_dependencies = AAZListArg( + options=["delete-dependencies"], + help="Delete dependencies.", + ) + resource_management_options.nested_provisioning_support = AAZObjectArg( + options=["nested-provisioning-support"], + help="Nested provisioning support.", + ) + + batch_provisioning_support = cls._args_schema.resource_type_registrations.Element.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrArg( + options=["supported-operations"], + help="Supported operations.", + enum={"Delete": "Delete", "Get": "Get", "NotSpecified": "NotSpecified"}, + ) + + delete_dependencies = cls._args_schema.resource_type_registrations.Element.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrArg( + options=["linked-property"], + help="Linked property.", + ) + _element.linked_type = AAZStrArg( + options=["linked-type"], + help="Linked type.", + ) + _element.required_features = AAZListArg( + options=["required-features"], + help="Required features.", + ) + + required_features = cls._args_schema.resource_type_registrations.Element.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrArg() + + nested_provisioning_support = cls._args_schema.resource_type_registrations.Element.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrArg( + options=["minimum-api-version"], + help="Minimum API version.", + ) + + resource_move_policy = cls._args_schema.resource_type_registrations.Element.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolArg( + options=["cross-resource-group-move-enabled"], + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolArg( + options=["cross-subscription-move-enabled"], + ) + resource_move_policy.validation_required = AAZBoolArg( + options=["validation-required"], + ) + + resource_query_management = cls._args_schema.resource_type_registrations.Element.resource_query_management + resource_query_management.filter_option = AAZStrArg( + options=["filter-option"], + help="Filter option.", + enum={"EnableSubscriptionFilterOnTenant": "EnableSubscriptionFilterOnTenant", "NotSpecified": "NotSpecified"}, + ) + + resource_type_common_attribute_management = cls._args_schema.resource_type_registrations.Element.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrArg( + options=["common-api-versions-merge-mode"], + help="Common api versions merge mode.", + enum={"Merge": "Merge", "Overwrite": "Overwrite"}, + ) + + routing_rule = cls._args_schema.resource_type_registrations.Element.routing_rule + routing_rule.host_resource_type = AAZStrArg( + options=["host-resource-type"], + help="Hosted resource type.", + ) + + service_tree_infos = cls._args_schema.resource_type_registrations.Element.service_tree_infos + service_tree_infos.Element = AAZObjectArg() + cls._build_args_service_tree_info_create(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._args_schema.resource_type_registrations.Element.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZDurationArg( + options=["soft-delete-ttl"], + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListArg( + options=["subscription-state-override-actions"], + ) + + subscription_state_override_actions = cls._args_schema.resource_type_registrations.Element.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectArg() + cls._build_args_subscription_state_override_action_create(subscription_state_override_actions.Element) + + subscription_state_rules = cls._args_schema.resource_type_registrations.Element.subscription_state_rules + subscription_state_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.subscription_state_rules.Element + _element.allowed_actions = AAZListArg( + options=["allowed-actions"], + ) + _element.state = AAZStrArg( + options=["state"], + enum={"Deleted": "Deleted", "Disabled": "Disabled", "Enabled": "Enabled", "NotDefined": "NotDefined", "PastDue": "PastDue", "Warned": "Warned"}, + ) + + allowed_actions = cls._args_schema.resource_type_registrations.Element.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrArg() + + swagger_specifications = cls._args_schema.resource_type_registrations.Element.swagger_specifications + swagger_specifications.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.swagger_specifications.Element + _element.api_versions = AAZListArg( + options=["api-versions"], + ) + _element.swagger_spec_folder_uri = AAZStrArg( + options=["swagger-spec-folder-uri"], + ) + + api_versions = cls._args_schema.resource_type_registrations.Element.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrArg() + + template_deployment_options = cls._args_schema.resource_type_registrations.Element.template_deployment_options + template_deployment_options.preflight_options = AAZListArg( + options=["preflight-options"], + ) + template_deployment_options.preflight_supported = AAZBoolArg( + options=["preflight-supported"], + ) + + preflight_options = cls._args_schema.resource_type_registrations.Element.template_deployment_options.preflight_options + preflight_options.Element = AAZStrArg( + enum={"ContinueDeploymentOnFailure": "ContinueDeploymentOnFailure", "DefaultValidationOnly": "DefaultValidationOnly", "None": "None"}, + ) + + template_deployment_policy = cls._args_schema.resource_type_registrations.Element.template_deployment_policy + template_deployment_policy.capabilities = AAZStrArg( + options=["capabilities"], + required=True, + enum={"Default": "Default", "Preflight": "Preflight"}, + ) + template_deployment_policy.preflight_notifications = AAZStrArg( + options=["preflight-notifications"], + enum={"None": "None", "UnregisteredSubscriptions": "UnregisteredSubscriptions"}, + ) + template_deployment_policy.preflight_options = AAZStrArg( + options=["preflight-options"], + required=True, + enum={"DeploymentRequests": "DeploymentRequests", "None": "None", "RegisteredOnly": "RegisteredOnly", "TestOnly": "TestOnly", "ValidationRequests": "ValidationRequests"}, + ) + + throttling_rules = cls._args_schema.resource_type_registrations.Element.throttling_rules + throttling_rules.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element + _element.action = AAZStrArg( + options=["action"], + required=True, + ) + _element.application_id = AAZListArg( + options=["application-id"], + ) + _element.metrics = AAZListArg( + options=["metrics"], + required=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + + application_id = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.application_id + application_id.Element = AAZStrArg() + + metrics = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.metrics + metrics.Element = AAZObjectArg() + + _element = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.metrics.Element + _element.interval = AAZDurationArg( + options=["interval"], + ) + _element.limit = AAZIntArg( + options=["limit"], + required=True, + ) + _element.type = AAZStrArg( + options=["type"], + required=True, + enum={"NotSpecified": "NotSpecified", "NumberOfRequests": "NumberOfRequests", "NumberOfResources": "NumberOfResources"}, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.required_features + required_features.Element = AAZStrArg() + + rest_of_the_world_group_one = cls._args_schema.rest_of_the_world_group_one + rest_of_the_world_group_one.regions = AAZListArg( + options=["regions"], + ) + rest_of_the_world_group_one.wait_duration = AAZDurationArg( + options=["wait-duration"], + ) + + regions = cls._args_schema.rest_of_the_world_group_one.regions + regions.Element = AAZStrArg() + + rest_of_the_world_group_two = cls._args_schema.rest_of_the_world_group_two + rest_of_the_world_group_two.regions = AAZListArg( + options=["regions"], + ) + rest_of_the_world_group_two.wait_duration = AAZDurationArg( + options=["wait-duration"], + ) + + regions = cls._args_schema.rest_of_the_world_group_two.regions + regions.Element = AAZStrArg() + return cls._args_schema + + _args_extended_error_info_create = None + + @classmethod + def _build_args_extended_error_info_create(cls, _schema): + if cls._args_extended_error_info_create is not None: + _schema.additional_info = cls._args_extended_error_info_create.additional_info + _schema.code = cls._args_extended_error_info_create.code + _schema.details = cls._args_extended_error_info_create.details + _schema.message = cls._args_extended_error_info_create.message + _schema.target = cls._args_extended_error_info_create.target + return + + cls._args_extended_error_info_create = AAZObjectArg() + + extended_error_info_create = cls._args_extended_error_info_create + extended_error_info_create.additional_info = AAZListArg( + options=["additional-info"], + help="The additional error information.", + ) + extended_error_info_create.code = AAZStrArg( + options=["code"], + help="The error code.", + ) + extended_error_info_create.details = AAZListArg( + options=["details"], + help="The error details.", + ) + extended_error_info_create.message = AAZStrArg( + options=["message"], + help="The error message.", + ) + extended_error_info_create.target = AAZStrArg( + options=["target"], + help="The target of the error.", + ) + + additional_info = cls._args_extended_error_info_create.additional_info + additional_info.Element = AAZObjectArg() + + _element = cls._args_extended_error_info_create.additional_info.Element + _element.type = AAZStrArg( + options=["type"], + help="The type of the error.", + required=True, + ) + + details = cls._args_extended_error_info_create.details + details.Element = AAZObjectArg() + cls._build_args_extended_error_info_create(details.Element) + + _schema.additional_info = cls._args_extended_error_info_create.additional_info + _schema.code = cls._args_extended_error_info_create.code + _schema.details = cls._args_extended_error_info_create.details + _schema.message = cls._args_extended_error_info_create.message + _schema.target = cls._args_extended_error_info_create.target + + _args_notifications_create = None + + @classmethod + def _build_args_notifications_create(cls, _schema): + if cls._args_notifications_create is not None: + _schema.Element = cls._args_notifications_create.Element + return + + cls._args_notifications_create = AAZListArg() + + notifications_create = cls._args_notifications_create + notifications_create.Element = AAZObjectArg() + + _element = cls._args_notifications_create.Element + _element.notification_type = AAZStrArg( + options=["notification-type"], + enum={"SubscriptionNotification": "SubscriptionNotification", "Unspecified": "Unspecified"}, + ) + _element.skip_notifications = AAZStrArg( + options=["skip-notifications"], + enum={"Disabled": "Disabled", "Enabled": "Enabled", "Unspecified": "Unspecified"}, + ) + + _schema.Element = cls._args_notifications_create.Element + + _args_resource_access_role_create = None + + @classmethod + def _build_args_resource_access_role_create(cls, _schema): + if cls._args_resource_access_role_create is not None: + _schema.actions = cls._args_resource_access_role_create.actions + _schema.allowed_group_claims = cls._args_resource_access_role_create.allowed_group_claims + return + + cls._args_resource_access_role_create = AAZObjectArg() + + resource_access_role_create = cls._args_resource_access_role_create + resource_access_role_create.actions = AAZListArg( + options=["actions"], + ) + resource_access_role_create.allowed_group_claims = AAZListArg( + options=["allowed-group-claims"], + ) + + actions = cls._args_resource_access_role_create.actions + actions.Element = AAZStrArg() + + allowed_group_claims = cls._args_resource_access_role_create.allowed_group_claims + allowed_group_claims.Element = AAZStrArg() + + _schema.actions = cls._args_resource_access_role_create.actions + _schema.allowed_group_claims = cls._args_resource_access_role_create.allowed_group_claims + + _args_resource_provider_authorization_rules_create = None + + @classmethod + def _build_args_resource_provider_authorization_rules_create(cls, _schema): + if cls._args_resource_provider_authorization_rules_create is not None: + _schema.async_operation_polling_rules = cls._args_resource_provider_authorization_rules_create.async_operation_polling_rules + return + + cls._args_resource_provider_authorization_rules_create = AAZObjectArg() + + resource_provider_authorization_rules_create = cls._args_resource_provider_authorization_rules_create + resource_provider_authorization_rules_create.async_operation_polling_rules = AAZObjectArg( + options=["async-operation-polling-rules"], + ) + + async_operation_polling_rules = cls._args_resource_provider_authorization_rules_create.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrArg( + options=["additional-options"], + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + async_operation_polling_rules.authorization_actions = AAZListArg( + options=["authorization-actions"], + ) + + authorization_actions = cls._args_resource_provider_authorization_rules_create.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrArg() + + _schema.async_operation_polling_rules = cls._args_resource_provider_authorization_rules_create.async_operation_polling_rules + + _args_resource_provider_authorization_create = None + + @classmethod + def _build_args_resource_provider_authorization_create(cls, _schema): + if cls._args_resource_provider_authorization_create is not None: + _schema.allowed_third_party_extensions = cls._args_resource_provider_authorization_create.allowed_third_party_extensions + _schema.application_id = cls._args_resource_provider_authorization_create.application_id + _schema.grouping_tag = cls._args_resource_provider_authorization_create.grouping_tag + _schema.managed_by_authorization = cls._args_resource_provider_authorization_create.managed_by_authorization + _schema.managed_by_role_definition_id = cls._args_resource_provider_authorization_create.managed_by_role_definition_id + _schema.role_definition_id = cls._args_resource_provider_authorization_create.role_definition_id + return + + cls._args_resource_provider_authorization_create = AAZObjectArg() + + resource_provider_authorization_create = cls._args_resource_provider_authorization_create + resource_provider_authorization_create.allowed_third_party_extensions = AAZListArg( + options=["allowed-third-party-extensions"], + ) + resource_provider_authorization_create.application_id = AAZStrArg( + options=["application-id"], + ) + resource_provider_authorization_create.grouping_tag = AAZStrArg( + options=["grouping-tag"], + ) + resource_provider_authorization_create.managed_by_authorization = AAZObjectArg( + options=["managed-by-authorization"], + help="Managed by authorization.", + ) + resource_provider_authorization_create.managed_by_role_definition_id = AAZStrArg( + options=["managed-by-role-definition-id"], + ) + resource_provider_authorization_create.role_definition_id = AAZStrArg( + options=["role-definition-id"], + ) + + allowed_third_party_extensions = cls._args_resource_provider_authorization_create.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectArg() + + _element = cls._args_resource_provider_authorization_create.allowed_third_party_extensions.Element + _element.name = AAZStrArg( + options=["name"], + help="Name of third party extension.", + ) + + managed_by_authorization = cls._args_resource_provider_authorization_create.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListArg( + options=["additional-authorizations"], + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolArg( + options=["allow-managed-by-inheritance"], + help="Indicates whether the managed by resource role definition ID should be inherited.", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrArg( + options=["managed-by-resource-role-definition-id"], + help="The managed by resource role definition ID for the application.", + ) + + additional_authorizations = cls._args_resource_provider_authorization_create.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectArg() + + _element = cls._args_resource_provider_authorization_create.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrArg( + options=["application-id"], + ) + _element.role_definition_id = AAZStrArg( + options=["role-definition-id"], + ) + + _schema.allowed_third_party_extensions = cls._args_resource_provider_authorization_create.allowed_third_party_extensions + _schema.application_id = cls._args_resource_provider_authorization_create.application_id + _schema.grouping_tag = cls._args_resource_provider_authorization_create.grouping_tag + _schema.managed_by_authorization = cls._args_resource_provider_authorization_create.managed_by_authorization + _schema.managed_by_role_definition_id = cls._args_resource_provider_authorization_create.managed_by_role_definition_id + _schema.role_definition_id = cls._args_resource_provider_authorization_create.role_definition_id + + _args_resource_provider_endpoint_create = None + + @classmethod + def _build_args_resource_provider_endpoint_create(cls, _schema): + if cls._args_resource_provider_endpoint_create is not None: + _schema.api_versions = cls._args_resource_provider_endpoint_create.api_versions + _schema.enabled = cls._args_resource_provider_endpoint_create.enabled + _schema.endpoint_type = cls._args_resource_provider_endpoint_create.endpoint_type + _schema.endpoint_uri = cls._args_resource_provider_endpoint_create.endpoint_uri + _schema.features_rule = cls._args_resource_provider_endpoint_create.features_rule + _schema.locations = cls._args_resource_provider_endpoint_create.locations + _schema.required_features = cls._args_resource_provider_endpoint_create.required_features + _schema.sku_link = cls._args_resource_provider_endpoint_create.sku_link + _schema.timeout = cls._args_resource_provider_endpoint_create.timeout + return + + cls._args_resource_provider_endpoint_create = AAZObjectArg() + + resource_provider_endpoint_create = cls._args_resource_provider_endpoint_create + resource_provider_endpoint_create.api_versions = AAZListArg( + options=["api-versions"], + ) + resource_provider_endpoint_create.enabled = AAZBoolArg( + options=["enabled"], + ) + resource_provider_endpoint_create.endpoint_type = AAZStrArg( + options=["endpoint-type"], + enum={"Canary": "Canary", "NotSpecified": "NotSpecified", "Production": "Production", "TestInProduction": "TestInProduction"}, + ) + resource_provider_endpoint_create.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + ) + resource_provider_endpoint_create.features_rule = AAZObjectArg( + options=["features-rule"], + ) + resource_provider_endpoint_create.locations = AAZListArg( + options=["locations"], + ) + resource_provider_endpoint_create.required_features = AAZListArg( + options=["required-features"], + ) + resource_provider_endpoint_create.sku_link = AAZStrArg( + options=["sku-link"], + ) + resource_provider_endpoint_create.timeout = AAZDurationArg( + options=["timeout"], + ) + + api_versions = cls._args_resource_provider_endpoint_create.api_versions + api_versions.Element = AAZStrArg() + + features_rule = cls._args_resource_provider_endpoint_create.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + required=True, + enum={"All": "All", "Any": "Any"}, + ) + + locations = cls._args_resource_provider_endpoint_create.locations + locations.Element = AAZStrArg() + + required_features = cls._args_resource_provider_endpoint_create.required_features + required_features.Element = AAZStrArg() + + _schema.api_versions = cls._args_resource_provider_endpoint_create.api_versions + _schema.enabled = cls._args_resource_provider_endpoint_create.enabled + _schema.endpoint_type = cls._args_resource_provider_endpoint_create.endpoint_type + _schema.endpoint_uri = cls._args_resource_provider_endpoint_create.endpoint_uri + _schema.features_rule = cls._args_resource_provider_endpoint_create.features_rule + _schema.locations = cls._args_resource_provider_endpoint_create.locations + _schema.required_features = cls._args_resource_provider_endpoint_create.required_features + _schema.sku_link = cls._args_resource_provider_endpoint_create.sku_link + _schema.timeout = cls._args_resource_provider_endpoint_create.timeout + + _args_service_tree_info_create = None + + @classmethod + def _build_args_service_tree_info_create(cls, _schema): + if cls._args_service_tree_info_create is not None: + _schema.component_id = cls._args_service_tree_info_create.component_id + _schema.readiness = cls._args_service_tree_info_create.readiness + _schema.service_id = cls._args_service_tree_info_create.service_id + return + + cls._args_service_tree_info_create = AAZObjectArg() + + service_tree_info_create = cls._args_service_tree_info_create + service_tree_info_create.component_id = AAZStrArg( + options=["component-id"], + ) + service_tree_info_create.readiness = AAZStrArg( + options=["readiness"], + enum={"ClosingDown": "ClosingDown", "Deprecated": "Deprecated", "GA": "GA", "InDevelopment": "InDevelopment", "InternalOnly": "InternalOnly", "PrivatePreview": "PrivatePreview", "PublicPreview": "PublicPreview", "RemovedFromARM": "RemovedFromARM", "Retired": "Retired"}, + ) + service_tree_info_create.service_id = AAZStrArg( + options=["service-id"], + ) + + _schema.component_id = cls._args_service_tree_info_create.component_id + _schema.readiness = cls._args_service_tree_info_create.readiness + _schema.service_id = cls._args_service_tree_info_create.service_id + + _args_subscription_state_override_action_create = None + + @classmethod + def _build_args_subscription_state_override_action_create(cls, _schema): + if cls._args_subscription_state_override_action_create is not None: + _schema.action = cls._args_subscription_state_override_action_create.action + _schema.state = cls._args_subscription_state_override_action_create.state + return + + cls._args_subscription_state_override_action_create = AAZObjectArg() + + subscription_state_override_action_create = cls._args_subscription_state_override_action_create + subscription_state_override_action_create.action = AAZStrArg( + options=["action"], + required=True, + enum={"BillingCancellation": "BillingCancellation", "DeleteAllResources": "DeleteAllResources", "NoOp": "NoOp", "NotDefined": "NotDefined", "SoftDeleteAllResources": "SoftDeleteAllResources", "UndoSoftDelete": "UndoSoftDelete"}, + ) + subscription_state_override_action_create.state = AAZStrArg( + options=["state"], + required=True, + enum={"Deleted": "Deleted", "Registered": "Registered", "Suspended": "Suspended", "SuspendedToDeleted": "SuspendedToDeleted", "SuspendedToRegistered": "SuspendedToRegistered", "SuspendedToUnregistered": "SuspendedToUnregistered", "SuspendedToWarned": "SuspendedToWarned", "Unregistered": "Unregistered", "Warned": "Warned", "WarnedToDeleted": "WarnedToDeleted", "WarnedToRegistered": "WarnedToRegistered", "WarnedToSuspended": "WarnedToSuspended", "WarnedToUnregistered": "WarnedToUnregistered"}, + ) + + _schema.action = cls._args_subscription_state_override_action_create.action + _schema.state = cls._args_subscription_state_override_action_create.state + + _args_token_auth_configuration_create = None + + @classmethod + def _build_args_token_auth_configuration_create(cls, _schema): + if cls._args_token_auth_configuration_create is not None: + _schema.authentication_scheme = cls._args_token_auth_configuration_create.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_create.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_create.signed_request_scope + return + + cls._args_token_auth_configuration_create = AAZObjectArg() + + token_auth_configuration_create = cls._args_token_auth_configuration_create + token_auth_configuration_create.authentication_scheme = AAZStrArg( + options=["authentication-scheme"], + enum={"Bearer": "Bearer", "PoP": "PoP"}, + ) + token_auth_configuration_create.disable_certificate_authentication_fallback = AAZBoolArg( + options=["disable-certificate-authentication-fallback"], + ) + token_auth_configuration_create.signed_request_scope = AAZStrArg( + options=["signed-request-scope"], + enum={"Endpoint": "Endpoint", "ResourceUri": "ResourceUri"}, + ) + + _schema.authentication_scheme = cls._args_token_auth_configuration_create.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_create.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_create.signed_request_scope + + def _execute_operations(self): + self.pre_operations() + yield self.DefaultRolloutsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class DefaultRolloutsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("specification", AAZObjectType) + properties.set_prop("status", AAZObjectType, ".status") + + specification = _builder.get(".properties.specification") + if specification is not None: + specification.set_prop("autoProvisionConfig", AAZObjectType, ".auto_provision_config") + specification.set_prop("canary", AAZObjectType, ".canary") + specification.set_prop("expeditedRollout", AAZObjectType, ".expedited_rollout") + specification.set_prop("highTraffic", AAZObjectType, ".high_traffic") + specification.set_prop("lowTraffic", AAZObjectType, ".low_traffic") + specification.set_prop("manifestCheckinSpecification", AAZObjectType) + specification.set_prop("mediumTraffic", AAZObjectType, ".medium_traffic") + specification.set_prop("providerRegistration", AAZObjectType, ".provider_registration") + specification.set_prop("resourceTypeRegistrations", AAZListType, ".resource_type_registrations") + specification.set_prop("restOfTheWorldGroupOne", AAZObjectType, ".rest_of_the_world_group_one") + specification.set_prop("restOfTheWorldGroupTwo", AAZObjectType, ".rest_of_the_world_group_two") + + auto_provision_config = _builder.get(".properties.specification.autoProvisionConfig") + if auto_provision_config is not None: + auto_provision_config.set_prop("resourceGraph", AAZBoolType, ".resource_graph") + auto_provision_config.set_prop("storage", AAZBoolType, ".storage") + + canary = _builder.get(".properties.specification.canary") + if canary is not None: + canary.set_prop("regions", AAZListType, ".regions") + canary.set_prop("skipRegions", AAZListType, ".skip_regions") + + regions = _builder.get(".properties.specification.canary.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + skip_regions = _builder.get(".properties.specification.canary.skipRegions") + if skip_regions is not None: + skip_regions.set_elements(AAZStrType, ".") + + expedited_rollout = _builder.get(".properties.specification.expeditedRollout") + if expedited_rollout is not None: + expedited_rollout.set_prop("enabled", AAZBoolType, ".enabled") + + high_traffic = _builder.get(".properties.specification.highTraffic") + if high_traffic is not None: + high_traffic.set_prop("regions", AAZListType, ".regions") + high_traffic.set_prop("waitDuration", AAZStrType, ".wait_duration") + + regions = _builder.get(".properties.specification.highTraffic.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + low_traffic = _builder.get(".properties.specification.lowTraffic") + if low_traffic is not None: + low_traffic.set_prop("regions", AAZListType, ".regions") + low_traffic.set_prop("waitDuration", AAZStrType, ".wait_duration") + + regions = _builder.get(".properties.specification.lowTraffic.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + manifest_checkin_specification = _builder.get(".properties.specification.manifestCheckinSpecification") + if manifest_checkin_specification is not None: + manifest_checkin_specification.set_prop("manifestCheckinOption", AAZStrType, ".manifest_checkin_option") + manifest_checkin_specification.set_prop("manifestCheckinParams", AAZObjectType, ".manifest_checkin_params") + + manifest_checkin_params = _builder.get(".properties.specification.manifestCheckinSpecification.manifestCheckinParams") + if manifest_checkin_params is not None: + manifest_checkin_params.set_prop("baselineArmManifestLocation", AAZStrType, ".baseline_arm_manifest_location", typ_kwargs={"flags": {"required": True}}) + manifest_checkin_params.set_prop("environment", AAZStrType, ".environment", typ_kwargs={"flags": {"required": True}}) + + medium_traffic = _builder.get(".properties.specification.mediumTraffic") + if medium_traffic is not None: + medium_traffic.set_prop("regions", AAZListType, ".regions") + medium_traffic.set_prop("waitDuration", AAZStrType, ".wait_duration") + + regions = _builder.get(".properties.specification.mediumTraffic.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + provider_registration = _builder.get(".properties.specification.providerRegistration") + if provider_registration is not None: + provider_registration.set_prop("kind", AAZStrType, ".kind") + provider_registration.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties.specification.providerRegistration.properties") + if properties is not None: + properties.set_prop("capabilities", AAZListType, ".capabilities") + properties.set_prop("crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") + properties.set_prop("customManifestVersion", AAZStrType, ".custom_manifest_version") + properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + properties.set_prop("enableTenantLinkedNotification", AAZBoolType, ".enable_tenant_linked_notification", typ_kwargs={"nullable": True}) + properties.set_prop("featuresRule", AAZObjectType, ".features_rule") + properties.set_prop("globalNotificationEndpoints", AAZListType, ".global_notification_endpoints") + properties.set_prop("legacyNamespace", AAZStrType, ".legacy_namespace") + properties.set_prop("legacyRegistrations", AAZListType, ".legacy_registrations") + properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") + properties.set_prop("management", AAZObjectType, ".management") + properties.set_prop("managementGroupGlobalNotificationEndpoints", AAZListType, ".management_group_global_notification_endpoints") + properties.set_prop("metadata", AAZFreeFormDictType, ".metadata") + properties.set_prop("namespace", AAZStrType, ".namespace") + properties.set_prop("notificationOptions", AAZStrType, ".notification_options") + properties.set_prop("notificationSettings", AAZObjectType, ".notification_settings") + _CreateHelper._build_schema_notifications_create(properties.set_prop("notifications", AAZListType, ".notifications")) + properties.set_prop("optionalFeatures", AAZListType, ".optional_features") + properties.set_prop("privateResourceProviderConfiguration", AAZObjectType, ".private_resource_provider_configuration") + properties.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") + properties.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") + properties.set_prop("providerHubMetadata", AAZObjectType, ".provider_hub_metadata") + properties.set_prop("providerType", AAZStrType, ".provider_type") + properties.set_prop("providerVersion", AAZStrType, ".provider_version") + properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") + properties.set_prop("requiredFeatures", AAZListType, ".required_features") + properties.set_prop("resourceGroupLockOptionDuringMove", AAZObjectType, ".resource_group_lock_option_during_move") + properties.set_prop("resourceHydrationAccounts", AAZListType, ".resource_hydration_accounts") + _CreateHelper._build_schema_resource_provider_authorization_rules_create(properties.set_prop("resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) + properties.set_prop("responseOptions", AAZObjectType, ".response_options") + properties.set_prop("serviceName", AAZStrType, ".service_name") + properties.set_prop("services", AAZListType, ".services") + properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") + properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") + _CreateHelper._build_schema_token_auth_configuration_create(properties.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + capabilities = _builder.get(".properties.specification.providerRegistration.properties.capabilities") + if capabilities is not None: + capabilities.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.capabilities[]") + if _elements is not None: + _elements.set_prop("effect", AAZStrType, ".effect", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quotaId", AAZStrType, ".quota_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + required_features = _builder.get(".properties.specification.providerRegistration.properties.capabilities[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.providerRegistration.properties.dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + features_rule = _builder.get(".properties.specification.providerRegistration.properties.featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + global_notification_endpoints = _builder.get(".properties.specification.providerRegistration.properties.globalNotificationEndpoints") + if global_notification_endpoints is not None: + _CreateHelper._build_schema_resource_provider_endpoint_create(global_notification_endpoints.set_elements(AAZObjectType, ".")) + + legacy_registrations = _builder.get(".properties.specification.providerRegistration.properties.legacyRegistrations") + if legacy_registrations is not None: + legacy_registrations.set_elements(AAZStrType, ".") + + linked_notification_rules = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules") + if linked_notification_rules is not None: + linked_notification_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + _elements.set_prop("endpoints", AAZListType, ".endpoints") + _CreateHelper._build_schema_token_auth_configuration_create(_elements.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + actions = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[].dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + endpoints = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[].endpoints") + if endpoints is not None: + _CreateHelper._build_schema_resource_provider_endpoint_create(endpoints.set_elements(AAZObjectType, ".")) + + management = _builder.get(".properties.specification.providerRegistration.properties.management") + if management is not None: + management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") + management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") + management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") + management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") + management.set_prop("expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") + management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") + management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") + management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") + management.set_prop("manifestOwners", AAZListType, ".manifest_owners") + management.set_prop("pcCode", AAZStrType, ".pc_code") + management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") + management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") + management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") + management.set_prop("schemaOwners", AAZListType, ".schema_owners") + management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + + authorization_owners = _builder.get(".properties.specification.providerRegistration.properties.management.authorizationOwners") + if authorization_owners is not None: + authorization_owners.set_elements(AAZStrType, ".") + + canary_manifest_owners = _builder.get(".properties.specification.providerRegistration.properties.management.canaryManifestOwners") + if canary_manifest_owners is not None: + canary_manifest_owners.set_elements(AAZStrType, ".") + + error_response_message_options = _builder.get(".properties.specification.providerRegistration.properties.management.errorResponseMessageOptions") + if error_response_message_options is not None: + error_response_message_options.set_prop("serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") + + expedited_rollout_metadata = _builder.get(".properties.specification.providerRegistration.properties.management.expeditedRolloutMetadata") + if expedited_rollout_metadata is not None: + expedited_rollout_metadata.set_prop("enabled", AAZBoolType, ".enabled") + expedited_rollout_metadata.set_prop("expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") + + expedited_rollout_submitters = _builder.get(".properties.specification.providerRegistration.properties.management.expeditedRolloutSubmitters") + if expedited_rollout_submitters is not None: + expedited_rollout_submitters.set_elements(AAZStrType, ".") + + manifest_owners = _builder.get(".properties.specification.providerRegistration.properties.management.manifestOwners") + if manifest_owners is not None: + manifest_owners.set_elements(AAZStrType, ".") + + resource_access_roles = _builder.get(".properties.specification.providerRegistration.properties.management.resourceAccessRoles") + if resource_access_roles is not None: + _CreateHelper._build_schema_resource_access_role_create(resource_access_roles.set_elements(AAZObjectType, ".")) + + schema_owners = _builder.get(".properties.specification.providerRegistration.properties.management.schemaOwners") + if schema_owners is not None: + schema_owners.set_elements(AAZStrType, ".") + + service_tree_infos = _builder.get(".properties.specification.providerRegistration.properties.management.serviceTreeInfos") + if service_tree_infos is not None: + _CreateHelper._build_schema_service_tree_info_create(service_tree_infos.set_elements(AAZObjectType, ".")) + + management_group_global_notification_endpoints = _builder.get(".properties.specification.providerRegistration.properties.managementGroupGlobalNotificationEndpoints") + if management_group_global_notification_endpoints is not None: + _CreateHelper._build_schema_resource_provider_endpoint_create(management_group_global_notification_endpoints.set_elements(AAZObjectType, ".")) + + metadata = _builder.get(".properties.specification.providerRegistration.properties.metadata") + if metadata is not None: + metadata.set_anytype_elements(".") + + notification_settings = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings") + if notification_settings is not None: + notification_settings.set_prop("subscriberSettings", AAZListType, ".subscriber_settings") + + subscriber_settings = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings") + if subscriber_settings is not None: + subscriber_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[]") + if _elements is not None: + _elements.set_prop("filterRules", AAZListType, ".filter_rules") + + filter_rules = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules") + if filter_rules is not None: + filter_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[]") + if _elements is not None: + _elements.set_prop("endpointInformation", AAZListType, ".endpoint_information") + _elements.set_prop("filterQuery", AAZStrType, ".filter_query") + + endpoint_information = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation") + if endpoint_information is not None: + endpoint_information.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation[]") + if _elements is not None: + _elements.set_prop("endpoint", AAZStrType, ".endpoint") + _elements.set_prop("endpointType", AAZStrType, ".endpoint_type") + _elements.set_prop("schemaVersion", AAZStrType, ".schema_version") + + optional_features = _builder.get(".properties.specification.providerRegistration.properties.optionalFeatures") + if optional_features is not None: + optional_features.set_elements(AAZStrType, ".") + + private_resource_provider_configuration = _builder.get(".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration") + if private_resource_provider_configuration is not None: + private_resource_provider_configuration.set_prop("allowedSubscriptions", AAZListType, ".allowed_subscriptions") + + allowed_subscriptions = _builder.get(".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration.allowedSubscriptions") + if allowed_subscriptions is not None: + allowed_subscriptions.set_elements(AAZStrType, ".") + + provider_authentication = _builder.get(".properties.specification.providerRegistration.properties.providerAuthentication") + if provider_authentication is not None: + provider_authentication.set_prop("allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) + + allowed_audiences = _builder.get(".properties.specification.providerRegistration.properties.providerAuthentication.allowedAudiences") + if allowed_audiences is not None: + allowed_audiences.set_elements(AAZStrType, ".") + + provider_authorizations = _builder.get(".properties.specification.providerRegistration.properties.providerAuthorizations") + if provider_authorizations is not None: + _CreateHelper._build_schema_resource_provider_authorization_create(provider_authorizations.set_elements(AAZObjectType, ".")) + + provider_hub_metadata = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata") + if provider_hub_metadata is not None: + provider_hub_metadata.set_prop("directRpRoleDefinitionId", AAZStrType, ".direct_rp_role_definition_id") + provider_hub_metadata.set_prop("globalAsyncOperationResourceTypeName", AAZStrType, ".global_async_operation_resource_type_name") + provider_hub_metadata.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") + provider_hub_metadata.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") + provider_hub_metadata.set_prop("regionalAsyncOperationResourceTypeName", AAZStrType, ".regional_async_operation_resource_type_name") + provider_hub_metadata.set_prop("thirdPartyProviderAuthorization", AAZObjectType, ".third_party_provider_authorization") + + provider_authentication = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication") + if provider_authentication is not None: + provider_authentication.set_prop("allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) + + allowed_audiences = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication.allowedAudiences") + if allowed_audiences is not None: + allowed_audiences.set_elements(AAZStrType, ".") + + provider_authorizations = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthorizations") + if provider_authorizations is not None: + _CreateHelper._build_schema_resource_provider_authorization_create(provider_authorizations.set_elements(AAZObjectType, ".")) + + third_party_provider_authorization = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization") + if third_party_provider_authorization is not None: + third_party_provider_authorization.set_prop("authorizations", AAZListType, ".authorizations") + third_party_provider_authorization.set_prop("managedByTenantId", AAZStrType, ".managed_by_tenant_id") + + authorizations = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations") + if authorizations is not None: + authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations[]") + if _elements is not None: + _elements.set_prop("principalId", AAZStrType, ".principal_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id", typ_kwargs={"flags": {"required": True}}) + + request_header_options = _builder.get(".properties.specification.providerRegistration.properties.requestHeaderOptions") + if request_header_options is not None: + request_header_options.set_prop("optInHeaders", AAZStrType, ".opt_in_headers") + request_header_options.set_prop("optOutHeaders", AAZStrType, ".opt_out_headers") + + required_features = _builder.get(".properties.specification.providerRegistration.properties.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + resource_group_lock_option_during_move = _builder.get(".properties.specification.providerRegistration.properties.resourceGroupLockOptionDuringMove") + if resource_group_lock_option_during_move is not None: + resource_group_lock_option_during_move.set_prop("blockActionVerb", AAZStrType, ".block_action_verb") + + resource_hydration_accounts = _builder.get(".properties.specification.providerRegistration.properties.resourceHydrationAccounts") + if resource_hydration_accounts is not None: + resource_hydration_accounts.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.resourceHydrationAccounts[]") + if _elements is not None: + _elements.set_prop("accountName", AAZStrType, ".account_name") + _elements.set_prop("encryptedKey", AAZStrType, ".encrypted_key") + _elements.set_prop("maxChildResourceConsistencyJobLimit", AAZIntType, ".max_child_resource_consistency_job_limit") + _elements.set_prop("subscriptionId", AAZStrType, ".subscription_id") + + response_options = _builder.get(".properties.specification.providerRegistration.properties.responseOptions") + if response_options is not None: + response_options.set_prop("serviceClientOptionsType", AAZStrType, ".service_client_options_type") + + services = _builder.get(".properties.specification.providerRegistration.properties.services") + if services is not None: + services.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.services[]") + if _elements is not None: + _elements.set_prop("serviceName", AAZStrType, ".service_name") + _elements.set_prop("status", AAZStrType, ".status") + + subscription_lifecycle_notification_specifications = _builder.get(".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications") + if subscription_lifecycle_notification_specifications is not None: + subscription_lifecycle_notification_specifications.set_prop("softDeleteTTL", AAZStrType, ".soft_delete_ttl") + subscription_lifecycle_notification_specifications.set_prop("subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") + + subscription_state_override_actions = _builder.get(".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") + if subscription_state_override_actions is not None: + _CreateHelper._build_schema_subscription_state_override_action_create(subscription_state_override_actions.set_elements(AAZObjectType, ".")) + + template_deployment_options = _builder.get(".properties.specification.providerRegistration.properties.templateDeploymentOptions") + if template_deployment_options is not None: + template_deployment_options.set_prop("preflightOptions", AAZListType, ".preflight_options") + template_deployment_options.set_prop("preflightSupported", AAZBoolType, ".preflight_supported") + + preflight_options = _builder.get(".properties.specification.providerRegistration.properties.templateDeploymentOptions.preflightOptions") + if preflight_options is not None: + preflight_options.set_elements(AAZStrType, ".") + + resource_type_registrations = _builder.get(".properties.specification.resourceTypeRegistrations") + if resource_type_registrations is not None: + resource_type_registrations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[]") + if _elements is not None: + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties.specification.resourceTypeRegistrations[].properties") + if properties is not None: + properties.set_prop("addResourceListTargetLocations", AAZBoolType, ".add_resource_list_target_locations") + properties.set_prop("additionalOptions", AAZStrType, ".additional_options") + properties.set_prop("allowEmptyRoleAssignments", AAZBoolType, ".allow_empty_role_assignments") + properties.set_prop("allowedResourceNames", AAZListType, ".allowed_resource_names") + properties.set_prop("allowedTemplateDeploymentReferenceActions", AAZListType, ".allowed_template_deployment_reference_actions") + properties.set_prop("allowedUnauthorizedActions", AAZListType, ".allowed_unauthorized_actions") + properties.set_prop("apiProfiles", AAZListType, ".api_profiles") + properties.set_prop("asyncOperationResourceTypeName", AAZStrType, ".async_operation_resource_type_name") + properties.set_prop("asyncTimeoutRules", AAZListType, ".async_timeout_rules") + properties.set_prop("authorizationActionMappings", AAZListType, ".authorization_action_mappings") + properties.set_prop("availabilityZoneRule", AAZObjectType, ".availability_zone_rule") + properties.set_prop("capacityRule", AAZObjectType, ".capacity_rule") + properties.set_prop("category", AAZStrType, ".category") + properties.set_prop("checkNameAvailabilitySpecifications", AAZObjectType, ".check_name_availability_specifications") + properties.set_prop("commonApiVersions", AAZListType, ".common_api_versions") + properties.set_prop("crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") + properties.set_prop("defaultApiVersion", AAZStrType, ".default_api_version") + properties.set_prop("disallowedActionVerbs", AAZListType, ".disallowed_action_verbs") + properties.set_prop("disallowedEndUserOperations", AAZListType, ".disallowed_end_user_operations") + properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + properties.set_prop("enableAsyncOperation", AAZBoolType, ".enable_async_operation") + properties.set_prop("enableThirdPartyS2S", AAZBoolType, ".enable_third_party_s2_s") + properties.set_prop("endpoints", AAZListType, ".endpoints") + properties.set_prop("extendedLocations", AAZListType, ".extended_locations") + properties.set_prop("extensionOptions", AAZObjectType, ".extension_options") + properties.set_prop("featuresRule", AAZObjectType, ".features_rule") + properties.set_prop("frontdoorRequestMode", AAZStrType, ".frontdoor_request_mode") + properties.set_prop("groupingTag", AAZStrType, ".grouping_tag") + properties.set_prop("identityManagement", AAZObjectType, ".identity_management") + properties.set_prop("isPureProxy", AAZBoolType, ".is_pure_proxy") + properties.set_prop("legacyName", AAZStrType, ".legacy_name") + properties.set_prop("legacyNames", AAZListType, ".legacy_names") + properties.set_prop("legacyPolicy", AAZObjectType, ".legacy_policy") + properties.set_prop("linkedAccessChecks", AAZListType, ".linked_access_checks") + properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") + properties.set_prop("linkedOperationRules", AAZListType, ".linked_operation_rules") + properties.set_prop("loggingRules", AAZListType, ".logging_rules") + properties.set_prop("managedResourceGroupConfiguration", AAZObjectType, ".managed_resource_group_configuration") + properties.set_prop("management", AAZObjectType, ".management") + properties.set_prop("manifestLink", AAZStrType, ".manifest_link") + properties.set_prop("marketplaceOptions", AAZObjectType, ".marketplace_options") + properties.set_prop("marketplaceType", AAZStrType, ".marketplace_type") + properties.set_prop("metadata", AAZDictType, ".metadata") + _CreateHelper._build_schema_notifications_create(properties.set_prop("notifications", AAZListType, ".notifications")) + properties.set_prop("onBehalfOfTokens", AAZObjectType, ".on_behalf_of_tokens") + properties.set_prop("openApiConfiguration", AAZObjectType, ".open_api_configuration") + properties.set_prop("policyExecutionType", AAZStrType, ".policy_execution_type") + properties.set_prop("privateEndpointConfiguration", AAZObjectType, ".private_endpoint_configuration") + properties.set_prop("quotaRule", AAZObjectType, ".quota_rule") + properties.set_prop("regionality", AAZStrType, ".regionality") + properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") + properties.set_prop("requiredFeatures", AAZListType, ".required_features") + properties.set_prop("resourceCache", AAZObjectType, ".resource_cache") + properties.set_prop("resourceConcurrencyControlOptions", AAZDictType, ".resource_concurrency_control_options") + properties.set_prop("resourceDeletionPolicy", AAZStrType, ".resource_deletion_policy") + properties.set_prop("resourceGraphConfiguration", AAZObjectType, ".resource_graph_configuration") + properties.set_prop("resourceManagementOptions", AAZObjectType, ".resource_management_options") + properties.set_prop("resourceMovePolicy", AAZObjectType, ".resource_move_policy") + _CreateHelper._build_schema_resource_provider_authorization_rules_create(properties.set_prop("resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) + properties.set_prop("resourceQueryManagement", AAZObjectType, ".resource_query_management") + properties.set_prop("resourceSubType", AAZStrType, ".resource_sub_type") + properties.set_prop("resourceTypeCommonAttributeManagement", AAZObjectType, ".resource_type_common_attribute_management") + properties.set_prop("resourceValidation", AAZStrType, ".resource_validation") + properties.set_prop("routingRule", AAZObjectType, ".routing_rule") + properties.set_prop("routingType", AAZStrType, ".routing_type") + properties.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + properties.set_prop("skuLink", AAZStrType, ".sku_link") + properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") + properties.set_prop("subscriptionStateRules", AAZListType, ".subscription_state_rules") + properties.set_prop("supportsTags", AAZBoolType, ".supports_tags") + properties.set_prop("swaggerSpecifications", AAZListType, ".swagger_specifications") + properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") + properties.set_prop("templateDeploymentPolicy", AAZObjectType, ".template_deployment_policy") + properties.set_prop("throttlingRules", AAZListType, ".throttling_rules") + _CreateHelper._build_schema_token_auth_configuration_create(properties.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + allowed_resource_names = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames") + if allowed_resource_names is not None: + allowed_resource_names.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames[]") + if _elements is not None: + _elements.set_prop("getActionVerb", AAZStrType, ".get_action_verb") + _elements.set_prop("name", AAZStrType, ".name") + + allowed_template_deployment_reference_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedTemplateDeploymentReferenceActions") + if allowed_template_deployment_reference_actions is not None: + allowed_template_deployment_reference_actions.set_elements(AAZStrType, ".") + + allowed_unauthorized_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedUnauthorizedActions") + if allowed_unauthorized_actions is not None: + allowed_unauthorized_actions.set_elements(AAZStrType, ".") + + api_profiles = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.apiProfiles") + if api_profiles is not None: + api_profiles.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.apiProfiles[]") + if _elements is not None: + _elements.set_prop("apiVersion", AAZStrType, ".api_version") + _elements.set_prop("profileVersion", AAZStrType, ".profile_version") + + async_timeout_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules") + if async_timeout_rules is not None: + async_timeout_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules[]") + if _elements is not None: + _elements.set_prop("actionName", AAZStrType, ".action_name") + _elements.set_prop("timeout", AAZStrType, ".timeout") + + authorization_action_mappings = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings") + if authorization_action_mappings is not None: + authorization_action_mappings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings[]") + if _elements is not None: + _elements.set_prop("desired", AAZStrType, ".desired") + _elements.set_prop("original", AAZStrType, ".original") + + availability_zone_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.availabilityZoneRule") + if availability_zone_rule is not None: + availability_zone_rule.set_prop("availabilityZonePolicy", AAZStrType, ".availability_zone_policy") + + capacity_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.capacityRule") + if capacity_rule is not None: + capacity_rule.set_prop("capacityPolicy", AAZStrType, ".capacity_policy") + capacity_rule.set_prop("skuAlias", AAZStrType, ".sku_alias") + + check_name_availability_specifications = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications") + if check_name_availability_specifications is not None: + check_name_availability_specifications.set_prop("enableDefaultValidation", AAZBoolType, ".enable_default_validation") + check_name_availability_specifications.set_prop("resourceTypesWithCustomValidation", AAZListType, ".resource_types_with_custom_validation") + + resource_types_with_custom_validation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications.resourceTypesWithCustomValidation") + if resource_types_with_custom_validation is not None: + resource_types_with_custom_validation.set_elements(AAZStrType, ".") + + common_api_versions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.commonApiVersions") + if common_api_versions is not None: + common_api_versions.set_elements(AAZStrType, ".") + + disallowed_action_verbs = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.disallowedActionVerbs") + if disallowed_action_verbs is not None: + disallowed_action_verbs.set_elements(AAZStrType, ".") + + disallowed_end_user_operations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.disallowedEndUserOperations") + if disallowed_end_user_operations is not None: + disallowed_end_user_operations.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + endpoints = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints") + if endpoints is not None: + endpoints.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[]") + if _elements is not None: + _elements.set_prop("apiVersion", AAZStrType, ".api_version") + _elements.set_prop("apiVersions", AAZListType, ".api_versions") + _elements.set_prop("dataBoundary", AAZStrType, ".data_boundary") + _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + _elements.set_prop("enabled", AAZBoolType, ".enabled") + _elements.set_prop("endpointType", AAZStrType, ".endpoint_type") + _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _elements.set_prop("extensions", AAZListType, ".extensions") + _elements.set_prop("featuresRule", AAZObjectType, ".features_rule") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("skuLink", AAZStrType, ".sku_link") + _elements.set_prop("timeout", AAZStrType, ".timeout") + _CreateHelper._build_schema_token_auth_configuration_create(_elements.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + _elements.set_prop("zones", AAZListType, ".zones") + + api_versions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + extensions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions") + if extensions is not None: + extensions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[]") + if _elements is not None: + _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _elements.set_prop("extensionCategories", AAZListType, ".extension_categories") + _elements.set_prop("timeout", AAZStrType, ".timeout") + + extension_categories = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[].extensionCategories") + if extension_categories is not None: + extension_categories.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + locations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + extended_locations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extendedLocations[]") + if _elements is not None: + _elements.set_prop("supportedPolicy", AAZStrType, ".supported_policy") + _elements.set_prop("type", AAZStrType, ".type") + + extension_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions") + if extension_options is not None: + extension_options.set_prop("resourceCreationBegin", AAZObjectType, ".resource_creation_begin") + + resource_creation_begin = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin") + if resource_creation_begin is not None: + resource_creation_begin.set_prop("request", AAZListType, ".request") + resource_creation_begin.set_prop("response", AAZListType, ".response") + + request = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.request") + if request is not None: + request.set_elements(AAZStrType, ".") + + response = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.response") + if response is not None: + response.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + identity_management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.identityManagement") + if identity_management is not None: + identity_management.set_prop("applicationId", AAZStrType, ".application_id") + identity_management.set_prop("applicationIds", AAZListType, ".application_ids") + identity_management.set_prop("delegationAppIds", AAZListType, ".delegation_app_ids") + identity_management.set_prop("type", AAZStrType, ".type") + + application_ids = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.identityManagement.applicationIds") + if application_ids is not None: + application_ids.set_elements(AAZStrType, ".") + + delegation_app_ids = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.identityManagement.delegationAppIds") + if delegation_app_ids is not None: + delegation_app_ids.set_elements(AAZStrType, ".") + + legacy_names = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyNames") + if legacy_names is not None: + legacy_names.set_elements(AAZStrType, ".") + + legacy_policy = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy") + if legacy_policy is not None: + legacy_policy.set_prop("disallowedConditions", AAZListType, ".disallowed_conditions") + legacy_policy.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") + + disallowed_conditions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions") + if disallowed_conditions is not None: + disallowed_conditions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[]") + if _elements is not None: + _elements.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") + _elements.set_prop("feature", AAZStrType, ".feature") + + disallowed_legacy_operations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[].disallowedLegacyOperations") + if disallowed_legacy_operations is not None: + disallowed_legacy_operations.set_elements(AAZStrType, ".") + + disallowed_legacy_operations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedLegacyOperations") + if disallowed_legacy_operations is not None: + disallowed_legacy_operations.set_elements(AAZStrType, ".") + + linked_access_checks = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks") + if linked_access_checks is not None: + linked_access_checks.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks[]") + if _elements is not None: + _elements.set_prop("actionName", AAZStrType, ".action_name") + _elements.set_prop("linkedAction", AAZStrType, ".linked_action") + _elements.set_prop("linkedActionVerb", AAZStrType, ".linked_action_verb") + _elements.set_prop("linkedProperty", AAZStrType, ".linked_property") + _elements.set_prop("linkedType", AAZStrType, ".linked_type") + + linked_notification_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules") + if linked_notification_rules is not None: + linked_notification_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("actionsOnFailedOperation", AAZListType, ".actions_on_failed_operation") + _elements.set_prop("fastPathActions", AAZListType, ".fast_path_actions") + _elements.set_prop("fastPathActionsOnFailedOperation", AAZListType, ".fast_path_actions_on_failed_operation") + _elements.set_prop("linkedNotificationTimeout", AAZStrType, ".linked_notification_timeout") + + actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + actions_on_failed_operation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actionsOnFailedOperation") + if actions_on_failed_operation is not None: + actions_on_failed_operation.set_elements(AAZStrType, ".") + + fast_path_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActions") + if fast_path_actions is not None: + fast_path_actions.set_elements(AAZStrType, ".") + + fast_path_actions_on_failed_operation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActionsOnFailedOperation") + if fast_path_actions_on_failed_operation is not None: + fast_path_actions_on_failed_operation.set_elements(AAZStrType, ".") + + linked_operation_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules") + if linked_operation_rules is not None: + linked_operation_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[]") + if _elements is not None: + _elements.set_prop("dependsOnTypes", AAZListType, ".depends_on_types") + _elements.set_prop("linkedAction", AAZStrType, ".linked_action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("linkedOperation", AAZStrType, ".linked_operation", typ_kwargs={"flags": {"required": True}}) + + depends_on_types = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[].dependsOnTypes") + if depends_on_types is not None: + depends_on_types.set_elements(AAZStrType, ".") + + logging_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules") + if logging_rules is not None: + logging_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("detailLevel", AAZStrType, ".detail_level", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("direction", AAZStrType, ".direction", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("hiddenPropertyPaths", AAZObjectType, ".hidden_property_paths") + + hidden_property_paths = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths") + if hidden_property_paths is not None: + hidden_property_paths.set_prop("hiddenPathsOnRequest", AAZListType, ".hidden_paths_on_request") + hidden_property_paths.set_prop("hiddenPathsOnResponse", AAZListType, ".hidden_paths_on_response") + + hidden_paths_on_request = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnRequest") + if hidden_paths_on_request is not None: + hidden_paths_on_request.set_elements(AAZStrType, ".") + + hidden_paths_on_response = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnResponse") + if hidden_paths_on_response is not None: + hidden_paths_on_response.set_elements(AAZStrType, ".") + + managed_resource_group_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration") + if managed_resource_group_configuration is not None: + managed_resource_group_configuration.set_prop("applicationIds", AAZListType, ".application_ids") + managed_resource_group_configuration.set_prop("denyAssignmentConfiguration", AAZObjectType, ".deny_assignment_configuration") + managed_resource_group_configuration.set_prop("enabled", AAZBoolType, ".enabled") + managed_resource_group_configuration.set_prop("resourceGroupLocationOverride", AAZStrType, ".resource_group_location_override") + + application_ids = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.applicationIds") + if application_ids is not None: + application_ids.set_elements(AAZStrType, ".") + + deny_assignment_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration") + if deny_assignment_configuration is not None: + deny_assignment_configuration.set_prop("enabled", AAZBoolType, ".enabled") + deny_assignment_configuration.set_prop("notActions", AAZListType, ".not_actions") + + not_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration.notActions") + if not_actions is not None: + not_actions.set_elements(AAZStrType, ".") + + management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management") + if management is not None: + management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") + management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") + management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") + management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") + management.set_prop("expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") + management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") + management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") + management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") + management.set_prop("manifestOwners", AAZListType, ".manifest_owners") + management.set_prop("pcCode", AAZStrType, ".pc_code") + management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") + management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") + management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") + management.set_prop("schemaOwners", AAZListType, ".schema_owners") + management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + + authorization_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.authorizationOwners") + if authorization_owners is not None: + authorization_owners.set_elements(AAZStrType, ".") + + canary_manifest_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.canaryManifestOwners") + if canary_manifest_owners is not None: + canary_manifest_owners.set_elements(AAZStrType, ".") + + error_response_message_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.errorResponseMessageOptions") + if error_response_message_options is not None: + error_response_message_options.set_prop("serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") + + expedited_rollout_metadata = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutMetadata") + if expedited_rollout_metadata is not None: + expedited_rollout_metadata.set_prop("enabled", AAZBoolType, ".enabled") + expedited_rollout_metadata.set_prop("expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") + + expedited_rollout_submitters = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutSubmitters") + if expedited_rollout_submitters is not None: + expedited_rollout_submitters.set_elements(AAZStrType, ".") + + manifest_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.manifestOwners") + if manifest_owners is not None: + manifest_owners.set_elements(AAZStrType, ".") + + resource_access_roles = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.resourceAccessRoles") + if resource_access_roles is not None: + _CreateHelper._build_schema_resource_access_role_create(resource_access_roles.set_elements(AAZObjectType, ".")) + + schema_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.schemaOwners") + if schema_owners is not None: + schema_owners.set_elements(AAZStrType, ".") + + service_tree_infos = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.serviceTreeInfos") + if service_tree_infos is not None: + _CreateHelper._build_schema_service_tree_info_create(service_tree_infos.set_elements(AAZObjectType, ".")) + + marketplace_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.marketplaceOptions") + if marketplace_options is not None: + marketplace_options.set_prop("addOnPlanConversionAllowed", AAZBoolType, ".add_on_plan_conversion_allowed") + + metadata = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.metadata") + if metadata is not None: + metadata.set_elements(AAZFreeFormDictType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.metadata{}") + if _elements is not None: + _elements.set_anytype_elements(".") + + on_behalf_of_tokens = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.onBehalfOfTokens") + if on_behalf_of_tokens is not None: + on_behalf_of_tokens.set_prop("actionName", AAZStrType, ".action_name") + on_behalf_of_tokens.set_prop("lifeTime", AAZStrType, ".life_time") + + open_api_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration") + if open_api_configuration is not None: + open_api_configuration.set_prop("validation", AAZObjectType, ".validation") + + validation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration.validation") + if validation is not None: + validation.set_prop("allowNoncompliantCollectionResponse", AAZBoolType, ".allow_noncompliant_collection_response") + + private_endpoint_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration") + if private_endpoint_configuration is not None: + private_endpoint_configuration.set_prop("groupConnectivityInformation", AAZListType, ".group_connectivity_information", typ_kwargs={"flags": {"required": True}}) + private_endpoint_configuration.set_prop("minApiVersion", AAZStrType, ".min_api_version", typ_kwargs={"flags": {"required": True}}) + + group_connectivity_information = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation") + if group_connectivity_information is not None: + group_connectivity_information.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[]") + if _elements is not None: + _elements.set_prop("groupId", AAZStrType, ".group_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("redirectMapId", AAZStrType, ".redirect_map_id") + _elements.set_prop("requiredMembers", AAZListType, ".required_members", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredZoneNames", AAZListType, ".required_zone_names", typ_kwargs={"flags": {"required": True}}) + + required_members = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredMembers") + if required_members is not None: + required_members.set_elements(AAZStrType, ".") + + required_zone_names = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredZoneNames") + if required_zone_names is not None: + required_zone_names.set_elements(AAZStrType, ".") + + quota_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule") + if quota_rule is not None: + quota_rule.set_prop("locationRules", AAZListType, ".location_rules") + quota_rule.set_prop("quotaPolicy", AAZStrType, ".quota_policy") + quota_rule.set_prop("requiredFeatures", AAZListType, ".required_features") + + location_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules") + if location_rules is not None: + location_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules[]") + if _elements is not None: + _elements.set_prop("location", AAZStrType, ".location") + _elements.set_prop("policy", AAZStrType, ".policy") + _elements.set_prop("quotaId", AAZStrType, ".quota_id") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + request_header_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.requestHeaderOptions") + if request_header_options is not None: + request_header_options.set_prop("optInHeaders", AAZStrType, ".opt_in_headers") + request_header_options.set_prop("optOutHeaders", AAZStrType, ".opt_out_headers") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + resource_cache = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceCache") + if resource_cache is not None: + resource_cache.set_prop("enableResourceCache", AAZBoolType, ".enable_resource_cache") + resource_cache.set_prop("resourceCacheExpirationTimespan", AAZStrType, ".resource_cache_expiration_timespan") + + resource_concurrency_control_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions") + if resource_concurrency_control_options is not None: + resource_concurrency_control_options.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions{}") + if _elements is not None: + _elements.set_prop("policy", AAZStrType, ".policy") + + resource_graph_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceGraphConfiguration") + if resource_graph_configuration is not None: + resource_graph_configuration.set_prop("apiVersion", AAZStrType, ".api_version") + resource_graph_configuration.set_prop("enabled", AAZBoolType, ".enabled") + + resource_management_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions") + if resource_management_options is not None: + resource_management_options.set_prop("batchProvisioningSupport", AAZObjectType, ".batch_provisioning_support") + resource_management_options.set_prop("deleteDependencies", AAZListType, ".delete_dependencies") + resource_management_options.set_prop("nestedProvisioningSupport", AAZObjectType, ".nested_provisioning_support") + + batch_provisioning_support = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.batchProvisioningSupport") + if batch_provisioning_support is not None: + batch_provisioning_support.set_prop("supportedOperations", AAZStrType, ".supported_operations") + + delete_dependencies = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies") + if delete_dependencies is not None: + delete_dependencies.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[]") + if _elements is not None: + _elements.set_prop("linkedProperty", AAZStrType, ".linked_property") + _elements.set_prop("linkedType", AAZStrType, ".linked_type") + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + nested_provisioning_support = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.nestedProvisioningSupport") + if nested_provisioning_support is not None: + nested_provisioning_support.set_prop("minimumApiVersion", AAZStrType, ".minimum_api_version") + + resource_move_policy = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceMovePolicy") + if resource_move_policy is not None: + resource_move_policy.set_prop("crossResourceGroupMoveEnabled", AAZBoolType, ".cross_resource_group_move_enabled") + resource_move_policy.set_prop("crossSubscriptionMoveEnabled", AAZBoolType, ".cross_subscription_move_enabled") + resource_move_policy.set_prop("validationRequired", AAZBoolType, ".validation_required") + + resource_query_management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceQueryManagement") + if resource_query_management is not None: + resource_query_management.set_prop("filterOption", AAZStrType, ".filter_option") + + resource_type_common_attribute_management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceTypeCommonAttributeManagement") + if resource_type_common_attribute_management is not None: + resource_type_common_attribute_management.set_prop("commonApiVersionsMergeMode", AAZStrType, ".common_api_versions_merge_mode") + + routing_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.routingRule") + if routing_rule is not None: + routing_rule.set_prop("hostResourceType", AAZStrType, ".host_resource_type") + + service_tree_infos = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.serviceTreeInfos") + if service_tree_infos is not None: + _CreateHelper._build_schema_service_tree_info_create(service_tree_infos.set_elements(AAZObjectType, ".")) + + subscription_lifecycle_notification_specifications = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications") + if subscription_lifecycle_notification_specifications is not None: + subscription_lifecycle_notification_specifications.set_prop("softDeleteTTL", AAZStrType, ".soft_delete_ttl") + subscription_lifecycle_notification_specifications.set_prop("subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") + + subscription_state_override_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") + if subscription_state_override_actions is not None: + _CreateHelper._build_schema_subscription_state_override_action_create(subscription_state_override_actions.set_elements(AAZObjectType, ".")) + + subscription_state_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules") + if subscription_state_rules is not None: + subscription_state_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[]") + if _elements is not None: + _elements.set_prop("allowedActions", AAZListType, ".allowed_actions") + _elements.set_prop("state", AAZStrType, ".state") + + allowed_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[].allowedActions") + if allowed_actions is not None: + allowed_actions.set_elements(AAZStrType, ".") + + swagger_specifications = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications") + if swagger_specifications is not None: + swagger_specifications.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[]") + if _elements is not None: + _elements.set_prop("apiVersions", AAZListType, ".api_versions") + _elements.set_prop("swaggerSpecFolderUri", AAZStrType, ".swagger_spec_folder_uri") + + api_versions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[].apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + template_deployment_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions") + if template_deployment_options is not None: + template_deployment_options.set_prop("preflightOptions", AAZListType, ".preflight_options") + template_deployment_options.set_prop("preflightSupported", AAZBoolType, ".preflight_supported") + + preflight_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions.preflightOptions") + if preflight_options is not None: + preflight_options.set_elements(AAZStrType, ".") + + template_deployment_policy = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentPolicy") + if template_deployment_policy is not None: + template_deployment_policy.set_prop("capabilities", AAZStrType, ".capabilities", typ_kwargs={"flags": {"required": True}}) + template_deployment_policy.set_prop("preflightNotifications", AAZStrType, ".preflight_notifications") + template_deployment_policy.set_prop("preflightOptions", AAZStrType, ".preflight_options", typ_kwargs={"flags": {"required": True}}) + + throttling_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules") + if throttling_rules is not None: + throttling_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("applicationId", AAZListType, ".application_id") + _elements.set_prop("metrics", AAZListType, ".metrics", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + application_id = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].applicationId") + if application_id is not None: + application_id.set_elements(AAZStrType, ".") + + metrics = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics") + if metrics is not None: + metrics.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics[]") + if _elements is not None: + _elements.set_prop("interval", AAZStrType, ".interval") + _elements.set_prop("limit", AAZIntType, ".limit", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + rest_of_the_world_group_one = _builder.get(".properties.specification.restOfTheWorldGroupOne") + if rest_of_the_world_group_one is not None: + rest_of_the_world_group_one.set_prop("regions", AAZListType, ".regions") + rest_of_the_world_group_one.set_prop("waitDuration", AAZStrType, ".wait_duration") + + regions = _builder.get(".properties.specification.restOfTheWorldGroupOne.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + rest_of_the_world_group_two = _builder.get(".properties.specification.restOfTheWorldGroupTwo") + if rest_of_the_world_group_two is not None: + rest_of_the_world_group_two.set_prop("regions", AAZListType, ".regions") + rest_of_the_world_group_two.set_prop("waitDuration", AAZStrType, ".wait_duration") + + regions = _builder.get(".properties.specification.restOfTheWorldGroupTwo.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + status = _builder.get(".properties.status") + if status is not None: + status.set_prop("completedRegions", AAZListType, ".completed_regions") + status.set_prop("failedOrSkippedRegions", AAZDictType, ".failed_or_skipped_regions") + status.set_prop("manifestCheckinStatus", AAZObjectType, ".manifest_checkin_status") + status.set_prop("nextTrafficRegion", AAZStrType, ".next_traffic_region") + status.set_prop("nextTrafficRegionScheduledTime", AAZStrType, ".next_traffic_region_scheduled_time") + status.set_prop("subscriptionReregistrationResult", AAZStrType, ".subscription_reregistration_result") + + completed_regions = _builder.get(".properties.status.completedRegions") + if completed_regions is not None: + completed_regions.set_elements(AAZStrType, ".") + + failed_or_skipped_regions = _builder.get(".properties.status.failedOrSkippedRegions") + if failed_or_skipped_regions is not None: + _CreateHelper._build_schema_extended_error_info_create(failed_or_skipped_regions.set_elements(AAZObjectType, ".")) + + manifest_checkin_status = _builder.get(".properties.status.manifestCheckinStatus") + if manifest_checkin_status is not None: + manifest_checkin_status.set_prop("commitId", AAZStrType, ".commit_id") + manifest_checkin_status.set_prop("isCheckedIn", AAZBoolType, ".is_checked_in", typ_kwargs={"flags": {"required": True}}) + manifest_checkin_status.set_prop("pullRequest", AAZStrType, ".pull_request") + manifest_checkin_status.set_prop("statusMessage", AAZStrType, ".status_message", typ_kwargs={"flags": {"required": True}}) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType() + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _CreateHelper._build_schema_system_data_read(_schema_on_200_201.system_data) + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.specification = AAZObjectType() + properties.status = AAZObjectType() + + specification = cls._schema_on_200_201.properties.specification + specification.auto_provision_config = AAZObjectType( + serialized_name="autoProvisionConfig", + ) + specification.canary = AAZObjectType() + specification.expedited_rollout = AAZObjectType( + serialized_name="expeditedRollout", + ) + specification.high_traffic = AAZObjectType( + serialized_name="highTraffic", + ) + specification.low_traffic = AAZObjectType( + serialized_name="lowTraffic", + ) + specification.manifest_checkin_specification = AAZObjectType( + serialized_name="manifestCheckinSpecification", + ) + specification.medium_traffic = AAZObjectType( + serialized_name="mediumTraffic", + ) + specification.provider_registration = AAZObjectType( + serialized_name="providerRegistration", + ) + specification.resource_type_registrations = AAZListType( + serialized_name="resourceTypeRegistrations", + ) + specification.rest_of_the_world_group_one = AAZObjectType( + serialized_name="restOfTheWorldGroupOne", + ) + specification.rest_of_the_world_group_two = AAZObjectType( + serialized_name="restOfTheWorldGroupTwo", + ) + + auto_provision_config = cls._schema_on_200_201.properties.specification.auto_provision_config + auto_provision_config.resource_graph = AAZBoolType( + serialized_name="resourceGraph", + ) + auto_provision_config.storage = AAZBoolType() + + canary = cls._schema_on_200_201.properties.specification.canary + canary.regions = AAZListType() + canary.skip_regions = AAZListType( + serialized_name="skipRegions", + ) + + regions = cls._schema_on_200_201.properties.specification.canary.regions + regions.Element = AAZStrType() + + skip_regions = cls._schema_on_200_201.properties.specification.canary.skip_regions + skip_regions.Element = AAZStrType() + + expedited_rollout = cls._schema_on_200_201.properties.specification.expedited_rollout + expedited_rollout.enabled = AAZBoolType() + + high_traffic = cls._schema_on_200_201.properties.specification.high_traffic + high_traffic.regions = AAZListType() + high_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200_201.properties.specification.high_traffic.regions + regions.Element = AAZStrType() + + low_traffic = cls._schema_on_200_201.properties.specification.low_traffic + low_traffic.regions = AAZListType() + low_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200_201.properties.specification.low_traffic.regions + regions.Element = AAZStrType() + + manifest_checkin_specification = cls._schema_on_200_201.properties.specification.manifest_checkin_specification + manifest_checkin_specification.manifest_checkin_option = AAZStrType( + serialized_name="manifestCheckinOption", + ) + manifest_checkin_specification.manifest_checkin_params = AAZObjectType( + serialized_name="manifestCheckinParams", + ) + + manifest_checkin_params = cls._schema_on_200_201.properties.specification.manifest_checkin_specification.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( + serialized_name="baselineArmManifestLocation", + flags={"required": True}, + ) + manifest_checkin_params.environment = AAZStrType( + flags={"required": True}, + ) + + medium_traffic = cls._schema_on_200_201.properties.specification.medium_traffic + medium_traffic.regions = AAZListType() + medium_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200_201.properties.specification.medium_traffic.regions + regions.Element = AAZStrType() + + provider_registration = cls._schema_on_200_201.properties.specification.provider_registration + provider_registration.id = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.kind = AAZStrType() + provider_registration.name = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.properties = AAZObjectType() + provider_registration.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _CreateHelper._build_schema_system_data_read(provider_registration.system_data) + provider_registration.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties.specification.provider_registration.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + _CreateHelper._build_schema_notifications_read(properties.notifications) + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _CreateHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _CreateHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = cls._schema_on_200_201.properties.specification.provider_registration.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200_201.properties.specification.provider_registration.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200_201.properties.specification.provider_registration.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = cls._schema_on_200_201.properties.specification.provider_registration.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = cls._schema_on_200_201.properties.specification.provider_registration.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = cls._schema_on_200_201.properties.specification.provider_registration.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _CreateHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200_201.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = cls._schema_on_200_201.properties.specification.provider_registration.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _CreateHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200_201.properties.specification.provider_registration.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _CreateHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + management_group_global_notification_endpoints = cls._schema_on_200_201.properties.specification.provider_registration.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + optional_features = cls._schema_on_200_201.properties.specification.provider_registration.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = cls._schema_on_200_201.properties.specification.provider_registration.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = cls._schema_on_200_201.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200_201.properties.specification.provider_registration.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = cls._schema_on_200_201.properties.specification.provider_registration.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = cls._schema_on_200_201.properties.specification.provider_registration.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + response_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = cls._schema_on_200_201.properties.specification.provider_registration.properties.services + services.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.provider_registration.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = cls._schema_on_200_201.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200_201.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _CreateHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + template_deployment_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200_201.properties.specification.provider_registration.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + resource_type_registrations = cls._schema_on_200_201.properties.specification.resource_type_registrations + resource_type_registrations.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.kind = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _CreateHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + _CreateHelper._build_schema_notifications_read(properties.notifications) + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _CreateHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _CreateHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _CreateHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _CreateHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _CreateHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.metadata + metadata.Element = AAZFreeFormDictType() + + on_behalf_of_tokens = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_query_management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _CreateHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _CreateHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + subscription_state_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = cls._schema_on_200_201.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + rest_of_the_world_group_one = cls._schema_on_200_201.properties.specification.rest_of_the_world_group_one + rest_of_the_world_group_one.regions = AAZListType() + rest_of_the_world_group_one.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200_201.properties.specification.rest_of_the_world_group_one.regions + regions.Element = AAZStrType() + + rest_of_the_world_group_two = cls._schema_on_200_201.properties.specification.rest_of_the_world_group_two + rest_of_the_world_group_two.regions = AAZListType() + rest_of_the_world_group_two.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200_201.properties.specification.rest_of_the_world_group_two.regions + regions.Element = AAZStrType() + + status = cls._schema_on_200_201.properties.status + status.completed_regions = AAZListType( + serialized_name="completedRegions", + ) + status.failed_or_skipped_regions = AAZDictType( + serialized_name="failedOrSkippedRegions", + ) + status.manifest_checkin_status = AAZObjectType( + serialized_name="manifestCheckinStatus", + ) + status.next_traffic_region = AAZStrType( + serialized_name="nextTrafficRegion", + ) + status.next_traffic_region_scheduled_time = AAZStrType( + serialized_name="nextTrafficRegionScheduledTime", + ) + status.subscription_reregistration_result = AAZStrType( + serialized_name="subscriptionReregistrationResult", + ) + + completed_regions = cls._schema_on_200_201.properties.status.completed_regions + completed_regions.Element = AAZStrType() + + failed_or_skipped_regions = cls._schema_on_200_201.properties.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectType() + _CreateHelper._build_schema_extended_error_info_read(failed_or_skipped_regions.Element) + + manifest_checkin_status = cls._schema_on_200_201.properties.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrType( + serialized_name="commitId", + ) + manifest_checkin_status.is_checked_in = AAZBoolType( + serialized_name="isCheckedIn", + flags={"required": True}, + ) + manifest_checkin_status.pull_request = AAZStrType( + serialized_name="pullRequest", + ) + manifest_checkin_status.status_message = AAZStrType( + serialized_name="statusMessage", + flags={"required": True}, + ) + + return cls._schema_on_200_201 + + +class _CreateHelper: + """Helper class for Create""" + + @classmethod + def _build_schema_extended_error_info_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("additionalInfo", AAZListType, ".additional_info") + _builder.set_prop("code", AAZStrType, ".code") + _builder.set_prop("details", AAZListType, ".details") + _builder.set_prop("message", AAZStrType, ".message") + _builder.set_prop("target", AAZStrType, ".target") + + additional_info = _builder.get(".additionalInfo") + if additional_info is not None: + additional_info.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".additionalInfo[]") + if _elements is not None: + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + details = _builder.get(".details") + if details is not None: + cls._build_schema_extended_error_info_create(details.set_elements(AAZObjectType, ".")) + + @classmethod + def _build_schema_notifications_create(cls, _builder): + if _builder is None: + return + _builder.set_elements(AAZObjectType, ".") + + _elements = _builder.get("[]") + if _elements is not None: + _elements.set_prop("notificationType", AAZStrType, ".notification_type") + _elements.set_prop("skipNotifications", AAZStrType, ".skip_notifications") + + @classmethod + def _build_schema_resource_access_role_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("actions", AAZListType, ".actions") + _builder.set_prop("allowedGroupClaims", AAZListType, ".allowed_group_claims") + + actions = _builder.get(".actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + allowed_group_claims = _builder.get(".allowedGroupClaims") + if allowed_group_claims is not None: + allowed_group_claims.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_resource_provider_authorization_rules_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("asyncOperationPollingRules", AAZObjectType, ".async_operation_polling_rules") + + async_operation_polling_rules = _builder.get(".asyncOperationPollingRules") + if async_operation_polling_rules is not None: + async_operation_polling_rules.set_prop("additionalOptions", AAZStrType, ".additional_options") + async_operation_polling_rules.set_prop("authorizationActions", AAZListType, ".authorization_actions") + + authorization_actions = _builder.get(".asyncOperationPollingRules.authorizationActions") + if authorization_actions is not None: + authorization_actions.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_resource_provider_authorization_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("allowedThirdPartyExtensions", AAZListType, ".allowed_third_party_extensions") + _builder.set_prop("applicationId", AAZStrType, ".application_id") + _builder.set_prop("groupingTag", AAZStrType, ".grouping_tag") + _builder.set_prop("managedByAuthorization", AAZObjectType, ".managed_by_authorization") + _builder.set_prop("managedByRoleDefinitionId", AAZStrType, ".managed_by_role_definition_id") + _builder.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + allowed_third_party_extensions = _builder.get(".allowedThirdPartyExtensions") + if allowed_third_party_extensions is not None: + allowed_third_party_extensions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".allowedThirdPartyExtensions[]") + if _elements is not None: + _elements.set_prop("name", AAZStrType, ".name") + + managed_by_authorization = _builder.get(".managedByAuthorization") + if managed_by_authorization is not None: + managed_by_authorization.set_prop("additionalAuthorizations", AAZListType, ".additional_authorizations") + managed_by_authorization.set_prop("allowManagedByInheritance", AAZBoolType, ".allow_managed_by_inheritance") + managed_by_authorization.set_prop("managedByResourceRoleDefinitionId", AAZStrType, ".managed_by_resource_role_definition_id") + + additional_authorizations = _builder.get(".managedByAuthorization.additionalAuthorizations") + if additional_authorizations is not None: + additional_authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".managedByAuthorization.additionalAuthorizations[]") + if _elements is not None: + _elements.set_prop("applicationId", AAZStrType, ".application_id") + _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + @classmethod + def _build_schema_resource_provider_endpoint_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("apiVersions", AAZListType, ".api_versions") + _builder.set_prop("enabled", AAZBoolType, ".enabled") + _builder.set_prop("endpointType", AAZStrType, ".endpoint_type") + _builder.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _builder.set_prop("featuresRule", AAZObjectType, ".features_rule") + _builder.set_prop("locations", AAZListType, ".locations") + _builder.set_prop("requiredFeatures", AAZListType, ".required_features") + _builder.set_prop("skuLink", AAZStrType, ".sku_link") + _builder.set_prop("timeout", AAZStrType, ".timeout") + + api_versions = _builder.get(".apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + locations = _builder.get(".locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_service_tree_info_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("componentId", AAZStrType, ".component_id") + _builder.set_prop("readiness", AAZStrType, ".readiness") + _builder.set_prop("serviceId", AAZStrType, ".service_id") + + @classmethod + def _build_schema_subscription_state_override_action_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("state", AAZStrType, ".state", typ_kwargs={"flags": {"required": True}}) + + @classmethod + def _build_schema_token_auth_configuration_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("authenticationScheme", AAZStrType, ".authentication_scheme") + _builder.set_prop("disableCertificateAuthenticationFallback", AAZBoolType, ".disable_certificate_authentication_fallback") + _builder.set_prop("signedRequestScope", AAZStrType, ".signed_request_scope") + + _schema_extended_error_info_read = None + + @classmethod + def _build_schema_extended_error_info_read(cls, _schema): + if cls._schema_extended_error_info_read is not None: + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + return + + cls._schema_extended_error_info_read = _schema_extended_error_info_read = AAZObjectType() + + extended_error_info_read = _schema_extended_error_info_read + extended_error_info_read.additional_info = AAZListType( + serialized_name="additionalInfo", + ) + extended_error_info_read.code = AAZStrType() + extended_error_info_read.details = AAZListType() + extended_error_info_read.message = AAZStrType() + extended_error_info_read.target = AAZStrType() + + additional_info = _schema_extended_error_info_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_extended_error_info_read.additional_info.Element + _element.info = AAZObjectType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + details = _schema_extended_error_info_read.details + details.Element = AAZObjectType() + cls._build_schema_extended_error_info_read(details.Element) + + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + + _schema_notifications_read = None + + @classmethod + def _build_schema_notifications_read(cls, _schema): + if cls._schema_notifications_read is not None: + _schema.Element = cls._schema_notifications_read.Element + return + + cls._schema_notifications_read = _schema_notifications_read = AAZListType() + + notifications_read = _schema_notifications_read + notifications_read.Element = AAZObjectType() + + _element = _schema_notifications_read.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + _schema.Element = cls._schema_notifications_read.Element + + _schema_resource_access_role_read = None + + @classmethod + def _build_schema_resource_access_role_read(cls, _schema): + if cls._schema_resource_access_role_read is not None: + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + return + + cls._schema_resource_access_role_read = _schema_resource_access_role_read = AAZObjectType() + + resource_access_role_read = _schema_resource_access_role_read + resource_access_role_read.actions = AAZListType() + resource_access_role_read.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = _schema_resource_access_role_read.actions + actions.Element = AAZStrType() + + allowed_group_claims = _schema_resource_access_role_read.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + + _schema_resource_provider_authorization_rules_read = None + + @classmethod + def _build_schema_resource_provider_authorization_rules_read(cls, _schema): + if cls._schema_resource_provider_authorization_rules_read is not None: + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + return + + cls._schema_resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read = AAZObjectType() + + resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read + resource_provider_authorization_rules_read.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_subscription_state_override_action_read = None + + @classmethod + def _build_schema_subscription_state_override_action_read(cls, _schema): + if cls._schema_subscription_state_override_action_read is not None: + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + return + + cls._schema_subscription_state_override_action_read = _schema_subscription_state_override_action_read = AAZObjectType() + + subscription_state_override_action_read = _schema_subscription_state_override_action_read + subscription_state_override_action_read.action = AAZStrType( + flags={"required": True}, + ) + subscription_state_override_action_read.state = AAZStrType( + flags={"required": True}, + ) + + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Create"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_delete.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_delete.py new file mode 100644 index 00000000000..60c58d5e440 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_delete.py @@ -0,0 +1,146 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub default-rollout delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete the rollout resource. Rollout must be in terminal state. + + :example: default-rollout delete + az providerhub default-rollout delete -y --provider-namespace "{providerNamespace}" --rollout-name "{defaultRolloutName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/defaultrollouts/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.rollout_name = AAZStrArg( + options=["-n", "--name", "--rollout-name"], + help="The rollout name.", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[-\w\._\(\)]+$", + max_length=260, + ), + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.DefaultRolloutsDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class DefaultRolloutsDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_list.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_list.py new file mode 100644 index 00000000000..15d0480e684 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_list.py @@ -0,0 +1,2152 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub default-rollout list", +) +class List(AAZCommand): + """List the list of the rollouts for the given provider. + + :example: default-rollout list + az providerhub default-rollout list --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/defaultrollouts", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_PAGINATION = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.DefaultRolloutsListByProviderRegistration(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class DefaultRolloutsListByProviderRegistration(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ListHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.specification = AAZObjectType() + properties.status = AAZObjectType() + + specification = cls._schema_on_200.value.Element.properties.specification + specification.auto_provision_config = AAZObjectType( + serialized_name="autoProvisionConfig", + ) + specification.canary = AAZObjectType() + specification.expedited_rollout = AAZObjectType( + serialized_name="expeditedRollout", + ) + specification.high_traffic = AAZObjectType( + serialized_name="highTraffic", + ) + specification.low_traffic = AAZObjectType( + serialized_name="lowTraffic", + ) + specification.manifest_checkin_specification = AAZObjectType( + serialized_name="manifestCheckinSpecification", + ) + specification.medium_traffic = AAZObjectType( + serialized_name="mediumTraffic", + ) + specification.provider_registration = AAZObjectType( + serialized_name="providerRegistration", + ) + specification.resource_type_registrations = AAZListType( + serialized_name="resourceTypeRegistrations", + ) + specification.rest_of_the_world_group_one = AAZObjectType( + serialized_name="restOfTheWorldGroupOne", + ) + specification.rest_of_the_world_group_two = AAZObjectType( + serialized_name="restOfTheWorldGroupTwo", + ) + + auto_provision_config = cls._schema_on_200.value.Element.properties.specification.auto_provision_config + auto_provision_config.resource_graph = AAZBoolType( + serialized_name="resourceGraph", + ) + auto_provision_config.storage = AAZBoolType() + + canary = cls._schema_on_200.value.Element.properties.specification.canary + canary.regions = AAZListType() + canary.skip_regions = AAZListType( + serialized_name="skipRegions", + ) + + regions = cls._schema_on_200.value.Element.properties.specification.canary.regions + regions.Element = AAZStrType() + + skip_regions = cls._schema_on_200.value.Element.properties.specification.canary.skip_regions + skip_regions.Element = AAZStrType() + + expedited_rollout = cls._schema_on_200.value.Element.properties.specification.expedited_rollout + expedited_rollout.enabled = AAZBoolType() + + high_traffic = cls._schema_on_200.value.Element.properties.specification.high_traffic + high_traffic.regions = AAZListType() + high_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.value.Element.properties.specification.high_traffic.regions + regions.Element = AAZStrType() + + low_traffic = cls._schema_on_200.value.Element.properties.specification.low_traffic + low_traffic.regions = AAZListType() + low_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.value.Element.properties.specification.low_traffic.regions + regions.Element = AAZStrType() + + manifest_checkin_specification = cls._schema_on_200.value.Element.properties.specification.manifest_checkin_specification + manifest_checkin_specification.manifest_checkin_option = AAZStrType( + serialized_name="manifestCheckinOption", + ) + manifest_checkin_specification.manifest_checkin_params = AAZObjectType( + serialized_name="manifestCheckinParams", + ) + + manifest_checkin_params = cls._schema_on_200.value.Element.properties.specification.manifest_checkin_specification.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( + serialized_name="baselineArmManifestLocation", + flags={"required": True}, + ) + manifest_checkin_params.environment = AAZStrType( + flags={"required": True}, + ) + + medium_traffic = cls._schema_on_200.value.Element.properties.specification.medium_traffic + medium_traffic.regions = AAZListType() + medium_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.value.Element.properties.specification.medium_traffic.regions + regions.Element = AAZStrType() + + provider_registration = cls._schema_on_200.value.Element.properties.specification.provider_registration + provider_registration.id = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.kind = AAZStrType() + provider_registration.name = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.properties = AAZObjectType() + provider_registration.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ListHelper._build_schema_system_data_read(provider_registration.system_data) + provider_registration.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + _ListHelper._build_schema_notifications_read(properties.notifications) + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _ListHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ListHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ListHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _ListHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ListHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + management_group_global_notification_endpoints = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + optional_features = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + response_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.services + services.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _ListHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + template_deployment_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.value.Element.properties.specification.provider_registration.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + resource_type_registrations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations + resource_type_registrations.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.kind = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ListHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + _ListHelper._build_schema_notifications_read(properties.notifications) + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _ListHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ListHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ListHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _ListHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ListHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.metadata + metadata.Element = AAZFreeFormDictType() + + on_behalf_of_tokens = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_query_management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ListHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _ListHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + subscription_state_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = cls._schema_on_200.value.Element.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + rest_of_the_world_group_one = cls._schema_on_200.value.Element.properties.specification.rest_of_the_world_group_one + rest_of_the_world_group_one.regions = AAZListType() + rest_of_the_world_group_one.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.value.Element.properties.specification.rest_of_the_world_group_one.regions + regions.Element = AAZStrType() + + rest_of_the_world_group_two = cls._schema_on_200.value.Element.properties.specification.rest_of_the_world_group_two + rest_of_the_world_group_two.regions = AAZListType() + rest_of_the_world_group_two.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.value.Element.properties.specification.rest_of_the_world_group_two.regions + regions.Element = AAZStrType() + + status = cls._schema_on_200.value.Element.properties.status + status.completed_regions = AAZListType( + serialized_name="completedRegions", + ) + status.failed_or_skipped_regions = AAZDictType( + serialized_name="failedOrSkippedRegions", + ) + status.manifest_checkin_status = AAZObjectType( + serialized_name="manifestCheckinStatus", + ) + status.next_traffic_region = AAZStrType( + serialized_name="nextTrafficRegion", + ) + status.next_traffic_region_scheduled_time = AAZStrType( + serialized_name="nextTrafficRegionScheduledTime", + ) + status.subscription_reregistration_result = AAZStrType( + serialized_name="subscriptionReregistrationResult", + ) + + completed_regions = cls._schema_on_200.value.Element.properties.status.completed_regions + completed_regions.Element = AAZStrType() + + failed_or_skipped_regions = cls._schema_on_200.value.Element.properties.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectType() + _ListHelper._build_schema_extended_error_info_read(failed_or_skipped_regions.Element) + + manifest_checkin_status = cls._schema_on_200.value.Element.properties.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrType( + serialized_name="commitId", + ) + manifest_checkin_status.is_checked_in = AAZBoolType( + serialized_name="isCheckedIn", + flags={"required": True}, + ) + manifest_checkin_status.pull_request = AAZStrType( + serialized_name="pullRequest", + ) + manifest_checkin_status.status_message = AAZStrType( + serialized_name="statusMessage", + flags={"required": True}, + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + _schema_extended_error_info_read = None + + @classmethod + def _build_schema_extended_error_info_read(cls, _schema): + if cls._schema_extended_error_info_read is not None: + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + return + + cls._schema_extended_error_info_read = _schema_extended_error_info_read = AAZObjectType() + + extended_error_info_read = _schema_extended_error_info_read + extended_error_info_read.additional_info = AAZListType( + serialized_name="additionalInfo", + ) + extended_error_info_read.code = AAZStrType() + extended_error_info_read.details = AAZListType() + extended_error_info_read.message = AAZStrType() + extended_error_info_read.target = AAZStrType() + + additional_info = _schema_extended_error_info_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_extended_error_info_read.additional_info.Element + _element.info = AAZObjectType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + details = _schema_extended_error_info_read.details + details.Element = AAZObjectType() + cls._build_schema_extended_error_info_read(details.Element) + + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + + _schema_notifications_read = None + + @classmethod + def _build_schema_notifications_read(cls, _schema): + if cls._schema_notifications_read is not None: + _schema.Element = cls._schema_notifications_read.Element + return + + cls._schema_notifications_read = _schema_notifications_read = AAZListType() + + notifications_read = _schema_notifications_read + notifications_read.Element = AAZObjectType() + + _element = _schema_notifications_read.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + _schema.Element = cls._schema_notifications_read.Element + + _schema_resource_access_role_read = None + + @classmethod + def _build_schema_resource_access_role_read(cls, _schema): + if cls._schema_resource_access_role_read is not None: + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + return + + cls._schema_resource_access_role_read = _schema_resource_access_role_read = AAZObjectType() + + resource_access_role_read = _schema_resource_access_role_read + resource_access_role_read.actions = AAZListType() + resource_access_role_read.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = _schema_resource_access_role_read.actions + actions.Element = AAZStrType() + + allowed_group_claims = _schema_resource_access_role_read.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + + _schema_resource_provider_authorization_rules_read = None + + @classmethod + def _build_schema_resource_provider_authorization_rules_read(cls, _schema): + if cls._schema_resource_provider_authorization_rules_read is not None: + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + return + + cls._schema_resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read = AAZObjectType() + + resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read + resource_provider_authorization_rules_read.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_subscription_state_override_action_read = None + + @classmethod + def _build_schema_subscription_state_override_action_read(cls, _schema): + if cls._schema_subscription_state_override_action_read is not None: + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + return + + cls._schema_subscription_state_override_action_read = _schema_subscription_state_override_action_read = AAZObjectType() + + subscription_state_override_action_read = _schema_subscription_state_override_action_read + subscription_state_override_action_read.action = AAZStrType( + flags={"required": True}, + ) + subscription_state_override_action_read.state = AAZStrType( + flags={"required": True}, + ) + + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["List"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_show.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_show.py new file mode 100644 index 00000000000..1da3a119ae8 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_show.py @@ -0,0 +1,2156 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub default-rollout show", +) +class Show(AAZCommand): + """Get the default rollout details. + + :example: default-rollout show + az providerhub default-rollout show --provider-namespace "{providerNamespace}" --rollout-name "{defaultRolloutName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/defaultrollouts/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.rollout_name = AAZStrArg( + options=["-n", "--name", "--rollout-name"], + help="The rollout name.", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[-\w\._\(\)]+$", + max_length=260, + ), + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.DefaultRolloutsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class DefaultRolloutsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ShowHelper._build_schema_system_data_read(_schema_on_200.system_data) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.specification = AAZObjectType() + properties.status = AAZObjectType() + + specification = cls._schema_on_200.properties.specification + specification.auto_provision_config = AAZObjectType( + serialized_name="autoProvisionConfig", + ) + specification.canary = AAZObjectType() + specification.expedited_rollout = AAZObjectType( + serialized_name="expeditedRollout", + ) + specification.high_traffic = AAZObjectType( + serialized_name="highTraffic", + ) + specification.low_traffic = AAZObjectType( + serialized_name="lowTraffic", + ) + specification.manifest_checkin_specification = AAZObjectType( + serialized_name="manifestCheckinSpecification", + ) + specification.medium_traffic = AAZObjectType( + serialized_name="mediumTraffic", + ) + specification.provider_registration = AAZObjectType( + serialized_name="providerRegistration", + ) + specification.resource_type_registrations = AAZListType( + serialized_name="resourceTypeRegistrations", + ) + specification.rest_of_the_world_group_one = AAZObjectType( + serialized_name="restOfTheWorldGroupOne", + ) + specification.rest_of_the_world_group_two = AAZObjectType( + serialized_name="restOfTheWorldGroupTwo", + ) + + auto_provision_config = cls._schema_on_200.properties.specification.auto_provision_config + auto_provision_config.resource_graph = AAZBoolType( + serialized_name="resourceGraph", + ) + auto_provision_config.storage = AAZBoolType() + + canary = cls._schema_on_200.properties.specification.canary + canary.regions = AAZListType() + canary.skip_regions = AAZListType( + serialized_name="skipRegions", + ) + + regions = cls._schema_on_200.properties.specification.canary.regions + regions.Element = AAZStrType() + + skip_regions = cls._schema_on_200.properties.specification.canary.skip_regions + skip_regions.Element = AAZStrType() + + expedited_rollout = cls._schema_on_200.properties.specification.expedited_rollout + expedited_rollout.enabled = AAZBoolType() + + high_traffic = cls._schema_on_200.properties.specification.high_traffic + high_traffic.regions = AAZListType() + high_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.properties.specification.high_traffic.regions + regions.Element = AAZStrType() + + low_traffic = cls._schema_on_200.properties.specification.low_traffic + low_traffic.regions = AAZListType() + low_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.properties.specification.low_traffic.regions + regions.Element = AAZStrType() + + manifest_checkin_specification = cls._schema_on_200.properties.specification.manifest_checkin_specification + manifest_checkin_specification.manifest_checkin_option = AAZStrType( + serialized_name="manifestCheckinOption", + ) + manifest_checkin_specification.manifest_checkin_params = AAZObjectType( + serialized_name="manifestCheckinParams", + ) + + manifest_checkin_params = cls._schema_on_200.properties.specification.manifest_checkin_specification.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( + serialized_name="baselineArmManifestLocation", + flags={"required": True}, + ) + manifest_checkin_params.environment = AAZStrType( + flags={"required": True}, + ) + + medium_traffic = cls._schema_on_200.properties.specification.medium_traffic + medium_traffic.regions = AAZListType() + medium_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.properties.specification.medium_traffic.regions + regions.Element = AAZStrType() + + provider_registration = cls._schema_on_200.properties.specification.provider_registration + provider_registration.id = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.kind = AAZStrType() + provider_registration.name = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.properties = AAZObjectType() + provider_registration.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ShowHelper._build_schema_system_data_read(provider_registration.system_data) + provider_registration.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties.specification.provider_registration.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + _ShowHelper._build_schema_notifications_read(properties.notifications) + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _ShowHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ShowHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = cls._schema_on_200.properties.specification.provider_registration.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = cls._schema_on_200.properties.specification.provider_registration.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ShowHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = cls._schema_on_200.properties.specification.provider_registration.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.properties.specification.provider_registration.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.properties.specification.provider_registration.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _ShowHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.properties.specification.provider_registration.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ShowHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + management_group_global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + optional_features = cls._schema_on_200.properties.specification.provider_registration.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = cls._schema_on_200.properties.specification.provider_registration.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.properties.specification.provider_registration.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = cls._schema_on_200.properties.specification.provider_registration.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + response_options = cls._schema_on_200.properties.specification.provider_registration.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = cls._schema_on_200.properties.specification.provider_registration.properties.services + services.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _ShowHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + template_deployment_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + resource_type_registrations = cls._schema_on_200.properties.specification.resource_type_registrations + resource_type_registrations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.kind = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _ShowHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + _ShowHelper._build_schema_notifications_read(properties.notifications) + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _ShowHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ShowHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ShowHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _ShowHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ShowHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.metadata + metadata.Element = AAZFreeFormDictType() + + on_behalf_of_tokens = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_query_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ShowHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _ShowHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + subscription_state_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + rest_of_the_world_group_one = cls._schema_on_200.properties.specification.rest_of_the_world_group_one + rest_of_the_world_group_one.regions = AAZListType() + rest_of_the_world_group_one.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.properties.specification.rest_of_the_world_group_one.regions + regions.Element = AAZStrType() + + rest_of_the_world_group_two = cls._schema_on_200.properties.specification.rest_of_the_world_group_two + rest_of_the_world_group_two.regions = AAZListType() + rest_of_the_world_group_two.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.properties.specification.rest_of_the_world_group_two.regions + regions.Element = AAZStrType() + + status = cls._schema_on_200.properties.status + status.completed_regions = AAZListType( + serialized_name="completedRegions", + ) + status.failed_or_skipped_regions = AAZDictType( + serialized_name="failedOrSkippedRegions", + ) + status.manifest_checkin_status = AAZObjectType( + serialized_name="manifestCheckinStatus", + ) + status.next_traffic_region = AAZStrType( + serialized_name="nextTrafficRegion", + ) + status.next_traffic_region_scheduled_time = AAZStrType( + serialized_name="nextTrafficRegionScheduledTime", + ) + status.subscription_reregistration_result = AAZStrType( + serialized_name="subscriptionReregistrationResult", + ) + + completed_regions = cls._schema_on_200.properties.status.completed_regions + completed_regions.Element = AAZStrType() + + failed_or_skipped_regions = cls._schema_on_200.properties.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectType() + _ShowHelper._build_schema_extended_error_info_read(failed_or_skipped_regions.Element) + + manifest_checkin_status = cls._schema_on_200.properties.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrType( + serialized_name="commitId", + ) + manifest_checkin_status.is_checked_in = AAZBoolType( + serialized_name="isCheckedIn", + flags={"required": True}, + ) + manifest_checkin_status.pull_request = AAZStrType( + serialized_name="pullRequest", + ) + manifest_checkin_status.status_message = AAZStrType( + serialized_name="statusMessage", + flags={"required": True}, + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + _schema_extended_error_info_read = None + + @classmethod + def _build_schema_extended_error_info_read(cls, _schema): + if cls._schema_extended_error_info_read is not None: + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + return + + cls._schema_extended_error_info_read = _schema_extended_error_info_read = AAZObjectType() + + extended_error_info_read = _schema_extended_error_info_read + extended_error_info_read.additional_info = AAZListType( + serialized_name="additionalInfo", + ) + extended_error_info_read.code = AAZStrType() + extended_error_info_read.details = AAZListType() + extended_error_info_read.message = AAZStrType() + extended_error_info_read.target = AAZStrType() + + additional_info = _schema_extended_error_info_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_extended_error_info_read.additional_info.Element + _element.info = AAZObjectType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + details = _schema_extended_error_info_read.details + details.Element = AAZObjectType() + cls._build_schema_extended_error_info_read(details.Element) + + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + + _schema_notifications_read = None + + @classmethod + def _build_schema_notifications_read(cls, _schema): + if cls._schema_notifications_read is not None: + _schema.Element = cls._schema_notifications_read.Element + return + + cls._schema_notifications_read = _schema_notifications_read = AAZListType() + + notifications_read = _schema_notifications_read + notifications_read.Element = AAZObjectType() + + _element = _schema_notifications_read.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + _schema.Element = cls._schema_notifications_read.Element + + _schema_resource_access_role_read = None + + @classmethod + def _build_schema_resource_access_role_read(cls, _schema): + if cls._schema_resource_access_role_read is not None: + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + return + + cls._schema_resource_access_role_read = _schema_resource_access_role_read = AAZObjectType() + + resource_access_role_read = _schema_resource_access_role_read + resource_access_role_read.actions = AAZListType() + resource_access_role_read.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = _schema_resource_access_role_read.actions + actions.Element = AAZStrType() + + allowed_group_claims = _schema_resource_access_role_read.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + + _schema_resource_provider_authorization_rules_read = None + + @classmethod + def _build_schema_resource_provider_authorization_rules_read(cls, _schema): + if cls._schema_resource_provider_authorization_rules_read is not None: + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + return + + cls._schema_resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read = AAZObjectType() + + resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read + resource_provider_authorization_rules_read.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_subscription_state_override_action_read = None + + @classmethod + def _build_schema_subscription_state_override_action_read(cls, _schema): + if cls._schema_subscription_state_override_action_read is not None: + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + return + + cls._schema_subscription_state_override_action_read = _schema_subscription_state_override_action_read = AAZObjectType() + + subscription_state_override_action_read = _schema_subscription_state_override_action_read + subscription_state_override_action_read.action = AAZStrType( + flags={"required": True}, + ) + subscription_state_override_action_read.state = AAZStrType( + flags={"required": True}, + ) + + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Show"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_stop.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_stop.py new file mode 100644 index 00000000000..3f752bc52d4 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_stop.py @@ -0,0 +1,140 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub default-rollout stop", +) +class Stop(AAZCommand): + """Stops or cancels the rollout, if in progress. + + :example: default-rollout stop + az providerhub default-rollout stop --provider-namespace "{providerNamespace}" --rollout-name "{defaultRolloutName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/defaultrollouts/{}/stop", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.rollout_name = AAZStrArg( + options=["--rollout-name"], + help="The rollout name.", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[-\w\._\(\)]+$", + max_length=260, + ), + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.DefaultRolloutsStop(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class DefaultRolloutsStop(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}/stop", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + +class _StopHelper: + """Helper class for Stop""" + + +__all__ = ["Stop"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_update.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_update.py new file mode 100644 index 00000000000..3319628526f --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_update.py @@ -0,0 +1,6382 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub default-rollout update", +) +class Update(AAZCommand): + """Update the rollout details. + + :example: default-rollout update + az providerhub default-rollout update --provider-namespace "{providerNamespace}" --rollout-name "{defaultRolloutName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/defaultrollouts/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.rollout_name = AAZStrArg( + options=["-n", "--name", "--rollout-name"], + help="The rollout name.", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[-\w\._\(\)]+$", + max_length=260, + ), + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.status = AAZObjectArg( + options=["--status"], + arg_group="Properties", + nullable=True, + ) + + status = cls._args_schema.status + status.completed_regions = AAZListArg( + options=["completed-regions"], + nullable=True, + ) + status.failed_or_skipped_regions = AAZDictArg( + options=["failed-or-skipped-regions"], + nullable=True, + ) + status.manifest_checkin_status = AAZObjectArg( + options=["manifest-checkin-status"], + nullable=True, + ) + status.next_traffic_region = AAZStrArg( + options=["next-traffic-region"], + nullable=True, + enum={"Canary": "Canary", "HighTraffic": "HighTraffic", "LowTraffic": "LowTraffic", "MediumTraffic": "MediumTraffic", "None": "None", "NotSpecified": "NotSpecified", "RestOfTheWorldGroupOne": "RestOfTheWorldGroupOne", "RestOfTheWorldGroupTwo": "RestOfTheWorldGroupTwo"}, + ) + status.next_traffic_region_scheduled_time = AAZDateTimeArg( + options=["next-traffic-region-scheduled-time"], + nullable=True, + ) + status.subscription_reregistration_result = AAZStrArg( + options=["subscription-reregistration-result"], + nullable=True, + enum={"ConditionalUpdate": "ConditionalUpdate", "Failed": "Failed", "ForcedUpdate": "ForcedUpdate", "NotApplicable": "NotApplicable"}, + ) + + completed_regions = cls._args_schema.status.completed_regions + completed_regions.Element = AAZStrArg( + nullable=True, + ) + + failed_or_skipped_regions = cls._args_schema.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_extended_error_info_update(failed_or_skipped_regions.Element) + + manifest_checkin_status = cls._args_schema.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrArg( + options=["commit-id"], + nullable=True, + ) + manifest_checkin_status.is_checked_in = AAZBoolArg( + options=["is-checked-in"], + ) + manifest_checkin_status.pull_request = AAZStrArg( + options=["pull-request"], + nullable=True, + ) + manifest_checkin_status.status_message = AAZStrArg( + options=["status-message"], + ) + + # define Arg Group "Specification" + + _args_schema = cls._args_schema + _args_schema.auto_provision_config = AAZObjectArg( + options=["--auto-provision-config"], + arg_group="Specification", + nullable=True, + ) + _args_schema.canary = AAZObjectArg( + options=["--canary"], + arg_group="Specification", + help="The canary regions to skip.", + nullable=True, + ) + _args_schema.expedited_rollout = AAZObjectArg( + options=["--expedited-rollout"], + arg_group="Specification", + nullable=True, + ) + _args_schema.high_traffic = AAZObjectArg( + options=["--high-traffic"], + arg_group="Specification", + nullable=True, + ) + _args_schema.low_traffic = AAZObjectArg( + options=["--low-traffic"], + arg_group="Specification", + nullable=True, + ) + _args_schema.manifest_checkin_specification = AAZObjectArg( + options=["--manifest-checkin-spec", "--manifest-checkin-specification"], + arg_group="Specification", + help="The manifest checkin specification.", + nullable=True, + ) + _args_schema.medium_traffic = AAZObjectArg( + options=["--medium-traffic"], + arg_group="Specification", + nullable=True, + ) + _args_schema.provider_registration = AAZObjectArg( + options=["--provider-registration"], + arg_group="Specification", + nullable=True, + ) + _args_schema.resource_type_registrations = AAZListArg( + options=["--rt-regs", "--resource-type-registrations"], + arg_group="Specification", + help="The resource type registrations.", + nullable=True, + ) + _args_schema.rest_of_the_world_group_one = AAZObjectArg( + options=["--row1", "--rest-of-the-world-group-one"], + arg_group="Specification", + help="The rest of the world group one options.", + nullable=True, + ) + _args_schema.rest_of_the_world_group_two = AAZObjectArg( + options=["--row2", "--rest-of-the-world-group-two"], + arg_group="Specification", + help="The rest of the world group two options.", + nullable=True, + ) + + auto_provision_config = cls._args_schema.auto_provision_config + auto_provision_config.resource_graph = AAZBoolArg( + options=["resource-graph"], + nullable=True, + ) + auto_provision_config.storage = AAZBoolArg( + options=["storage"], + nullable=True, + ) + + canary = cls._args_schema.canary + canary.regions = AAZListArg( + options=["regions"], + nullable=True, + ) + canary.skip_regions = AAZListArg( + options=["skip-regions"], + help="The canary skip regions.", + nullable=True, + ) + + regions = cls._args_schema.canary.regions + regions.Element = AAZStrArg( + nullable=True, + ) + + skip_regions = cls._args_schema.canary.skip_regions + skip_regions.Element = AAZStrArg( + nullable=True, + ) + + expedited_rollout = cls._args_schema.expedited_rollout + expedited_rollout.enabled = AAZBoolArg( + options=["enabled"], + help="Indicates whether expedited rollout is enabled/disabled", + nullable=True, + ) + + high_traffic = cls._args_schema.high_traffic + high_traffic.regions = AAZListArg( + options=["regions"], + nullable=True, + ) + high_traffic.wait_duration = AAZDurationArg( + options=["wait-duration"], + nullable=True, + ) + + regions = cls._args_schema.high_traffic.regions + regions.Element = AAZStrArg( + nullable=True, + ) + + low_traffic = cls._args_schema.low_traffic + low_traffic.regions = AAZListArg( + options=["regions"], + nullable=True, + ) + low_traffic.wait_duration = AAZDurationArg( + options=["wait-duration"], + nullable=True, + ) + + regions = cls._args_schema.low_traffic.regions + regions.Element = AAZStrArg( + nullable=True, + ) + + manifest_checkin_specification = cls._args_schema.manifest_checkin_specification + manifest_checkin_specification.manifest_checkin_option = AAZStrArg( + options=["checkin-option", "manifest-checkin-option"], + help="The manifest checkin option.", + nullable=True, + enum={"AttemptAutomaticManifestCheckin": "AttemptAutomaticManifestCheckin", "DoNotAttemptAutomaticManifestCheckin": "DoNotAttemptAutomaticManifestCheckin"}, + ) + manifest_checkin_specification.manifest_checkin_params = AAZObjectArg( + options=["checkin-params", "manifest-checkin-params"], + help="The manifest checkin params.", + nullable=True, + ) + + manifest_checkin_params = cls._args_schema.manifest_checkin_specification.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrArg( + options=["baseline-arm-manifest-location"], + help="The baseline ARM manifest location supplied to the checkin manifest operation.", + ) + manifest_checkin_params.environment = AAZStrArg( + options=["environment"], + help="The environment supplied to the checkin manifest operation.", + ) + + medium_traffic = cls._args_schema.medium_traffic + medium_traffic.regions = AAZListArg( + options=["regions"], + nullable=True, + ) + medium_traffic.wait_duration = AAZDurationArg( + options=["wait-duration"], + nullable=True, + ) + + regions = cls._args_schema.medium_traffic.regions + regions.Element = AAZStrArg( + nullable=True, + ) + + provider_registration = cls._args_schema.provider_registration + provider_registration.kind = AAZStrArg( + options=["kind"], + help="Provider registration kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + nullable=True, + enum={"Direct": "Direct", "Hybrid": "Hybrid", "Managed": "Managed"}, + ) + provider_registration.capabilities = AAZListArg( + options=["capabilities"], + nullable=True, + ) + provider_registration.cross_tenant_token_validation = AAZStrArg( + options=["cross-tenant-token-validation"], + nullable=True, + enum={"EnsureSecureValidation": "EnsureSecureValidation", "PassthroughInsecureToken": "PassthroughInsecureToken"}, + ) + provider_registration.custom_manifest_version = AAZStrArg( + options=["custom-manifest-version"], + help="Custom manifest version.", + nullable=True, + ) + provider_registration.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + nullable=True, + ) + provider_registration.enable_tenant_linked_notification = AAZBoolArg( + options=["enable-tenant-linked-notification"], + nullable=True, + ) + provider_registration.features_rule = AAZObjectArg( + options=["features-rule"], + nullable=True, + ) + provider_registration.global_notification_endpoints = AAZListArg( + options=["global-notification-endpoints"], + nullable=True, + ) + provider_registration.legacy_namespace = AAZStrArg( + options=["legacy-namespace"], + help="Legacy namespace.", + nullable=True, + ) + provider_registration.legacy_registrations = AAZListArg( + options=["legacy-registrations"], + help="Legacy registrations.", + nullable=True, + ) + provider_registration.linked_notification_rules = AAZListArg( + options=["linked-notification-rules"], + nullable=True, + ) + provider_registration.management = AAZObjectArg( + options=["management"], + nullable=True, + ) + provider_registration.management_group_global_notification_endpoints = AAZListArg( + options=["management-group-global-notification-endpoints"], + help="Management groups global notification endpoints.", + nullable=True, + ) + provider_registration.metadata = AAZFreeFormDictArg( + options=["metadata"], + nullable=True, + ) + provider_registration.namespace = AAZStrArg( + options=["namespace"], + nullable=True, + ) + provider_registration.notification_options = AAZStrArg( + options=["notification-options"], + help="Notification options.", + nullable=True, + enum={"EmitSpendingLimit": "EmitSpendingLimit", "None": "None", "NotSpecified": "NotSpecified"}, + ) + provider_registration.notification_settings = AAZObjectArg( + options=["notification-settings"], + help="Notification settings.", + nullable=True, + ) + provider_registration.notifications = AAZListArg( + options=["notifications"], + nullable=True, + ) + cls._build_args_notifications_update(provider_registration.notifications) + provider_registration.optional_features = AAZListArg( + options=["optional-features"], + help="Optional features.", + nullable=True, + ) + provider_registration.private_resource_provider_configuration = AAZObjectArg( + options=["private-resource-provider-configuration"], + nullable=True, + ) + provider_registration.provider_authentication = AAZObjectArg( + options=["provider-authentication"], + nullable=True, + ) + provider_registration.provider_authorizations = AAZListArg( + options=["provider-authorizations"], + nullable=True, + ) + provider_registration.provider_hub_metadata = AAZObjectArg( + options=["provider-hub-metadata"], + nullable=True, + ) + provider_registration.provider_type = AAZStrArg( + options=["provider-type"], + nullable=True, + enum={"AuthorizationFree": "AuthorizationFree", "External": "External", "Hidden": "Hidden", "Internal": "Internal", "LegacyRegistrationRequired": "LegacyRegistrationRequired", "NotSpecified": "NotSpecified", "RegistrationFree": "RegistrationFree", "TenantOnly": "TenantOnly"}, + ) + provider_registration.provider_version = AAZStrArg( + options=["provider-version"], + nullable=True, + ) + provider_registration.request_header_options = AAZObjectArg( + options=["request-header-options"], + nullable=True, + ) + provider_registration.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + provider_registration.resource_group_lock_option_during_move = AAZObjectArg( + options=["resource-group-lock-option-during-move"], + help="Resource group lock option during move.", + nullable=True, + ) + provider_registration.resource_hydration_accounts = AAZListArg( + options=["resource-hydration-accounts"], + help="resource hydration accounts", + nullable=True, + ) + provider_registration.resource_provider_authorization_rules = AAZObjectArg( + options=["resource-provider-authorization-rules"], + nullable=True, + ) + cls._build_args_resource_provider_authorization_rules_update(provider_registration.resource_provider_authorization_rules) + provider_registration.response_options = AAZObjectArg( + options=["response-options"], + help="Response options.", + nullable=True, + ) + provider_registration.service_name = AAZStrArg( + options=["service-name"], + nullable=True, + ) + provider_registration.services = AAZListArg( + options=["services"], + nullable=True, + ) + provider_registration.subscription_lifecycle_notification_specifications = AAZObjectArg( + options=["subscription-lifecycle-notification-specifications"], + nullable=True, + ) + provider_registration.template_deployment_options = AAZObjectArg( + options=["template-deployment-options"], + nullable=True, + ) + provider_registration.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + nullable=True, + ) + cls._build_args_token_auth_configuration_update(provider_registration.token_auth_configuration) + + capabilities = cls._args_schema.provider_registration.capabilities + capabilities.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.capabilities.Element + _element.effect = AAZStrArg( + options=["effect"], + enum={"Allow": "Allow", "Disallow": "Disallow", "NotSpecified": "NotSpecified"}, + ) + _element.quota_id = AAZStrArg( + options=["quota-id"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + + required_features = cls._args_schema.provider_registration.capabilities.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + dsts_configuration = cls._args_schema.provider_registration.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + nullable=True, + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + ) + + features_rule = cls._args_schema.provider_registration.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + enum={"All": "All", "Any": "Any"}, + ) + + global_notification_endpoints = cls._args_schema.provider_registration.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_endpoint_update(global_notification_endpoints.Element) + + legacy_registrations = cls._args_schema.provider_registration.legacy_registrations + legacy_registrations.Element = AAZStrArg( + nullable=True, + ) + + linked_notification_rules = cls._args_schema.provider_registration.linked_notification_rules + linked_notification_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.linked_notification_rules.Element + _element.actions = AAZListArg( + options=["actions"], + nullable=True, + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + nullable=True, + ) + _element.endpoints = AAZListArg( + options=["endpoints"], + nullable=True, + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + nullable=True, + ) + cls._build_args_token_auth_configuration_update(_element.token_auth_configuration) + + actions = cls._args_schema.provider_registration.linked_notification_rules.Element.actions + actions.Element = AAZStrArg( + nullable=True, + ) + + dsts_configuration = cls._args_schema.provider_registration.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + nullable=True, + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + ) + + endpoints = cls._args_schema.provider_registration.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_endpoint_update(endpoints.Element) + + management = cls._args_schema.provider_registration.management + management.authorization_owners = AAZListArg( + options=["authorization-owners"], + nullable=True, + ) + management.canary_manifest_owners = AAZListArg( + options=["canary-manifest-owners"], + help="List of manifest owners for canary.", + nullable=True, + ) + management.error_response_message_options = AAZObjectArg( + options=["error-response-message-options"], + help="Options for error response messages.", + nullable=True, + ) + management.expedited_rollout_metadata = AAZObjectArg( + options=["expedited-rollout-metadata"], + help="Metadata for expedited rollout.", + nullable=True, + ) + management.expedited_rollout_submitters = AAZListArg( + options=["expedited-rollout-submitters"], + help="List of expedited rollout submitters.", + nullable=True, + ) + management.incident_contact_email = AAZStrArg( + options=["incident-contact-email"], + nullable=True, + ) + management.incident_routing_service = AAZStrArg( + options=["incident-routing-service"], + nullable=True, + ) + management.incident_routing_team = AAZStrArg( + options=["incident-routing-team"], + nullable=True, + ) + management.manifest_owners = AAZListArg( + options=["manifest-owners"], + nullable=True, + ) + management.pc_code = AAZStrArg( + options=["pc-code"], + help="The profit center code for the subscription.", + nullable=True, + ) + management.profit_center_program_id = AAZStrArg( + options=["profit-center-program-id"], + help="The profit center program id for the subscription.", + nullable=True, + ) + management.resource_access_policy = AAZStrArg( + options=["resource-access-policy"], + nullable=True, + enum={"AcisActionAllowed": "AcisActionAllowed", "AcisReadAllowed": "AcisReadAllowed", "NotSpecified": "NotSpecified"}, + ) + management.resource_access_roles = AAZListArg( + options=["resource-access-roles"], + nullable=True, + ) + management.schema_owners = AAZListArg( + options=["schema-owners"], + nullable=True, + ) + management.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + nullable=True, + ) + + authorization_owners = cls._args_schema.provider_registration.management.authorization_owners + authorization_owners.Element = AAZStrArg( + nullable=True, + ) + + canary_manifest_owners = cls._args_schema.provider_registration.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrArg( + nullable=True, + ) + + error_response_message_options = cls._args_schema.provider_registration.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrArg( + options=["server-failure-response-message-type"], + help="Type of server failure response message.", + nullable=True, + enum={"NotSpecified": "NotSpecified", "OutageReporting": "OutageReporting"}, + ) + + expedited_rollout_metadata = cls._args_schema.provider_registration.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolArg( + options=["enabled"], + help="Expedited rollout enabled?", + nullable=True, + ) + expedited_rollout_metadata.expedited_rollout_intent = AAZStrArg( + options=["expedited-rollout-intent"], + help="Expedited rollout intent.", + nullable=True, + enum={"Hotfix": "Hotfix", "NotSpecified": "NotSpecified"}, + ) + + expedited_rollout_submitters = cls._args_schema.provider_registration.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrArg( + nullable=True, + ) + + manifest_owners = cls._args_schema.provider_registration.management.manifest_owners + manifest_owners.Element = AAZStrArg( + nullable=True, + ) + + resource_access_roles = cls._args_schema.provider_registration.management.resource_access_roles + resource_access_roles.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_access_role_update(resource_access_roles.Element) + + schema_owners = cls._args_schema.provider_registration.management.schema_owners + schema_owners.Element = AAZStrArg( + nullable=True, + ) + + service_tree_infos = cls._args_schema.provider_registration.management.service_tree_infos + service_tree_infos.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_service_tree_info_update(service_tree_infos.Element) + + management_group_global_notification_endpoints = cls._args_schema.provider_registration.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_endpoint_update(management_group_global_notification_endpoints.Element) + + notification_settings = cls._args_schema.provider_registration.notification_settings + notification_settings.subscriber_settings = AAZListArg( + options=["subscriber-settings"], + nullable=True, + ) + + subscriber_settings = cls._args_schema.provider_registration.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListArg( + options=["filter-rules"], + nullable=True, + ) + + filter_rules = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListArg( + options=["endpoint-information"], + nullable=True, + ) + _element.filter_query = AAZStrArg( + options=["filter-query"], + nullable=True, + ) + + endpoint_information = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrArg( + options=["endpoint"], + nullable=True, + ) + _element.endpoint_type = AAZStrArg( + options=["endpoint-type"], + nullable=True, + enum={"Eventhub": "Eventhub", "Webhook": "Webhook"}, + ) + _element.schema_version = AAZStrArg( + options=["schema-version"], + nullable=True, + ) + + optional_features = cls._args_schema.provider_registration.optional_features + optional_features.Element = AAZStrArg( + nullable=True, + ) + + private_resource_provider_configuration = cls._args_schema.provider_registration.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListArg( + options=["allowed-subscriptions"], + nullable=True, + ) + + allowed_subscriptions = cls._args_schema.provider_registration.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrArg( + nullable=True, + ) + + provider_authentication = cls._args_schema.provider_registration.provider_authentication + provider_authentication.allowed_audiences = AAZListArg( + options=["allowed-audiences"], + ) + + allowed_audiences = cls._args_schema.provider_registration.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrArg( + nullable=True, + ) + + provider_authorizations = cls._args_schema.provider_registration.provider_authorizations + provider_authorizations.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_authorization_update(provider_authorizations.Element) + + provider_hub_metadata = cls._args_schema.provider_registration.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrArg( + options=["direct-rp-role-definition-id"], + nullable=True, + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrArg( + options=["global-async-operation-resource-type-name"], + nullable=True, + ) + provider_hub_metadata.provider_authentication = AAZObjectArg( + options=["provider-authentication"], + nullable=True, + ) + provider_hub_metadata.provider_authorizations = AAZListArg( + options=["provider-authorizations"], + nullable=True, + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrArg( + options=["regional-async-operation-resource-type-name"], + nullable=True, + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectArg( + options=["third-party-provider-authorization"], + nullable=True, + ) + + provider_authentication = cls._args_schema.provider_registration.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListArg( + options=["allowed-audiences"], + ) + + allowed_audiences = cls._args_schema.provider_registration.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrArg( + nullable=True, + ) + + provider_authorizations = cls._args_schema.provider_registration.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_authorization_update(provider_authorizations.Element) + + third_party_provider_authorization = cls._args_schema.provider_registration.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListArg( + options=["authorizations"], + nullable=True, + ) + third_party_provider_authorization.managed_by_tenant_id = AAZStrArg( + options=["managed-by-tenant-id"], + nullable=True, + ) + + authorizations = cls._args_schema.provider_registration.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrArg( + options=["principal-id"], + ) + _element.role_definition_id = AAZStrArg( + options=["role-definition-id"], + ) + + request_header_options = cls._args_schema.provider_registration.request_header_options + request_header_options.opt_in_headers = AAZStrArg( + options=["opt-in-headers"], + nullable=True, + enum={"ClientGroupMembership": "ClientGroupMembership", "ClientPrincipalNameEncoded": "ClientPrincipalNameEncoded", "MSIResourceIdEncoded": "MSIResourceIdEncoded", "ManagementGroupAncestorsEncoded": "ManagementGroupAncestorsEncoded", "NotSpecified": "NotSpecified", "PrivateLinkId": "PrivateLinkId", "PrivateLinkResourceId": "PrivateLinkResourceId", "PrivateLinkVnetTrafficTag": "PrivateLinkVnetTrafficTag", "ResourceGroupLocation": "ResourceGroupLocation", "SignedAuxiliaryTokens": "SignedAuxiliaryTokens", "SignedUserToken": "SignedUserToken", "UnboundedClientGroupMembership": "UnboundedClientGroupMembership"}, + ) + request_header_options.opt_out_headers = AAZStrArg( + options=["opt-out-headers"], + nullable=True, + enum={"NotSpecified": "NotSpecified", "SystemDataCreatedByLastModifiedBy": "SystemDataCreatedByLastModifiedBy"}, + ) + + required_features = cls._args_schema.provider_registration.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + resource_group_lock_option_during_move = cls._args_schema.provider_registration.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrArg( + options=["block-action-verb"], + help="The action verb that will be blocked when the resource group is locked during move.", + nullable=True, + enum={"Action": "Action", "Delete": "Delete", "NotSpecified": "NotSpecified", "Read": "Read", "Unrecognized": "Unrecognized", "Write": "Write"}, + ) + + resource_hydration_accounts = cls._args_schema.provider_registration.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.resource_hydration_accounts.Element + _element.account_name = AAZStrArg( + options=["account-name"], + nullable=True, + ) + _element.encrypted_key = AAZStrArg( + options=["encrypted-key"], + nullable=True, + ) + _element.max_child_resource_consistency_job_limit = AAZIntArg( + options=["max-child-resource-consistency-job-limit"], + nullable=True, + ) + _element.subscription_id = AAZStrArg( + options=["subscription-id"], + nullable=True, + ) + + response_options = cls._args_schema.provider_registration.response_options + response_options.service_client_options_type = AAZStrArg( + options=["service-client-options-type"], + nullable=True, + enum={"DisableAutomaticDecompression": "DisableAutomaticDecompression", "NotSpecified": "NotSpecified"}, + ) + + services = cls._args_schema.provider_registration.services + services.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_registration.services.Element + _element.service_name = AAZStrArg( + options=["service-name"], + nullable=True, + ) + _element.status = AAZStrArg( + options=["status"], + nullable=True, + enum={"Active": "Active", "Inactive": "Inactive"}, + ) + + subscription_lifecycle_notification_specifications = cls._args_schema.provider_registration.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZDurationArg( + options=["soft-delete-ttl"], + nullable=True, + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListArg( + options=["subscription-state-override-actions"], + nullable=True, + ) + + subscription_state_override_actions = cls._args_schema.provider_registration.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_subscription_state_override_action_update(subscription_state_override_actions.Element) + + template_deployment_options = cls._args_schema.provider_registration.template_deployment_options + template_deployment_options.preflight_options = AAZListArg( + options=["preflight-options"], + nullable=True, + ) + template_deployment_options.preflight_supported = AAZBoolArg( + options=["preflight-supported"], + nullable=True, + ) + + preflight_options = cls._args_schema.provider_registration.template_deployment_options.preflight_options + preflight_options.Element = AAZStrArg( + nullable=True, + enum={"ContinueDeploymentOnFailure": "ContinueDeploymentOnFailure", "DefaultValidationOnly": "DefaultValidationOnly", "None": "None"}, + ) + + resource_type_registrations = cls._args_schema.resource_type_registrations + resource_type_registrations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element + _element.kind = AAZStrArg( + options=["kind"], + help="Resource type registration kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + nullable=True, + enum={"Direct": "Direct", "Hybrid": "Hybrid", "Managed": "Managed"}, + ) + _element.add_resource_list_target_locations = AAZBoolArg( + options=["add-resource-list-target-locations"], + help="Add resource list target locations?", + nullable=True, + ) + _element.additional_options = AAZStrArg( + options=["additional-options"], + nullable=True, + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + _element.allow_empty_role_assignments = AAZBoolArg( + options=["allow-empty-role-assignments"], + nullable=True, + ) + _element.allowed_resource_names = AAZListArg( + options=["allowed-resource-names"], + nullable=True, + ) + _element.allowed_template_deployment_reference_actions = AAZListArg( + options=["allowed-template-deployment-reference-actions"], + help="Allowed template deployment reference actions.", + nullable=True, + ) + _element.allowed_unauthorized_actions = AAZListArg( + options=["allowed-unauthorized-actions"], + nullable=True, + ) + _element.api_profiles = AAZListArg( + options=["api-profiles"], + nullable=True, + ) + _element.async_operation_resource_type_name = AAZStrArg( + options=["async-operation-resource-type-name"], + nullable=True, + ) + _element.async_timeout_rules = AAZListArg( + options=["async-timeout-rules"], + help="Async timeout rules", + nullable=True, + ) + _element.authorization_action_mappings = AAZListArg( + options=["authorization-action-mappings"], + nullable=True, + ) + _element.availability_zone_rule = AAZObjectArg( + options=["availability-zone-rule"], + nullable=True, + ) + _element.capacity_rule = AAZObjectArg( + options=["capacity-rule"], + help="Capacity rule.", + nullable=True, + ) + _element.category = AAZStrArg( + options=["category"], + nullable=True, + enum={"FreeForm": "FreeForm", "Internal": "Internal", "None": "None", "PureProxy": "PureProxy"}, + ) + _element.check_name_availability_specifications = AAZObjectArg( + options=["check-name-availability-specifications"], + nullable=True, + ) + _element.common_api_versions = AAZListArg( + options=["common-api-versions"], + help="Common API versions for the resource type.", + nullable=True, + ) + _element.cross_tenant_token_validation = AAZStrArg( + options=["cross-tenant-token-validation"], + nullable=True, + enum={"EnsureSecureValidation": "EnsureSecureValidation", "PassthroughInsecureToken": "PassthroughInsecureToken"}, + ) + _element.default_api_version = AAZStrArg( + options=["default-api-version"], + nullable=True, + ) + _element.disallowed_action_verbs = AAZListArg( + options=["disallowed-action-verbs"], + nullable=True, + ) + _element.disallowed_end_user_operations = AAZListArg( + options=["disallowed-end-user-operations"], + nullable=True, + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + nullable=True, + ) + _element.enable_async_operation = AAZBoolArg( + options=["enable-async-operation"], + nullable=True, + ) + _element.enable_third_party_s2_s = AAZBoolArg( + options=["enable-third-party-s2-s"], + nullable=True, + ) + _element.endpoints = AAZListArg( + options=["endpoints"], + nullable=True, + ) + _element.extended_locations = AAZListArg( + options=["extended-locations"], + nullable=True, + ) + _element.extension_options = AAZObjectArg( + options=["extension-options"], + nullable=True, + ) + _element.features_rule = AAZObjectArg( + options=["features-rule"], + nullable=True, + ) + _element.frontdoor_request_mode = AAZStrArg( + options=["frontdoor-request-mode"], + nullable=True, + enum={"NotSpecified": "NotSpecified", "UseManifest": "UseManifest"}, + ) + _element.grouping_tag = AAZStrArg( + options=["grouping-tag"], + help="Grouping tag.", + nullable=True, + ) + _element.identity_management = AAZObjectArg( + options=["identity-management"], + nullable=True, + ) + _element.is_pure_proxy = AAZBoolArg( + options=["is-pure-proxy"], + nullable=True, + ) + _element.legacy_name = AAZStrArg( + options=["legacy-name"], + nullable=True, + ) + _element.legacy_names = AAZListArg( + options=["legacy-names"], + nullable=True, + ) + _element.legacy_policy = AAZObjectArg( + options=["legacy-policy"], + nullable=True, + ) + _element.linked_access_checks = AAZListArg( + options=["linked-access-checks"], + nullable=True, + ) + _element.linked_notification_rules = AAZListArg( + options=["linked-notification-rules"], + nullable=True, + ) + _element.linked_operation_rules = AAZListArg( + options=["linked-operation-rules"], + nullable=True, + ) + _element.logging_rules = AAZListArg( + options=["logging-rules"], + nullable=True, + ) + _element.managed_resource_group_configuration = AAZObjectArg( + options=["managed-resource-group-configuration"], + nullable=True, + ) + _element.management = AAZObjectArg( + options=["management"], + nullable=True, + ) + _element.manifest_link = AAZStrArg( + options=["manifest-link"], + help="Manifest link.", + nullable=True, + ) + _element.marketplace_options = AAZObjectArg( + options=["marketplace-options"], + help="Marketplace options.", + nullable=True, + ) + _element.marketplace_type = AAZStrArg( + options=["marketplace-type"], + nullable=True, + enum={"AddOn": "AddOn", "Bypass": "Bypass", "NotSpecified": "NotSpecified", "Store": "Store"}, + ) + _element.metadata = AAZDictArg( + options=["metadata"], + nullable=True, + ) + _element.notifications = AAZListArg( + options=["notifications"], + nullable=True, + ) + cls._build_args_notifications_update(_element.notifications) + _element.on_behalf_of_tokens = AAZObjectArg( + options=["on-behalf-of-tokens"], + nullable=True, + ) + _element.open_api_configuration = AAZObjectArg( + options=["open-api-configuration"], + nullable=True, + ) + _element.policy_execution_type = AAZStrArg( + options=["policy-execution-type"], + nullable=True, + enum={"BypassPolicies": "BypassPolicies", "ExecutePolicies": "ExecutePolicies", "ExpectPartialPutRequests": "ExpectPartialPutRequests", "NotSpecified": "NotSpecified"}, + ) + _element.private_endpoint_configuration = AAZObjectArg( + options=["private-endpoint-configuration"], + nullable=True, + ) + _element.quota_rule = AAZObjectArg( + options=["quota-rule"], + nullable=True, + ) + _element.regionality = AAZStrArg( + options=["regionality"], + nullable=True, + enum={"Global": "Global", "NotSpecified": "NotSpecified", "Regional": "Regional"}, + ) + _element.request_header_options = AAZObjectArg( + options=["request-header-options"], + nullable=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + _element.resource_cache = AAZObjectArg( + options=["resource-cache"], + help="Resource cache options.", + nullable=True, + ) + _element.resource_concurrency_control_options = AAZDictArg( + options=["resource-concurrency-control-options"], + nullable=True, + ) + _element.resource_deletion_policy = AAZStrArg( + options=["resource-deletion-policy"], + nullable=True, + enum={"CascadeDeleteAll": "CascadeDeleteAll", "CascadeDeleteProxyOnlyChildren": "CascadeDeleteProxyOnlyChildren", "NotSpecified": "NotSpecified"}, + ) + _element.resource_graph_configuration = AAZObjectArg( + options=["resource-graph-configuration"], + nullable=True, + ) + _element.resource_management_options = AAZObjectArg( + options=["resource-management-options"], + help="Resource management options.", + nullable=True, + ) + _element.resource_move_policy = AAZObjectArg( + options=["resource-move-policy"], + nullable=True, + ) + _element.resource_provider_authorization_rules = AAZObjectArg( + options=["resource-provider-authorization-rules"], + nullable=True, + ) + cls._build_args_resource_provider_authorization_rules_update(_element.resource_provider_authorization_rules) + _element.resource_query_management = AAZObjectArg( + options=["resource-query-management"], + help="Resource query management options.", + nullable=True, + ) + _element.resource_sub_type = AAZStrArg( + options=["resource-sub-type"], + nullable=True, + enum={"AsyncOperation": "AsyncOperation", "NotSpecified": "NotSpecified"}, + ) + _element.resource_type_common_attribute_management = AAZObjectArg( + options=["resource-type-common-attribute-management"], + help="Resource type common attribute management.", + nullable=True, + ) + _element.resource_validation = AAZStrArg( + options=["resource-validation"], + nullable=True, + enum={"NotSpecified": "NotSpecified", "ProfaneWords": "ProfaneWords", "ReservedWords": "ReservedWords"}, + ) + _element.routing_rule = AAZObjectArg( + options=["routing-rule"], + help="Routing rule.", + nullable=True, + ) + _element.routing_type = AAZStrArg( + options=["routing-type"], + nullable=True, + enum={"CascadeExtension": "CascadeExtension", "Default": "Default", "Extension": "Extension", "Failover": "Failover", "Fanout": "Fanout", "HostBased": "HostBased", "LocationBased": "LocationBased", "ProxyOnly": "ProxyOnly", "Tenant": "Tenant"}, + ) + _element.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + nullable=True, + ) + _element.sku_link = AAZStrArg( + options=["sku-link"], + nullable=True, + ) + _element.subscription_lifecycle_notification_specifications = AAZObjectArg( + options=["subscription-lifecycle-notification-specifications"], + nullable=True, + ) + _element.subscription_state_rules = AAZListArg( + options=["subscription-state-rules"], + nullable=True, + ) + _element.supports_tags = AAZBoolArg( + options=["supports-tags"], + nullable=True, + ) + _element.swagger_specifications = AAZListArg( + options=["swagger-specifications"], + nullable=True, + ) + _element.template_deployment_options = AAZObjectArg( + options=["template-deployment-options"], + nullable=True, + ) + _element.template_deployment_policy = AAZObjectArg( + options=["template-deployment-policy"], + nullable=True, + ) + _element.throttling_rules = AAZListArg( + options=["throttling-rules"], + nullable=True, + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + nullable=True, + ) + cls._build_args_token_auth_configuration_update(_element.token_auth_configuration) + + allowed_resource_names = cls._args_schema.resource_type_registrations.Element.allowed_resource_names + allowed_resource_names.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.allowed_resource_names.Element + _element.get_action_verb = AAZStrArg( + options=["get-action-verb"], + help="Get action verb.", + nullable=True, + ) + _element.name = AAZStrArg( + options=["name"], + help="Resource name.", + nullable=True, + ) + + allowed_template_deployment_reference_actions = cls._args_schema.resource_type_registrations.Element.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrArg( + nullable=True, + ) + + allowed_unauthorized_actions = cls._args_schema.resource_type_registrations.Element.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrArg( + nullable=True, + ) + + api_profiles = cls._args_schema.resource_type_registrations.Element.api_profiles + api_profiles.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.api_profiles.Element + _element.api_version = AAZStrArg( + options=["api-version"], + help="Api version.", + nullable=True, + ) + _element.profile_version = AAZStrArg( + options=["profile-version"], + help="Profile version.", + nullable=True, + ) + + async_timeout_rules = cls._args_schema.resource_type_registrations.Element.async_timeout_rules + async_timeout_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.async_timeout_rules.Element + _element.action_name = AAZStrArg( + options=["action-name"], + nullable=True, + ) + _element.timeout = AAZStrArg( + options=["timeout"], + nullable=True, + ) + + authorization_action_mappings = cls._args_schema.resource_type_registrations.Element.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.authorization_action_mappings.Element + _element.desired = AAZStrArg( + options=["desired"], + nullable=True, + ) + _element.original = AAZStrArg( + options=["original"], + nullable=True, + ) + + availability_zone_rule = cls._args_schema.resource_type_registrations.Element.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrArg( + options=["availability-zone-policy"], + nullable=True, + enum={"MultiZoned": "MultiZoned", "NotSpecified": "NotSpecified", "SingleZoned": "SingleZoned"}, + ) + + capacity_rule = cls._args_schema.resource_type_registrations.Element.capacity_rule + capacity_rule.capacity_policy = AAZStrArg( + options=["capacity-policy"], + help="Capacity policy.", + nullable=True, + enum={"Default": "Default", "Restricted": "Restricted"}, + ) + capacity_rule.sku_alias = AAZStrArg( + options=["sku-alias"], + help="Sku alias", + nullable=True, + ) + + check_name_availability_specifications = cls._args_schema.resource_type_registrations.Element.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolArg( + options=["enable-default-validation"], + nullable=True, + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListArg( + options=["resource-types-with-custom-validation"], + nullable=True, + ) + + resource_types_with_custom_validation = cls._args_schema.resource_type_registrations.Element.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrArg( + nullable=True, + ) + + common_api_versions = cls._args_schema.resource_type_registrations.Element.common_api_versions + common_api_versions.Element = AAZStrArg( + nullable=True, + ) + + disallowed_action_verbs = cls._args_schema.resource_type_registrations.Element.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrArg( + nullable=True, + ) + + disallowed_end_user_operations = cls._args_schema.resource_type_registrations.Element.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrArg( + nullable=True, + ) + + dsts_configuration = cls._args_schema.resource_type_registrations.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + nullable=True, + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + ) + + endpoints = cls._args_schema.resource_type_registrations.Element.endpoints + endpoints.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.endpoints.Element + _element.api_version = AAZStrArg( + options=["api-version"], + help="Api version.", + nullable=True, + ) + _element.api_versions = AAZListArg( + options=["api-versions"], + nullable=True, + ) + _element.data_boundary = AAZStrArg( + options=["data-boundary"], + nullable=True, + enum={"EU": "EU", "Global": "Global", "NotDefined": "NotDefined", "US": "US"}, + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + nullable=True, + ) + _element.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + _element.endpoint_type = AAZStrArg( + options=["endpoint-type"], + nullable=True, + enum={"Canary": "Canary", "NotSpecified": "NotSpecified", "Production": "Production", "TestInProduction": "TestInProduction"}, + ) + _element.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + nullable=True, + ) + _element.extensions = AAZListArg( + options=["extensions"], + nullable=True, + ) + _element.features_rule = AAZObjectArg( + options=["features-rule"], + nullable=True, + ) + _element.kind = AAZStrArg( + options=["kind"], + help="Resource type endpoint kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + nullable=True, + enum={"Direct": "Direct", "Managed": "Managed"}, + ) + _element.locations = AAZListArg( + options=["locations"], + nullable=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + _element.sku_link = AAZStrArg( + options=["sku-link"], + nullable=True, + ) + _element.timeout = AAZDurationArg( + options=["timeout"], + nullable=True, + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + nullable=True, + ) + cls._build_args_token_auth_configuration_update(_element.token_auth_configuration) + _element.zones = AAZListArg( + options=["zones"], + help="List of zones.", + nullable=True, + ) + + api_versions = cls._args_schema.resource_type_registrations.Element.endpoints.Element.api_versions + api_versions.Element = AAZStrArg( + nullable=True, + ) + + dsts_configuration = cls._args_schema.resource_type_registrations.Element.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + nullable=True, + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + ) + + extensions = cls._args_schema.resource_type_registrations.Element.endpoints.Element.extensions + extensions.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + nullable=True, + ) + _element.extension_categories = AAZListArg( + options=["extension-categories"], + nullable=True, + ) + _element.timeout = AAZDurationArg( + options=["timeout"], + nullable=True, + ) + + extension_categories = cls._args_schema.resource_type_registrations.Element.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrArg( + nullable=True, + enum={"BestMatchOperationBegin": "BestMatchOperationBegin", "NotSpecified": "NotSpecified", "ResourceCreationBegin": "ResourceCreationBegin", "ResourceCreationCompleted": "ResourceCreationCompleted", "ResourceCreationValidate": "ResourceCreationValidate", "ResourceDeletionBegin": "ResourceDeletionBegin", "ResourceDeletionCompleted": "ResourceDeletionCompleted", "ResourceDeletionValidate": "ResourceDeletionValidate", "ResourceMoveBegin": "ResourceMoveBegin", "ResourceMoveCompleted": "ResourceMoveCompleted", "ResourcePatchBegin": "ResourcePatchBegin", "ResourcePatchCompleted": "ResourcePatchCompleted", "ResourcePatchValidate": "ResourcePatchValidate", "ResourcePostAction": "ResourcePostAction", "ResourceReadBegin": "ResourceReadBegin", "ResourceReadValidate": "ResourceReadValidate", "SubscriptionLifecycleNotification": "SubscriptionLifecycleNotification", "SubscriptionLifecycleNotificationDeletion": "SubscriptionLifecycleNotificationDeletion"}, + ) + + features_rule = cls._args_schema.resource_type_registrations.Element.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + enum={"All": "All", "Any": "Any"}, + ) + + locations = cls._args_schema.resource_type_registrations.Element.endpoints.Element.locations + locations.Element = AAZStrArg( + nullable=True, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.endpoints.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + zones = cls._args_schema.resource_type_registrations.Element.endpoints.Element.zones + zones.Element = AAZStrArg( + nullable=True, + ) + + extended_locations = cls._args_schema.resource_type_registrations.Element.extended_locations + extended_locations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.extended_locations.Element + _element.supported_policy = AAZStrArg( + options=["supported-policy"], + nullable=True, + ) + _element.type = AAZStrArg( + options=["type"], + nullable=True, + ) + + extension_options = cls._args_schema.resource_type_registrations.Element.extension_options + extension_options.resource_creation_begin = AAZObjectArg( + options=["resource-creation-begin"], + nullable=True, + ) + + resource_creation_begin = cls._args_schema.resource_type_registrations.Element.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListArg( + options=["request"], + nullable=True, + ) + resource_creation_begin.response = AAZListArg( + options=["response"], + nullable=True, + ) + + request = cls._args_schema.resource_type_registrations.Element.extension_options.resource_creation_begin.request + request.Element = AAZStrArg( + nullable=True, + enum={"DoNotMergeExistingReadOnlyAndSecretProperties": "DoNotMergeExistingReadOnlyAndSecretProperties", "IncludeInternalMetadata": "IncludeInternalMetadata", "NotSpecified": "NotSpecified"}, + ) + + response = cls._args_schema.resource_type_registrations.Element.extension_options.resource_creation_begin.response + response.Element = AAZStrArg( + nullable=True, + enum={"DoNotMergeExistingReadOnlyAndSecretProperties": "DoNotMergeExistingReadOnlyAndSecretProperties", "IncludeInternalMetadata": "IncludeInternalMetadata", "NotSpecified": "NotSpecified"}, + ) + + features_rule = cls._args_schema.resource_type_registrations.Element.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + enum={"All": "All", "Any": "Any"}, + ) + + identity_management = cls._args_schema.resource_type_registrations.Element.identity_management + identity_management.application_id = AAZStrArg( + options=["application-id"], + nullable=True, + ) + identity_management.application_ids = AAZListArg( + options=["application-ids"], + nullable=True, + ) + identity_management.delegation_app_ids = AAZListArg( + options=["delegation-app-ids"], + nullable=True, + ) + identity_management.type = AAZStrArg( + options=["type"], + nullable=True, + enum={"Actor": "Actor", "DelegatedResourceIdentity": "DelegatedResourceIdentity", "NotSpecified": "NotSpecified", "SystemAssigned": "SystemAssigned", "UserAssigned": "UserAssigned"}, + ) + + application_ids = cls._args_schema.resource_type_registrations.Element.identity_management.application_ids + application_ids.Element = AAZStrArg( + nullable=True, + ) + + delegation_app_ids = cls._args_schema.resource_type_registrations.Element.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrArg( + nullable=True, + ) + + legacy_names = cls._args_schema.resource_type_registrations.Element.legacy_names + legacy_names.Element = AAZStrArg( + nullable=True, + ) + + legacy_policy = cls._args_schema.resource_type_registrations.Element.legacy_policy + legacy_policy.disallowed_conditions = AAZListArg( + options=["disallowed-conditions"], + nullable=True, + ) + legacy_policy.disallowed_legacy_operations = AAZListArg( + options=["disallowed-legacy-operations"], + nullable=True, + ) + + disallowed_conditions = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListArg( + options=["disallowed-legacy-operations"], + nullable=True, + ) + _element.feature = AAZStrArg( + options=["feature"], + help="Feature string.", + nullable=True, + ) + + disallowed_legacy_operations = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrArg( + nullable=True, + enum={"Action": "Action", "AzureAsyncOperationWaiting": "AzureAsyncOperationWaiting", "Create": "Create", "Delete": "Delete", "DeploymentCleanup": "DeploymentCleanup", "EvaluateDeploymentOutput": "EvaluateDeploymentOutput", "NotSpecified": "NotSpecified", "Read": "Read", "ResourceCacheWaiting": "ResourceCacheWaiting", "Waiting": "Waiting"}, + ) + + disallowed_legacy_operations = cls._args_schema.resource_type_registrations.Element.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrArg( + nullable=True, + enum={"Action": "Action", "AzureAsyncOperationWaiting": "AzureAsyncOperationWaiting", "Create": "Create", "Delete": "Delete", "DeploymentCleanup": "DeploymentCleanup", "EvaluateDeploymentOutput": "EvaluateDeploymentOutput", "NotSpecified": "NotSpecified", "Read": "Read", "ResourceCacheWaiting": "ResourceCacheWaiting", "Waiting": "Waiting"}, + ) + + linked_access_checks = cls._args_schema.resource_type_registrations.Element.linked_access_checks + linked_access_checks.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.linked_access_checks.Element + _element.action_name = AAZStrArg( + options=["action-name"], + nullable=True, + ) + _element.linked_action = AAZStrArg( + options=["linked-action"], + nullable=True, + ) + _element.linked_action_verb = AAZStrArg( + options=["linked-action-verb"], + nullable=True, + ) + _element.linked_property = AAZStrArg( + options=["linked-property"], + nullable=True, + ) + _element.linked_type = AAZStrArg( + options=["linked-type"], + nullable=True, + ) + + linked_notification_rules = cls._args_schema.resource_type_registrations.Element.linked_notification_rules + linked_notification_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element + _element.actions = AAZListArg( + options=["actions"], + nullable=True, + ) + _element.actions_on_failed_operation = AAZListArg( + options=["actions-on-failed-operation"], + nullable=True, + ) + _element.fast_path_actions = AAZListArg( + options=["fast-path-actions"], + nullable=True, + ) + _element.fast_path_actions_on_failed_operation = AAZListArg( + options=["fast-path-actions-on-failed-operation"], + nullable=True, + ) + _element.linked_notification_timeout = AAZDurationArg( + options=["linked-notification-timeout"], + nullable=True, + ) + + actions = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.actions + actions.Element = AAZStrArg( + nullable=True, + ) + + actions_on_failed_operation = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrArg( + nullable=True, + ) + + fast_path_actions = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrArg( + nullable=True, + ) + + fast_path_actions_on_failed_operation = cls._args_schema.resource_type_registrations.Element.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrArg( + nullable=True, + ) + + linked_operation_rules = cls._args_schema.resource_type_registrations.Element.linked_operation_rules + linked_operation_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.linked_operation_rules.Element + _element.depends_on_types = AAZListArg( + options=["depends-on-types"], + help="Depends on types.", + nullable=True, + ) + _element.linked_action = AAZStrArg( + options=["linked-action"], + enum={"Blocked": "Blocked", "Enabled": "Enabled", "NotSpecified": "NotSpecified", "Validate": "Validate"}, + ) + _element.linked_operation = AAZStrArg( + options=["linked-operation"], + enum={"CrossResourceGroupResourceMove": "CrossResourceGroupResourceMove", "CrossSubscriptionResourceMove": "CrossSubscriptionResourceMove", "None": "None"}, + ) + + depends_on_types = cls._args_schema.resource_type_registrations.Element.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrArg( + nullable=True, + ) + + logging_rules = cls._args_schema.resource_type_registrations.Element.logging_rules + logging_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.logging_rules.Element + _element.action = AAZStrArg( + options=["action"], + ) + _element.detail_level = AAZStrArg( + options=["detail-level"], + enum={"Body": "Body", "None": "None"}, + ) + _element.direction = AAZStrArg( + options=["direction"], + enum={"None": "None", "Request": "Request", "Response": "Response"}, + ) + _element.hidden_property_paths = AAZObjectArg( + options=["hidden-property-paths"], + nullable=True, + ) + + hidden_property_paths = cls._args_schema.resource_type_registrations.Element.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListArg( + options=["hidden-paths-on-request"], + nullable=True, + ) + hidden_property_paths.hidden_paths_on_response = AAZListArg( + options=["hidden-paths-on-response"], + nullable=True, + ) + + hidden_paths_on_request = cls._args_schema.resource_type_registrations.Element.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrArg( + nullable=True, + ) + + hidden_paths_on_response = cls._args_schema.resource_type_registrations.Element.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrArg( + nullable=True, + ) + + managed_resource_group_configuration = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListArg( + options=["application-ids"], + nullable=True, + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectArg( + options=["deny-assignment-configuration"], + nullable=True, + ) + managed_resource_group_configuration.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + managed_resource_group_configuration.resource_group_location_override = AAZStrArg( + options=["resource-group-location-override"], + nullable=True, + ) + + application_ids = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrArg( + nullable=True, + ) + + deny_assignment_configuration = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + deny_assignment_configuration.not_actions = AAZListArg( + options=["not-actions"], + nullable=True, + ) + + not_actions = cls._args_schema.resource_type_registrations.Element.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrArg( + nullable=True, + ) + + management = cls._args_schema.resource_type_registrations.Element.management + management.authorization_owners = AAZListArg( + options=["authorization-owners"], + nullable=True, + ) + management.canary_manifest_owners = AAZListArg( + options=["canary-manifest-owners"], + help="List of manifest owners for canary.", + nullable=True, + ) + management.error_response_message_options = AAZObjectArg( + options=["error-response-message-options"], + help="Options for error response messages.", + nullable=True, + ) + management.expedited_rollout_metadata = AAZObjectArg( + options=["expedited-rollout-metadata"], + help="Metadata for expedited rollout.", + nullable=True, + ) + management.expedited_rollout_submitters = AAZListArg( + options=["expedited-rollout-submitters"], + help="List of expedited rollout submitters.", + nullable=True, + ) + management.incident_contact_email = AAZStrArg( + options=["incident-contact-email"], + nullable=True, + ) + management.incident_routing_service = AAZStrArg( + options=["incident-routing-service"], + nullable=True, + ) + management.incident_routing_team = AAZStrArg( + options=["incident-routing-team"], + nullable=True, + ) + management.manifest_owners = AAZListArg( + options=["manifest-owners"], + nullable=True, + ) + management.pc_code = AAZStrArg( + options=["pc-code"], + help="The profit center code for the subscription.", + nullable=True, + ) + management.profit_center_program_id = AAZStrArg( + options=["profit-center-program-id"], + help="The profit center program id for the subscription.", + nullable=True, + ) + management.resource_access_policy = AAZStrArg( + options=["resource-access-policy"], + nullable=True, + enum={"AcisActionAllowed": "AcisActionAllowed", "AcisReadAllowed": "AcisReadAllowed", "NotSpecified": "NotSpecified"}, + ) + management.resource_access_roles = AAZListArg( + options=["resource-access-roles"], + nullable=True, + ) + management.schema_owners = AAZListArg( + options=["schema-owners"], + nullable=True, + ) + management.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + nullable=True, + ) + + authorization_owners = cls._args_schema.resource_type_registrations.Element.management.authorization_owners + authorization_owners.Element = AAZStrArg( + nullable=True, + ) + + canary_manifest_owners = cls._args_schema.resource_type_registrations.Element.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrArg( + nullable=True, + ) + + error_response_message_options = cls._args_schema.resource_type_registrations.Element.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrArg( + options=["server-failure-response-message-type"], + help="Type of server failure response message.", + nullable=True, + enum={"NotSpecified": "NotSpecified", "OutageReporting": "OutageReporting"}, + ) + + expedited_rollout_metadata = cls._args_schema.resource_type_registrations.Element.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolArg( + options=["enabled"], + help="Expedited rollout enabled?", + nullable=True, + ) + expedited_rollout_metadata.expedited_rollout_intent = AAZStrArg( + options=["expedited-rollout-intent"], + help="Expedited rollout intent.", + nullable=True, + enum={"Hotfix": "Hotfix", "NotSpecified": "NotSpecified"}, + ) + + expedited_rollout_submitters = cls._args_schema.resource_type_registrations.Element.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrArg( + nullable=True, + ) + + manifest_owners = cls._args_schema.resource_type_registrations.Element.management.manifest_owners + manifest_owners.Element = AAZStrArg( + nullable=True, + ) + + resource_access_roles = cls._args_schema.resource_type_registrations.Element.management.resource_access_roles + resource_access_roles.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_access_role_update(resource_access_roles.Element) + + schema_owners = cls._args_schema.resource_type_registrations.Element.management.schema_owners + schema_owners.Element = AAZStrArg( + nullable=True, + ) + + service_tree_infos = cls._args_schema.resource_type_registrations.Element.management.service_tree_infos + service_tree_infos.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_service_tree_info_update(service_tree_infos.Element) + + marketplace_options = cls._args_schema.resource_type_registrations.Element.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolArg( + options=["add-on-plan-conversion-allowed"], + help="Add-on plan conversion allowed.", + nullable=True, + ) + + metadata = cls._args_schema.resource_type_registrations.Element.metadata + metadata.Element = AAZFreeFormDictArg( + nullable=True, + blank={}, + ) + + on_behalf_of_tokens = cls._args_schema.resource_type_registrations.Element.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrArg( + options=["action-name"], + nullable=True, + ) + on_behalf_of_tokens.life_time = AAZStrArg( + options=["life-time"], + nullable=True, + ) + + open_api_configuration = cls._args_schema.resource_type_registrations.Element.open_api_configuration + open_api_configuration.validation = AAZObjectArg( + options=["validation"], + nullable=True, + ) + + validation = cls._args_schema.resource_type_registrations.Element.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolArg( + options=["allow-noncompliant-collection-response"], + help="Indicates whether a non compliance response is allowed for a LIST call", + nullable=True, + ) + + private_endpoint_configuration = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListArg( + options=["group-connectivity-information"], + help="The list of group connectivity information.", + ) + private_endpoint_configuration.min_api_version = AAZStrArg( + options=["min-api-version"], + help="The first api version that support private endpoint.", + ) + + group_connectivity_information = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrArg( + options=["group-id"], + help="The group id.", + ) + _element.redirect_map_id = AAZStrArg( + options=["redirect-map-id"], + help="The redirect map id.", + nullable=True, + ) + _element.required_members = AAZListArg( + options=["required-members"], + help="List of required members for the group id.", + ) + _element.required_zone_names = AAZListArg( + options=["required-zone-names"], + help="List of required zone names for the group id.", + ) + + required_members = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrArg( + nullable=True, + ) + + required_zone_names = cls._args_schema.resource_type_registrations.Element.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrArg( + nullable=True, + ) + + quota_rule = cls._args_schema.resource_type_registrations.Element.quota_rule + quota_rule.location_rules = AAZListArg( + options=["location-rules"], + nullable=True, + ) + quota_rule.quota_policy = AAZStrArg( + options=["quota-policy"], + help="Quota policy.", + nullable=True, + enum={"Default": "Default", "None": "None", "Restricted": "Restricted"}, + ) + quota_rule.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + + location_rules = cls._args_schema.resource_type_registrations.Element.quota_rule.location_rules + location_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.quota_rule.location_rules.Element + _element.location = AAZStrArg( + options=["location"], + nullable=True, + ) + _element.policy = AAZStrArg( + options=["policy"], + help="Quota policy.", + nullable=True, + enum={"Default": "Default", "None": "None", "Restricted": "Restricted"}, + ) + _element.quota_id = AAZStrArg( + options=["quota-id"], + nullable=True, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.quota_rule.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + request_header_options = cls._args_schema.resource_type_registrations.Element.request_header_options + request_header_options.opt_in_headers = AAZStrArg( + options=["opt-in-headers"], + nullable=True, + enum={"ClientGroupMembership": "ClientGroupMembership", "ClientPrincipalNameEncoded": "ClientPrincipalNameEncoded", "MSIResourceIdEncoded": "MSIResourceIdEncoded", "ManagementGroupAncestorsEncoded": "ManagementGroupAncestorsEncoded", "NotSpecified": "NotSpecified", "PrivateLinkId": "PrivateLinkId", "PrivateLinkResourceId": "PrivateLinkResourceId", "PrivateLinkVnetTrafficTag": "PrivateLinkVnetTrafficTag", "ResourceGroupLocation": "ResourceGroupLocation", "SignedAuxiliaryTokens": "SignedAuxiliaryTokens", "SignedUserToken": "SignedUserToken", "UnboundedClientGroupMembership": "UnboundedClientGroupMembership"}, + ) + request_header_options.opt_out_headers = AAZStrArg( + options=["opt-out-headers"], + nullable=True, + enum={"NotSpecified": "NotSpecified", "SystemDataCreatedByLastModifiedBy": "SystemDataCreatedByLastModifiedBy"}, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + resource_cache = cls._args_schema.resource_type_registrations.Element.resource_cache + resource_cache.enable_resource_cache = AAZBoolArg( + options=["enable-resource-cache"], + help="Enable resource cache.", + nullable=True, + ) + resource_cache.resource_cache_expiration_timespan = AAZStrArg( + options=["resource-cache-expiration-timespan"], + help="Resource cache expiration timespan.", + nullable=True, + ) + + resource_concurrency_control_options = cls._args_schema.resource_type_registrations.Element.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.resource_concurrency_control_options.Element + _element.policy = AAZStrArg( + options=["policy"], + nullable=True, + enum={"NotSpecified": "NotSpecified", "SynchronizeBeginExtension": "SynchronizeBeginExtension"}, + ) + + resource_graph_configuration = cls._args_schema.resource_type_registrations.Element.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrArg( + options=["api-version"], + nullable=True, + ) + resource_graph_configuration.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + + resource_management_options = cls._args_schema.resource_type_registrations.Element.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectArg( + options=["batch-provisioning-support"], + help="Batch provisioning support.", + nullable=True, + ) + resource_management_options.delete_dependencies = AAZListArg( + options=["delete-dependencies"], + help="Delete dependencies.", + nullable=True, + ) + resource_management_options.nested_provisioning_support = AAZObjectArg( + options=["nested-provisioning-support"], + help="Nested provisioning support.", + nullable=True, + ) + + batch_provisioning_support = cls._args_schema.resource_type_registrations.Element.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrArg( + options=["supported-operations"], + help="Supported operations.", + nullable=True, + enum={"Delete": "Delete", "Get": "Get", "NotSpecified": "NotSpecified"}, + ) + + delete_dependencies = cls._args_schema.resource_type_registrations.Element.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrArg( + options=["linked-property"], + help="Linked property.", + nullable=True, + ) + _element.linked_type = AAZStrArg( + options=["linked-type"], + help="Linked type.", + nullable=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + help="Required features.", + nullable=True, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + nested_provisioning_support = cls._args_schema.resource_type_registrations.Element.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrArg( + options=["minimum-api-version"], + help="Minimum API version.", + nullable=True, + ) + + resource_move_policy = cls._args_schema.resource_type_registrations.Element.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolArg( + options=["cross-resource-group-move-enabled"], + nullable=True, + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolArg( + options=["cross-subscription-move-enabled"], + nullable=True, + ) + resource_move_policy.validation_required = AAZBoolArg( + options=["validation-required"], + nullable=True, + ) + + resource_query_management = cls._args_schema.resource_type_registrations.Element.resource_query_management + resource_query_management.filter_option = AAZStrArg( + options=["filter-option"], + help="Filter option.", + nullable=True, + enum={"EnableSubscriptionFilterOnTenant": "EnableSubscriptionFilterOnTenant", "NotSpecified": "NotSpecified"}, + ) + + resource_type_common_attribute_management = cls._args_schema.resource_type_registrations.Element.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrArg( + options=["common-api-versions-merge-mode"], + help="Common api versions merge mode.", + nullable=True, + enum={"Merge": "Merge", "Overwrite": "Overwrite"}, + ) + + routing_rule = cls._args_schema.resource_type_registrations.Element.routing_rule + routing_rule.host_resource_type = AAZStrArg( + options=["host-resource-type"], + help="Hosted resource type.", + nullable=True, + ) + + service_tree_infos = cls._args_schema.resource_type_registrations.Element.service_tree_infos + service_tree_infos.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_service_tree_info_update(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._args_schema.resource_type_registrations.Element.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZDurationArg( + options=["soft-delete-ttl"], + nullable=True, + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListArg( + options=["subscription-state-override-actions"], + nullable=True, + ) + + subscription_state_override_actions = cls._args_schema.resource_type_registrations.Element.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_subscription_state_override_action_update(subscription_state_override_actions.Element) + + subscription_state_rules = cls._args_schema.resource_type_registrations.Element.subscription_state_rules + subscription_state_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.subscription_state_rules.Element + _element.allowed_actions = AAZListArg( + options=["allowed-actions"], + nullable=True, + ) + _element.state = AAZStrArg( + options=["state"], + nullable=True, + enum={"Deleted": "Deleted", "Disabled": "Disabled", "Enabled": "Enabled", "NotDefined": "NotDefined", "PastDue": "PastDue", "Warned": "Warned"}, + ) + + allowed_actions = cls._args_schema.resource_type_registrations.Element.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrArg( + nullable=True, + ) + + swagger_specifications = cls._args_schema.resource_type_registrations.Element.swagger_specifications + swagger_specifications.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.swagger_specifications.Element + _element.api_versions = AAZListArg( + options=["api-versions"], + nullable=True, + ) + _element.swagger_spec_folder_uri = AAZStrArg( + options=["swagger-spec-folder-uri"], + nullable=True, + ) + + api_versions = cls._args_schema.resource_type_registrations.Element.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrArg( + nullable=True, + ) + + template_deployment_options = cls._args_schema.resource_type_registrations.Element.template_deployment_options + template_deployment_options.preflight_options = AAZListArg( + options=["preflight-options"], + nullable=True, + ) + template_deployment_options.preflight_supported = AAZBoolArg( + options=["preflight-supported"], + nullable=True, + ) + + preflight_options = cls._args_schema.resource_type_registrations.Element.template_deployment_options.preflight_options + preflight_options.Element = AAZStrArg( + nullable=True, + enum={"ContinueDeploymentOnFailure": "ContinueDeploymentOnFailure", "DefaultValidationOnly": "DefaultValidationOnly", "None": "None"}, + ) + + template_deployment_policy = cls._args_schema.resource_type_registrations.Element.template_deployment_policy + template_deployment_policy.capabilities = AAZStrArg( + options=["capabilities"], + enum={"Default": "Default", "Preflight": "Preflight"}, + ) + template_deployment_policy.preflight_notifications = AAZStrArg( + options=["preflight-notifications"], + nullable=True, + enum={"None": "None", "UnregisteredSubscriptions": "UnregisteredSubscriptions"}, + ) + template_deployment_policy.preflight_options = AAZStrArg( + options=["preflight-options"], + enum={"DeploymentRequests": "DeploymentRequests", "None": "None", "RegisteredOnly": "RegisteredOnly", "TestOnly": "TestOnly", "ValidationRequests": "ValidationRequests"}, + ) + + throttling_rules = cls._args_schema.resource_type_registrations.Element.throttling_rules + throttling_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element + _element.action = AAZStrArg( + options=["action"], + ) + _element.application_id = AAZListArg( + options=["application-id"], + nullable=True, + ) + _element.metrics = AAZListArg( + options=["metrics"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + + application_id = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.application_id + application_id.Element = AAZStrArg( + nullable=True, + ) + + metrics = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.metrics + metrics.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.metrics.Element + _element.interval = AAZDurationArg( + options=["interval"], + nullable=True, + ) + _element.limit = AAZIntArg( + options=["limit"], + ) + _element.type = AAZStrArg( + options=["type"], + enum={"NotSpecified": "NotSpecified", "NumberOfRequests": "NumberOfRequests", "NumberOfResources": "NumberOfResources"}, + ) + + required_features = cls._args_schema.resource_type_registrations.Element.throttling_rules.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + rest_of_the_world_group_one = cls._args_schema.rest_of_the_world_group_one + rest_of_the_world_group_one.regions = AAZListArg( + options=["regions"], + nullable=True, + ) + rest_of_the_world_group_one.wait_duration = AAZDurationArg( + options=["wait-duration"], + nullable=True, + ) + + regions = cls._args_schema.rest_of_the_world_group_one.regions + regions.Element = AAZStrArg( + nullable=True, + ) + + rest_of_the_world_group_two = cls._args_schema.rest_of_the_world_group_two + rest_of_the_world_group_two.regions = AAZListArg( + options=["regions"], + nullable=True, + ) + rest_of_the_world_group_two.wait_duration = AAZDurationArg( + options=["wait-duration"], + nullable=True, + ) + + regions = cls._args_schema.rest_of_the_world_group_two.regions + regions.Element = AAZStrArg( + nullable=True, + ) + return cls._args_schema + + _args_extended_error_info_update = None + + @classmethod + def _build_args_extended_error_info_update(cls, _schema): + if cls._args_extended_error_info_update is not None: + _schema.additional_info = cls._args_extended_error_info_update.additional_info + _schema.code = cls._args_extended_error_info_update.code + _schema.details = cls._args_extended_error_info_update.details + _schema.message = cls._args_extended_error_info_update.message + _schema.target = cls._args_extended_error_info_update.target + return + + cls._args_extended_error_info_update = AAZObjectArg( + nullable=True, + ) + + extended_error_info_update = cls._args_extended_error_info_update + extended_error_info_update.additional_info = AAZListArg( + options=["additional-info"], + help="The additional error information.", + nullable=True, + ) + extended_error_info_update.code = AAZStrArg( + options=["code"], + help="The error code.", + nullable=True, + ) + extended_error_info_update.details = AAZListArg( + options=["details"], + help="The error details.", + nullable=True, + ) + extended_error_info_update.message = AAZStrArg( + options=["message"], + help="The error message.", + nullable=True, + ) + extended_error_info_update.target = AAZStrArg( + options=["target"], + help="The target of the error.", + nullable=True, + ) + + additional_info = cls._args_extended_error_info_update.additional_info + additional_info.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_extended_error_info_update.additional_info.Element + _element.type = AAZStrArg( + options=["type"], + help="The type of the error.", + ) + + details = cls._args_extended_error_info_update.details + details.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_extended_error_info_update(details.Element) + + _schema.additional_info = cls._args_extended_error_info_update.additional_info + _schema.code = cls._args_extended_error_info_update.code + _schema.details = cls._args_extended_error_info_update.details + _schema.message = cls._args_extended_error_info_update.message + _schema.target = cls._args_extended_error_info_update.target + + _args_notifications_update = None + + @classmethod + def _build_args_notifications_update(cls, _schema): + if cls._args_notifications_update is not None: + _schema.Element = cls._args_notifications_update.Element + return + + cls._args_notifications_update = AAZListArg( + nullable=True, + ) + + notifications_update = cls._args_notifications_update + notifications_update.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_notifications_update.Element + _element.notification_type = AAZStrArg( + options=["notification-type"], + nullable=True, + enum={"SubscriptionNotification": "SubscriptionNotification", "Unspecified": "Unspecified"}, + ) + _element.skip_notifications = AAZStrArg( + options=["skip-notifications"], + nullable=True, + enum={"Disabled": "Disabled", "Enabled": "Enabled", "Unspecified": "Unspecified"}, + ) + + _schema.Element = cls._args_notifications_update.Element + + _args_resource_access_role_update = None + + @classmethod + def _build_args_resource_access_role_update(cls, _schema): + if cls._args_resource_access_role_update is not None: + _schema.actions = cls._args_resource_access_role_update.actions + _schema.allowed_group_claims = cls._args_resource_access_role_update.allowed_group_claims + return + + cls._args_resource_access_role_update = AAZObjectArg( + nullable=True, + ) + + resource_access_role_update = cls._args_resource_access_role_update + resource_access_role_update.actions = AAZListArg( + options=["actions"], + nullable=True, + ) + resource_access_role_update.allowed_group_claims = AAZListArg( + options=["allowed-group-claims"], + nullable=True, + ) + + actions = cls._args_resource_access_role_update.actions + actions.Element = AAZStrArg( + nullable=True, + ) + + allowed_group_claims = cls._args_resource_access_role_update.allowed_group_claims + allowed_group_claims.Element = AAZStrArg( + nullable=True, + ) + + _schema.actions = cls._args_resource_access_role_update.actions + _schema.allowed_group_claims = cls._args_resource_access_role_update.allowed_group_claims + + _args_resource_provider_authorization_rules_update = None + + @classmethod + def _build_args_resource_provider_authorization_rules_update(cls, _schema): + if cls._args_resource_provider_authorization_rules_update is not None: + _schema.async_operation_polling_rules = cls._args_resource_provider_authorization_rules_update.async_operation_polling_rules + return + + cls._args_resource_provider_authorization_rules_update = AAZObjectArg( + nullable=True, + ) + + resource_provider_authorization_rules_update = cls._args_resource_provider_authorization_rules_update + resource_provider_authorization_rules_update.async_operation_polling_rules = AAZObjectArg( + options=["async-operation-polling-rules"], + nullable=True, + ) + + async_operation_polling_rules = cls._args_resource_provider_authorization_rules_update.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrArg( + options=["additional-options"], + nullable=True, + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + async_operation_polling_rules.authorization_actions = AAZListArg( + options=["authorization-actions"], + nullable=True, + ) + + authorization_actions = cls._args_resource_provider_authorization_rules_update.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrArg( + nullable=True, + ) + + _schema.async_operation_polling_rules = cls._args_resource_provider_authorization_rules_update.async_operation_polling_rules + + _args_resource_provider_authorization_update = None + + @classmethod + def _build_args_resource_provider_authorization_update(cls, _schema): + if cls._args_resource_provider_authorization_update is not None: + _schema.allowed_third_party_extensions = cls._args_resource_provider_authorization_update.allowed_third_party_extensions + _schema.application_id = cls._args_resource_provider_authorization_update.application_id + _schema.grouping_tag = cls._args_resource_provider_authorization_update.grouping_tag + _schema.managed_by_authorization = cls._args_resource_provider_authorization_update.managed_by_authorization + _schema.managed_by_role_definition_id = cls._args_resource_provider_authorization_update.managed_by_role_definition_id + _schema.role_definition_id = cls._args_resource_provider_authorization_update.role_definition_id + return + + cls._args_resource_provider_authorization_update = AAZObjectArg( + nullable=True, + ) + + resource_provider_authorization_update = cls._args_resource_provider_authorization_update + resource_provider_authorization_update.allowed_third_party_extensions = AAZListArg( + options=["allowed-third-party-extensions"], + nullable=True, + ) + resource_provider_authorization_update.application_id = AAZStrArg( + options=["application-id"], + nullable=True, + ) + resource_provider_authorization_update.grouping_tag = AAZStrArg( + options=["grouping-tag"], + nullable=True, + ) + resource_provider_authorization_update.managed_by_authorization = AAZObjectArg( + options=["managed-by-authorization"], + help="Managed by authorization.", + nullable=True, + ) + resource_provider_authorization_update.managed_by_role_definition_id = AAZStrArg( + options=["managed-by-role-definition-id"], + nullable=True, + ) + resource_provider_authorization_update.role_definition_id = AAZStrArg( + options=["role-definition-id"], + nullable=True, + ) + + allowed_third_party_extensions = cls._args_resource_provider_authorization_update.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_resource_provider_authorization_update.allowed_third_party_extensions.Element + _element.name = AAZStrArg( + options=["name"], + help="Name of third party extension.", + nullable=True, + ) + + managed_by_authorization = cls._args_resource_provider_authorization_update.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListArg( + options=["additional-authorizations"], + nullable=True, + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolArg( + options=["allow-managed-by-inheritance"], + help="Indicates whether the managed by resource role definition ID should be inherited.", + nullable=True, + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrArg( + options=["managed-by-resource-role-definition-id"], + help="The managed by resource role definition ID for the application.", + nullable=True, + ) + + additional_authorizations = cls._args_resource_provider_authorization_update.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_resource_provider_authorization_update.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrArg( + options=["application-id"], + nullable=True, + ) + _element.role_definition_id = AAZStrArg( + options=["role-definition-id"], + nullable=True, + ) + + _schema.allowed_third_party_extensions = cls._args_resource_provider_authorization_update.allowed_third_party_extensions + _schema.application_id = cls._args_resource_provider_authorization_update.application_id + _schema.grouping_tag = cls._args_resource_provider_authorization_update.grouping_tag + _schema.managed_by_authorization = cls._args_resource_provider_authorization_update.managed_by_authorization + _schema.managed_by_role_definition_id = cls._args_resource_provider_authorization_update.managed_by_role_definition_id + _schema.role_definition_id = cls._args_resource_provider_authorization_update.role_definition_id + + _args_resource_provider_endpoint_update = None + + @classmethod + def _build_args_resource_provider_endpoint_update(cls, _schema): + if cls._args_resource_provider_endpoint_update is not None: + _schema.api_versions = cls._args_resource_provider_endpoint_update.api_versions + _schema.enabled = cls._args_resource_provider_endpoint_update.enabled + _schema.endpoint_type = cls._args_resource_provider_endpoint_update.endpoint_type + _schema.endpoint_uri = cls._args_resource_provider_endpoint_update.endpoint_uri + _schema.features_rule = cls._args_resource_provider_endpoint_update.features_rule + _schema.locations = cls._args_resource_provider_endpoint_update.locations + _schema.required_features = cls._args_resource_provider_endpoint_update.required_features + _schema.sku_link = cls._args_resource_provider_endpoint_update.sku_link + _schema.timeout = cls._args_resource_provider_endpoint_update.timeout + return + + cls._args_resource_provider_endpoint_update = AAZObjectArg( + nullable=True, + ) + + resource_provider_endpoint_update = cls._args_resource_provider_endpoint_update + resource_provider_endpoint_update.api_versions = AAZListArg( + options=["api-versions"], + nullable=True, + ) + resource_provider_endpoint_update.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + resource_provider_endpoint_update.endpoint_type = AAZStrArg( + options=["endpoint-type"], + nullable=True, + enum={"Canary": "Canary", "NotSpecified": "NotSpecified", "Production": "Production", "TestInProduction": "TestInProduction"}, + ) + resource_provider_endpoint_update.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + nullable=True, + ) + resource_provider_endpoint_update.features_rule = AAZObjectArg( + options=["features-rule"], + nullable=True, + ) + resource_provider_endpoint_update.locations = AAZListArg( + options=["locations"], + nullable=True, + ) + resource_provider_endpoint_update.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + resource_provider_endpoint_update.sku_link = AAZStrArg( + options=["sku-link"], + nullable=True, + ) + resource_provider_endpoint_update.timeout = AAZDurationArg( + options=["timeout"], + nullable=True, + ) + + api_versions = cls._args_resource_provider_endpoint_update.api_versions + api_versions.Element = AAZStrArg( + nullable=True, + ) + + features_rule = cls._args_resource_provider_endpoint_update.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + enum={"All": "All", "Any": "Any"}, + ) + + locations = cls._args_resource_provider_endpoint_update.locations + locations.Element = AAZStrArg( + nullable=True, + ) + + required_features = cls._args_resource_provider_endpoint_update.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + _schema.api_versions = cls._args_resource_provider_endpoint_update.api_versions + _schema.enabled = cls._args_resource_provider_endpoint_update.enabled + _schema.endpoint_type = cls._args_resource_provider_endpoint_update.endpoint_type + _schema.endpoint_uri = cls._args_resource_provider_endpoint_update.endpoint_uri + _schema.features_rule = cls._args_resource_provider_endpoint_update.features_rule + _schema.locations = cls._args_resource_provider_endpoint_update.locations + _schema.required_features = cls._args_resource_provider_endpoint_update.required_features + _schema.sku_link = cls._args_resource_provider_endpoint_update.sku_link + _schema.timeout = cls._args_resource_provider_endpoint_update.timeout + + _args_service_tree_info_update = None + + @classmethod + def _build_args_service_tree_info_update(cls, _schema): + if cls._args_service_tree_info_update is not None: + _schema.component_id = cls._args_service_tree_info_update.component_id + _schema.readiness = cls._args_service_tree_info_update.readiness + _schema.service_id = cls._args_service_tree_info_update.service_id + return + + cls._args_service_tree_info_update = AAZObjectArg( + nullable=True, + ) + + service_tree_info_update = cls._args_service_tree_info_update + service_tree_info_update.component_id = AAZStrArg( + options=["component-id"], + nullable=True, + ) + service_tree_info_update.readiness = AAZStrArg( + options=["readiness"], + nullable=True, + enum={"ClosingDown": "ClosingDown", "Deprecated": "Deprecated", "GA": "GA", "InDevelopment": "InDevelopment", "InternalOnly": "InternalOnly", "PrivatePreview": "PrivatePreview", "PublicPreview": "PublicPreview", "RemovedFromARM": "RemovedFromARM", "Retired": "Retired"}, + ) + service_tree_info_update.service_id = AAZStrArg( + options=["service-id"], + nullable=True, + ) + + _schema.component_id = cls._args_service_tree_info_update.component_id + _schema.readiness = cls._args_service_tree_info_update.readiness + _schema.service_id = cls._args_service_tree_info_update.service_id + + _args_subscription_state_override_action_update = None + + @classmethod + def _build_args_subscription_state_override_action_update(cls, _schema): + if cls._args_subscription_state_override_action_update is not None: + _schema.action = cls._args_subscription_state_override_action_update.action + _schema.state = cls._args_subscription_state_override_action_update.state + return + + cls._args_subscription_state_override_action_update = AAZObjectArg( + nullable=True, + ) + + subscription_state_override_action_update = cls._args_subscription_state_override_action_update + subscription_state_override_action_update.action = AAZStrArg( + options=["action"], + enum={"BillingCancellation": "BillingCancellation", "DeleteAllResources": "DeleteAllResources", "NoOp": "NoOp", "NotDefined": "NotDefined", "SoftDeleteAllResources": "SoftDeleteAllResources", "UndoSoftDelete": "UndoSoftDelete"}, + ) + subscription_state_override_action_update.state = AAZStrArg( + options=["state"], + enum={"Deleted": "Deleted", "Registered": "Registered", "Suspended": "Suspended", "SuspendedToDeleted": "SuspendedToDeleted", "SuspendedToRegistered": "SuspendedToRegistered", "SuspendedToUnregistered": "SuspendedToUnregistered", "SuspendedToWarned": "SuspendedToWarned", "Unregistered": "Unregistered", "Warned": "Warned", "WarnedToDeleted": "WarnedToDeleted", "WarnedToRegistered": "WarnedToRegistered", "WarnedToSuspended": "WarnedToSuspended", "WarnedToUnregistered": "WarnedToUnregistered"}, + ) + + _schema.action = cls._args_subscription_state_override_action_update.action + _schema.state = cls._args_subscription_state_override_action_update.state + + _args_token_auth_configuration_update = None + + @classmethod + def _build_args_token_auth_configuration_update(cls, _schema): + if cls._args_token_auth_configuration_update is not None: + _schema.authentication_scheme = cls._args_token_auth_configuration_update.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_update.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_update.signed_request_scope + return + + cls._args_token_auth_configuration_update = AAZObjectArg( + nullable=True, + ) + + token_auth_configuration_update = cls._args_token_auth_configuration_update + token_auth_configuration_update.authentication_scheme = AAZStrArg( + options=["authentication-scheme"], + nullable=True, + enum={"Bearer": "Bearer", "PoP": "PoP"}, + ) + token_auth_configuration_update.disable_certificate_authentication_fallback = AAZBoolArg( + options=["disable-certificate-authentication-fallback"], + nullable=True, + ) + token_auth_configuration_update.signed_request_scope = AAZStrArg( + options=["signed-request-scope"], + nullable=True, + enum={"Endpoint": "Endpoint", "ResourceUri": "ResourceUri"}, + ) + + _schema.authentication_scheme = cls._args_token_auth_configuration_update.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_update.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_update.signed_request_scope + + def _execute_operations(self): + self.pre_operations() + self.DefaultRolloutsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + yield self.DefaultRolloutsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class DefaultRolloutsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_default_rollout_read(cls._schema_on_200) + + return cls._schema_on_200 + + class DefaultRolloutsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_default_rollout_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("specification", AAZObjectType) + properties.set_prop("status", AAZObjectType, ".status") + + specification = _builder.get(".properties.specification") + if specification is not None: + specification.set_prop("autoProvisionConfig", AAZObjectType, ".auto_provision_config") + specification.set_prop("canary", AAZObjectType, ".canary") + specification.set_prop("expeditedRollout", AAZObjectType, ".expedited_rollout") + specification.set_prop("highTraffic", AAZObjectType, ".high_traffic") + specification.set_prop("lowTraffic", AAZObjectType, ".low_traffic") + specification.set_prop("manifestCheckinSpecification", AAZObjectType, ".manifest_checkin_specification") + specification.set_prop("mediumTraffic", AAZObjectType, ".medium_traffic") + specification.set_prop("providerRegistration", AAZObjectType, ".provider_registration") + specification.set_prop("resourceTypeRegistrations", AAZListType, ".resource_type_registrations") + specification.set_prop("restOfTheWorldGroupOne", AAZObjectType, ".rest_of_the_world_group_one") + specification.set_prop("restOfTheWorldGroupTwo", AAZObjectType, ".rest_of_the_world_group_two") + + auto_provision_config = _builder.get(".properties.specification.autoProvisionConfig") + if auto_provision_config is not None: + auto_provision_config.set_prop("resourceGraph", AAZBoolType, ".resource_graph") + auto_provision_config.set_prop("storage", AAZBoolType, ".storage") + + canary = _builder.get(".properties.specification.canary") + if canary is not None: + canary.set_prop("regions", AAZListType, ".regions") + canary.set_prop("skipRegions", AAZListType, ".skip_regions") + + regions = _builder.get(".properties.specification.canary.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + skip_regions = _builder.get(".properties.specification.canary.skipRegions") + if skip_regions is not None: + skip_regions.set_elements(AAZStrType, ".") + + expedited_rollout = _builder.get(".properties.specification.expeditedRollout") + if expedited_rollout is not None: + expedited_rollout.set_prop("enabled", AAZBoolType, ".enabled") + + high_traffic = _builder.get(".properties.specification.highTraffic") + if high_traffic is not None: + high_traffic.set_prop("regions", AAZListType, ".regions") + high_traffic.set_prop("waitDuration", AAZStrType, ".wait_duration") + + regions = _builder.get(".properties.specification.highTraffic.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + low_traffic = _builder.get(".properties.specification.lowTraffic") + if low_traffic is not None: + low_traffic.set_prop("regions", AAZListType, ".regions") + low_traffic.set_prop("waitDuration", AAZStrType, ".wait_duration") + + regions = _builder.get(".properties.specification.lowTraffic.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + manifest_checkin_specification = _builder.get(".properties.specification.manifestCheckinSpecification") + if manifest_checkin_specification is not None: + manifest_checkin_specification.set_prop("manifestCheckinOption", AAZStrType, ".manifest_checkin_option") + manifest_checkin_specification.set_prop("manifestCheckinParams", AAZObjectType, ".manifest_checkin_params") + + manifest_checkin_params = _builder.get(".properties.specification.manifestCheckinSpecification.manifestCheckinParams") + if manifest_checkin_params is not None: + manifest_checkin_params.set_prop("baselineArmManifestLocation", AAZStrType, ".baseline_arm_manifest_location", typ_kwargs={"flags": {"required": True}}) + manifest_checkin_params.set_prop("environment", AAZStrType, ".environment", typ_kwargs={"flags": {"required": True}}) + + medium_traffic = _builder.get(".properties.specification.mediumTraffic") + if medium_traffic is not None: + medium_traffic.set_prop("regions", AAZListType, ".regions") + medium_traffic.set_prop("waitDuration", AAZStrType, ".wait_duration") + + regions = _builder.get(".properties.specification.mediumTraffic.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + provider_registration = _builder.get(".properties.specification.providerRegistration") + if provider_registration is not None: + provider_registration.set_prop("kind", AAZStrType, ".kind") + provider_registration.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties.specification.providerRegistration.properties") + if properties is not None: + properties.set_prop("capabilities", AAZListType, ".capabilities") + properties.set_prop("crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") + properties.set_prop("customManifestVersion", AAZStrType, ".custom_manifest_version") + properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + properties.set_prop("enableTenantLinkedNotification", AAZBoolType, ".enable_tenant_linked_notification", typ_kwargs={"nullable": True}) + properties.set_prop("featuresRule", AAZObjectType, ".features_rule") + properties.set_prop("globalNotificationEndpoints", AAZListType, ".global_notification_endpoints") + properties.set_prop("legacyNamespace", AAZStrType, ".legacy_namespace") + properties.set_prop("legacyRegistrations", AAZListType, ".legacy_registrations") + properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") + properties.set_prop("management", AAZObjectType, ".management") + properties.set_prop("managementGroupGlobalNotificationEndpoints", AAZListType, ".management_group_global_notification_endpoints") + properties.set_prop("metadata", AAZFreeFormDictType, ".metadata") + properties.set_prop("namespace", AAZStrType, ".namespace") + properties.set_prop("notificationOptions", AAZStrType, ".notification_options") + properties.set_prop("notificationSettings", AAZObjectType, ".notification_settings") + _UpdateHelper._build_schema_notifications_update(properties.set_prop("notifications", AAZListType, ".notifications")) + properties.set_prop("optionalFeatures", AAZListType, ".optional_features") + properties.set_prop("privateResourceProviderConfiguration", AAZObjectType, ".private_resource_provider_configuration") + properties.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") + properties.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") + properties.set_prop("providerHubMetadata", AAZObjectType, ".provider_hub_metadata") + properties.set_prop("providerType", AAZStrType, ".provider_type") + properties.set_prop("providerVersion", AAZStrType, ".provider_version") + properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") + properties.set_prop("requiredFeatures", AAZListType, ".required_features") + properties.set_prop("resourceGroupLockOptionDuringMove", AAZObjectType, ".resource_group_lock_option_during_move") + properties.set_prop("resourceHydrationAccounts", AAZListType, ".resource_hydration_accounts") + _UpdateHelper._build_schema_resource_provider_authorization_rules_update(properties.set_prop("resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) + properties.set_prop("responseOptions", AAZObjectType, ".response_options") + properties.set_prop("serviceName", AAZStrType, ".service_name") + properties.set_prop("services", AAZListType, ".services") + properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") + properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") + _UpdateHelper._build_schema_token_auth_configuration_update(properties.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + capabilities = _builder.get(".properties.specification.providerRegistration.properties.capabilities") + if capabilities is not None: + capabilities.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.capabilities[]") + if _elements is not None: + _elements.set_prop("effect", AAZStrType, ".effect", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quotaId", AAZStrType, ".quota_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + required_features = _builder.get(".properties.specification.providerRegistration.properties.capabilities[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.providerRegistration.properties.dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + features_rule = _builder.get(".properties.specification.providerRegistration.properties.featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + global_notification_endpoints = _builder.get(".properties.specification.providerRegistration.properties.globalNotificationEndpoints") + if global_notification_endpoints is not None: + _UpdateHelper._build_schema_resource_provider_endpoint_update(global_notification_endpoints.set_elements(AAZObjectType, ".")) + + legacy_registrations = _builder.get(".properties.specification.providerRegistration.properties.legacyRegistrations") + if legacy_registrations is not None: + legacy_registrations.set_elements(AAZStrType, ".") + + linked_notification_rules = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules") + if linked_notification_rules is not None: + linked_notification_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + _elements.set_prop("endpoints", AAZListType, ".endpoints") + _UpdateHelper._build_schema_token_auth_configuration_update(_elements.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + actions = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[].dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + endpoints = _builder.get(".properties.specification.providerRegistration.properties.linkedNotificationRules[].endpoints") + if endpoints is not None: + _UpdateHelper._build_schema_resource_provider_endpoint_update(endpoints.set_elements(AAZObjectType, ".")) + + management = _builder.get(".properties.specification.providerRegistration.properties.management") + if management is not None: + management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") + management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") + management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") + management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") + management.set_prop("expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") + management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") + management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") + management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") + management.set_prop("manifestOwners", AAZListType, ".manifest_owners") + management.set_prop("pcCode", AAZStrType, ".pc_code") + management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") + management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") + management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") + management.set_prop("schemaOwners", AAZListType, ".schema_owners") + management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + + authorization_owners = _builder.get(".properties.specification.providerRegistration.properties.management.authorizationOwners") + if authorization_owners is not None: + authorization_owners.set_elements(AAZStrType, ".") + + canary_manifest_owners = _builder.get(".properties.specification.providerRegistration.properties.management.canaryManifestOwners") + if canary_manifest_owners is not None: + canary_manifest_owners.set_elements(AAZStrType, ".") + + error_response_message_options = _builder.get(".properties.specification.providerRegistration.properties.management.errorResponseMessageOptions") + if error_response_message_options is not None: + error_response_message_options.set_prop("serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") + + expedited_rollout_metadata = _builder.get(".properties.specification.providerRegistration.properties.management.expeditedRolloutMetadata") + if expedited_rollout_metadata is not None: + expedited_rollout_metadata.set_prop("enabled", AAZBoolType, ".enabled") + expedited_rollout_metadata.set_prop("expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") + + expedited_rollout_submitters = _builder.get(".properties.specification.providerRegistration.properties.management.expeditedRolloutSubmitters") + if expedited_rollout_submitters is not None: + expedited_rollout_submitters.set_elements(AAZStrType, ".") + + manifest_owners = _builder.get(".properties.specification.providerRegistration.properties.management.manifestOwners") + if manifest_owners is not None: + manifest_owners.set_elements(AAZStrType, ".") + + resource_access_roles = _builder.get(".properties.specification.providerRegistration.properties.management.resourceAccessRoles") + if resource_access_roles is not None: + _UpdateHelper._build_schema_resource_access_role_update(resource_access_roles.set_elements(AAZObjectType, ".")) + + schema_owners = _builder.get(".properties.specification.providerRegistration.properties.management.schemaOwners") + if schema_owners is not None: + schema_owners.set_elements(AAZStrType, ".") + + service_tree_infos = _builder.get(".properties.specification.providerRegistration.properties.management.serviceTreeInfos") + if service_tree_infos is not None: + _UpdateHelper._build_schema_service_tree_info_update(service_tree_infos.set_elements(AAZObjectType, ".")) + + management_group_global_notification_endpoints = _builder.get(".properties.specification.providerRegistration.properties.managementGroupGlobalNotificationEndpoints") + if management_group_global_notification_endpoints is not None: + _UpdateHelper._build_schema_resource_provider_endpoint_update(management_group_global_notification_endpoints.set_elements(AAZObjectType, ".")) + + metadata = _builder.get(".properties.specification.providerRegistration.properties.metadata") + if metadata is not None: + metadata.set_anytype_elements(".") + + notification_settings = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings") + if notification_settings is not None: + notification_settings.set_prop("subscriberSettings", AAZListType, ".subscriber_settings") + + subscriber_settings = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings") + if subscriber_settings is not None: + subscriber_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[]") + if _elements is not None: + _elements.set_prop("filterRules", AAZListType, ".filter_rules") + + filter_rules = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules") + if filter_rules is not None: + filter_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[]") + if _elements is not None: + _elements.set_prop("endpointInformation", AAZListType, ".endpoint_information") + _elements.set_prop("filterQuery", AAZStrType, ".filter_query") + + endpoint_information = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation") + if endpoint_information is not None: + endpoint_information.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation[]") + if _elements is not None: + _elements.set_prop("endpoint", AAZStrType, ".endpoint") + _elements.set_prop("endpointType", AAZStrType, ".endpoint_type") + _elements.set_prop("schemaVersion", AAZStrType, ".schema_version") + + optional_features = _builder.get(".properties.specification.providerRegistration.properties.optionalFeatures") + if optional_features is not None: + optional_features.set_elements(AAZStrType, ".") + + private_resource_provider_configuration = _builder.get(".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration") + if private_resource_provider_configuration is not None: + private_resource_provider_configuration.set_prop("allowedSubscriptions", AAZListType, ".allowed_subscriptions") + + allowed_subscriptions = _builder.get(".properties.specification.providerRegistration.properties.privateResourceProviderConfiguration.allowedSubscriptions") + if allowed_subscriptions is not None: + allowed_subscriptions.set_elements(AAZStrType, ".") + + provider_authentication = _builder.get(".properties.specification.providerRegistration.properties.providerAuthentication") + if provider_authentication is not None: + provider_authentication.set_prop("allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) + + allowed_audiences = _builder.get(".properties.specification.providerRegistration.properties.providerAuthentication.allowedAudiences") + if allowed_audiences is not None: + allowed_audiences.set_elements(AAZStrType, ".") + + provider_authorizations = _builder.get(".properties.specification.providerRegistration.properties.providerAuthorizations") + if provider_authorizations is not None: + _UpdateHelper._build_schema_resource_provider_authorization_update(provider_authorizations.set_elements(AAZObjectType, ".")) + + provider_hub_metadata = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata") + if provider_hub_metadata is not None: + provider_hub_metadata.set_prop("directRpRoleDefinitionId", AAZStrType, ".direct_rp_role_definition_id") + provider_hub_metadata.set_prop("globalAsyncOperationResourceTypeName", AAZStrType, ".global_async_operation_resource_type_name") + provider_hub_metadata.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") + provider_hub_metadata.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") + provider_hub_metadata.set_prop("regionalAsyncOperationResourceTypeName", AAZStrType, ".regional_async_operation_resource_type_name") + provider_hub_metadata.set_prop("thirdPartyProviderAuthorization", AAZObjectType, ".third_party_provider_authorization") + + provider_authentication = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication") + if provider_authentication is not None: + provider_authentication.set_prop("allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) + + allowed_audiences = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthentication.allowedAudiences") + if allowed_audiences is not None: + allowed_audiences.set_elements(AAZStrType, ".") + + provider_authorizations = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.providerAuthorizations") + if provider_authorizations is not None: + _UpdateHelper._build_schema_resource_provider_authorization_update(provider_authorizations.set_elements(AAZObjectType, ".")) + + third_party_provider_authorization = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization") + if third_party_provider_authorization is not None: + third_party_provider_authorization.set_prop("authorizations", AAZListType, ".authorizations") + third_party_provider_authorization.set_prop("managedByTenantId", AAZStrType, ".managed_by_tenant_id") + + authorizations = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations") + if authorizations is not None: + authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations[]") + if _elements is not None: + _elements.set_prop("principalId", AAZStrType, ".principal_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id", typ_kwargs={"flags": {"required": True}}) + + request_header_options = _builder.get(".properties.specification.providerRegistration.properties.requestHeaderOptions") + if request_header_options is not None: + request_header_options.set_prop("optInHeaders", AAZStrType, ".opt_in_headers") + request_header_options.set_prop("optOutHeaders", AAZStrType, ".opt_out_headers") + + required_features = _builder.get(".properties.specification.providerRegistration.properties.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + resource_group_lock_option_during_move = _builder.get(".properties.specification.providerRegistration.properties.resourceGroupLockOptionDuringMove") + if resource_group_lock_option_during_move is not None: + resource_group_lock_option_during_move.set_prop("blockActionVerb", AAZStrType, ".block_action_verb") + + resource_hydration_accounts = _builder.get(".properties.specification.providerRegistration.properties.resourceHydrationAccounts") + if resource_hydration_accounts is not None: + resource_hydration_accounts.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.resourceHydrationAccounts[]") + if _elements is not None: + _elements.set_prop("accountName", AAZStrType, ".account_name") + _elements.set_prop("encryptedKey", AAZStrType, ".encrypted_key") + _elements.set_prop("maxChildResourceConsistencyJobLimit", AAZIntType, ".max_child_resource_consistency_job_limit") + _elements.set_prop("subscriptionId", AAZStrType, ".subscription_id") + + response_options = _builder.get(".properties.specification.providerRegistration.properties.responseOptions") + if response_options is not None: + response_options.set_prop("serviceClientOptionsType", AAZStrType, ".service_client_options_type") + + services = _builder.get(".properties.specification.providerRegistration.properties.services") + if services is not None: + services.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.providerRegistration.properties.services[]") + if _elements is not None: + _elements.set_prop("serviceName", AAZStrType, ".service_name") + _elements.set_prop("status", AAZStrType, ".status") + + subscription_lifecycle_notification_specifications = _builder.get(".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications") + if subscription_lifecycle_notification_specifications is not None: + subscription_lifecycle_notification_specifications.set_prop("softDeleteTTL", AAZStrType, ".soft_delete_ttl") + subscription_lifecycle_notification_specifications.set_prop("subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") + + subscription_state_override_actions = _builder.get(".properties.specification.providerRegistration.properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") + if subscription_state_override_actions is not None: + _UpdateHelper._build_schema_subscription_state_override_action_update(subscription_state_override_actions.set_elements(AAZObjectType, ".")) + + template_deployment_options = _builder.get(".properties.specification.providerRegistration.properties.templateDeploymentOptions") + if template_deployment_options is not None: + template_deployment_options.set_prop("preflightOptions", AAZListType, ".preflight_options") + template_deployment_options.set_prop("preflightSupported", AAZBoolType, ".preflight_supported") + + preflight_options = _builder.get(".properties.specification.providerRegistration.properties.templateDeploymentOptions.preflightOptions") + if preflight_options is not None: + preflight_options.set_elements(AAZStrType, ".") + + resource_type_registrations = _builder.get(".properties.specification.resourceTypeRegistrations") + if resource_type_registrations is not None: + resource_type_registrations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[]") + if _elements is not None: + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties.specification.resourceTypeRegistrations[].properties") + if properties is not None: + properties.set_prop("addResourceListTargetLocations", AAZBoolType, ".add_resource_list_target_locations") + properties.set_prop("additionalOptions", AAZStrType, ".additional_options") + properties.set_prop("allowEmptyRoleAssignments", AAZBoolType, ".allow_empty_role_assignments") + properties.set_prop("allowedResourceNames", AAZListType, ".allowed_resource_names") + properties.set_prop("allowedTemplateDeploymentReferenceActions", AAZListType, ".allowed_template_deployment_reference_actions") + properties.set_prop("allowedUnauthorizedActions", AAZListType, ".allowed_unauthorized_actions") + properties.set_prop("apiProfiles", AAZListType, ".api_profiles") + properties.set_prop("asyncOperationResourceTypeName", AAZStrType, ".async_operation_resource_type_name") + properties.set_prop("asyncTimeoutRules", AAZListType, ".async_timeout_rules") + properties.set_prop("authorizationActionMappings", AAZListType, ".authorization_action_mappings") + properties.set_prop("availabilityZoneRule", AAZObjectType, ".availability_zone_rule") + properties.set_prop("capacityRule", AAZObjectType, ".capacity_rule") + properties.set_prop("category", AAZStrType, ".category") + properties.set_prop("checkNameAvailabilitySpecifications", AAZObjectType, ".check_name_availability_specifications") + properties.set_prop("commonApiVersions", AAZListType, ".common_api_versions") + properties.set_prop("crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") + properties.set_prop("defaultApiVersion", AAZStrType, ".default_api_version") + properties.set_prop("disallowedActionVerbs", AAZListType, ".disallowed_action_verbs") + properties.set_prop("disallowedEndUserOperations", AAZListType, ".disallowed_end_user_operations") + properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + properties.set_prop("enableAsyncOperation", AAZBoolType, ".enable_async_operation") + properties.set_prop("enableThirdPartyS2S", AAZBoolType, ".enable_third_party_s2_s") + properties.set_prop("endpoints", AAZListType, ".endpoints") + properties.set_prop("extendedLocations", AAZListType, ".extended_locations") + properties.set_prop("extensionOptions", AAZObjectType, ".extension_options") + properties.set_prop("featuresRule", AAZObjectType, ".features_rule") + properties.set_prop("frontdoorRequestMode", AAZStrType, ".frontdoor_request_mode") + properties.set_prop("groupingTag", AAZStrType, ".grouping_tag") + properties.set_prop("identityManagement", AAZObjectType, ".identity_management") + properties.set_prop("isPureProxy", AAZBoolType, ".is_pure_proxy") + properties.set_prop("legacyName", AAZStrType, ".legacy_name") + properties.set_prop("legacyNames", AAZListType, ".legacy_names") + properties.set_prop("legacyPolicy", AAZObjectType, ".legacy_policy") + properties.set_prop("linkedAccessChecks", AAZListType, ".linked_access_checks") + properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") + properties.set_prop("linkedOperationRules", AAZListType, ".linked_operation_rules") + properties.set_prop("loggingRules", AAZListType, ".logging_rules") + properties.set_prop("managedResourceGroupConfiguration", AAZObjectType, ".managed_resource_group_configuration") + properties.set_prop("management", AAZObjectType, ".management") + properties.set_prop("manifestLink", AAZStrType, ".manifest_link") + properties.set_prop("marketplaceOptions", AAZObjectType, ".marketplace_options") + properties.set_prop("marketplaceType", AAZStrType, ".marketplace_type") + properties.set_prop("metadata", AAZDictType, ".metadata") + _UpdateHelper._build_schema_notifications_update(properties.set_prop("notifications", AAZListType, ".notifications")) + properties.set_prop("onBehalfOfTokens", AAZObjectType, ".on_behalf_of_tokens") + properties.set_prop("openApiConfiguration", AAZObjectType, ".open_api_configuration") + properties.set_prop("policyExecutionType", AAZStrType, ".policy_execution_type") + properties.set_prop("privateEndpointConfiguration", AAZObjectType, ".private_endpoint_configuration") + properties.set_prop("quotaRule", AAZObjectType, ".quota_rule") + properties.set_prop("regionality", AAZStrType, ".regionality") + properties.set_prop("requestHeaderOptions", AAZObjectType, ".request_header_options") + properties.set_prop("requiredFeatures", AAZListType, ".required_features") + properties.set_prop("resourceCache", AAZObjectType, ".resource_cache") + properties.set_prop("resourceConcurrencyControlOptions", AAZDictType, ".resource_concurrency_control_options") + properties.set_prop("resourceDeletionPolicy", AAZStrType, ".resource_deletion_policy") + properties.set_prop("resourceGraphConfiguration", AAZObjectType, ".resource_graph_configuration") + properties.set_prop("resourceManagementOptions", AAZObjectType, ".resource_management_options") + properties.set_prop("resourceMovePolicy", AAZObjectType, ".resource_move_policy") + _UpdateHelper._build_schema_resource_provider_authorization_rules_update(properties.set_prop("resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules")) + properties.set_prop("resourceQueryManagement", AAZObjectType, ".resource_query_management") + properties.set_prop("resourceSubType", AAZStrType, ".resource_sub_type") + properties.set_prop("resourceTypeCommonAttributeManagement", AAZObjectType, ".resource_type_common_attribute_management") + properties.set_prop("resourceValidation", AAZStrType, ".resource_validation") + properties.set_prop("routingRule", AAZObjectType, ".routing_rule") + properties.set_prop("routingType", AAZStrType, ".routing_type") + properties.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + properties.set_prop("skuLink", AAZStrType, ".sku_link") + properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType, ".subscription_lifecycle_notification_specifications") + properties.set_prop("subscriptionStateRules", AAZListType, ".subscription_state_rules") + properties.set_prop("supportsTags", AAZBoolType, ".supports_tags") + properties.set_prop("swaggerSpecifications", AAZListType, ".swagger_specifications") + properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") + properties.set_prop("templateDeploymentPolicy", AAZObjectType, ".template_deployment_policy") + properties.set_prop("throttlingRules", AAZListType, ".throttling_rules") + _UpdateHelper._build_schema_token_auth_configuration_update(properties.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + allowed_resource_names = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames") + if allowed_resource_names is not None: + allowed_resource_names.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedResourceNames[]") + if _elements is not None: + _elements.set_prop("getActionVerb", AAZStrType, ".get_action_verb") + _elements.set_prop("name", AAZStrType, ".name") + + allowed_template_deployment_reference_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedTemplateDeploymentReferenceActions") + if allowed_template_deployment_reference_actions is not None: + allowed_template_deployment_reference_actions.set_elements(AAZStrType, ".") + + allowed_unauthorized_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.allowedUnauthorizedActions") + if allowed_unauthorized_actions is not None: + allowed_unauthorized_actions.set_elements(AAZStrType, ".") + + api_profiles = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.apiProfiles") + if api_profiles is not None: + api_profiles.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.apiProfiles[]") + if _elements is not None: + _elements.set_prop("apiVersion", AAZStrType, ".api_version") + _elements.set_prop("profileVersion", AAZStrType, ".profile_version") + + async_timeout_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules") + if async_timeout_rules is not None: + async_timeout_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.asyncTimeoutRules[]") + if _elements is not None: + _elements.set_prop("actionName", AAZStrType, ".action_name") + _elements.set_prop("timeout", AAZStrType, ".timeout") + + authorization_action_mappings = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings") + if authorization_action_mappings is not None: + authorization_action_mappings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.authorizationActionMappings[]") + if _elements is not None: + _elements.set_prop("desired", AAZStrType, ".desired") + _elements.set_prop("original", AAZStrType, ".original") + + availability_zone_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.availabilityZoneRule") + if availability_zone_rule is not None: + availability_zone_rule.set_prop("availabilityZonePolicy", AAZStrType, ".availability_zone_policy") + + capacity_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.capacityRule") + if capacity_rule is not None: + capacity_rule.set_prop("capacityPolicy", AAZStrType, ".capacity_policy") + capacity_rule.set_prop("skuAlias", AAZStrType, ".sku_alias") + + check_name_availability_specifications = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications") + if check_name_availability_specifications is not None: + check_name_availability_specifications.set_prop("enableDefaultValidation", AAZBoolType, ".enable_default_validation") + check_name_availability_specifications.set_prop("resourceTypesWithCustomValidation", AAZListType, ".resource_types_with_custom_validation") + + resource_types_with_custom_validation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.checkNameAvailabilitySpecifications.resourceTypesWithCustomValidation") + if resource_types_with_custom_validation is not None: + resource_types_with_custom_validation.set_elements(AAZStrType, ".") + + common_api_versions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.commonApiVersions") + if common_api_versions is not None: + common_api_versions.set_elements(AAZStrType, ".") + + disallowed_action_verbs = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.disallowedActionVerbs") + if disallowed_action_verbs is not None: + disallowed_action_verbs.set_elements(AAZStrType, ".") + + disallowed_end_user_operations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.disallowedEndUserOperations") + if disallowed_end_user_operations is not None: + disallowed_end_user_operations.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + endpoints = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints") + if endpoints is not None: + endpoints.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[]") + if _elements is not None: + _elements.set_prop("apiVersion", AAZStrType, ".api_version") + _elements.set_prop("apiVersions", AAZListType, ".api_versions") + _elements.set_prop("dataBoundary", AAZStrType, ".data_boundary") + _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + _elements.set_prop("enabled", AAZBoolType, ".enabled") + _elements.set_prop("endpointType", AAZStrType, ".endpoint_type") + _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _elements.set_prop("extensions", AAZListType, ".extensions") + _elements.set_prop("featuresRule", AAZObjectType, ".features_rule") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("skuLink", AAZStrType, ".sku_link") + _elements.set_prop("timeout", AAZStrType, ".timeout") + _UpdateHelper._build_schema_token_auth_configuration_update(_elements.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + _elements.set_prop("zones", AAZListType, ".zones") + + api_versions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + extensions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions") + if extensions is not None: + extensions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[]") + if _elements is not None: + _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _elements.set_prop("extensionCategories", AAZListType, ".extension_categories") + _elements.set_prop("timeout", AAZStrType, ".timeout") + + extension_categories = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].extensions[].extensionCategories") + if extension_categories is not None: + extension_categories.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + locations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.endpoints[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + extended_locations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extendedLocations[]") + if _elements is not None: + _elements.set_prop("supportedPolicy", AAZStrType, ".supported_policy") + _elements.set_prop("type", AAZStrType, ".type") + + extension_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions") + if extension_options is not None: + extension_options.set_prop("resourceCreationBegin", AAZObjectType, ".resource_creation_begin") + + resource_creation_begin = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin") + if resource_creation_begin is not None: + resource_creation_begin.set_prop("request", AAZListType, ".request") + resource_creation_begin.set_prop("response", AAZListType, ".response") + + request = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.request") + if request is not None: + request.set_elements(AAZStrType, ".") + + response = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.extensionOptions.resourceCreationBegin.response") + if response is not None: + response.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + identity_management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.identityManagement") + if identity_management is not None: + identity_management.set_prop("applicationId", AAZStrType, ".application_id") + identity_management.set_prop("applicationIds", AAZListType, ".application_ids") + identity_management.set_prop("delegationAppIds", AAZListType, ".delegation_app_ids") + identity_management.set_prop("type", AAZStrType, ".type") + + application_ids = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.identityManagement.applicationIds") + if application_ids is not None: + application_ids.set_elements(AAZStrType, ".") + + delegation_app_ids = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.identityManagement.delegationAppIds") + if delegation_app_ids is not None: + delegation_app_ids.set_elements(AAZStrType, ".") + + legacy_names = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyNames") + if legacy_names is not None: + legacy_names.set_elements(AAZStrType, ".") + + legacy_policy = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy") + if legacy_policy is not None: + legacy_policy.set_prop("disallowedConditions", AAZListType, ".disallowed_conditions") + legacy_policy.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") + + disallowed_conditions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions") + if disallowed_conditions is not None: + disallowed_conditions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[]") + if _elements is not None: + _elements.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") + _elements.set_prop("feature", AAZStrType, ".feature") + + disallowed_legacy_operations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedConditions[].disallowedLegacyOperations") + if disallowed_legacy_operations is not None: + disallowed_legacy_operations.set_elements(AAZStrType, ".") + + disallowed_legacy_operations = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.legacyPolicy.disallowedLegacyOperations") + if disallowed_legacy_operations is not None: + disallowed_legacy_operations.set_elements(AAZStrType, ".") + + linked_access_checks = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks") + if linked_access_checks is not None: + linked_access_checks.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedAccessChecks[]") + if _elements is not None: + _elements.set_prop("actionName", AAZStrType, ".action_name") + _elements.set_prop("linkedAction", AAZStrType, ".linked_action") + _elements.set_prop("linkedActionVerb", AAZStrType, ".linked_action_verb") + _elements.set_prop("linkedProperty", AAZStrType, ".linked_property") + _elements.set_prop("linkedType", AAZStrType, ".linked_type") + + linked_notification_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules") + if linked_notification_rules is not None: + linked_notification_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("actionsOnFailedOperation", AAZListType, ".actions_on_failed_operation") + _elements.set_prop("fastPathActions", AAZListType, ".fast_path_actions") + _elements.set_prop("fastPathActionsOnFailedOperation", AAZListType, ".fast_path_actions_on_failed_operation") + _elements.set_prop("linkedNotificationTimeout", AAZStrType, ".linked_notification_timeout") + + actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + actions_on_failed_operation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].actionsOnFailedOperation") + if actions_on_failed_operation is not None: + actions_on_failed_operation.set_elements(AAZStrType, ".") + + fast_path_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActions") + if fast_path_actions is not None: + fast_path_actions.set_elements(AAZStrType, ".") + + fast_path_actions_on_failed_operation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedNotificationRules[].fastPathActionsOnFailedOperation") + if fast_path_actions_on_failed_operation is not None: + fast_path_actions_on_failed_operation.set_elements(AAZStrType, ".") + + linked_operation_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules") + if linked_operation_rules is not None: + linked_operation_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[]") + if _elements is not None: + _elements.set_prop("dependsOnTypes", AAZListType, ".depends_on_types") + _elements.set_prop("linkedAction", AAZStrType, ".linked_action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("linkedOperation", AAZStrType, ".linked_operation", typ_kwargs={"flags": {"required": True}}) + + depends_on_types = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.linkedOperationRules[].dependsOnTypes") + if depends_on_types is not None: + depends_on_types.set_elements(AAZStrType, ".") + + logging_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules") + if logging_rules is not None: + logging_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("detailLevel", AAZStrType, ".detail_level", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("direction", AAZStrType, ".direction", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("hiddenPropertyPaths", AAZObjectType, ".hidden_property_paths") + + hidden_property_paths = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths") + if hidden_property_paths is not None: + hidden_property_paths.set_prop("hiddenPathsOnRequest", AAZListType, ".hidden_paths_on_request") + hidden_property_paths.set_prop("hiddenPathsOnResponse", AAZListType, ".hidden_paths_on_response") + + hidden_paths_on_request = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnRequest") + if hidden_paths_on_request is not None: + hidden_paths_on_request.set_elements(AAZStrType, ".") + + hidden_paths_on_response = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnResponse") + if hidden_paths_on_response is not None: + hidden_paths_on_response.set_elements(AAZStrType, ".") + + managed_resource_group_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration") + if managed_resource_group_configuration is not None: + managed_resource_group_configuration.set_prop("applicationIds", AAZListType, ".application_ids") + managed_resource_group_configuration.set_prop("denyAssignmentConfiguration", AAZObjectType, ".deny_assignment_configuration") + managed_resource_group_configuration.set_prop("enabled", AAZBoolType, ".enabled") + managed_resource_group_configuration.set_prop("resourceGroupLocationOverride", AAZStrType, ".resource_group_location_override") + + application_ids = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.applicationIds") + if application_ids is not None: + application_ids.set_elements(AAZStrType, ".") + + deny_assignment_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration") + if deny_assignment_configuration is not None: + deny_assignment_configuration.set_prop("enabled", AAZBoolType, ".enabled") + deny_assignment_configuration.set_prop("notActions", AAZListType, ".not_actions") + + not_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.managedResourceGroupConfiguration.denyAssignmentConfiguration.notActions") + if not_actions is not None: + not_actions.set_elements(AAZStrType, ".") + + management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management") + if management is not None: + management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") + management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") + management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") + management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") + management.set_prop("expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") + management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") + management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") + management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") + management.set_prop("manifestOwners", AAZListType, ".manifest_owners") + management.set_prop("pcCode", AAZStrType, ".pc_code") + management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") + management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") + management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") + management.set_prop("schemaOwners", AAZListType, ".schema_owners") + management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + + authorization_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.authorizationOwners") + if authorization_owners is not None: + authorization_owners.set_elements(AAZStrType, ".") + + canary_manifest_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.canaryManifestOwners") + if canary_manifest_owners is not None: + canary_manifest_owners.set_elements(AAZStrType, ".") + + error_response_message_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.errorResponseMessageOptions") + if error_response_message_options is not None: + error_response_message_options.set_prop("serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") + + expedited_rollout_metadata = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutMetadata") + if expedited_rollout_metadata is not None: + expedited_rollout_metadata.set_prop("enabled", AAZBoolType, ".enabled") + expedited_rollout_metadata.set_prop("expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") + + expedited_rollout_submitters = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.expeditedRolloutSubmitters") + if expedited_rollout_submitters is not None: + expedited_rollout_submitters.set_elements(AAZStrType, ".") + + manifest_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.manifestOwners") + if manifest_owners is not None: + manifest_owners.set_elements(AAZStrType, ".") + + resource_access_roles = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.resourceAccessRoles") + if resource_access_roles is not None: + _UpdateHelper._build_schema_resource_access_role_update(resource_access_roles.set_elements(AAZObjectType, ".")) + + schema_owners = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.schemaOwners") + if schema_owners is not None: + schema_owners.set_elements(AAZStrType, ".") + + service_tree_infos = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.management.serviceTreeInfos") + if service_tree_infos is not None: + _UpdateHelper._build_schema_service_tree_info_update(service_tree_infos.set_elements(AAZObjectType, ".")) + + marketplace_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.marketplaceOptions") + if marketplace_options is not None: + marketplace_options.set_prop("addOnPlanConversionAllowed", AAZBoolType, ".add_on_plan_conversion_allowed") + + metadata = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.metadata") + if metadata is not None: + metadata.set_elements(AAZFreeFormDictType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.metadata{}") + if _elements is not None: + _elements.set_anytype_elements(".") + + on_behalf_of_tokens = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.onBehalfOfTokens") + if on_behalf_of_tokens is not None: + on_behalf_of_tokens.set_prop("actionName", AAZStrType, ".action_name") + on_behalf_of_tokens.set_prop("lifeTime", AAZStrType, ".life_time") + + open_api_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration") + if open_api_configuration is not None: + open_api_configuration.set_prop("validation", AAZObjectType, ".validation") + + validation = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.openApiConfiguration.validation") + if validation is not None: + validation.set_prop("allowNoncompliantCollectionResponse", AAZBoolType, ".allow_noncompliant_collection_response") + + private_endpoint_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration") + if private_endpoint_configuration is not None: + private_endpoint_configuration.set_prop("groupConnectivityInformation", AAZListType, ".group_connectivity_information", typ_kwargs={"flags": {"required": True}}) + private_endpoint_configuration.set_prop("minApiVersion", AAZStrType, ".min_api_version", typ_kwargs={"flags": {"required": True}}) + + group_connectivity_information = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation") + if group_connectivity_information is not None: + group_connectivity_information.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[]") + if _elements is not None: + _elements.set_prop("groupId", AAZStrType, ".group_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("redirectMapId", AAZStrType, ".redirect_map_id") + _elements.set_prop("requiredMembers", AAZListType, ".required_members", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredZoneNames", AAZListType, ".required_zone_names", typ_kwargs={"flags": {"required": True}}) + + required_members = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredMembers") + if required_members is not None: + required_members.set_elements(AAZStrType, ".") + + required_zone_names = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredZoneNames") + if required_zone_names is not None: + required_zone_names.set_elements(AAZStrType, ".") + + quota_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule") + if quota_rule is not None: + quota_rule.set_prop("locationRules", AAZListType, ".location_rules") + quota_rule.set_prop("quotaPolicy", AAZStrType, ".quota_policy") + quota_rule.set_prop("requiredFeatures", AAZListType, ".required_features") + + location_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules") + if location_rules is not None: + location_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule.locationRules[]") + if _elements is not None: + _elements.set_prop("location", AAZStrType, ".location") + _elements.set_prop("policy", AAZStrType, ".policy") + _elements.set_prop("quotaId", AAZStrType, ".quota_id") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.quotaRule.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + request_header_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.requestHeaderOptions") + if request_header_options is not None: + request_header_options.set_prop("optInHeaders", AAZStrType, ".opt_in_headers") + request_header_options.set_prop("optOutHeaders", AAZStrType, ".opt_out_headers") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + resource_cache = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceCache") + if resource_cache is not None: + resource_cache.set_prop("enableResourceCache", AAZBoolType, ".enable_resource_cache") + resource_cache.set_prop("resourceCacheExpirationTimespan", AAZStrType, ".resource_cache_expiration_timespan") + + resource_concurrency_control_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions") + if resource_concurrency_control_options is not None: + resource_concurrency_control_options.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceConcurrencyControlOptions{}") + if _elements is not None: + _elements.set_prop("policy", AAZStrType, ".policy") + + resource_graph_configuration = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceGraphConfiguration") + if resource_graph_configuration is not None: + resource_graph_configuration.set_prop("apiVersion", AAZStrType, ".api_version") + resource_graph_configuration.set_prop("enabled", AAZBoolType, ".enabled") + + resource_management_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions") + if resource_management_options is not None: + resource_management_options.set_prop("batchProvisioningSupport", AAZObjectType, ".batch_provisioning_support") + resource_management_options.set_prop("deleteDependencies", AAZListType, ".delete_dependencies") + resource_management_options.set_prop("nestedProvisioningSupport", AAZObjectType, ".nested_provisioning_support") + + batch_provisioning_support = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.batchProvisioningSupport") + if batch_provisioning_support is not None: + batch_provisioning_support.set_prop("supportedOperations", AAZStrType, ".supported_operations") + + delete_dependencies = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies") + if delete_dependencies is not None: + delete_dependencies.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[]") + if _elements is not None: + _elements.set_prop("linkedProperty", AAZStrType, ".linked_property") + _elements.set_prop("linkedType", AAZStrType, ".linked_type") + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.deleteDependencies[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + nested_provisioning_support = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceManagementOptions.nestedProvisioningSupport") + if nested_provisioning_support is not None: + nested_provisioning_support.set_prop("minimumApiVersion", AAZStrType, ".minimum_api_version") + + resource_move_policy = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceMovePolicy") + if resource_move_policy is not None: + resource_move_policy.set_prop("crossResourceGroupMoveEnabled", AAZBoolType, ".cross_resource_group_move_enabled") + resource_move_policy.set_prop("crossSubscriptionMoveEnabled", AAZBoolType, ".cross_subscription_move_enabled") + resource_move_policy.set_prop("validationRequired", AAZBoolType, ".validation_required") + + resource_query_management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceQueryManagement") + if resource_query_management is not None: + resource_query_management.set_prop("filterOption", AAZStrType, ".filter_option") + + resource_type_common_attribute_management = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.resourceTypeCommonAttributeManagement") + if resource_type_common_attribute_management is not None: + resource_type_common_attribute_management.set_prop("commonApiVersionsMergeMode", AAZStrType, ".common_api_versions_merge_mode") + + routing_rule = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.routingRule") + if routing_rule is not None: + routing_rule.set_prop("hostResourceType", AAZStrType, ".host_resource_type") + + service_tree_infos = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.serviceTreeInfos") + if service_tree_infos is not None: + _UpdateHelper._build_schema_service_tree_info_update(service_tree_infos.set_elements(AAZObjectType, ".")) + + subscription_lifecycle_notification_specifications = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications") + if subscription_lifecycle_notification_specifications is not None: + subscription_lifecycle_notification_specifications.set_prop("softDeleteTTL", AAZStrType, ".soft_delete_ttl") + subscription_lifecycle_notification_specifications.set_prop("subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") + + subscription_state_override_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") + if subscription_state_override_actions is not None: + _UpdateHelper._build_schema_subscription_state_override_action_update(subscription_state_override_actions.set_elements(AAZObjectType, ".")) + + subscription_state_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules") + if subscription_state_rules is not None: + subscription_state_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[]") + if _elements is not None: + _elements.set_prop("allowedActions", AAZListType, ".allowed_actions") + _elements.set_prop("state", AAZStrType, ".state") + + allowed_actions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.subscriptionStateRules[].allowedActions") + if allowed_actions is not None: + allowed_actions.set_elements(AAZStrType, ".") + + swagger_specifications = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications") + if swagger_specifications is not None: + swagger_specifications.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[]") + if _elements is not None: + _elements.set_prop("apiVersions", AAZListType, ".api_versions") + _elements.set_prop("swaggerSpecFolderUri", AAZStrType, ".swagger_spec_folder_uri") + + api_versions = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.swaggerSpecifications[].apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + template_deployment_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions") + if template_deployment_options is not None: + template_deployment_options.set_prop("preflightOptions", AAZListType, ".preflight_options") + template_deployment_options.set_prop("preflightSupported", AAZBoolType, ".preflight_supported") + + preflight_options = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentOptions.preflightOptions") + if preflight_options is not None: + preflight_options.set_elements(AAZStrType, ".") + + template_deployment_policy = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.templateDeploymentPolicy") + if template_deployment_policy is not None: + template_deployment_policy.set_prop("capabilities", AAZStrType, ".capabilities", typ_kwargs={"flags": {"required": True}}) + template_deployment_policy.set_prop("preflightNotifications", AAZStrType, ".preflight_notifications") + template_deployment_policy.set_prop("preflightOptions", AAZStrType, ".preflight_options", typ_kwargs={"flags": {"required": True}}) + + throttling_rules = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules") + if throttling_rules is not None: + throttling_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("applicationId", AAZListType, ".application_id") + _elements.set_prop("metrics", AAZListType, ".metrics", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + application_id = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].applicationId") + if application_id is not None: + application_id.set_elements(AAZStrType, ".") + + metrics = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics") + if metrics is not None: + metrics.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].metrics[]") + if _elements is not None: + _elements.set_prop("interval", AAZStrType, ".interval") + _elements.set_prop("limit", AAZIntType, ".limit", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + required_features = _builder.get(".properties.specification.resourceTypeRegistrations[].properties.throttlingRules[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + rest_of_the_world_group_one = _builder.get(".properties.specification.restOfTheWorldGroupOne") + if rest_of_the_world_group_one is not None: + rest_of_the_world_group_one.set_prop("regions", AAZListType, ".regions") + rest_of_the_world_group_one.set_prop("waitDuration", AAZStrType, ".wait_duration") + + regions = _builder.get(".properties.specification.restOfTheWorldGroupOne.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + rest_of_the_world_group_two = _builder.get(".properties.specification.restOfTheWorldGroupTwo") + if rest_of_the_world_group_two is not None: + rest_of_the_world_group_two.set_prop("regions", AAZListType, ".regions") + rest_of_the_world_group_two.set_prop("waitDuration", AAZStrType, ".wait_duration") + + regions = _builder.get(".properties.specification.restOfTheWorldGroupTwo.regions") + if regions is not None: + regions.set_elements(AAZStrType, ".") + + status = _builder.get(".properties.status") + if status is not None: + status.set_prop("completedRegions", AAZListType, ".completed_regions") + status.set_prop("failedOrSkippedRegions", AAZDictType, ".failed_or_skipped_regions") + status.set_prop("manifestCheckinStatus", AAZObjectType, ".manifest_checkin_status") + status.set_prop("nextTrafficRegion", AAZStrType, ".next_traffic_region") + status.set_prop("nextTrafficRegionScheduledTime", AAZStrType, ".next_traffic_region_scheduled_time") + status.set_prop("subscriptionReregistrationResult", AAZStrType, ".subscription_reregistration_result") + + completed_regions = _builder.get(".properties.status.completedRegions") + if completed_regions is not None: + completed_regions.set_elements(AAZStrType, ".") + + failed_or_skipped_regions = _builder.get(".properties.status.failedOrSkippedRegions") + if failed_or_skipped_regions is not None: + _UpdateHelper._build_schema_extended_error_info_update(failed_or_skipped_regions.set_elements(AAZObjectType, ".")) + + manifest_checkin_status = _builder.get(".properties.status.manifestCheckinStatus") + if manifest_checkin_status is not None: + manifest_checkin_status.set_prop("commitId", AAZStrType, ".commit_id") + manifest_checkin_status.set_prop("isCheckedIn", AAZBoolType, ".is_checked_in", typ_kwargs={"flags": {"required": True}}) + manifest_checkin_status.set_prop("pullRequest", AAZStrType, ".pull_request") + manifest_checkin_status.set_prop("statusMessage", AAZStrType, ".status_message", typ_kwargs={"flags": {"required": True}}) + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + @classmethod + def _build_schema_extended_error_info_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("additionalInfo", AAZListType, ".additional_info") + _builder.set_prop("code", AAZStrType, ".code") + _builder.set_prop("details", AAZListType, ".details") + _builder.set_prop("message", AAZStrType, ".message") + _builder.set_prop("target", AAZStrType, ".target") + + additional_info = _builder.get(".additionalInfo") + if additional_info is not None: + additional_info.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".additionalInfo[]") + if _elements is not None: + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + details = _builder.get(".details") + if details is not None: + cls._build_schema_extended_error_info_update(details.set_elements(AAZObjectType, ".")) + + @classmethod + def _build_schema_notifications_update(cls, _builder): + if _builder is None: + return + _builder.set_elements(AAZObjectType, ".") + + _elements = _builder.get("[]") + if _elements is not None: + _elements.set_prop("notificationType", AAZStrType, ".notification_type") + _elements.set_prop("skipNotifications", AAZStrType, ".skip_notifications") + + @classmethod + def _build_schema_resource_access_role_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("actions", AAZListType, ".actions") + _builder.set_prop("allowedGroupClaims", AAZListType, ".allowed_group_claims") + + actions = _builder.get(".actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + allowed_group_claims = _builder.get(".allowedGroupClaims") + if allowed_group_claims is not None: + allowed_group_claims.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_resource_provider_authorization_rules_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("asyncOperationPollingRules", AAZObjectType, ".async_operation_polling_rules") + + async_operation_polling_rules = _builder.get(".asyncOperationPollingRules") + if async_operation_polling_rules is not None: + async_operation_polling_rules.set_prop("additionalOptions", AAZStrType, ".additional_options") + async_operation_polling_rules.set_prop("authorizationActions", AAZListType, ".authorization_actions") + + authorization_actions = _builder.get(".asyncOperationPollingRules.authorizationActions") + if authorization_actions is not None: + authorization_actions.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_resource_provider_authorization_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("allowedThirdPartyExtensions", AAZListType, ".allowed_third_party_extensions") + _builder.set_prop("applicationId", AAZStrType, ".application_id") + _builder.set_prop("groupingTag", AAZStrType, ".grouping_tag") + _builder.set_prop("managedByAuthorization", AAZObjectType, ".managed_by_authorization") + _builder.set_prop("managedByRoleDefinitionId", AAZStrType, ".managed_by_role_definition_id") + _builder.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + allowed_third_party_extensions = _builder.get(".allowedThirdPartyExtensions") + if allowed_third_party_extensions is not None: + allowed_third_party_extensions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".allowedThirdPartyExtensions[]") + if _elements is not None: + _elements.set_prop("name", AAZStrType, ".name") + + managed_by_authorization = _builder.get(".managedByAuthorization") + if managed_by_authorization is not None: + managed_by_authorization.set_prop("additionalAuthorizations", AAZListType, ".additional_authorizations") + managed_by_authorization.set_prop("allowManagedByInheritance", AAZBoolType, ".allow_managed_by_inheritance") + managed_by_authorization.set_prop("managedByResourceRoleDefinitionId", AAZStrType, ".managed_by_resource_role_definition_id") + + additional_authorizations = _builder.get(".managedByAuthorization.additionalAuthorizations") + if additional_authorizations is not None: + additional_authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".managedByAuthorization.additionalAuthorizations[]") + if _elements is not None: + _elements.set_prop("applicationId", AAZStrType, ".application_id") + _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + @classmethod + def _build_schema_resource_provider_endpoint_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("apiVersions", AAZListType, ".api_versions") + _builder.set_prop("enabled", AAZBoolType, ".enabled") + _builder.set_prop("endpointType", AAZStrType, ".endpoint_type") + _builder.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _builder.set_prop("featuresRule", AAZObjectType, ".features_rule") + _builder.set_prop("locations", AAZListType, ".locations") + _builder.set_prop("requiredFeatures", AAZListType, ".required_features") + _builder.set_prop("skuLink", AAZStrType, ".sku_link") + _builder.set_prop("timeout", AAZStrType, ".timeout") + + api_versions = _builder.get(".apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + locations = _builder.get(".locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_service_tree_info_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("componentId", AAZStrType, ".component_id") + _builder.set_prop("readiness", AAZStrType, ".readiness") + _builder.set_prop("serviceId", AAZStrType, ".service_id") + + @classmethod + def _build_schema_subscription_state_override_action_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("state", AAZStrType, ".state", typ_kwargs={"flags": {"required": True}}) + + @classmethod + def _build_schema_token_auth_configuration_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("authenticationScheme", AAZStrType, ".authentication_scheme") + _builder.set_prop("disableCertificateAuthenticationFallback", AAZBoolType, ".disable_certificate_authentication_fallback") + _builder.set_prop("signedRequestScope", AAZStrType, ".signed_request_scope") + + _schema_default_rollout_read = None + + @classmethod + def _build_schema_default_rollout_read(cls, _schema): + if cls._schema_default_rollout_read is not None: + _schema.id = cls._schema_default_rollout_read.id + _schema.name = cls._schema_default_rollout_read.name + _schema.properties = cls._schema_default_rollout_read.properties + _schema.system_data = cls._schema_default_rollout_read.system_data + _schema.type = cls._schema_default_rollout_read.type + return + + cls._schema_default_rollout_read = _schema_default_rollout_read = AAZObjectType() + + default_rollout_read = _schema_default_rollout_read + default_rollout_read.id = AAZStrType( + flags={"read_only": True}, + ) + default_rollout_read.name = AAZStrType( + flags={"read_only": True}, + ) + default_rollout_read.properties = AAZObjectType() + default_rollout_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + cls._build_schema_system_data_read(default_rollout_read.system_data) + default_rollout_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_default_rollout_read.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.specification = AAZObjectType() + properties.status = AAZObjectType() + + specification = _schema_default_rollout_read.properties.specification + specification.auto_provision_config = AAZObjectType( + serialized_name="autoProvisionConfig", + ) + specification.canary = AAZObjectType() + specification.expedited_rollout = AAZObjectType( + serialized_name="expeditedRollout", + ) + specification.high_traffic = AAZObjectType( + serialized_name="highTraffic", + ) + specification.low_traffic = AAZObjectType( + serialized_name="lowTraffic", + ) + specification.manifest_checkin_specification = AAZObjectType( + serialized_name="manifestCheckinSpecification", + ) + specification.medium_traffic = AAZObjectType( + serialized_name="mediumTraffic", + ) + specification.provider_registration = AAZObjectType( + serialized_name="providerRegistration", + ) + specification.resource_type_registrations = AAZListType( + serialized_name="resourceTypeRegistrations", + ) + specification.rest_of_the_world_group_one = AAZObjectType( + serialized_name="restOfTheWorldGroupOne", + ) + specification.rest_of_the_world_group_two = AAZObjectType( + serialized_name="restOfTheWorldGroupTwo", + ) + + auto_provision_config = _schema_default_rollout_read.properties.specification.auto_provision_config + auto_provision_config.resource_graph = AAZBoolType( + serialized_name="resourceGraph", + ) + auto_provision_config.storage = AAZBoolType() + + canary = _schema_default_rollout_read.properties.specification.canary + canary.regions = AAZListType() + canary.skip_regions = AAZListType( + serialized_name="skipRegions", + ) + + regions = _schema_default_rollout_read.properties.specification.canary.regions + regions.Element = AAZStrType() + + skip_regions = _schema_default_rollout_read.properties.specification.canary.skip_regions + skip_regions.Element = AAZStrType() + + expedited_rollout = _schema_default_rollout_read.properties.specification.expedited_rollout + expedited_rollout.enabled = AAZBoolType() + + high_traffic = _schema_default_rollout_read.properties.specification.high_traffic + high_traffic.regions = AAZListType() + high_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = _schema_default_rollout_read.properties.specification.high_traffic.regions + regions.Element = AAZStrType() + + low_traffic = _schema_default_rollout_read.properties.specification.low_traffic + low_traffic.regions = AAZListType() + low_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = _schema_default_rollout_read.properties.specification.low_traffic.regions + regions.Element = AAZStrType() + + manifest_checkin_specification = _schema_default_rollout_read.properties.specification.manifest_checkin_specification + manifest_checkin_specification.manifest_checkin_option = AAZStrType( + serialized_name="manifestCheckinOption", + ) + manifest_checkin_specification.manifest_checkin_params = AAZObjectType( + serialized_name="manifestCheckinParams", + ) + + manifest_checkin_params = _schema_default_rollout_read.properties.specification.manifest_checkin_specification.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( + serialized_name="baselineArmManifestLocation", + flags={"required": True}, + ) + manifest_checkin_params.environment = AAZStrType( + flags={"required": True}, + ) + + medium_traffic = _schema_default_rollout_read.properties.specification.medium_traffic + medium_traffic.regions = AAZListType() + medium_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = _schema_default_rollout_read.properties.specification.medium_traffic.regions + regions.Element = AAZStrType() + + provider_registration = _schema_default_rollout_read.properties.specification.provider_registration + provider_registration.id = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.kind = AAZStrType() + provider_registration.name = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.properties = AAZObjectType() + provider_registration.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + cls._build_schema_system_data_read(provider_registration.system_data) + provider_registration.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_default_rollout_read.properties.specification.provider_registration.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + cls._build_schema_notifications_read(properties.notifications) + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + cls._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + cls._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = _schema_default_rollout_read.properties.specification.provider_registration.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.provider_registration.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = _schema_default_rollout_read.properties.specification.provider_registration.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = _schema_default_rollout_read.properties.specification.provider_registration.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = _schema_default_rollout_read.properties.specification.provider_registration.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = _schema_default_rollout_read.properties.specification.provider_registration.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + cls._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = _schema_default_rollout_read.properties.specification.provider_registration.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = _schema_default_rollout_read.properties.specification.provider_registration.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.provider_registration.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + cls._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = _schema_default_rollout_read.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = _schema_default_rollout_read.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = _schema_default_rollout_read.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + cls._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = _schema_default_rollout_read.properties.specification.provider_registration.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = _schema_default_rollout_read.properties.specification.provider_registration.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = _schema_default_rollout_read.properties.specification.provider_registration.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = _schema_default_rollout_read.properties.specification.provider_registration.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = _schema_default_rollout_read.properties.specification.provider_registration.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = _schema_default_rollout_read.properties.specification.provider_registration.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = _schema_default_rollout_read.properties.specification.provider_registration.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = _schema_default_rollout_read.properties.specification.provider_registration.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + cls._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = _schema_default_rollout_read.properties.specification.provider_registration.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = _schema_default_rollout_read.properties.specification.provider_registration.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + cls._build_schema_service_tree_info_read(service_tree_infos.Element) + + management_group_global_notification_endpoints = _schema_default_rollout_read.properties.specification.provider_registration.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + cls._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = _schema_default_rollout_read.properties.specification.provider_registration.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = _schema_default_rollout_read.properties.specification.provider_registration.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = _schema_default_rollout_read.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = _schema_default_rollout_read.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + optional_features = _schema_default_rollout_read.properties.specification.provider_registration.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = _schema_default_rollout_read.properties.specification.provider_registration.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = _schema_default_rollout_read.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = _schema_default_rollout_read.properties.specification.provider_registration.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = _schema_default_rollout_read.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = _schema_default_rollout_read.properties.specification.provider_registration.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + cls._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = _schema_default_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = _schema_default_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = _schema_default_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = _schema_default_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + cls._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = _schema_default_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = _schema_default_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = _schema_default_rollout_read.properties.specification.provider_registration.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = _schema_default_rollout_read.properties.specification.provider_registration.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = _schema_default_rollout_read.properties.specification.provider_registration.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = _schema_default_rollout_read.properties.specification.provider_registration.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.provider_registration.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + response_options = _schema_default_rollout_read.properties.specification.provider_registration.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = _schema_default_rollout_read.properties.specification.provider_registration.properties.services + services.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.provider_registration.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = _schema_default_rollout_read.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = _schema_default_rollout_read.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + cls._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + template_deployment_options = _schema_default_rollout_read.properties.specification.provider_registration.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = _schema_default_rollout_read.properties.specification.provider_registration.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + resource_type_registrations = _schema_default_rollout_read.properties.specification.resource_type_registrations + resource_type_registrations.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.kind = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + cls._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + cls._build_schema_notifications_read(properties.notifications) + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + cls._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + cls._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + cls._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + cls._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + cls._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.metadata + metadata.Element = AAZFreeFormDictType() + + on_behalf_of_tokens = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_query_management = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + cls._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + cls._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + subscription_state_rules = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = _schema_default_rollout_read.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + rest_of_the_world_group_one = _schema_default_rollout_read.properties.specification.rest_of_the_world_group_one + rest_of_the_world_group_one.regions = AAZListType() + rest_of_the_world_group_one.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = _schema_default_rollout_read.properties.specification.rest_of_the_world_group_one.regions + regions.Element = AAZStrType() + + rest_of_the_world_group_two = _schema_default_rollout_read.properties.specification.rest_of_the_world_group_two + rest_of_the_world_group_two.regions = AAZListType() + rest_of_the_world_group_two.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = _schema_default_rollout_read.properties.specification.rest_of_the_world_group_two.regions + regions.Element = AAZStrType() + + status = _schema_default_rollout_read.properties.status + status.completed_regions = AAZListType( + serialized_name="completedRegions", + ) + status.failed_or_skipped_regions = AAZDictType( + serialized_name="failedOrSkippedRegions", + ) + status.manifest_checkin_status = AAZObjectType( + serialized_name="manifestCheckinStatus", + ) + status.next_traffic_region = AAZStrType( + serialized_name="nextTrafficRegion", + ) + status.next_traffic_region_scheduled_time = AAZStrType( + serialized_name="nextTrafficRegionScheduledTime", + ) + status.subscription_reregistration_result = AAZStrType( + serialized_name="subscriptionReregistrationResult", + ) + + completed_regions = _schema_default_rollout_read.properties.status.completed_regions + completed_regions.Element = AAZStrType() + + failed_or_skipped_regions = _schema_default_rollout_read.properties.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectType() + cls._build_schema_extended_error_info_read(failed_or_skipped_regions.Element) + + manifest_checkin_status = _schema_default_rollout_read.properties.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrType( + serialized_name="commitId", + ) + manifest_checkin_status.is_checked_in = AAZBoolType( + serialized_name="isCheckedIn", + flags={"required": True}, + ) + manifest_checkin_status.pull_request = AAZStrType( + serialized_name="pullRequest", + ) + manifest_checkin_status.status_message = AAZStrType( + serialized_name="statusMessage", + flags={"required": True}, + ) + + _schema.id = cls._schema_default_rollout_read.id + _schema.name = cls._schema_default_rollout_read.name + _schema.properties = cls._schema_default_rollout_read.properties + _schema.system_data = cls._schema_default_rollout_read.system_data + _schema.type = cls._schema_default_rollout_read.type + + _schema_extended_error_info_read = None + + @classmethod + def _build_schema_extended_error_info_read(cls, _schema): + if cls._schema_extended_error_info_read is not None: + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + return + + cls._schema_extended_error_info_read = _schema_extended_error_info_read = AAZObjectType() + + extended_error_info_read = _schema_extended_error_info_read + extended_error_info_read.additional_info = AAZListType( + serialized_name="additionalInfo", + ) + extended_error_info_read.code = AAZStrType() + extended_error_info_read.details = AAZListType() + extended_error_info_read.message = AAZStrType() + extended_error_info_read.target = AAZStrType() + + additional_info = _schema_extended_error_info_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_extended_error_info_read.additional_info.Element + _element.info = AAZObjectType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + details = _schema_extended_error_info_read.details + details.Element = AAZObjectType() + cls._build_schema_extended_error_info_read(details.Element) + + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + + _schema_notifications_read = None + + @classmethod + def _build_schema_notifications_read(cls, _schema): + if cls._schema_notifications_read is not None: + _schema.Element = cls._schema_notifications_read.Element + return + + cls._schema_notifications_read = _schema_notifications_read = AAZListType() + + notifications_read = _schema_notifications_read + notifications_read.Element = AAZObjectType() + + _element = _schema_notifications_read.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + _schema.Element = cls._schema_notifications_read.Element + + _schema_resource_access_role_read = None + + @classmethod + def _build_schema_resource_access_role_read(cls, _schema): + if cls._schema_resource_access_role_read is not None: + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + return + + cls._schema_resource_access_role_read = _schema_resource_access_role_read = AAZObjectType() + + resource_access_role_read = _schema_resource_access_role_read + resource_access_role_read.actions = AAZListType() + resource_access_role_read.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = _schema_resource_access_role_read.actions + actions.Element = AAZStrType() + + allowed_group_claims = _schema_resource_access_role_read.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + + _schema_resource_provider_authorization_rules_read = None + + @classmethod + def _build_schema_resource_provider_authorization_rules_read(cls, _schema): + if cls._schema_resource_provider_authorization_rules_read is not None: + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + return + + cls._schema_resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read = AAZObjectType() + + resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read + resource_provider_authorization_rules_read.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_subscription_state_override_action_read = None + + @classmethod + def _build_schema_subscription_state_override_action_read(cls, _schema): + if cls._schema_subscription_state_override_action_read is not None: + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + return + + cls._schema_subscription_state_override_action_read = _schema_subscription_state_override_action_read = AAZObjectType() + + subscription_state_override_action_read = _schema_subscription_state_override_action_read + subscription_state_override_action_read.action = AAZStrType( + flags={"required": True}, + ) + subscription_state_override_action_read.state = AAZStrType( + flags={"required": True}, + ) + + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Update"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_wait.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_wait.py new file mode 100644 index 00000000000..d59ab805431 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/default_rollout/_wait.py @@ -0,0 +1,2152 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub default-rollout wait", +) +class Wait(AAZWaitCommand): + """Place the CLI in a waiting state until a condition is met. + """ + + _aaz_info = { + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/defaultrollouts/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.rollout_name = AAZStrArg( + options=["-n", "--name", "--rollout-name"], + help="The rollout name.", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[-\w\._\(\)]+$", + max_length=260, + ), + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.DefaultRolloutsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False) + return result + + class DefaultRolloutsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "rolloutName", self.ctx.args.rollout_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _WaitHelper._build_schema_system_data_read(_schema_on_200.system_data) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.specification = AAZObjectType() + properties.status = AAZObjectType() + + specification = cls._schema_on_200.properties.specification + specification.auto_provision_config = AAZObjectType( + serialized_name="autoProvisionConfig", + ) + specification.canary = AAZObjectType() + specification.expedited_rollout = AAZObjectType( + serialized_name="expeditedRollout", + ) + specification.high_traffic = AAZObjectType( + serialized_name="highTraffic", + ) + specification.low_traffic = AAZObjectType( + serialized_name="lowTraffic", + ) + specification.manifest_checkin_specification = AAZObjectType( + serialized_name="manifestCheckinSpecification", + ) + specification.medium_traffic = AAZObjectType( + serialized_name="mediumTraffic", + ) + specification.provider_registration = AAZObjectType( + serialized_name="providerRegistration", + ) + specification.resource_type_registrations = AAZListType( + serialized_name="resourceTypeRegistrations", + ) + specification.rest_of_the_world_group_one = AAZObjectType( + serialized_name="restOfTheWorldGroupOne", + ) + specification.rest_of_the_world_group_two = AAZObjectType( + serialized_name="restOfTheWorldGroupTwo", + ) + + auto_provision_config = cls._schema_on_200.properties.specification.auto_provision_config + auto_provision_config.resource_graph = AAZBoolType( + serialized_name="resourceGraph", + ) + auto_provision_config.storage = AAZBoolType() + + canary = cls._schema_on_200.properties.specification.canary + canary.regions = AAZListType() + canary.skip_regions = AAZListType( + serialized_name="skipRegions", + ) + + regions = cls._schema_on_200.properties.specification.canary.regions + regions.Element = AAZStrType() + + skip_regions = cls._schema_on_200.properties.specification.canary.skip_regions + skip_regions.Element = AAZStrType() + + expedited_rollout = cls._schema_on_200.properties.specification.expedited_rollout + expedited_rollout.enabled = AAZBoolType() + + high_traffic = cls._schema_on_200.properties.specification.high_traffic + high_traffic.regions = AAZListType() + high_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.properties.specification.high_traffic.regions + regions.Element = AAZStrType() + + low_traffic = cls._schema_on_200.properties.specification.low_traffic + low_traffic.regions = AAZListType() + low_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.properties.specification.low_traffic.regions + regions.Element = AAZStrType() + + manifest_checkin_specification = cls._schema_on_200.properties.specification.manifest_checkin_specification + manifest_checkin_specification.manifest_checkin_option = AAZStrType( + serialized_name="manifestCheckinOption", + ) + manifest_checkin_specification.manifest_checkin_params = AAZObjectType( + serialized_name="manifestCheckinParams", + ) + + manifest_checkin_params = cls._schema_on_200.properties.specification.manifest_checkin_specification.manifest_checkin_params + manifest_checkin_params.baseline_arm_manifest_location = AAZStrType( + serialized_name="baselineArmManifestLocation", + flags={"required": True}, + ) + manifest_checkin_params.environment = AAZStrType( + flags={"required": True}, + ) + + medium_traffic = cls._schema_on_200.properties.specification.medium_traffic + medium_traffic.regions = AAZListType() + medium_traffic.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.properties.specification.medium_traffic.regions + regions.Element = AAZStrType() + + provider_registration = cls._schema_on_200.properties.specification.provider_registration + provider_registration.id = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.kind = AAZStrType() + provider_registration.name = AAZStrType( + flags={"read_only": True}, + ) + provider_registration.properties = AAZObjectType() + provider_registration.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _WaitHelper._build_schema_system_data_read(provider_registration.system_data) + provider_registration.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties.specification.provider_registration.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + _WaitHelper._build_schema_notifications_read(properties.notifications) + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _WaitHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _WaitHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.properties.specification.provider_registration.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = cls._schema_on_200.properties.specification.provider_registration.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = cls._schema_on_200.properties.specification.provider_registration.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _WaitHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = cls._schema_on_200.properties.specification.provider_registration.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.properties.specification.provider_registration.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.properties.specification.provider_registration.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.properties.specification.provider_registration.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _WaitHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200.properties.specification.provider_registration.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.properties.specification.provider_registration.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _WaitHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + management_group_global_notification_endpoints = cls._schema_on_200.properties.specification.provider_registration.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + optional_features = cls._schema_on_200.properties.specification.provider_registration.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = cls._schema_on_200.properties.specification.provider_registration.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = cls._schema_on_200.properties.specification.provider_registration.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.properties.specification.provider_registration.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = cls._schema_on_200.properties.specification.provider_registration.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + response_options = cls._schema_on_200.properties.specification.provider_registration.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = cls._schema_on_200.properties.specification.provider_registration.properties.services + services.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.provider_registration.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.properties.specification.provider_registration.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _WaitHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + template_deployment_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.properties.specification.provider_registration.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + resource_type_registrations = cls._schema_on_200.properties.specification.resource_type_registrations + resource_type_registrations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.kind = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _WaitHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + _WaitHelper._build_schema_notifications_read(properties.notifications) + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _WaitHelper._build_schema_resource_provider_authorization_rules_read(properties.resource_provider_authorization_rules) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _WaitHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _WaitHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + _WaitHelper._build_schema_resource_access_role_read(resource_access_roles.Element) + + schema_owners = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _WaitHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.metadata + metadata.Element = AAZFreeFormDictType() + + on_behalf_of_tokens = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_query_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _WaitHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + _WaitHelper._build_schema_subscription_state_override_action_read(subscription_state_override_actions.Element) + + subscription_state_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = cls._schema_on_200.properties.specification.resource_type_registrations.Element.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + rest_of_the_world_group_one = cls._schema_on_200.properties.specification.rest_of_the_world_group_one + rest_of_the_world_group_one.regions = AAZListType() + rest_of_the_world_group_one.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.properties.specification.rest_of_the_world_group_one.regions + regions.Element = AAZStrType() + + rest_of_the_world_group_two = cls._schema_on_200.properties.specification.rest_of_the_world_group_two + rest_of_the_world_group_two.regions = AAZListType() + rest_of_the_world_group_two.wait_duration = AAZStrType( + serialized_name="waitDuration", + ) + + regions = cls._schema_on_200.properties.specification.rest_of_the_world_group_two.regions + regions.Element = AAZStrType() + + status = cls._schema_on_200.properties.status + status.completed_regions = AAZListType( + serialized_name="completedRegions", + ) + status.failed_or_skipped_regions = AAZDictType( + serialized_name="failedOrSkippedRegions", + ) + status.manifest_checkin_status = AAZObjectType( + serialized_name="manifestCheckinStatus", + ) + status.next_traffic_region = AAZStrType( + serialized_name="nextTrafficRegion", + ) + status.next_traffic_region_scheduled_time = AAZStrType( + serialized_name="nextTrafficRegionScheduledTime", + ) + status.subscription_reregistration_result = AAZStrType( + serialized_name="subscriptionReregistrationResult", + ) + + completed_regions = cls._schema_on_200.properties.status.completed_regions + completed_regions.Element = AAZStrType() + + failed_or_skipped_regions = cls._schema_on_200.properties.status.failed_or_skipped_regions + failed_or_skipped_regions.Element = AAZObjectType() + _WaitHelper._build_schema_extended_error_info_read(failed_or_skipped_regions.Element) + + manifest_checkin_status = cls._schema_on_200.properties.status.manifest_checkin_status + manifest_checkin_status.commit_id = AAZStrType( + serialized_name="commitId", + ) + manifest_checkin_status.is_checked_in = AAZBoolType( + serialized_name="isCheckedIn", + flags={"required": True}, + ) + manifest_checkin_status.pull_request = AAZStrType( + serialized_name="pullRequest", + ) + manifest_checkin_status.status_message = AAZStrType( + serialized_name="statusMessage", + flags={"required": True}, + ) + + return cls._schema_on_200 + + +class _WaitHelper: + """Helper class for Wait""" + + _schema_extended_error_info_read = None + + @classmethod + def _build_schema_extended_error_info_read(cls, _schema): + if cls._schema_extended_error_info_read is not None: + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + return + + cls._schema_extended_error_info_read = _schema_extended_error_info_read = AAZObjectType() + + extended_error_info_read = _schema_extended_error_info_read + extended_error_info_read.additional_info = AAZListType( + serialized_name="additionalInfo", + ) + extended_error_info_read.code = AAZStrType() + extended_error_info_read.details = AAZListType() + extended_error_info_read.message = AAZStrType() + extended_error_info_read.target = AAZStrType() + + additional_info = _schema_extended_error_info_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_extended_error_info_read.additional_info.Element + _element.info = AAZObjectType( + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + details = _schema_extended_error_info_read.details + details.Element = AAZObjectType() + cls._build_schema_extended_error_info_read(details.Element) + + _schema.additional_info = cls._schema_extended_error_info_read.additional_info + _schema.code = cls._schema_extended_error_info_read.code + _schema.details = cls._schema_extended_error_info_read.details + _schema.message = cls._schema_extended_error_info_read.message + _schema.target = cls._schema_extended_error_info_read.target + + _schema_notifications_read = None + + @classmethod + def _build_schema_notifications_read(cls, _schema): + if cls._schema_notifications_read is not None: + _schema.Element = cls._schema_notifications_read.Element + return + + cls._schema_notifications_read = _schema_notifications_read = AAZListType() + + notifications_read = _schema_notifications_read + notifications_read.Element = AAZObjectType() + + _element = _schema_notifications_read.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + _schema.Element = cls._schema_notifications_read.Element + + _schema_resource_access_role_read = None + + @classmethod + def _build_schema_resource_access_role_read(cls, _schema): + if cls._schema_resource_access_role_read is not None: + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + return + + cls._schema_resource_access_role_read = _schema_resource_access_role_read = AAZObjectType() + + resource_access_role_read = _schema_resource_access_role_read + resource_access_role_read.actions = AAZListType() + resource_access_role_read.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = _schema_resource_access_role_read.actions + actions.Element = AAZStrType() + + allowed_group_claims = _schema_resource_access_role_read.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + _schema.actions = cls._schema_resource_access_role_read.actions + _schema.allowed_group_claims = cls._schema_resource_access_role_read.allowed_group_claims + + _schema_resource_provider_authorization_rules_read = None + + @classmethod + def _build_schema_resource_provider_authorization_rules_read(cls, _schema): + if cls._schema_resource_provider_authorization_rules_read is not None: + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + return + + cls._schema_resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read = AAZObjectType() + + resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read + resource_provider_authorization_rules_read.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_subscription_state_override_action_read = None + + @classmethod + def _build_schema_subscription_state_override_action_read(cls, _schema): + if cls._schema_subscription_state_override_action_read is not None: + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + return + + cls._schema_subscription_state_override_action_read = _schema_subscription_state_override_action_read = AAZObjectType() + + subscription_state_override_action_read = _schema_subscription_state_override_action_read + subscription_state_override_action_read.action = AAZStrType( + flags={"required": True}, + ) + subscription_state_override_action_read.state = AAZStrType( + flags={"required": True}, + ) + + _schema.action = cls._schema_subscription_state_override_action_read.action + _schema.state = cls._schema_subscription_state_override_action_read.state + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Wait"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/__cmd_group.py new file mode 100644 index 00000000000..efbbaee6540 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub manifest", +) +class __CMDGroup(AAZCommandGroup): + """Manage manifest with providerhub. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/__init__.py new file mode 100644 index 00000000000..d13762b6185 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/__init__.py @@ -0,0 +1,13 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._checkin import * +from ._generate import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/_checkin.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/_checkin.py new file mode 100644 index 00000000000..1dd7ab975c6 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/_checkin.py @@ -0,0 +1,203 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub manifest checkin", +) +class Checkin(AAZCommand): + """Checkin the manifest. + + :example: manifest checkin + az az providerhub manifest checkin --provider-namespace "{providerNamespace}" --environment "Canary" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/checkinmanifest", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + + # define Arg Group "CheckinManifestParams" + + _args_schema = cls._args_schema + _args_schema.baseline_arm_manifest_location = AAZStrArg( + options=["--location", "--arm-manifest-location", "--baseline-arm-manifest-location"], + arg_group="CheckinManifestParams", + help="The baseline ARM manifest location supplied to the checkin manifest operation.", + required=True, + default="EastUS2EUAP", + ) + _args_schema.environment = AAZStrArg( + options=["--environment"], + arg_group="CheckinManifestParams", + help="The environment supplied to the checkin manifest operation.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.CheckinManifest(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class CheckinManifest(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/checkinManifest", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("baselineArmManifestLocation", AAZStrType, ".baseline_arm_manifest_location", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("environment", AAZStrType, ".environment", typ_kwargs={"flags": {"required": True}}) + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.commit_id = AAZStrType( + serialized_name="commitId", + ) + _schema_on_200.is_checked_in = AAZBoolType( + serialized_name="isCheckedIn", + flags={"required": True}, + ) + _schema_on_200.pull_request = AAZStrType( + serialized_name="pullRequest", + ) + _schema_on_200.status_message = AAZStrType( + serialized_name="statusMessage", + flags={"required": True}, + ) + + return cls._schema_on_200 + + +class _CheckinHelper: + """Helper class for Checkin""" + + +__all__ = ["Checkin"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/_generate.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/_generate.py new file mode 100644 index 00000000000..3bf56b96b88 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/manifest/_generate.py @@ -0,0 +1,924 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub manifest generate", +) +class Generate(AAZCommand): + """Generates the manifest for the given provider. + + :example: manifest generate + az az providerhub manifest generate --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/generatemanifest", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.GenerateManifest(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class GenerateManifest(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/generateManifest", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.capabilities = AAZListType() + _schema_on_200.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + _schema_on_200.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + _schema_on_200.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _schema_on_200.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + _schema_on_200.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + _schema_on_200.management = AAZObjectType() + _schema_on_200.metadata = AAZFreeFormDictType() + _schema_on_200.namespace = AAZStrType() + _schema_on_200.notifications = AAZListType() + _GenerateHelper._build_schema_notifications_read(_schema_on_200.notifications) + _schema_on_200.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + _schema_on_200.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + _schema_on_200.provider_type = AAZStrType( + serialized_name="providerType", + ) + _schema_on_200.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + _schema_on_200.re_register_subscription_metadata = AAZObjectType( + serialized_name="reRegisterSubscriptionMetadata", + ) + _schema_on_200.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + _schema_on_200.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _schema_on_200.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _GenerateHelper._build_schema_resource_provider_authorization_rules_read(_schema_on_200.resource_provider_authorization_rules) + _schema_on_200.resource_types = AAZListType( + serialized_name="resourceTypes", + ) + _schema_on_200.service_name = AAZStrType( + serialized_name="serviceName", + ) + _schema_on_200.services = AAZListType() + + capabilities = cls._schema_on_200.capabilities + capabilities.Element = AAZObjectType() + + _element = cls._schema_on_200.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.capabilities.Element.required_features + required_features.Element = AAZStrType() + + features_rule = cls._schema_on_200.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = cls._schema_on_200.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + _GenerateHelper._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + linked_notification_rules = cls._schema_on_200.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + + actions = cls._schema_on_200.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + _GenerateHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + token_auth_configuration = cls._schema_on_200.linked_notification_rules.Element.token_auth_configuration + token_auth_configuration.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + management = cls._schema_on_200.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + + _element = cls._schema_on_200.management.resource_access_roles.Element + _element.actions = AAZListType() + _element.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = cls._schema_on_200.management.resource_access_roles.Element.actions + actions.Element = AAZStrType() + + allowed_group_claims = cls._schema_on_200.management.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + schema_owners = cls._schema_on_200.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _GenerateHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + provider_authentication = cls._schema_on_200.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.provider_authorizations + provider_authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.provider_authorizations.Element + _element.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + _element.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + _element.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = cls._schema_on_200.provider_authorizations.Element.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = cls._schema_on_200.provider_authorizations.Element.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = cls._schema_on_200.provider_authorizations.Element.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = cls._schema_on_200.provider_authorizations.Element.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.provider_authorizations.Element.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + re_register_subscription_metadata = cls._schema_on_200.re_register_subscription_metadata + re_register_subscription_metadata.concurrency_limit = AAZIntType( + serialized_name="concurrencyLimit", + ) + re_register_subscription_metadata.enabled = AAZBoolType( + flags={"required": True}, + ) + + request_header_options = cls._schema_on_200.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.required_features + required_features.Element = AAZStrType() + + resource_types = cls._schema_on_200.resource_types + resource_types.Element = AAZObjectType() + + _element = cls._schema_on_200.resource_types.Element + _element.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + _element.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + _element.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + _element.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + _element.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + _element.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + _element.endpoints = AAZListType() + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + _element.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + _element.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + _element.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + _element.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + _element.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + _element.metadata = AAZFreeFormDictType() + _element.name = AAZStrType() + _element.notifications = AAZListType() + _GenerateHelper._build_schema_notifications_read(_element.notifications) + _element.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + _element.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + _element.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + _GenerateHelper._build_schema_resource_provider_authorization_rules_read(_element.resource_provider_authorization_rules) + _element.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + _element.routing_type = AAZStrType( + serialized_name="routingType", + ) + _element.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + _element.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + _element.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + + allowed_unauthorized_actions = cls._schema_on_200.resource_types.Element.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + authorization_action_mappings = cls._schema_on_200.resource_types.Element.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = cls._schema_on_200.resource_types.Element.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + disallowed_action_verbs = cls._schema_on_200.resource_types.Element.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + endpoints = cls._schema_on_200.resource_types.Element.endpoints + endpoints.Element = AAZObjectType() + _GenerateHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + extended_locations = cls._schema_on_200.resource_types.Element.extended_locations + extended_locations.Element = AAZObjectType() + + _element = cls._schema_on_200.resource_types.Element.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + features_rule = cls._schema_on_200.resource_types.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = cls._schema_on_200.resource_types.Element.identity_management + identity_management.type = AAZStrType() + + linked_access_checks = cls._schema_on_200.resource_types.Element.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = cls._schema_on_200.resource_types.Element.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = cls._schema_on_200.resource_types.Element.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.resource_types.Element.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = cls._schema_on_200.resource_types.Element.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = cls._schema_on_200.resource_types.Element.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = cls._schema_on_200.resource_types.Element.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = cls._schema_on_200.resource_types.Element.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = cls._schema_on_200.resource_types.Element.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.resource_types.Element.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = cls._schema_on_200.resource_types.Element.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = cls._schema_on_200.resource_types.Element.logging_rules + logging_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.resource_types.Element.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = cls._schema_on_200.resource_types.Element.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = cls._schema_on_200.resource_types.Element.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = cls._schema_on_200.resource_types.Element.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + quota_rule = cls._schema_on_200.resource_types.Element.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = cls._schema_on_200.resource_types.Element.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.resource_types.Element.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = cls._schema_on_200.resource_types.Element.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = cls._schema_on_200.resource_types.Element.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.resource_types.Element.required_features + required_features.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.resource_types.Element.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _GenerateHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_state_rules = cls._schema_on_200.resource_types.Element.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.resource_types.Element.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = cls._schema_on_200.resource_types.Element.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + template_deployment_policy = cls._schema_on_200.resource_types.Element.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = cls._schema_on_200.resource_types.Element.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.resource_types.Element.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = cls._schema_on_200.resource_types.Element.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = cls._schema_on_200.resource_types.Element.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = cls._schema_on_200.resource_types.Element.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = cls._schema_on_200.resource_types.Element.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + services = cls._schema_on_200.services + services.Element = AAZObjectType() + + _element = cls._schema_on_200.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + return cls._schema_on_200 + + +class _GenerateHelper: + """Helper class for Generate""" + + _schema_notifications_read = None + + @classmethod + def _build_schema_notifications_read(cls, _schema): + if cls._schema_notifications_read is not None: + _schema.Element = cls._schema_notifications_read.Element + return + + cls._schema_notifications_read = _schema_notifications_read = AAZListType() + + notifications_read = _schema_notifications_read + notifications_read.Element = AAZObjectType() + + _element = _schema_notifications_read.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + _schema.Element = cls._schema_notifications_read.Element + + _schema_resource_provider_authorization_rules_read = None + + @classmethod + def _build_schema_resource_provider_authorization_rules_read(cls, _schema): + if cls._schema_resource_provider_authorization_rules_read is not None: + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + return + + cls._schema_resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read = AAZObjectType() + + resource_provider_authorization_rules_read = _schema_resource_provider_authorization_rules_read + resource_provider_authorization_rules_read.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = _schema_resource_provider_authorization_rules_read.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + _schema.async_operation_polling_rules = cls._schema_resource_provider_authorization_rules_read.async_operation_polling_rules + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + +__all__ = ["Generate"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/__cmd_group.py new file mode 100644 index 00000000000..272cd560aea --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub notification-registration", +) +class __CMDGroup(AAZCommandGroup): + """Manage notification registration with providerhub. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/__init__.py new file mode 100644 index 00000000000..c401f439385 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/__init__.py @@ -0,0 +1,16 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._update import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_create.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_create.py new file mode 100644 index 00000000000..5e7ff5659f8 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_create.py @@ -0,0 +1,313 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub notification-registration create", +) +class Create(AAZCommand): + """Create a notification registration. + + :example: notification-registration create + az providerhub notification-registration create --name "{notificationRegistration}" --included-events "*/write" "Microsoft.Contoso/employees/delete" --message-scope "RegisteredSubscriptions" --notification-endpoints [{notification-destination:/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications,locations:[EastUS]}] --notification-mode "EventHub" --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/notificationregistrations/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.notification_registration_name = AAZStrArg( + options=["-n", "--name", "--notification-registration-name"], + help="The notification registration.", + required=True, + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.included_events = AAZListArg( + options=["--included-events"], + arg_group="Properties", + help="These are the events that the RP should be messaged on. The message format is in the form {RP Namespace}/{ResourceType}/{action}. The available actions are: write, delete and move/action.", + ) + _args_schema.message_scope = AAZStrArg( + options=["--message-scope"], + arg_group="Properties", + help="Limits the messages that are sent to the RP. The default value is RegisteredSubscriptions. The available values are Global (all messages in Azure) and RegisteredSubscriptions (only messages in subscriptions registered by RP).", + enum={"NotSpecified": "NotSpecified", "RegisteredSubscriptions": "RegisteredSubscriptions"}, + ) + _args_schema.notification_endpoints = AAZListArg( + options=["--notification-endpoints"], + arg_group="Properties", + help="These are the locations for the notification messages. Notifications will be sent to the region of the event resource's location (e.g. VM in East Us will send message to the specified endpoint in East US).", + ) + _args_schema.notification_mode = AAZStrArg( + options=["--notification-mode"], + arg_group="Properties", + help="Determines how the notifications are sent to the RP. The two available modes are EventHub and Webhook.", + enum={"EventHub": "EventHub", "NotSpecified": "NotSpecified", "WebHook": "WebHook"}, + ) + + included_events = cls._args_schema.included_events + included_events.Element = AAZStrArg() + + notification_endpoints = cls._args_schema.notification_endpoints + notification_endpoints.Element = AAZObjectArg() + + _element = cls._args_schema.notification_endpoints.Element + _element.locations = AAZListArg( + options=["locations"], + ) + _element.notification_destination = AAZStrArg( + options=["notification-destination"], + ) + + locations = cls._args_schema.notification_endpoints.Element.locations + locations.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.NotificationRegistrationsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class NotificationRegistrationsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "notificationRegistrationName", self.ctx.args.notification_registration_name, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("includedEvents", AAZListType, ".included_events") + properties.set_prop("messageScope", AAZStrType, ".message_scope") + properties.set_prop("notificationEndpoints", AAZListType, ".notification_endpoints") + properties.set_prop("notificationMode", AAZStrType, ".notification_mode") + + included_events = _builder.get(".properties.includedEvents") + if included_events is not None: + included_events.set_elements(AAZStrType, ".") + + notification_endpoints = _builder.get(".properties.notificationEndpoints") + if notification_endpoints is not None: + notification_endpoints.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.notificationEndpoints[]") + if _elements is not None: + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("notificationDestination", AAZStrType, ".notification_destination") + + locations = _builder.get(".properties.notificationEndpoints[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.included_events = AAZListType( + serialized_name="includedEvents", + ) + properties.message_scope = AAZStrType( + serialized_name="messageScope", + ) + properties.notification_endpoints = AAZListType( + serialized_name="notificationEndpoints", + ) + properties.notification_mode = AAZStrType( + serialized_name="notificationMode", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + included_events = cls._schema_on_200.properties.included_events + included_events.Element = AAZStrType() + + notification_endpoints = cls._schema_on_200.properties.notification_endpoints + notification_endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.notification_endpoints.Element + _element.locations = AAZListType() + _element.notification_destination = AAZStrType( + serialized_name="notificationDestination", + ) + + locations = cls._schema_on_200.properties.notification_endpoints.Element.locations + locations.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _CreateHelper: + """Helper class for Create""" + + +__all__ = ["Create"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_delete.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_delete.py new file mode 100644 index 00000000000..88a89e2a691 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_delete.py @@ -0,0 +1,142 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub notification-registration delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a notification registration. + + :example: notification-registration delete + az providerhub notification-registration delete -y --name "{notificationRegistration}" --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/notificationregistrations/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.notification_registration_name = AAZStrArg( + options=["-n", "--name", "--notification-registration-name"], + help="The notification registration.", + required=True, + id_part="child_name_1", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.NotificationRegistrationsDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class NotificationRegistrationsDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "notificationRegistrationName", self.ctx.args.notification_registration_name, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_list.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_list.py new file mode 100644 index 00000000000..f3c87d3eb88 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_list.py @@ -0,0 +1,234 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub notification-registration list", +) +class List(AAZCommand): + """List the list of the notification registrations for the given provider. + + :example: notification-registration list + az providerhub notification-registration list --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/notificationregistrations", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_PAGINATION = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.NotificationRegistrationsListByProviderRegistration(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class NotificationRegistrationsListByProviderRegistration(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.included_events = AAZListType( + serialized_name="includedEvents", + ) + properties.message_scope = AAZStrType( + serialized_name="messageScope", + ) + properties.notification_endpoints = AAZListType( + serialized_name="notificationEndpoints", + ) + properties.notification_mode = AAZStrType( + serialized_name="notificationMode", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + included_events = cls._schema_on_200.value.Element.properties.included_events + included_events.Element = AAZStrType() + + notification_endpoints = cls._schema_on_200.value.Element.properties.notification_endpoints + notification_endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.notification_endpoints.Element + _element.locations = AAZListType() + _element.notification_destination = AAZStrType( + serialized_name="notificationDestination", + ) + + locations = cls._schema_on_200.value.Element.properties.notification_endpoints.Element.locations + locations.Element = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + +__all__ = ["List"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_show.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_show.py new file mode 100644 index 00000000000..7a6491edd0f --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_show.py @@ -0,0 +1,234 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub notification-registration show", +) +class Show(AAZCommand): + """Get the notification registration details. + + :example: notification-registration show + az providerhub notification-registration show --name "{notificationRegistration}" --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/notificationregistrations/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.notification_registration_name = AAZStrArg( + options=["-n", "--name", "--notification-registration-name"], + help="The notification registration.", + required=True, + id_part="child_name_1", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.NotificationRegistrationsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class NotificationRegistrationsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "notificationRegistrationName", self.ctx.args.notification_registration_name, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.included_events = AAZListType( + serialized_name="includedEvents", + ) + properties.message_scope = AAZStrType( + serialized_name="messageScope", + ) + properties.notification_endpoints = AAZListType( + serialized_name="notificationEndpoints", + ) + properties.notification_mode = AAZStrType( + serialized_name="notificationMode", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + included_events = cls._schema_on_200.properties.included_events + included_events.Element = AAZStrType() + + notification_endpoints = cls._schema_on_200.properties.notification_endpoints + notification_endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.notification_endpoints.Element + _element.locations = AAZListType() + _element.notification_destination = AAZStrType( + serialized_name="notificationDestination", + ) + + locations = cls._schema_on_200.properties.notification_endpoints.Element.locations + locations.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + +__all__ = ["Show"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_update.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_update.py new file mode 100644 index 00000000000..20be8cefc16 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/notification_registration/_update.py @@ -0,0 +1,467 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub notification-registration update", +) +class Update(AAZCommand): + """Update a notification registration. + + :example: notification-registration update + az providerhub notification-registration update --name "{notificationRegistration}" --included-events "*/write" "Microsoft.Contoso/employees/delete" --message-scope "RegisteredSubscriptions" --notification-endpoints [{notification-destination:/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications,locations:[EastUS]}] --notification-mode "EventHub" --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/notificationregistrations/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.notification_registration_name = AAZStrArg( + options=["-n", "--name", "--notification-registration-name"], + help="The notification registration.", + required=True, + id_part="child_name_1", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.included_events = AAZListArg( + options=["--included-events"], + arg_group="Properties", + help="These are the events that the RP should be messaged on. The message format is in the form {RP Namespace}/{ResourceType}/{action}. The available actions are: write, delete and move/action.", + nullable=True, + ) + _args_schema.message_scope = AAZStrArg( + options=["--message-scope"], + arg_group="Properties", + help="Limits the messages that are sent to the RP. The default value is RegisteredSubscriptions. The available values are Global (all messages in Azure) and RegisteredSubscriptions (only messages in subscriptions registered by RP).", + nullable=True, + enum={"NotSpecified": "NotSpecified", "RegisteredSubscriptions": "RegisteredSubscriptions"}, + ) + _args_schema.notification_endpoints = AAZListArg( + options=["--notification-endpoints"], + arg_group="Properties", + help="These are the locations for the notification messages. Notifications will be sent to the region of the event resource's location (e.g. VM in East Us will send message to the specified endpoint in East US).", + nullable=True, + ) + _args_schema.notification_mode = AAZStrArg( + options=["--notification-mode"], + arg_group="Properties", + help="Determines how the notifications are sent to the RP. The two available modes are EventHub and Webhook.", + nullable=True, + enum={"EventHub": "EventHub", "NotSpecified": "NotSpecified", "WebHook": "WebHook"}, + ) + + included_events = cls._args_schema.included_events + included_events.Element = AAZStrArg( + nullable=True, + ) + + notification_endpoints = cls._args_schema.notification_endpoints + notification_endpoints.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.notification_endpoints.Element + _element.locations = AAZListArg( + options=["locations"], + nullable=True, + ) + _element.notification_destination = AAZStrArg( + options=["notification-destination"], + nullable=True, + ) + + locations = cls._args_schema.notification_endpoints.Element.locations + locations.Element = AAZStrArg( + nullable=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.NotificationRegistrationsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.NotificationRegistrationsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class NotificationRegistrationsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "notificationRegistrationName", self.ctx.args.notification_registration_name, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_notification_registration_read(cls._schema_on_200) + + return cls._schema_on_200 + + class NotificationRegistrationsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "notificationRegistrationName", self.ctx.args.notification_registration_name, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_notification_registration_read(cls._schema_on_200) + + return cls._schema_on_200 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("includedEvents", AAZListType, ".included_events") + properties.set_prop("messageScope", AAZStrType, ".message_scope") + properties.set_prop("notificationEndpoints", AAZListType, ".notification_endpoints") + properties.set_prop("notificationMode", AAZStrType, ".notification_mode") + + included_events = _builder.get(".properties.includedEvents") + if included_events is not None: + included_events.set_elements(AAZStrType, ".") + + notification_endpoints = _builder.get(".properties.notificationEndpoints") + if notification_endpoints is not None: + notification_endpoints.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.notificationEndpoints[]") + if _elements is not None: + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("notificationDestination", AAZStrType, ".notification_destination") + + locations = _builder.get(".properties.notificationEndpoints[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + _schema_notification_registration_read = None + + @classmethod + def _build_schema_notification_registration_read(cls, _schema): + if cls._schema_notification_registration_read is not None: + _schema.id = cls._schema_notification_registration_read.id + _schema.name = cls._schema_notification_registration_read.name + _schema.properties = cls._schema_notification_registration_read.properties + _schema.system_data = cls._schema_notification_registration_read.system_data + _schema.type = cls._schema_notification_registration_read.type + return + + cls._schema_notification_registration_read = _schema_notification_registration_read = AAZObjectType() + + notification_registration_read = _schema_notification_registration_read + notification_registration_read.id = AAZStrType( + flags={"read_only": True}, + ) + notification_registration_read.name = AAZStrType( + flags={"read_only": True}, + ) + notification_registration_read.properties = AAZObjectType() + notification_registration_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + notification_registration_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_notification_registration_read.properties + properties.included_events = AAZListType( + serialized_name="includedEvents", + ) + properties.message_scope = AAZStrType( + serialized_name="messageScope", + ) + properties.notification_endpoints = AAZListType( + serialized_name="notificationEndpoints", + ) + properties.notification_mode = AAZStrType( + serialized_name="notificationMode", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + included_events = _schema_notification_registration_read.properties.included_events + included_events.Element = AAZStrType() + + notification_endpoints = _schema_notification_registration_read.properties.notification_endpoints + notification_endpoints.Element = AAZObjectType() + + _element = _schema_notification_registration_read.properties.notification_endpoints.Element + _element.locations = AAZListType() + _element.notification_destination = AAZStrType( + serialized_name="notificationDestination", + ) + + locations = _schema_notification_registration_read.properties.notification_endpoints.Element.locations + locations.Element = AAZStrType() + + system_data = _schema_notification_registration_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.id = cls._schema_notification_registration_read.id + _schema.name = cls._schema_notification_registration_read.name + _schema.properties = cls._schema_notification_registration_read.properties + _schema.system_data = cls._schema_notification_registration_read.system_data + _schema.type = cls._schema_notification_registration_read.type + + +__all__ = ["Update"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/__cmd_group.py new file mode 100644 index 00000000000..2c594913566 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub operation", +) +class __CMDGroup(AAZCommandGroup): + """Manage operation with providerhub. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/__init__.py new file mode 100644 index 00000000000..3f61eb838b0 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/__init__.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._update import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_create.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_create.py new file mode 100644 index 00000000000..f2deffdad66 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_create.py @@ -0,0 +1,1105 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub operation create", +) +class Create(AAZCommand): + """Create the operation supported by the given provider. + + :example: operation create + az providerhub operation create --contents "[{{\\"name\\":\\"Private.VPTest/Employees/Read\\",\\"display\\":{{\\"default\\":{{\\"description\\":\\"Read employees\\",\\"operation\\":\\"Gets/List employee resources\\",\\"provider\\":\\"Private.VPTest\\",\\"resource\\":\\"Employees\\"}}}}}}]" --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/operations/default", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.contents = AAZListArg( + options=["--contents"], + arg_group="Properties", + help="Operations content.", + ) + + contents = cls._args_schema.contents + contents.Element = AAZObjectArg() + + _element = cls._args_schema.contents.Element + _element.action_type = AAZStrArg( + options=["action-type"], + enum={"Internal": "Internal", "NotSpecified": "NotSpecified"}, + ) + _element.display = AAZObjectArg( + options=["display"], + help="Display information of the operation.", + required=True, + ) + _element.is_data_action = AAZBoolArg( + options=["is-data-action"], + help="Indicates whether the operation applies to data-plane.", + ) + _element.name = AAZStrArg( + options=["name"], + help="Name of the operation.", + required=True, + ) + _element.origin = AAZStrArg( + options=["origin"], + enum={"NotSpecified": "NotSpecified", "System": "System", "User": "User"}, + ) + + display = cls._args_schema.contents.Element.display + display.cs = AAZObjectArg( + options=["cs"], + help="Display information of the operation for cs locale.", + ) + display.de = AAZObjectArg( + options=["de"], + help="Display information of the operation for de locale.", + ) + display.default = AAZObjectArg( + options=["default"], + help="Display information of the operation.", + required=True, + ) + display.en = AAZObjectArg( + options=["en"], + help="Display information of the operation for en locale.", + ) + display.es = AAZObjectArg( + options=["es"], + help="Display information of the operation for es locale.", + ) + display.fr = AAZObjectArg( + options=["fr"], + help="Display information of the operation for fr locale.", + ) + display.hu = AAZObjectArg( + options=["hu"], + help="Display information of the operation for hu locale.", + ) + display.it = AAZObjectArg( + options=["it"], + help="Display information of the operation for it locale.", + ) + display.ja = AAZObjectArg( + options=["ja"], + help="Display information of the operation for ja locale.", + ) + display.ko = AAZObjectArg( + options=["ko"], + help="Display information of the operation for ko locale.", + ) + display.nl = AAZObjectArg( + options=["nl"], + help="Display information of the operation for nl locale.", + ) + display.pl = AAZObjectArg( + options=["pl"], + help="Display information of the operation for pl locale.", + ) + display.pt_br = AAZObjectArg( + options=["pt-br"], + help="Display information of the operation for pt-BR locale.", + ) + display.pt_pt = AAZObjectArg( + options=["pt-pt"], + help="Display information of the operation for pt-PT locale.", + ) + display.ru = AAZObjectArg( + options=["ru"], + help="Display information of the operation for ru locale.", + ) + display.sv = AAZObjectArg( + options=["sv"], + help="Display information of the operation for sv locale.", + ) + display.zh_hans = AAZObjectArg( + options=["zh-hans"], + help="Display information of the operation for zh-Hans locale.", + ) + display.zh_hant = AAZObjectArg( + options=["zh-hant"], + help="Display information of the operation for zh-Hant locale.", + ) + + cs = cls._args_schema.contents.Element.display.cs + cs.description = AAZStrArg( + options=["description"], + required=True, + ) + cs.operation = AAZStrArg( + options=["operation"], + required=True, + ) + cs.provider = AAZStrArg( + options=["provider"], + required=True, + ) + cs.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + de = cls._args_schema.contents.Element.display.de + de.description = AAZStrArg( + options=["description"], + required=True, + ) + de.operation = AAZStrArg( + options=["operation"], + required=True, + ) + de.provider = AAZStrArg( + options=["provider"], + required=True, + ) + de.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + default = cls._args_schema.contents.Element.display.default + default.description = AAZStrArg( + options=["description"], + required=True, + ) + default.operation = AAZStrArg( + options=["operation"], + required=True, + ) + default.provider = AAZStrArg( + options=["provider"], + required=True, + ) + default.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + en = cls._args_schema.contents.Element.display.en + en.description = AAZStrArg( + options=["description"], + required=True, + ) + en.operation = AAZStrArg( + options=["operation"], + required=True, + ) + en.provider = AAZStrArg( + options=["provider"], + required=True, + ) + en.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + es = cls._args_schema.contents.Element.display.es + es.description = AAZStrArg( + options=["description"], + required=True, + ) + es.operation = AAZStrArg( + options=["operation"], + required=True, + ) + es.provider = AAZStrArg( + options=["provider"], + required=True, + ) + es.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + fr = cls._args_schema.contents.Element.display.fr + fr.description = AAZStrArg( + options=["description"], + required=True, + ) + fr.operation = AAZStrArg( + options=["operation"], + required=True, + ) + fr.provider = AAZStrArg( + options=["provider"], + required=True, + ) + fr.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + hu = cls._args_schema.contents.Element.display.hu + hu.description = AAZStrArg( + options=["description"], + required=True, + ) + hu.operation = AAZStrArg( + options=["operation"], + required=True, + ) + hu.provider = AAZStrArg( + options=["provider"], + required=True, + ) + hu.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + it = cls._args_schema.contents.Element.display.it + it.description = AAZStrArg( + options=["description"], + required=True, + ) + it.operation = AAZStrArg( + options=["operation"], + required=True, + ) + it.provider = AAZStrArg( + options=["provider"], + required=True, + ) + it.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + ja = cls._args_schema.contents.Element.display.ja + ja.description = AAZStrArg( + options=["description"], + required=True, + ) + ja.operation = AAZStrArg( + options=["operation"], + required=True, + ) + ja.provider = AAZStrArg( + options=["provider"], + required=True, + ) + ja.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + ko = cls._args_schema.contents.Element.display.ko + ko.description = AAZStrArg( + options=["description"], + required=True, + ) + ko.operation = AAZStrArg( + options=["operation"], + required=True, + ) + ko.provider = AAZStrArg( + options=["provider"], + required=True, + ) + ko.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + nl = cls._args_schema.contents.Element.display.nl + nl.description = AAZStrArg( + options=["description"], + required=True, + ) + nl.operation = AAZStrArg( + options=["operation"], + required=True, + ) + nl.provider = AAZStrArg( + options=["provider"], + required=True, + ) + nl.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + pl = cls._args_schema.contents.Element.display.pl + pl.description = AAZStrArg( + options=["description"], + required=True, + ) + pl.operation = AAZStrArg( + options=["operation"], + required=True, + ) + pl.provider = AAZStrArg( + options=["provider"], + required=True, + ) + pl.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + pt_br = cls._args_schema.contents.Element.display.pt_br + pt_br.description = AAZStrArg( + options=["description"], + required=True, + ) + pt_br.operation = AAZStrArg( + options=["operation"], + required=True, + ) + pt_br.provider = AAZStrArg( + options=["provider"], + required=True, + ) + pt_br.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + pt_pt = cls._args_schema.contents.Element.display.pt_pt + pt_pt.description = AAZStrArg( + options=["description"], + required=True, + ) + pt_pt.operation = AAZStrArg( + options=["operation"], + required=True, + ) + pt_pt.provider = AAZStrArg( + options=["provider"], + required=True, + ) + pt_pt.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + ru = cls._args_schema.contents.Element.display.ru + ru.description = AAZStrArg( + options=["description"], + required=True, + ) + ru.operation = AAZStrArg( + options=["operation"], + required=True, + ) + ru.provider = AAZStrArg( + options=["provider"], + required=True, + ) + ru.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + sv = cls._args_schema.contents.Element.display.sv + sv.description = AAZStrArg( + options=["description"], + required=True, + ) + sv.operation = AAZStrArg( + options=["operation"], + required=True, + ) + sv.provider = AAZStrArg( + options=["provider"], + required=True, + ) + sv.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + zh_hans = cls._args_schema.contents.Element.display.zh_hans + zh_hans.description = AAZStrArg( + options=["description"], + required=True, + ) + zh_hans.operation = AAZStrArg( + options=["operation"], + required=True, + ) + zh_hans.provider = AAZStrArg( + options=["provider"], + required=True, + ) + zh_hans.resource = AAZStrArg( + options=["resource"], + required=True, + ) + + zh_hant = cls._args_schema.contents.Element.display.zh_hant + zh_hant.description = AAZStrArg( + options=["description"], + required=True, + ) + zh_hant.operation = AAZStrArg( + options=["operation"], + required=True, + ) + zh_hant.provider = AAZStrArg( + options=["provider"], + required=True, + ) + zh_hant.resource = AAZStrArg( + options=["resource"], + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.OperationsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class OperationsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("contents", AAZListType, ".contents") + + contents = _builder.get(".properties.contents") + if contents is not None: + contents.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.contents[]") + if _elements is not None: + _elements.set_prop("actionType", AAZStrType, ".action_type") + _elements.set_prop("display", AAZObjectType, ".display", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("isDataAction", AAZBoolType, ".is_data_action") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("origin", AAZStrType, ".origin") + + display = _builder.get(".properties.contents[].display") + if display is not None: + display.set_prop("cs", AAZObjectType, ".cs") + display.set_prop("de", AAZObjectType, ".de") + display.set_prop("default", AAZObjectType, ".default", typ_kwargs={"flags": {"required": True}}) + display.set_prop("en", AAZObjectType, ".en") + display.set_prop("es", AAZObjectType, ".es") + display.set_prop("fr", AAZObjectType, ".fr") + display.set_prop("hu", AAZObjectType, ".hu") + display.set_prop("it", AAZObjectType, ".it") + display.set_prop("ja", AAZObjectType, ".ja") + display.set_prop("ko", AAZObjectType, ".ko") + display.set_prop("nl", AAZObjectType, ".nl") + display.set_prop("pl", AAZObjectType, ".pl") + display.set_prop("ptBR", AAZObjectType, ".pt_br") + display.set_prop("ptPT", AAZObjectType, ".pt_pt") + display.set_prop("ru", AAZObjectType, ".ru") + display.set_prop("sv", AAZObjectType, ".sv") + display.set_prop("zhHans", AAZObjectType, ".zh_hans") + display.set_prop("zhHant", AAZObjectType, ".zh_hant") + + cs = _builder.get(".properties.contents[].display.cs") + if cs is not None: + cs.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + cs.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + cs.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + cs.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + de = _builder.get(".properties.contents[].display.de") + if de is not None: + de.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + de.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + de.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + de.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + default = _builder.get(".properties.contents[].display.default") + if default is not None: + default.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + default.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + default.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + default.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + en = _builder.get(".properties.contents[].display.en") + if en is not None: + en.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + en.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + en.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + en.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + es = _builder.get(".properties.contents[].display.es") + if es is not None: + es.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + es.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + es.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + es.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + fr = _builder.get(".properties.contents[].display.fr") + if fr is not None: + fr.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + fr.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + fr.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + fr.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + hu = _builder.get(".properties.contents[].display.hu") + if hu is not None: + hu.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + hu.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + hu.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + hu.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + it = _builder.get(".properties.contents[].display.it") + if it is not None: + it.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + it.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + it.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + it.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + ja = _builder.get(".properties.contents[].display.ja") + if ja is not None: + ja.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + ja.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + ja.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + ja.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + ko = _builder.get(".properties.contents[].display.ko") + if ko is not None: + ko.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + ko.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + ko.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + ko.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + nl = _builder.get(".properties.contents[].display.nl") + if nl is not None: + nl.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + nl.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + nl.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + nl.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + pl = _builder.get(".properties.contents[].display.pl") + if pl is not None: + pl.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + pl.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + pl.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + pl.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + pt_br = _builder.get(".properties.contents[].display.ptBR") + if pt_br is not None: + pt_br.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + pt_br.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + pt_br.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + pt_br.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + pt_pt = _builder.get(".properties.contents[].display.ptPT") + if pt_pt is not None: + pt_pt.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + pt_pt.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + pt_pt.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + pt_pt.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + ru = _builder.get(".properties.contents[].display.ru") + if ru is not None: + ru.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + ru.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + ru.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + ru.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + sv = _builder.get(".properties.contents[].display.sv") + if sv is not None: + sv.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + sv.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + sv.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + sv.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + zh_hans = _builder.get(".properties.contents[].display.zhHans") + if zh_hans is not None: + zh_hans.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + zh_hans.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + zh_hans.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + zh_hans.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + zh_hant = _builder.get(".properties.contents[].display.zhHant") + if zh_hant is not None: + zh_hant.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + zh_hant.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + zh_hant.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + zh_hant.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.contents = AAZListType() + + contents = cls._schema_on_200.properties.contents + contents.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.contents.Element + _element.action_type = AAZStrType( + serialized_name="actionType", + ) + _element.display = AAZObjectType( + flags={"required": True}, + ) + _element.is_data_action = AAZBoolType( + serialized_name="isDataAction", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.origin = AAZStrType() + + display = cls._schema_on_200.properties.contents.Element.display + display.cs = AAZObjectType() + display.de = AAZObjectType() + display.default = AAZObjectType( + flags={"required": True}, + ) + display.en = AAZObjectType() + display.es = AAZObjectType() + display.fr = AAZObjectType() + display.hu = AAZObjectType() + display.it = AAZObjectType() + display.ja = AAZObjectType() + display.ko = AAZObjectType() + display.nl = AAZObjectType() + display.pl = AAZObjectType() + display.pt_br = AAZObjectType( + serialized_name="ptBR", + ) + display.pt_pt = AAZObjectType( + serialized_name="ptPT", + ) + display.ru = AAZObjectType() + display.sv = AAZObjectType() + display.zh_hans = AAZObjectType( + serialized_name="zhHans", + ) + display.zh_hant = AAZObjectType( + serialized_name="zhHant", + ) + + cs = cls._schema_on_200.properties.contents.Element.display.cs + cs.description = AAZStrType( + flags={"required": True}, + ) + cs.operation = AAZStrType( + flags={"required": True}, + ) + cs.provider = AAZStrType( + flags={"required": True}, + ) + cs.resource = AAZStrType( + flags={"required": True}, + ) + + de = cls._schema_on_200.properties.contents.Element.display.de + de.description = AAZStrType( + flags={"required": True}, + ) + de.operation = AAZStrType( + flags={"required": True}, + ) + de.provider = AAZStrType( + flags={"required": True}, + ) + de.resource = AAZStrType( + flags={"required": True}, + ) + + default = cls._schema_on_200.properties.contents.Element.display.default + default.description = AAZStrType( + flags={"required": True}, + ) + default.operation = AAZStrType( + flags={"required": True}, + ) + default.provider = AAZStrType( + flags={"required": True}, + ) + default.resource = AAZStrType( + flags={"required": True}, + ) + + en = cls._schema_on_200.properties.contents.Element.display.en + en.description = AAZStrType( + flags={"required": True}, + ) + en.operation = AAZStrType( + flags={"required": True}, + ) + en.provider = AAZStrType( + flags={"required": True}, + ) + en.resource = AAZStrType( + flags={"required": True}, + ) + + es = cls._schema_on_200.properties.contents.Element.display.es + es.description = AAZStrType( + flags={"required": True}, + ) + es.operation = AAZStrType( + flags={"required": True}, + ) + es.provider = AAZStrType( + flags={"required": True}, + ) + es.resource = AAZStrType( + flags={"required": True}, + ) + + fr = cls._schema_on_200.properties.contents.Element.display.fr + fr.description = AAZStrType( + flags={"required": True}, + ) + fr.operation = AAZStrType( + flags={"required": True}, + ) + fr.provider = AAZStrType( + flags={"required": True}, + ) + fr.resource = AAZStrType( + flags={"required": True}, + ) + + hu = cls._schema_on_200.properties.contents.Element.display.hu + hu.description = AAZStrType( + flags={"required": True}, + ) + hu.operation = AAZStrType( + flags={"required": True}, + ) + hu.provider = AAZStrType( + flags={"required": True}, + ) + hu.resource = AAZStrType( + flags={"required": True}, + ) + + it = cls._schema_on_200.properties.contents.Element.display.it + it.description = AAZStrType( + flags={"required": True}, + ) + it.operation = AAZStrType( + flags={"required": True}, + ) + it.provider = AAZStrType( + flags={"required": True}, + ) + it.resource = AAZStrType( + flags={"required": True}, + ) + + ja = cls._schema_on_200.properties.contents.Element.display.ja + ja.description = AAZStrType( + flags={"required": True}, + ) + ja.operation = AAZStrType( + flags={"required": True}, + ) + ja.provider = AAZStrType( + flags={"required": True}, + ) + ja.resource = AAZStrType( + flags={"required": True}, + ) + + ko = cls._schema_on_200.properties.contents.Element.display.ko + ko.description = AAZStrType( + flags={"required": True}, + ) + ko.operation = AAZStrType( + flags={"required": True}, + ) + ko.provider = AAZStrType( + flags={"required": True}, + ) + ko.resource = AAZStrType( + flags={"required": True}, + ) + + nl = cls._schema_on_200.properties.contents.Element.display.nl + nl.description = AAZStrType( + flags={"required": True}, + ) + nl.operation = AAZStrType( + flags={"required": True}, + ) + nl.provider = AAZStrType( + flags={"required": True}, + ) + nl.resource = AAZStrType( + flags={"required": True}, + ) + + pl = cls._schema_on_200.properties.contents.Element.display.pl + pl.description = AAZStrType( + flags={"required": True}, + ) + pl.operation = AAZStrType( + flags={"required": True}, + ) + pl.provider = AAZStrType( + flags={"required": True}, + ) + pl.resource = AAZStrType( + flags={"required": True}, + ) + + pt_br = cls._schema_on_200.properties.contents.Element.display.pt_br + pt_br.description = AAZStrType( + flags={"required": True}, + ) + pt_br.operation = AAZStrType( + flags={"required": True}, + ) + pt_br.provider = AAZStrType( + flags={"required": True}, + ) + pt_br.resource = AAZStrType( + flags={"required": True}, + ) + + pt_pt = cls._schema_on_200.properties.contents.Element.display.pt_pt + pt_pt.description = AAZStrType( + flags={"required": True}, + ) + pt_pt.operation = AAZStrType( + flags={"required": True}, + ) + pt_pt.provider = AAZStrType( + flags={"required": True}, + ) + pt_pt.resource = AAZStrType( + flags={"required": True}, + ) + + ru = cls._schema_on_200.properties.contents.Element.display.ru + ru.description = AAZStrType( + flags={"required": True}, + ) + ru.operation = AAZStrType( + flags={"required": True}, + ) + ru.provider = AAZStrType( + flags={"required": True}, + ) + ru.resource = AAZStrType( + flags={"required": True}, + ) + + sv = cls._schema_on_200.properties.contents.Element.display.sv + sv.description = AAZStrType( + flags={"required": True}, + ) + sv.operation = AAZStrType( + flags={"required": True}, + ) + sv.provider = AAZStrType( + flags={"required": True}, + ) + sv.resource = AAZStrType( + flags={"required": True}, + ) + + zh_hans = cls._schema_on_200.properties.contents.Element.display.zh_hans + zh_hans.description = AAZStrType( + flags={"required": True}, + ) + zh_hans.operation = AAZStrType( + flags={"required": True}, + ) + zh_hans.provider = AAZStrType( + flags={"required": True}, + ) + zh_hans.resource = AAZStrType( + flags={"required": True}, + ) + + zh_hant = cls._schema_on_200.properties.contents.Element.display.zh_hant + zh_hant.description = AAZStrType( + flags={"required": True}, + ) + zh_hant.operation = AAZStrType( + flags={"required": True}, + ) + zh_hant.provider = AAZStrType( + flags={"required": True}, + ) + zh_hant.resource = AAZStrType( + flags={"required": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _CreateHelper: + """Helper class for Create""" + + +__all__ = ["Create"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_delete.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_delete.py new file mode 100644 index 00000000000..ab1c6fe8552 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_delete.py @@ -0,0 +1,132 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub operation delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete an operation. + + :example: operation delete + az providerhub operation delete -y --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/operations/default", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.OperationsDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class OperationsDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_list.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_list.py new file mode 100644 index 00000000000..66f0d76f9b4 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_list.py @@ -0,0 +1,198 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub operation list", +) +class List(AAZCommand): + """List the operations supported by the given provider. + + :example: operation list + az providerhub operation list --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/operations/default", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.OperationsListByProviderRegistration(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class OperationsListByProviderRegistration(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.contents = AAZListType() + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + contents = cls._schema_on_200.contents + contents.Element = AAZObjectType() + + _element = cls._schema_on_200.contents.Element + _element.action_type = AAZStrType( + serialized_name="actionType", + ) + _element.display = AAZObjectType( + flags={"required": True}, + ) + _element.is_data_action = AAZBoolType( + serialized_name="isDataAction", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.origin = AAZStrType() + + display = cls._schema_on_200.contents.Element.display + display.description = AAZStrType( + flags={"required": True}, + ) + display.operation = AAZStrType( + flags={"required": True}, + ) + display.provider = AAZStrType( + flags={"required": True}, + ) + display.resource = AAZStrType( + flags={"required": True}, + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + +__all__ = ["List"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_update.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_update.py new file mode 100644 index 00000000000..248331c3212 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/operation/_update.py @@ -0,0 +1,1212 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub operation update", +) +class Update(AAZCommand): + """Update the operation supported by the given provider. + + :example: operation update + az providerhub operation update --contents "[{{\\"name\\":\\"Private.VPTest/Employees/Read\\",\\"display\\":{{\\"default\\":{{\\"description\\":\\"Read employees\\",\\"operation\\":\\"Gets/List employee resources\\",\\"provider\\":\\"Private.VPTest\\",\\"resource\\":\\"Employees\\"}}}}}}]" --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/operations/default", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.contents = AAZListArg( + options=["--contents"], + arg_group="Properties", + help="Operations content.", + nullable=True, + ) + + contents = cls._args_schema.contents + contents.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.contents.Element + _element.action_type = AAZStrArg( + options=["action-type"], + nullable=True, + enum={"Internal": "Internal", "NotSpecified": "NotSpecified"}, + ) + _element.display = AAZObjectArg( + options=["display"], + help="Display information of the operation.", + ) + _element.is_data_action = AAZBoolArg( + options=["is-data-action"], + help="Indicates whether the operation applies to data-plane.", + nullable=True, + ) + _element.name = AAZStrArg( + options=["name"], + help="Name of the operation.", + ) + _element.origin = AAZStrArg( + options=["origin"], + nullable=True, + enum={"NotSpecified": "NotSpecified", "System": "System", "User": "User"}, + ) + + display = cls._args_schema.contents.Element.display + display.cs = AAZObjectArg( + options=["cs"], + help="Display information of the operation for cs locale.", + nullable=True, + ) + display.de = AAZObjectArg( + options=["de"], + help="Display information of the operation for de locale.", + nullable=True, + ) + display.default = AAZObjectArg( + options=["default"], + help="Display information of the operation.", + ) + display.en = AAZObjectArg( + options=["en"], + help="Display information of the operation for en locale.", + nullable=True, + ) + display.es = AAZObjectArg( + options=["es"], + help="Display information of the operation for es locale.", + nullable=True, + ) + display.fr = AAZObjectArg( + options=["fr"], + help="Display information of the operation for fr locale.", + nullable=True, + ) + display.hu = AAZObjectArg( + options=["hu"], + help="Display information of the operation for hu locale.", + nullable=True, + ) + display.it = AAZObjectArg( + options=["it"], + help="Display information of the operation for it locale.", + nullable=True, + ) + display.ja = AAZObjectArg( + options=["ja"], + help="Display information of the operation for ja locale.", + nullable=True, + ) + display.ko = AAZObjectArg( + options=["ko"], + help="Display information of the operation for ko locale.", + nullable=True, + ) + display.nl = AAZObjectArg( + options=["nl"], + help="Display information of the operation for nl locale.", + nullable=True, + ) + display.pl = AAZObjectArg( + options=["pl"], + help="Display information of the operation for pl locale.", + nullable=True, + ) + display.pt_br = AAZObjectArg( + options=["pt-br"], + help="Display information of the operation for pt-BR locale.", + nullable=True, + ) + display.pt_pt = AAZObjectArg( + options=["pt-pt"], + help="Display information of the operation for pt-PT locale.", + nullable=True, + ) + display.ru = AAZObjectArg( + options=["ru"], + help="Display information of the operation for ru locale.", + nullable=True, + ) + display.sv = AAZObjectArg( + options=["sv"], + help="Display information of the operation for sv locale.", + nullable=True, + ) + display.zh_hans = AAZObjectArg( + options=["zh-hans"], + help="Display information of the operation for zh-Hans locale.", + nullable=True, + ) + display.zh_hant = AAZObjectArg( + options=["zh-hant"], + help="Display information of the operation for zh-Hant locale.", + nullable=True, + ) + + cs = cls._args_schema.contents.Element.display.cs + cs.description = AAZStrArg( + options=["description"], + ) + cs.operation = AAZStrArg( + options=["operation"], + ) + cs.provider = AAZStrArg( + options=["provider"], + ) + cs.resource = AAZStrArg( + options=["resource"], + ) + + de = cls._args_schema.contents.Element.display.de + de.description = AAZStrArg( + options=["description"], + ) + de.operation = AAZStrArg( + options=["operation"], + ) + de.provider = AAZStrArg( + options=["provider"], + ) + de.resource = AAZStrArg( + options=["resource"], + ) + + default = cls._args_schema.contents.Element.display.default + default.description = AAZStrArg( + options=["description"], + ) + default.operation = AAZStrArg( + options=["operation"], + ) + default.provider = AAZStrArg( + options=["provider"], + ) + default.resource = AAZStrArg( + options=["resource"], + ) + + en = cls._args_schema.contents.Element.display.en + en.description = AAZStrArg( + options=["description"], + ) + en.operation = AAZStrArg( + options=["operation"], + ) + en.provider = AAZStrArg( + options=["provider"], + ) + en.resource = AAZStrArg( + options=["resource"], + ) + + es = cls._args_schema.contents.Element.display.es + es.description = AAZStrArg( + options=["description"], + ) + es.operation = AAZStrArg( + options=["operation"], + ) + es.provider = AAZStrArg( + options=["provider"], + ) + es.resource = AAZStrArg( + options=["resource"], + ) + + fr = cls._args_schema.contents.Element.display.fr + fr.description = AAZStrArg( + options=["description"], + ) + fr.operation = AAZStrArg( + options=["operation"], + ) + fr.provider = AAZStrArg( + options=["provider"], + ) + fr.resource = AAZStrArg( + options=["resource"], + ) + + hu = cls._args_schema.contents.Element.display.hu + hu.description = AAZStrArg( + options=["description"], + ) + hu.operation = AAZStrArg( + options=["operation"], + ) + hu.provider = AAZStrArg( + options=["provider"], + ) + hu.resource = AAZStrArg( + options=["resource"], + ) + + it = cls._args_schema.contents.Element.display.it + it.description = AAZStrArg( + options=["description"], + ) + it.operation = AAZStrArg( + options=["operation"], + ) + it.provider = AAZStrArg( + options=["provider"], + ) + it.resource = AAZStrArg( + options=["resource"], + ) + + ja = cls._args_schema.contents.Element.display.ja + ja.description = AAZStrArg( + options=["description"], + ) + ja.operation = AAZStrArg( + options=["operation"], + ) + ja.provider = AAZStrArg( + options=["provider"], + ) + ja.resource = AAZStrArg( + options=["resource"], + ) + + ko = cls._args_schema.contents.Element.display.ko + ko.description = AAZStrArg( + options=["description"], + ) + ko.operation = AAZStrArg( + options=["operation"], + ) + ko.provider = AAZStrArg( + options=["provider"], + ) + ko.resource = AAZStrArg( + options=["resource"], + ) + + nl = cls._args_schema.contents.Element.display.nl + nl.description = AAZStrArg( + options=["description"], + ) + nl.operation = AAZStrArg( + options=["operation"], + ) + nl.provider = AAZStrArg( + options=["provider"], + ) + nl.resource = AAZStrArg( + options=["resource"], + ) + + pl = cls._args_schema.contents.Element.display.pl + pl.description = AAZStrArg( + options=["description"], + ) + pl.operation = AAZStrArg( + options=["operation"], + ) + pl.provider = AAZStrArg( + options=["provider"], + ) + pl.resource = AAZStrArg( + options=["resource"], + ) + + pt_br = cls._args_schema.contents.Element.display.pt_br + pt_br.description = AAZStrArg( + options=["description"], + ) + pt_br.operation = AAZStrArg( + options=["operation"], + ) + pt_br.provider = AAZStrArg( + options=["provider"], + ) + pt_br.resource = AAZStrArg( + options=["resource"], + ) + + pt_pt = cls._args_schema.contents.Element.display.pt_pt + pt_pt.description = AAZStrArg( + options=["description"], + ) + pt_pt.operation = AAZStrArg( + options=["operation"], + ) + pt_pt.provider = AAZStrArg( + options=["provider"], + ) + pt_pt.resource = AAZStrArg( + options=["resource"], + ) + + ru = cls._args_schema.contents.Element.display.ru + ru.description = AAZStrArg( + options=["description"], + ) + ru.operation = AAZStrArg( + options=["operation"], + ) + ru.provider = AAZStrArg( + options=["provider"], + ) + ru.resource = AAZStrArg( + options=["resource"], + ) + + sv = cls._args_schema.contents.Element.display.sv + sv.description = AAZStrArg( + options=["description"], + ) + sv.operation = AAZStrArg( + options=["operation"], + ) + sv.provider = AAZStrArg( + options=["provider"], + ) + sv.resource = AAZStrArg( + options=["resource"], + ) + + zh_hans = cls._args_schema.contents.Element.display.zh_hans + zh_hans.description = AAZStrArg( + options=["description"], + ) + zh_hans.operation = AAZStrArg( + options=["operation"], + ) + zh_hans.provider = AAZStrArg( + options=["provider"], + ) + zh_hans.resource = AAZStrArg( + options=["resource"], + ) + + zh_hant = cls._args_schema.contents.Element.display.zh_hant + zh_hant.description = AAZStrArg( + options=["description"], + ) + zh_hant.operation = AAZStrArg( + options=["operation"], + ) + zh_hant.provider = AAZStrArg( + options=["provider"], + ) + zh_hant.resource = AAZStrArg( + options=["resource"], + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.OperationsListByProviderRegistration(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.OperationsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class OperationsListByProviderRegistration(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.contents = AAZListType() + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + contents = cls._schema_on_200.contents + contents.Element = AAZObjectType() + + _element = cls._schema_on_200.contents.Element + _element.action_type = AAZStrType( + serialized_name="actionType", + ) + _element.display = AAZObjectType( + flags={"required": True}, + ) + _element.is_data_action = AAZBoolType( + serialized_name="isDataAction", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.origin = AAZStrType() + + display = cls._schema_on_200.contents.Element.display + display.description = AAZStrType( + flags={"required": True}, + ) + display.operation = AAZStrType( + flags={"required": True}, + ) + display.provider = AAZStrType( + flags={"required": True}, + ) + display.resource = AAZStrType( + flags={"required": True}, + ) + + return cls._schema_on_200 + + class OperationsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.contents = AAZListType() + + contents = cls._schema_on_200.properties.contents + contents.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.contents.Element + _element.action_type = AAZStrType( + serialized_name="actionType", + ) + _element.display = AAZObjectType( + flags={"required": True}, + ) + _element.is_data_action = AAZBoolType( + serialized_name="isDataAction", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.origin = AAZStrType() + + display = cls._schema_on_200.properties.contents.Element.display + display.cs = AAZObjectType() + display.de = AAZObjectType() + display.default = AAZObjectType( + flags={"required": True}, + ) + display.en = AAZObjectType() + display.es = AAZObjectType() + display.fr = AAZObjectType() + display.hu = AAZObjectType() + display.it = AAZObjectType() + display.ja = AAZObjectType() + display.ko = AAZObjectType() + display.nl = AAZObjectType() + display.pl = AAZObjectType() + display.pt_br = AAZObjectType( + serialized_name="ptBR", + ) + display.pt_pt = AAZObjectType( + serialized_name="ptPT", + ) + display.ru = AAZObjectType() + display.sv = AAZObjectType() + display.zh_hans = AAZObjectType( + serialized_name="zhHans", + ) + display.zh_hant = AAZObjectType( + serialized_name="zhHant", + ) + + cs = cls._schema_on_200.properties.contents.Element.display.cs + cs.description = AAZStrType( + flags={"required": True}, + ) + cs.operation = AAZStrType( + flags={"required": True}, + ) + cs.provider = AAZStrType( + flags={"required": True}, + ) + cs.resource = AAZStrType( + flags={"required": True}, + ) + + de = cls._schema_on_200.properties.contents.Element.display.de + de.description = AAZStrType( + flags={"required": True}, + ) + de.operation = AAZStrType( + flags={"required": True}, + ) + de.provider = AAZStrType( + flags={"required": True}, + ) + de.resource = AAZStrType( + flags={"required": True}, + ) + + default = cls._schema_on_200.properties.contents.Element.display.default + default.description = AAZStrType( + flags={"required": True}, + ) + default.operation = AAZStrType( + flags={"required": True}, + ) + default.provider = AAZStrType( + flags={"required": True}, + ) + default.resource = AAZStrType( + flags={"required": True}, + ) + + en = cls._schema_on_200.properties.contents.Element.display.en + en.description = AAZStrType( + flags={"required": True}, + ) + en.operation = AAZStrType( + flags={"required": True}, + ) + en.provider = AAZStrType( + flags={"required": True}, + ) + en.resource = AAZStrType( + flags={"required": True}, + ) + + es = cls._schema_on_200.properties.contents.Element.display.es + es.description = AAZStrType( + flags={"required": True}, + ) + es.operation = AAZStrType( + flags={"required": True}, + ) + es.provider = AAZStrType( + flags={"required": True}, + ) + es.resource = AAZStrType( + flags={"required": True}, + ) + + fr = cls._schema_on_200.properties.contents.Element.display.fr + fr.description = AAZStrType( + flags={"required": True}, + ) + fr.operation = AAZStrType( + flags={"required": True}, + ) + fr.provider = AAZStrType( + flags={"required": True}, + ) + fr.resource = AAZStrType( + flags={"required": True}, + ) + + hu = cls._schema_on_200.properties.contents.Element.display.hu + hu.description = AAZStrType( + flags={"required": True}, + ) + hu.operation = AAZStrType( + flags={"required": True}, + ) + hu.provider = AAZStrType( + flags={"required": True}, + ) + hu.resource = AAZStrType( + flags={"required": True}, + ) + + it = cls._schema_on_200.properties.contents.Element.display.it + it.description = AAZStrType( + flags={"required": True}, + ) + it.operation = AAZStrType( + flags={"required": True}, + ) + it.provider = AAZStrType( + flags={"required": True}, + ) + it.resource = AAZStrType( + flags={"required": True}, + ) + + ja = cls._schema_on_200.properties.contents.Element.display.ja + ja.description = AAZStrType( + flags={"required": True}, + ) + ja.operation = AAZStrType( + flags={"required": True}, + ) + ja.provider = AAZStrType( + flags={"required": True}, + ) + ja.resource = AAZStrType( + flags={"required": True}, + ) + + ko = cls._schema_on_200.properties.contents.Element.display.ko + ko.description = AAZStrType( + flags={"required": True}, + ) + ko.operation = AAZStrType( + flags={"required": True}, + ) + ko.provider = AAZStrType( + flags={"required": True}, + ) + ko.resource = AAZStrType( + flags={"required": True}, + ) + + nl = cls._schema_on_200.properties.contents.Element.display.nl + nl.description = AAZStrType( + flags={"required": True}, + ) + nl.operation = AAZStrType( + flags={"required": True}, + ) + nl.provider = AAZStrType( + flags={"required": True}, + ) + nl.resource = AAZStrType( + flags={"required": True}, + ) + + pl = cls._schema_on_200.properties.contents.Element.display.pl + pl.description = AAZStrType( + flags={"required": True}, + ) + pl.operation = AAZStrType( + flags={"required": True}, + ) + pl.provider = AAZStrType( + flags={"required": True}, + ) + pl.resource = AAZStrType( + flags={"required": True}, + ) + + pt_br = cls._schema_on_200.properties.contents.Element.display.pt_br + pt_br.description = AAZStrType( + flags={"required": True}, + ) + pt_br.operation = AAZStrType( + flags={"required": True}, + ) + pt_br.provider = AAZStrType( + flags={"required": True}, + ) + pt_br.resource = AAZStrType( + flags={"required": True}, + ) + + pt_pt = cls._schema_on_200.properties.contents.Element.display.pt_pt + pt_pt.description = AAZStrType( + flags={"required": True}, + ) + pt_pt.operation = AAZStrType( + flags={"required": True}, + ) + pt_pt.provider = AAZStrType( + flags={"required": True}, + ) + pt_pt.resource = AAZStrType( + flags={"required": True}, + ) + + ru = cls._schema_on_200.properties.contents.Element.display.ru + ru.description = AAZStrType( + flags={"required": True}, + ) + ru.operation = AAZStrType( + flags={"required": True}, + ) + ru.provider = AAZStrType( + flags={"required": True}, + ) + ru.resource = AAZStrType( + flags={"required": True}, + ) + + sv = cls._schema_on_200.properties.contents.Element.display.sv + sv.description = AAZStrType( + flags={"required": True}, + ) + sv.operation = AAZStrType( + flags={"required": True}, + ) + sv.provider = AAZStrType( + flags={"required": True}, + ) + sv.resource = AAZStrType( + flags={"required": True}, + ) + + zh_hans = cls._schema_on_200.properties.contents.Element.display.zh_hans + zh_hans.description = AAZStrType( + flags={"required": True}, + ) + zh_hans.operation = AAZStrType( + flags={"required": True}, + ) + zh_hans.provider = AAZStrType( + flags={"required": True}, + ) + zh_hans.resource = AAZStrType( + flags={"required": True}, + ) + + zh_hant = cls._schema_on_200.properties.contents.Element.display.zh_hant + zh_hant.description = AAZStrType( + flags={"required": True}, + ) + zh_hant.operation = AAZStrType( + flags={"required": True}, + ) + zh_hant.provider = AAZStrType( + flags={"required": True}, + ) + zh_hant.resource = AAZStrType( + flags={"required": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("contents", AAZListType, ".contents") + + contents = _builder.get(".properties.contents") + if contents is not None: + contents.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.contents[]") + if _elements is not None: + _elements.set_prop("actionType", AAZStrType, ".action_type") + _elements.set_prop("display", AAZObjectType, ".display", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("isDataAction", AAZBoolType, ".is_data_action") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("origin", AAZStrType, ".origin") + + display = _builder.get(".properties.contents[].display") + if display is not None: + display.set_prop("cs", AAZObjectType, ".cs") + display.set_prop("de", AAZObjectType, ".de") + display.set_prop("default", AAZObjectType, ".default", typ_kwargs={"flags": {"required": True}}) + display.set_prop("en", AAZObjectType, ".en") + display.set_prop("es", AAZObjectType, ".es") + display.set_prop("fr", AAZObjectType, ".fr") + display.set_prop("hu", AAZObjectType, ".hu") + display.set_prop("it", AAZObjectType, ".it") + display.set_prop("ja", AAZObjectType, ".ja") + display.set_prop("ko", AAZObjectType, ".ko") + display.set_prop("nl", AAZObjectType, ".nl") + display.set_prop("pl", AAZObjectType, ".pl") + display.set_prop("ptBR", AAZObjectType, ".pt_br") + display.set_prop("ptPT", AAZObjectType, ".pt_pt") + display.set_prop("ru", AAZObjectType, ".ru") + display.set_prop("sv", AAZObjectType, ".sv") + display.set_prop("zhHans", AAZObjectType, ".zh_hans") + display.set_prop("zhHant", AAZObjectType, ".zh_hant") + + cs = _builder.get(".properties.contents[].display.cs") + if cs is not None: + cs.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + cs.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + cs.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + cs.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + de = _builder.get(".properties.contents[].display.de") + if de is not None: + de.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + de.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + de.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + de.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + default = _builder.get(".properties.contents[].display.default") + if default is not None: + default.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + default.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + default.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + default.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + en = _builder.get(".properties.contents[].display.en") + if en is not None: + en.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + en.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + en.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + en.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + es = _builder.get(".properties.contents[].display.es") + if es is not None: + es.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + es.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + es.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + es.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + fr = _builder.get(".properties.contents[].display.fr") + if fr is not None: + fr.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + fr.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + fr.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + fr.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + hu = _builder.get(".properties.contents[].display.hu") + if hu is not None: + hu.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + hu.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + hu.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + hu.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + it = _builder.get(".properties.contents[].display.it") + if it is not None: + it.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + it.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + it.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + it.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + ja = _builder.get(".properties.contents[].display.ja") + if ja is not None: + ja.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + ja.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + ja.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + ja.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + ko = _builder.get(".properties.contents[].display.ko") + if ko is not None: + ko.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + ko.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + ko.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + ko.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + nl = _builder.get(".properties.contents[].display.nl") + if nl is not None: + nl.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + nl.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + nl.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + nl.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + pl = _builder.get(".properties.contents[].display.pl") + if pl is not None: + pl.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + pl.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + pl.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + pl.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + pt_br = _builder.get(".properties.contents[].display.ptBR") + if pt_br is not None: + pt_br.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + pt_br.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + pt_br.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + pt_br.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + pt_pt = _builder.get(".properties.contents[].display.ptPT") + if pt_pt is not None: + pt_pt.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + pt_pt.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + pt_pt.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + pt_pt.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + ru = _builder.get(".properties.contents[].display.ru") + if ru is not None: + ru.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + ru.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + ru.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + ru.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + sv = _builder.get(".properties.contents[].display.sv") + if sv is not None: + sv.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + sv.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + sv.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + sv.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + zh_hans = _builder.get(".properties.contents[].display.zhHans") + if zh_hans is not None: + zh_hans.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + zh_hans.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + zh_hans.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + zh_hans.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + zh_hant = _builder.get(".properties.contents[].display.zhHant") + if zh_hant is not None: + zh_hant.set_prop("description", AAZStrType, ".description", typ_kwargs={"flags": {"required": True}}) + zh_hant.set_prop("operation", AAZStrType, ".operation", typ_kwargs={"flags": {"required": True}}) + zh_hant.set_prop("provider", AAZStrType, ".provider", typ_kwargs={"flags": {"required": True}}) + zh_hant.set_prop("resource", AAZStrType, ".resource", typ_kwargs={"flags": {"required": True}}) + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + +__all__ = ["Update"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/__cmd_group.py new file mode 100644 index 00000000000..50c66064469 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub provider-registration", +) +class __CMDGroup(AAZCommandGroup): + """Manage provider registration with providerhub. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/__init__.py new file mode 100644 index 00000000000..065c8f01cc7 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/__init__.py @@ -0,0 +1,18 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._generate_operation import * +from ._list import * +from ._show import * +from ._update import * +from ._wait import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_create.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_create.py new file mode 100644 index 00000000000..6d319a3bad2 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_create.py @@ -0,0 +1,2132 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub provider-registration create", +) +class Create(AAZCommand): + """Create the provider registration. + + :example: provider-registration create + az providerhub provider-registration create --token-auth-configuration authentication-scheme="PoP" signed-request-scope="ResourceUri" --service-tree-infos service-id="d1b7d8ba-05e2-48e6-90d6-d781b99c6e69" component-id="d1b7d8ba-05e2-48e6-90d6-d781b99c6e69" --capabilities effect="Allow" quota-id="CSP_2015-05-01" --capabilities effect="Allow" quota-id="CSP_MG_2017-12-01" --manifest-owners "SPARTA-PlatformServiceAdministrator" --incident-contact-email "rpaascore@microsoft.com" --incident-routing-service "Resource Provider Service as a Service" --incident-routing-team "RPaaS" --provider-version "2.0" --provider-namespace "{providerNamespace}" --metadata "BypassManifestValidation":true + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["-n", "--name", "--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + + # define Arg Group "FeaturesRule" + + _args_schema = cls._args_schema + _args_schema.required_features_policy = AAZStrArg( + options=["--req-features-policy", "--required-features-policy"], + arg_group="FeaturesRule", + help="The accepted values are \"Any\" or \"All\".", + enum={"All": "All", "Any": "Any"}, + ) + + # define Arg Group "Management" + + _args_schema = cls._args_schema + _args_schema.authorization_owners = AAZListArg( + options=["--authorization-owners"], + arg_group="Management", + help="The authorization owners.", + ) + _args_schema.canary_manifest_owners = AAZListArg( + options=["--canary-manifest-owners"], + arg_group="Management", + help="List of manifest owners for canary", + ) + _args_schema.error_response_message_options = AAZObjectArg( + options=["--message-options", "--error-response-message-options"], + arg_group="Management", + help="Options for error response messages.", + ) + _args_schema.expedited_rollout_metadata = AAZObjectArg( + options=["--rollout-metadata", "--expedited-rollout-metadata"], + arg_group="Management", + help="Metadata for expedited rollout.", + ) + _args_schema.expedited_rollout_submitters = AAZListArg( + options=["--rollout-submitters", "--expedited-rollout-submitters"], + arg_group="Management", + help="List of expedited rollout submitters.", + ) + _args_schema.incident_contact_email = AAZStrArg( + options=["--incident-contact-email"], + arg_group="Management", + help="The email address of contacts for incidents related to the RP.", + ) + _args_schema.incident_routing_service = AAZStrArg( + options=["--incident-service", "--incident-routing-service"], + arg_group="Management", + help="The service in IcM when creating or transferring incidents to the RP.", + ) + _args_schema.incident_routing_team = AAZStrArg( + options=["--incident-team", "--incident-routing-team"], + arg_group="Management", + help="The team in IcM when creating or transferring incidents to the RP.", + ) + _args_schema.manifest_owners = AAZListArg( + options=["--manifest-owners"], + singular_options=["--manifest-owner"], + arg_group="Management", + help="Specifies an array of required ACIS claims to modify the resource provider's manifest content via ACIS.", + ) + _args_schema.pc_code = AAZStrArg( + options=["--pc-code"], + arg_group="Management", + help="The profit center code for the subscription.", + ) + _args_schema.profit_center_program_id = AAZStrArg( + options=["--pc-program-id", "--profit-center-program-id"], + arg_group="Management", + help="The profit center program id for the subscription.", + ) + _args_schema.resource_access_policy = AAZStrArg( + options=["--resource-access-policy"], + arg_group="Management", + help="The resource access policy.", + enum={"AcisActionAllowed": "AcisActionAllowed", "AcisReadAllowed": "AcisReadAllowed", "NotSpecified": "NotSpecified"}, + ) + _args_schema.resource_access_roles = AAZListArg( + options=["--resource-access-roles"], + arg_group="Management", + help="The resource access roles.", + ) + _args_schema.schema_owners = AAZListArg( + options=["--schema-owners"], + singular_options=["--schema-owner", "--schema-owners"], + arg_group="Management", + help="Specifies an array of needed ACIS claims to modify the resource provider schema via ACIS.", + ) + _args_schema.service_tree_infos = AAZListArg( + options=["--service-tree-infos"], + singular_options=["--service-tree-info", "--service-tree-infos"], + arg_group="Management", + help="The ServiceTree information for the resource provider.", + ) + + authorization_owners = cls._args_schema.authorization_owners + authorization_owners.Element = AAZStrArg() + + canary_manifest_owners = cls._args_schema.canary_manifest_owners + canary_manifest_owners.Element = AAZStrArg() + + error_response_message_options = cls._args_schema.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrArg( + options=["server-failure-response-message-type"], + help="Type of server failure response message.", + enum={"NotSpecified": "NotSpecified", "OutageReporting": "OutageReporting"}, + ) + + expedited_rollout_metadata = cls._args_schema.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolArg( + options=["enabled"], + help="Expedited rollout enabled?", + ) + expedited_rollout_metadata.expedited_rollout_intent = AAZStrArg( + options=["expedited-rollout-intent"], + help="Expedited rollout intent.", + enum={"Hotfix": "Hotfix", "NotSpecified": "NotSpecified"}, + ) + + expedited_rollout_submitters = cls._args_schema.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrArg() + + manifest_owners = cls._args_schema.manifest_owners + manifest_owners.Element = AAZStrArg() + + resource_access_roles = cls._args_schema.resource_access_roles + resource_access_roles.Element = AAZObjectArg() + + _element = cls._args_schema.resource_access_roles.Element + _element.actions = AAZListArg( + options=["actions"], + ) + _element.allowed_group_claims = AAZListArg( + options=["allowed-group-claims"], + ) + + actions = cls._args_schema.resource_access_roles.Element.actions + actions.Element = AAZStrArg() + + allowed_group_claims = cls._args_schema.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrArg() + + schema_owners = cls._args_schema.schema_owners + schema_owners.Element = AAZStrArg() + + service_tree_infos = cls._args_schema.service_tree_infos + service_tree_infos.Element = AAZObjectArg() + + _element = cls._args_schema.service_tree_infos.Element + _element.component_id = AAZStrArg( + options=["component-id"], + ) + _element.readiness = AAZStrArg( + options=["readiness"], + enum={"ClosingDown": "ClosingDown", "Deprecated": "Deprecated", "GA": "GA", "InDevelopment": "InDevelopment", "InternalOnly": "InternalOnly", "PrivatePreview": "PrivatePreview", "PublicPreview": "PublicPreview", "RemovedFromARM": "RemovedFromARM", "Retired": "Retired"}, + ) + _element.service_id = AAZStrArg( + options=["service-id"], + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.kind = AAZStrArg( + options=["--kind"], + arg_group="Properties", + help="Provider registration kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + default="Managed", + enum={"Direct": "Direct", "Hybrid": "Hybrid", "Managed": "Managed"}, + ) + _args_schema.capabilities = AAZListArg( + options=["--capabilities"], + singular_options=["--capability", "--capabilities"], + arg_group="Properties", + help="This allows a restrictive subscription type to have access to register and use the Resource Provider.", + ) + _args_schema.cross_tenant_token_validation = AAZStrArg( + options=["--token-validation", "--cross-tenant-token-validation"], + arg_group="Properties", + help="The cross tenant token validation.", + enum={"EnsureSecureValidation": "EnsureSecureValidation", "PassthroughInsecureToken": "PassthroughInsecureToken"}, + ) + _args_schema.custom_manifest_version = AAZStrArg( + options=["--custom-manifest-vers", "--custom-manifest-version"], + arg_group="Properties", + help="Custom manifest version.", + ) + _args_schema.dsts_configuration = AAZObjectArg( + options=["--dsts-configuration"], + arg_group="Properties", + help="The DSTS configuration.", + ) + _args_schema.enable_tenant_linked_notification = AAZBoolArg( + options=["--enable-linked-notif", "--enable-tenant-linked-notification"], + arg_group="Properties", + help="The enable tenant linked notification.", + nullable=True, + ) + _args_schema.global_notification_endpoints = AAZListArg( + options=["--global-notif-endpoints", "--global-notification-endpoints"], + arg_group="Properties", + help="The global notification endpoints.", + ) + _args_schema.legacy_namespace = AAZStrArg( + options=["--legacy-namespace"], + arg_group="Properties", + help="Legacy namespace.", + ) + _args_schema.legacy_registrations = AAZListArg( + options=["--legacy-registrations"], + arg_group="Properties", + help="Legacy registrations.", + ) + _args_schema.linked_notification_rules = AAZListArg( + options=["--linked-notif-rules", "--linked-notification-rules"], + arg_group="Properties", + help="The linked notification rules.", + ) + _args_schema.management_group_global_notification_endpoints = AAZListArg( + options=["--mg-notif-endpoints", "--management-group-global-notification-endpoints"], + arg_group="Properties", + help="Management groups global notification endpoints.", + ) + _args_schema.metadata = AAZFreeFormDictArg( + options=["--metadata"], + arg_group="Properties", + help="The metadata.", + blank={}, + ) + _args_schema.namespace = AAZStrArg( + options=["--namespace"], + arg_group="Properties", + help="The name of the resource provider hosted within ProviderHub.", + ) + _args_schema.notification_options = AAZStrArg( + options=["--notification-options"], + arg_group="Properties", + help="Notification options.", + enum={"EmitSpendingLimit": "EmitSpendingLimit", "None": "None", "NotSpecified": "NotSpecified"}, + ) + _args_schema.notification_settings = AAZObjectArg( + options=["--notification-settings"], + arg_group="Properties", + help="Notification settings.", + ) + _args_schema.notifications = AAZListArg( + options=["--notifications"], + arg_group="Properties", + help="The notifications object.", + ) + _args_schema.optional_features = AAZListArg( + options=["--optional-features"], + arg_group="Properties", + help="Optional features.", + ) + _args_schema.private_resource_provider_configuration = AAZObjectArg( + options=["--private-rp-config", "--private-resource-provider-configuration"], + arg_group="Properties", + help="The private resource provider configuration.", + ) + _args_schema.provider_authentication = AAZObjectArg( + options=["--provider-authn", "--provider-authentication"], + arg_group="Properties", + help="Used to set alternative audiences or resources that ARM should accept from the token while authenticating requests for the provider.", + ) + _args_schema.provider_authorizations = AAZListArg( + options=["--provider-authorizations"], + singular_options=["--provider-auth", "--provider-authz", "--provider-authorizations"], + arg_group="Properties", + help="The resource provider authorizations.", + ) + _args_schema.provider_hub_metadata = AAZObjectArg( + options=["--provider-hub-metadata"], + arg_group="Properties", + help="The ProviderHub metadata.", + ) + _args_schema.provider_type = AAZStrArg( + options=["--provider-type"], + arg_group="Properties", + help="The provider type.", + enum={"AuthorizationFree": "AuthorizationFree", "External": "External", "Hidden": "Hidden", "Internal": "Internal", "LegacyRegistrationRequired": "LegacyRegistrationRequired", "NotSpecified": "NotSpecified", "RegistrationFree": "RegistrationFree", "TenantOnly": "TenantOnly"}, + ) + _args_schema.provider_version = AAZStrArg( + options=["--provider-version"], + arg_group="Properties", + help="The provider version.", + ) + _args_schema.required_features = AAZListArg( + options=["--required-features"], + arg_group="Properties", + help="The required features.", + ) + _args_schema.resource_group_lock_option_during_move = AAZObjectArg( + options=["--rg-lock-option", "--resource-group-lock-option-during-move"], + arg_group="Properties", + help="Resource group lock option during move.", + ) + _args_schema.resource_hydration_accounts = AAZListArg( + options=["--resc-hydration-accts", "--resource-hydration-accounts"], + arg_group="Properties", + help="resource hydration accounts", + ) + _args_schema.resource_provider_authorization_rules = AAZObjectArg( + options=["--rp-auth-rules", "--resource-provider-authorization-rules"], + arg_group="Properties", + help="The resource provider authorization rules.", + ) + _args_schema.response_options = AAZObjectArg( + options=["--response-options"], + arg_group="Properties", + help="Response options.", + ) + _args_schema.service_name = AAZStrArg( + options=["--service-name"], + arg_group="Properties", + help="The service name.", + ) + _args_schema.services = AAZListArg( + options=["--services"], + arg_group="Properties", + help="The services.", + ) + _args_schema.template_deployment_options = AAZObjectArg( + options=["--tmplt-deploy-opt", "--template-deployment-options"], + arg_group="Properties", + help="The template deployment options.", + ) + _args_schema.token_auth_configuration = AAZObjectArg( + options=["--token-auth-config", "--token-auth-configuration"], + arg_group="Properties", + help="The token auth configuration.", + ) + cls._build_args_token_auth_configuration_create(_args_schema.token_auth_configuration) + + capabilities = cls._args_schema.capabilities + capabilities.Element = AAZObjectArg() + + _element = cls._args_schema.capabilities.Element + _element.effect = AAZStrArg( + options=["effect"], + required=True, + enum={"Allow": "Allow", "Disallow": "Disallow", "NotSpecified": "NotSpecified"}, + ) + _element.quota_id = AAZStrArg( + options=["quota-id"], + required=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + + required_features = cls._args_schema.capabilities.Element.required_features + required_features.Element = AAZStrArg() + + dsts_configuration = cls._args_schema.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + required=True, + ) + + global_notification_endpoints = cls._args_schema.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectArg() + cls._build_args_resource_provider_endpoint_create(global_notification_endpoints.Element) + + legacy_registrations = cls._args_schema.legacy_registrations + legacy_registrations.Element = AAZStrArg() + + linked_notification_rules = cls._args_schema.linked_notification_rules + linked_notification_rules.Element = AAZObjectArg() + + _element = cls._args_schema.linked_notification_rules.Element + _element.actions = AAZListArg( + options=["actions"], + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + ) + _element.endpoints = AAZListArg( + options=["endpoints"], + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + ) + cls._build_args_token_auth_configuration_create(_element.token_auth_configuration) + + actions = cls._args_schema.linked_notification_rules.Element.actions + actions.Element = AAZStrArg() + + dsts_configuration = cls._args_schema.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + required=True, + ) + + endpoints = cls._args_schema.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectArg() + cls._build_args_resource_provider_endpoint_create(endpoints.Element) + + management_group_global_notification_endpoints = cls._args_schema.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectArg() + cls._build_args_resource_provider_endpoint_create(management_group_global_notification_endpoints.Element) + + notification_settings = cls._args_schema.notification_settings + notification_settings.subscriber_settings = AAZListArg( + options=["subscriber-settings"], + ) + + subscriber_settings = cls._args_schema.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectArg() + + _element = cls._args_schema.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListArg( + options=["filter-rules"], + ) + + filter_rules = cls._args_schema.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectArg() + + _element = cls._args_schema.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListArg( + options=["endpoint-information"], + ) + _element.filter_query = AAZStrArg( + options=["filter-query"], + ) + + endpoint_information = cls._args_schema.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectArg() + + _element = cls._args_schema.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrArg( + options=["endpoint"], + ) + _element.endpoint_type = AAZStrArg( + options=["endpoint-type"], + enum={"Eventhub": "Eventhub", "Webhook": "Webhook"}, + ) + _element.schema_version = AAZStrArg( + options=["schema-version"], + ) + + notifications = cls._args_schema.notifications + notifications.Element = AAZObjectArg() + + _element = cls._args_schema.notifications.Element + _element.notification_type = AAZStrArg( + options=["notification-type"], + enum={"SubscriptionNotification": "SubscriptionNotification", "Unspecified": "Unspecified"}, + ) + _element.skip_notifications = AAZStrArg( + options=["skip-notifications"], + enum={"Disabled": "Disabled", "Enabled": "Enabled", "Unspecified": "Unspecified"}, + ) + + optional_features = cls._args_schema.optional_features + optional_features.Element = AAZStrArg() + + private_resource_provider_configuration = cls._args_schema.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListArg( + options=["allowed-subscriptions"], + ) + + allowed_subscriptions = cls._args_schema.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrArg() + + provider_authentication = cls._args_schema.provider_authentication + provider_authentication.allowed_audiences = AAZListArg( + options=["allowed-audiences"], + required=True, + ) + + allowed_audiences = cls._args_schema.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrArg() + + provider_authorizations = cls._args_schema.provider_authorizations + provider_authorizations.Element = AAZObjectArg() + cls._build_args_resource_provider_authorization_create(provider_authorizations.Element) + + provider_hub_metadata = cls._args_schema.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrArg( + options=["direct-rp-role-definition-id"], + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrArg( + options=["global-async-operation-resource-type-name"], + ) + provider_hub_metadata.providerhub_metadata_authentication = AAZObjectArg( + options=["metadata-authn", "provider-authentication", "providerhub-metadata-authentication"], + help="The ProviderHub metadata authorizations.", + ) + provider_hub_metadata.providerhub_metadata_authorizations = AAZListArg( + options=["metadata-authz", "provider-authorizations", "providerhub-metadata-authorizations"], + singular_options=["providerhub-metadata-authorization", "providerhub-metadata-authorizations"], + help="The ProviderHub metadata authorizations.", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrArg( + options=["regional-async-operation-resource-type-name"], + ) + provider_hub_metadata.lighthouse_authorizations = AAZListArg( + options=["authorizations", "lighthouse-auth", "lighthouse-authorizations"], + help="The lighthouse authorizations.", + ) + provider_hub_metadata.managed_by_tenant_id = AAZStrArg( + options=["managed-by-tenant-id"], + help="The managed by tenant ID.", + ) + + providerhub_metadata_authentication = cls._args_schema.provider_hub_metadata.providerhub_metadata_authentication + providerhub_metadata_authentication.allowed_audiences = AAZListArg( + options=["allowed-audiences"], + required=True, + ) + + allowed_audiences = cls._args_schema.provider_hub_metadata.providerhub_metadata_authentication.allowed_audiences + allowed_audiences.Element = AAZStrArg() + + providerhub_metadata_authorizations = cls._args_schema.provider_hub_metadata.providerhub_metadata_authorizations + providerhub_metadata_authorizations.Element = AAZObjectArg() + cls._build_args_resource_provider_authorization_create(providerhub_metadata_authorizations.Element) + + lighthouse_authorizations = cls._args_schema.provider_hub_metadata.lighthouse_authorizations + lighthouse_authorizations.Element = AAZObjectArg() + + _element = cls._args_schema.provider_hub_metadata.lighthouse_authorizations.Element + _element.principal_id = AAZStrArg( + options=["principal-id"], + required=True, + ) + _element.role_definition_id = AAZStrArg( + options=["role-definition-id"], + required=True, + ) + + required_features = cls._args_schema.required_features + required_features.Element = AAZStrArg() + + resource_group_lock_option_during_move = cls._args_schema.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrArg( + options=["block-action-verb"], + help="The action verb that will be blocked when the resource group is locked during move.", + enum={"Action": "Action", "Delete": "Delete", "NotSpecified": "NotSpecified", "Read": "Read", "Unrecognized": "Unrecognized", "Write": "Write"}, + ) + + resource_hydration_accounts = cls._args_schema.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectArg() + + _element = cls._args_schema.resource_hydration_accounts.Element + _element.account_name = AAZStrArg( + options=["account-name"], + ) + _element.encrypted_key = AAZStrArg( + options=["encrypted-key"], + ) + _element.max_child_resource_consistency_job_limit = AAZIntArg( + options=["max-child-resource-consistency-job-limit"], + ) + _element.subscription_id = AAZStrArg( + options=["subscription-id"], + ) + + resource_provider_authorization_rules = cls._args_schema.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectArg( + options=["async-operation-polling-rules"], + ) + + async_operation_polling_rules = cls._args_schema.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrArg( + options=["additional-options"], + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + async_operation_polling_rules.authorization_actions = AAZListArg( + options=["authorization-actions"], + ) + + authorization_actions = cls._args_schema.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrArg() + + response_options = cls._args_schema.response_options + response_options.service_client_options_type = AAZStrArg( + options=["service-client-options-type"], + enum={"DisableAutomaticDecompression": "DisableAutomaticDecompression", "NotSpecified": "NotSpecified"}, + ) + + services = cls._args_schema.services + services.Element = AAZObjectArg() + + _element = cls._args_schema.services.Element + _element.service_name = AAZStrArg( + options=["service-name"], + help="The service name.", + ) + _element.status = AAZStrArg( + options=["status"], + enum={"Active": "Active", "Inactive": "Inactive"}, + ) + + template_deployment_options = cls._args_schema.template_deployment_options + template_deployment_options.preflight_options = AAZListArg( + options=["preflight-options"], + ) + template_deployment_options.preflight_supported = AAZBoolArg( + options=["preflight-supported"], + ) + + preflight_options = cls._args_schema.template_deployment_options.preflight_options + preflight_options.Element = AAZStrArg( + enum={"ContinueDeploymentOnFailure": "ContinueDeploymentOnFailure", "DefaultValidationOnly": "DefaultValidationOnly", "None": "None"}, + ) + + # define Arg Group "RequestHeaderOptions" + + _args_schema = cls._args_schema + _args_schema.opt_in_headers = AAZStrArg( + options=["--opt-in-headers"], + arg_group="RequestHeaderOptions", + help="The opt-in headers.", + enum={"ClientGroupMembership": "ClientGroupMembership", "ClientPrincipalNameEncoded": "ClientPrincipalNameEncoded", "MSIResourceIdEncoded": "MSIResourceIdEncoded", "ManagementGroupAncestorsEncoded": "ManagementGroupAncestorsEncoded", "NotSpecified": "NotSpecified", "PrivateLinkId": "PrivateLinkId", "PrivateLinkResourceId": "PrivateLinkResourceId", "PrivateLinkVnetTrafficTag": "PrivateLinkVnetTrafficTag", "ResourceGroupLocation": "ResourceGroupLocation", "SignedAuxiliaryTokens": "SignedAuxiliaryTokens", "SignedUserToken": "SignedUserToken", "UnboundedClientGroupMembership": "UnboundedClientGroupMembership"}, + ) + _args_schema.opt_out_headers = AAZStrArg( + options=["--opt-out-headers"], + arg_group="RequestHeaderOptions", + help="The opt-out headers.", + enum={"NotSpecified": "NotSpecified", "SystemDataCreatedByLastModifiedBy": "SystemDataCreatedByLastModifiedBy"}, + ) + + # define Arg Group "SubscriptionLifecycleNotificationSpecifications" + + _args_schema = cls._args_schema + _args_schema.soft_delete_ttl = AAZDurationArg( + options=["--soft-delete-ttl"], + arg_group="SubscriptionLifecycleNotificationSpecifications", + help="The soft delete time to live.", + ) + _args_schema.subscription_state_override_actions = AAZListArg( + options=["--override-actions", "--subscription-state-override-actions"], + arg_group="SubscriptionLifecycleNotificationSpecifications", + help="The subscription state override actions.", + ) + + subscription_state_override_actions = cls._args_schema.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectArg() + + _element = cls._args_schema.subscription_state_override_actions.Element + _element.action = AAZStrArg( + options=["action"], + required=True, + enum={"BillingCancellation": "BillingCancellation", "DeleteAllResources": "DeleteAllResources", "NoOp": "NoOp", "NotDefined": "NotDefined", "SoftDeleteAllResources": "SoftDeleteAllResources", "UndoSoftDelete": "UndoSoftDelete"}, + ) + _element.state = AAZStrArg( + options=["state"], + required=True, + enum={"Deleted": "Deleted", "Registered": "Registered", "Suspended": "Suspended", "SuspendedToDeleted": "SuspendedToDeleted", "SuspendedToRegistered": "SuspendedToRegistered", "SuspendedToUnregistered": "SuspendedToUnregistered", "SuspendedToWarned": "SuspendedToWarned", "Unregistered": "Unregistered", "Warned": "Warned", "WarnedToDeleted": "WarnedToDeleted", "WarnedToRegistered": "WarnedToRegistered", "WarnedToSuspended": "WarnedToSuspended", "WarnedToUnregistered": "WarnedToUnregistered"}, + ) + return cls._args_schema + + _args_resource_provider_authorization_create = None + + @classmethod + def _build_args_resource_provider_authorization_create(cls, _schema): + if cls._args_resource_provider_authorization_create is not None: + _schema.allowed_third_party_extensions = cls._args_resource_provider_authorization_create.allowed_third_party_extensions + _schema.application_id = cls._args_resource_provider_authorization_create.application_id + _schema.grouping_tag = cls._args_resource_provider_authorization_create.grouping_tag + _schema.managed_by_authorization = cls._args_resource_provider_authorization_create.managed_by_authorization + _schema.managed_by_role_definition_id = cls._args_resource_provider_authorization_create.managed_by_role_definition_id + _schema.role_definition_id = cls._args_resource_provider_authorization_create.role_definition_id + return + + cls._args_resource_provider_authorization_create = AAZObjectArg() + + resource_provider_authorization_create = cls._args_resource_provider_authorization_create + resource_provider_authorization_create.allowed_third_party_extensions = AAZListArg( + options=["allowed-third-party-extensions"], + ) + resource_provider_authorization_create.application_id = AAZStrArg( + options=["application-id"], + ) + resource_provider_authorization_create.grouping_tag = AAZStrArg( + options=["grouping-tag"], + ) + resource_provider_authorization_create.managed_by_authorization = AAZObjectArg( + options=["managed-by-authorization"], + help="Managed by authorization.", + ) + resource_provider_authorization_create.managed_by_role_definition_id = AAZStrArg( + options=["managed-by-role-definition-id"], + ) + resource_provider_authorization_create.role_definition_id = AAZStrArg( + options=["role-definition-id"], + ) + + allowed_third_party_extensions = cls._args_resource_provider_authorization_create.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectArg() + + _element = cls._args_resource_provider_authorization_create.allowed_third_party_extensions.Element + _element.name = AAZStrArg( + options=["name"], + help="Name of third party extension.", + ) + + managed_by_authorization = cls._args_resource_provider_authorization_create.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListArg( + options=["additional-authorizations"], + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolArg( + options=["allow-managed-by-inheritance"], + help="Indicates whether the managed by resource role definition ID should be inherited.", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrArg( + options=["managed-by-resource-role-definition-id"], + help="The managed by resource role definition ID for the application.", + ) + + additional_authorizations = cls._args_resource_provider_authorization_create.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectArg() + + _element = cls._args_resource_provider_authorization_create.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrArg( + options=["application-id"], + ) + _element.role_definition_id = AAZStrArg( + options=["role-definition-id"], + ) + + _schema.allowed_third_party_extensions = cls._args_resource_provider_authorization_create.allowed_third_party_extensions + _schema.application_id = cls._args_resource_provider_authorization_create.application_id + _schema.grouping_tag = cls._args_resource_provider_authorization_create.grouping_tag + _schema.managed_by_authorization = cls._args_resource_provider_authorization_create.managed_by_authorization + _schema.managed_by_role_definition_id = cls._args_resource_provider_authorization_create.managed_by_role_definition_id + _schema.role_definition_id = cls._args_resource_provider_authorization_create.role_definition_id + + _args_resource_provider_endpoint_create = None + + @classmethod + def _build_args_resource_provider_endpoint_create(cls, _schema): + if cls._args_resource_provider_endpoint_create is not None: + _schema.api_versions = cls._args_resource_provider_endpoint_create.api_versions + _schema.enabled = cls._args_resource_provider_endpoint_create.enabled + _schema.endpoint_type = cls._args_resource_provider_endpoint_create.endpoint_type + _schema.endpoint_uri = cls._args_resource_provider_endpoint_create.endpoint_uri + _schema.features_rule = cls._args_resource_provider_endpoint_create.features_rule + _schema.locations = cls._args_resource_provider_endpoint_create.locations + _schema.required_features = cls._args_resource_provider_endpoint_create.required_features + _schema.sku_link = cls._args_resource_provider_endpoint_create.sku_link + _schema.timeout = cls._args_resource_provider_endpoint_create.timeout + return + + cls._args_resource_provider_endpoint_create = AAZObjectArg() + + resource_provider_endpoint_create = cls._args_resource_provider_endpoint_create + resource_provider_endpoint_create.api_versions = AAZListArg( + options=["api-versions"], + ) + resource_provider_endpoint_create.enabled = AAZBoolArg( + options=["enabled"], + ) + resource_provider_endpoint_create.endpoint_type = AAZStrArg( + options=["endpoint-type"], + enum={"Canary": "Canary", "NotSpecified": "NotSpecified", "Production": "Production", "TestInProduction": "TestInProduction"}, + ) + resource_provider_endpoint_create.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + ) + resource_provider_endpoint_create.features_rule = AAZObjectArg( + options=["features-rule"], + ) + resource_provider_endpoint_create.locations = AAZListArg( + options=["locations"], + ) + resource_provider_endpoint_create.required_features = AAZListArg( + options=["required-features"], + ) + resource_provider_endpoint_create.sku_link = AAZStrArg( + options=["sku-link"], + ) + resource_provider_endpoint_create.timeout = AAZDurationArg( + options=["timeout"], + ) + + api_versions = cls._args_resource_provider_endpoint_create.api_versions + api_versions.Element = AAZStrArg() + + features_rule = cls._args_resource_provider_endpoint_create.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + required=True, + enum={"All": "All", "Any": "Any"}, + ) + + locations = cls._args_resource_provider_endpoint_create.locations + locations.Element = AAZStrArg() + + required_features = cls._args_resource_provider_endpoint_create.required_features + required_features.Element = AAZStrArg() + + _schema.api_versions = cls._args_resource_provider_endpoint_create.api_versions + _schema.enabled = cls._args_resource_provider_endpoint_create.enabled + _schema.endpoint_type = cls._args_resource_provider_endpoint_create.endpoint_type + _schema.endpoint_uri = cls._args_resource_provider_endpoint_create.endpoint_uri + _schema.features_rule = cls._args_resource_provider_endpoint_create.features_rule + _schema.locations = cls._args_resource_provider_endpoint_create.locations + _schema.required_features = cls._args_resource_provider_endpoint_create.required_features + _schema.sku_link = cls._args_resource_provider_endpoint_create.sku_link + _schema.timeout = cls._args_resource_provider_endpoint_create.timeout + + _args_token_auth_configuration_create = None + + @classmethod + def _build_args_token_auth_configuration_create(cls, _schema): + if cls._args_token_auth_configuration_create is not None: + _schema.authentication_scheme = cls._args_token_auth_configuration_create.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_create.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_create.signed_request_scope + return + + cls._args_token_auth_configuration_create = AAZObjectArg() + + token_auth_configuration_create = cls._args_token_auth_configuration_create + token_auth_configuration_create.authentication_scheme = AAZStrArg( + options=["authentication-scheme"], + enum={"Bearer": "Bearer", "PoP": "PoP"}, + ) + token_auth_configuration_create.disable_certificate_authentication_fallback = AAZBoolArg( + options=["disable-certificate-authentication-fallback"], + ) + token_auth_configuration_create.signed_request_scope = AAZStrArg( + options=["signed-request-scope"], + enum={"Endpoint": "Endpoint", "ResourceUri": "ResourceUri"}, + ) + + _schema.authentication_scheme = cls._args_token_auth_configuration_create.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_create.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_create.signed_request_scope + + def _execute_operations(self): + self.pre_operations() + yield self.ProviderRegistrationsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ProviderRegistrationsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("kind", AAZStrType, ".kind") + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("capabilities", AAZListType, ".capabilities") + properties.set_prop("crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") + properties.set_prop("customManifestVersion", AAZStrType, ".custom_manifest_version") + properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + properties.set_prop("enableTenantLinkedNotification", AAZBoolType, ".enable_tenant_linked_notification", typ_kwargs={"nullable": True}) + properties.set_prop("featuresRule", AAZObjectType) + properties.set_prop("globalNotificationEndpoints", AAZListType, ".global_notification_endpoints") + properties.set_prop("legacyNamespace", AAZStrType, ".legacy_namespace") + properties.set_prop("legacyRegistrations", AAZListType, ".legacy_registrations") + properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") + properties.set_prop("management", AAZObjectType) + properties.set_prop("managementGroupGlobalNotificationEndpoints", AAZListType, ".management_group_global_notification_endpoints") + properties.set_prop("metadata", AAZFreeFormDictType, ".metadata") + properties.set_prop("namespace", AAZStrType, ".namespace") + properties.set_prop("notificationOptions", AAZStrType, ".notification_options") + properties.set_prop("notificationSettings", AAZObjectType, ".notification_settings") + properties.set_prop("notifications", AAZListType, ".notifications") + properties.set_prop("optionalFeatures", AAZListType, ".optional_features") + properties.set_prop("privateResourceProviderConfiguration", AAZObjectType, ".private_resource_provider_configuration") + properties.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") + properties.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") + properties.set_prop("providerHubMetadata", AAZObjectType, ".provider_hub_metadata") + properties.set_prop("providerType", AAZStrType, ".provider_type") + properties.set_prop("providerVersion", AAZStrType, ".provider_version") + properties.set_prop("requestHeaderOptions", AAZObjectType) + properties.set_prop("requiredFeatures", AAZListType, ".required_features") + properties.set_prop("resourceGroupLockOptionDuringMove", AAZObjectType, ".resource_group_lock_option_during_move") + properties.set_prop("resourceHydrationAccounts", AAZListType, ".resource_hydration_accounts") + properties.set_prop("resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules") + properties.set_prop("responseOptions", AAZObjectType, ".response_options") + properties.set_prop("serviceName", AAZStrType, ".service_name") + properties.set_prop("services", AAZListType, ".services") + properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType) + properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") + _CreateHelper._build_schema_token_auth_configuration_create(properties.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + capabilities = _builder.get(".properties.capabilities") + if capabilities is not None: + capabilities.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.capabilities[]") + if _elements is not None: + _elements.set_prop("effect", AAZStrType, ".effect", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quotaId", AAZStrType, ".quota_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + required_features = _builder.get(".properties.capabilities[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + features_rule = _builder.get(".properties.featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + global_notification_endpoints = _builder.get(".properties.globalNotificationEndpoints") + if global_notification_endpoints is not None: + _CreateHelper._build_schema_resource_provider_endpoint_create(global_notification_endpoints.set_elements(AAZObjectType, ".")) + + legacy_registrations = _builder.get(".properties.legacyRegistrations") + if legacy_registrations is not None: + legacy_registrations.set_elements(AAZStrType, ".") + + linked_notification_rules = _builder.get(".properties.linkedNotificationRules") + if linked_notification_rules is not None: + linked_notification_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.linkedNotificationRules[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + _elements.set_prop("endpoints", AAZListType, ".endpoints") + _CreateHelper._build_schema_token_auth_configuration_create(_elements.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + actions = _builder.get(".properties.linkedNotificationRules[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.linkedNotificationRules[].dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + endpoints = _builder.get(".properties.linkedNotificationRules[].endpoints") + if endpoints is not None: + _CreateHelper._build_schema_resource_provider_endpoint_create(endpoints.set_elements(AAZObjectType, ".")) + + management = _builder.get(".properties.management") + if management is not None: + management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") + management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") + management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") + management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") + management.set_prop("expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") + management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") + management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") + management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") + management.set_prop("manifestOwners", AAZListType, ".manifest_owners") + management.set_prop("pcCode", AAZStrType, ".pc_code") + management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") + management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") + management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") + management.set_prop("schemaOwners", AAZListType, ".schema_owners") + management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + + authorization_owners = _builder.get(".properties.management.authorizationOwners") + if authorization_owners is not None: + authorization_owners.set_elements(AAZStrType, ".") + + canary_manifest_owners = _builder.get(".properties.management.canaryManifestOwners") + if canary_manifest_owners is not None: + canary_manifest_owners.set_elements(AAZStrType, ".") + + error_response_message_options = _builder.get(".properties.management.errorResponseMessageOptions") + if error_response_message_options is not None: + error_response_message_options.set_prop("serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") + + expedited_rollout_metadata = _builder.get(".properties.management.expeditedRolloutMetadata") + if expedited_rollout_metadata is not None: + expedited_rollout_metadata.set_prop("enabled", AAZBoolType, ".enabled") + expedited_rollout_metadata.set_prop("expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") + + expedited_rollout_submitters = _builder.get(".properties.management.expeditedRolloutSubmitters") + if expedited_rollout_submitters is not None: + expedited_rollout_submitters.set_elements(AAZStrType, ".") + + manifest_owners = _builder.get(".properties.management.manifestOwners") + if manifest_owners is not None: + manifest_owners.set_elements(AAZStrType, ".") + + resource_access_roles = _builder.get(".properties.management.resourceAccessRoles") + if resource_access_roles is not None: + resource_access_roles.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.management.resourceAccessRoles[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("allowedGroupClaims", AAZListType, ".allowed_group_claims") + + actions = _builder.get(".properties.management.resourceAccessRoles[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + allowed_group_claims = _builder.get(".properties.management.resourceAccessRoles[].allowedGroupClaims") + if allowed_group_claims is not None: + allowed_group_claims.set_elements(AAZStrType, ".") + + schema_owners = _builder.get(".properties.management.schemaOwners") + if schema_owners is not None: + schema_owners.set_elements(AAZStrType, ".") + + service_tree_infos = _builder.get(".properties.management.serviceTreeInfos") + if service_tree_infos is not None: + service_tree_infos.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.management.serviceTreeInfos[]") + if _elements is not None: + _elements.set_prop("componentId", AAZStrType, ".component_id") + _elements.set_prop("readiness", AAZStrType, ".readiness") + _elements.set_prop("serviceId", AAZStrType, ".service_id") + + management_group_global_notification_endpoints = _builder.get(".properties.managementGroupGlobalNotificationEndpoints") + if management_group_global_notification_endpoints is not None: + _CreateHelper._build_schema_resource_provider_endpoint_create(management_group_global_notification_endpoints.set_elements(AAZObjectType, ".")) + + metadata = _builder.get(".properties.metadata") + if metadata is not None: + metadata.set_anytype_elements(".") + + notification_settings = _builder.get(".properties.notificationSettings") + if notification_settings is not None: + notification_settings.set_prop("subscriberSettings", AAZListType, ".subscriber_settings") + + subscriber_settings = _builder.get(".properties.notificationSettings.subscriberSettings") + if subscriber_settings is not None: + subscriber_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.notificationSettings.subscriberSettings[]") + if _elements is not None: + _elements.set_prop("filterRules", AAZListType, ".filter_rules") + + filter_rules = _builder.get(".properties.notificationSettings.subscriberSettings[].filterRules") + if filter_rules is not None: + filter_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.notificationSettings.subscriberSettings[].filterRules[]") + if _elements is not None: + _elements.set_prop("endpointInformation", AAZListType, ".endpoint_information") + _elements.set_prop("filterQuery", AAZStrType, ".filter_query") + + endpoint_information = _builder.get(".properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation") + if endpoint_information is not None: + endpoint_information.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation[]") + if _elements is not None: + _elements.set_prop("endpoint", AAZStrType, ".endpoint") + _elements.set_prop("endpointType", AAZStrType, ".endpoint_type") + _elements.set_prop("schemaVersion", AAZStrType, ".schema_version") + + notifications = _builder.get(".properties.notifications") + if notifications is not None: + notifications.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.notifications[]") + if _elements is not None: + _elements.set_prop("notificationType", AAZStrType, ".notification_type") + _elements.set_prop("skipNotifications", AAZStrType, ".skip_notifications") + + optional_features = _builder.get(".properties.optionalFeatures") + if optional_features is not None: + optional_features.set_elements(AAZStrType, ".") + + private_resource_provider_configuration = _builder.get(".properties.privateResourceProviderConfiguration") + if private_resource_provider_configuration is not None: + private_resource_provider_configuration.set_prop("allowedSubscriptions", AAZListType, ".allowed_subscriptions") + + allowed_subscriptions = _builder.get(".properties.privateResourceProviderConfiguration.allowedSubscriptions") + if allowed_subscriptions is not None: + allowed_subscriptions.set_elements(AAZStrType, ".") + + provider_authentication = _builder.get(".properties.providerAuthentication") + if provider_authentication is not None: + provider_authentication.set_prop("allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) + + allowed_audiences = _builder.get(".properties.providerAuthentication.allowedAudiences") + if allowed_audiences is not None: + allowed_audiences.set_elements(AAZStrType, ".") + + provider_authorizations = _builder.get(".properties.providerAuthorizations") + if provider_authorizations is not None: + _CreateHelper._build_schema_resource_provider_authorization_create(provider_authorizations.set_elements(AAZObjectType, ".")) + + provider_hub_metadata = _builder.get(".properties.providerHubMetadata") + if provider_hub_metadata is not None: + provider_hub_metadata.set_prop("directRpRoleDefinitionId", AAZStrType, ".direct_rp_role_definition_id") + provider_hub_metadata.set_prop("globalAsyncOperationResourceTypeName", AAZStrType, ".global_async_operation_resource_type_name") + provider_hub_metadata.set_prop("providerAuthentication", AAZObjectType, ".providerhub_metadata_authentication") + provider_hub_metadata.set_prop("providerAuthorizations", AAZListType, ".providerhub_metadata_authorizations") + provider_hub_metadata.set_prop("regionalAsyncOperationResourceTypeName", AAZStrType, ".regional_async_operation_resource_type_name") + provider_hub_metadata.set_prop("thirdPartyProviderAuthorization", AAZObjectType) + + provider_authentication = _builder.get(".properties.providerHubMetadata.providerAuthentication") + if provider_authentication is not None: + provider_authentication.set_prop("allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) + + allowed_audiences = _builder.get(".properties.providerHubMetadata.providerAuthentication.allowedAudiences") + if allowed_audiences is not None: + allowed_audiences.set_elements(AAZStrType, ".") + + provider_authorizations = _builder.get(".properties.providerHubMetadata.providerAuthorizations") + if provider_authorizations is not None: + _CreateHelper._build_schema_resource_provider_authorization_create(provider_authorizations.set_elements(AAZObjectType, ".")) + + third_party_provider_authorization = _builder.get(".properties.providerHubMetadata.thirdPartyProviderAuthorization") + if third_party_provider_authorization is not None: + third_party_provider_authorization.set_prop("authorizations", AAZListType, ".lighthouse_authorizations") + third_party_provider_authorization.set_prop("managedByTenantId", AAZStrType, ".managed_by_tenant_id") + + authorizations = _builder.get(".properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations") + if authorizations is not None: + authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations[]") + if _elements is not None: + _elements.set_prop("principalId", AAZStrType, ".principal_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id", typ_kwargs={"flags": {"required": True}}) + + request_header_options = _builder.get(".properties.requestHeaderOptions") + if request_header_options is not None: + request_header_options.set_prop("optInHeaders", AAZStrType, ".opt_in_headers") + request_header_options.set_prop("optOutHeaders", AAZStrType, ".opt_out_headers") + + required_features = _builder.get(".properties.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + resource_group_lock_option_during_move = _builder.get(".properties.resourceGroupLockOptionDuringMove") + if resource_group_lock_option_during_move is not None: + resource_group_lock_option_during_move.set_prop("blockActionVerb", AAZStrType, ".block_action_verb") + + resource_hydration_accounts = _builder.get(".properties.resourceHydrationAccounts") + if resource_hydration_accounts is not None: + resource_hydration_accounts.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.resourceHydrationAccounts[]") + if _elements is not None: + _elements.set_prop("accountName", AAZStrType, ".account_name") + _elements.set_prop("encryptedKey", AAZStrType, ".encrypted_key") + _elements.set_prop("maxChildResourceConsistencyJobLimit", AAZIntType, ".max_child_resource_consistency_job_limit") + _elements.set_prop("subscriptionId", AAZStrType, ".subscription_id") + + resource_provider_authorization_rules = _builder.get(".properties.resourceProviderAuthorizationRules") + if resource_provider_authorization_rules is not None: + resource_provider_authorization_rules.set_prop("asyncOperationPollingRules", AAZObjectType, ".async_operation_polling_rules") + + async_operation_polling_rules = _builder.get(".properties.resourceProviderAuthorizationRules.asyncOperationPollingRules") + if async_operation_polling_rules is not None: + async_operation_polling_rules.set_prop("additionalOptions", AAZStrType, ".additional_options") + async_operation_polling_rules.set_prop("authorizationActions", AAZListType, ".authorization_actions") + + authorization_actions = _builder.get(".properties.resourceProviderAuthorizationRules.asyncOperationPollingRules.authorizationActions") + if authorization_actions is not None: + authorization_actions.set_elements(AAZStrType, ".") + + response_options = _builder.get(".properties.responseOptions") + if response_options is not None: + response_options.set_prop("serviceClientOptionsType", AAZStrType, ".service_client_options_type") + + services = _builder.get(".properties.services") + if services is not None: + services.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.services[]") + if _elements is not None: + _elements.set_prop("serviceName", AAZStrType, ".service_name") + _elements.set_prop("status", AAZStrType, ".status") + + subscription_lifecycle_notification_specifications = _builder.get(".properties.subscriptionLifecycleNotificationSpecifications") + if subscription_lifecycle_notification_specifications is not None: + subscription_lifecycle_notification_specifications.set_prop("softDeleteTTL", AAZStrType, ".soft_delete_ttl") + subscription_lifecycle_notification_specifications.set_prop("subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") + + subscription_state_override_actions = _builder.get(".properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") + if subscription_state_override_actions is not None: + subscription_state_override_actions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("state", AAZStrType, ".state", typ_kwargs={"flags": {"required": True}}) + + template_deployment_options = _builder.get(".properties.templateDeploymentOptions") + if template_deployment_options is not None: + template_deployment_options.set_prop("preflightOptions", AAZListType, ".preflight_options") + template_deployment_options.set_prop("preflightSupported", AAZBoolType, ".preflight_supported") + + preflight_options = _builder.get(".properties.templateDeploymentOptions.preflightOptions") + if preflight_options is not None: + preflight_options.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.kind = AAZStrType() + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType() + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _CreateHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = cls._schema_on_200_201.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200_201.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200_201.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = cls._schema_on_200_201.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = cls._schema_on_200_201.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = cls._schema_on_200_201.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = cls._schema_on_200_201.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _CreateHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = cls._schema_on_200_201.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200_201.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200_201.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = cls._schema_on_200_201.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200_201.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200_201.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200_201.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200_201.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200_201.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200_201.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200_201.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.management.resource_access_roles.Element + _element.actions = AAZListType() + _element.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = cls._schema_on_200_201.properties.management.resource_access_roles.Element.actions + actions.Element = AAZStrType() + + allowed_group_claims = cls._schema_on_200_201.properties.management.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + schema_owners = cls._schema_on_200_201.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200_201.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.management.service_tree_infos.Element + _element.component_id = AAZStrType( + serialized_name="componentId", + ) + _element.readiness = AAZStrType() + _element.service_id = AAZStrType( + serialized_name="serviceId", + ) + + management_group_global_notification_endpoints = cls._schema_on_200_201.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = cls._schema_on_200_201.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = cls._schema_on_200_201.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = cls._schema_on_200_201.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = cls._schema_on_200_201.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + notifications = cls._schema_on_200_201.properties.notifications + notifications.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.notifications.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + optional_features = cls._schema_on_200_201.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = cls._schema_on_200_201.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = cls._schema_on_200_201.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = cls._schema_on_200_201.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200_201.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200_201.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = cls._schema_on_200_201.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = cls._schema_on_200_201.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200_201.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200_201.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _CreateHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = cls._schema_on_200_201.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = cls._schema_on_200_201.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = cls._schema_on_200_201.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200_201.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = cls._schema_on_200_201.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = cls._schema_on_200_201.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + resource_provider_authorization_rules = cls._schema_on_200_201.properties.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = cls._schema_on_200_201.properties.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = cls._schema_on_200_201.properties.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + response_options = cls._schema_on_200_201.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = cls._schema_on_200_201.properties.services + services.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = cls._schema_on_200_201.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200_201.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.state = AAZStrType( + flags={"required": True}, + ) + + template_deployment_options = cls._schema_on_200_201.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200_201.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200_201 + + +class _CreateHelper: + """Helper class for Create""" + + @classmethod + def _build_schema_resource_provider_authorization_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("allowedThirdPartyExtensions", AAZListType, ".allowed_third_party_extensions") + _builder.set_prop("applicationId", AAZStrType, ".application_id") + _builder.set_prop("groupingTag", AAZStrType, ".grouping_tag") + _builder.set_prop("managedByAuthorization", AAZObjectType, ".managed_by_authorization") + _builder.set_prop("managedByRoleDefinitionId", AAZStrType, ".managed_by_role_definition_id") + _builder.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + allowed_third_party_extensions = _builder.get(".allowedThirdPartyExtensions") + if allowed_third_party_extensions is not None: + allowed_third_party_extensions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".allowedThirdPartyExtensions[]") + if _elements is not None: + _elements.set_prop("name", AAZStrType, ".name") + + managed_by_authorization = _builder.get(".managedByAuthorization") + if managed_by_authorization is not None: + managed_by_authorization.set_prop("additionalAuthorizations", AAZListType, ".additional_authorizations") + managed_by_authorization.set_prop("allowManagedByInheritance", AAZBoolType, ".allow_managed_by_inheritance") + managed_by_authorization.set_prop("managedByResourceRoleDefinitionId", AAZStrType, ".managed_by_resource_role_definition_id") + + additional_authorizations = _builder.get(".managedByAuthorization.additionalAuthorizations") + if additional_authorizations is not None: + additional_authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".managedByAuthorization.additionalAuthorizations[]") + if _elements is not None: + _elements.set_prop("applicationId", AAZStrType, ".application_id") + _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + @classmethod + def _build_schema_resource_provider_endpoint_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("apiVersions", AAZListType, ".api_versions") + _builder.set_prop("enabled", AAZBoolType, ".enabled") + _builder.set_prop("endpointType", AAZStrType, ".endpoint_type") + _builder.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _builder.set_prop("featuresRule", AAZObjectType, ".features_rule") + _builder.set_prop("locations", AAZListType, ".locations") + _builder.set_prop("requiredFeatures", AAZListType, ".required_features") + _builder.set_prop("skuLink", AAZStrType, ".sku_link") + _builder.set_prop("timeout", AAZStrType, ".timeout") + + api_versions = _builder.get(".apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + locations = _builder.get(".locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_token_auth_configuration_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("authenticationScheme", AAZStrType, ".authentication_scheme") + _builder.set_prop("disableCertificateAuthenticationFallback", AAZBoolType, ".disable_certificate_authentication_fallback") + _builder.set_prop("signedRequestScope", AAZStrType, ".signed_request_scope") + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Create"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_delete.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_delete.py new file mode 100644 index 00000000000..0912d13cf1f --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_delete.py @@ -0,0 +1,132 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub provider-registration delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a provider registration. + + :example: provider-registration delete + az providerhub provider-registration delete -y --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["-n", "--name", "--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ProviderRegistrationsDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class ProviderRegistrationsDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_generate_operation.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_generate_operation.py new file mode 100644 index 00000000000..246cc74804c --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_generate_operation.py @@ -0,0 +1,199 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub provider-registration generate-operation", +) +class GenerateOperation(AAZCommand): + """Generates the operations api for the given provider. + + :example: provider-registration generate-operation + az providerhub provider-registration generate-operation --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/generateoperations", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ProviderRegistrationsGenerateOperations(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ProviderRegistrationsGenerateOperations(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/generateOperations", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.contents = AAZListType() + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + contents = cls._schema_on_200.contents + contents.Element = AAZObjectType() + + _element = cls._schema_on_200.contents.Element + _element.action_type = AAZStrType( + serialized_name="actionType", + ) + _element.display = AAZObjectType( + flags={"required": True}, + ) + _element.is_data_action = AAZBoolType( + serialized_name="isDataAction", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.origin = AAZStrType() + + display = cls._schema_on_200.contents.Element.display + display.description = AAZStrType( + flags={"required": True}, + ) + display.operation = AAZStrType( + flags={"required": True}, + ) + display.provider = AAZStrType( + flags={"required": True}, + ) + display.resource = AAZStrType( + flags={"required": True}, + ) + + return cls._schema_on_200 + + +class _GenerateOperationHelper: + """Helper class for GenerateOperation""" + + +__all__ = ["GenerateOperation"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_list.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_list.py new file mode 100644 index 00000000000..745dcfdb895 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_list.py @@ -0,0 +1,845 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub provider-registration list", +) +class List(AAZCommand): + """List the list of the provider registrations in the subscription. + + :example: provider-registration list + az providerhub provider-registration list + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_PAGINATION = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ProviderRegistrationsList(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class ProviderRegistrationsList(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.kind = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ListHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = cls._schema_on_200.value.Element.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.value.Element.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.value.Element.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = cls._schema_on_200.value.Element.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = cls._schema_on_200.value.Element.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = cls._schema_on_200.value.Element.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = cls._schema_on_200.value.Element.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ListHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = cls._schema_on_200.value.Element.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.value.Element.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.value.Element.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = cls._schema_on_200.value.Element.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.value.Element.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.value.Element.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.value.Element.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.value.Element.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.value.Element.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.value.Element.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.value.Element.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.management.resource_access_roles.Element + _element.actions = AAZListType() + _element.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = cls._schema_on_200.value.Element.properties.management.resource_access_roles.Element.actions + actions.Element = AAZStrType() + + allowed_group_claims = cls._schema_on_200.value.Element.properties.management.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + schema_owners = cls._schema_on_200.value.Element.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.value.Element.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.management.service_tree_infos.Element + _element.component_id = AAZStrType( + serialized_name="componentId", + ) + _element.readiness = AAZStrType() + _element.service_id = AAZStrType( + serialized_name="serviceId", + ) + + management_group_global_notification_endpoints = cls._schema_on_200.value.Element.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = cls._schema_on_200.value.Element.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = cls._schema_on_200.value.Element.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = cls._schema_on_200.value.Element.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = cls._schema_on_200.value.Element.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + notifications = cls._schema_on_200.value.Element.properties.notifications + notifications.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.notifications.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + optional_features = cls._schema_on_200.value.Element.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = cls._schema_on_200.value.Element.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = cls._schema_on_200.value.Element.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = cls._schema_on_200.value.Element.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.value.Element.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.value.Element.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = cls._schema_on_200.value.Element.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = cls._schema_on_200.value.Element.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.value.Element.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.value.Element.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _ListHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = cls._schema_on_200.value.Element.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = cls._schema_on_200.value.Element.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = cls._schema_on_200.value.Element.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.value.Element.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = cls._schema_on_200.value.Element.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = cls._schema_on_200.value.Element.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + resource_provider_authorization_rules = cls._schema_on_200.value.Element.properties.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = cls._schema_on_200.value.Element.properties.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = cls._schema_on_200.value.Element.properties.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + response_options = cls._schema_on_200.value.Element.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = cls._schema_on_200.value.Element.properties.services + services.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = cls._schema_on_200.value.Element.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.value.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.state = AAZStrType( + flags={"required": True}, + ) + + template_deployment_options = cls._schema_on_200.value.Element.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.value.Element.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["List"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_show.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_show.py new file mode 100644 index 00000000000..522ff5e7893 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_show.py @@ -0,0 +1,846 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub provider-registration show", +) +class Show(AAZCommand): + """Get the provider registration details. + + :example: provider-registration show + az providerhub provider-registration show --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["-n", "--name", "--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ProviderRegistrationsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ProviderRegistrationsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.kind = AAZStrType() + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ShowHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = cls._schema_on_200.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = cls._schema_on_200.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = cls._schema_on_200.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = cls._schema_on_200.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = cls._schema_on_200.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ShowHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = cls._schema_on_200.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = cls._schema_on_200.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.management.resource_access_roles.Element + _element.actions = AAZListType() + _element.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = cls._schema_on_200.properties.management.resource_access_roles.Element.actions + actions.Element = AAZStrType() + + allowed_group_claims = cls._schema_on_200.properties.management.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + schema_owners = cls._schema_on_200.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.management.service_tree_infos.Element + _element.component_id = AAZStrType( + serialized_name="componentId", + ) + _element.readiness = AAZStrType() + _element.service_id = AAZStrType( + serialized_name="serviceId", + ) + + management_group_global_notification_endpoints = cls._schema_on_200.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = cls._schema_on_200.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = cls._schema_on_200.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = cls._schema_on_200.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = cls._schema_on_200.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + notifications = cls._schema_on_200.properties.notifications + notifications.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.notifications.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + optional_features = cls._schema_on_200.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = cls._schema_on_200.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = cls._schema_on_200.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = cls._schema_on_200.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = cls._schema_on_200.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = cls._schema_on_200.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _ShowHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = cls._schema_on_200.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = cls._schema_on_200.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = cls._schema_on_200.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = cls._schema_on_200.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = cls._schema_on_200.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + resource_provider_authorization_rules = cls._schema_on_200.properties.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = cls._schema_on_200.properties.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = cls._schema_on_200.properties.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + response_options = cls._schema_on_200.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = cls._schema_on_200.properties.services + services.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.state = AAZStrType( + flags={"required": True}, + ) + + template_deployment_options = cls._schema_on_200.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Show"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_update.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_update.py new file mode 100644 index 00000000000..7db30706d81 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_update.py @@ -0,0 +1,2463 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub provider-registration update", +) +class Update(AAZCommand): + """Update the provider registration. + + :example: provider-registration update + az providerhub provider-registration update --token-auth-configuration authentication-scheme="PoP" signed-request-scope="ResourceUri" --service-tree-infos service-id="d1b7d8ba-05e2-48e6-90d6-d781b99c6e69" component-id="d1b7d8ba-05e2-48e6-90d6-d781b99c6e69" --capabilities effect="Allow" quota-id="CSP_2015-05-01" --capabilities effect="Allow" quota-id="CSP_MG_2017-12-01" --manifest-owners "SPARTA-PlatformServiceAdministrator" --incident-contact-email "rpaascore@microsoft.com" --incident-routing-service "Resource Provider Service as a Service" --incident-routing-team "RPaaS" --provider-version "2.0" --provider-namespace "{providerNamespace}" --metadata "BypassManifestValidation":true + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["-n", "--name", "--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + + # define Arg Group "FeaturesRule" + + _args_schema = cls._args_schema + _args_schema.required_features_policy = AAZStrArg( + options=["--req-features-policy", "--required-features-policy"], + arg_group="FeaturesRule", + help="The accepted values are \"Any\" or \"All\".", + enum={"All": "All", "Any": "Any"}, + ) + + # define Arg Group "Management" + + _args_schema = cls._args_schema + _args_schema.authorization_owners = AAZListArg( + options=["--authorization-owners"], + arg_group="Management", + help="The authorization owners.", + nullable=True, + ) + _args_schema.canary_manifest_owners = AAZListArg( + options=["--canary-manifest-owners"], + arg_group="Management", + help="List of manifest owners for canary.", + nullable=True, + ) + _args_schema.error_response_message_options = AAZObjectArg( + options=["--message-options", "--error-response-message-options"], + arg_group="Management", + help="Options for error response messages.", + nullable=True, + ) + _args_schema.expedited_rollout_metadata = AAZObjectArg( + options=["--rollout-metadata", "--expedited-rollout-metadata"], + arg_group="Management", + help="Metadata for expedited rollout.", + nullable=True, + ) + _args_schema.expedited_rollout_submitters = AAZListArg( + options=["--rollout-submitters", "--expedited-rollout-submitters"], + arg_group="Management", + help="List of expedited rollout submitters.", + nullable=True, + ) + _args_schema.incident_contact_email = AAZStrArg( + options=["--incident-contact-email"], + arg_group="Management", + help="The email address of contacts for incidents related to the RP.", + nullable=True, + ) + _args_schema.incident_routing_service = AAZStrArg( + options=["--incident-service", "--incident-routing-service"], + arg_group="Management", + help="The service in IcM when creating or transferring incidents to the RP.", + nullable=True, + ) + _args_schema.incident_routing_team = AAZStrArg( + options=["--incident-team", "--incident-routing-team"], + arg_group="Management", + help="The team in IcM when creating or transferring incidents to the RP.", + nullable=True, + ) + _args_schema.manifest_owners = AAZListArg( + options=["--manifest-owners"], + singular_options=["--manifest-owner"], + arg_group="Management", + help="Specifies an array of required ACIS claims to modify the resource provider's manifest content via ACIS.", + nullable=True, + ) + _args_schema.pc_code = AAZStrArg( + options=["--pc-code"], + arg_group="Management", + help="The profit center code for the subscription.", + nullable=True, + ) + _args_schema.profit_center_program_id = AAZStrArg( + options=["--pc-program-id", "--profit-center-program-id"], + arg_group="Management", + help="The profit center program id for the subscription.", + nullable=True, + ) + _args_schema.resource_access_policy = AAZStrArg( + options=["--resource-access-policy"], + arg_group="Management", + help="The resource access policy.", + nullable=True, + enum={"AcisActionAllowed": "AcisActionAllowed", "AcisReadAllowed": "AcisReadAllowed", "NotSpecified": "NotSpecified"}, + ) + _args_schema.resource_access_roles = AAZListArg( + options=["--resource-access-roles"], + arg_group="Management", + help="The resource access roles.", + nullable=True, + ) + _args_schema.schema_owners = AAZListArg( + options=["--schema-owners"], + singular_options=["--schema-owner", "--schema-owners"], + arg_group="Management", + help="Specifies an array of needed ACIS claims to modify the resource provider schema via ACIS.", + nullable=True, + ) + _args_schema.service_tree_infos = AAZListArg( + options=["--service-tree-infos"], + singular_options=["--service-tree-info", "--service-tree-infos"], + arg_group="Management", + help="The ServiceTree information for the resource provider.", + nullable=True, + ) + + authorization_owners = cls._args_schema.authorization_owners + authorization_owners.Element = AAZStrArg( + nullable=True, + ) + + canary_manifest_owners = cls._args_schema.canary_manifest_owners + canary_manifest_owners.Element = AAZStrArg( + nullable=True, + ) + + error_response_message_options = cls._args_schema.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrArg( + options=["server-failure-response-message-type"], + help="Type of server failure response message.", + nullable=True, + enum={"NotSpecified": "NotSpecified", "OutageReporting": "OutageReporting"}, + ) + + expedited_rollout_metadata = cls._args_schema.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolArg( + options=["enabled"], + help="Expedited rollout enabled?", + nullable=True, + ) + expedited_rollout_metadata.expedited_rollout_intent = AAZStrArg( + options=["expedited-rollout-intent"], + help="Expedited rollout intent.", + nullable=True, + enum={"Hotfix": "Hotfix", "NotSpecified": "NotSpecified"}, + ) + + expedited_rollout_submitters = cls._args_schema.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrArg( + nullable=True, + ) + + manifest_owners = cls._args_schema.manifest_owners + manifest_owners.Element = AAZStrArg( + nullable=True, + ) + + resource_access_roles = cls._args_schema.resource_access_roles + resource_access_roles.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_access_roles.Element + _element.actions = AAZListArg( + options=["actions"], + nullable=True, + ) + _element.allowed_group_claims = AAZListArg( + options=["allowed-group-claims"], + nullable=True, + ) + + actions = cls._args_schema.resource_access_roles.Element.actions + actions.Element = AAZStrArg( + nullable=True, + ) + + allowed_group_claims = cls._args_schema.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrArg( + nullable=True, + ) + + schema_owners = cls._args_schema.schema_owners + schema_owners.Element = AAZStrArg( + nullable=True, + ) + + service_tree_infos = cls._args_schema.service_tree_infos + service_tree_infos.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.service_tree_infos.Element + _element.component_id = AAZStrArg( + options=["component-id"], + nullable=True, + ) + _element.readiness = AAZStrArg( + options=["readiness"], + nullable=True, + enum={"ClosingDown": "ClosingDown", "Deprecated": "Deprecated", "GA": "GA", "InDevelopment": "InDevelopment", "InternalOnly": "InternalOnly", "PrivatePreview": "PrivatePreview", "PublicPreview": "PublicPreview", "RemovedFromARM": "RemovedFromARM", "Retired": "Retired"}, + ) + _element.service_id = AAZStrArg( + options=["service-id"], + nullable=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.kind = AAZStrArg( + options=["--kind"], + arg_group="Properties", + help="Provider registration kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + nullable=True, + enum={"Direct": "Direct", "Hybrid": "Hybrid", "Managed": "Managed"}, + ) + _args_schema.capabilities = AAZListArg( + options=["--capabilities"], + singular_options=["--capability", "--capabilities"], + arg_group="Properties", + help="This allows a restrictive subscription type to have access to register and use the Resource Provider.", + nullable=True, + ) + _args_schema.cross_tenant_token_validation = AAZStrArg( + options=["--token-validation", "--cross-tenant-token-validation"], + arg_group="Properties", + help="The cross tenant token validation.", + nullable=True, + enum={"EnsureSecureValidation": "EnsureSecureValidation", "PassthroughInsecureToken": "PassthroughInsecureToken"}, + ) + _args_schema.custom_manifest_version = AAZStrArg( + options=["--custom-manifest-vers", "--custom-manifest-version"], + arg_group="Properties", + help="Custom manifest version.", + nullable=True, + ) + _args_schema.dsts_configuration = AAZObjectArg( + options=["--dsts-configuration"], + arg_group="Properties", + help="The DSTS configuration.", + nullable=True, + ) + _args_schema.enable_tenant_linked_notification = AAZBoolArg( + options=["--enable-linked-notif", "--enable-tenant-linked-notification"], + arg_group="Properties", + help="The enable tenant linked notification.", + nullable=True, + ) + _args_schema.global_notification_endpoints = AAZListArg( + options=["--global-notif-endpoints", "--global-notification-endpoints"], + arg_group="Properties", + help="The global notification endpoints.", + nullable=True, + ) + _args_schema.legacy_namespace = AAZStrArg( + options=["--legacy-namespace"], + arg_group="Properties", + help="Legacy namespace.", + nullable=True, + ) + _args_schema.legacy_registrations = AAZListArg( + options=["--legacy-registrations"], + arg_group="Properties", + help="Legacy registrations.", + nullable=True, + ) + _args_schema.linked_notification_rules = AAZListArg( + options=["--linked-notif-rules", "--linked-notification-rules"], + arg_group="Properties", + help="The linked notification rules.", + nullable=True, + ) + _args_schema.management_group_global_notification_endpoints = AAZListArg( + options=["--mg-notif-endpoints", "--management-group-global-notification-endpoints"], + arg_group="Properties", + help="Management groups global notification endpoints.", + nullable=True, + ) + _args_schema.metadata = AAZFreeFormDictArg( + options=["--metadata"], + arg_group="Properties", + help="The metadata.", + nullable=True, + blank={}, + ) + _args_schema.namespace = AAZStrArg( + options=["--namespace"], + arg_group="Properties", + help="The name of the resource provider hosted within ProviderHub.", + nullable=True, + ) + _args_schema.notification_options = AAZStrArg( + options=["--notification-options"], + arg_group="Properties", + help="Notification options.", + nullable=True, + enum={"EmitSpendingLimit": "EmitSpendingLimit", "None": "None", "NotSpecified": "NotSpecified"}, + ) + _args_schema.notification_settings = AAZObjectArg( + options=["--notification-settings"], + arg_group="Properties", + help="Notification settings.", + nullable=True, + ) + _args_schema.notifications = AAZListArg( + options=["--notifications"], + arg_group="Properties", + help="The notifications object.", + nullable=True, + ) + _args_schema.optional_features = AAZListArg( + options=["--optional-features"], + arg_group="Properties", + help="Optional features.", + nullable=True, + ) + _args_schema.private_resource_provider_configuration = AAZObjectArg( + options=["--private-rp-config", "--private-resource-provider-configuration"], + arg_group="Properties", + help="The private resource provider configuration.", + nullable=True, + ) + _args_schema.provider_authentication = AAZObjectArg( + options=["--provider-authn", "--provider-authentication"], + arg_group="Properties", + help="Used to set alternative audiences or resources that ARM should accept from the token while authenticating requests for the provider.", + nullable=True, + ) + _args_schema.provider_authorizations = AAZListArg( + options=["--provider-authorizations"], + singular_options=["--provider-auth", "--provider-authz", "--provider-authorizations"], + arg_group="Properties", + help="The resource provider authorizations.", + nullable=True, + ) + _args_schema.provider_hub_metadata = AAZObjectArg( + options=["--provider-hub-metadata"], + arg_group="Properties", + help="The ProviderHub metadata.", + nullable=True, + ) + _args_schema.provider_type = AAZStrArg( + options=["--provider-type"], + arg_group="Properties", + help="The provider type.", + nullable=True, + enum={"AuthorizationFree": "AuthorizationFree", "External": "External", "Hidden": "Hidden", "Internal": "Internal", "LegacyRegistrationRequired": "LegacyRegistrationRequired", "NotSpecified": "NotSpecified", "RegistrationFree": "RegistrationFree", "TenantOnly": "TenantOnly"}, + ) + _args_schema.provider_version = AAZStrArg( + options=["--provider-version"], + arg_group="Properties", + help="The provider version.", + nullable=True, + ) + _args_schema.required_features = AAZListArg( + options=["--required-features"], + arg_group="Properties", + help="The required features.", + nullable=True, + ) + _args_schema.resource_group_lock_option_during_move = AAZObjectArg( + options=["--rg-lock-option", "--resource-group-lock-option-during-move"], + arg_group="Properties", + help="Resource group lock option during move.", + nullable=True, + ) + _args_schema.resource_hydration_accounts = AAZListArg( + options=["--resc-hydration-accts", "--resource-hydration-accounts"], + arg_group="Properties", + help="resource hydration accounts", + nullable=True, + ) + _args_schema.resource_provider_authorization_rules = AAZObjectArg( + options=["--rp-auth-rules", "--resource-provider-authorization-rules"], + arg_group="Properties", + help="The resource provider authorization rules.", + nullable=True, + ) + _args_schema.response_options = AAZObjectArg( + options=["--response-options"], + arg_group="Properties", + help="Response options.", + nullable=True, + ) + _args_schema.service_name = AAZStrArg( + options=["--service-name"], + arg_group="Properties", + help="The service name.", + nullable=True, + ) + _args_schema.services = AAZListArg( + options=["--services"], + arg_group="Properties", + help="The services.", + nullable=True, + ) + _args_schema.template_deployment_options = AAZObjectArg( + options=["--tmplt-deploy-opt", "--template-deployment-options"], + arg_group="Properties", + help="The template deployment options.", + nullable=True, + ) + _args_schema.token_auth_configuration = AAZObjectArg( + options=["--token-auth-config", "--token-auth-configuration"], + arg_group="Properties", + help="The token auth configuration.", + nullable=True, + ) + cls._build_args_token_auth_configuration_update(_args_schema.token_auth_configuration) + + capabilities = cls._args_schema.capabilities + capabilities.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.capabilities.Element + _element.effect = AAZStrArg( + options=["effect"], + enum={"Allow": "Allow", "Disallow": "Disallow", "NotSpecified": "NotSpecified"}, + ) + _element.quota_id = AAZStrArg( + options=["quota-id"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + + required_features = cls._args_schema.capabilities.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + dsts_configuration = cls._args_schema.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + nullable=True, + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + ) + + global_notification_endpoints = cls._args_schema.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_endpoint_update(global_notification_endpoints.Element) + + legacy_registrations = cls._args_schema.legacy_registrations + legacy_registrations.Element = AAZStrArg( + nullable=True, + ) + + linked_notification_rules = cls._args_schema.linked_notification_rules + linked_notification_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.linked_notification_rules.Element + _element.actions = AAZListArg( + options=["actions"], + nullable=True, + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + nullable=True, + ) + _element.endpoints = AAZListArg( + options=["endpoints"], + nullable=True, + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + nullable=True, + ) + cls._build_args_token_auth_configuration_update(_element.token_auth_configuration) + + actions = cls._args_schema.linked_notification_rules.Element.actions + actions.Element = AAZStrArg( + nullable=True, + ) + + dsts_configuration = cls._args_schema.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + nullable=True, + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + ) + + endpoints = cls._args_schema.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_endpoint_update(endpoints.Element) + + management_group_global_notification_endpoints = cls._args_schema.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_endpoint_update(management_group_global_notification_endpoints.Element) + + notification_settings = cls._args_schema.notification_settings + notification_settings.subscriber_settings = AAZListArg( + options=["subscriber-settings"], + nullable=True, + ) + + subscriber_settings = cls._args_schema.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListArg( + options=["filter-rules"], + nullable=True, + ) + + filter_rules = cls._args_schema.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListArg( + options=["endpoint-information"], + nullable=True, + ) + _element.filter_query = AAZStrArg( + options=["filter-query"], + nullable=True, + ) + + endpoint_information = cls._args_schema.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrArg( + options=["endpoint"], + nullable=True, + ) + _element.endpoint_type = AAZStrArg( + options=["endpoint-type"], + nullable=True, + enum={"Eventhub": "Eventhub", "Webhook": "Webhook"}, + ) + _element.schema_version = AAZStrArg( + options=["schema-version"], + nullable=True, + ) + + notifications = cls._args_schema.notifications + notifications.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.notifications.Element + _element.notification_type = AAZStrArg( + options=["notification-type"], + nullable=True, + enum={"SubscriptionNotification": "SubscriptionNotification", "Unspecified": "Unspecified"}, + ) + _element.skip_notifications = AAZStrArg( + options=["skip-notifications"], + nullable=True, + enum={"Disabled": "Disabled", "Enabled": "Enabled", "Unspecified": "Unspecified"}, + ) + + optional_features = cls._args_schema.optional_features + optional_features.Element = AAZStrArg( + nullable=True, + ) + + private_resource_provider_configuration = cls._args_schema.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListArg( + options=["allowed-subscriptions"], + nullable=True, + ) + + allowed_subscriptions = cls._args_schema.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrArg( + nullable=True, + ) + + provider_authentication = cls._args_schema.provider_authentication + provider_authentication.allowed_audiences = AAZListArg( + options=["allowed-audiences"], + ) + + allowed_audiences = cls._args_schema.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrArg( + nullable=True, + ) + + provider_authorizations = cls._args_schema.provider_authorizations + provider_authorizations.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_authorization_update(provider_authorizations.Element) + + provider_hub_metadata = cls._args_schema.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrArg( + options=["direct-rp-role-definition-id"], + nullable=True, + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrArg( + options=["global-async-operation-resource-type-name"], + nullable=True, + ) + provider_hub_metadata.provider_authentication = AAZObjectArg( + options=["provider-authentication"], + nullable=True, + ) + provider_hub_metadata.provider_authorizations = AAZListArg( + options=["provider-authorizations"], + nullable=True, + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrArg( + options=["regional-async-operation-resource-type-name"], + nullable=True, + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectArg( + options=["third-party-provider-authorization"], + nullable=True, + ) + + provider_authentication = cls._args_schema.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListArg( + options=["allowed-audiences"], + ) + + allowed_audiences = cls._args_schema.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrArg( + nullable=True, + ) + + provider_authorizations = cls._args_schema.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_resource_provider_authorization_update(provider_authorizations.Element) + + third_party_provider_authorization = cls._args_schema.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListArg( + options=["authorizations"], + nullable=True, + ) + third_party_provider_authorization.managed_by_tenant_id = AAZStrArg( + options=["managed-by-tenant-id"], + help="The managed by tenant ID.", + nullable=True, + ) + + authorizations = cls._args_schema.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrArg( + options=["principal-id"], + ) + _element.role_definition_id = AAZStrArg( + options=["role-definition-id"], + ) + + required_features = cls._args_schema.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + resource_group_lock_option_during_move = cls._args_schema.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrArg( + options=["block-action-verb"], + help="The action verb that will be blocked when the resource group is locked during move.", + nullable=True, + enum={"Action": "Action", "Delete": "Delete", "NotSpecified": "NotSpecified", "Read": "Read", "Unrecognized": "Unrecognized", "Write": "Write"}, + ) + + resource_hydration_accounts = cls._args_schema.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_hydration_accounts.Element + _element.account_name = AAZStrArg( + options=["account-name"], + nullable=True, + ) + _element.encrypted_key = AAZStrArg( + options=["encrypted-key"], + nullable=True, + ) + _element.max_child_resource_consistency_job_limit = AAZIntArg( + options=["max-child-resource-consistency-job-limit"], + nullable=True, + ) + _element.subscription_id = AAZStrArg( + options=["subscription-id"], + nullable=True, + ) + + resource_provider_authorization_rules = cls._args_schema.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectArg( + options=["async-operation-polling-rules"], + nullable=True, + ) + + async_operation_polling_rules = cls._args_schema.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrArg( + options=["additional-options"], + nullable=True, + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + async_operation_polling_rules.authorization_actions = AAZListArg( + options=["authorization-actions"], + nullable=True, + ) + + authorization_actions = cls._args_schema.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrArg( + nullable=True, + ) + + response_options = cls._args_schema.response_options + response_options.service_client_options_type = AAZStrArg( + options=["service-client-options-type"], + nullable=True, + enum={"DisableAutomaticDecompression": "DisableAutomaticDecompression", "NotSpecified": "NotSpecified"}, + ) + + services = cls._args_schema.services + services.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.services.Element + _element.service_name = AAZStrArg( + options=["service-name"], + help="The service name.", + nullable=True, + ) + _element.status = AAZStrArg( + options=["status"], + nullable=True, + enum={"Active": "Active", "Inactive": "Inactive"}, + ) + + template_deployment_options = cls._args_schema.template_deployment_options + template_deployment_options.preflight_options = AAZListArg( + options=["preflight-options"], + nullable=True, + ) + template_deployment_options.preflight_supported = AAZBoolArg( + options=["preflight-supported"], + nullable=True, + ) + + preflight_options = cls._args_schema.template_deployment_options.preflight_options + preflight_options.Element = AAZStrArg( + nullable=True, + enum={"ContinueDeploymentOnFailure": "ContinueDeploymentOnFailure", "DefaultValidationOnly": "DefaultValidationOnly", "None": "None"}, + ) + + # define Arg Group "RequestHeaderOptions" + + _args_schema = cls._args_schema + _args_schema.opt_in_headers = AAZStrArg( + options=["--opt-in-headers"], + arg_group="RequestHeaderOptions", + help="The opt-in headers.", + nullable=True, + enum={"ClientGroupMembership": "ClientGroupMembership", "ClientPrincipalNameEncoded": "ClientPrincipalNameEncoded", "MSIResourceIdEncoded": "MSIResourceIdEncoded", "ManagementGroupAncestorsEncoded": "ManagementGroupAncestorsEncoded", "NotSpecified": "NotSpecified", "PrivateLinkId": "PrivateLinkId", "PrivateLinkResourceId": "PrivateLinkResourceId", "PrivateLinkVnetTrafficTag": "PrivateLinkVnetTrafficTag", "ResourceGroupLocation": "ResourceGroupLocation", "SignedAuxiliaryTokens": "SignedAuxiliaryTokens", "SignedUserToken": "SignedUserToken", "UnboundedClientGroupMembership": "UnboundedClientGroupMembership"}, + ) + _args_schema.opt_out_headers = AAZStrArg( + options=["--opt-out-headers"], + arg_group="RequestHeaderOptions", + help="The opt-out headers.", + nullable=True, + enum={"NotSpecified": "NotSpecified", "SystemDataCreatedByLastModifiedBy": "SystemDataCreatedByLastModifiedBy"}, + ) + + # define Arg Group "SubscriptionLifecycleNotificationSpecifications" + + _args_schema = cls._args_schema + _args_schema.soft_delete_ttl = AAZDurationArg( + options=["--soft-delete-ttl"], + arg_group="SubscriptionLifecycleNotificationSpecifications", + help="The soft delete time to live.", + nullable=True, + ) + _args_schema.subscription_state_override_actions = AAZListArg( + options=["--override-actions", "--subscription-state-override-actions"], + arg_group="SubscriptionLifecycleNotificationSpecifications", + help="The subscription state override actions.", + nullable=True, + ) + + subscription_state_override_actions = cls._args_schema.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.subscription_state_override_actions.Element + _element.action = AAZStrArg( + options=["action"], + enum={"BillingCancellation": "BillingCancellation", "DeleteAllResources": "DeleteAllResources", "NoOp": "NoOp", "NotDefined": "NotDefined", "SoftDeleteAllResources": "SoftDeleteAllResources", "UndoSoftDelete": "UndoSoftDelete"}, + ) + _element.state = AAZStrArg( + options=["state"], + enum={"Deleted": "Deleted", "Registered": "Registered", "Suspended": "Suspended", "SuspendedToDeleted": "SuspendedToDeleted", "SuspendedToRegistered": "SuspendedToRegistered", "SuspendedToUnregistered": "SuspendedToUnregistered", "SuspendedToWarned": "SuspendedToWarned", "Unregistered": "Unregistered", "Warned": "Warned", "WarnedToDeleted": "WarnedToDeleted", "WarnedToRegistered": "WarnedToRegistered", "WarnedToSuspended": "WarnedToSuspended", "WarnedToUnregistered": "WarnedToUnregistered"}, + ) + return cls._args_schema + + _args_resource_provider_authorization_update = None + + @classmethod + def _build_args_resource_provider_authorization_update(cls, _schema): + if cls._args_resource_provider_authorization_update is not None: + _schema.allowed_third_party_extensions = cls._args_resource_provider_authorization_update.allowed_third_party_extensions + _schema.application_id = cls._args_resource_provider_authorization_update.application_id + _schema.grouping_tag = cls._args_resource_provider_authorization_update.grouping_tag + _schema.managed_by_authorization = cls._args_resource_provider_authorization_update.managed_by_authorization + _schema.managed_by_role_definition_id = cls._args_resource_provider_authorization_update.managed_by_role_definition_id + _schema.role_definition_id = cls._args_resource_provider_authorization_update.role_definition_id + return + + cls._args_resource_provider_authorization_update = AAZObjectArg( + nullable=True, + ) + + resource_provider_authorization_update = cls._args_resource_provider_authorization_update + resource_provider_authorization_update.allowed_third_party_extensions = AAZListArg( + options=["allowed-third-party-extensions"], + nullable=True, + ) + resource_provider_authorization_update.application_id = AAZStrArg( + options=["application-id"], + nullable=True, + ) + resource_provider_authorization_update.grouping_tag = AAZStrArg( + options=["grouping-tag"], + nullable=True, + ) + resource_provider_authorization_update.managed_by_authorization = AAZObjectArg( + options=["managed-by-authorization"], + help="Managed by authorization.", + nullable=True, + ) + resource_provider_authorization_update.managed_by_role_definition_id = AAZStrArg( + options=["managed-by-role-definition-id"], + nullable=True, + ) + resource_provider_authorization_update.role_definition_id = AAZStrArg( + options=["role-definition-id"], + nullable=True, + ) + + allowed_third_party_extensions = cls._args_resource_provider_authorization_update.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_resource_provider_authorization_update.allowed_third_party_extensions.Element + _element.name = AAZStrArg( + options=["name"], + help="Name of third party extension.", + nullable=True, + ) + + managed_by_authorization = cls._args_resource_provider_authorization_update.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListArg( + options=["additional-authorizations"], + nullable=True, + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolArg( + options=["allow-managed-by-inheritance"], + help="Indicates whether the managed by resource role definition ID should be inherited.", + nullable=True, + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrArg( + options=["managed-by-resource-role-definition-id"], + help="The managed by resource role definition ID for the application.", + nullable=True, + ) + + additional_authorizations = cls._args_resource_provider_authorization_update.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_resource_provider_authorization_update.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrArg( + options=["application-id"], + nullable=True, + ) + _element.role_definition_id = AAZStrArg( + options=["role-definition-id"], + nullable=True, + ) + + _schema.allowed_third_party_extensions = cls._args_resource_provider_authorization_update.allowed_third_party_extensions + _schema.application_id = cls._args_resource_provider_authorization_update.application_id + _schema.grouping_tag = cls._args_resource_provider_authorization_update.grouping_tag + _schema.managed_by_authorization = cls._args_resource_provider_authorization_update.managed_by_authorization + _schema.managed_by_role_definition_id = cls._args_resource_provider_authorization_update.managed_by_role_definition_id + _schema.role_definition_id = cls._args_resource_provider_authorization_update.role_definition_id + + _args_resource_provider_endpoint_update = None + + @classmethod + def _build_args_resource_provider_endpoint_update(cls, _schema): + if cls._args_resource_provider_endpoint_update is not None: + _schema.api_versions = cls._args_resource_provider_endpoint_update.api_versions + _schema.enabled = cls._args_resource_provider_endpoint_update.enabled + _schema.endpoint_type = cls._args_resource_provider_endpoint_update.endpoint_type + _schema.endpoint_uri = cls._args_resource_provider_endpoint_update.endpoint_uri + _schema.features_rule = cls._args_resource_provider_endpoint_update.features_rule + _schema.locations = cls._args_resource_provider_endpoint_update.locations + _schema.required_features = cls._args_resource_provider_endpoint_update.required_features + _schema.sku_link = cls._args_resource_provider_endpoint_update.sku_link + _schema.timeout = cls._args_resource_provider_endpoint_update.timeout + return + + cls._args_resource_provider_endpoint_update = AAZObjectArg( + nullable=True, + ) + + resource_provider_endpoint_update = cls._args_resource_provider_endpoint_update + resource_provider_endpoint_update.api_versions = AAZListArg( + options=["api-versions"], + nullable=True, + ) + resource_provider_endpoint_update.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + resource_provider_endpoint_update.endpoint_type = AAZStrArg( + options=["endpoint-type"], + nullable=True, + enum={"Canary": "Canary", "NotSpecified": "NotSpecified", "Production": "Production", "TestInProduction": "TestInProduction"}, + ) + resource_provider_endpoint_update.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + nullable=True, + ) + resource_provider_endpoint_update.features_rule = AAZObjectArg( + options=["features-rule"], + nullable=True, + ) + resource_provider_endpoint_update.locations = AAZListArg( + options=["locations"], + nullable=True, + ) + resource_provider_endpoint_update.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + resource_provider_endpoint_update.sku_link = AAZStrArg( + options=["sku-link"], + nullable=True, + ) + resource_provider_endpoint_update.timeout = AAZDurationArg( + options=["timeout"], + nullable=True, + ) + + api_versions = cls._args_resource_provider_endpoint_update.api_versions + api_versions.Element = AAZStrArg( + nullable=True, + ) + + features_rule = cls._args_resource_provider_endpoint_update.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + enum={"All": "All", "Any": "Any"}, + ) + + locations = cls._args_resource_provider_endpoint_update.locations + locations.Element = AAZStrArg( + nullable=True, + ) + + required_features = cls._args_resource_provider_endpoint_update.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + _schema.api_versions = cls._args_resource_provider_endpoint_update.api_versions + _schema.enabled = cls._args_resource_provider_endpoint_update.enabled + _schema.endpoint_type = cls._args_resource_provider_endpoint_update.endpoint_type + _schema.endpoint_uri = cls._args_resource_provider_endpoint_update.endpoint_uri + _schema.features_rule = cls._args_resource_provider_endpoint_update.features_rule + _schema.locations = cls._args_resource_provider_endpoint_update.locations + _schema.required_features = cls._args_resource_provider_endpoint_update.required_features + _schema.sku_link = cls._args_resource_provider_endpoint_update.sku_link + _schema.timeout = cls._args_resource_provider_endpoint_update.timeout + + _args_token_auth_configuration_update = None + + @classmethod + def _build_args_token_auth_configuration_update(cls, _schema): + if cls._args_token_auth_configuration_update is not None: + _schema.authentication_scheme = cls._args_token_auth_configuration_update.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_update.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_update.signed_request_scope + return + + cls._args_token_auth_configuration_update = AAZObjectArg( + nullable=True, + ) + + token_auth_configuration_update = cls._args_token_auth_configuration_update + token_auth_configuration_update.authentication_scheme = AAZStrArg( + options=["authentication-scheme"], + nullable=True, + enum={"Bearer": "Bearer", "PoP": "PoP"}, + ) + token_auth_configuration_update.disable_certificate_authentication_fallback = AAZBoolArg( + options=["disable-certificate-authentication-fallback"], + nullable=True, + ) + token_auth_configuration_update.signed_request_scope = AAZStrArg( + options=["signed-request-scope"], + nullable=True, + enum={"Endpoint": "Endpoint", "ResourceUri": "ResourceUri"}, + ) + + _schema.authentication_scheme = cls._args_token_auth_configuration_update.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_update.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_update.signed_request_scope + + def _execute_operations(self): + self.pre_operations() + self.ProviderRegistrationsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + yield self.ProviderRegistrationsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ProviderRegistrationsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_provider_registration_read(cls._schema_on_200) + + return cls._schema_on_200 + + class ProviderRegistrationsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_provider_registration_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("kind", AAZStrType, ".kind") + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("capabilities", AAZListType, ".capabilities") + properties.set_prop("crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") + properties.set_prop("customManifestVersion", AAZStrType, ".custom_manifest_version") + properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + properties.set_prop("enableTenantLinkedNotification", AAZBoolType, ".enable_tenant_linked_notification", typ_kwargs={"nullable": True}) + properties.set_prop("featuresRule", AAZObjectType) + properties.set_prop("globalNotificationEndpoints", AAZListType, ".global_notification_endpoints") + properties.set_prop("legacyNamespace", AAZStrType, ".legacy_namespace") + properties.set_prop("legacyRegistrations", AAZListType, ".legacy_registrations") + properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") + properties.set_prop("management", AAZObjectType) + properties.set_prop("managementGroupGlobalNotificationEndpoints", AAZListType, ".management_group_global_notification_endpoints") + properties.set_prop("metadata", AAZFreeFormDictType, ".metadata") + properties.set_prop("namespace", AAZStrType, ".namespace") + properties.set_prop("notificationOptions", AAZStrType, ".notification_options") + properties.set_prop("notificationSettings", AAZObjectType, ".notification_settings") + properties.set_prop("notifications", AAZListType, ".notifications") + properties.set_prop("optionalFeatures", AAZListType, ".optional_features") + properties.set_prop("privateResourceProviderConfiguration", AAZObjectType, ".private_resource_provider_configuration") + properties.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") + properties.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") + properties.set_prop("providerHubMetadata", AAZObjectType, ".provider_hub_metadata") + properties.set_prop("providerType", AAZStrType, ".provider_type") + properties.set_prop("providerVersion", AAZStrType, ".provider_version") + properties.set_prop("requestHeaderOptions", AAZObjectType) + properties.set_prop("requiredFeatures", AAZListType, ".required_features") + properties.set_prop("resourceGroupLockOptionDuringMove", AAZObjectType, ".resource_group_lock_option_during_move") + properties.set_prop("resourceHydrationAccounts", AAZListType, ".resource_hydration_accounts") + properties.set_prop("resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules") + properties.set_prop("responseOptions", AAZObjectType, ".response_options") + properties.set_prop("serviceName", AAZStrType, ".service_name") + properties.set_prop("services", AAZListType, ".services") + properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType) + properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") + _UpdateHelper._build_schema_token_auth_configuration_update(properties.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + capabilities = _builder.get(".properties.capabilities") + if capabilities is not None: + capabilities.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.capabilities[]") + if _elements is not None: + _elements.set_prop("effect", AAZStrType, ".effect", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quotaId", AAZStrType, ".quota_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + required_features = _builder.get(".properties.capabilities[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + features_rule = _builder.get(".properties.featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + global_notification_endpoints = _builder.get(".properties.globalNotificationEndpoints") + if global_notification_endpoints is not None: + _UpdateHelper._build_schema_resource_provider_endpoint_update(global_notification_endpoints.set_elements(AAZObjectType, ".")) + + legacy_registrations = _builder.get(".properties.legacyRegistrations") + if legacy_registrations is not None: + legacy_registrations.set_elements(AAZStrType, ".") + + linked_notification_rules = _builder.get(".properties.linkedNotificationRules") + if linked_notification_rules is not None: + linked_notification_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.linkedNotificationRules[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + _elements.set_prop("endpoints", AAZListType, ".endpoints") + _UpdateHelper._build_schema_token_auth_configuration_update(_elements.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + actions = _builder.get(".properties.linkedNotificationRules[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.linkedNotificationRules[].dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + endpoints = _builder.get(".properties.linkedNotificationRules[].endpoints") + if endpoints is not None: + _UpdateHelper._build_schema_resource_provider_endpoint_update(endpoints.set_elements(AAZObjectType, ".")) + + management = _builder.get(".properties.management") + if management is not None: + management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") + management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") + management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") + management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") + management.set_prop("expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") + management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") + management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") + management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") + management.set_prop("manifestOwners", AAZListType, ".manifest_owners") + management.set_prop("pcCode", AAZStrType, ".pc_code") + management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") + management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") + management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") + management.set_prop("schemaOwners", AAZListType, ".schema_owners") + management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + + authorization_owners = _builder.get(".properties.management.authorizationOwners") + if authorization_owners is not None: + authorization_owners.set_elements(AAZStrType, ".") + + canary_manifest_owners = _builder.get(".properties.management.canaryManifestOwners") + if canary_manifest_owners is not None: + canary_manifest_owners.set_elements(AAZStrType, ".") + + error_response_message_options = _builder.get(".properties.management.errorResponseMessageOptions") + if error_response_message_options is not None: + error_response_message_options.set_prop("serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") + + expedited_rollout_metadata = _builder.get(".properties.management.expeditedRolloutMetadata") + if expedited_rollout_metadata is not None: + expedited_rollout_metadata.set_prop("enabled", AAZBoolType, ".enabled") + expedited_rollout_metadata.set_prop("expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") + + expedited_rollout_submitters = _builder.get(".properties.management.expeditedRolloutSubmitters") + if expedited_rollout_submitters is not None: + expedited_rollout_submitters.set_elements(AAZStrType, ".") + + manifest_owners = _builder.get(".properties.management.manifestOwners") + if manifest_owners is not None: + manifest_owners.set_elements(AAZStrType, ".") + + resource_access_roles = _builder.get(".properties.management.resourceAccessRoles") + if resource_access_roles is not None: + resource_access_roles.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.management.resourceAccessRoles[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("allowedGroupClaims", AAZListType, ".allowed_group_claims") + + actions = _builder.get(".properties.management.resourceAccessRoles[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + allowed_group_claims = _builder.get(".properties.management.resourceAccessRoles[].allowedGroupClaims") + if allowed_group_claims is not None: + allowed_group_claims.set_elements(AAZStrType, ".") + + schema_owners = _builder.get(".properties.management.schemaOwners") + if schema_owners is not None: + schema_owners.set_elements(AAZStrType, ".") + + service_tree_infos = _builder.get(".properties.management.serviceTreeInfos") + if service_tree_infos is not None: + service_tree_infos.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.management.serviceTreeInfos[]") + if _elements is not None: + _elements.set_prop("componentId", AAZStrType, ".component_id") + _elements.set_prop("readiness", AAZStrType, ".readiness") + _elements.set_prop("serviceId", AAZStrType, ".service_id") + + management_group_global_notification_endpoints = _builder.get(".properties.managementGroupGlobalNotificationEndpoints") + if management_group_global_notification_endpoints is not None: + _UpdateHelper._build_schema_resource_provider_endpoint_update(management_group_global_notification_endpoints.set_elements(AAZObjectType, ".")) + + metadata = _builder.get(".properties.metadata") + if metadata is not None: + metadata.set_anytype_elements(".") + + notification_settings = _builder.get(".properties.notificationSettings") + if notification_settings is not None: + notification_settings.set_prop("subscriberSettings", AAZListType, ".subscriber_settings") + + subscriber_settings = _builder.get(".properties.notificationSettings.subscriberSettings") + if subscriber_settings is not None: + subscriber_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.notificationSettings.subscriberSettings[]") + if _elements is not None: + _elements.set_prop("filterRules", AAZListType, ".filter_rules") + + filter_rules = _builder.get(".properties.notificationSettings.subscriberSettings[].filterRules") + if filter_rules is not None: + filter_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.notificationSettings.subscriberSettings[].filterRules[]") + if _elements is not None: + _elements.set_prop("endpointInformation", AAZListType, ".endpoint_information") + _elements.set_prop("filterQuery", AAZStrType, ".filter_query") + + endpoint_information = _builder.get(".properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation") + if endpoint_information is not None: + endpoint_information.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.notificationSettings.subscriberSettings[].filterRules[].endpointInformation[]") + if _elements is not None: + _elements.set_prop("endpoint", AAZStrType, ".endpoint") + _elements.set_prop("endpointType", AAZStrType, ".endpoint_type") + _elements.set_prop("schemaVersion", AAZStrType, ".schema_version") + + notifications = _builder.get(".properties.notifications") + if notifications is not None: + notifications.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.notifications[]") + if _elements is not None: + _elements.set_prop("notificationType", AAZStrType, ".notification_type") + _elements.set_prop("skipNotifications", AAZStrType, ".skip_notifications") + + optional_features = _builder.get(".properties.optionalFeatures") + if optional_features is not None: + optional_features.set_elements(AAZStrType, ".") + + private_resource_provider_configuration = _builder.get(".properties.privateResourceProviderConfiguration") + if private_resource_provider_configuration is not None: + private_resource_provider_configuration.set_prop("allowedSubscriptions", AAZListType, ".allowed_subscriptions") + + allowed_subscriptions = _builder.get(".properties.privateResourceProviderConfiguration.allowedSubscriptions") + if allowed_subscriptions is not None: + allowed_subscriptions.set_elements(AAZStrType, ".") + + provider_authentication = _builder.get(".properties.providerAuthentication") + if provider_authentication is not None: + provider_authentication.set_prop("allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) + + allowed_audiences = _builder.get(".properties.providerAuthentication.allowedAudiences") + if allowed_audiences is not None: + allowed_audiences.set_elements(AAZStrType, ".") + + provider_authorizations = _builder.get(".properties.providerAuthorizations") + if provider_authorizations is not None: + _UpdateHelper._build_schema_resource_provider_authorization_update(provider_authorizations.set_elements(AAZObjectType, ".")) + + provider_hub_metadata = _builder.get(".properties.providerHubMetadata") + if provider_hub_metadata is not None: + provider_hub_metadata.set_prop("directRpRoleDefinitionId", AAZStrType, ".direct_rp_role_definition_id") + provider_hub_metadata.set_prop("globalAsyncOperationResourceTypeName", AAZStrType, ".global_async_operation_resource_type_name") + provider_hub_metadata.set_prop("providerAuthentication", AAZObjectType, ".provider_authentication") + provider_hub_metadata.set_prop("providerAuthorizations", AAZListType, ".provider_authorizations") + provider_hub_metadata.set_prop("regionalAsyncOperationResourceTypeName", AAZStrType, ".regional_async_operation_resource_type_name") + provider_hub_metadata.set_prop("thirdPartyProviderAuthorization", AAZObjectType, ".third_party_provider_authorization") + + provider_authentication = _builder.get(".properties.providerHubMetadata.providerAuthentication") + if provider_authentication is not None: + provider_authentication.set_prop("allowedAudiences", AAZListType, ".allowed_audiences", typ_kwargs={"flags": {"required": True}}) + + allowed_audiences = _builder.get(".properties.providerHubMetadata.providerAuthentication.allowedAudiences") + if allowed_audiences is not None: + allowed_audiences.set_elements(AAZStrType, ".") + + provider_authorizations = _builder.get(".properties.providerHubMetadata.providerAuthorizations") + if provider_authorizations is not None: + _UpdateHelper._build_schema_resource_provider_authorization_update(provider_authorizations.set_elements(AAZObjectType, ".")) + + third_party_provider_authorization = _builder.get(".properties.providerHubMetadata.thirdPartyProviderAuthorization") + if third_party_provider_authorization is not None: + third_party_provider_authorization.set_prop("authorizations", AAZListType, ".authorizations") + third_party_provider_authorization.set_prop("managedByTenantId", AAZStrType, ".managed_by_tenant_id") + + authorizations = _builder.get(".properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations") + if authorizations is not None: + authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.providerHubMetadata.thirdPartyProviderAuthorization.authorizations[]") + if _elements is not None: + _elements.set_prop("principalId", AAZStrType, ".principal_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id", typ_kwargs={"flags": {"required": True}}) + + request_header_options = _builder.get(".properties.requestHeaderOptions") + if request_header_options is not None: + request_header_options.set_prop("optInHeaders", AAZStrType, ".opt_in_headers") + request_header_options.set_prop("optOutHeaders", AAZStrType, ".opt_out_headers") + + required_features = _builder.get(".properties.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + resource_group_lock_option_during_move = _builder.get(".properties.resourceGroupLockOptionDuringMove") + if resource_group_lock_option_during_move is not None: + resource_group_lock_option_during_move.set_prop("blockActionVerb", AAZStrType, ".block_action_verb") + + resource_hydration_accounts = _builder.get(".properties.resourceHydrationAccounts") + if resource_hydration_accounts is not None: + resource_hydration_accounts.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.resourceHydrationAccounts[]") + if _elements is not None: + _elements.set_prop("accountName", AAZStrType, ".account_name") + _elements.set_prop("encryptedKey", AAZStrType, ".encrypted_key") + _elements.set_prop("maxChildResourceConsistencyJobLimit", AAZIntType, ".max_child_resource_consistency_job_limit") + _elements.set_prop("subscriptionId", AAZStrType, ".subscription_id") + + resource_provider_authorization_rules = _builder.get(".properties.resourceProviderAuthorizationRules") + if resource_provider_authorization_rules is not None: + resource_provider_authorization_rules.set_prop("asyncOperationPollingRules", AAZObjectType, ".async_operation_polling_rules") + + async_operation_polling_rules = _builder.get(".properties.resourceProviderAuthorizationRules.asyncOperationPollingRules") + if async_operation_polling_rules is not None: + async_operation_polling_rules.set_prop("additionalOptions", AAZStrType, ".additional_options") + async_operation_polling_rules.set_prop("authorizationActions", AAZListType, ".authorization_actions") + + authorization_actions = _builder.get(".properties.resourceProviderAuthorizationRules.asyncOperationPollingRules.authorizationActions") + if authorization_actions is not None: + authorization_actions.set_elements(AAZStrType, ".") + + response_options = _builder.get(".properties.responseOptions") + if response_options is not None: + response_options.set_prop("serviceClientOptionsType", AAZStrType, ".service_client_options_type") + + services = _builder.get(".properties.services") + if services is not None: + services.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.services[]") + if _elements is not None: + _elements.set_prop("serviceName", AAZStrType, ".service_name") + _elements.set_prop("status", AAZStrType, ".status") + + subscription_lifecycle_notification_specifications = _builder.get(".properties.subscriptionLifecycleNotificationSpecifications") + if subscription_lifecycle_notification_specifications is not None: + subscription_lifecycle_notification_specifications.set_prop("softDeleteTTL", AAZStrType, ".soft_delete_ttl") + subscription_lifecycle_notification_specifications.set_prop("subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") + + subscription_state_override_actions = _builder.get(".properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") + if subscription_state_override_actions is not None: + subscription_state_override_actions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("state", AAZStrType, ".state", typ_kwargs={"flags": {"required": True}}) + + template_deployment_options = _builder.get(".properties.templateDeploymentOptions") + if template_deployment_options is not None: + template_deployment_options.set_prop("preflightOptions", AAZListType, ".preflight_options") + template_deployment_options.set_prop("preflightSupported", AAZBoolType, ".preflight_supported") + + preflight_options = _builder.get(".properties.templateDeploymentOptions.preflightOptions") + if preflight_options is not None: + preflight_options.set_elements(AAZStrType, ".") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + @classmethod + def _build_schema_resource_provider_authorization_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("allowedThirdPartyExtensions", AAZListType, ".allowed_third_party_extensions") + _builder.set_prop("applicationId", AAZStrType, ".application_id") + _builder.set_prop("groupingTag", AAZStrType, ".grouping_tag") + _builder.set_prop("managedByAuthorization", AAZObjectType, ".managed_by_authorization") + _builder.set_prop("managedByRoleDefinitionId", AAZStrType, ".managed_by_role_definition_id") + _builder.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + allowed_third_party_extensions = _builder.get(".allowedThirdPartyExtensions") + if allowed_third_party_extensions is not None: + allowed_third_party_extensions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".allowedThirdPartyExtensions[]") + if _elements is not None: + _elements.set_prop("name", AAZStrType, ".name") + + managed_by_authorization = _builder.get(".managedByAuthorization") + if managed_by_authorization is not None: + managed_by_authorization.set_prop("additionalAuthorizations", AAZListType, ".additional_authorizations") + managed_by_authorization.set_prop("allowManagedByInheritance", AAZBoolType, ".allow_managed_by_inheritance") + managed_by_authorization.set_prop("managedByResourceRoleDefinitionId", AAZStrType, ".managed_by_resource_role_definition_id") + + additional_authorizations = _builder.get(".managedByAuthorization.additionalAuthorizations") + if additional_authorizations is not None: + additional_authorizations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".managedByAuthorization.additionalAuthorizations[]") + if _elements is not None: + _elements.set_prop("applicationId", AAZStrType, ".application_id") + _elements.set_prop("roleDefinitionId", AAZStrType, ".role_definition_id") + + @classmethod + def _build_schema_resource_provider_endpoint_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("apiVersions", AAZListType, ".api_versions") + _builder.set_prop("enabled", AAZBoolType, ".enabled") + _builder.set_prop("endpointType", AAZStrType, ".endpoint_type") + _builder.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _builder.set_prop("featuresRule", AAZObjectType, ".features_rule") + _builder.set_prop("locations", AAZListType, ".locations") + _builder.set_prop("requiredFeatures", AAZListType, ".required_features") + _builder.set_prop("skuLink", AAZStrType, ".sku_link") + _builder.set_prop("timeout", AAZStrType, ".timeout") + + api_versions = _builder.get(".apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + locations = _builder.get(".locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + @classmethod + def _build_schema_token_auth_configuration_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("authenticationScheme", AAZStrType, ".authentication_scheme") + _builder.set_prop("disableCertificateAuthenticationFallback", AAZBoolType, ".disable_certificate_authentication_fallback") + _builder.set_prop("signedRequestScope", AAZStrType, ".signed_request_scope") + + _schema_provider_registration_read = None + + @classmethod + def _build_schema_provider_registration_read(cls, _schema): + if cls._schema_provider_registration_read is not None: + _schema.id = cls._schema_provider_registration_read.id + _schema.kind = cls._schema_provider_registration_read.kind + _schema.name = cls._schema_provider_registration_read.name + _schema.properties = cls._schema_provider_registration_read.properties + _schema.system_data = cls._schema_provider_registration_read.system_data + _schema.type = cls._schema_provider_registration_read.type + return + + cls._schema_provider_registration_read = _schema_provider_registration_read = AAZObjectType() + + provider_registration_read = _schema_provider_registration_read + provider_registration_read.id = AAZStrType( + flags={"read_only": True}, + ) + provider_registration_read.kind = AAZStrType() + provider_registration_read.name = AAZStrType( + flags={"read_only": True}, + ) + provider_registration_read.properties = AAZObjectType() + provider_registration_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + provider_registration_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_provider_registration_read.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + cls._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = _schema_provider_registration_read.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = _schema_provider_registration_read.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = _schema_provider_registration_read.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = _schema_provider_registration_read.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = _schema_provider_registration_read.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = _schema_provider_registration_read.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + cls._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = _schema_provider_registration_read.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = _schema_provider_registration_read.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = _schema_provider_registration_read.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + cls._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = _schema_provider_registration_read.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = _schema_provider_registration_read.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = _schema_provider_registration_read.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + cls._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = _schema_provider_registration_read.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = _schema_provider_registration_read.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = _schema_provider_registration_read.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = _schema_provider_registration_read.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = _schema_provider_registration_read.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = _schema_provider_registration_read.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = _schema_provider_registration_read.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = _schema_provider_registration_read.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + + _element = _schema_provider_registration_read.properties.management.resource_access_roles.Element + _element.actions = AAZListType() + _element.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = _schema_provider_registration_read.properties.management.resource_access_roles.Element.actions + actions.Element = AAZStrType() + + allowed_group_claims = _schema_provider_registration_read.properties.management.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + schema_owners = _schema_provider_registration_read.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = _schema_provider_registration_read.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + + _element = _schema_provider_registration_read.properties.management.service_tree_infos.Element + _element.component_id = AAZStrType( + serialized_name="componentId", + ) + _element.readiness = AAZStrType() + _element.service_id = AAZStrType( + serialized_name="serviceId", + ) + + management_group_global_notification_endpoints = _schema_provider_registration_read.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + cls._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = _schema_provider_registration_read.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = _schema_provider_registration_read.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = _schema_provider_registration_read.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = _schema_provider_registration_read.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = _schema_provider_registration_read.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = _schema_provider_registration_read.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = _schema_provider_registration_read.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + notifications = _schema_provider_registration_read.properties.notifications + notifications.Element = AAZObjectType() + + _element = _schema_provider_registration_read.properties.notifications.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + optional_features = _schema_provider_registration_read.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = _schema_provider_registration_read.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = _schema_provider_registration_read.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = _schema_provider_registration_read.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = _schema_provider_registration_read.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = _schema_provider_registration_read.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + cls._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = _schema_provider_registration_read.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = _schema_provider_registration_read.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = _schema_provider_registration_read.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = _schema_provider_registration_read.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + cls._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = _schema_provider_registration_read.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = _schema_provider_registration_read.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = _schema_provider_registration_read.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = _schema_provider_registration_read.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = _schema_provider_registration_read.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = _schema_provider_registration_read.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = _schema_provider_registration_read.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = _schema_provider_registration_read.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + resource_provider_authorization_rules = _schema_provider_registration_read.properties.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = _schema_provider_registration_read.properties.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = _schema_provider_registration_read.properties.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + response_options = _schema_provider_registration_read.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = _schema_provider_registration_read.properties.services + services.Element = AAZObjectType() + + _element = _schema_provider_registration_read.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = _schema_provider_registration_read.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = _schema_provider_registration_read.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + + _element = _schema_provider_registration_read.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.state = AAZStrType( + flags={"required": True}, + ) + + template_deployment_options = _schema_provider_registration_read.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = _schema_provider_registration_read.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + system_data = _schema_provider_registration_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.id = cls._schema_provider_registration_read.id + _schema.kind = cls._schema_provider_registration_read.kind + _schema.name = cls._schema_provider_registration_read.name + _schema.properties = cls._schema_provider_registration_read.properties + _schema.system_data = cls._schema_provider_registration_read.system_data + _schema.type = cls._schema_provider_registration_read.type + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Update"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_wait.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_wait.py new file mode 100644 index 00000000000..bdd0693b536 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/_wait.py @@ -0,0 +1,842 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub provider-registration wait", +) +class Wait(AAZWaitCommand): + """Place the CLI in a waiting state until a condition is met. + """ + + _aaz_info = { + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["-n", "--name", "--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ProviderRegistrationsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False) + return result + + class ProviderRegistrationsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.kind = AAZStrType() + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.capabilities = AAZListType() + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.custom_manifest_version = AAZStrType( + serialized_name="customManifestVersion", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_tenant_linked_notification = AAZBoolType( + serialized_name="enableTenantLinkedNotification", + nullable=True, + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.global_notification_endpoints = AAZListType( + serialized_name="globalNotificationEndpoints", + ) + properties.legacy_namespace = AAZStrType( + serialized_name="legacyNamespace", + ) + properties.legacy_registrations = AAZListType( + serialized_name="legacyRegistrations", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.management = AAZObjectType() + properties.management_group_global_notification_endpoints = AAZListType( + serialized_name="managementGroupGlobalNotificationEndpoints", + ) + properties.metadata = AAZFreeFormDictType() + properties.namespace = AAZStrType() + properties.notification_options = AAZStrType( + serialized_name="notificationOptions", + ) + properties.notification_settings = AAZObjectType( + serialized_name="notificationSettings", + ) + properties.notifications = AAZListType() + properties.optional_features = AAZListType( + serialized_name="optionalFeatures", + ) + properties.private_resource_provider_configuration = AAZObjectType( + serialized_name="privateResourceProviderConfiguration", + ) + properties.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + properties.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + properties.provider_hub_metadata = AAZObjectType( + serialized_name="providerHubMetadata", + ) + properties.provider_type = AAZStrType( + serialized_name="providerType", + ) + properties.provider_version = AAZStrType( + serialized_name="providerVersion", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_group_lock_option_during_move = AAZObjectType( + serialized_name="resourceGroupLockOptionDuringMove", + ) + properties.resource_hydration_accounts = AAZListType( + serialized_name="resourceHydrationAccounts", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + properties.response_options = AAZObjectType( + serialized_name="responseOptions", + ) + properties.service_name = AAZStrType( + serialized_name="serviceName", + ) + properties.services = AAZListType() + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _WaitHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + capabilities = cls._schema_on_200.properties.capabilities + capabilities.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.capabilities.Element + _element.effect = AAZStrType( + flags={"required": True}, + ) + _element.quota_id = AAZStrType( + serialized_name="quotaId", + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.properties.capabilities.Element.required_features + required_features.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + features_rule = cls._schema_on_200.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + global_notification_endpoints = cls._schema_on_200.properties.global_notification_endpoints + global_notification_endpoints.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_endpoint_read(global_notification_endpoints.Element) + + legacy_registrations = cls._schema_on_200.properties.legacy_registrations + legacy_registrations.Element = AAZStrType() + + linked_notification_rules = cls._schema_on_200.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.endpoints = AAZListType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _WaitHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + + actions = cls._schema_on_200.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.linked_notification_rules.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.properties.linked_notification_rules.Element.endpoints + endpoints.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_endpoint_read(endpoints.Element) + + management = cls._schema_on_200.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.management.resource_access_roles.Element + _element.actions = AAZListType() + _element.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = cls._schema_on_200.properties.management.resource_access_roles.Element.actions + actions.Element = AAZStrType() + + allowed_group_claims = cls._schema_on_200.properties.management.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + schema_owners = cls._schema_on_200.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.management.service_tree_infos.Element + _element.component_id = AAZStrType( + serialized_name="componentId", + ) + _element.readiness = AAZStrType() + _element.service_id = AAZStrType( + serialized_name="serviceId", + ) + + management_group_global_notification_endpoints = cls._schema_on_200.properties.management_group_global_notification_endpoints + management_group_global_notification_endpoints.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_endpoint_read(management_group_global_notification_endpoints.Element) + + notification_settings = cls._schema_on_200.properties.notification_settings + notification_settings.subscriber_settings = AAZListType( + serialized_name="subscriberSettings", + ) + + subscriber_settings = cls._schema_on_200.properties.notification_settings.subscriber_settings + subscriber_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.notification_settings.subscriber_settings.Element + _element.filter_rules = AAZListType( + serialized_name="filterRules", + ) + + filter_rules = cls._schema_on_200.properties.notification_settings.subscriber_settings.Element.filter_rules + filter_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.notification_settings.subscriber_settings.Element.filter_rules.Element + _element.endpoint_information = AAZListType( + serialized_name="endpointInformation", + ) + _element.filter_query = AAZStrType( + serialized_name="filterQuery", + ) + + endpoint_information = cls._schema_on_200.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information + endpoint_information.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.notification_settings.subscriber_settings.Element.filter_rules.Element.endpoint_information.Element + _element.endpoint = AAZStrType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.schema_version = AAZStrType( + serialized_name="schemaVersion", + ) + + notifications = cls._schema_on_200.properties.notifications + notifications.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.notifications.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + optional_features = cls._schema_on_200.properties.optional_features + optional_features.Element = AAZStrType() + + private_resource_provider_configuration = cls._schema_on_200.properties.private_resource_provider_configuration + private_resource_provider_configuration.allowed_subscriptions = AAZListType( + serialized_name="allowedSubscriptions", + ) + + allowed_subscriptions = cls._schema_on_200.properties.private_resource_provider_configuration.allowed_subscriptions + allowed_subscriptions.Element = AAZStrType() + + provider_authentication = cls._schema_on_200.properties.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.properties.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.properties.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + provider_hub_metadata = cls._schema_on_200.properties.provider_hub_metadata + provider_hub_metadata.direct_rp_role_definition_id = AAZStrType( + serialized_name="directRpRoleDefinitionId", + ) + provider_hub_metadata.global_async_operation_resource_type_name = AAZStrType( + serialized_name="globalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.provider_authentication = AAZObjectType( + serialized_name="providerAuthentication", + ) + provider_hub_metadata.provider_authorizations = AAZListType( + serialized_name="providerAuthorizations", + ) + provider_hub_metadata.regional_async_operation_resource_type_name = AAZStrType( + serialized_name="regionalAsyncOperationResourceTypeName", + ) + provider_hub_metadata.third_party_provider_authorization = AAZObjectType( + serialized_name="thirdPartyProviderAuthorization", + ) + + provider_authentication = cls._schema_on_200.properties.provider_hub_metadata.provider_authentication + provider_authentication.allowed_audiences = AAZListType( + serialized_name="allowedAudiences", + flags={"required": True}, + ) + + allowed_audiences = cls._schema_on_200.properties.provider_hub_metadata.provider_authentication.allowed_audiences + allowed_audiences.Element = AAZStrType() + + provider_authorizations = cls._schema_on_200.properties.provider_hub_metadata.provider_authorizations + provider_authorizations.Element = AAZObjectType() + _WaitHelper._build_schema_resource_provider_authorization_read(provider_authorizations.Element) + + third_party_provider_authorization = cls._schema_on_200.properties.provider_hub_metadata.third_party_provider_authorization + third_party_provider_authorization.authorizations = AAZListType() + third_party_provider_authorization.managed_by_tenant_id = AAZStrType( + serialized_name="managedByTenantId", + ) + + authorizations = cls._schema_on_200.properties.provider_hub_metadata.third_party_provider_authorization.authorizations + authorizations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.provider_hub_metadata.third_party_provider_authorization.authorizations.Element + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"required": True}, + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + flags={"required": True}, + ) + + request_header_options = cls._schema_on_200.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.properties.required_features + required_features.Element = AAZStrType() + + resource_group_lock_option_during_move = cls._schema_on_200.properties.resource_group_lock_option_during_move + resource_group_lock_option_during_move.block_action_verb = AAZStrType( + serialized_name="blockActionVerb", + ) + + resource_hydration_accounts = cls._schema_on_200.properties.resource_hydration_accounts + resource_hydration_accounts.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.resource_hydration_accounts.Element + _element.account_name = AAZStrType( + serialized_name="accountName", + ) + _element.encrypted_key = AAZStrType( + serialized_name="encryptedKey", + ) + _element.max_child_resource_consistency_job_limit = AAZIntType( + serialized_name="maxChildResourceConsistencyJobLimit", + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + ) + + resource_provider_authorization_rules = cls._schema_on_200.properties.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = cls._schema_on_200.properties.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = cls._schema_on_200.properties.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + response_options = cls._schema_on_200.properties.response_options + response_options.service_client_options_type = AAZStrType( + serialized_name="serviceClientOptionsType", + ) + + services = cls._schema_on_200.properties.services + services.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.services.Element + _element.service_name = AAZStrType( + serialized_name="serviceName", + ) + _element.status = AAZStrType() + + subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.state = AAZStrType( + flags={"required": True}, + ) + + template_deployment_options = cls._schema_on_200.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _WaitHelper: + """Helper class for Wait""" + + _schema_resource_provider_authorization_read = None + + @classmethod + def _build_schema_resource_provider_authorization_read(cls, _schema): + if cls._schema_resource_provider_authorization_read is not None: + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + return + + cls._schema_resource_provider_authorization_read = _schema_resource_provider_authorization_read = AAZObjectType() + + resource_provider_authorization_read = _schema_resource_provider_authorization_read + resource_provider_authorization_read.allowed_third_party_extensions = AAZListType( + serialized_name="allowedThirdPartyExtensions", + ) + resource_provider_authorization_read.application_id = AAZStrType( + serialized_name="applicationId", + ) + resource_provider_authorization_read.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + resource_provider_authorization_read.managed_by_authorization = AAZObjectType( + serialized_name="managedByAuthorization", + ) + resource_provider_authorization_read.managed_by_role_definition_id = AAZStrType( + serialized_name="managedByRoleDefinitionId", + ) + resource_provider_authorization_read.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + allowed_third_party_extensions = _schema_resource_provider_authorization_read.allowed_third_party_extensions + allowed_third_party_extensions.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.allowed_third_party_extensions.Element + _element.name = AAZStrType() + + managed_by_authorization = _schema_resource_provider_authorization_read.managed_by_authorization + managed_by_authorization.additional_authorizations = AAZListType( + serialized_name="additionalAuthorizations", + ) + managed_by_authorization.allow_managed_by_inheritance = AAZBoolType( + serialized_name="allowManagedByInheritance", + ) + managed_by_authorization.managed_by_resource_role_definition_id = AAZStrType( + serialized_name="managedByResourceRoleDefinitionId", + ) + + additional_authorizations = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations + additional_authorizations.Element = AAZObjectType() + + _element = _schema_resource_provider_authorization_read.managed_by_authorization.additional_authorizations.Element + _element.application_id = AAZStrType( + serialized_name="applicationId", + ) + _element.role_definition_id = AAZStrType( + serialized_name="roleDefinitionId", + ) + + _schema.allowed_third_party_extensions = cls._schema_resource_provider_authorization_read.allowed_third_party_extensions + _schema.application_id = cls._schema_resource_provider_authorization_read.application_id + _schema.grouping_tag = cls._schema_resource_provider_authorization_read.grouping_tag + _schema.managed_by_authorization = cls._schema_resource_provider_authorization_read.managed_by_authorization + _schema.managed_by_role_definition_id = cls._schema_resource_provider_authorization_read.managed_by_role_definition_id + _schema.role_definition_id = cls._schema_resource_provider_authorization_read.role_definition_id + + _schema_resource_provider_endpoint_read = None + + @classmethod + def _build_schema_resource_provider_endpoint_read(cls, _schema): + if cls._schema_resource_provider_endpoint_read is not None: + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + return + + cls._schema_resource_provider_endpoint_read = _schema_resource_provider_endpoint_read = AAZObjectType() + + resource_provider_endpoint_read = _schema_resource_provider_endpoint_read + resource_provider_endpoint_read.api_versions = AAZListType( + serialized_name="apiVersions", + ) + resource_provider_endpoint_read.enabled = AAZBoolType() + resource_provider_endpoint_read.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + resource_provider_endpoint_read.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + resource_provider_endpoint_read.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + resource_provider_endpoint_read.locations = AAZListType() + resource_provider_endpoint_read.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + resource_provider_endpoint_read.sku_link = AAZStrType( + serialized_name="skuLink", + ) + resource_provider_endpoint_read.timeout = AAZStrType() + + api_versions = _schema_resource_provider_endpoint_read.api_versions + api_versions.Element = AAZStrType() + + features_rule = _schema_resource_provider_endpoint_read.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_provider_endpoint_read.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_provider_endpoint_read.required_features + required_features.Element = AAZStrType() + + _schema.api_versions = cls._schema_resource_provider_endpoint_read.api_versions + _schema.enabled = cls._schema_resource_provider_endpoint_read.enabled + _schema.endpoint_type = cls._schema_resource_provider_endpoint_read.endpoint_type + _schema.endpoint_uri = cls._schema_resource_provider_endpoint_read.endpoint_uri + _schema.features_rule = cls._schema_resource_provider_endpoint_read.features_rule + _schema.locations = cls._schema_resource_provider_endpoint_read.locations + _schema.required_features = cls._schema_resource_provider_endpoint_read.required_features + _schema.sku_link = cls._schema_resource_provider_endpoint_read.sku_link + _schema.timeout = cls._schema_resource_provider_endpoint_read.timeout + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Wait"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/resource_action/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/resource_action/__cmd_group.py new file mode 100644 index 00000000000..3f4f0ffdecf --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/resource_action/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub provider-registration resource-action", +) +class __CMDGroup(AAZCommandGroup): + """Manage resource action with providerhub. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/resource_action/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/resource_action/__init__.py new file mode 100644 index 00000000000..ee4e8222b00 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/resource_action/__init__.py @@ -0,0 +1,12 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._delete_resource import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/resource_action/_delete_resource.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/resource_action/_delete_resource.py new file mode 100644 index 00000000000..7231d80b83e --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/provider_registration/resource_action/_delete_resource.py @@ -0,0 +1,212 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub provider-registration resource-action delete-resource", +) +class DeleteResource(AAZCommand): + """Deletes resources. + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourceactions/{}/deleteresources", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, None) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_action_name = AAZStrArg( + options=["--resource-action-name"], + help="The resource action name.", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[a-z][a-z0-9]*$", + max_length=63, + min_length=3, + ), + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.resources = AAZListArg( + options=["--resources"], + arg_group="Properties", + help="resource management action content.", + ) + + resources = cls._args_schema.resources + resources.Element = AAZObjectArg() + + _element = cls._args_schema.resources.Element + _element.home_tenant_id = AAZStrArg( + options=["home-tenant-id"], + help="The home tenant id.", + ) + _element.location = AAZStrArg( + options=["location"], + help="The location.", + ) + _element.resource_id = AAZStrArg( + options=["resource-id"], + help="The resource id.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + yield self.ResourceActionsDeleteResources(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class ResourceActionsDeleteResources(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourceActions/{resourceActionName}/deleteResources", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceActionName", self.ctx.args.resource_action_name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("resources", AAZListType, ".resources") + + resources = _builder.get(".resources") + if resources is not None: + resources.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".resources[]") + if _elements is not None: + _elements.set_prop("homeTenantId", AAZStrType, ".home_tenant_id") + _elements.set_prop("location", AAZStrType, ".location") + _elements.set_prop("resourceId", AAZStrType, ".resource_id", typ_kwargs={"flags": {"required": True}}) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + pass + + +class _DeleteResourceHelper: + """Helper class for DeleteResource""" + + +__all__ = ["DeleteResource"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/__cmd_group.py new file mode 100644 index 00000000000..940fc9ec1f7 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub resource-type-registration", +) +class __CMDGroup(AAZCommandGroup): + """Manage resource type registration with providerhub. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/__init__.py new file mode 100644 index 00000000000..db73033039b --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/__init__.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._update import * +from ._wait import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_create.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_create.py new file mode 100644 index 00000000000..4ee21619432 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_create.py @@ -0,0 +1,3400 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub resource-type-registration create", +) +class Create(AAZCommand): + """Create a resource type. + + :example: resource-type-registration create + az providerhub resource-type-registration create --endpoints [{api-versions:[2019-01-01],locations:[WestUS]}] --regionality "Regional" --provider-namespace "{providerNamespace}" --resource-type "extensionresourcetype" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + _args_schema.resource_type = AAZStrArg( + options=["-n", "--name", "--resource-type"], + help="The resource type.", + required=True, + ) + + # define Arg Group "ExtensionOptions" + + _args_schema = cls._args_schema + _args_schema.resource_creation_begin = AAZObjectArg( + options=["--creation-begin", "--resource-creation-begin"], + arg_group="ExtensionOptions", + help="Extension options for handling the resource creation begin extension request.", + ) + + resource_creation_begin = cls._args_schema.resource_creation_begin + resource_creation_begin.request = AAZListArg( + options=["request"], + ) + resource_creation_begin.response = AAZListArg( + options=["response"], + ) + + request = cls._args_schema.resource_creation_begin.request + request.Element = AAZStrArg( + enum={"DoNotMergeExistingReadOnlyAndSecretProperties": "DoNotMergeExistingReadOnlyAndSecretProperties", "IncludeInternalMetadata": "IncludeInternalMetadata", "NotSpecified": "NotSpecified"}, + ) + + response = cls._args_schema.resource_creation_begin.response + response.Element = AAZStrArg( + enum={"DoNotMergeExistingReadOnlyAndSecretProperties": "DoNotMergeExistingReadOnlyAndSecretProperties", "IncludeInternalMetadata": "IncludeInternalMetadata", "NotSpecified": "NotSpecified"}, + ) + + # define Arg Group "FeaturesRule" + + _args_schema = cls._args_schema + _args_schema.required_features_policy = AAZStrArg( + options=["--req-features-policy", "--required-features-policy"], + arg_group="FeaturesRule", + help="The accepted values are \"Any\" or \"All\".", + enum={"All": "All", "Any": "Any"}, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.kind = AAZStrArg( + options=["--kind"], + arg_group="Properties", + help="Resource type registration kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + default="Managed", + enum={"Direct": "Direct", "Hybrid": "Hybrid", "Managed": "Managed"}, + ) + _args_schema.add_resource_list_target_locations = AAZBoolArg( + options=["--add-target-locations", "--add-resource-list-target-locations"], + arg_group="Properties", + help="Add resource list target locations?", + ) + _args_schema.additional_options = AAZStrArg( + options=["--additional-options"], + arg_group="Properties", + help="The additional options.", + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + _args_schema.allow_empty_role_assignments = AAZBoolArg( + options=["--allow-empty-role", "--allow-empty-role-assignments"], + arg_group="Properties", + help="Determines if empty role assignments are allowed.", + ) + _args_schema.allowed_resource_names = AAZListArg( + options=["--allowed-resource-names"], + arg_group="Properties", + ) + _args_schema.allowed_template_deployment_reference_actions = AAZListArg( + options=["--allowed-templ-actions", "--allowed-template-deployment-reference-actions"], + arg_group="Properties", + help="Allowed template deployment reference actions.", + ) + _args_schema.allowed_unauthorized_actions = AAZListArg( + options=["--aua", "--allowed-unauthorized-actions"], + arg_group="Properties", + help="The allowed unauthorized actions.", + ) + _args_schema.api_profiles = AAZListArg( + options=["--api-profiles"], + arg_group="Properties", + ) + _args_schema.async_operation_resource_type_name = AAZStrArg( + options=["--async-op-rt-name", "--async-operation-resource-type-name"], + arg_group="Properties", + help="The async operation resource type name.", + ) + _args_schema.async_timeout_rules = AAZListArg( + options=["--async-timeout-rules"], + arg_group="Properties", + help="Async timeout rules", + ) + _args_schema.authorization_action_mappings = AAZListArg( + options=["--auth-mappings", "--authorization-action-mappings"], + singular_options=["--auth-mapping", "--auth-mappings"], + arg_group="Properties", + help="Allows RP to override action verb for RBAC purposes at ARM.", + ) + _args_schema.availability_zone_rule = AAZObjectArg( + options=["--availability-zone-rule"], + arg_group="Properties", + ) + _args_schema.capacity_rule = AAZObjectArg( + options=["--capacity-rule"], + arg_group="Properties", + help="Capacity rule.", + ) + _args_schema.category = AAZStrArg( + options=["--category"], + arg_group="Properties", + help="The category.", + enum={"FreeForm": "FreeForm", "Internal": "Internal", "None": "None", "PureProxy": "PureProxy"}, + ) + _args_schema.check_name_availability_specifications = AAZObjectArg( + options=["--checkname-specs", "--check-name-availability-specifications"], + arg_group="Properties", + help="Name availability checks feature at the platform level.", + ) + _args_schema.common_api_versions = AAZListArg( + options=["--common-api-versions"], + arg_group="Properties", + help="Common API versions for the resource type.", + ) + _args_schema.cross_tenant_token_validation = AAZStrArg( + options=["--token-validation", "--cross-tenant-token-validation"], + arg_group="Properties", + help="The cross tenant token validation.", + enum={"EnsureSecureValidation": "EnsureSecureValidation", "PassthroughInsecureToken": "PassthroughInsecureToken"}, + ) + _args_schema.default_api_version = AAZStrArg( + options=["--default-api-version"], + arg_group="Properties", + help="The default API version for the endpoint.", + ) + _args_schema.disallowed_action_verbs = AAZListArg( + options=["--dav", "--disallowed-action-verbs"], + arg_group="Properties", + help="The disallowed action verbs.", + ) + _args_schema.disallowed_end_user_operations = AAZListArg( + options=["--disallowed-ops", "--disallowed-end-user-operations"], + arg_group="Properties", + help="The disallowed end user operations.", + ) + _args_schema.dsts_configuration = AAZObjectArg( + options=["--dsts-configuration"], + arg_group="Properties", + help="The DSTS configuration.", + ) + _args_schema.enable_async_operation = AAZBoolArg( + options=["--enable-async-operation"], + arg_group="Properties", + help="Indicates whether the async operation is enabled for this resource type.", + ) + _args_schema.enable_third_party_s2_s = AAZBoolArg( + options=["--enable-3p-s2s", "--enable-third-party-s2-s"], + arg_group="Properties", + help="Indicates whether third party s2s is enabled for this resource type.", + ) + _args_schema.endpoints = AAZListArg( + options=["--endpoints"], + singular_options=["--endpoint"], + arg_group="Properties", + help="The resource type endpoints.", + ) + _args_schema.extended_locations = AAZListArg( + options=["--extended-locations"], + singular_options=["--extended-location", "--extended-locations"], + arg_group="Properties", + help="The extended location options.", + ) + _args_schema.frontdoor_request_mode = AAZStrArg( + options=["--frontdoor-request-mode"], + arg_group="Properties", + help="The frontdoor request mode.", + enum={"NotSpecified": "NotSpecified", "UseManifest": "UseManifest"}, + ) + _args_schema.grouping_tag = AAZStrArg( + options=["--grouping-tag"], + arg_group="Properties", + help="Grouping tag.", + ) + _args_schema.identity_management = AAZObjectArg( + options=["--identity-management"], + arg_group="Properties", + help="MSI related settings.", + ) + _args_schema.is_pure_proxy = AAZBoolArg( + options=["--is-pure-proxy"], + arg_group="Properties", + help="Indicates whether this is a PureProxy resource type.", + ) + _args_schema.legacy_name = AAZStrArg( + options=["--legacy-name"], + arg_group="Properties", + help="The legacy name.", + ) + _args_schema.legacy_names = AAZListArg( + options=["--legacy-names"], + arg_group="Properties", + ) + _args_schema.legacy_policy = AAZObjectArg( + options=["--legacy-policy"], + arg_group="Properties", + ) + _args_schema.linked_access_checks = AAZListArg( + options=["--linked-access-checks"], + singular_options=["--linked-access-check", "--linked-access-checks"], + arg_group="Properties", + help="Enables additional Role Based Access Control (RBAC) checks on related resources.", + ) + _args_schema.linked_notification_rules = AAZListArg( + options=["--linked-notif-rules", "--linked-notification-rules"], + arg_group="Properties", + help="The linked notification rules.", + ) + _args_schema.linked_operation_rules = AAZListArg( + options=["--linked-operation-rules"], + arg_group="Properties", + ) + _args_schema.logging_rules = AAZListArg( + options=["--logging-rules"], + singular_options=["--logging-rule", "--logging-rules"], + arg_group="Properties", + help="The logging rules.", + ) + _args_schema.managed_resource_group_configuration = AAZObjectArg( + options=["--managed-rg-config", "--managed-resource-group-configuration"], + arg_group="Properties", + help="The managed resource group configuration.", + ) + _args_schema.management = AAZObjectArg( + options=["--management"], + arg_group="Properties", + ) + _args_schema.manifest_link = AAZStrArg( + options=["--manifest-link"], + arg_group="Properties", + help="Manifest link.", + ) + _args_schema.marketplace_options = AAZObjectArg( + options=["--marketplace-options"], + arg_group="Properties", + help="Marketplace options.", + ) + _args_schema.marketplace_type = AAZStrArg( + options=["--marketplace-type"], + arg_group="Properties", + help="The type of marketplace behavior for the resource type.", + enum={"AddOn": "AddOn", "Bypass": "Bypass", "NotSpecified": "NotSpecified", "Store": "Store"}, + ) + _args_schema.metadata = AAZDictArg( + options=["--metadata"], + arg_group="Properties", + ) + _args_schema.notifications = AAZListArg( + options=["--notifications"], + arg_group="Properties", + help="The notifications object.", + ) + _args_schema.on_behalf_of_tokens = AAZObjectArg( + options=["--on-behalf-of-tokens"], + arg_group="Properties", + ) + _args_schema.open_api_configuration = AAZObjectArg( + options=["--open-api-configuration"], + arg_group="Properties", + ) + _args_schema.policy_execution_type = AAZStrArg( + options=["--policy-execution-type"], + arg_group="Properties", + help="The policy execution type.", + enum={"BypassPolicies": "BypassPolicies", "ExecutePolicies": "ExecutePolicies", "ExpectPartialPutRequests": "ExpectPartialPutRequests", "NotSpecified": "NotSpecified"}, + ) + _args_schema.private_endpoint_configuration = AAZObjectArg( + options=["--priv-endpoint-config", "--private-endpoint-configuration"], + arg_group="Properties", + help="The private endpoint config.", + ) + _args_schema.quota_rule = AAZObjectArg( + options=["--quota-rule"], + arg_group="Properties", + ) + _args_schema.regionality = AAZStrArg( + options=["--regionality"], + arg_group="Properties", + help="The regionality of the resource type. Allowed values: Global, NotSpecified, Regional.", + enum={"Global": "Global", "NotSpecified": "NotSpecified", "Regional": "Regional"}, + ) + _args_schema.required_features = AAZListArg( + options=["--required-features"], + arg_group="Properties", + help="The required features.", + ) + _args_schema.resource_cache = AAZObjectArg( + options=["--resource-cache"], + arg_group="Properties", + help="Resource cache options.", + ) + _args_schema.resource_concurrency_control_options = AAZDictArg( + options=["--concurrency-options", "--resource-concurrency-control-options"], + arg_group="Properties", + help="The resource concurrency control options.", + ) + _args_schema.resource_deletion_policy = AAZStrArg( + options=["--deletion-policy", "--resource-deletion-policy"], + arg_group="Properties", + help="The resource deletion policy.", + enum={"CascadeDeleteAll": "CascadeDeleteAll", "CascadeDeleteProxyOnlyChildren": "CascadeDeleteProxyOnlyChildren", "NotSpecified": "NotSpecified"}, + ) + _args_schema.resource_graph_configuration = AAZObjectArg( + options=["--resource-graph-config", "--resource-graph-configuration"], + arg_group="Properties", + help="The resource graph configuration.", + ) + _args_schema.resource_management_options = AAZObjectArg( + options=["--resource-mgmt-options", "--resource-management-options"], + arg_group="Properties", + help="Resource management options.", + ) + _args_schema.resource_move_policy = AAZObjectArg( + options=["--resource-move-policy"], + arg_group="Properties", + help="The resource move policy.", + ) + _args_schema.resource_provider_authorization_rules = AAZObjectArg( + options=["--rp-auth-rules", "--resource-provider-authorization-rules"], + arg_group="Properties", + help="The resource provider authorization rules.", + ) + _args_schema.resource_query_management = AAZObjectArg( + options=["--resource-query-mgmt", "--resource-query-management"], + arg_group="Properties", + help="Resource query management options.", + ) + _args_schema.resource_sub_type = AAZStrArg( + options=["--resource-sub-type"], + arg_group="Properties", + help="The resource sub type.", + enum={"AsyncOperation": "AsyncOperation", "NotSpecified": "NotSpecified"}, + ) + _args_schema.resource_type_common_attribute_management = AAZObjectArg( + options=["--rt-common-mgmt", "--resource-type-common-attribute-management"], + arg_group="Properties", + help="Resource type common attribute management.", + ) + _args_schema.resource_validation = AAZStrArg( + options=["--resource-validation"], + arg_group="Properties", + help="The resource validation.", + enum={"NotSpecified": "NotSpecified", "ProfaneWords": "ProfaneWords", "ReservedWords": "ReservedWords"}, + ) + _args_schema.routing_rule = AAZObjectArg( + options=["--routing-rule"], + arg_group="Properties", + help="Routing rule.", + ) + _args_schema.routing_type = AAZStrArg( + options=["--routing-type"], + arg_group="Properties", + help="The resource routing type.", + enum={"CascadeExtension": "CascadeExtension", "Default": "Default", "Extension": "Extension", "Failover": "Failover", "Fanout": "Fanout", "HostBased": "HostBased", "LocationBased": "LocationBased", "ProxyOnly": "ProxyOnly", "Tenant": "Tenant"}, + ) + _args_schema.service_tree_infos = AAZListArg( + options=["--service-tree-infos"], + singular_options=["--service-tree-info", "--service-tree-infos"], + arg_group="Properties", + help="The ServiceTree information for the resource provider.", + ) + _args_schema.sku_link = AAZStrArg( + options=["--sku-link"], + arg_group="Properties", + help="The sku link.", + ) + _args_schema.subscription_state_rules = AAZListArg( + options=["--sub-state-rules", "--subscription-state-rules"], + singular_options=["--sub-state-rule", "--sub-state-rules"], + arg_group="Properties", + help="The subscription state rules.", + ) + _args_schema.supports_tags = AAZBoolArg( + options=["--supports-tags"], + arg_group="Properties", + help="Determines if tags are supported.", + ) + _args_schema.swagger_specifications = AAZListArg( + options=["--swagger-specifications"], + singular_options=["--swagger-specification", "--swagger-specifications"], + arg_group="Properties", + help="The swagger spec of the resource type.", + ) + _args_schema.template_deployment_options = AAZObjectArg( + options=["--tmplt-deploy-opt", "--template-deployment-options"], + arg_group="Properties", + help="The template deployment options.", + ) + _args_schema.template_deployment_policy = AAZObjectArg( + options=["--tmplt-deploy-policy", "--template-deployment-policy"], + arg_group="Properties", + help="The template deployment policy.", + ) + _args_schema.throttling_rules = AAZListArg( + options=["--throttling-rules"], + singular_options=["--throttling-rule", "--throttling-rules"], + arg_group="Properties", + help="Enables setting individual limits for different actions in terms of number of requests or number of resources (for collection read requests only).", + ) + _args_schema.token_auth_configuration = AAZObjectArg( + options=["--token-auth-config", "--token-auth-configuration"], + arg_group="Properties", + help="The token auth configuration.", + ) + cls._build_args_token_auth_configuration_create(_args_schema.token_auth_configuration) + + allowed_resource_names = cls._args_schema.allowed_resource_names + allowed_resource_names.Element = AAZObjectArg() + + _element = cls._args_schema.allowed_resource_names.Element + _element.get_action_verb = AAZStrArg( + options=["get-action-verb"], + help="Get action verb.", + ) + _element.name = AAZStrArg( + options=["name"], + help="Resource name.", + ) + + allowed_template_deployment_reference_actions = cls._args_schema.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrArg() + + allowed_unauthorized_actions = cls._args_schema.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrArg() + + api_profiles = cls._args_schema.api_profiles + api_profiles.Element = AAZObjectArg() + + _element = cls._args_schema.api_profiles.Element + _element.api_version = AAZStrArg( + options=["api-version"], + help="Api version.", + ) + _element.profile_version = AAZStrArg( + options=["profile-version"], + help="Profile version.", + ) + + async_timeout_rules = cls._args_schema.async_timeout_rules + async_timeout_rules.Element = AAZObjectArg() + + _element = cls._args_schema.async_timeout_rules.Element + _element.action_name = AAZStrArg( + options=["action-name"], + ) + _element.timeout = AAZStrArg( + options=["timeout"], + ) + + authorization_action_mappings = cls._args_schema.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectArg() + + _element = cls._args_schema.authorization_action_mappings.Element + _element.desired = AAZStrArg( + options=["desired"], + ) + _element.original = AAZStrArg( + options=["original"], + ) + + availability_zone_rule = cls._args_schema.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrArg( + options=["availability-zone-policy"], + enum={"MultiZoned": "MultiZoned", "NotSpecified": "NotSpecified", "SingleZoned": "SingleZoned"}, + ) + + capacity_rule = cls._args_schema.capacity_rule + capacity_rule.capacity_policy = AAZStrArg( + options=["capacity-policy"], + help="Capacity policy.", + enum={"Default": "Default", "Restricted": "Restricted"}, + ) + capacity_rule.sku_alias = AAZStrArg( + options=["sku-alias"], + help="Sku alias", + ) + + check_name_availability_specifications = cls._args_schema.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolArg( + options=["enable-default-validation"], + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListArg( + options=["resource-types-with-custom-validation"], + ) + + resource_types_with_custom_validation = cls._args_schema.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrArg() + + common_api_versions = cls._args_schema.common_api_versions + common_api_versions.Element = AAZStrArg() + + disallowed_action_verbs = cls._args_schema.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrArg() + + disallowed_end_user_operations = cls._args_schema.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrArg() + + dsts_configuration = cls._args_schema.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + required=True, + ) + + endpoints = cls._args_schema.endpoints + endpoints.Element = AAZObjectArg() + + _element = cls._args_schema.endpoints.Element + _element.api_version = AAZStrArg( + options=["api-version"], + help="Api version.", + ) + _element.api_versions = AAZListArg( + options=["api-versions"], + ) + _element.data_boundary = AAZStrArg( + options=["data-boundary"], + enum={"EU": "EU", "Global": "Global", "NotDefined": "NotDefined", "US": "US"}, + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + ) + _element.enabled = AAZBoolArg( + options=["enabled"], + ) + _element.endpoint_type = AAZStrArg( + options=["endpoint-type"], + enum={"Canary": "Canary", "NotSpecified": "NotSpecified", "Production": "Production", "TestInProduction": "TestInProduction"}, + ) + _element.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + ) + _element.extensions = AAZListArg( + options=["extensions"], + ) + _element.features_rule = AAZObjectArg( + options=["features-rule"], + ) + _element.kind = AAZStrArg( + options=["kind"], + help="Resource type endpoint kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + default="Managed", + enum={"Direct": "Direct", "Managed": "Managed"}, + ) + _element.locations = AAZListArg( + options=["locations"], + singular_options=["location"], + help="The location.", + ) + _element.required_features = AAZListArg( + options=["required-features"], + singular_options=["required-feature", "required-features"], + help="The required features.", + ) + _element.sku_link = AAZStrArg( + options=["sku-link"], + ) + _element.timeout = AAZDurationArg( + options=["timeout"], + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + ) + cls._build_args_token_auth_configuration_create(_element.token_auth_configuration) + _element.zones = AAZListArg( + options=["zones"], + help="List of zones.", + ) + + api_versions = cls._args_schema.endpoints.Element.api_versions + api_versions.Element = AAZStrArg() + + dsts_configuration = cls._args_schema.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + required=True, + ) + + extensions = cls._args_schema.endpoints.Element.extensions + extensions.Element = AAZObjectArg() + + _element = cls._args_schema.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + ) + _element.extension_categories = AAZListArg( + options=["extension-categories"], + ) + _element.timeout = AAZDurationArg( + options=["timeout"], + ) + + extension_categories = cls._args_schema.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrArg( + enum={"BestMatchOperationBegin": "BestMatchOperationBegin", "NotSpecified": "NotSpecified", "ResourceCreationBegin": "ResourceCreationBegin", "ResourceCreationCompleted": "ResourceCreationCompleted", "ResourceCreationValidate": "ResourceCreationValidate", "ResourceDeletionBegin": "ResourceDeletionBegin", "ResourceDeletionCompleted": "ResourceDeletionCompleted", "ResourceDeletionValidate": "ResourceDeletionValidate", "ResourceMoveBegin": "ResourceMoveBegin", "ResourceMoveCompleted": "ResourceMoveCompleted", "ResourcePatchBegin": "ResourcePatchBegin", "ResourcePatchCompleted": "ResourcePatchCompleted", "ResourcePatchValidate": "ResourcePatchValidate", "ResourcePostAction": "ResourcePostAction", "ResourceReadBegin": "ResourceReadBegin", "ResourceReadValidate": "ResourceReadValidate", "SubscriptionLifecycleNotification": "SubscriptionLifecycleNotification", "SubscriptionLifecycleNotificationDeletion": "SubscriptionLifecycleNotificationDeletion"}, + ) + + features_rule = cls._args_schema.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + required=True, + enum={"All": "All", "Any": "Any"}, + ) + + locations = cls._args_schema.endpoints.Element.locations + locations.Element = AAZStrArg() + + required_features = cls._args_schema.endpoints.Element.required_features + required_features.Element = AAZStrArg() + + zones = cls._args_schema.endpoints.Element.zones + zones.Element = AAZStrArg() + + extended_locations = cls._args_schema.extended_locations + extended_locations.Element = AAZObjectArg() + + _element = cls._args_schema.extended_locations.Element + _element.supported_policy = AAZStrArg( + options=["supported-policy"], + ) + _element.type = AAZStrArg( + options=["type"], + ) + + identity_management = cls._args_schema.identity_management + identity_management.application_id = AAZStrArg( + options=["application-id"], + help="The application ID that handles the identity.", + ) + identity_management.application_ids = AAZListArg( + options=["application-ids"], + ) + identity_management.delegation_app_ids = AAZListArg( + options=["delegation-app-ids"], + ) + identity_management.type = AAZStrArg( + options=["type"], + enum={"Actor": "Actor", "DelegatedResourceIdentity": "DelegatedResourceIdentity", "NotSpecified": "NotSpecified", "SystemAssigned": "SystemAssigned", "UserAssigned": "UserAssigned"}, + ) + + application_ids = cls._args_schema.identity_management.application_ids + application_ids.Element = AAZStrArg() + + delegation_app_ids = cls._args_schema.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrArg() + + legacy_names = cls._args_schema.legacy_names + legacy_names.Element = AAZStrArg() + + legacy_policy = cls._args_schema.legacy_policy + legacy_policy.disallowed_conditions = AAZListArg( + options=["disallowed-conditions"], + ) + legacy_policy.disallowed_legacy_operations = AAZListArg( + options=["disallowed-legacy-operations"], + ) + + disallowed_conditions = cls._args_schema.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectArg() + + _element = cls._args_schema.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListArg( + options=["disallowed-legacy-operations"], + ) + _element.feature = AAZStrArg( + options=["feature"], + help="Feature string.", + ) + + disallowed_legacy_operations = cls._args_schema.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrArg( + enum={"Action": "Action", "AzureAsyncOperationWaiting": "AzureAsyncOperationWaiting", "Create": "Create", "Delete": "Delete", "DeploymentCleanup": "DeploymentCleanup", "EvaluateDeploymentOutput": "EvaluateDeploymentOutput", "NotSpecified": "NotSpecified", "Read": "Read", "ResourceCacheWaiting": "ResourceCacheWaiting", "Waiting": "Waiting"}, + ) + + disallowed_legacy_operations = cls._args_schema.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrArg( + enum={"Action": "Action", "AzureAsyncOperationWaiting": "AzureAsyncOperationWaiting", "Create": "Create", "Delete": "Delete", "DeploymentCleanup": "DeploymentCleanup", "EvaluateDeploymentOutput": "EvaluateDeploymentOutput", "NotSpecified": "NotSpecified", "Read": "Read", "ResourceCacheWaiting": "ResourceCacheWaiting", "Waiting": "Waiting"}, + ) + + linked_access_checks = cls._args_schema.linked_access_checks + linked_access_checks.Element = AAZObjectArg() + + _element = cls._args_schema.linked_access_checks.Element + _element.action_name = AAZStrArg( + options=["action-name"], + help="The action name.", + ) + _element.linked_action = AAZStrArg( + options=["linked-action"], + help="The linked action.", + ) + _element.linked_action_verb = AAZStrArg( + options=["linked-action-verb"], + help="The linked action verb.", + ) + _element.linked_property = AAZStrArg( + options=["linked-property"], + help="The linked property.", + ) + _element.linked_type = AAZStrArg( + options=["linked-type"], + help="The linked type.", + ) + + linked_notification_rules = cls._args_schema.linked_notification_rules + linked_notification_rules.Element = AAZObjectArg() + + _element = cls._args_schema.linked_notification_rules.Element + _element.actions = AAZListArg( + options=["actions"], + ) + _element.actions_on_failed_operation = AAZListArg( + options=["actions-on-failed-operation"], + ) + _element.fast_path_actions = AAZListArg( + options=["fast-path-actions"], + ) + _element.fast_path_actions_on_failed_operation = AAZListArg( + options=["fast-path-actions-on-failed-operation"], + ) + _element.linked_notification_timeout = AAZDurationArg( + options=["linked-notification-timeout"], + ) + + actions = cls._args_schema.linked_notification_rules.Element.actions + actions.Element = AAZStrArg() + + actions_on_failed_operation = cls._args_schema.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrArg() + + fast_path_actions = cls._args_schema.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrArg() + + fast_path_actions_on_failed_operation = cls._args_schema.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrArg() + + linked_operation_rules = cls._args_schema.linked_operation_rules + linked_operation_rules.Element = AAZObjectArg() + + _element = cls._args_schema.linked_operation_rules.Element + _element.depends_on_types = AAZListArg( + options=["depends-on-types"], + help="Depends on types.", + ) + _element.linked_action = AAZStrArg( + options=["linked-action"], + required=True, + enum={"Blocked": "Blocked", "Enabled": "Enabled", "NotSpecified": "NotSpecified", "Validate": "Validate"}, + ) + _element.linked_operation = AAZStrArg( + options=["linked-operation"], + required=True, + enum={"CrossResourceGroupResourceMove": "CrossResourceGroupResourceMove", "CrossSubscriptionResourceMove": "CrossSubscriptionResourceMove", "None": "None"}, + ) + + depends_on_types = cls._args_schema.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrArg() + + logging_rules = cls._args_schema.logging_rules + logging_rules.Element = AAZObjectArg() + + _element = cls._args_schema.logging_rules.Element + _element.action = AAZStrArg( + options=["action"], + required=True, + ) + _element.detail_level = AAZStrArg( + options=["detail-level"], + required=True, + enum={"Body": "Body", "None": "None"}, + ) + _element.direction = AAZStrArg( + options=["direction"], + required=True, + enum={"None": "None", "Request": "Request", "Response": "Response"}, + ) + _element.hidden_property_paths = AAZObjectArg( + options=["hidden-property-paths"], + ) + + hidden_property_paths = cls._args_schema.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListArg( + options=["hidden-paths-on-request"], + ) + hidden_property_paths.hidden_paths_on_response = AAZListArg( + options=["hidden-paths-on-response"], + ) + + hidden_paths_on_request = cls._args_schema.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrArg() + + hidden_paths_on_response = cls._args_schema.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrArg() + + managed_resource_group_configuration = cls._args_schema.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListArg( + options=["application-ids"], + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectArg( + options=["deny-assignment-configuration"], + ) + managed_resource_group_configuration.enabled = AAZBoolArg( + options=["enabled"], + ) + managed_resource_group_configuration.resource_group_location_override = AAZStrArg( + options=["resource-group-location-override"], + ) + + application_ids = cls._args_schema.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrArg() + + deny_assignment_configuration = cls._args_schema.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolArg( + options=["enabled"], + ) + deny_assignment_configuration.not_actions = AAZListArg( + options=["not-actions"], + ) + + not_actions = cls._args_schema.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrArg() + + management = cls._args_schema.management + management.authorization_owners = AAZListArg( + options=["authorization-owners"], + help="The authorization owners.", + ) + management.canary_manifest_owners = AAZListArg( + options=["canary-manifest-owners"], + help="List of manifest owners for canary.", + ) + management.error_response_message_options = AAZObjectArg( + options=["message-options", "error-response-message-options"], + help="Options for error response messages.", + ) + management.expedited_rollout_metadata = AAZObjectArg( + options=["rollout-metadata", "expedited-rollout-metadata"], + help="Metadata for expedited rollout.", + ) + management.expedited_rollout_submitters = AAZListArg( + options=["rollout-submitters", "expedited-rollout-submitters"], + help="List of expedited rollout submitters.", + ) + management.incident_contact_email = AAZStrArg( + options=["incident-contact-email"], + help="The email address of contacts for incidents related to the RP.", + ) + management.incident_routing_service = AAZStrArg( + options=["incident-service", "incident-routing-service"], + help="The service in IcM when creating or transferring incidents to the RP.", + ) + management.incident_routing_team = AAZStrArg( + options=["incident-team", "incident-routing-team"], + help="The team in IcM when creating or transferring incidents to the RP.", + ) + management.manifest_owners = AAZListArg( + options=["manifest-owners"], + singular_options=["manifest-owner"], + help="Specifies an array of required ACIS claims to modify the resource provider's manifest content via ACIS.", + ) + management.pc_code = AAZStrArg( + options=["pc-code"], + help="The profit center code for the subscription.", + ) + management.profit_center_program_id = AAZStrArg( + options=["pc-program-id", "profit-center-program-id"], + help="The profit center program id for the subscription.", + ) + management.resource_access_policy = AAZStrArg( + options=["resource-access-policy"], + help="The resource access policy.", + enum={"AcisActionAllowed": "AcisActionAllowed", "AcisReadAllowed": "AcisReadAllowed", "NotSpecified": "NotSpecified"}, + ) + management.resource_access_roles = AAZListArg( + options=["resource-access-roles"], + help="The resource access roles.", + ) + management.schema_owners = AAZListArg( + options=["schema-owners"], + singular_options=["schema-owner", "schema-owners"], + help="Specifies an array of needed ACIS claims to modify the resource provider schema via ACIS.", + ) + management.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + ) + + authorization_owners = cls._args_schema.management.authorization_owners + authorization_owners.Element = AAZStrArg() + + canary_manifest_owners = cls._args_schema.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrArg() + + error_response_message_options = cls._args_schema.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrArg( + options=["server-failure-response-message-type"], + help="Type of server failure response message.", + enum={"NotSpecified": "NotSpecified", "OutageReporting": "OutageReporting"}, + ) + + expedited_rollout_metadata = cls._args_schema.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolArg( + options=["enabled"], + help="Expedited rollout enabled?", + ) + expedited_rollout_metadata.expedited_rollout_intent = AAZStrArg( + options=["expedited-rollout-intent"], + help="Expedited rollout intent.", + enum={"Hotfix": "Hotfix", "NotSpecified": "NotSpecified"}, + ) + + expedited_rollout_submitters = cls._args_schema.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrArg() + + manifest_owners = cls._args_schema.management.manifest_owners + manifest_owners.Element = AAZStrArg() + + resource_access_roles = cls._args_schema.management.resource_access_roles + resource_access_roles.Element = AAZObjectArg() + + _element = cls._args_schema.management.resource_access_roles.Element + _element.actions = AAZListArg( + options=["actions"], + ) + _element.allowed_group_claims = AAZListArg( + options=["allowed-group-claims"], + ) + + actions = cls._args_schema.management.resource_access_roles.Element.actions + actions.Element = AAZStrArg() + + allowed_group_claims = cls._args_schema.management.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrArg() + + schema_owners = cls._args_schema.management.schema_owners + schema_owners.Element = AAZStrArg() + + service_tree_infos = cls._args_schema.management.service_tree_infos + service_tree_infos.Element = AAZObjectArg() + cls._build_args_service_tree_info_create(service_tree_infos.Element) + + marketplace_options = cls._args_schema.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolArg( + options=["add-on-plan-conversion-allowed"], + help="Add-on plan conversion allowed.", + ) + + metadata = cls._args_schema.metadata + metadata.Element = AAZFreeFormDictArg( + blank={}, + ) + + notifications = cls._args_schema.notifications + notifications.Element = AAZObjectArg() + + _element = cls._args_schema.notifications.Element + _element.notification_type = AAZStrArg( + options=["notification-type"], + enum={"SubscriptionNotification": "SubscriptionNotification", "Unspecified": "Unspecified"}, + ) + _element.skip_notifications = AAZStrArg( + options=["skip-notifications"], + enum={"Disabled": "Disabled", "Enabled": "Enabled", "Unspecified": "Unspecified"}, + ) + + on_behalf_of_tokens = cls._args_schema.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrArg( + options=["action-name"], + ) + on_behalf_of_tokens.life_time = AAZStrArg( + options=["life-time"], + ) + + open_api_configuration = cls._args_schema.open_api_configuration + open_api_configuration.validation = AAZObjectArg( + options=["validation"], + ) + + validation = cls._args_schema.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolArg( + options=["allow-noncompliant-collection-response"], + help="Indicates whether a non compliance response is allowed for a LIST call", + ) + + private_endpoint_configuration = cls._args_schema.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListArg( + options=["group-connectivity-information"], + help="The list of group connectivity information.", + required=True, + ) + private_endpoint_configuration.min_api_version = AAZStrArg( + options=["min-api-version"], + help="The first api version that support private endpoint.", + required=True, + ) + + group_connectivity_information = cls._args_schema.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectArg() + + _element = cls._args_schema.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrArg( + options=["group-id"], + help="The group id.", + required=True, + ) + _element.redirect_map_id = AAZStrArg( + options=["redirect-map-id"], + help="The redirect map id.", + ) + _element.required_members = AAZListArg( + options=["required-members"], + help="List of required members for the group id.", + required=True, + ) + _element.required_zone_names = AAZListArg( + options=["required-zone-names"], + help="List of required zone names for the group id.", + required=True, + ) + + required_members = cls._args_schema.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrArg() + + required_zone_names = cls._args_schema.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrArg() + + quota_rule = cls._args_schema.quota_rule + quota_rule.location_rules = AAZListArg( + options=["location-rules"], + ) + quota_rule.quota_policy = AAZStrArg( + options=["quota-policy"], + help="Quota policy.", + enum={"Default": "Default", "None": "None", "Restricted": "Restricted"}, + ) + quota_rule.required_features = AAZListArg( + options=["required-features"], + ) + + location_rules = cls._args_schema.quota_rule.location_rules + location_rules.Element = AAZObjectArg() + + _element = cls._args_schema.quota_rule.location_rules.Element + _element.location = AAZStrArg( + options=["location"], + ) + _element.policy = AAZStrArg( + options=["policy"], + help="Quota policy.", + enum={"Default": "Default", "None": "None", "Restricted": "Restricted"}, + ) + _element.quota_id = AAZStrArg( + options=["quota-id"], + ) + + required_features = cls._args_schema.quota_rule.required_features + required_features.Element = AAZStrArg() + + required_features = cls._args_schema.required_features + required_features.Element = AAZStrArg() + + resource_cache = cls._args_schema.resource_cache + resource_cache.enable_resource_cache = AAZBoolArg( + options=["enable-resource-cache"], + help="Enable resource cache.", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrArg( + options=["resource-cache-expiration-timespan"], + help="Resource cache expiration timespan.", + ) + + resource_concurrency_control_options = cls._args_schema.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectArg() + + _element = cls._args_schema.resource_concurrency_control_options.Element + _element.policy = AAZStrArg( + options=["policy"], + enum={"NotSpecified": "NotSpecified", "SynchronizeBeginExtension": "SynchronizeBeginExtension"}, + ) + + resource_graph_configuration = cls._args_schema.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrArg( + options=["api-version"], + ) + resource_graph_configuration.enabled = AAZBoolArg( + options=["enabled"], + ) + + resource_management_options = cls._args_schema.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectArg( + options=["batch-provisioning-support"], + help="Batch provisioning support.", + ) + resource_management_options.delete_dependencies = AAZListArg( + options=["delete-dependencies"], + help="Delete dependencies.", + ) + resource_management_options.nested_provisioning_support = AAZObjectArg( + options=["nested-provisioning-support"], + help="Nested provisioning support.", + ) + + batch_provisioning_support = cls._args_schema.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrArg( + options=["supported-operations"], + help="Supported operations.", + enum={"Delete": "Delete", "Get": "Get", "NotSpecified": "NotSpecified"}, + ) + + delete_dependencies = cls._args_schema.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectArg() + + _element = cls._args_schema.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrArg( + options=["linked-property"], + help="Linked property.", + ) + _element.linked_type = AAZStrArg( + options=["linked-type"], + help="Linked type.", + ) + _element.required_features = AAZListArg( + options=["required-features"], + help="Required features.", + ) + + required_features = cls._args_schema.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrArg() + + nested_provisioning_support = cls._args_schema.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrArg( + options=["minimum-api-version"], + help="Minimum API version.", + ) + + resource_move_policy = cls._args_schema.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolArg( + options=["cross-resource-group-move-enabled"], + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolArg( + options=["cross-subscription-move-enabled"], + ) + resource_move_policy.validation_required = AAZBoolArg( + options=["validation-required"], + ) + + resource_provider_authorization_rules = cls._args_schema.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectArg( + options=["async-operation-polling-rules"], + ) + + async_operation_polling_rules = cls._args_schema.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrArg( + options=["additional-options"], + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + async_operation_polling_rules.authorization_actions = AAZListArg( + options=["authorization-actions"], + ) + + authorization_actions = cls._args_schema.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrArg() + + resource_query_management = cls._args_schema.resource_query_management + resource_query_management.filter_option = AAZStrArg( + options=["filter-option"], + help="Filter option.", + enum={"EnableSubscriptionFilterOnTenant": "EnableSubscriptionFilterOnTenant", "NotSpecified": "NotSpecified"}, + ) + + resource_type_common_attribute_management = cls._args_schema.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrArg( + options=["common-api-versions-merge-mode"], + help="Common api versions merge mode.", + enum={"Merge": "Merge", "Overwrite": "Overwrite"}, + ) + + routing_rule = cls._args_schema.routing_rule + routing_rule.host_resource_type = AAZStrArg( + options=["host-resource-type"], + help="Hosted resource type.", + ) + + service_tree_infos = cls._args_schema.service_tree_infos + service_tree_infos.Element = AAZObjectArg() + cls._build_args_service_tree_info_create(service_tree_infos.Element) + + subscription_state_rules = cls._args_schema.subscription_state_rules + subscription_state_rules.Element = AAZObjectArg() + + _element = cls._args_schema.subscription_state_rules.Element + _element.allowed_actions = AAZListArg( + options=["allowed-actions"], + ) + _element.state = AAZStrArg( + options=["state"], + enum={"Deleted": "Deleted", "Disabled": "Disabled", "Enabled": "Enabled", "NotDefined": "NotDefined", "PastDue": "PastDue", "Warned": "Warned"}, + ) + + allowed_actions = cls._args_schema.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrArg() + + swagger_specifications = cls._args_schema.swagger_specifications + swagger_specifications.Element = AAZObjectArg() + + _element = cls._args_schema.swagger_specifications.Element + _element.api_versions = AAZListArg( + options=["api-versions"], + ) + _element.swagger_spec_folder_uri = AAZStrArg( + options=["swagger-spec-folder-uri"], + ) + + api_versions = cls._args_schema.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrArg() + + template_deployment_options = cls._args_schema.template_deployment_options + template_deployment_options.preflight_options = AAZListArg( + options=["preflight-options"], + ) + template_deployment_options.preflight_supported = AAZBoolArg( + options=["preflight-supported"], + ) + + preflight_options = cls._args_schema.template_deployment_options.preflight_options + preflight_options.Element = AAZStrArg( + enum={"ContinueDeploymentOnFailure": "ContinueDeploymentOnFailure", "DefaultValidationOnly": "DefaultValidationOnly", "None": "None"}, + ) + + template_deployment_policy = cls._args_schema.template_deployment_policy + template_deployment_policy.capabilities = AAZStrArg( + options=["capabilities"], + required=True, + enum={"Default": "Default", "Preflight": "Preflight"}, + ) + template_deployment_policy.preflight_notifications = AAZStrArg( + options=["preflight-notifications"], + enum={"None": "None", "UnregisteredSubscriptions": "UnregisteredSubscriptions"}, + ) + template_deployment_policy.preflight_options = AAZStrArg( + options=["preflight-options"], + required=True, + enum={"DeploymentRequests": "DeploymentRequests", "None": "None", "RegisteredOnly": "RegisteredOnly", "TestOnly": "TestOnly", "ValidationRequests": "ValidationRequests"}, + ) + + throttling_rules = cls._args_schema.throttling_rules + throttling_rules.Element = AAZObjectArg() + + _element = cls._args_schema.throttling_rules.Element + _element.action = AAZStrArg( + options=["action"], + required=True, + ) + _element.application_id = AAZListArg( + options=["application-id"], + ) + _element.metrics = AAZListArg( + options=["metrics"], + required=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + + application_id = cls._args_schema.throttling_rules.Element.application_id + application_id.Element = AAZStrArg() + + metrics = cls._args_schema.throttling_rules.Element.metrics + metrics.Element = AAZObjectArg() + + _element = cls._args_schema.throttling_rules.Element.metrics.Element + _element.interval = AAZDurationArg( + options=["interval"], + ) + _element.limit = AAZIntArg( + options=["limit"], + required=True, + ) + _element.type = AAZStrArg( + options=["type"], + required=True, + enum={"NotSpecified": "NotSpecified", "NumberOfRequests": "NumberOfRequests", "NumberOfResources": "NumberOfResources"}, + ) + + required_features = cls._args_schema.throttling_rules.Element.required_features + required_features.Element = AAZStrArg() + + # define Arg Group "RequestHeaderOptions" + + _args_schema = cls._args_schema + _args_schema.opt_in_headers = AAZStrArg( + options=["--opt-in-headers"], + arg_group="RequestHeaderOptions", + help="The opt-in headers.", + enum={"ClientGroupMembership": "ClientGroupMembership", "ClientPrincipalNameEncoded": "ClientPrincipalNameEncoded", "MSIResourceIdEncoded": "MSIResourceIdEncoded", "ManagementGroupAncestorsEncoded": "ManagementGroupAncestorsEncoded", "NotSpecified": "NotSpecified", "PrivateLinkId": "PrivateLinkId", "PrivateLinkResourceId": "PrivateLinkResourceId", "PrivateLinkVnetTrafficTag": "PrivateLinkVnetTrafficTag", "ResourceGroupLocation": "ResourceGroupLocation", "SignedAuxiliaryTokens": "SignedAuxiliaryTokens", "SignedUserToken": "SignedUserToken", "UnboundedClientGroupMembership": "UnboundedClientGroupMembership"}, + ) + _args_schema.opt_out_headers = AAZStrArg( + options=["--opt-out-headers"], + arg_group="RequestHeaderOptions", + help="The opt-out headers.", + enum={"NotSpecified": "NotSpecified", "SystemDataCreatedByLastModifiedBy": "SystemDataCreatedByLastModifiedBy"}, + ) + + # define Arg Group "SubscriptionLifecycleNotificationSpecifications" + + _args_schema = cls._args_schema + _args_schema.soft_delete_ttl = AAZDurationArg( + options=["--soft-delete-ttl"], + arg_group="SubscriptionLifecycleNotificationSpecifications", + help="The soft delete time to live.", + ) + _args_schema.subscription_state_override_actions = AAZListArg( + options=["--override-actions", "--subscription-state-override-actions"], + arg_group="SubscriptionLifecycleNotificationSpecifications", + help="The subscription state override actions.", + ) + + subscription_state_override_actions = cls._args_schema.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectArg() + + _element = cls._args_schema.subscription_state_override_actions.Element + _element.action = AAZStrArg( + options=["action"], + required=True, + enum={"BillingCancellation": "BillingCancellation", "DeleteAllResources": "DeleteAllResources", "NoOp": "NoOp", "NotDefined": "NotDefined", "SoftDeleteAllResources": "SoftDeleteAllResources", "UndoSoftDelete": "UndoSoftDelete"}, + ) + _element.state = AAZStrArg( + options=["state"], + required=True, + enum={"Deleted": "Deleted", "Registered": "Registered", "Suspended": "Suspended", "SuspendedToDeleted": "SuspendedToDeleted", "SuspendedToRegistered": "SuspendedToRegistered", "SuspendedToUnregistered": "SuspendedToUnregistered", "SuspendedToWarned": "SuspendedToWarned", "Unregistered": "Unregistered", "Warned": "Warned", "WarnedToDeleted": "WarnedToDeleted", "WarnedToRegistered": "WarnedToRegistered", "WarnedToSuspended": "WarnedToSuspended", "WarnedToUnregistered": "WarnedToUnregistered"}, + ) + return cls._args_schema + + _args_service_tree_info_create = None + + @classmethod + def _build_args_service_tree_info_create(cls, _schema): + if cls._args_service_tree_info_create is not None: + _schema.component_id = cls._args_service_tree_info_create.component_id + _schema.readiness = cls._args_service_tree_info_create.readiness + _schema.service_id = cls._args_service_tree_info_create.service_id + return + + cls._args_service_tree_info_create = AAZObjectArg() + + service_tree_info_create = cls._args_service_tree_info_create + service_tree_info_create.component_id = AAZStrArg( + options=["component-id"], + ) + service_tree_info_create.readiness = AAZStrArg( + options=["readiness"], + enum={"ClosingDown": "ClosingDown", "Deprecated": "Deprecated", "GA": "GA", "InDevelopment": "InDevelopment", "InternalOnly": "InternalOnly", "PrivatePreview": "PrivatePreview", "PublicPreview": "PublicPreview", "RemovedFromARM": "RemovedFromARM", "Retired": "Retired"}, + ) + service_tree_info_create.service_id = AAZStrArg( + options=["service-id"], + ) + + _schema.component_id = cls._args_service_tree_info_create.component_id + _schema.readiness = cls._args_service_tree_info_create.readiness + _schema.service_id = cls._args_service_tree_info_create.service_id + + _args_token_auth_configuration_create = None + + @classmethod + def _build_args_token_auth_configuration_create(cls, _schema): + if cls._args_token_auth_configuration_create is not None: + _schema.authentication_scheme = cls._args_token_auth_configuration_create.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_create.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_create.signed_request_scope + return + + cls._args_token_auth_configuration_create = AAZObjectArg() + + token_auth_configuration_create = cls._args_token_auth_configuration_create + token_auth_configuration_create.authentication_scheme = AAZStrArg( + options=["authentication-scheme"], + enum={"Bearer": "Bearer", "PoP": "PoP"}, + ) + token_auth_configuration_create.disable_certificate_authentication_fallback = AAZBoolArg( + options=["disable-certificate-authentication-fallback"], + ) + token_auth_configuration_create.signed_request_scope = AAZStrArg( + options=["signed-request-scope"], + enum={"Endpoint": "Endpoint", "ResourceUri": "ResourceUri"}, + ) + + _schema.authentication_scheme = cls._args_token_auth_configuration_create.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_create.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_create.signed_request_scope + + def _execute_operations(self): + self.pre_operations() + yield self.ResourceTypeRegistrationsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ResourceTypeRegistrationsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("kind", AAZStrType, ".kind") + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("addResourceListTargetLocations", AAZBoolType, ".add_resource_list_target_locations") + properties.set_prop("additionalOptions", AAZStrType, ".additional_options") + properties.set_prop("allowEmptyRoleAssignments", AAZBoolType, ".allow_empty_role_assignments") + properties.set_prop("allowedResourceNames", AAZListType, ".allowed_resource_names") + properties.set_prop("allowedTemplateDeploymentReferenceActions", AAZListType, ".allowed_template_deployment_reference_actions") + properties.set_prop("allowedUnauthorizedActions", AAZListType, ".allowed_unauthorized_actions") + properties.set_prop("apiProfiles", AAZListType, ".api_profiles") + properties.set_prop("asyncOperationResourceTypeName", AAZStrType, ".async_operation_resource_type_name") + properties.set_prop("asyncTimeoutRules", AAZListType, ".async_timeout_rules") + properties.set_prop("authorizationActionMappings", AAZListType, ".authorization_action_mappings") + properties.set_prop("availabilityZoneRule", AAZObjectType, ".availability_zone_rule") + properties.set_prop("capacityRule", AAZObjectType, ".capacity_rule") + properties.set_prop("category", AAZStrType, ".category") + properties.set_prop("checkNameAvailabilitySpecifications", AAZObjectType, ".check_name_availability_specifications") + properties.set_prop("commonApiVersions", AAZListType, ".common_api_versions") + properties.set_prop("crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") + properties.set_prop("defaultApiVersion", AAZStrType, ".default_api_version") + properties.set_prop("disallowedActionVerbs", AAZListType, ".disallowed_action_verbs") + properties.set_prop("disallowedEndUserOperations", AAZListType, ".disallowed_end_user_operations") + properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + properties.set_prop("enableAsyncOperation", AAZBoolType, ".enable_async_operation") + properties.set_prop("enableThirdPartyS2S", AAZBoolType, ".enable_third_party_s2_s") + properties.set_prop("endpoints", AAZListType, ".endpoints") + properties.set_prop("extendedLocations", AAZListType, ".extended_locations") + properties.set_prop("extensionOptions", AAZObjectType) + properties.set_prop("featuresRule", AAZObjectType) + properties.set_prop("frontdoorRequestMode", AAZStrType, ".frontdoor_request_mode") + properties.set_prop("groupingTag", AAZStrType, ".grouping_tag") + properties.set_prop("identityManagement", AAZObjectType, ".identity_management") + properties.set_prop("isPureProxy", AAZBoolType, ".is_pure_proxy") + properties.set_prop("legacyName", AAZStrType, ".legacy_name") + properties.set_prop("legacyNames", AAZListType, ".legacy_names") + properties.set_prop("legacyPolicy", AAZObjectType, ".legacy_policy") + properties.set_prop("linkedAccessChecks", AAZListType, ".linked_access_checks") + properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") + properties.set_prop("linkedOperationRules", AAZListType, ".linked_operation_rules") + properties.set_prop("loggingRules", AAZListType, ".logging_rules") + properties.set_prop("managedResourceGroupConfiguration", AAZObjectType, ".managed_resource_group_configuration") + properties.set_prop("management", AAZObjectType, ".management") + properties.set_prop("manifestLink", AAZStrType, ".manifest_link") + properties.set_prop("marketplaceOptions", AAZObjectType, ".marketplace_options") + properties.set_prop("marketplaceType", AAZStrType, ".marketplace_type") + properties.set_prop("metadata", AAZDictType, ".metadata") + properties.set_prop("notifications", AAZListType, ".notifications") + properties.set_prop("onBehalfOfTokens", AAZObjectType, ".on_behalf_of_tokens") + properties.set_prop("openApiConfiguration", AAZObjectType, ".open_api_configuration") + properties.set_prop("policyExecutionType", AAZStrType, ".policy_execution_type") + properties.set_prop("privateEndpointConfiguration", AAZObjectType, ".private_endpoint_configuration") + properties.set_prop("quotaRule", AAZObjectType, ".quota_rule") + properties.set_prop("regionality", AAZStrType, ".regionality") + properties.set_prop("requestHeaderOptions", AAZObjectType) + properties.set_prop("requiredFeatures", AAZListType, ".required_features") + properties.set_prop("resourceCache", AAZObjectType, ".resource_cache") + properties.set_prop("resourceConcurrencyControlOptions", AAZDictType, ".resource_concurrency_control_options") + properties.set_prop("resourceDeletionPolicy", AAZStrType, ".resource_deletion_policy") + properties.set_prop("resourceGraphConfiguration", AAZObjectType, ".resource_graph_configuration") + properties.set_prop("resourceManagementOptions", AAZObjectType, ".resource_management_options") + properties.set_prop("resourceMovePolicy", AAZObjectType, ".resource_move_policy") + properties.set_prop("resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules") + properties.set_prop("resourceQueryManagement", AAZObjectType, ".resource_query_management") + properties.set_prop("resourceSubType", AAZStrType, ".resource_sub_type") + properties.set_prop("resourceTypeCommonAttributeManagement", AAZObjectType, ".resource_type_common_attribute_management") + properties.set_prop("resourceValidation", AAZStrType, ".resource_validation") + properties.set_prop("routingRule", AAZObjectType, ".routing_rule") + properties.set_prop("routingType", AAZStrType, ".routing_type") + properties.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + properties.set_prop("skuLink", AAZStrType, ".sku_link") + properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType) + properties.set_prop("subscriptionStateRules", AAZListType, ".subscription_state_rules") + properties.set_prop("supportsTags", AAZBoolType, ".supports_tags") + properties.set_prop("swaggerSpecifications", AAZListType, ".swagger_specifications") + properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") + properties.set_prop("templateDeploymentPolicy", AAZObjectType, ".template_deployment_policy") + properties.set_prop("throttlingRules", AAZListType, ".throttling_rules") + _CreateHelper._build_schema_token_auth_configuration_create(properties.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + allowed_resource_names = _builder.get(".properties.allowedResourceNames") + if allowed_resource_names is not None: + allowed_resource_names.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.allowedResourceNames[]") + if _elements is not None: + _elements.set_prop("getActionVerb", AAZStrType, ".get_action_verb") + _elements.set_prop("name", AAZStrType, ".name") + + allowed_template_deployment_reference_actions = _builder.get(".properties.allowedTemplateDeploymentReferenceActions") + if allowed_template_deployment_reference_actions is not None: + allowed_template_deployment_reference_actions.set_elements(AAZStrType, ".") + + allowed_unauthorized_actions = _builder.get(".properties.allowedUnauthorizedActions") + if allowed_unauthorized_actions is not None: + allowed_unauthorized_actions.set_elements(AAZStrType, ".") + + api_profiles = _builder.get(".properties.apiProfiles") + if api_profiles is not None: + api_profiles.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.apiProfiles[]") + if _elements is not None: + _elements.set_prop("apiVersion", AAZStrType, ".api_version") + _elements.set_prop("profileVersion", AAZStrType, ".profile_version") + + async_timeout_rules = _builder.get(".properties.asyncTimeoutRules") + if async_timeout_rules is not None: + async_timeout_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.asyncTimeoutRules[]") + if _elements is not None: + _elements.set_prop("actionName", AAZStrType, ".action_name") + _elements.set_prop("timeout", AAZStrType, ".timeout") + + authorization_action_mappings = _builder.get(".properties.authorizationActionMappings") + if authorization_action_mappings is not None: + authorization_action_mappings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.authorizationActionMappings[]") + if _elements is not None: + _elements.set_prop("desired", AAZStrType, ".desired") + _elements.set_prop("original", AAZStrType, ".original") + + availability_zone_rule = _builder.get(".properties.availabilityZoneRule") + if availability_zone_rule is not None: + availability_zone_rule.set_prop("availabilityZonePolicy", AAZStrType, ".availability_zone_policy") + + capacity_rule = _builder.get(".properties.capacityRule") + if capacity_rule is not None: + capacity_rule.set_prop("capacityPolicy", AAZStrType, ".capacity_policy") + capacity_rule.set_prop("skuAlias", AAZStrType, ".sku_alias") + + check_name_availability_specifications = _builder.get(".properties.checkNameAvailabilitySpecifications") + if check_name_availability_specifications is not None: + check_name_availability_specifications.set_prop("enableDefaultValidation", AAZBoolType, ".enable_default_validation") + check_name_availability_specifications.set_prop("resourceTypesWithCustomValidation", AAZListType, ".resource_types_with_custom_validation") + + resource_types_with_custom_validation = _builder.get(".properties.checkNameAvailabilitySpecifications.resourceTypesWithCustomValidation") + if resource_types_with_custom_validation is not None: + resource_types_with_custom_validation.set_elements(AAZStrType, ".") + + common_api_versions = _builder.get(".properties.commonApiVersions") + if common_api_versions is not None: + common_api_versions.set_elements(AAZStrType, ".") + + disallowed_action_verbs = _builder.get(".properties.disallowedActionVerbs") + if disallowed_action_verbs is not None: + disallowed_action_verbs.set_elements(AAZStrType, ".") + + disallowed_end_user_operations = _builder.get(".properties.disallowedEndUserOperations") + if disallowed_end_user_operations is not None: + disallowed_end_user_operations.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + endpoints = _builder.get(".properties.endpoints") + if endpoints is not None: + endpoints.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.endpoints[]") + if _elements is not None: + _elements.set_prop("apiVersion", AAZStrType, ".api_version") + _elements.set_prop("apiVersions", AAZListType, ".api_versions") + _elements.set_prop("dataBoundary", AAZStrType, ".data_boundary") + _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + _elements.set_prop("enabled", AAZBoolType, ".enabled") + _elements.set_prop("endpointType", AAZStrType, ".endpoint_type") + _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _elements.set_prop("extensions", AAZListType, ".extensions") + _elements.set_prop("featuresRule", AAZObjectType, ".features_rule") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("skuLink", AAZStrType, ".sku_link") + _elements.set_prop("timeout", AAZStrType, ".timeout") + _CreateHelper._build_schema_token_auth_configuration_create(_elements.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + _elements.set_prop("zones", AAZListType, ".zones") + + api_versions = _builder.get(".properties.endpoints[].apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.endpoints[].dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + extensions = _builder.get(".properties.endpoints[].extensions") + if extensions is not None: + extensions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.endpoints[].extensions[]") + if _elements is not None: + _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _elements.set_prop("extensionCategories", AAZListType, ".extension_categories") + _elements.set_prop("timeout", AAZStrType, ".timeout") + + extension_categories = _builder.get(".properties.endpoints[].extensions[].extensionCategories") + if extension_categories is not None: + extension_categories.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".properties.endpoints[].featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + locations = _builder.get(".properties.endpoints[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.endpoints[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.endpoints[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + extended_locations = _builder.get(".properties.extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.extendedLocations[]") + if _elements is not None: + _elements.set_prop("supportedPolicy", AAZStrType, ".supported_policy") + _elements.set_prop("type", AAZStrType, ".type") + + extension_options = _builder.get(".properties.extensionOptions") + if extension_options is not None: + extension_options.set_prop("resourceCreationBegin", AAZObjectType, ".resource_creation_begin") + + resource_creation_begin = _builder.get(".properties.extensionOptions.resourceCreationBegin") + if resource_creation_begin is not None: + resource_creation_begin.set_prop("request", AAZListType, ".request") + resource_creation_begin.set_prop("response", AAZListType, ".response") + + request = _builder.get(".properties.extensionOptions.resourceCreationBegin.request") + if request is not None: + request.set_elements(AAZStrType, ".") + + response = _builder.get(".properties.extensionOptions.resourceCreationBegin.response") + if response is not None: + response.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".properties.featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + identity_management = _builder.get(".properties.identityManagement") + if identity_management is not None: + identity_management.set_prop("applicationId", AAZStrType, ".application_id") + identity_management.set_prop("applicationIds", AAZListType, ".application_ids") + identity_management.set_prop("delegationAppIds", AAZListType, ".delegation_app_ids") + identity_management.set_prop("type", AAZStrType, ".type") + + application_ids = _builder.get(".properties.identityManagement.applicationIds") + if application_ids is not None: + application_ids.set_elements(AAZStrType, ".") + + delegation_app_ids = _builder.get(".properties.identityManagement.delegationAppIds") + if delegation_app_ids is not None: + delegation_app_ids.set_elements(AAZStrType, ".") + + legacy_names = _builder.get(".properties.legacyNames") + if legacy_names is not None: + legacy_names.set_elements(AAZStrType, ".") + + legacy_policy = _builder.get(".properties.legacyPolicy") + if legacy_policy is not None: + legacy_policy.set_prop("disallowedConditions", AAZListType, ".disallowed_conditions") + legacy_policy.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") + + disallowed_conditions = _builder.get(".properties.legacyPolicy.disallowedConditions") + if disallowed_conditions is not None: + disallowed_conditions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.legacyPolicy.disallowedConditions[]") + if _elements is not None: + _elements.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") + _elements.set_prop("feature", AAZStrType, ".feature") + + disallowed_legacy_operations = _builder.get(".properties.legacyPolicy.disallowedConditions[].disallowedLegacyOperations") + if disallowed_legacy_operations is not None: + disallowed_legacy_operations.set_elements(AAZStrType, ".") + + disallowed_legacy_operations = _builder.get(".properties.legacyPolicy.disallowedLegacyOperations") + if disallowed_legacy_operations is not None: + disallowed_legacy_operations.set_elements(AAZStrType, ".") + + linked_access_checks = _builder.get(".properties.linkedAccessChecks") + if linked_access_checks is not None: + linked_access_checks.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.linkedAccessChecks[]") + if _elements is not None: + _elements.set_prop("actionName", AAZStrType, ".action_name") + _elements.set_prop("linkedAction", AAZStrType, ".linked_action") + _elements.set_prop("linkedActionVerb", AAZStrType, ".linked_action_verb") + _elements.set_prop("linkedProperty", AAZStrType, ".linked_property") + _elements.set_prop("linkedType", AAZStrType, ".linked_type") + + linked_notification_rules = _builder.get(".properties.linkedNotificationRules") + if linked_notification_rules is not None: + linked_notification_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.linkedNotificationRules[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("actionsOnFailedOperation", AAZListType, ".actions_on_failed_operation") + _elements.set_prop("fastPathActions", AAZListType, ".fast_path_actions") + _elements.set_prop("fastPathActionsOnFailedOperation", AAZListType, ".fast_path_actions_on_failed_operation") + _elements.set_prop("linkedNotificationTimeout", AAZStrType, ".linked_notification_timeout") + + actions = _builder.get(".properties.linkedNotificationRules[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + actions_on_failed_operation = _builder.get(".properties.linkedNotificationRules[].actionsOnFailedOperation") + if actions_on_failed_operation is not None: + actions_on_failed_operation.set_elements(AAZStrType, ".") + + fast_path_actions = _builder.get(".properties.linkedNotificationRules[].fastPathActions") + if fast_path_actions is not None: + fast_path_actions.set_elements(AAZStrType, ".") + + fast_path_actions_on_failed_operation = _builder.get(".properties.linkedNotificationRules[].fastPathActionsOnFailedOperation") + if fast_path_actions_on_failed_operation is not None: + fast_path_actions_on_failed_operation.set_elements(AAZStrType, ".") + + linked_operation_rules = _builder.get(".properties.linkedOperationRules") + if linked_operation_rules is not None: + linked_operation_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.linkedOperationRules[]") + if _elements is not None: + _elements.set_prop("dependsOnTypes", AAZListType, ".depends_on_types") + _elements.set_prop("linkedAction", AAZStrType, ".linked_action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("linkedOperation", AAZStrType, ".linked_operation", typ_kwargs={"flags": {"required": True}}) + + depends_on_types = _builder.get(".properties.linkedOperationRules[].dependsOnTypes") + if depends_on_types is not None: + depends_on_types.set_elements(AAZStrType, ".") + + logging_rules = _builder.get(".properties.loggingRules") + if logging_rules is not None: + logging_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.loggingRules[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("detailLevel", AAZStrType, ".detail_level", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("direction", AAZStrType, ".direction", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("hiddenPropertyPaths", AAZObjectType, ".hidden_property_paths") + + hidden_property_paths = _builder.get(".properties.loggingRules[].hiddenPropertyPaths") + if hidden_property_paths is not None: + hidden_property_paths.set_prop("hiddenPathsOnRequest", AAZListType, ".hidden_paths_on_request") + hidden_property_paths.set_prop("hiddenPathsOnResponse", AAZListType, ".hidden_paths_on_response") + + hidden_paths_on_request = _builder.get(".properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnRequest") + if hidden_paths_on_request is not None: + hidden_paths_on_request.set_elements(AAZStrType, ".") + + hidden_paths_on_response = _builder.get(".properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnResponse") + if hidden_paths_on_response is not None: + hidden_paths_on_response.set_elements(AAZStrType, ".") + + managed_resource_group_configuration = _builder.get(".properties.managedResourceGroupConfiguration") + if managed_resource_group_configuration is not None: + managed_resource_group_configuration.set_prop("applicationIds", AAZListType, ".application_ids") + managed_resource_group_configuration.set_prop("denyAssignmentConfiguration", AAZObjectType, ".deny_assignment_configuration") + managed_resource_group_configuration.set_prop("enabled", AAZBoolType, ".enabled") + managed_resource_group_configuration.set_prop("resourceGroupLocationOverride", AAZStrType, ".resource_group_location_override") + + application_ids = _builder.get(".properties.managedResourceGroupConfiguration.applicationIds") + if application_ids is not None: + application_ids.set_elements(AAZStrType, ".") + + deny_assignment_configuration = _builder.get(".properties.managedResourceGroupConfiguration.denyAssignmentConfiguration") + if deny_assignment_configuration is not None: + deny_assignment_configuration.set_prop("enabled", AAZBoolType, ".enabled") + deny_assignment_configuration.set_prop("notActions", AAZListType, ".not_actions") + + not_actions = _builder.get(".properties.managedResourceGroupConfiguration.denyAssignmentConfiguration.notActions") + if not_actions is not None: + not_actions.set_elements(AAZStrType, ".") + + management = _builder.get(".properties.management") + if management is not None: + management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") + management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") + management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") + management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") + management.set_prop("expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") + management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") + management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") + management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") + management.set_prop("manifestOwners", AAZListType, ".manifest_owners") + management.set_prop("pcCode", AAZStrType, ".pc_code") + management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") + management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") + management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") + management.set_prop("schemaOwners", AAZListType, ".schema_owners") + management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + + authorization_owners = _builder.get(".properties.management.authorizationOwners") + if authorization_owners is not None: + authorization_owners.set_elements(AAZStrType, ".") + + canary_manifest_owners = _builder.get(".properties.management.canaryManifestOwners") + if canary_manifest_owners is not None: + canary_manifest_owners.set_elements(AAZStrType, ".") + + error_response_message_options = _builder.get(".properties.management.errorResponseMessageOptions") + if error_response_message_options is not None: + error_response_message_options.set_prop("serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") + + expedited_rollout_metadata = _builder.get(".properties.management.expeditedRolloutMetadata") + if expedited_rollout_metadata is not None: + expedited_rollout_metadata.set_prop("enabled", AAZBoolType, ".enabled") + expedited_rollout_metadata.set_prop("expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") + + expedited_rollout_submitters = _builder.get(".properties.management.expeditedRolloutSubmitters") + if expedited_rollout_submitters is not None: + expedited_rollout_submitters.set_elements(AAZStrType, ".") + + manifest_owners = _builder.get(".properties.management.manifestOwners") + if manifest_owners is not None: + manifest_owners.set_elements(AAZStrType, ".") + + resource_access_roles = _builder.get(".properties.management.resourceAccessRoles") + if resource_access_roles is not None: + resource_access_roles.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.management.resourceAccessRoles[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("allowedGroupClaims", AAZListType, ".allowed_group_claims") + + actions = _builder.get(".properties.management.resourceAccessRoles[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + allowed_group_claims = _builder.get(".properties.management.resourceAccessRoles[].allowedGroupClaims") + if allowed_group_claims is not None: + allowed_group_claims.set_elements(AAZStrType, ".") + + schema_owners = _builder.get(".properties.management.schemaOwners") + if schema_owners is not None: + schema_owners.set_elements(AAZStrType, ".") + + service_tree_infos = _builder.get(".properties.management.serviceTreeInfos") + if service_tree_infos is not None: + _CreateHelper._build_schema_service_tree_info_create(service_tree_infos.set_elements(AAZObjectType, ".")) + + marketplace_options = _builder.get(".properties.marketplaceOptions") + if marketplace_options is not None: + marketplace_options.set_prop("addOnPlanConversionAllowed", AAZBoolType, ".add_on_plan_conversion_allowed") + + metadata = _builder.get(".properties.metadata") + if metadata is not None: + metadata.set_elements(AAZFreeFormDictType, ".") + + _elements = _builder.get(".properties.metadata{}") + if _elements is not None: + _elements.set_anytype_elements(".") + + notifications = _builder.get(".properties.notifications") + if notifications is not None: + notifications.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.notifications[]") + if _elements is not None: + _elements.set_prop("notificationType", AAZStrType, ".notification_type") + _elements.set_prop("skipNotifications", AAZStrType, ".skip_notifications") + + on_behalf_of_tokens = _builder.get(".properties.onBehalfOfTokens") + if on_behalf_of_tokens is not None: + on_behalf_of_tokens.set_prop("actionName", AAZStrType, ".action_name") + on_behalf_of_tokens.set_prop("lifeTime", AAZStrType, ".life_time") + + open_api_configuration = _builder.get(".properties.openApiConfiguration") + if open_api_configuration is not None: + open_api_configuration.set_prop("validation", AAZObjectType, ".validation") + + validation = _builder.get(".properties.openApiConfiguration.validation") + if validation is not None: + validation.set_prop("allowNoncompliantCollectionResponse", AAZBoolType, ".allow_noncompliant_collection_response") + + private_endpoint_configuration = _builder.get(".properties.privateEndpointConfiguration") + if private_endpoint_configuration is not None: + private_endpoint_configuration.set_prop("groupConnectivityInformation", AAZListType, ".group_connectivity_information", typ_kwargs={"flags": {"required": True}}) + private_endpoint_configuration.set_prop("minApiVersion", AAZStrType, ".min_api_version", typ_kwargs={"flags": {"required": True}}) + + group_connectivity_information = _builder.get(".properties.privateEndpointConfiguration.groupConnectivityInformation") + if group_connectivity_information is not None: + group_connectivity_information.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.privateEndpointConfiguration.groupConnectivityInformation[]") + if _elements is not None: + _elements.set_prop("groupId", AAZStrType, ".group_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("redirectMapId", AAZStrType, ".redirect_map_id") + _elements.set_prop("requiredMembers", AAZListType, ".required_members", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredZoneNames", AAZListType, ".required_zone_names", typ_kwargs={"flags": {"required": True}}) + + required_members = _builder.get(".properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredMembers") + if required_members is not None: + required_members.set_elements(AAZStrType, ".") + + required_zone_names = _builder.get(".properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredZoneNames") + if required_zone_names is not None: + required_zone_names.set_elements(AAZStrType, ".") + + quota_rule = _builder.get(".properties.quotaRule") + if quota_rule is not None: + quota_rule.set_prop("locationRules", AAZListType, ".location_rules") + quota_rule.set_prop("quotaPolicy", AAZStrType, ".quota_policy") + quota_rule.set_prop("requiredFeatures", AAZListType, ".required_features") + + location_rules = _builder.get(".properties.quotaRule.locationRules") + if location_rules is not None: + location_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.quotaRule.locationRules[]") + if _elements is not None: + _elements.set_prop("location", AAZStrType, ".location") + _elements.set_prop("policy", AAZStrType, ".policy") + _elements.set_prop("quotaId", AAZStrType, ".quota_id") + + required_features = _builder.get(".properties.quotaRule.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + request_header_options = _builder.get(".properties.requestHeaderOptions") + if request_header_options is not None: + request_header_options.set_prop("optInHeaders", AAZStrType, ".opt_in_headers") + request_header_options.set_prop("optOutHeaders", AAZStrType, ".opt_out_headers") + + required_features = _builder.get(".properties.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + resource_cache = _builder.get(".properties.resourceCache") + if resource_cache is not None: + resource_cache.set_prop("enableResourceCache", AAZBoolType, ".enable_resource_cache") + resource_cache.set_prop("resourceCacheExpirationTimespan", AAZStrType, ".resource_cache_expiration_timespan") + + resource_concurrency_control_options = _builder.get(".properties.resourceConcurrencyControlOptions") + if resource_concurrency_control_options is not None: + resource_concurrency_control_options.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.resourceConcurrencyControlOptions{}") + if _elements is not None: + _elements.set_prop("policy", AAZStrType, ".policy") + + resource_graph_configuration = _builder.get(".properties.resourceGraphConfiguration") + if resource_graph_configuration is not None: + resource_graph_configuration.set_prop("apiVersion", AAZStrType, ".api_version") + resource_graph_configuration.set_prop("enabled", AAZBoolType, ".enabled") + + resource_management_options = _builder.get(".properties.resourceManagementOptions") + if resource_management_options is not None: + resource_management_options.set_prop("batchProvisioningSupport", AAZObjectType, ".batch_provisioning_support") + resource_management_options.set_prop("deleteDependencies", AAZListType, ".delete_dependencies") + resource_management_options.set_prop("nestedProvisioningSupport", AAZObjectType, ".nested_provisioning_support") + + batch_provisioning_support = _builder.get(".properties.resourceManagementOptions.batchProvisioningSupport") + if batch_provisioning_support is not None: + batch_provisioning_support.set_prop("supportedOperations", AAZStrType, ".supported_operations") + + delete_dependencies = _builder.get(".properties.resourceManagementOptions.deleteDependencies") + if delete_dependencies is not None: + delete_dependencies.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.resourceManagementOptions.deleteDependencies[]") + if _elements is not None: + _elements.set_prop("linkedProperty", AAZStrType, ".linked_property") + _elements.set_prop("linkedType", AAZStrType, ".linked_type") + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + required_features = _builder.get(".properties.resourceManagementOptions.deleteDependencies[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + nested_provisioning_support = _builder.get(".properties.resourceManagementOptions.nestedProvisioningSupport") + if nested_provisioning_support is not None: + nested_provisioning_support.set_prop("minimumApiVersion", AAZStrType, ".minimum_api_version") + + resource_move_policy = _builder.get(".properties.resourceMovePolicy") + if resource_move_policy is not None: + resource_move_policy.set_prop("crossResourceGroupMoveEnabled", AAZBoolType, ".cross_resource_group_move_enabled") + resource_move_policy.set_prop("crossSubscriptionMoveEnabled", AAZBoolType, ".cross_subscription_move_enabled") + resource_move_policy.set_prop("validationRequired", AAZBoolType, ".validation_required") + + resource_provider_authorization_rules = _builder.get(".properties.resourceProviderAuthorizationRules") + if resource_provider_authorization_rules is not None: + resource_provider_authorization_rules.set_prop("asyncOperationPollingRules", AAZObjectType, ".async_operation_polling_rules") + + async_operation_polling_rules = _builder.get(".properties.resourceProviderAuthorizationRules.asyncOperationPollingRules") + if async_operation_polling_rules is not None: + async_operation_polling_rules.set_prop("additionalOptions", AAZStrType, ".additional_options") + async_operation_polling_rules.set_prop("authorizationActions", AAZListType, ".authorization_actions") + + authorization_actions = _builder.get(".properties.resourceProviderAuthorizationRules.asyncOperationPollingRules.authorizationActions") + if authorization_actions is not None: + authorization_actions.set_elements(AAZStrType, ".") + + resource_query_management = _builder.get(".properties.resourceQueryManagement") + if resource_query_management is not None: + resource_query_management.set_prop("filterOption", AAZStrType, ".filter_option") + + resource_type_common_attribute_management = _builder.get(".properties.resourceTypeCommonAttributeManagement") + if resource_type_common_attribute_management is not None: + resource_type_common_attribute_management.set_prop("commonApiVersionsMergeMode", AAZStrType, ".common_api_versions_merge_mode") + + routing_rule = _builder.get(".properties.routingRule") + if routing_rule is not None: + routing_rule.set_prop("hostResourceType", AAZStrType, ".host_resource_type") + + service_tree_infos = _builder.get(".properties.serviceTreeInfos") + if service_tree_infos is not None: + _CreateHelper._build_schema_service_tree_info_create(service_tree_infos.set_elements(AAZObjectType, ".")) + + subscription_lifecycle_notification_specifications = _builder.get(".properties.subscriptionLifecycleNotificationSpecifications") + if subscription_lifecycle_notification_specifications is not None: + subscription_lifecycle_notification_specifications.set_prop("softDeleteTTL", AAZStrType, ".soft_delete_ttl") + subscription_lifecycle_notification_specifications.set_prop("subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") + + subscription_state_override_actions = _builder.get(".properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") + if subscription_state_override_actions is not None: + subscription_state_override_actions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("state", AAZStrType, ".state", typ_kwargs={"flags": {"required": True}}) + + subscription_state_rules = _builder.get(".properties.subscriptionStateRules") + if subscription_state_rules is not None: + subscription_state_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.subscriptionStateRules[]") + if _elements is not None: + _elements.set_prop("allowedActions", AAZListType, ".allowed_actions") + _elements.set_prop("state", AAZStrType, ".state") + + allowed_actions = _builder.get(".properties.subscriptionStateRules[].allowedActions") + if allowed_actions is not None: + allowed_actions.set_elements(AAZStrType, ".") + + swagger_specifications = _builder.get(".properties.swaggerSpecifications") + if swagger_specifications is not None: + swagger_specifications.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.swaggerSpecifications[]") + if _elements is not None: + _elements.set_prop("apiVersions", AAZListType, ".api_versions") + _elements.set_prop("swaggerSpecFolderUri", AAZStrType, ".swagger_spec_folder_uri") + + api_versions = _builder.get(".properties.swaggerSpecifications[].apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + template_deployment_options = _builder.get(".properties.templateDeploymentOptions") + if template_deployment_options is not None: + template_deployment_options.set_prop("preflightOptions", AAZListType, ".preflight_options") + template_deployment_options.set_prop("preflightSupported", AAZBoolType, ".preflight_supported") + + preflight_options = _builder.get(".properties.templateDeploymentOptions.preflightOptions") + if preflight_options is not None: + preflight_options.set_elements(AAZStrType, ".") + + template_deployment_policy = _builder.get(".properties.templateDeploymentPolicy") + if template_deployment_policy is not None: + template_deployment_policy.set_prop("capabilities", AAZStrType, ".capabilities", typ_kwargs={"flags": {"required": True}}) + template_deployment_policy.set_prop("preflightNotifications", AAZStrType, ".preflight_notifications") + template_deployment_policy.set_prop("preflightOptions", AAZStrType, ".preflight_options", typ_kwargs={"flags": {"required": True}}) + + throttling_rules = _builder.get(".properties.throttlingRules") + if throttling_rules is not None: + throttling_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.throttlingRules[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("applicationId", AAZListType, ".application_id") + _elements.set_prop("metrics", AAZListType, ".metrics", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + application_id = _builder.get(".properties.throttlingRules[].applicationId") + if application_id is not None: + application_id.set_elements(AAZStrType, ".") + + metrics = _builder.get(".properties.throttlingRules[].metrics") + if metrics is not None: + metrics.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.throttlingRules[].metrics[]") + if _elements is not None: + _elements.set_prop("interval", AAZStrType, ".interval") + _elements.set_prop("limit", AAZIntType, ".limit", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + required_features = _builder.get(".properties.throttlingRules[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.kind = AAZStrType() + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType() + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _CreateHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = cls._schema_on_200_201.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = cls._schema_on_200_201.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = cls._schema_on_200_201.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = cls._schema_on_200_201.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = cls._schema_on_200_201.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = cls._schema_on_200_201.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = cls._schema_on_200_201.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = cls._schema_on_200_201.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = cls._schema_on_200_201.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = cls._schema_on_200_201.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = cls._schema_on_200_201.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = cls._schema_on_200_201.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = cls._schema_on_200_201.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200_201.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200_201.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _CreateHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = cls._schema_on_200_201.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200_201.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = cls._schema_on_200_201.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = cls._schema_on_200_201.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = cls._schema_on_200_201.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = cls._schema_on_200_201.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200_201.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = cls._schema_on_200_201.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = cls._schema_on_200_201.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = cls._schema_on_200_201.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = cls._schema_on_200_201.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = cls._schema_on_200_201.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = cls._schema_on_200_201.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = cls._schema_on_200_201.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = cls._schema_on_200_201.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = cls._schema_on_200_201.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = cls._schema_on_200_201.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = cls._schema_on_200_201.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = cls._schema_on_200_201.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = cls._schema_on_200_201.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200_201.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200_201.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = cls._schema_on_200_201.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = cls._schema_on_200_201.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = cls._schema_on_200_201.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = cls._schema_on_200_201.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = cls._schema_on_200_201.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = cls._schema_on_200_201.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = cls._schema_on_200_201.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = cls._schema_on_200_201.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = cls._schema_on_200_201.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = cls._schema_on_200_201.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = cls._schema_on_200_201.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = cls._schema_on_200_201.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = cls._schema_on_200_201.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = cls._schema_on_200_201.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = cls._schema_on_200_201.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = cls._schema_on_200_201.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = cls._schema_on_200_201.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200_201.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200_201.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200_201.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200_201.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200_201.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200_201.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200_201.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.management.resource_access_roles.Element + _element.actions = AAZListType() + _element.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = cls._schema_on_200_201.properties.management.resource_access_roles.Element.actions + actions.Element = AAZStrType() + + allowed_group_claims = cls._schema_on_200_201.properties.management.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + schema_owners = cls._schema_on_200_201.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200_201.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _CreateHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = cls._schema_on_200_201.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = cls._schema_on_200_201.properties.metadata + metadata.Element = AAZFreeFormDictType() + + notifications = cls._schema_on_200_201.properties.notifications + notifications.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.notifications.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + on_behalf_of_tokens = cls._schema_on_200_201.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = cls._schema_on_200_201.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = cls._schema_on_200_201.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = cls._schema_on_200_201.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = cls._schema_on_200_201.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = cls._schema_on_200_201.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = cls._schema_on_200_201.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = cls._schema_on_200_201.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = cls._schema_on_200_201.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = cls._schema_on_200_201.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = cls._schema_on_200_201.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200_201.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = cls._schema_on_200_201.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = cls._schema_on_200_201.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = cls._schema_on_200_201.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = cls._schema_on_200_201.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = cls._schema_on_200_201.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = cls._schema_on_200_201.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200_201.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = cls._schema_on_200_201.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = cls._schema_on_200_201.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_provider_authorization_rules = cls._schema_on_200_201.properties.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = cls._schema_on_200_201.properties.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = cls._schema_on_200_201.properties.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + resource_query_management = cls._schema_on_200_201.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = cls._schema_on_200_201.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = cls._schema_on_200_201.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = cls._schema_on_200_201.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _CreateHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._schema_on_200_201.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200_201.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.state = AAZStrType( + flags={"required": True}, + ) + + subscription_state_rules = cls._schema_on_200_201.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = cls._schema_on_200_201.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = cls._schema_on_200_201.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = cls._schema_on_200_201.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = cls._schema_on_200_201.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200_201.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = cls._schema_on_200_201.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = cls._schema_on_200_201.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = cls._schema_on_200_201.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = cls._schema_on_200_201.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = cls._schema_on_200_201.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200_201 + + +class _CreateHelper: + """Helper class for Create""" + + @classmethod + def _build_schema_service_tree_info_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("componentId", AAZStrType, ".component_id") + _builder.set_prop("readiness", AAZStrType, ".readiness") + _builder.set_prop("serviceId", AAZStrType, ".service_id") + + @classmethod + def _build_schema_token_auth_configuration_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("authenticationScheme", AAZStrType, ".authentication_scheme") + _builder.set_prop("disableCertificateAuthenticationFallback", AAZBoolType, ".disable_certificate_authentication_fallback") + _builder.set_prop("signedRequestScope", AAZStrType, ".signed_request_scope") + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Create"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_delete.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_delete.py new file mode 100644 index 00000000000..16a7501b390 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_delete.py @@ -0,0 +1,166 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub resource-type-registration delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a resource type. + + :example: resource-type-registration delete + az providerhub resource-type-registration delete -y --provider-namespace "{providerNamespace}" --resource-type "extensionresourcetype" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, None) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["-n", "--name", "--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + yield self.ResourceTypeRegistrationsDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class ResourceTypeRegistrationsDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [204]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_204, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + def on_204(self, session): + pass + + def on_200_201(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_list.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_list.py new file mode 100644 index 00000000000..35b0ff2aac7 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_list.py @@ -0,0 +1,1246 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub resource-type-registration list", +) +class List(AAZCommand): + """List the list of the resource types for the given provider. + + :example: resource-type-registration list + az providerhub resource-type-registration list --provider-namespace "{providerNamespace}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_PAGINATION = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ResourceTypeRegistrationsListByProviderRegistration(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class ResourceTypeRegistrationsListByProviderRegistration(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.kind = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ListHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = cls._schema_on_200.value.Element.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = cls._schema_on_200.value.Element.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = cls._schema_on_200.value.Element.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = cls._schema_on_200.value.Element.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = cls._schema_on_200.value.Element.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = cls._schema_on_200.value.Element.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = cls._schema_on_200.value.Element.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = cls._schema_on_200.value.Element.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = cls._schema_on_200.value.Element.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = cls._schema_on_200.value.Element.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = cls._schema_on_200.value.Element.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = cls._schema_on_200.value.Element.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = cls._schema_on_200.value.Element.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.value.Element.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.value.Element.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ListHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = cls._schema_on_200.value.Element.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.value.Element.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = cls._schema_on_200.value.Element.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = cls._schema_on_200.value.Element.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = cls._schema_on_200.value.Element.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = cls._schema_on_200.value.Element.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.value.Element.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = cls._schema_on_200.value.Element.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = cls._schema_on_200.value.Element.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = cls._schema_on_200.value.Element.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = cls._schema_on_200.value.Element.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = cls._schema_on_200.value.Element.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = cls._schema_on_200.value.Element.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = cls._schema_on_200.value.Element.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = cls._schema_on_200.value.Element.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = cls._schema_on_200.value.Element.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = cls._schema_on_200.value.Element.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = cls._schema_on_200.value.Element.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = cls._schema_on_200.value.Element.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = cls._schema_on_200.value.Element.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.value.Element.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.value.Element.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = cls._schema_on_200.value.Element.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = cls._schema_on_200.value.Element.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = cls._schema_on_200.value.Element.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = cls._schema_on_200.value.Element.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = cls._schema_on_200.value.Element.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = cls._schema_on_200.value.Element.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = cls._schema_on_200.value.Element.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = cls._schema_on_200.value.Element.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = cls._schema_on_200.value.Element.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = cls._schema_on_200.value.Element.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = cls._schema_on_200.value.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = cls._schema_on_200.value.Element.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = cls._schema_on_200.value.Element.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = cls._schema_on_200.value.Element.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = cls._schema_on_200.value.Element.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = cls._schema_on_200.value.Element.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = cls._schema_on_200.value.Element.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.value.Element.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.value.Element.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.value.Element.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.value.Element.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.value.Element.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.value.Element.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.value.Element.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.management.resource_access_roles.Element + _element.actions = AAZListType() + _element.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = cls._schema_on_200.value.Element.properties.management.resource_access_roles.Element.actions + actions.Element = AAZStrType() + + allowed_group_claims = cls._schema_on_200.value.Element.properties.management.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + schema_owners = cls._schema_on_200.value.Element.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.value.Element.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ListHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = cls._schema_on_200.value.Element.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = cls._schema_on_200.value.Element.properties.metadata + metadata.Element = AAZFreeFormDictType() + + notifications = cls._schema_on_200.value.Element.properties.notifications + notifications.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.notifications.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + on_behalf_of_tokens = cls._schema_on_200.value.Element.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = cls._schema_on_200.value.Element.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = cls._schema_on_200.value.Element.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = cls._schema_on_200.value.Element.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = cls._schema_on_200.value.Element.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = cls._schema_on_200.value.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = cls._schema_on_200.value.Element.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = cls._schema_on_200.value.Element.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = cls._schema_on_200.value.Element.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = cls._schema_on_200.value.Element.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = cls._schema_on_200.value.Element.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.value.Element.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = cls._schema_on_200.value.Element.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = cls._schema_on_200.value.Element.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = cls._schema_on_200.value.Element.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = cls._schema_on_200.value.Element.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = cls._schema_on_200.value.Element.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = cls._schema_on_200.value.Element.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.value.Element.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = cls._schema_on_200.value.Element.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = cls._schema_on_200.value.Element.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_provider_authorization_rules = cls._schema_on_200.value.Element.properties.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = cls._schema_on_200.value.Element.properties.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = cls._schema_on_200.value.Element.properties.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + resource_query_management = cls._schema_on_200.value.Element.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = cls._schema_on_200.value.Element.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = cls._schema_on_200.value.Element.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = cls._schema_on_200.value.Element.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ListHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._schema_on_200.value.Element.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.value.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.state = AAZStrType( + flags={"required": True}, + ) + + subscription_state_rules = cls._schema_on_200.value.Element.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = cls._schema_on_200.value.Element.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = cls._schema_on_200.value.Element.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = cls._schema_on_200.value.Element.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = cls._schema_on_200.value.Element.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.value.Element.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = cls._schema_on_200.value.Element.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = cls._schema_on_200.value.Element.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = cls._schema_on_200.value.Element.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = cls._schema_on_200.value.Element.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = cls._schema_on_200.value.Element.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["List"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_show.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_show.py new file mode 100644 index 00000000000..f7b6263e966 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_show.py @@ -0,0 +1,1246 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub resource-type-registration show", +) +class Show(AAZCommand): + """Get a resource type details in the given subscription and provider. + + :example: resource-type-registration show + az providerhub resource-type-registration show --provider-namespace "{providerNamespace}" --resource-type "extensionresourcetype" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["-n", "--name", "--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ResourceTypeRegistrationsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ResourceTypeRegistrationsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.kind = AAZStrType() + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ShowHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = cls._schema_on_200.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = cls._schema_on_200.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = cls._schema_on_200.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = cls._schema_on_200.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = cls._schema_on_200.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = cls._schema_on_200.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = cls._schema_on_200.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = cls._schema_on_200.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = cls._schema_on_200.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = cls._schema_on_200.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = cls._schema_on_200.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = cls._schema_on_200.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = cls._schema_on_200.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _ShowHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = cls._schema_on_200.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = cls._schema_on_200.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = cls._schema_on_200.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = cls._schema_on_200.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = cls._schema_on_200.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = cls._schema_on_200.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = cls._schema_on_200.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = cls._schema_on_200.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = cls._schema_on_200.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = cls._schema_on_200.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = cls._schema_on_200.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = cls._schema_on_200.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = cls._schema_on_200.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = cls._schema_on_200.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = cls._schema_on_200.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = cls._schema_on_200.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = cls._schema_on_200.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = cls._schema_on_200.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = cls._schema_on_200.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = cls._schema_on_200.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = cls._schema_on_200.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = cls._schema_on_200.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = cls._schema_on_200.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = cls._schema_on_200.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = cls._schema_on_200.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = cls._schema_on_200.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = cls._schema_on_200.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = cls._schema_on_200.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = cls._schema_on_200.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = cls._schema_on_200.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = cls._schema_on_200.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = cls._schema_on_200.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = cls._schema_on_200.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = cls._schema_on_200.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = cls._schema_on_200.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.management.resource_access_roles.Element + _element.actions = AAZListType() + _element.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = cls._schema_on_200.properties.management.resource_access_roles.Element.actions + actions.Element = AAZStrType() + + allowed_group_claims = cls._schema_on_200.properties.management.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + schema_owners = cls._schema_on_200.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ShowHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = cls._schema_on_200.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = cls._schema_on_200.properties.metadata + metadata.Element = AAZFreeFormDictType() + + notifications = cls._schema_on_200.properties.notifications + notifications.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.notifications.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + on_behalf_of_tokens = cls._schema_on_200.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = cls._schema_on_200.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = cls._schema_on_200.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = cls._schema_on_200.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = cls._schema_on_200.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = cls._schema_on_200.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = cls._schema_on_200.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = cls._schema_on_200.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = cls._schema_on_200.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = cls._schema_on_200.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = cls._schema_on_200.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = cls._schema_on_200.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = cls._schema_on_200.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = cls._schema_on_200.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = cls._schema_on_200.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = cls._schema_on_200.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = cls._schema_on_200.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = cls._schema_on_200.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = cls._schema_on_200.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_provider_authorization_rules = cls._schema_on_200.properties.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = cls._schema_on_200.properties.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = cls._schema_on_200.properties.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + resource_query_management = cls._schema_on_200.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = cls._schema_on_200.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = cls._schema_on_200.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = cls._schema_on_200.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _ShowHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.state = AAZStrType( + flags={"required": True}, + ) + + subscription_state_rules = cls._schema_on_200.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = cls._schema_on_200.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = cls._schema_on_200.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = cls._schema_on_200.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = cls._schema_on_200.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = cls._schema_on_200.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = cls._schema_on_200.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = cls._schema_on_200.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = cls._schema_on_200.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = cls._schema_on_200.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Show"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_update.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_update.py new file mode 100644 index 00000000000..1c04ce17e14 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_update.py @@ -0,0 +1,3873 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub resource-type-registration update", +) +class Update(AAZCommand): + """Update a resource type. + + :example: resource-type-registration update + az providerhub resource-type-registration update --endpoints [{api-versions:[2019-01-01],locations:[WestUS]}] --regionality "Regional" --provider-namespace "{providerNamespace}" --resource-type "extensionresourcetype" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["-n", "--name", "--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + + # define Arg Group "ExtensionOptions" + + _args_schema = cls._args_schema + _args_schema.resource_creation_begin = AAZObjectArg( + options=["--creation-begin", "--resource-creation-begin"], + arg_group="ExtensionOptions", + help="Extension options for handling the resource creation begin extension request.", + nullable=True, + ) + + resource_creation_begin = cls._args_schema.resource_creation_begin + resource_creation_begin.request = AAZListArg( + options=["request"], + nullable=True, + ) + resource_creation_begin.response = AAZListArg( + options=["response"], + nullable=True, + ) + + request = cls._args_schema.resource_creation_begin.request + request.Element = AAZStrArg( + nullable=True, + enum={"DoNotMergeExistingReadOnlyAndSecretProperties": "DoNotMergeExistingReadOnlyAndSecretProperties", "IncludeInternalMetadata": "IncludeInternalMetadata", "NotSpecified": "NotSpecified"}, + ) + + response = cls._args_schema.resource_creation_begin.response + response.Element = AAZStrArg( + nullable=True, + enum={"DoNotMergeExistingReadOnlyAndSecretProperties": "DoNotMergeExistingReadOnlyAndSecretProperties", "IncludeInternalMetadata": "IncludeInternalMetadata", "NotSpecified": "NotSpecified"}, + ) + + # define Arg Group "FeaturesRule" + + _args_schema = cls._args_schema + _args_schema.required_features_policy = AAZStrArg( + options=["--req-features-policy", "--required-features-policy"], + arg_group="FeaturesRule", + help="The accepted values are \"Any\" or \"All\".", + enum={"All": "All", "Any": "Any"}, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.kind = AAZStrArg( + options=["--kind"], + arg_group="Properties", + help="Resource type registration kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + nullable=True, + enum={"Direct": "Direct", "Hybrid": "Hybrid", "Managed": "Managed"}, + ) + _args_schema.add_resource_list_target_locations = AAZBoolArg( + options=["--add-target-locations", "--add-resource-list-target-locations"], + arg_group="Properties", + help="Add resource list target locations?", + nullable=True, + ) + _args_schema.additional_options = AAZStrArg( + options=["--additional-options"], + arg_group="Properties", + help="The additional options.", + nullable=True, + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + _args_schema.allow_empty_role_assignments = AAZBoolArg( + options=["--allow-empty-role", "--allow-empty-role-assignments"], + arg_group="Properties", + help="Determines if empty role assignments are allowed.", + nullable=True, + ) + _args_schema.allowed_resource_names = AAZListArg( + options=["--allowed-resource-names"], + arg_group="Properties", + nullable=True, + ) + _args_schema.allowed_template_deployment_reference_actions = AAZListArg( + options=["--allowed-templ-actions", "--allowed-template-deployment-reference-actions"], + arg_group="Properties", + help="Allowed template deployment reference actions.", + nullable=True, + ) + _args_schema.allowed_unauthorized_actions = AAZListArg( + options=["--aua", "--allowed-unauthorized-actions"], + arg_group="Properties", + help="The allowed unauthorized actions.", + nullable=True, + ) + _args_schema.api_profiles = AAZListArg( + options=["--api-profiles"], + arg_group="Properties", + nullable=True, + ) + _args_schema.async_operation_resource_type_name = AAZStrArg( + options=["--async-op-rt-name", "--async-operation-resource-type-name"], + arg_group="Properties", + help="The async operation resource type name.", + nullable=True, + ) + _args_schema.async_timeout_rules = AAZListArg( + options=["--async-timeout-rules"], + arg_group="Properties", + help="Async timeout rules", + nullable=True, + ) + _args_schema.authorization_action_mappings = AAZListArg( + options=["--auth-mappings", "--authorization-action-mappings"], + singular_options=["--auth-mapping", "--auth-mappings"], + arg_group="Properties", + help="Allows RP to override action verb for RBAC purposes at ARM.", + nullable=True, + ) + _args_schema.availability_zone_rule = AAZObjectArg( + options=["--availability-zone-rule"], + arg_group="Properties", + nullable=True, + ) + _args_schema.capacity_rule = AAZObjectArg( + options=["--capacity-rule"], + arg_group="Properties", + help="Capacity rule.", + nullable=True, + ) + _args_schema.category = AAZStrArg( + options=["--category"], + arg_group="Properties", + help="The category.", + nullable=True, + enum={"FreeForm": "FreeForm", "Internal": "Internal", "None": "None", "PureProxy": "PureProxy"}, + ) + _args_schema.check_name_availability_specifications = AAZObjectArg( + options=["--checkname-specs", "--check-name-availability-specifications"], + arg_group="Properties", + help="Name availability checks feature at the platform level.", + nullable=True, + ) + _args_schema.common_api_versions = AAZListArg( + options=["--common-api-versions"], + arg_group="Properties", + help="Common API versions for the resource type.", + nullable=True, + ) + _args_schema.cross_tenant_token_validation = AAZStrArg( + options=["--token-validation", "--cross-tenant-token-validation"], + arg_group="Properties", + help="The cross tenant token validation.", + nullable=True, + enum={"EnsureSecureValidation": "EnsureSecureValidation", "PassthroughInsecureToken": "PassthroughInsecureToken"}, + ) + _args_schema.default_api_version = AAZStrArg( + options=["--default-api-version"], + arg_group="Properties", + help="The default API version for the endpoint.", + nullable=True, + ) + _args_schema.disallowed_action_verbs = AAZListArg( + options=["--dav", "--disallowed-action-verbs"], + arg_group="Properties", + help="The disallowed action verbs.", + nullable=True, + ) + _args_schema.disallowed_end_user_operations = AAZListArg( + options=["--disallowed-ops", "--disallowed-end-user-operations"], + arg_group="Properties", + help="The disallowed end user operations.", + nullable=True, + ) + _args_schema.dsts_configuration = AAZObjectArg( + options=["--dsts-configuration"], + arg_group="Properties", + help="The DSTS configuration.", + nullable=True, + ) + _args_schema.enable_async_operation = AAZBoolArg( + options=["--enable-async-operation"], + arg_group="Properties", + help="Indicates whether the async operation is enabled for this resource type.", + nullable=True, + ) + _args_schema.enable_third_party_s2_s = AAZBoolArg( + options=["--enable-3p-s2s", "--enable-third-party-s2-s"], + arg_group="Properties", + help="Indicates whether third party s2s is enabled for this resource type.", + nullable=True, + ) + _args_schema.endpoints = AAZListArg( + options=["--endpoints"], + singular_options=["--endpoint"], + arg_group="Properties", + help="The resource type endpoints.", + nullable=True, + ) + _args_schema.extended_locations = AAZListArg( + options=["--extended-locations"], + arg_group="Properties", + help="The extended location options.", + nullable=True, + ) + _args_schema.frontdoor_request_mode = AAZStrArg( + options=["--frontdoor-request-mode"], + arg_group="Properties", + help="The frontdoor request mode.", + nullable=True, + enum={"NotSpecified": "NotSpecified", "UseManifest": "UseManifest"}, + ) + _args_schema.grouping_tag = AAZStrArg( + options=["--grouping-tag"], + arg_group="Properties", + help="Grouping tag.", + nullable=True, + ) + _args_schema.identity_management = AAZObjectArg( + options=["--identity-management"], + arg_group="Properties", + help="MSI related settings.", + nullable=True, + ) + _args_schema.is_pure_proxy = AAZBoolArg( + options=["--is-pure-proxy"], + arg_group="Properties", + help="Indicates whether this is a PureProxy resource type.", + nullable=True, + ) + _args_schema.legacy_name = AAZStrArg( + options=["--legacy-name"], + arg_group="Properties", + help="The legacy name.", + nullable=True, + ) + _args_schema.legacy_names = AAZListArg( + options=["--legacy-names"], + arg_group="Properties", + nullable=True, + ) + _args_schema.legacy_policy = AAZObjectArg( + options=["--legacy-policy"], + arg_group="Properties", + nullable=True, + ) + _args_schema.linked_access_checks = AAZListArg( + options=["--linked-access-checks"], + singular_options=["--linked-access-check", "--linked-access-checks"], + arg_group="Properties", + help="Enables additional Role Based Access Control (RBAC) checks on related resources.", + nullable=True, + ) + _args_schema.linked_notification_rules = AAZListArg( + options=["--linked-notif-rules", "--linked-notification-rules"], + arg_group="Properties", + help="The linked notification rules.", + nullable=True, + ) + _args_schema.linked_operation_rules = AAZListArg( + options=["--linked-operation-rules"], + arg_group="Properties", + nullable=True, + ) + _args_schema.logging_rules = AAZListArg( + options=["--logging-rules"], + arg_group="Properties", + help="The logging rules.", + nullable=True, + ) + _args_schema.managed_resource_group_configuration = AAZObjectArg( + options=["--managed-rg-config", "--managed-resource-group-configuration"], + arg_group="Properties", + help="The managed resource group configuration.", + nullable=True, + ) + _args_schema.management = AAZObjectArg( + options=["--management"], + arg_group="Properties", + nullable=True, + ) + _args_schema.manifest_link = AAZStrArg( + options=["--manifest-link"], + arg_group="Properties", + help="Manifest link.", + nullable=True, + ) + _args_schema.marketplace_options = AAZObjectArg( + options=["--marketplace-options"], + arg_group="Properties", + help="Marketplace options.", + nullable=True, + ) + _args_schema.marketplace_type = AAZStrArg( + options=["--marketplace-type"], + arg_group="Properties", + help="The type of marketplace behavior for the resource type.", + nullable=True, + enum={"AddOn": "AddOn", "Bypass": "Bypass", "NotSpecified": "NotSpecified", "Store": "Store"}, + ) + _args_schema.metadata = AAZDictArg( + options=["--metadata"], + arg_group="Properties", + nullable=True, + ) + _args_schema.notifications = AAZListArg( + options=["--notifications"], + arg_group="Properties", + help="The notifications object.", + nullable=True, + ) + _args_schema.on_behalf_of_tokens = AAZObjectArg( + options=["--on-behalf-of-tokens"], + arg_group="Properties", + nullable=True, + ) + _args_schema.open_api_configuration = AAZObjectArg( + options=["--open-api-configuration"], + arg_group="Properties", + nullable=True, + ) + _args_schema.policy_execution_type = AAZStrArg( + options=["--policy-execution-type"], + arg_group="Properties", + help="The policy execution type.", + nullable=True, + enum={"BypassPolicies": "BypassPolicies", "ExecutePolicies": "ExecutePolicies", "ExpectPartialPutRequests": "ExpectPartialPutRequests", "NotSpecified": "NotSpecified"}, + ) + _args_schema.private_endpoint_configuration = AAZObjectArg( + options=["--priv-endpoint-config", "--private-endpoint-configuration"], + arg_group="Properties", + help="The private endpoint config.", + nullable=True, + ) + _args_schema.quota_rule = AAZObjectArg( + options=["--quota-rule"], + arg_group="Properties", + nullable=True, + ) + _args_schema.regionality = AAZStrArg( + options=["--regionality"], + arg_group="Properties", + help="The regionality of the resource type. Allowed values: Global, NotSpecified, Regional.", + nullable=True, + enum={"Global": "Global", "NotSpecified": "NotSpecified", "Regional": "Regional"}, + ) + _args_schema.required_features = AAZListArg( + options=["--required-features"], + arg_group="Properties", + help="The required features.", + nullable=True, + ) + _args_schema.resource_cache = AAZObjectArg( + options=["--resource-cache"], + arg_group="Properties", + help="Resource cache options.", + nullable=True, + ) + _args_schema.resource_concurrency_control_options = AAZDictArg( + options=["--concurrency-options", "--resource-concurrency-control-options"], + arg_group="Properties", + help="The resource concurrency control options.", + nullable=True, + ) + _args_schema.resource_deletion_policy = AAZStrArg( + options=["--deletion-policy", "--resource-deletion-policy"], + arg_group="Properties", + help="The resource deletion policy.", + nullable=True, + enum={"CascadeDeleteAll": "CascadeDeleteAll", "CascadeDeleteProxyOnlyChildren": "CascadeDeleteProxyOnlyChildren", "NotSpecified": "NotSpecified"}, + ) + _args_schema.resource_graph_configuration = AAZObjectArg( + options=["--resource-graph-config", "--resource-graph-configuration"], + arg_group="Properties", + help="The resource graph configuration.", + nullable=True, + ) + _args_schema.resource_management_options = AAZObjectArg( + options=["--resource-mgmt-options", "--resource-management-options"], + arg_group="Properties", + help="Resource management options.", + nullable=True, + ) + _args_schema.resource_move_policy = AAZObjectArg( + options=["--resource-move-policy"], + arg_group="Properties", + help="The resource move policy.", + nullable=True, + ) + _args_schema.resource_provider_authorization_rules = AAZObjectArg( + options=["--rp-auth-rules", "--resource-provider-authorization-rules"], + arg_group="Properties", + help="The resource provider authorization rules.", + nullable=True, + ) + _args_schema.resource_query_management = AAZObjectArg( + options=["--resource-query-mgmt", "--resource-query-management"], + arg_group="Properties", + help="Resource query management options.", + nullable=True, + ) + _args_schema.resource_sub_type = AAZStrArg( + options=["--resource-sub-type"], + arg_group="Properties", + help="The resource sub type.", + nullable=True, + enum={"AsyncOperation": "AsyncOperation", "NotSpecified": "NotSpecified"}, + ) + _args_schema.resource_type_common_attribute_management = AAZObjectArg( + options=["--rt-common-mgmt", "--resource-type-common-attribute-management"], + arg_group="Properties", + help="Resource type common attribute management.", + nullable=True, + ) + _args_schema.resource_validation = AAZStrArg( + options=["--resource-validation"], + arg_group="Properties", + help="The resource validation.", + nullable=True, + enum={"NotSpecified": "NotSpecified", "ProfaneWords": "ProfaneWords", "ReservedWords": "ReservedWords"}, + ) + _args_schema.routing_rule = AAZObjectArg( + options=["--routing-rule"], + arg_group="Properties", + help="Routing rule.", + nullable=True, + ) + _args_schema.routing_type = AAZStrArg( + options=["--routing-type"], + arg_group="Properties", + help="The resource routing type.", + nullable=True, + enum={"CascadeExtension": "CascadeExtension", "Default": "Default", "Extension": "Extension", "Failover": "Failover", "Fanout": "Fanout", "HostBased": "HostBased", "LocationBased": "LocationBased", "ProxyOnly": "ProxyOnly", "Tenant": "Tenant"}, + ) + _args_schema.service_tree_infos = AAZListArg( + options=["--service-tree-infos"], + singular_options=["--service-tree-info", "--service-tree-infos"], + arg_group="Properties", + help="The ServiceTree information for the resource provider.", + nullable=True, + ) + _args_schema.sku_link = AAZStrArg( + options=["--sku-link"], + arg_group="Properties", + help="The sku link.", + nullable=True, + ) + _args_schema.subscription_state_rules = AAZListArg( + options=["--sub-state-rules", "--subscription-state-rules"], + singular_options=["--sub-state-rule", "--sub-state-rules"], + arg_group="Properties", + help="The subscription state rules.", + nullable=True, + ) + _args_schema.supports_tags = AAZBoolArg( + options=["--supports-tags"], + arg_group="Properties", + help="Determines if tags are supported.", + nullable=True, + ) + _args_schema.swagger_specifications = AAZListArg( + options=["--swagger-specifications"], + singular_options=["--swagger-specification", "--swagger-specifications"], + arg_group="Properties", + help="The swagger spec of the resource type.", + nullable=True, + ) + _args_schema.template_deployment_options = AAZObjectArg( + options=["--tmplt-deploy-opt", "--template-deployment-options"], + arg_group="Properties", + help="The template deployment options.", + nullable=True, + ) + _args_schema.template_deployment_policy = AAZObjectArg( + options=["--tmplt-deploy-policy", "--template-deployment-policy"], + arg_group="Properties", + help="The template deployment policy.", + nullable=True, + ) + _args_schema.throttling_rules = AAZListArg( + options=["--throttling-rules"], + singular_options=["--throttling-rule", "--throttling-rules"], + arg_group="Properties", + help="Enables setting individual limits for different actions in terms of number of requests or number of resources (for collection read requests only).", + nullable=True, + ) + _args_schema.token_auth_configuration = AAZObjectArg( + options=["--token-auth-config", "--token-auth-configuration"], + arg_group="Properties", + help="The token auth configuration.", + nullable=True, + ) + cls._build_args_token_auth_configuration_update(_args_schema.token_auth_configuration) + + allowed_resource_names = cls._args_schema.allowed_resource_names + allowed_resource_names.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.allowed_resource_names.Element + _element.get_action_verb = AAZStrArg( + options=["get-action-verb"], + help="Get action verb.", + nullable=True, + ) + _element.name = AAZStrArg( + options=["name"], + help="Resource name.", + nullable=True, + ) + + allowed_template_deployment_reference_actions = cls._args_schema.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrArg( + nullable=True, + ) + + allowed_unauthorized_actions = cls._args_schema.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrArg( + nullable=True, + ) + + api_profiles = cls._args_schema.api_profiles + api_profiles.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.api_profiles.Element + _element.api_version = AAZStrArg( + options=["api-version"], + help="Api version.", + nullable=True, + ) + _element.profile_version = AAZStrArg( + options=["profile-version"], + help="Profile version.", + nullable=True, + ) + + async_timeout_rules = cls._args_schema.async_timeout_rules + async_timeout_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.async_timeout_rules.Element + _element.action_name = AAZStrArg( + options=["action-name"], + nullable=True, + ) + _element.timeout = AAZStrArg( + options=["timeout"], + nullable=True, + ) + + authorization_action_mappings = cls._args_schema.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.authorization_action_mappings.Element + _element.desired = AAZStrArg( + options=["desired"], + nullable=True, + ) + _element.original = AAZStrArg( + options=["original"], + nullable=True, + ) + + availability_zone_rule = cls._args_schema.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrArg( + options=["availability-zone-policy"], + nullable=True, + enum={"MultiZoned": "MultiZoned", "NotSpecified": "NotSpecified", "SingleZoned": "SingleZoned"}, + ) + + capacity_rule = cls._args_schema.capacity_rule + capacity_rule.capacity_policy = AAZStrArg( + options=["capacity-policy"], + help="Capacity policy.", + nullable=True, + enum={"Default": "Default", "Restricted": "Restricted"}, + ) + capacity_rule.sku_alias = AAZStrArg( + options=["sku-alias"], + help="Sku alias", + nullable=True, + ) + + check_name_availability_specifications = cls._args_schema.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolArg( + options=["enable-default-validation"], + nullable=True, + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListArg( + options=["resource-types-with-custom-validation"], + nullable=True, + ) + + resource_types_with_custom_validation = cls._args_schema.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrArg( + nullable=True, + ) + + common_api_versions = cls._args_schema.common_api_versions + common_api_versions.Element = AAZStrArg( + nullable=True, + ) + + disallowed_action_verbs = cls._args_schema.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrArg( + nullable=True, + ) + + disallowed_end_user_operations = cls._args_schema.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrArg( + nullable=True, + ) + + dsts_configuration = cls._args_schema.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + nullable=True, + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + ) + + endpoints = cls._args_schema.endpoints + endpoints.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.endpoints.Element + _element.api_version = AAZStrArg( + options=["api-version"], + help="Api version.", + nullable=True, + ) + _element.api_versions = AAZListArg( + options=["api-versions"], + nullable=True, + ) + _element.data_boundary = AAZStrArg( + options=["data-boundary"], + nullable=True, + enum={"EU": "EU", "Global": "Global", "NotDefined": "NotDefined", "US": "US"}, + ) + _element.dsts_configuration = AAZObjectArg( + options=["dsts-configuration"], + nullable=True, + ) + _element.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + _element.endpoint_type = AAZStrArg( + options=["endpoint-type"], + nullable=True, + enum={"Canary": "Canary", "NotSpecified": "NotSpecified", "Production": "Production", "TestInProduction": "TestInProduction"}, + ) + _element.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + nullable=True, + ) + _element.extensions = AAZListArg( + options=["extensions"], + nullable=True, + ) + _element.features_rule = AAZObjectArg( + options=["features-rule"], + nullable=True, + ) + _element.kind = AAZStrArg( + options=["kind"], + help="Resource type endpoint kind. This Metadata is also used by portal/tooling/etc to render different UX experiences for resources of the same type.", + nullable=True, + enum={"Direct": "Direct", "Managed": "Managed"}, + ) + _element.locations = AAZListArg( + options=["locations"], + singular_options=["location"], + help="The location.", + nullable=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + singular_options=["required-feature", "required-features"], + help="The required features.", + nullable=True, + ) + _element.sku_link = AAZStrArg( + options=["sku-link"], + nullable=True, + ) + _element.timeout = AAZDurationArg( + options=["timeout"], + nullable=True, + ) + _element.token_auth_configuration = AAZObjectArg( + options=["token-auth-configuration"], + nullable=True, + ) + cls._build_args_token_auth_configuration_update(_element.token_auth_configuration) + _element.zones = AAZListArg( + options=["zones"], + help="List of zones.", + nullable=True, + ) + + api_versions = cls._args_schema.endpoints.Element.api_versions + api_versions.Element = AAZStrArg( + nullable=True, + ) + + dsts_configuration = cls._args_schema.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrArg( + options=["service-dns-name"], + nullable=True, + ) + dsts_configuration.service_name = AAZStrArg( + options=["service-name"], + ) + + extensions = cls._args_schema.endpoints.Element.extensions + extensions.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrArg( + options=["endpoint-uri"], + nullable=True, + ) + _element.extension_categories = AAZListArg( + options=["extension-categories"], + nullable=True, + ) + _element.timeout = AAZDurationArg( + options=["timeout"], + nullable=True, + ) + + extension_categories = cls._args_schema.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrArg( + nullable=True, + enum={"BestMatchOperationBegin": "BestMatchOperationBegin", "NotSpecified": "NotSpecified", "ResourceCreationBegin": "ResourceCreationBegin", "ResourceCreationCompleted": "ResourceCreationCompleted", "ResourceCreationValidate": "ResourceCreationValidate", "ResourceDeletionBegin": "ResourceDeletionBegin", "ResourceDeletionCompleted": "ResourceDeletionCompleted", "ResourceDeletionValidate": "ResourceDeletionValidate", "ResourceMoveBegin": "ResourceMoveBegin", "ResourceMoveCompleted": "ResourceMoveCompleted", "ResourcePatchBegin": "ResourcePatchBegin", "ResourcePatchCompleted": "ResourcePatchCompleted", "ResourcePatchValidate": "ResourcePatchValidate", "ResourcePostAction": "ResourcePostAction", "ResourceReadBegin": "ResourceReadBegin", "ResourceReadValidate": "ResourceReadValidate", "SubscriptionLifecycleNotification": "SubscriptionLifecycleNotification", "SubscriptionLifecycleNotificationDeletion": "SubscriptionLifecycleNotificationDeletion"}, + ) + + features_rule = cls._args_schema.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrArg( + options=["required-features-policy"], + enum={"All": "All", "Any": "Any"}, + ) + + locations = cls._args_schema.endpoints.Element.locations + locations.Element = AAZStrArg( + nullable=True, + ) + + required_features = cls._args_schema.endpoints.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + zones = cls._args_schema.endpoints.Element.zones + zones.Element = AAZStrArg( + nullable=True, + ) + + extended_locations = cls._args_schema.extended_locations + extended_locations.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.extended_locations.Element + _element.supported_policy = AAZStrArg( + options=["supported-policy"], + nullable=True, + ) + _element.type = AAZStrArg( + options=["type"], + nullable=True, + ) + + identity_management = cls._args_schema.identity_management + identity_management.application_id = AAZStrArg( + options=["application-id"], + help="The application ID that handles the identity.", + nullable=True, + ) + identity_management.application_ids = AAZListArg( + options=["application-ids"], + nullable=True, + ) + identity_management.delegation_app_ids = AAZListArg( + options=["delegation-app-ids"], + nullable=True, + ) + identity_management.type = AAZStrArg( + options=["type"], + nullable=True, + enum={"Actor": "Actor", "DelegatedResourceIdentity": "DelegatedResourceIdentity", "NotSpecified": "NotSpecified", "SystemAssigned": "SystemAssigned", "UserAssigned": "UserAssigned"}, + ) + + application_ids = cls._args_schema.identity_management.application_ids + application_ids.Element = AAZStrArg( + nullable=True, + ) + + delegation_app_ids = cls._args_schema.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrArg( + nullable=True, + ) + + legacy_names = cls._args_schema.legacy_names + legacy_names.Element = AAZStrArg( + nullable=True, + ) + + legacy_policy = cls._args_schema.legacy_policy + legacy_policy.disallowed_conditions = AAZListArg( + options=["disallowed-conditions"], + nullable=True, + ) + legacy_policy.disallowed_legacy_operations = AAZListArg( + options=["disallowed-legacy-operations"], + nullable=True, + ) + + disallowed_conditions = cls._args_schema.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListArg( + options=["disallowed-legacy-operations"], + nullable=True, + ) + _element.feature = AAZStrArg( + options=["feature"], + help="Feature string.", + nullable=True, + ) + + disallowed_legacy_operations = cls._args_schema.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrArg( + nullable=True, + enum={"Action": "Action", "AzureAsyncOperationWaiting": "AzureAsyncOperationWaiting", "Create": "Create", "Delete": "Delete", "DeploymentCleanup": "DeploymentCleanup", "EvaluateDeploymentOutput": "EvaluateDeploymentOutput", "NotSpecified": "NotSpecified", "Read": "Read", "ResourceCacheWaiting": "ResourceCacheWaiting", "Waiting": "Waiting"}, + ) + + disallowed_legacy_operations = cls._args_schema.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrArg( + nullable=True, + enum={"Action": "Action", "AzureAsyncOperationWaiting": "AzureAsyncOperationWaiting", "Create": "Create", "Delete": "Delete", "DeploymentCleanup": "DeploymentCleanup", "EvaluateDeploymentOutput": "EvaluateDeploymentOutput", "NotSpecified": "NotSpecified", "Read": "Read", "ResourceCacheWaiting": "ResourceCacheWaiting", "Waiting": "Waiting"}, + ) + + linked_access_checks = cls._args_schema.linked_access_checks + linked_access_checks.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.linked_access_checks.Element + _element.action_name = AAZStrArg( + options=["action-name"], + help="The action name.", + nullable=True, + ) + _element.linked_action = AAZStrArg( + options=["linked-action"], + help="The linked action.", + nullable=True, + ) + _element.linked_action_verb = AAZStrArg( + options=["linked-action-verb"], + help="The linked action verb.", + nullable=True, + ) + _element.linked_property = AAZStrArg( + options=["linked-property"], + help="The linked property.", + nullable=True, + ) + _element.linked_type = AAZStrArg( + options=["linked-type"], + help="The linked type.", + nullable=True, + ) + + linked_notification_rules = cls._args_schema.linked_notification_rules + linked_notification_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.linked_notification_rules.Element + _element.actions = AAZListArg( + options=["actions"], + nullable=True, + ) + _element.actions_on_failed_operation = AAZListArg( + options=["actions-on-failed-operation"], + nullable=True, + ) + _element.fast_path_actions = AAZListArg( + options=["fast-path-actions"], + nullable=True, + ) + _element.fast_path_actions_on_failed_operation = AAZListArg( + options=["fast-path-actions-on-failed-operation"], + nullable=True, + ) + _element.linked_notification_timeout = AAZDurationArg( + options=["linked-notification-timeout"], + nullable=True, + ) + + actions = cls._args_schema.linked_notification_rules.Element.actions + actions.Element = AAZStrArg( + nullable=True, + ) + + actions_on_failed_operation = cls._args_schema.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrArg( + nullable=True, + ) + + fast_path_actions = cls._args_schema.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrArg( + nullable=True, + ) + + fast_path_actions_on_failed_operation = cls._args_schema.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrArg( + nullable=True, + ) + + linked_operation_rules = cls._args_schema.linked_operation_rules + linked_operation_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.linked_operation_rules.Element + _element.depends_on_types = AAZListArg( + options=["depends-on-types"], + help="Depends on types.", + nullable=True, + ) + _element.linked_action = AAZStrArg( + options=["linked-action"], + enum={"Blocked": "Blocked", "Enabled": "Enabled", "NotSpecified": "NotSpecified", "Validate": "Validate"}, + ) + _element.linked_operation = AAZStrArg( + options=["linked-operation"], + enum={"CrossResourceGroupResourceMove": "CrossResourceGroupResourceMove", "CrossSubscriptionResourceMove": "CrossSubscriptionResourceMove", "None": "None"}, + ) + + depends_on_types = cls._args_schema.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrArg( + nullable=True, + ) + + logging_rules = cls._args_schema.logging_rules + logging_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.logging_rules.Element + _element.action = AAZStrArg( + options=["action"], + ) + _element.detail_level = AAZStrArg( + options=["detail-level"], + enum={"Body": "Body", "None": "None"}, + ) + _element.direction = AAZStrArg( + options=["direction"], + enum={"None": "None", "Request": "Request", "Response": "Response"}, + ) + _element.hidden_property_paths = AAZObjectArg( + options=["hidden-property-paths"], + nullable=True, + ) + + hidden_property_paths = cls._args_schema.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListArg( + options=["hidden-paths-on-request"], + nullable=True, + ) + hidden_property_paths.hidden_paths_on_response = AAZListArg( + options=["hidden-paths-on-response"], + nullable=True, + ) + + hidden_paths_on_request = cls._args_schema.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrArg( + nullable=True, + ) + + hidden_paths_on_response = cls._args_schema.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrArg( + nullable=True, + ) + + managed_resource_group_configuration = cls._args_schema.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListArg( + options=["application-ids"], + nullable=True, + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectArg( + options=["deny-assignment-configuration"], + nullable=True, + ) + managed_resource_group_configuration.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + managed_resource_group_configuration.resource_group_location_override = AAZStrArg( + options=["resource-group-location-override"], + nullable=True, + ) + + application_ids = cls._args_schema.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrArg( + nullable=True, + ) + + deny_assignment_configuration = cls._args_schema.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + deny_assignment_configuration.not_actions = AAZListArg( + options=["not-actions"], + nullable=True, + ) + + not_actions = cls._args_schema.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrArg( + nullable=True, + ) + + management = cls._args_schema.management + management.authorization_owners = AAZListArg( + options=["authorization-owners"], + help="The authorization owners.", + nullable=True, + ) + management.canary_manifest_owners = AAZListArg( + options=["canary-manifest-owners"], + help="List of manifest owners for canary.", + nullable=True, + ) + management.error_response_message_options = AAZObjectArg( + options=["message-options", "error-response-message-options"], + help="Options for error response messages.", + nullable=True, + ) + management.expedited_rollout_metadata = AAZObjectArg( + options=["rollout-metadata", "expedited-rollout-metadata"], + help="Metadata for expedited rollout.", + nullable=True, + ) + management.expedited_rollout_submitters = AAZListArg( + options=["rollout-submitters", "expedited-rollout-submitters"], + help="List of expedited rollout submitters.", + nullable=True, + ) + management.incident_contact_email = AAZStrArg( + options=["incident-contact-email"], + help="The email address of contacts for incidents related to the RP.", + nullable=True, + ) + management.incident_routing_service = AAZStrArg( + options=["incident-service", "incident-routing-service"], + help="The service in IcM when creating or transferring incidents to the RP.", + nullable=True, + ) + management.incident_routing_team = AAZStrArg( + options=["incident-team", "incident-routing-team"], + help="The team in IcM when creating or transferring incidents to the RP.", + nullable=True, + ) + management.manifest_owners = AAZListArg( + options=["manifest-owners"], + singular_options=["manifest-owner"], + help="Specifies an array of required ACIS claims to modify the resource provider's manifest content via ACIS.", + nullable=True, + ) + management.pc_code = AAZStrArg( + options=["pc-code"], + help="The profit center code for the subscription.", + nullable=True, + ) + management.profit_center_program_id = AAZStrArg( + options=["pc-program-id", "profit-center-program-id"], + help="The profit center program id for the subscription.", + nullable=True, + ) + management.resource_access_policy = AAZStrArg( + options=["resource-access-policy"], + help="The resource access policy.", + nullable=True, + enum={"AcisActionAllowed": "AcisActionAllowed", "AcisReadAllowed": "AcisReadAllowed", "NotSpecified": "NotSpecified"}, + ) + management.resource_access_roles = AAZListArg( + options=["resource-access-roles"], + help="The resource access roles.", + nullable=True, + ) + management.schema_owners = AAZListArg( + options=["schema-owners"], + singular_options=["schema-owner", "schema-owners"], + help="Specifies an array of needed ACIS claims to modify the resource provider schema via ACIS.", + nullable=True, + ) + management.service_tree_infos = AAZListArg( + options=["service-tree-infos"], + nullable=True, + ) + + authorization_owners = cls._args_schema.management.authorization_owners + authorization_owners.Element = AAZStrArg( + nullable=True, + ) + + canary_manifest_owners = cls._args_schema.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrArg( + nullable=True, + ) + + error_response_message_options = cls._args_schema.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrArg( + options=["server-failure-response-message-type"], + help="Type of server failure response message.", + nullable=True, + enum={"NotSpecified": "NotSpecified", "OutageReporting": "OutageReporting"}, + ) + + expedited_rollout_metadata = cls._args_schema.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolArg( + options=["enabled"], + help="Expedited rollout enabled?", + nullable=True, + ) + expedited_rollout_metadata.expedited_rollout_intent = AAZStrArg( + options=["expedited-rollout-intent"], + help="Expedited rollout intent.", + nullable=True, + enum={"Hotfix": "Hotfix", "NotSpecified": "NotSpecified"}, + ) + + expedited_rollout_submitters = cls._args_schema.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrArg( + nullable=True, + ) + + manifest_owners = cls._args_schema.management.manifest_owners + manifest_owners.Element = AAZStrArg( + nullable=True, + ) + + resource_access_roles = cls._args_schema.management.resource_access_roles + resource_access_roles.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.management.resource_access_roles.Element + _element.actions = AAZListArg( + options=["actions"], + nullable=True, + ) + _element.allowed_group_claims = AAZListArg( + options=["allowed-group-claims"], + nullable=True, + ) + + actions = cls._args_schema.management.resource_access_roles.Element.actions + actions.Element = AAZStrArg( + nullable=True, + ) + + allowed_group_claims = cls._args_schema.management.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrArg( + nullable=True, + ) + + schema_owners = cls._args_schema.management.schema_owners + schema_owners.Element = AAZStrArg( + nullable=True, + ) + + service_tree_infos = cls._args_schema.management.service_tree_infos + service_tree_infos.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_service_tree_info_update(service_tree_infos.Element) + + marketplace_options = cls._args_schema.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolArg( + options=["add-on-plan-conversion-allowed"], + help="Add-on plan conversion allowed.", + nullable=True, + ) + + metadata = cls._args_schema.metadata + metadata.Element = AAZFreeFormDictArg( + nullable=True, + blank={}, + ) + + notifications = cls._args_schema.notifications + notifications.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.notifications.Element + _element.notification_type = AAZStrArg( + options=["notification-type"], + nullable=True, + enum={"SubscriptionNotification": "SubscriptionNotification", "Unspecified": "Unspecified"}, + ) + _element.skip_notifications = AAZStrArg( + options=["skip-notifications"], + nullable=True, + enum={"Disabled": "Disabled", "Enabled": "Enabled", "Unspecified": "Unspecified"}, + ) + + on_behalf_of_tokens = cls._args_schema.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrArg( + options=["action-name"], + nullable=True, + ) + on_behalf_of_tokens.life_time = AAZStrArg( + options=["life-time"], + nullable=True, + ) + + open_api_configuration = cls._args_schema.open_api_configuration + open_api_configuration.validation = AAZObjectArg( + options=["validation"], + nullable=True, + ) + + validation = cls._args_schema.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolArg( + options=["allow-noncompliant-collection-response"], + help="Indicates whether a non compliance response is allowed for a LIST call", + nullable=True, + ) + + private_endpoint_configuration = cls._args_schema.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListArg( + options=["group-connectivity-information"], + help="The list of group connectivity information.", + ) + private_endpoint_configuration.min_api_version = AAZStrArg( + options=["min-api-version"], + help="The first api version that support private endpoint.", + ) + + group_connectivity_information = cls._args_schema.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrArg( + options=["group-id"], + help="The group id.", + ) + _element.redirect_map_id = AAZStrArg( + options=["redirect-map-id"], + help="The redirect map id.", + nullable=True, + ) + _element.required_members = AAZListArg( + options=["required-members"], + help="List of required members for the group id.", + ) + _element.required_zone_names = AAZListArg( + options=["required-zone-names"], + help="List of required zone names for the group id.", + ) + + required_members = cls._args_schema.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrArg( + nullable=True, + ) + + required_zone_names = cls._args_schema.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrArg( + nullable=True, + ) + + quota_rule = cls._args_schema.quota_rule + quota_rule.location_rules = AAZListArg( + options=["location-rules"], + nullable=True, + ) + quota_rule.quota_policy = AAZStrArg( + options=["quota-policy"], + help="Quota policy.", + nullable=True, + enum={"Default": "Default", "None": "None", "Restricted": "Restricted"}, + ) + quota_rule.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + + location_rules = cls._args_schema.quota_rule.location_rules + location_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.quota_rule.location_rules.Element + _element.location = AAZStrArg( + options=["location"], + nullable=True, + ) + _element.policy = AAZStrArg( + options=["policy"], + help="Quota policy.", + nullable=True, + enum={"Default": "Default", "None": "None", "Restricted": "Restricted"}, + ) + _element.quota_id = AAZStrArg( + options=["quota-id"], + nullable=True, + ) + + required_features = cls._args_schema.quota_rule.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + required_features = cls._args_schema.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + resource_cache = cls._args_schema.resource_cache + resource_cache.enable_resource_cache = AAZBoolArg( + options=["enable-resource-cache"], + help="Enable resource cache.", + nullable=True, + ) + resource_cache.resource_cache_expiration_timespan = AAZStrArg( + options=["resource-cache-expiration-timespan"], + help="Resource cache expiration timespan.", + nullable=True, + ) + + resource_concurrency_control_options = cls._args_schema.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_concurrency_control_options.Element + _element.policy = AAZStrArg( + options=["policy"], + nullable=True, + enum={"NotSpecified": "NotSpecified", "SynchronizeBeginExtension": "SynchronizeBeginExtension"}, + ) + + resource_graph_configuration = cls._args_schema.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrArg( + options=["api-version"], + nullable=True, + ) + resource_graph_configuration.enabled = AAZBoolArg( + options=["enabled"], + nullable=True, + ) + + resource_management_options = cls._args_schema.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectArg( + options=["batch-provisioning-support"], + help="Batch provisioning support.", + nullable=True, + ) + resource_management_options.delete_dependencies = AAZListArg( + options=["delete-dependencies"], + help="Delete dependencies.", + nullable=True, + ) + resource_management_options.nested_provisioning_support = AAZObjectArg( + options=["nested-provisioning-support"], + help="Nested provisioning support.", + nullable=True, + ) + + batch_provisioning_support = cls._args_schema.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrArg( + options=["supported-operations"], + help="Supported operations.", + nullable=True, + enum={"Delete": "Delete", "Get": "Get", "NotSpecified": "NotSpecified"}, + ) + + delete_dependencies = cls._args_schema.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrArg( + options=["linked-property"], + help="Linked property.", + nullable=True, + ) + _element.linked_type = AAZStrArg( + options=["linked-type"], + help="Linked type.", + nullable=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + help="Required features.", + nullable=True, + ) + + required_features = cls._args_schema.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + nested_provisioning_support = cls._args_schema.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrArg( + options=["minimum-api-version"], + help="Minimum API version.", + nullable=True, + ) + + resource_move_policy = cls._args_schema.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolArg( + options=["cross-resource-group-move-enabled"], + nullable=True, + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolArg( + options=["cross-subscription-move-enabled"], + nullable=True, + ) + resource_move_policy.validation_required = AAZBoolArg( + options=["validation-required"], + nullable=True, + ) + + resource_provider_authorization_rules = cls._args_schema.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectArg( + options=["async-operation-polling-rules"], + nullable=True, + ) + + async_operation_polling_rules = cls._args_schema.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrArg( + options=["additional-options"], + nullable=True, + enum={"ProtectedAsyncOperationPolling": "ProtectedAsyncOperationPolling", "ProtectedAsyncOperationPollingAuditOnly": "ProtectedAsyncOperationPollingAuditOnly"}, + ) + async_operation_polling_rules.authorization_actions = AAZListArg( + options=["authorization-actions"], + nullable=True, + ) + + authorization_actions = cls._args_schema.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrArg( + nullable=True, + ) + + resource_query_management = cls._args_schema.resource_query_management + resource_query_management.filter_option = AAZStrArg( + options=["filter-option"], + help="Filter option.", + nullable=True, + enum={"EnableSubscriptionFilterOnTenant": "EnableSubscriptionFilterOnTenant", "NotSpecified": "NotSpecified"}, + ) + + resource_type_common_attribute_management = cls._args_schema.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrArg( + options=["common-api-versions-merge-mode"], + help="Common api versions merge mode.", + nullable=True, + enum={"Merge": "Merge", "Overwrite": "Overwrite"}, + ) + + routing_rule = cls._args_schema.routing_rule + routing_rule.host_resource_type = AAZStrArg( + options=["host-resource-type"], + help="Hosted resource type.", + nullable=True, + ) + + service_tree_infos = cls._args_schema.service_tree_infos + service_tree_infos.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_service_tree_info_update(service_tree_infos.Element) + + subscription_state_rules = cls._args_schema.subscription_state_rules + subscription_state_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.subscription_state_rules.Element + _element.allowed_actions = AAZListArg( + options=["allowed-actions"], + nullable=True, + ) + _element.state = AAZStrArg( + options=["state"], + nullable=True, + enum={"Deleted": "Deleted", "Disabled": "Disabled", "Enabled": "Enabled", "NotDefined": "NotDefined", "PastDue": "PastDue", "Warned": "Warned"}, + ) + + allowed_actions = cls._args_schema.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrArg( + nullable=True, + ) + + swagger_specifications = cls._args_schema.swagger_specifications + swagger_specifications.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.swagger_specifications.Element + _element.api_versions = AAZListArg( + options=["api-versions"], + nullable=True, + ) + _element.swagger_spec_folder_uri = AAZStrArg( + options=["swagger-spec-folder-uri"], + nullable=True, + ) + + api_versions = cls._args_schema.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrArg( + nullable=True, + ) + + template_deployment_options = cls._args_schema.template_deployment_options + template_deployment_options.preflight_options = AAZListArg( + options=["preflight-options"], + nullable=True, + ) + template_deployment_options.preflight_supported = AAZBoolArg( + options=["preflight-supported"], + nullable=True, + ) + + preflight_options = cls._args_schema.template_deployment_options.preflight_options + preflight_options.Element = AAZStrArg( + nullable=True, + enum={"ContinueDeploymentOnFailure": "ContinueDeploymentOnFailure", "DefaultValidationOnly": "DefaultValidationOnly", "None": "None"}, + ) + + template_deployment_policy = cls._args_schema.template_deployment_policy + template_deployment_policy.capabilities = AAZStrArg( + options=["capabilities"], + enum={"Default": "Default", "Preflight": "Preflight"}, + ) + template_deployment_policy.preflight_notifications = AAZStrArg( + options=["preflight-notifications"], + nullable=True, + enum={"None": "None", "UnregisteredSubscriptions": "UnregisteredSubscriptions"}, + ) + template_deployment_policy.preflight_options = AAZStrArg( + options=["preflight-options"], + enum={"DeploymentRequests": "DeploymentRequests", "None": "None", "RegisteredOnly": "RegisteredOnly", "TestOnly": "TestOnly", "ValidationRequests": "ValidationRequests"}, + ) + + throttling_rules = cls._args_schema.throttling_rules + throttling_rules.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.throttling_rules.Element + _element.action = AAZStrArg( + options=["action"], + ) + _element.application_id = AAZListArg( + options=["application-id"], + nullable=True, + ) + _element.metrics = AAZListArg( + options=["metrics"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + + application_id = cls._args_schema.throttling_rules.Element.application_id + application_id.Element = AAZStrArg( + nullable=True, + ) + + metrics = cls._args_schema.throttling_rules.Element.metrics + metrics.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.throttling_rules.Element.metrics.Element + _element.interval = AAZDurationArg( + options=["interval"], + nullable=True, + ) + _element.limit = AAZIntArg( + options=["limit"], + ) + _element.type = AAZStrArg( + options=["type"], + enum={"NotSpecified": "NotSpecified", "NumberOfRequests": "NumberOfRequests", "NumberOfResources": "NumberOfResources"}, + ) + + required_features = cls._args_schema.throttling_rules.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + # define Arg Group "RequestHeaderOptions" + + _args_schema = cls._args_schema + _args_schema.opt_in_headers = AAZStrArg( + options=["--opt-in-headers"], + arg_group="RequestHeaderOptions", + help="The opt-in headers.", + nullable=True, + enum={"ClientGroupMembership": "ClientGroupMembership", "ClientPrincipalNameEncoded": "ClientPrincipalNameEncoded", "MSIResourceIdEncoded": "MSIResourceIdEncoded", "ManagementGroupAncestorsEncoded": "ManagementGroupAncestorsEncoded", "NotSpecified": "NotSpecified", "PrivateLinkId": "PrivateLinkId", "PrivateLinkResourceId": "PrivateLinkResourceId", "PrivateLinkVnetTrafficTag": "PrivateLinkVnetTrafficTag", "ResourceGroupLocation": "ResourceGroupLocation", "SignedAuxiliaryTokens": "SignedAuxiliaryTokens", "SignedUserToken": "SignedUserToken", "UnboundedClientGroupMembership": "UnboundedClientGroupMembership"}, + ) + _args_schema.opt_out_headers = AAZStrArg( + options=["--opt-out-headers"], + arg_group="RequestHeaderOptions", + help="The opt-out headers.", + nullable=True, + enum={"NotSpecified": "NotSpecified", "SystemDataCreatedByLastModifiedBy": "SystemDataCreatedByLastModifiedBy"}, + ) + + # define Arg Group "SubscriptionLifecycleNotificationSpecifications" + + _args_schema = cls._args_schema + _args_schema.soft_delete_ttl = AAZDurationArg( + options=["--soft-delete-ttl"], + arg_group="SubscriptionLifecycleNotificationSpecifications", + help="The soft delete time to live.", + nullable=True, + ) + _args_schema.subscription_state_override_actions = AAZListArg( + options=["--override-actions", "--subscription-state-override-actions"], + arg_group="SubscriptionLifecycleNotificationSpecifications", + help="The subscription state override actions.", + nullable=True, + ) + + subscription_state_override_actions = cls._args_schema.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.subscription_state_override_actions.Element + _element.action = AAZStrArg( + options=["action"], + enum={"BillingCancellation": "BillingCancellation", "DeleteAllResources": "DeleteAllResources", "NoOp": "NoOp", "NotDefined": "NotDefined", "SoftDeleteAllResources": "SoftDeleteAllResources", "UndoSoftDelete": "UndoSoftDelete"}, + ) + _element.state = AAZStrArg( + options=["state"], + enum={"Deleted": "Deleted", "Registered": "Registered", "Suspended": "Suspended", "SuspendedToDeleted": "SuspendedToDeleted", "SuspendedToRegistered": "SuspendedToRegistered", "SuspendedToUnregistered": "SuspendedToUnregistered", "SuspendedToWarned": "SuspendedToWarned", "Unregistered": "Unregistered", "Warned": "Warned", "WarnedToDeleted": "WarnedToDeleted", "WarnedToRegistered": "WarnedToRegistered", "WarnedToSuspended": "WarnedToSuspended", "WarnedToUnregistered": "WarnedToUnregistered"}, + ) + return cls._args_schema + + _args_service_tree_info_update = None + + @classmethod + def _build_args_service_tree_info_update(cls, _schema): + if cls._args_service_tree_info_update is not None: + _schema.component_id = cls._args_service_tree_info_update.component_id + _schema.readiness = cls._args_service_tree_info_update.readiness + _schema.service_id = cls._args_service_tree_info_update.service_id + return + + cls._args_service_tree_info_update = AAZObjectArg( + nullable=True, + ) + + service_tree_info_update = cls._args_service_tree_info_update + service_tree_info_update.component_id = AAZStrArg( + options=["component-id"], + nullable=True, + ) + service_tree_info_update.readiness = AAZStrArg( + options=["readiness"], + nullable=True, + enum={"ClosingDown": "ClosingDown", "Deprecated": "Deprecated", "GA": "GA", "InDevelopment": "InDevelopment", "InternalOnly": "InternalOnly", "PrivatePreview": "PrivatePreview", "PublicPreview": "PublicPreview", "RemovedFromARM": "RemovedFromARM", "Retired": "Retired"}, + ) + service_tree_info_update.service_id = AAZStrArg( + options=["service-id"], + nullable=True, + ) + + _schema.component_id = cls._args_service_tree_info_update.component_id + _schema.readiness = cls._args_service_tree_info_update.readiness + _schema.service_id = cls._args_service_tree_info_update.service_id + + _args_token_auth_configuration_update = None + + @classmethod + def _build_args_token_auth_configuration_update(cls, _schema): + if cls._args_token_auth_configuration_update is not None: + _schema.authentication_scheme = cls._args_token_auth_configuration_update.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_update.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_update.signed_request_scope + return + + cls._args_token_auth_configuration_update = AAZObjectArg( + nullable=True, + ) + + token_auth_configuration_update = cls._args_token_auth_configuration_update + token_auth_configuration_update.authentication_scheme = AAZStrArg( + options=["authentication-scheme"], + nullable=True, + enum={"Bearer": "Bearer", "PoP": "PoP"}, + ) + token_auth_configuration_update.disable_certificate_authentication_fallback = AAZBoolArg( + options=["disable-certificate-authentication-fallback"], + nullable=True, + ) + token_auth_configuration_update.signed_request_scope = AAZStrArg( + options=["signed-request-scope"], + nullable=True, + enum={"Endpoint": "Endpoint", "ResourceUri": "ResourceUri"}, + ) + + _schema.authentication_scheme = cls._args_token_auth_configuration_update.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._args_token_auth_configuration_update.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._args_token_auth_configuration_update.signed_request_scope + + def _execute_operations(self): + self.pre_operations() + self.ResourceTypeRegistrationsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + yield self.ResourceTypeRegistrationsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ResourceTypeRegistrationsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_resource_type_registration_read(cls._schema_on_200) + + return cls._schema_on_200 + + class ResourceTypeRegistrationsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_resource_type_registration_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("kind", AAZStrType, ".kind") + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("addResourceListTargetLocations", AAZBoolType, ".add_resource_list_target_locations") + properties.set_prop("additionalOptions", AAZStrType, ".additional_options") + properties.set_prop("allowEmptyRoleAssignments", AAZBoolType, ".allow_empty_role_assignments") + properties.set_prop("allowedResourceNames", AAZListType, ".allowed_resource_names") + properties.set_prop("allowedTemplateDeploymentReferenceActions", AAZListType, ".allowed_template_deployment_reference_actions") + properties.set_prop("allowedUnauthorizedActions", AAZListType, ".allowed_unauthorized_actions") + properties.set_prop("apiProfiles", AAZListType, ".api_profiles") + properties.set_prop("asyncOperationResourceTypeName", AAZStrType, ".async_operation_resource_type_name") + properties.set_prop("asyncTimeoutRules", AAZListType, ".async_timeout_rules") + properties.set_prop("authorizationActionMappings", AAZListType, ".authorization_action_mappings") + properties.set_prop("availabilityZoneRule", AAZObjectType, ".availability_zone_rule") + properties.set_prop("capacityRule", AAZObjectType, ".capacity_rule") + properties.set_prop("category", AAZStrType, ".category") + properties.set_prop("checkNameAvailabilitySpecifications", AAZObjectType, ".check_name_availability_specifications") + properties.set_prop("commonApiVersions", AAZListType, ".common_api_versions") + properties.set_prop("crossTenantTokenValidation", AAZStrType, ".cross_tenant_token_validation") + properties.set_prop("defaultApiVersion", AAZStrType, ".default_api_version") + properties.set_prop("disallowedActionVerbs", AAZListType, ".disallowed_action_verbs") + properties.set_prop("disallowedEndUserOperations", AAZListType, ".disallowed_end_user_operations") + properties.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + properties.set_prop("enableAsyncOperation", AAZBoolType, ".enable_async_operation") + properties.set_prop("enableThirdPartyS2S", AAZBoolType, ".enable_third_party_s2_s") + properties.set_prop("endpoints", AAZListType, ".endpoints") + properties.set_prop("extendedLocations", AAZListType, ".extended_locations") + properties.set_prop("extensionOptions", AAZObjectType) + properties.set_prop("featuresRule", AAZObjectType) + properties.set_prop("frontdoorRequestMode", AAZStrType, ".frontdoor_request_mode") + properties.set_prop("groupingTag", AAZStrType, ".grouping_tag") + properties.set_prop("identityManagement", AAZObjectType, ".identity_management") + properties.set_prop("isPureProxy", AAZBoolType, ".is_pure_proxy") + properties.set_prop("legacyName", AAZStrType, ".legacy_name") + properties.set_prop("legacyNames", AAZListType, ".legacy_names") + properties.set_prop("legacyPolicy", AAZObjectType, ".legacy_policy") + properties.set_prop("linkedAccessChecks", AAZListType, ".linked_access_checks") + properties.set_prop("linkedNotificationRules", AAZListType, ".linked_notification_rules") + properties.set_prop("linkedOperationRules", AAZListType, ".linked_operation_rules") + properties.set_prop("loggingRules", AAZListType, ".logging_rules") + properties.set_prop("managedResourceGroupConfiguration", AAZObjectType, ".managed_resource_group_configuration") + properties.set_prop("management", AAZObjectType, ".management") + properties.set_prop("manifestLink", AAZStrType, ".manifest_link") + properties.set_prop("marketplaceOptions", AAZObjectType, ".marketplace_options") + properties.set_prop("marketplaceType", AAZStrType, ".marketplace_type") + properties.set_prop("metadata", AAZDictType, ".metadata") + properties.set_prop("notifications", AAZListType, ".notifications") + properties.set_prop("onBehalfOfTokens", AAZObjectType, ".on_behalf_of_tokens") + properties.set_prop("openApiConfiguration", AAZObjectType, ".open_api_configuration") + properties.set_prop("policyExecutionType", AAZStrType, ".policy_execution_type") + properties.set_prop("privateEndpointConfiguration", AAZObjectType, ".private_endpoint_configuration") + properties.set_prop("quotaRule", AAZObjectType, ".quota_rule") + properties.set_prop("regionality", AAZStrType, ".regionality") + properties.set_prop("requestHeaderOptions", AAZObjectType) + properties.set_prop("requiredFeatures", AAZListType, ".required_features") + properties.set_prop("resourceCache", AAZObjectType, ".resource_cache") + properties.set_prop("resourceConcurrencyControlOptions", AAZDictType, ".resource_concurrency_control_options") + properties.set_prop("resourceDeletionPolicy", AAZStrType, ".resource_deletion_policy") + properties.set_prop("resourceGraphConfiguration", AAZObjectType, ".resource_graph_configuration") + properties.set_prop("resourceManagementOptions", AAZObjectType, ".resource_management_options") + properties.set_prop("resourceMovePolicy", AAZObjectType, ".resource_move_policy") + properties.set_prop("resourceProviderAuthorizationRules", AAZObjectType, ".resource_provider_authorization_rules") + properties.set_prop("resourceQueryManagement", AAZObjectType, ".resource_query_management") + properties.set_prop("resourceSubType", AAZStrType, ".resource_sub_type") + properties.set_prop("resourceTypeCommonAttributeManagement", AAZObjectType, ".resource_type_common_attribute_management") + properties.set_prop("resourceValidation", AAZStrType, ".resource_validation") + properties.set_prop("routingRule", AAZObjectType, ".routing_rule") + properties.set_prop("routingType", AAZStrType, ".routing_type") + properties.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + properties.set_prop("skuLink", AAZStrType, ".sku_link") + properties.set_prop("subscriptionLifecycleNotificationSpecifications", AAZObjectType) + properties.set_prop("subscriptionStateRules", AAZListType, ".subscription_state_rules") + properties.set_prop("supportsTags", AAZBoolType, ".supports_tags") + properties.set_prop("swaggerSpecifications", AAZListType, ".swagger_specifications") + properties.set_prop("templateDeploymentOptions", AAZObjectType, ".template_deployment_options") + properties.set_prop("templateDeploymentPolicy", AAZObjectType, ".template_deployment_policy") + properties.set_prop("throttlingRules", AAZListType, ".throttling_rules") + _UpdateHelper._build_schema_token_auth_configuration_update(properties.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + + allowed_resource_names = _builder.get(".properties.allowedResourceNames") + if allowed_resource_names is not None: + allowed_resource_names.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.allowedResourceNames[]") + if _elements is not None: + _elements.set_prop("getActionVerb", AAZStrType, ".get_action_verb") + _elements.set_prop("name", AAZStrType, ".name") + + allowed_template_deployment_reference_actions = _builder.get(".properties.allowedTemplateDeploymentReferenceActions") + if allowed_template_deployment_reference_actions is not None: + allowed_template_deployment_reference_actions.set_elements(AAZStrType, ".") + + allowed_unauthorized_actions = _builder.get(".properties.allowedUnauthorizedActions") + if allowed_unauthorized_actions is not None: + allowed_unauthorized_actions.set_elements(AAZStrType, ".") + + api_profiles = _builder.get(".properties.apiProfiles") + if api_profiles is not None: + api_profiles.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.apiProfiles[]") + if _elements is not None: + _elements.set_prop("apiVersion", AAZStrType, ".api_version") + _elements.set_prop("profileVersion", AAZStrType, ".profile_version") + + async_timeout_rules = _builder.get(".properties.asyncTimeoutRules") + if async_timeout_rules is not None: + async_timeout_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.asyncTimeoutRules[]") + if _elements is not None: + _elements.set_prop("actionName", AAZStrType, ".action_name") + _elements.set_prop("timeout", AAZStrType, ".timeout") + + authorization_action_mappings = _builder.get(".properties.authorizationActionMappings") + if authorization_action_mappings is not None: + authorization_action_mappings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.authorizationActionMappings[]") + if _elements is not None: + _elements.set_prop("desired", AAZStrType, ".desired") + _elements.set_prop("original", AAZStrType, ".original") + + availability_zone_rule = _builder.get(".properties.availabilityZoneRule") + if availability_zone_rule is not None: + availability_zone_rule.set_prop("availabilityZonePolicy", AAZStrType, ".availability_zone_policy") + + capacity_rule = _builder.get(".properties.capacityRule") + if capacity_rule is not None: + capacity_rule.set_prop("capacityPolicy", AAZStrType, ".capacity_policy") + capacity_rule.set_prop("skuAlias", AAZStrType, ".sku_alias") + + check_name_availability_specifications = _builder.get(".properties.checkNameAvailabilitySpecifications") + if check_name_availability_specifications is not None: + check_name_availability_specifications.set_prop("enableDefaultValidation", AAZBoolType, ".enable_default_validation") + check_name_availability_specifications.set_prop("resourceTypesWithCustomValidation", AAZListType, ".resource_types_with_custom_validation") + + resource_types_with_custom_validation = _builder.get(".properties.checkNameAvailabilitySpecifications.resourceTypesWithCustomValidation") + if resource_types_with_custom_validation is not None: + resource_types_with_custom_validation.set_elements(AAZStrType, ".") + + common_api_versions = _builder.get(".properties.commonApiVersions") + if common_api_versions is not None: + common_api_versions.set_elements(AAZStrType, ".") + + disallowed_action_verbs = _builder.get(".properties.disallowedActionVerbs") + if disallowed_action_verbs is not None: + disallowed_action_verbs.set_elements(AAZStrType, ".") + + disallowed_end_user_operations = _builder.get(".properties.disallowedEndUserOperations") + if disallowed_end_user_operations is not None: + disallowed_end_user_operations.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + endpoints = _builder.get(".properties.endpoints") + if endpoints is not None: + endpoints.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.endpoints[]") + if _elements is not None: + _elements.set_prop("apiVersion", AAZStrType, ".api_version") + _elements.set_prop("apiVersions", AAZListType, ".api_versions") + _elements.set_prop("dataBoundary", AAZStrType, ".data_boundary") + _elements.set_prop("dstsConfiguration", AAZObjectType, ".dsts_configuration") + _elements.set_prop("enabled", AAZBoolType, ".enabled") + _elements.set_prop("endpointType", AAZStrType, ".endpoint_type") + _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _elements.set_prop("extensions", AAZListType, ".extensions") + _elements.set_prop("featuresRule", AAZObjectType, ".features_rule") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("skuLink", AAZStrType, ".sku_link") + _elements.set_prop("timeout", AAZStrType, ".timeout") + _UpdateHelper._build_schema_token_auth_configuration_update(_elements.set_prop("tokenAuthConfiguration", AAZObjectType, ".token_auth_configuration")) + _elements.set_prop("zones", AAZListType, ".zones") + + api_versions = _builder.get(".properties.endpoints[].apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + dsts_configuration = _builder.get(".properties.endpoints[].dstsConfiguration") + if dsts_configuration is not None: + dsts_configuration.set_prop("serviceDnsName", AAZStrType, ".service_dns_name") + dsts_configuration.set_prop("serviceName", AAZStrType, ".service_name", typ_kwargs={"flags": {"required": True}}) + + extensions = _builder.get(".properties.endpoints[].extensions") + if extensions is not None: + extensions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.endpoints[].extensions[]") + if _elements is not None: + _elements.set_prop("endpointUri", AAZStrType, ".endpoint_uri") + _elements.set_prop("extensionCategories", AAZListType, ".extension_categories") + _elements.set_prop("timeout", AAZStrType, ".timeout") + + extension_categories = _builder.get(".properties.endpoints[].extensions[].extensionCategories") + if extension_categories is not None: + extension_categories.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".properties.endpoints[].featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + locations = _builder.get(".properties.endpoints[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.endpoints[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.endpoints[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + extended_locations = _builder.get(".properties.extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.extendedLocations[]") + if _elements is not None: + _elements.set_prop("supportedPolicy", AAZStrType, ".supported_policy") + _elements.set_prop("type", AAZStrType, ".type") + + extension_options = _builder.get(".properties.extensionOptions") + if extension_options is not None: + extension_options.set_prop("resourceCreationBegin", AAZObjectType, ".resource_creation_begin") + + resource_creation_begin = _builder.get(".properties.extensionOptions.resourceCreationBegin") + if resource_creation_begin is not None: + resource_creation_begin.set_prop("request", AAZListType, ".request") + resource_creation_begin.set_prop("response", AAZListType, ".response") + + request = _builder.get(".properties.extensionOptions.resourceCreationBegin.request") + if request is not None: + request.set_elements(AAZStrType, ".") + + response = _builder.get(".properties.extensionOptions.resourceCreationBegin.response") + if response is not None: + response.set_elements(AAZStrType, ".") + + features_rule = _builder.get(".properties.featuresRule") + if features_rule is not None: + features_rule.set_prop("requiredFeaturesPolicy", AAZStrType, ".required_features_policy", typ_kwargs={"flags": {"required": True}}) + + identity_management = _builder.get(".properties.identityManagement") + if identity_management is not None: + identity_management.set_prop("applicationId", AAZStrType, ".application_id") + identity_management.set_prop("applicationIds", AAZListType, ".application_ids") + identity_management.set_prop("delegationAppIds", AAZListType, ".delegation_app_ids") + identity_management.set_prop("type", AAZStrType, ".type") + + application_ids = _builder.get(".properties.identityManagement.applicationIds") + if application_ids is not None: + application_ids.set_elements(AAZStrType, ".") + + delegation_app_ids = _builder.get(".properties.identityManagement.delegationAppIds") + if delegation_app_ids is not None: + delegation_app_ids.set_elements(AAZStrType, ".") + + legacy_names = _builder.get(".properties.legacyNames") + if legacy_names is not None: + legacy_names.set_elements(AAZStrType, ".") + + legacy_policy = _builder.get(".properties.legacyPolicy") + if legacy_policy is not None: + legacy_policy.set_prop("disallowedConditions", AAZListType, ".disallowed_conditions") + legacy_policy.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") + + disallowed_conditions = _builder.get(".properties.legacyPolicy.disallowedConditions") + if disallowed_conditions is not None: + disallowed_conditions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.legacyPolicy.disallowedConditions[]") + if _elements is not None: + _elements.set_prop("disallowedLegacyOperations", AAZListType, ".disallowed_legacy_operations") + _elements.set_prop("feature", AAZStrType, ".feature") + + disallowed_legacy_operations = _builder.get(".properties.legacyPolicy.disallowedConditions[].disallowedLegacyOperations") + if disallowed_legacy_operations is not None: + disallowed_legacy_operations.set_elements(AAZStrType, ".") + + disallowed_legacy_operations = _builder.get(".properties.legacyPolicy.disallowedLegacyOperations") + if disallowed_legacy_operations is not None: + disallowed_legacy_operations.set_elements(AAZStrType, ".") + + linked_access_checks = _builder.get(".properties.linkedAccessChecks") + if linked_access_checks is not None: + linked_access_checks.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.linkedAccessChecks[]") + if _elements is not None: + _elements.set_prop("actionName", AAZStrType, ".action_name") + _elements.set_prop("linkedAction", AAZStrType, ".linked_action") + _elements.set_prop("linkedActionVerb", AAZStrType, ".linked_action_verb") + _elements.set_prop("linkedProperty", AAZStrType, ".linked_property") + _elements.set_prop("linkedType", AAZStrType, ".linked_type") + + linked_notification_rules = _builder.get(".properties.linkedNotificationRules") + if linked_notification_rules is not None: + linked_notification_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.linkedNotificationRules[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("actionsOnFailedOperation", AAZListType, ".actions_on_failed_operation") + _elements.set_prop("fastPathActions", AAZListType, ".fast_path_actions") + _elements.set_prop("fastPathActionsOnFailedOperation", AAZListType, ".fast_path_actions_on_failed_operation") + _elements.set_prop("linkedNotificationTimeout", AAZStrType, ".linked_notification_timeout") + + actions = _builder.get(".properties.linkedNotificationRules[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + actions_on_failed_operation = _builder.get(".properties.linkedNotificationRules[].actionsOnFailedOperation") + if actions_on_failed_operation is not None: + actions_on_failed_operation.set_elements(AAZStrType, ".") + + fast_path_actions = _builder.get(".properties.linkedNotificationRules[].fastPathActions") + if fast_path_actions is not None: + fast_path_actions.set_elements(AAZStrType, ".") + + fast_path_actions_on_failed_operation = _builder.get(".properties.linkedNotificationRules[].fastPathActionsOnFailedOperation") + if fast_path_actions_on_failed_operation is not None: + fast_path_actions_on_failed_operation.set_elements(AAZStrType, ".") + + linked_operation_rules = _builder.get(".properties.linkedOperationRules") + if linked_operation_rules is not None: + linked_operation_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.linkedOperationRules[]") + if _elements is not None: + _elements.set_prop("dependsOnTypes", AAZListType, ".depends_on_types") + _elements.set_prop("linkedAction", AAZStrType, ".linked_action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("linkedOperation", AAZStrType, ".linked_operation", typ_kwargs={"flags": {"required": True}}) + + depends_on_types = _builder.get(".properties.linkedOperationRules[].dependsOnTypes") + if depends_on_types is not None: + depends_on_types.set_elements(AAZStrType, ".") + + logging_rules = _builder.get(".properties.loggingRules") + if logging_rules is not None: + logging_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.loggingRules[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("detailLevel", AAZStrType, ".detail_level", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("direction", AAZStrType, ".direction", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("hiddenPropertyPaths", AAZObjectType, ".hidden_property_paths") + + hidden_property_paths = _builder.get(".properties.loggingRules[].hiddenPropertyPaths") + if hidden_property_paths is not None: + hidden_property_paths.set_prop("hiddenPathsOnRequest", AAZListType, ".hidden_paths_on_request") + hidden_property_paths.set_prop("hiddenPathsOnResponse", AAZListType, ".hidden_paths_on_response") + + hidden_paths_on_request = _builder.get(".properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnRequest") + if hidden_paths_on_request is not None: + hidden_paths_on_request.set_elements(AAZStrType, ".") + + hidden_paths_on_response = _builder.get(".properties.loggingRules[].hiddenPropertyPaths.hiddenPathsOnResponse") + if hidden_paths_on_response is not None: + hidden_paths_on_response.set_elements(AAZStrType, ".") + + managed_resource_group_configuration = _builder.get(".properties.managedResourceGroupConfiguration") + if managed_resource_group_configuration is not None: + managed_resource_group_configuration.set_prop("applicationIds", AAZListType, ".application_ids") + managed_resource_group_configuration.set_prop("denyAssignmentConfiguration", AAZObjectType, ".deny_assignment_configuration") + managed_resource_group_configuration.set_prop("enabled", AAZBoolType, ".enabled") + managed_resource_group_configuration.set_prop("resourceGroupLocationOverride", AAZStrType, ".resource_group_location_override") + + application_ids = _builder.get(".properties.managedResourceGroupConfiguration.applicationIds") + if application_ids is not None: + application_ids.set_elements(AAZStrType, ".") + + deny_assignment_configuration = _builder.get(".properties.managedResourceGroupConfiguration.denyAssignmentConfiguration") + if deny_assignment_configuration is not None: + deny_assignment_configuration.set_prop("enabled", AAZBoolType, ".enabled") + deny_assignment_configuration.set_prop("notActions", AAZListType, ".not_actions") + + not_actions = _builder.get(".properties.managedResourceGroupConfiguration.denyAssignmentConfiguration.notActions") + if not_actions is not None: + not_actions.set_elements(AAZStrType, ".") + + management = _builder.get(".properties.management") + if management is not None: + management.set_prop("authorizationOwners", AAZListType, ".authorization_owners") + management.set_prop("canaryManifestOwners", AAZListType, ".canary_manifest_owners") + management.set_prop("errorResponseMessageOptions", AAZObjectType, ".error_response_message_options") + management.set_prop("expeditedRolloutMetadata", AAZObjectType, ".expedited_rollout_metadata") + management.set_prop("expeditedRolloutSubmitters", AAZListType, ".expedited_rollout_submitters") + management.set_prop("incidentContactEmail", AAZStrType, ".incident_contact_email") + management.set_prop("incidentRoutingService", AAZStrType, ".incident_routing_service") + management.set_prop("incidentRoutingTeam", AAZStrType, ".incident_routing_team") + management.set_prop("manifestOwners", AAZListType, ".manifest_owners") + management.set_prop("pcCode", AAZStrType, ".pc_code") + management.set_prop("profitCenterProgramId", AAZStrType, ".profit_center_program_id") + management.set_prop("resourceAccessPolicy", AAZStrType, ".resource_access_policy") + management.set_prop("resourceAccessRoles", AAZListType, ".resource_access_roles") + management.set_prop("schemaOwners", AAZListType, ".schema_owners") + management.set_prop("serviceTreeInfos", AAZListType, ".service_tree_infos") + + authorization_owners = _builder.get(".properties.management.authorizationOwners") + if authorization_owners is not None: + authorization_owners.set_elements(AAZStrType, ".") + + canary_manifest_owners = _builder.get(".properties.management.canaryManifestOwners") + if canary_manifest_owners is not None: + canary_manifest_owners.set_elements(AAZStrType, ".") + + error_response_message_options = _builder.get(".properties.management.errorResponseMessageOptions") + if error_response_message_options is not None: + error_response_message_options.set_prop("serverFailureResponseMessageType", AAZStrType, ".server_failure_response_message_type") + + expedited_rollout_metadata = _builder.get(".properties.management.expeditedRolloutMetadata") + if expedited_rollout_metadata is not None: + expedited_rollout_metadata.set_prop("enabled", AAZBoolType, ".enabled") + expedited_rollout_metadata.set_prop("expeditedRolloutIntent", AAZStrType, ".expedited_rollout_intent") + + expedited_rollout_submitters = _builder.get(".properties.management.expeditedRolloutSubmitters") + if expedited_rollout_submitters is not None: + expedited_rollout_submitters.set_elements(AAZStrType, ".") + + manifest_owners = _builder.get(".properties.management.manifestOwners") + if manifest_owners is not None: + manifest_owners.set_elements(AAZStrType, ".") + + resource_access_roles = _builder.get(".properties.management.resourceAccessRoles") + if resource_access_roles is not None: + resource_access_roles.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.management.resourceAccessRoles[]") + if _elements is not None: + _elements.set_prop("actions", AAZListType, ".actions") + _elements.set_prop("allowedGroupClaims", AAZListType, ".allowed_group_claims") + + actions = _builder.get(".properties.management.resourceAccessRoles[].actions") + if actions is not None: + actions.set_elements(AAZStrType, ".") + + allowed_group_claims = _builder.get(".properties.management.resourceAccessRoles[].allowedGroupClaims") + if allowed_group_claims is not None: + allowed_group_claims.set_elements(AAZStrType, ".") + + schema_owners = _builder.get(".properties.management.schemaOwners") + if schema_owners is not None: + schema_owners.set_elements(AAZStrType, ".") + + service_tree_infos = _builder.get(".properties.management.serviceTreeInfos") + if service_tree_infos is not None: + _UpdateHelper._build_schema_service_tree_info_update(service_tree_infos.set_elements(AAZObjectType, ".")) + + marketplace_options = _builder.get(".properties.marketplaceOptions") + if marketplace_options is not None: + marketplace_options.set_prop("addOnPlanConversionAllowed", AAZBoolType, ".add_on_plan_conversion_allowed") + + metadata = _builder.get(".properties.metadata") + if metadata is not None: + metadata.set_elements(AAZFreeFormDictType, ".") + + _elements = _builder.get(".properties.metadata{}") + if _elements is not None: + _elements.set_anytype_elements(".") + + notifications = _builder.get(".properties.notifications") + if notifications is not None: + notifications.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.notifications[]") + if _elements is not None: + _elements.set_prop("notificationType", AAZStrType, ".notification_type") + _elements.set_prop("skipNotifications", AAZStrType, ".skip_notifications") + + on_behalf_of_tokens = _builder.get(".properties.onBehalfOfTokens") + if on_behalf_of_tokens is not None: + on_behalf_of_tokens.set_prop("actionName", AAZStrType, ".action_name") + on_behalf_of_tokens.set_prop("lifeTime", AAZStrType, ".life_time") + + open_api_configuration = _builder.get(".properties.openApiConfiguration") + if open_api_configuration is not None: + open_api_configuration.set_prop("validation", AAZObjectType, ".validation") + + validation = _builder.get(".properties.openApiConfiguration.validation") + if validation is not None: + validation.set_prop("allowNoncompliantCollectionResponse", AAZBoolType, ".allow_noncompliant_collection_response") + + private_endpoint_configuration = _builder.get(".properties.privateEndpointConfiguration") + if private_endpoint_configuration is not None: + private_endpoint_configuration.set_prop("groupConnectivityInformation", AAZListType, ".group_connectivity_information", typ_kwargs={"flags": {"required": True}}) + private_endpoint_configuration.set_prop("minApiVersion", AAZStrType, ".min_api_version", typ_kwargs={"flags": {"required": True}}) + + group_connectivity_information = _builder.get(".properties.privateEndpointConfiguration.groupConnectivityInformation") + if group_connectivity_information is not None: + group_connectivity_information.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.privateEndpointConfiguration.groupConnectivityInformation[]") + if _elements is not None: + _elements.set_prop("groupId", AAZStrType, ".group_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("redirectMapId", AAZStrType, ".redirect_map_id") + _elements.set_prop("requiredMembers", AAZListType, ".required_members", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredZoneNames", AAZListType, ".required_zone_names", typ_kwargs={"flags": {"required": True}}) + + required_members = _builder.get(".properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredMembers") + if required_members is not None: + required_members.set_elements(AAZStrType, ".") + + required_zone_names = _builder.get(".properties.privateEndpointConfiguration.groupConnectivityInformation[].requiredZoneNames") + if required_zone_names is not None: + required_zone_names.set_elements(AAZStrType, ".") + + quota_rule = _builder.get(".properties.quotaRule") + if quota_rule is not None: + quota_rule.set_prop("locationRules", AAZListType, ".location_rules") + quota_rule.set_prop("quotaPolicy", AAZStrType, ".quota_policy") + quota_rule.set_prop("requiredFeatures", AAZListType, ".required_features") + + location_rules = _builder.get(".properties.quotaRule.locationRules") + if location_rules is not None: + location_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.quotaRule.locationRules[]") + if _elements is not None: + _elements.set_prop("location", AAZStrType, ".location") + _elements.set_prop("policy", AAZStrType, ".policy") + _elements.set_prop("quotaId", AAZStrType, ".quota_id") + + required_features = _builder.get(".properties.quotaRule.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + request_header_options = _builder.get(".properties.requestHeaderOptions") + if request_header_options is not None: + request_header_options.set_prop("optInHeaders", AAZStrType, ".opt_in_headers") + request_header_options.set_prop("optOutHeaders", AAZStrType, ".opt_out_headers") + + required_features = _builder.get(".properties.requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + resource_cache = _builder.get(".properties.resourceCache") + if resource_cache is not None: + resource_cache.set_prop("enableResourceCache", AAZBoolType, ".enable_resource_cache") + resource_cache.set_prop("resourceCacheExpirationTimespan", AAZStrType, ".resource_cache_expiration_timespan") + + resource_concurrency_control_options = _builder.get(".properties.resourceConcurrencyControlOptions") + if resource_concurrency_control_options is not None: + resource_concurrency_control_options.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.resourceConcurrencyControlOptions{}") + if _elements is not None: + _elements.set_prop("policy", AAZStrType, ".policy") + + resource_graph_configuration = _builder.get(".properties.resourceGraphConfiguration") + if resource_graph_configuration is not None: + resource_graph_configuration.set_prop("apiVersion", AAZStrType, ".api_version") + resource_graph_configuration.set_prop("enabled", AAZBoolType, ".enabled") + + resource_management_options = _builder.get(".properties.resourceManagementOptions") + if resource_management_options is not None: + resource_management_options.set_prop("batchProvisioningSupport", AAZObjectType, ".batch_provisioning_support") + resource_management_options.set_prop("deleteDependencies", AAZListType, ".delete_dependencies") + resource_management_options.set_prop("nestedProvisioningSupport", AAZObjectType, ".nested_provisioning_support") + + batch_provisioning_support = _builder.get(".properties.resourceManagementOptions.batchProvisioningSupport") + if batch_provisioning_support is not None: + batch_provisioning_support.set_prop("supportedOperations", AAZStrType, ".supported_operations") + + delete_dependencies = _builder.get(".properties.resourceManagementOptions.deleteDependencies") + if delete_dependencies is not None: + delete_dependencies.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.resourceManagementOptions.deleteDependencies[]") + if _elements is not None: + _elements.set_prop("linkedProperty", AAZStrType, ".linked_property") + _elements.set_prop("linkedType", AAZStrType, ".linked_type") + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + required_features = _builder.get(".properties.resourceManagementOptions.deleteDependencies[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + nested_provisioning_support = _builder.get(".properties.resourceManagementOptions.nestedProvisioningSupport") + if nested_provisioning_support is not None: + nested_provisioning_support.set_prop("minimumApiVersion", AAZStrType, ".minimum_api_version") + + resource_move_policy = _builder.get(".properties.resourceMovePolicy") + if resource_move_policy is not None: + resource_move_policy.set_prop("crossResourceGroupMoveEnabled", AAZBoolType, ".cross_resource_group_move_enabled") + resource_move_policy.set_prop("crossSubscriptionMoveEnabled", AAZBoolType, ".cross_subscription_move_enabled") + resource_move_policy.set_prop("validationRequired", AAZBoolType, ".validation_required") + + resource_provider_authorization_rules = _builder.get(".properties.resourceProviderAuthorizationRules") + if resource_provider_authorization_rules is not None: + resource_provider_authorization_rules.set_prop("asyncOperationPollingRules", AAZObjectType, ".async_operation_polling_rules") + + async_operation_polling_rules = _builder.get(".properties.resourceProviderAuthorizationRules.asyncOperationPollingRules") + if async_operation_polling_rules is not None: + async_operation_polling_rules.set_prop("additionalOptions", AAZStrType, ".additional_options") + async_operation_polling_rules.set_prop("authorizationActions", AAZListType, ".authorization_actions") + + authorization_actions = _builder.get(".properties.resourceProviderAuthorizationRules.asyncOperationPollingRules.authorizationActions") + if authorization_actions is not None: + authorization_actions.set_elements(AAZStrType, ".") + + resource_query_management = _builder.get(".properties.resourceQueryManagement") + if resource_query_management is not None: + resource_query_management.set_prop("filterOption", AAZStrType, ".filter_option") + + resource_type_common_attribute_management = _builder.get(".properties.resourceTypeCommonAttributeManagement") + if resource_type_common_attribute_management is not None: + resource_type_common_attribute_management.set_prop("commonApiVersionsMergeMode", AAZStrType, ".common_api_versions_merge_mode") + + routing_rule = _builder.get(".properties.routingRule") + if routing_rule is not None: + routing_rule.set_prop("hostResourceType", AAZStrType, ".host_resource_type") + + service_tree_infos = _builder.get(".properties.serviceTreeInfos") + if service_tree_infos is not None: + _UpdateHelper._build_schema_service_tree_info_update(service_tree_infos.set_elements(AAZObjectType, ".")) + + subscription_lifecycle_notification_specifications = _builder.get(".properties.subscriptionLifecycleNotificationSpecifications") + if subscription_lifecycle_notification_specifications is not None: + subscription_lifecycle_notification_specifications.set_prop("softDeleteTTL", AAZStrType, ".soft_delete_ttl") + subscription_lifecycle_notification_specifications.set_prop("subscriptionStateOverrideActions", AAZListType, ".subscription_state_override_actions") + + subscription_state_override_actions = _builder.get(".properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions") + if subscription_state_override_actions is not None: + subscription_state_override_actions.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.subscriptionLifecycleNotificationSpecifications.subscriptionStateOverrideActions[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("state", AAZStrType, ".state", typ_kwargs={"flags": {"required": True}}) + + subscription_state_rules = _builder.get(".properties.subscriptionStateRules") + if subscription_state_rules is not None: + subscription_state_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.subscriptionStateRules[]") + if _elements is not None: + _elements.set_prop("allowedActions", AAZListType, ".allowed_actions") + _elements.set_prop("state", AAZStrType, ".state") + + allowed_actions = _builder.get(".properties.subscriptionStateRules[].allowedActions") + if allowed_actions is not None: + allowed_actions.set_elements(AAZStrType, ".") + + swagger_specifications = _builder.get(".properties.swaggerSpecifications") + if swagger_specifications is not None: + swagger_specifications.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.swaggerSpecifications[]") + if _elements is not None: + _elements.set_prop("apiVersions", AAZListType, ".api_versions") + _elements.set_prop("swaggerSpecFolderUri", AAZStrType, ".swagger_spec_folder_uri") + + api_versions = _builder.get(".properties.swaggerSpecifications[].apiVersions") + if api_versions is not None: + api_versions.set_elements(AAZStrType, ".") + + template_deployment_options = _builder.get(".properties.templateDeploymentOptions") + if template_deployment_options is not None: + template_deployment_options.set_prop("preflightOptions", AAZListType, ".preflight_options") + template_deployment_options.set_prop("preflightSupported", AAZBoolType, ".preflight_supported") + + preflight_options = _builder.get(".properties.templateDeploymentOptions.preflightOptions") + if preflight_options is not None: + preflight_options.set_elements(AAZStrType, ".") + + template_deployment_policy = _builder.get(".properties.templateDeploymentPolicy") + if template_deployment_policy is not None: + template_deployment_policy.set_prop("capabilities", AAZStrType, ".capabilities", typ_kwargs={"flags": {"required": True}}) + template_deployment_policy.set_prop("preflightNotifications", AAZStrType, ".preflight_notifications") + template_deployment_policy.set_prop("preflightOptions", AAZStrType, ".preflight_options", typ_kwargs={"flags": {"required": True}}) + + throttling_rules = _builder.get(".properties.throttlingRules") + if throttling_rules is not None: + throttling_rules.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.throttlingRules[]") + if _elements is not None: + _elements.set_prop("action", AAZStrType, ".action", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("applicationId", AAZListType, ".application_id") + _elements.set_prop("metrics", AAZListType, ".metrics", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + + application_id = _builder.get(".properties.throttlingRules[].applicationId") + if application_id is not None: + application_id.set_elements(AAZStrType, ".") + + metrics = _builder.get(".properties.throttlingRules[].metrics") + if metrics is not None: + metrics.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.throttlingRules[].metrics[]") + if _elements is not None: + _elements.set_prop("interval", AAZStrType, ".interval") + _elements.set_prop("limit", AAZIntType, ".limit", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) + + required_features = _builder.get(".properties.throttlingRules[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + @classmethod + def _build_schema_service_tree_info_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("componentId", AAZStrType, ".component_id") + _builder.set_prop("readiness", AAZStrType, ".readiness") + _builder.set_prop("serviceId", AAZStrType, ".service_id") + + @classmethod + def _build_schema_token_auth_configuration_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("authenticationScheme", AAZStrType, ".authentication_scheme") + _builder.set_prop("disableCertificateAuthenticationFallback", AAZBoolType, ".disable_certificate_authentication_fallback") + _builder.set_prop("signedRequestScope", AAZStrType, ".signed_request_scope") + + _schema_resource_type_registration_read = None + + @classmethod + def _build_schema_resource_type_registration_read(cls, _schema): + if cls._schema_resource_type_registration_read is not None: + _schema.id = cls._schema_resource_type_registration_read.id + _schema.kind = cls._schema_resource_type_registration_read.kind + _schema.name = cls._schema_resource_type_registration_read.name + _schema.properties = cls._schema_resource_type_registration_read.properties + _schema.system_data = cls._schema_resource_type_registration_read.system_data + _schema.type = cls._schema_resource_type_registration_read.type + return + + cls._schema_resource_type_registration_read = _schema_resource_type_registration_read = AAZObjectType() + + resource_type_registration_read = _schema_resource_type_registration_read + resource_type_registration_read.id = AAZStrType( + flags={"read_only": True}, + ) + resource_type_registration_read.kind = AAZStrType() + resource_type_registration_read.name = AAZStrType( + flags={"read_only": True}, + ) + resource_type_registration_read.properties = AAZObjectType() + resource_type_registration_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + resource_type_registration_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_resource_type_registration_read.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + cls._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = _schema_resource_type_registration_read.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = _schema_resource_type_registration_read.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = _schema_resource_type_registration_read.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = _schema_resource_type_registration_read.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = _schema_resource_type_registration_read.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = _schema_resource_type_registration_read.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = _schema_resource_type_registration_read.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = _schema_resource_type_registration_read.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = _schema_resource_type_registration_read.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = _schema_resource_type_registration_read.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = _schema_resource_type_registration_read.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = _schema_resource_type_registration_read.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = _schema_resource_type_registration_read.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = _schema_resource_type_registration_read.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = _schema_resource_type_registration_read.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + cls._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = _schema_resource_type_registration_read.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = _schema_resource_type_registration_read.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = _schema_resource_type_registration_read.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = _schema_resource_type_registration_read.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = _schema_resource_type_registration_read.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = _schema_resource_type_registration_read.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = _schema_resource_type_registration_read.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = _schema_resource_type_registration_read.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = _schema_resource_type_registration_read.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = _schema_resource_type_registration_read.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = _schema_resource_type_registration_read.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = _schema_resource_type_registration_read.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = _schema_resource_type_registration_read.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = _schema_resource_type_registration_read.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = _schema_resource_type_registration_read.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = _schema_resource_type_registration_read.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = _schema_resource_type_registration_read.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = _schema_resource_type_registration_read.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = _schema_resource_type_registration_read.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = _schema_resource_type_registration_read.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = _schema_resource_type_registration_read.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = _schema_resource_type_registration_read.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = _schema_resource_type_registration_read.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = _schema_resource_type_registration_read.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = _schema_resource_type_registration_read.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = _schema_resource_type_registration_read.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = _schema_resource_type_registration_read.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = _schema_resource_type_registration_read.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = _schema_resource_type_registration_read.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = _schema_resource_type_registration_read.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = _schema_resource_type_registration_read.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = _schema_resource_type_registration_read.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = _schema_resource_type_registration_read.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = _schema_resource_type_registration_read.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = _schema_resource_type_registration_read.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = _schema_resource_type_registration_read.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = _schema_resource_type_registration_read.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = _schema_resource_type_registration_read.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = _schema_resource_type_registration_read.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = _schema_resource_type_registration_read.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = _schema_resource_type_registration_read.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = _schema_resource_type_registration_read.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = _schema_resource_type_registration_read.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = _schema_resource_type_registration_read.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = _schema_resource_type_registration_read.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = _schema_resource_type_registration_read.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.management.resource_access_roles.Element + _element.actions = AAZListType() + _element.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = _schema_resource_type_registration_read.properties.management.resource_access_roles.Element.actions + actions.Element = AAZStrType() + + allowed_group_claims = _schema_resource_type_registration_read.properties.management.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + schema_owners = _schema_resource_type_registration_read.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = _schema_resource_type_registration_read.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + cls._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = _schema_resource_type_registration_read.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = _schema_resource_type_registration_read.properties.metadata + metadata.Element = AAZFreeFormDictType() + + notifications = _schema_resource_type_registration_read.properties.notifications + notifications.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.notifications.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + on_behalf_of_tokens = _schema_resource_type_registration_read.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = _schema_resource_type_registration_read.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = _schema_resource_type_registration_read.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = _schema_resource_type_registration_read.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = _schema_resource_type_registration_read.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = _schema_resource_type_registration_read.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = _schema_resource_type_registration_read.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = _schema_resource_type_registration_read.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = _schema_resource_type_registration_read.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = _schema_resource_type_registration_read.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = _schema_resource_type_registration_read.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = _schema_resource_type_registration_read.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = _schema_resource_type_registration_read.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = _schema_resource_type_registration_read.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = _schema_resource_type_registration_read.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = _schema_resource_type_registration_read.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = _schema_resource_type_registration_read.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = _schema_resource_type_registration_read.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = _schema_resource_type_registration_read.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = _schema_resource_type_registration_read.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = _schema_resource_type_registration_read.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_provider_authorization_rules = _schema_resource_type_registration_read.properties.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = _schema_resource_type_registration_read.properties.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = _schema_resource_type_registration_read.properties.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + resource_query_management = _schema_resource_type_registration_read.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = _schema_resource_type_registration_read.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = _schema_resource_type_registration_read.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = _schema_resource_type_registration_read.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + cls._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = _schema_resource_type_registration_read.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = _schema_resource_type_registration_read.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.state = AAZStrType( + flags={"required": True}, + ) + + subscription_state_rules = _schema_resource_type_registration_read.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = _schema_resource_type_registration_read.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = _schema_resource_type_registration_read.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = _schema_resource_type_registration_read.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = _schema_resource_type_registration_read.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = _schema_resource_type_registration_read.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = _schema_resource_type_registration_read.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = _schema_resource_type_registration_read.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = _schema_resource_type_registration_read.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = _schema_resource_type_registration_read.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = _schema_resource_type_registration_read.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = _schema_resource_type_registration_read.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + system_data = _schema_resource_type_registration_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.id = cls._schema_resource_type_registration_read.id + _schema.kind = cls._schema_resource_type_registration_read.kind + _schema.name = cls._schema_resource_type_registration_read.name + _schema.properties = cls._schema_resource_type_registration_read.properties + _schema.system_data = cls._schema_resource_type_registration_read.system_data + _schema.type = cls._schema_resource_type_registration_read.type + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Update"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_wait.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_wait.py new file mode 100644 index 00000000000..d5ac5cd67a1 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/resource_type_registration/_wait.py @@ -0,0 +1,1242 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub resource-type-registration wait", +) +class Wait(AAZWaitCommand): + """Place the CLI in a waiting state until a condition is met. + """ + + _aaz_info = { + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["-n", "--name", "--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ResourceTypeRegistrationsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False) + return result + + class ResourceTypeRegistrationsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.kind = AAZStrType() + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.add_resource_list_target_locations = AAZBoolType( + serialized_name="addResourceListTargetLocations", + ) + properties.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + properties.allow_empty_role_assignments = AAZBoolType( + serialized_name="allowEmptyRoleAssignments", + ) + properties.allowed_resource_names = AAZListType( + serialized_name="allowedResourceNames", + ) + properties.allowed_template_deployment_reference_actions = AAZListType( + serialized_name="allowedTemplateDeploymentReferenceActions", + ) + properties.allowed_unauthorized_actions = AAZListType( + serialized_name="allowedUnauthorizedActions", + ) + properties.api_profiles = AAZListType( + serialized_name="apiProfiles", + ) + properties.async_operation_resource_type_name = AAZStrType( + serialized_name="asyncOperationResourceTypeName", + ) + properties.async_timeout_rules = AAZListType( + serialized_name="asyncTimeoutRules", + ) + properties.authorization_action_mappings = AAZListType( + serialized_name="authorizationActionMappings", + ) + properties.availability_zone_rule = AAZObjectType( + serialized_name="availabilityZoneRule", + ) + properties.capacity_rule = AAZObjectType( + serialized_name="capacityRule", + ) + properties.category = AAZStrType() + properties.check_name_availability_specifications = AAZObjectType( + serialized_name="checkNameAvailabilitySpecifications", + ) + properties.common_api_versions = AAZListType( + serialized_name="commonApiVersions", + ) + properties.cross_tenant_token_validation = AAZStrType( + serialized_name="crossTenantTokenValidation", + ) + properties.default_api_version = AAZStrType( + serialized_name="defaultApiVersion", + ) + properties.disallowed_action_verbs = AAZListType( + serialized_name="disallowedActionVerbs", + ) + properties.disallowed_end_user_operations = AAZListType( + serialized_name="disallowedEndUserOperations", + ) + properties.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + properties.enable_async_operation = AAZBoolType( + serialized_name="enableAsyncOperation", + ) + properties.enable_third_party_s2_s = AAZBoolType( + serialized_name="enableThirdPartyS2S", + ) + properties.endpoints = AAZListType() + properties.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + properties.extension_options = AAZObjectType( + serialized_name="extensionOptions", + ) + properties.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + properties.frontdoor_request_mode = AAZStrType( + serialized_name="frontdoorRequestMode", + ) + properties.grouping_tag = AAZStrType( + serialized_name="groupingTag", + ) + properties.identity_management = AAZObjectType( + serialized_name="identityManagement", + ) + properties.is_pure_proxy = AAZBoolType( + serialized_name="isPureProxy", + ) + properties.legacy_name = AAZStrType( + serialized_name="legacyName", + ) + properties.legacy_names = AAZListType( + serialized_name="legacyNames", + ) + properties.legacy_policy = AAZObjectType( + serialized_name="legacyPolicy", + ) + properties.linked_access_checks = AAZListType( + serialized_name="linkedAccessChecks", + ) + properties.linked_notification_rules = AAZListType( + serialized_name="linkedNotificationRules", + ) + properties.linked_operation_rules = AAZListType( + serialized_name="linkedOperationRules", + ) + properties.logging_rules = AAZListType( + serialized_name="loggingRules", + ) + properties.managed_resource_group_configuration = AAZObjectType( + serialized_name="managedResourceGroupConfiguration", + ) + properties.management = AAZObjectType() + properties.manifest_link = AAZStrType( + serialized_name="manifestLink", + ) + properties.marketplace_options = AAZObjectType( + serialized_name="marketplaceOptions", + ) + properties.marketplace_type = AAZStrType( + serialized_name="marketplaceType", + ) + properties.metadata = AAZDictType() + properties.notifications = AAZListType() + properties.on_behalf_of_tokens = AAZObjectType( + serialized_name="onBehalfOfTokens", + ) + properties.open_api_configuration = AAZObjectType( + serialized_name="openApiConfiguration", + ) + properties.policy_execution_type = AAZStrType( + serialized_name="policyExecutionType", + ) + properties.private_endpoint_configuration = AAZObjectType( + serialized_name="privateEndpointConfiguration", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.quota_rule = AAZObjectType( + serialized_name="quotaRule", + ) + properties.regionality = AAZStrType() + properties.request_header_options = AAZObjectType( + serialized_name="requestHeaderOptions", + ) + properties.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + properties.resource_cache = AAZObjectType( + serialized_name="resourceCache", + ) + properties.resource_concurrency_control_options = AAZDictType( + serialized_name="resourceConcurrencyControlOptions", + ) + properties.resource_deletion_policy = AAZStrType( + serialized_name="resourceDeletionPolicy", + ) + properties.resource_graph_configuration = AAZObjectType( + serialized_name="resourceGraphConfiguration", + ) + properties.resource_management_options = AAZObjectType( + serialized_name="resourceManagementOptions", + ) + properties.resource_move_policy = AAZObjectType( + serialized_name="resourceMovePolicy", + ) + properties.resource_provider_authorization_rules = AAZObjectType( + serialized_name="resourceProviderAuthorizationRules", + ) + properties.resource_query_management = AAZObjectType( + serialized_name="resourceQueryManagement", + ) + properties.resource_sub_type = AAZStrType( + serialized_name="resourceSubType", + ) + properties.resource_type_common_attribute_management = AAZObjectType( + serialized_name="resourceTypeCommonAttributeManagement", + ) + properties.resource_validation = AAZStrType( + serialized_name="resourceValidation", + ) + properties.routing_rule = AAZObjectType( + serialized_name="routingRule", + ) + properties.routing_type = AAZStrType( + serialized_name="routingType", + ) + properties.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + properties.sku_link = AAZStrType( + serialized_name="skuLink", + ) + properties.subscription_lifecycle_notification_specifications = AAZObjectType( + serialized_name="subscriptionLifecycleNotificationSpecifications", + ) + properties.subscription_state_rules = AAZListType( + serialized_name="subscriptionStateRules", + ) + properties.supports_tags = AAZBoolType( + serialized_name="supportsTags", + ) + properties.swagger_specifications = AAZListType( + serialized_name="swaggerSpecifications", + ) + properties.template_deployment_options = AAZObjectType( + serialized_name="templateDeploymentOptions", + ) + properties.template_deployment_policy = AAZObjectType( + serialized_name="templateDeploymentPolicy", + ) + properties.throttling_rules = AAZListType( + serialized_name="throttlingRules", + ) + properties.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _WaitHelper._build_schema_token_auth_configuration_read(properties.token_auth_configuration) + + allowed_resource_names = cls._schema_on_200.properties.allowed_resource_names + allowed_resource_names.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.allowed_resource_names.Element + _element.get_action_verb = AAZStrType( + serialized_name="getActionVerb", + ) + _element.name = AAZStrType() + + allowed_template_deployment_reference_actions = cls._schema_on_200.properties.allowed_template_deployment_reference_actions + allowed_template_deployment_reference_actions.Element = AAZStrType() + + allowed_unauthorized_actions = cls._schema_on_200.properties.allowed_unauthorized_actions + allowed_unauthorized_actions.Element = AAZStrType() + + api_profiles = cls._schema_on_200.properties.api_profiles + api_profiles.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.api_profiles.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.profile_version = AAZStrType( + serialized_name="profileVersion", + ) + + async_timeout_rules = cls._schema_on_200.properties.async_timeout_rules + async_timeout_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.async_timeout_rules.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.timeout = AAZStrType() + + authorization_action_mappings = cls._schema_on_200.properties.authorization_action_mappings + authorization_action_mappings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.authorization_action_mappings.Element + _element.desired = AAZStrType() + _element.original = AAZStrType() + + availability_zone_rule = cls._schema_on_200.properties.availability_zone_rule + availability_zone_rule.availability_zone_policy = AAZStrType( + serialized_name="availabilityZonePolicy", + ) + + capacity_rule = cls._schema_on_200.properties.capacity_rule + capacity_rule.capacity_policy = AAZStrType( + serialized_name="capacityPolicy", + ) + capacity_rule.sku_alias = AAZStrType( + serialized_name="skuAlias", + ) + + check_name_availability_specifications = cls._schema_on_200.properties.check_name_availability_specifications + check_name_availability_specifications.enable_default_validation = AAZBoolType( + serialized_name="enableDefaultValidation", + ) + check_name_availability_specifications.resource_types_with_custom_validation = AAZListType( + serialized_name="resourceTypesWithCustomValidation", + ) + + resource_types_with_custom_validation = cls._schema_on_200.properties.check_name_availability_specifications.resource_types_with_custom_validation + resource_types_with_custom_validation.Element = AAZStrType() + + common_api_versions = cls._schema_on_200.properties.common_api_versions + common_api_versions.Element = AAZStrType() + + disallowed_action_verbs = cls._schema_on_200.properties.disallowed_action_verbs + disallowed_action_verbs.Element = AAZStrType() + + disallowed_end_user_operations = cls._schema_on_200.properties.disallowed_end_user_operations + disallowed_end_user_operations.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + endpoints = cls._schema_on_200.properties.endpoints + endpoints.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.endpoints.Element + _element.api_version = AAZStrType( + serialized_name="apiVersion", + ) + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.data_boundary = AAZStrType( + serialized_name="dataBoundary", + ) + _element.dsts_configuration = AAZObjectType( + serialized_name="dstsConfiguration", + ) + _element.enabled = AAZBoolType() + _element.endpoint_type = AAZStrType( + serialized_name="endpointType", + ) + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extensions = AAZListType() + _element.features_rule = AAZObjectType( + serialized_name="featuresRule", + ) + _element.kind = AAZStrType() + _element.locations = AAZListType() + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.sku_link = AAZStrType( + serialized_name="skuLink", + ) + _element.timeout = AAZStrType() + _element.token_auth_configuration = AAZObjectType( + serialized_name="tokenAuthConfiguration", + ) + _WaitHelper._build_schema_token_auth_configuration_read(_element.token_auth_configuration) + _element.zones = AAZListType() + + api_versions = cls._schema_on_200.properties.endpoints.Element.api_versions + api_versions.Element = AAZStrType() + + dsts_configuration = cls._schema_on_200.properties.endpoints.Element.dsts_configuration + dsts_configuration.service_dns_name = AAZStrType( + serialized_name="serviceDnsName", + ) + dsts_configuration.service_name = AAZStrType( + serialized_name="serviceName", + flags={"required": True}, + ) + + extensions = cls._schema_on_200.properties.endpoints.Element.extensions + extensions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.endpoints.Element.extensions.Element + _element.endpoint_uri = AAZStrType( + serialized_name="endpointUri", + ) + _element.extension_categories = AAZListType( + serialized_name="extensionCategories", + ) + _element.timeout = AAZStrType() + + extension_categories = cls._schema_on_200.properties.endpoints.Element.extensions.Element.extension_categories + extension_categories.Element = AAZStrType() + + features_rule = cls._schema_on_200.properties.endpoints.Element.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + locations = cls._schema_on_200.properties.endpoints.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.endpoints.Element.required_features + required_features.Element = AAZStrType() + + zones = cls._schema_on_200.properties.endpoints.Element.zones + zones.Element = AAZStrType() + + extended_locations = cls._schema_on_200.properties.extended_locations + extended_locations.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.extended_locations.Element + _element.supported_policy = AAZStrType( + serialized_name="supportedPolicy", + ) + _element.type = AAZStrType() + + extension_options = cls._schema_on_200.properties.extension_options + extension_options.resource_creation_begin = AAZObjectType( + serialized_name="resourceCreationBegin", + ) + + resource_creation_begin = cls._schema_on_200.properties.extension_options.resource_creation_begin + resource_creation_begin.request = AAZListType() + resource_creation_begin.response = AAZListType() + + request = cls._schema_on_200.properties.extension_options.resource_creation_begin.request + request.Element = AAZStrType() + + response = cls._schema_on_200.properties.extension_options.resource_creation_begin.response + response.Element = AAZStrType() + + features_rule = cls._schema_on_200.properties.features_rule + features_rule.required_features_policy = AAZStrType( + serialized_name="requiredFeaturesPolicy", + flags={"required": True}, + ) + + identity_management = cls._schema_on_200.properties.identity_management + identity_management.application_id = AAZStrType( + serialized_name="applicationId", + ) + identity_management.application_ids = AAZListType( + serialized_name="applicationIds", + ) + identity_management.delegation_app_ids = AAZListType( + serialized_name="delegationAppIds", + ) + identity_management.type = AAZStrType() + + application_ids = cls._schema_on_200.properties.identity_management.application_ids + application_ids.Element = AAZStrType() + + delegation_app_ids = cls._schema_on_200.properties.identity_management.delegation_app_ids + delegation_app_ids.Element = AAZStrType() + + legacy_names = cls._schema_on_200.properties.legacy_names + legacy_names.Element = AAZStrType() + + legacy_policy = cls._schema_on_200.properties.legacy_policy + legacy_policy.disallowed_conditions = AAZListType( + serialized_name="disallowedConditions", + ) + legacy_policy.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + + disallowed_conditions = cls._schema_on_200.properties.legacy_policy.disallowed_conditions + disallowed_conditions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.legacy_policy.disallowed_conditions.Element + _element.disallowed_legacy_operations = AAZListType( + serialized_name="disallowedLegacyOperations", + ) + _element.feature = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.properties.legacy_policy.disallowed_conditions.Element.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + disallowed_legacy_operations = cls._schema_on_200.properties.legacy_policy.disallowed_legacy_operations + disallowed_legacy_operations.Element = AAZStrType() + + linked_access_checks = cls._schema_on_200.properties.linked_access_checks + linked_access_checks.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.linked_access_checks.Element + _element.action_name = AAZStrType( + serialized_name="actionName", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + ) + _element.linked_action_verb = AAZStrType( + serialized_name="linkedActionVerb", + ) + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + + linked_notification_rules = cls._schema_on_200.properties.linked_notification_rules + linked_notification_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.linked_notification_rules.Element + _element.actions = AAZListType() + _element.actions_on_failed_operation = AAZListType( + serialized_name="actionsOnFailedOperation", + ) + _element.fast_path_actions = AAZListType( + serialized_name="fastPathActions", + ) + _element.fast_path_actions_on_failed_operation = AAZListType( + serialized_name="fastPathActionsOnFailedOperation", + ) + _element.linked_notification_timeout = AAZStrType( + serialized_name="linkedNotificationTimeout", + ) + + actions = cls._schema_on_200.properties.linked_notification_rules.Element.actions + actions.Element = AAZStrType() + + actions_on_failed_operation = cls._schema_on_200.properties.linked_notification_rules.Element.actions_on_failed_operation + actions_on_failed_operation.Element = AAZStrType() + + fast_path_actions = cls._schema_on_200.properties.linked_notification_rules.Element.fast_path_actions + fast_path_actions.Element = AAZStrType() + + fast_path_actions_on_failed_operation = cls._schema_on_200.properties.linked_notification_rules.Element.fast_path_actions_on_failed_operation + fast_path_actions_on_failed_operation.Element = AAZStrType() + + linked_operation_rules = cls._schema_on_200.properties.linked_operation_rules + linked_operation_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.linked_operation_rules.Element + _element.depends_on_types = AAZListType( + serialized_name="dependsOnTypes", + ) + _element.linked_action = AAZStrType( + serialized_name="linkedAction", + flags={"required": True}, + ) + _element.linked_operation = AAZStrType( + serialized_name="linkedOperation", + flags={"required": True}, + ) + + depends_on_types = cls._schema_on_200.properties.linked_operation_rules.Element.depends_on_types + depends_on_types.Element = AAZStrType() + + logging_rules = cls._schema_on_200.properties.logging_rules + logging_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.logging_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.detail_level = AAZStrType( + serialized_name="detailLevel", + flags={"required": True}, + ) + _element.direction = AAZStrType( + flags={"required": True}, + ) + _element.hidden_property_paths = AAZObjectType( + serialized_name="hiddenPropertyPaths", + ) + + hidden_property_paths = cls._schema_on_200.properties.logging_rules.Element.hidden_property_paths + hidden_property_paths.hidden_paths_on_request = AAZListType( + serialized_name="hiddenPathsOnRequest", + ) + hidden_property_paths.hidden_paths_on_response = AAZListType( + serialized_name="hiddenPathsOnResponse", + ) + + hidden_paths_on_request = cls._schema_on_200.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_request + hidden_paths_on_request.Element = AAZStrType() + + hidden_paths_on_response = cls._schema_on_200.properties.logging_rules.Element.hidden_property_paths.hidden_paths_on_response + hidden_paths_on_response.Element = AAZStrType() + + managed_resource_group_configuration = cls._schema_on_200.properties.managed_resource_group_configuration + managed_resource_group_configuration.application_ids = AAZListType( + serialized_name="applicationIds", + ) + managed_resource_group_configuration.deny_assignment_configuration = AAZObjectType( + serialized_name="denyAssignmentConfiguration", + ) + managed_resource_group_configuration.enabled = AAZBoolType() + managed_resource_group_configuration.resource_group_location_override = AAZStrType( + serialized_name="resourceGroupLocationOverride", + ) + + application_ids = cls._schema_on_200.properties.managed_resource_group_configuration.application_ids + application_ids.Element = AAZStrType() + + deny_assignment_configuration = cls._schema_on_200.properties.managed_resource_group_configuration.deny_assignment_configuration + deny_assignment_configuration.enabled = AAZBoolType() + deny_assignment_configuration.not_actions = AAZListType( + serialized_name="notActions", + ) + + not_actions = cls._schema_on_200.properties.managed_resource_group_configuration.deny_assignment_configuration.not_actions + not_actions.Element = AAZStrType() + + management = cls._schema_on_200.properties.management + management.authorization_owners = AAZListType( + serialized_name="authorizationOwners", + ) + management.canary_manifest_owners = AAZListType( + serialized_name="canaryManifestOwners", + ) + management.error_response_message_options = AAZObjectType( + serialized_name="errorResponseMessageOptions", + ) + management.expedited_rollout_metadata = AAZObjectType( + serialized_name="expeditedRolloutMetadata", + ) + management.expedited_rollout_submitters = AAZListType( + serialized_name="expeditedRolloutSubmitters", + ) + management.incident_contact_email = AAZStrType( + serialized_name="incidentContactEmail", + ) + management.incident_routing_service = AAZStrType( + serialized_name="incidentRoutingService", + ) + management.incident_routing_team = AAZStrType( + serialized_name="incidentRoutingTeam", + ) + management.manifest_owners = AAZListType( + serialized_name="manifestOwners", + ) + management.pc_code = AAZStrType( + serialized_name="pcCode", + ) + management.profit_center_program_id = AAZStrType( + serialized_name="profitCenterProgramId", + ) + management.resource_access_policy = AAZStrType( + serialized_name="resourceAccessPolicy", + ) + management.resource_access_roles = AAZListType( + serialized_name="resourceAccessRoles", + ) + management.schema_owners = AAZListType( + serialized_name="schemaOwners", + ) + management.service_tree_infos = AAZListType( + serialized_name="serviceTreeInfos", + ) + + authorization_owners = cls._schema_on_200.properties.management.authorization_owners + authorization_owners.Element = AAZStrType() + + canary_manifest_owners = cls._schema_on_200.properties.management.canary_manifest_owners + canary_manifest_owners.Element = AAZStrType() + + error_response_message_options = cls._schema_on_200.properties.management.error_response_message_options + error_response_message_options.server_failure_response_message_type = AAZStrType( + serialized_name="serverFailureResponseMessageType", + ) + + expedited_rollout_metadata = cls._schema_on_200.properties.management.expedited_rollout_metadata + expedited_rollout_metadata.enabled = AAZBoolType() + expedited_rollout_metadata.expedited_rollout_intent = AAZStrType( + serialized_name="expeditedRolloutIntent", + ) + + expedited_rollout_submitters = cls._schema_on_200.properties.management.expedited_rollout_submitters + expedited_rollout_submitters.Element = AAZStrType() + + manifest_owners = cls._schema_on_200.properties.management.manifest_owners + manifest_owners.Element = AAZStrType() + + resource_access_roles = cls._schema_on_200.properties.management.resource_access_roles + resource_access_roles.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.management.resource_access_roles.Element + _element.actions = AAZListType() + _element.allowed_group_claims = AAZListType( + serialized_name="allowedGroupClaims", + ) + + actions = cls._schema_on_200.properties.management.resource_access_roles.Element.actions + actions.Element = AAZStrType() + + allowed_group_claims = cls._schema_on_200.properties.management.resource_access_roles.Element.allowed_group_claims + allowed_group_claims.Element = AAZStrType() + + schema_owners = cls._schema_on_200.properties.management.schema_owners + schema_owners.Element = AAZStrType() + + service_tree_infos = cls._schema_on_200.properties.management.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _WaitHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + marketplace_options = cls._schema_on_200.properties.marketplace_options + marketplace_options.add_on_plan_conversion_allowed = AAZBoolType( + serialized_name="addOnPlanConversionAllowed", + ) + + metadata = cls._schema_on_200.properties.metadata + metadata.Element = AAZFreeFormDictType() + + notifications = cls._schema_on_200.properties.notifications + notifications.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.notifications.Element + _element.notification_type = AAZStrType( + serialized_name="notificationType", + ) + _element.skip_notifications = AAZStrType( + serialized_name="skipNotifications", + ) + + on_behalf_of_tokens = cls._schema_on_200.properties.on_behalf_of_tokens + on_behalf_of_tokens.action_name = AAZStrType( + serialized_name="actionName", + ) + on_behalf_of_tokens.life_time = AAZStrType( + serialized_name="lifeTime", + ) + + open_api_configuration = cls._schema_on_200.properties.open_api_configuration + open_api_configuration.validation = AAZObjectType() + + validation = cls._schema_on_200.properties.open_api_configuration.validation + validation.allow_noncompliant_collection_response = AAZBoolType( + serialized_name="allowNoncompliantCollectionResponse", + ) + + private_endpoint_configuration = cls._schema_on_200.properties.private_endpoint_configuration + private_endpoint_configuration.group_connectivity_information = AAZListType( + serialized_name="groupConnectivityInformation", + flags={"required": True}, + ) + private_endpoint_configuration.min_api_version = AAZStrType( + serialized_name="minApiVersion", + flags={"required": True}, + ) + + group_connectivity_information = cls._schema_on_200.properties.private_endpoint_configuration.group_connectivity_information + group_connectivity_information.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.private_endpoint_configuration.group_connectivity_information.Element + _element.group_id = AAZStrType( + serialized_name="groupId", + flags={"required": True}, + ) + _element.redirect_map_id = AAZStrType( + serialized_name="redirectMapId", + ) + _element.required_members = AAZListType( + serialized_name="requiredMembers", + flags={"required": True}, + ) + _element.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + flags={"required": True}, + ) + + required_members = cls._schema_on_200.properties.private_endpoint_configuration.group_connectivity_information.Element.required_members + required_members.Element = AAZStrType() + + required_zone_names = cls._schema_on_200.properties.private_endpoint_configuration.group_connectivity_information.Element.required_zone_names + required_zone_names.Element = AAZStrType() + + quota_rule = cls._schema_on_200.properties.quota_rule + quota_rule.location_rules = AAZListType( + serialized_name="locationRules", + ) + quota_rule.quota_policy = AAZStrType( + serialized_name="quotaPolicy", + ) + quota_rule.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + location_rules = cls._schema_on_200.properties.quota_rule.location_rules + location_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.quota_rule.location_rules.Element + _element.location = AAZStrType() + _element.policy = AAZStrType() + _element.quota_id = AAZStrType( + serialized_name="quotaId", + ) + + required_features = cls._schema_on_200.properties.quota_rule.required_features + required_features.Element = AAZStrType() + + request_header_options = cls._schema_on_200.properties.request_header_options + request_header_options.opt_in_headers = AAZStrType( + serialized_name="optInHeaders", + ) + request_header_options.opt_out_headers = AAZStrType( + serialized_name="optOutHeaders", + ) + + required_features = cls._schema_on_200.properties.required_features + required_features.Element = AAZStrType() + + resource_cache = cls._schema_on_200.properties.resource_cache + resource_cache.enable_resource_cache = AAZBoolType( + serialized_name="enableResourceCache", + ) + resource_cache.resource_cache_expiration_timespan = AAZStrType( + serialized_name="resourceCacheExpirationTimespan", + ) + + resource_concurrency_control_options = cls._schema_on_200.properties.resource_concurrency_control_options + resource_concurrency_control_options.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.resource_concurrency_control_options.Element + _element.policy = AAZStrType() + + resource_graph_configuration = cls._schema_on_200.properties.resource_graph_configuration + resource_graph_configuration.api_version = AAZStrType( + serialized_name="apiVersion", + ) + resource_graph_configuration.enabled = AAZBoolType() + + resource_management_options = cls._schema_on_200.properties.resource_management_options + resource_management_options.batch_provisioning_support = AAZObjectType( + serialized_name="batchProvisioningSupport", + ) + resource_management_options.delete_dependencies = AAZListType( + serialized_name="deleteDependencies", + ) + resource_management_options.nested_provisioning_support = AAZObjectType( + serialized_name="nestedProvisioningSupport", + ) + + batch_provisioning_support = cls._schema_on_200.properties.resource_management_options.batch_provisioning_support + batch_provisioning_support.supported_operations = AAZStrType( + serialized_name="supportedOperations", + ) + + delete_dependencies = cls._schema_on_200.properties.resource_management_options.delete_dependencies + delete_dependencies.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.resource_management_options.delete_dependencies.Element + _element.linked_property = AAZStrType( + serialized_name="linkedProperty", + ) + _element.linked_type = AAZStrType( + serialized_name="linkedType", + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + required_features = cls._schema_on_200.properties.resource_management_options.delete_dependencies.Element.required_features + required_features.Element = AAZStrType() + + nested_provisioning_support = cls._schema_on_200.properties.resource_management_options.nested_provisioning_support + nested_provisioning_support.minimum_api_version = AAZStrType( + serialized_name="minimumApiVersion", + ) + + resource_move_policy = cls._schema_on_200.properties.resource_move_policy + resource_move_policy.cross_resource_group_move_enabled = AAZBoolType( + serialized_name="crossResourceGroupMoveEnabled", + ) + resource_move_policy.cross_subscription_move_enabled = AAZBoolType( + serialized_name="crossSubscriptionMoveEnabled", + ) + resource_move_policy.validation_required = AAZBoolType( + serialized_name="validationRequired", + ) + + resource_provider_authorization_rules = cls._schema_on_200.properties.resource_provider_authorization_rules + resource_provider_authorization_rules.async_operation_polling_rules = AAZObjectType( + serialized_name="asyncOperationPollingRules", + ) + + async_operation_polling_rules = cls._schema_on_200.properties.resource_provider_authorization_rules.async_operation_polling_rules + async_operation_polling_rules.additional_options = AAZStrType( + serialized_name="additionalOptions", + ) + async_operation_polling_rules.authorization_actions = AAZListType( + serialized_name="authorizationActions", + ) + + authorization_actions = cls._schema_on_200.properties.resource_provider_authorization_rules.async_operation_polling_rules.authorization_actions + authorization_actions.Element = AAZStrType() + + resource_query_management = cls._schema_on_200.properties.resource_query_management + resource_query_management.filter_option = AAZStrType( + serialized_name="filterOption", + ) + + resource_type_common_attribute_management = cls._schema_on_200.properties.resource_type_common_attribute_management + resource_type_common_attribute_management.common_api_versions_merge_mode = AAZStrType( + serialized_name="commonApiVersionsMergeMode", + ) + + routing_rule = cls._schema_on_200.properties.routing_rule + routing_rule.host_resource_type = AAZStrType( + serialized_name="hostResourceType", + ) + + service_tree_infos = cls._schema_on_200.properties.service_tree_infos + service_tree_infos.Element = AAZObjectType() + _WaitHelper._build_schema_service_tree_info_read(service_tree_infos.Element) + + subscription_lifecycle_notification_specifications = cls._schema_on_200.properties.subscription_lifecycle_notification_specifications + subscription_lifecycle_notification_specifications.soft_delete_ttl = AAZStrType( + serialized_name="softDeleteTTL", + ) + subscription_lifecycle_notification_specifications.subscription_state_override_actions = AAZListType( + serialized_name="subscriptionStateOverrideActions", + ) + + subscription_state_override_actions = cls._schema_on_200.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions + subscription_state_override_actions.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.state = AAZStrType( + flags={"required": True}, + ) + + subscription_state_rules = cls._schema_on_200.properties.subscription_state_rules + subscription_state_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.subscription_state_rules.Element + _element.allowed_actions = AAZListType( + serialized_name="allowedActions", + ) + _element.state = AAZStrType() + + allowed_actions = cls._schema_on_200.properties.subscription_state_rules.Element.allowed_actions + allowed_actions.Element = AAZStrType() + + swagger_specifications = cls._schema_on_200.properties.swagger_specifications + swagger_specifications.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.swagger_specifications.Element + _element.api_versions = AAZListType( + serialized_name="apiVersions", + ) + _element.swagger_spec_folder_uri = AAZStrType( + serialized_name="swaggerSpecFolderUri", + ) + + api_versions = cls._schema_on_200.properties.swagger_specifications.Element.api_versions + api_versions.Element = AAZStrType() + + template_deployment_options = cls._schema_on_200.properties.template_deployment_options + template_deployment_options.preflight_options = AAZListType( + serialized_name="preflightOptions", + ) + template_deployment_options.preflight_supported = AAZBoolType( + serialized_name="preflightSupported", + ) + + preflight_options = cls._schema_on_200.properties.template_deployment_options.preflight_options + preflight_options.Element = AAZStrType() + + template_deployment_policy = cls._schema_on_200.properties.template_deployment_policy + template_deployment_policy.capabilities = AAZStrType( + flags={"required": True}, + ) + template_deployment_policy.preflight_notifications = AAZStrType( + serialized_name="preflightNotifications", + ) + template_deployment_policy.preflight_options = AAZStrType( + serialized_name="preflightOptions", + flags={"required": True}, + ) + + throttling_rules = cls._schema_on_200.properties.throttling_rules + throttling_rules.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.throttling_rules.Element + _element.action = AAZStrType( + flags={"required": True}, + ) + _element.application_id = AAZListType( + serialized_name="applicationId", + ) + _element.metrics = AAZListType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + + application_id = cls._schema_on_200.properties.throttling_rules.Element.application_id + application_id.Element = AAZStrType() + + metrics = cls._schema_on_200.properties.throttling_rules.Element.metrics + metrics.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.throttling_rules.Element.metrics.Element + _element.interval = AAZStrType() + _element.limit = AAZIntType( + flags={"required": True}, + ) + _element.type = AAZStrType( + flags={"required": True}, + ) + + required_features = cls._schema_on_200.properties.throttling_rules.Element.required_features + required_features.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _WaitHelper: + """Helper class for Wait""" + + _schema_service_tree_info_read = None + + @classmethod + def _build_schema_service_tree_info_read(cls, _schema): + if cls._schema_service_tree_info_read is not None: + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + return + + cls._schema_service_tree_info_read = _schema_service_tree_info_read = AAZObjectType() + + service_tree_info_read = _schema_service_tree_info_read + service_tree_info_read.component_id = AAZStrType( + serialized_name="componentId", + ) + service_tree_info_read.readiness = AAZStrType() + service_tree_info_read.service_id = AAZStrType( + serialized_name="serviceId", + ) + + _schema.component_id = cls._schema_service_tree_info_read.component_id + _schema.readiness = cls._schema_service_tree_info_read.readiness + _schema.service_id = cls._schema_service_tree_info_read.service_id + + _schema_token_auth_configuration_read = None + + @classmethod + def _build_schema_token_auth_configuration_read(cls, _schema): + if cls._schema_token_auth_configuration_read is not None: + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + return + + cls._schema_token_auth_configuration_read = _schema_token_auth_configuration_read = AAZObjectType() + + token_auth_configuration_read = _schema_token_auth_configuration_read + token_auth_configuration_read.authentication_scheme = AAZStrType( + serialized_name="authenticationScheme", + ) + token_auth_configuration_read.disable_certificate_authentication_fallback = AAZBoolType( + serialized_name="disableCertificateAuthenticationFallback", + ) + token_auth_configuration_read.signed_request_scope = AAZStrType( + serialized_name="signedRequestScope", + ) + + _schema.authentication_scheme = cls._schema_token_auth_configuration_read.authentication_scheme + _schema.disable_certificate_authentication_fallback = cls._schema_token_auth_configuration_read.disable_certificate_authentication_fallback + _schema.signed_request_scope = cls._schema_token_auth_configuration_read.signed_request_scope + + +__all__ = ["Wait"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/__cmd_group.py new file mode 100644 index 00000000000..0c6faeb57c1 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub sku", +) +class __CMDGroup(AAZCommandGroup): + """Manage sku with providerhub. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/__init__.py new file mode 100644 index 00000000000..c401f439385 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/__init__.py @@ -0,0 +1,16 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._update import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_create.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_create.py new file mode 100644 index 00000000000..9583792da79 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_create.py @@ -0,0 +1,615 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku create", +) +class Create(AAZCommand): + """Create the resource type skus in the given resource type. + + :example: sku nested-resource-type-third create + az providerhub sku nested-resource-type-third create --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --nested-resource-type-third "nestedResourceTypeThird" --sku-settings [{"name":"freeSku","kind":"Standard","tier":"Tier1"},{"name":"premiumSku","costs":[{"meterId":"xxx"}],"kind":"Premium","tier":"Tier2"}] --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" --sku "{skuName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.sku_settings = AAZListArg( + options=["--sku-settings"], + arg_group="Properties", + ) + + sku_settings = cls._args_schema.sku_settings + sku_settings.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + ) + _element.capacity = AAZObjectArg( + options=["capacity"], + ) + _element.costs = AAZListArg( + options=["costs"], + ) + _element.family = AAZStrArg( + options=["family"], + ) + _element.kind = AAZStrArg( + options=["kind"], + ) + _element.location_info = AAZListArg( + options=["location-info"], + ) + _element.locations = AAZListArg( + options=["locations"], + ) + _element.name = AAZStrArg( + options=["name"], + required=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + _element.required_quota_ids = AAZListArg( + options=["required-quota-ids"], + ) + _element.size = AAZStrArg( + options=["size"], + ) + _element.tier = AAZStrArg( + options=["tier"], + ) + + capabilities = cls._args_schema.sku_settings.Element.capabilities + capabilities.Element = AAZObjectArg() + cls._build_args_sku_capability_create(capabilities.Element) + + capacity = cls._args_schema.sku_settings.Element.capacity + capacity.default = AAZIntArg( + options=["default"], + ) + capacity.maximum = AAZIntArg( + options=["maximum"], + ) + capacity.minimum = AAZIntArg( + options=["minimum"], + required=True, + ) + capacity.scale_type = AAZStrArg( + options=["scale-type"], + enum={"Automatic": "Automatic", "Manual": "Manual", "None": "None"}, + ) + + costs = cls._args_schema.sku_settings.Element.costs + costs.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrArg( + options=["extended-unit"], + ) + _element.meter_id = AAZStrArg( + options=["meter-id"], + required=True, + ) + _element.quantity = AAZIntArg( + options=["quantity"], + ) + + location_info = cls._args_schema.sku_settings.Element.location_info + location_info.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListArg( + options=["extended-locations"], + ) + _element.location = AAZStrArg( + options=["location"], + required=True, + ) + _element.type = AAZStrArg( + options=["type"], + enum={"ArcZone": "ArcZone", "EdgeZone": "EdgeZone", "NotSpecified": "NotSpecified"}, + ) + _element.zone_details = AAZListArg( + options=["zone-details"], + ) + _element.zones = AAZListArg( + options=["zones"], + ) + + extended_locations = cls._args_schema.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrArg() + + zone_details = cls._args_schema.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + ) + _element.name = AAZListArg( + options=["name"], + ) + + capabilities = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectArg() + cls._build_args_sku_capability_create(capabilities.Element) + + name = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrArg() + + zones = cls._args_schema.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrArg() + + locations = cls._args_schema.sku_settings.Element.locations + locations.Element = AAZStrArg() + + required_features = cls._args_schema.sku_settings.Element.required_features + required_features.Element = AAZStrArg() + + required_quota_ids = cls._args_schema.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrArg() + return cls._args_schema + + _args_sku_capability_create = None + + @classmethod + def _build_args_sku_capability_create(cls, _schema): + if cls._args_sku_capability_create is not None: + _schema.name = cls._args_sku_capability_create.name + _schema.value = cls._args_sku_capability_create.value + return + + cls._args_sku_capability_create = AAZObjectArg() + + sku_capability_create = cls._args_sku_capability_create + sku_capability_create.name = AAZStrArg( + options=["name"], + required=True, + ) + sku_capability_create.value = AAZStrArg( + options=["value"], + required=True, + ) + + _schema.name = cls._args_sku_capability_create.name + _schema.value = cls._args_sku_capability_create.value + + def _execute_operations(self): + self.pre_operations() + self.SkusCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SkusCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("skuSettings", AAZListType, ".sku_settings", typ_kwargs={"flags": {"required": True}}) + + sku_settings = _builder.get(".properties.skuSettings") + if sku_settings is not None: + sku_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("capacity", AAZObjectType, ".capacity") + _elements.set_prop("costs", AAZListType, ".costs") + _elements.set_prop("family", AAZStrType, ".family") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locationInfo", AAZListType, ".location_info") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("requiredQuotaIds", AAZListType, ".required_quota_ids") + _elements.set_prop("size", AAZStrType, ".size") + _elements.set_prop("tier", AAZStrType, ".tier") + + capabilities = _builder.get(".properties.skuSettings[].capabilities") + if capabilities is not None: + _CreateHelper._build_schema_sku_capability_create(capabilities.set_elements(AAZObjectType, ".")) + + capacity = _builder.get(".properties.skuSettings[].capacity") + if capacity is not None: + capacity.set_prop("default", AAZIntType, ".default") + capacity.set_prop("maximum", AAZIntType, ".maximum") + capacity.set_prop("minimum", AAZIntType, ".minimum", typ_kwargs={"flags": {"required": True}}) + capacity.set_prop("scaleType", AAZStrType, ".scale_type") + + costs = _builder.get(".properties.skuSettings[].costs") + if costs is not None: + costs.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].costs[]") + if _elements is not None: + _elements.set_prop("extendedUnit", AAZStrType, ".extended_unit") + _elements.set_prop("meterId", AAZStrType, ".meter_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quantity", AAZIntType, ".quantity") + + location_info = _builder.get(".properties.skuSettings[].locationInfo") + if location_info is not None: + location_info.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[]") + if _elements is not None: + _elements.set_prop("extendedLocations", AAZListType, ".extended_locations") + _elements.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type") + _elements.set_prop("zoneDetails", AAZListType, ".zone_details") + _elements.set_prop("zones", AAZListType, ".zones") + + extended_locations = _builder.get(".properties.skuSettings[].locationInfo[].extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZStrType, ".") + + zone_details = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails") + if zone_details is not None: + zone_details.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("name", AAZListType, ".name") + + capabilities = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].capabilities") + if capabilities is not None: + _CreateHelper._build_schema_sku_capability_create(capabilities.set_elements(AAZObjectType, ".")) + + name = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].name") + if name is not None: + name.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.skuSettings[].locationInfo[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + locations = _builder.get(".properties.skuSettings[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.skuSettings[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + required_quota_ids = _builder.get(".properties.skuSettings[].requiredQuotaIds") + if required_quota_ids is not None: + required_quota_ids.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = cls._schema_on_200.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + _CreateHelper._build_schema_sku_capability_read(capabilities.Element) + + capacity = cls._schema_on_200.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = cls._schema_on_200.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = cls._schema_on_200.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + _CreateHelper._build_schema_sku_capability_read(capabilities.Element) + + name = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = cls._schema_on_200.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = cls._schema_on_200.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _CreateHelper: + """Helper class for Create""" + + @classmethod + def _build_schema_sku_capability_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + +__all__ = ["Create"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_delete.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_delete.py new file mode 100644 index 00000000000..b13f7c21677 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_delete.py @@ -0,0 +1,152 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a resource type sku. + + :example: sku nested-resource-type-third delete + az providerhub sku nested-resource-type-third delete -y --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --nested-resource-type-third "nestedResourceTypeThird" --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" --sku "{skuName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + id_part="child_name_2", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.SkusDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class SkusDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_list.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_list.py new file mode 100644 index 00000000000..5ed1ace9738 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_list.py @@ -0,0 +1,339 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku list", +) +class List(AAZCommand): + """List the list of skus for the given resource type. + + :example: sku nested-resource-type-third list + az providerhub sku nested-resource-type-third list --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --nested-resource-type-third "nestedResourceTypeThird" --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/skus", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_PAGINATION = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.SkusListByResourceTypeRegistrations(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class SkusListByResourceTypeRegistrations(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = cls._schema_on_200.value.Element.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = cls._schema_on_200.value.Element.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + _ListHelper._build_schema_sku_capability_read(capabilities.Element) + + capacity = cls._schema_on_200.value.Element.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = cls._schema_on_200.value.Element.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + _ListHelper._build_schema_sku_capability_read(capabilities.Element) + + name = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = cls._schema_on_200.value.Element.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.value.Element.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = cls._schema_on_200.value.Element.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + +__all__ = ["List"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_show.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_show.py new file mode 100644 index 00000000000..75496d1097f --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_show.py @@ -0,0 +1,340 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku show", +) +class Show(AAZCommand): + """Get the sku details for the given resource type and sku name. + + :example: sku nested-resource-type-third show + az providerhub sku nested-resource-type-third show --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --nested-resource-type-third "nestedResourceTypeThird" --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" --sku "{skuName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + id_part="child_name_2", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.SkusGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SkusGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = cls._schema_on_200.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + _ShowHelper._build_schema_sku_capability_read(capabilities.Element) + + capacity = cls._schema_on_200.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = cls._schema_on_200.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = cls._schema_on_200.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + _ShowHelper._build_schema_sku_capability_read(capabilities.Element) + + name = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = cls._schema_on_200.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = cls._schema_on_200.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + +__all__ = ["Show"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_update.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_update.py new file mode 100644 index 00000000000..c6883413d91 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/_update.py @@ -0,0 +1,804 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku update", +) +class Update(AAZCommand): + """Update the resource type skus in the given resource type. + + :example: sku nested-resource-type-third update + az providerhub sku nested-resource-type-third update --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --nested-resource-type-third "nestedResourceTypeThird" --sku-settings [{"name":"freeSku","kind":"Standard","tier":"Tier1"},{"name":"premiumSku","costs":[{"meterId":"xxx"}],"kind":"Premium","tier":"Tier2"}] --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" --sku "{skuName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + id_part="child_name_2", + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.sku_settings = AAZListArg( + options=["--sku-settings"], + arg_group="Properties", + ) + + sku_settings = cls._args_schema.sku_settings + sku_settings.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + nullable=True, + ) + _element.capacity = AAZObjectArg( + options=["capacity"], + nullable=True, + ) + _element.costs = AAZListArg( + options=["costs"], + nullable=True, + ) + _element.family = AAZStrArg( + options=["family"], + nullable=True, + ) + _element.kind = AAZStrArg( + options=["kind"], + nullable=True, + ) + _element.location_info = AAZListArg( + options=["location-info"], + nullable=True, + ) + _element.locations = AAZListArg( + options=["locations"], + nullable=True, + ) + _element.name = AAZStrArg( + options=["name"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + _element.required_quota_ids = AAZListArg( + options=["required-quota-ids"], + nullable=True, + ) + _element.size = AAZStrArg( + options=["size"], + nullable=True, + ) + _element.tier = AAZStrArg( + options=["tier"], + nullable=True, + ) + + capabilities = cls._args_schema.sku_settings.Element.capabilities + capabilities.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_sku_capability_update(capabilities.Element) + + capacity = cls._args_schema.sku_settings.Element.capacity + capacity.default = AAZIntArg( + options=["default"], + nullable=True, + ) + capacity.maximum = AAZIntArg( + options=["maximum"], + nullable=True, + ) + capacity.minimum = AAZIntArg( + options=["minimum"], + ) + capacity.scale_type = AAZStrArg( + options=["scale-type"], + nullable=True, + enum={"Automatic": "Automatic", "Manual": "Manual", "None": "None"}, + ) + + costs = cls._args_schema.sku_settings.Element.costs + costs.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrArg( + options=["extended-unit"], + nullable=True, + ) + _element.meter_id = AAZStrArg( + options=["meter-id"], + ) + _element.quantity = AAZIntArg( + options=["quantity"], + nullable=True, + ) + + location_info = cls._args_schema.sku_settings.Element.location_info + location_info.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListArg( + options=["extended-locations"], + nullable=True, + ) + _element.location = AAZStrArg( + options=["location"], + ) + _element.type = AAZStrArg( + options=["type"], + nullable=True, + enum={"ArcZone": "ArcZone", "EdgeZone": "EdgeZone", "NotSpecified": "NotSpecified"}, + ) + _element.zone_details = AAZListArg( + options=["zone-details"], + nullable=True, + ) + _element.zones = AAZListArg( + options=["zones"], + nullable=True, + ) + + extended_locations = cls._args_schema.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrArg( + nullable=True, + ) + + zone_details = cls._args_schema.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + nullable=True, + ) + _element.name = AAZListArg( + options=["name"], + nullable=True, + ) + + capabilities = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_sku_capability_update(capabilities.Element) + + name = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrArg( + nullable=True, + ) + + zones = cls._args_schema.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrArg( + nullable=True, + ) + + locations = cls._args_schema.sku_settings.Element.locations + locations.Element = AAZStrArg( + nullable=True, + ) + + required_features = cls._args_schema.sku_settings.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + required_quota_ids = cls._args_schema.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrArg( + nullable=True, + ) + return cls._args_schema + + _args_sku_capability_update = None + + @classmethod + def _build_args_sku_capability_update(cls, _schema): + if cls._args_sku_capability_update is not None: + _schema.name = cls._args_sku_capability_update.name + _schema.value = cls._args_sku_capability_update.value + return + + cls._args_sku_capability_update = AAZObjectArg( + nullable=True, + ) + + sku_capability_update = cls._args_sku_capability_update + sku_capability_update.name = AAZStrArg( + options=["name"], + ) + sku_capability_update.value = AAZStrArg( + options=["value"], + ) + + _schema.name = cls._args_sku_capability_update.name + _schema.value = cls._args_sku_capability_update.value + + def _execute_operations(self): + self.pre_operations() + self.SkusGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.SkusCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SkusGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_sku_resource_read(cls._schema_on_200) + + return cls._schema_on_200 + + class SkusCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_sku_resource_read(cls._schema_on_200) + + return cls._schema_on_200 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("skuSettings", AAZListType, ".sku_settings", typ_kwargs={"flags": {"required": True}}) + + sku_settings = _builder.get(".properties.skuSettings") + if sku_settings is not None: + sku_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("capacity", AAZObjectType, ".capacity") + _elements.set_prop("costs", AAZListType, ".costs") + _elements.set_prop("family", AAZStrType, ".family") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locationInfo", AAZListType, ".location_info") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("requiredQuotaIds", AAZListType, ".required_quota_ids") + _elements.set_prop("size", AAZStrType, ".size") + _elements.set_prop("tier", AAZStrType, ".tier") + + capabilities = _builder.get(".properties.skuSettings[].capabilities") + if capabilities is not None: + _UpdateHelper._build_schema_sku_capability_update(capabilities.set_elements(AAZObjectType, ".")) + + capacity = _builder.get(".properties.skuSettings[].capacity") + if capacity is not None: + capacity.set_prop("default", AAZIntType, ".default") + capacity.set_prop("maximum", AAZIntType, ".maximum") + capacity.set_prop("minimum", AAZIntType, ".minimum", typ_kwargs={"flags": {"required": True}}) + capacity.set_prop("scaleType", AAZStrType, ".scale_type") + + costs = _builder.get(".properties.skuSettings[].costs") + if costs is not None: + costs.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].costs[]") + if _elements is not None: + _elements.set_prop("extendedUnit", AAZStrType, ".extended_unit") + _elements.set_prop("meterId", AAZStrType, ".meter_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quantity", AAZIntType, ".quantity") + + location_info = _builder.get(".properties.skuSettings[].locationInfo") + if location_info is not None: + location_info.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[]") + if _elements is not None: + _elements.set_prop("extendedLocations", AAZListType, ".extended_locations") + _elements.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type") + _elements.set_prop("zoneDetails", AAZListType, ".zone_details") + _elements.set_prop("zones", AAZListType, ".zones") + + extended_locations = _builder.get(".properties.skuSettings[].locationInfo[].extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZStrType, ".") + + zone_details = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails") + if zone_details is not None: + zone_details.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("name", AAZListType, ".name") + + capabilities = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].capabilities") + if capabilities is not None: + _UpdateHelper._build_schema_sku_capability_update(capabilities.set_elements(AAZObjectType, ".")) + + name = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].name") + if name is not None: + name.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.skuSettings[].locationInfo[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + locations = _builder.get(".properties.skuSettings[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.skuSettings[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + required_quota_ids = _builder.get(".properties.skuSettings[].requiredQuotaIds") + if required_quota_ids is not None: + required_quota_ids.set_elements(AAZStrType, ".") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + @classmethod + def _build_schema_sku_capability_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + _schema_sku_resource_read = None + + @classmethod + def _build_schema_sku_resource_read(cls, _schema): + if cls._schema_sku_resource_read is not None: + _schema.id = cls._schema_sku_resource_read.id + _schema.name = cls._schema_sku_resource_read.name + _schema.properties = cls._schema_sku_resource_read.properties + _schema.system_data = cls._schema_sku_resource_read.system_data + _schema.type = cls._schema_sku_resource_read.type + return + + cls._schema_sku_resource_read = _schema_sku_resource_read = AAZObjectType() + + sku_resource_read = _schema_sku_resource_read + sku_resource_read.id = AAZStrType( + flags={"read_only": True}, + ) + sku_resource_read.name = AAZStrType( + flags={"read_only": True}, + ) + sku_resource_read.properties = AAZObjectType() + sku_resource_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + sku_resource_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_sku_resource_read.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = _schema_sku_resource_read.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = _schema_sku_resource_read.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + cls._build_schema_sku_capability_read(capabilities.Element) + + capacity = _schema_sku_resource_read.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = _schema_sku_resource_read.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = _schema_sku_resource_read.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + cls._build_schema_sku_capability_read(capabilities.Element) + + name = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = _schema_sku_resource_read.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = _schema_sku_resource_read.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = _schema_sku_resource_read.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = _schema_sku_resource_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.id = cls._schema_sku_resource_read.id + _schema.name = cls._schema_sku_resource_read.name + _schema.properties = cls._schema_sku_resource_read.properties + _schema.system_data = cls._schema_sku_resource_read.system_data + _schema.type = cls._schema_sku_resource_read.type + + +__all__ = ["Update"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/__cmd_group.py new file mode 100644 index 00000000000..df46f66400f --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub sku nested-resource-type-first", +) +class __CMDGroup(AAZCommandGroup): + """Gets the sku details for the given resource type and sku name. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/__init__.py new file mode 100644 index 00000000000..c401f439385 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/__init__.py @@ -0,0 +1,16 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._update import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_create.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_create.py new file mode 100644 index 00000000000..ac65cfb5bd0 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_create.py @@ -0,0 +1,624 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-first create", +) +class Create(AAZCommand): + """Create the resource type skus in the given resource type. + + :example: sku nested-resource-type-first create + az providerhub sku nested-resource-type-first create --nested-resource-type-first "nestedResourceTypeFirst" --sku-settings [{"name":"freeSku","kind":"Standard","tier":"Tier1"},{"name":"premiumSku","costs":[{"meterId":"xxx"}],"kind":"Premium","tier":"Tier2"}] --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" --sku "{skuName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.sku_settings = AAZListArg( + options=["--sku-settings"], + arg_group="Properties", + ) + + sku_settings = cls._args_schema.sku_settings + sku_settings.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + ) + _element.capacity = AAZObjectArg( + options=["capacity"], + ) + _element.costs = AAZListArg( + options=["costs"], + ) + _element.family = AAZStrArg( + options=["family"], + ) + _element.kind = AAZStrArg( + options=["kind"], + ) + _element.location_info = AAZListArg( + options=["location-info"], + ) + _element.locations = AAZListArg( + options=["locations"], + ) + _element.name = AAZStrArg( + options=["name"], + required=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + _element.required_quota_ids = AAZListArg( + options=["required-quota-ids"], + ) + _element.size = AAZStrArg( + options=["size"], + ) + _element.tier = AAZStrArg( + options=["tier"], + ) + + capabilities = cls._args_schema.sku_settings.Element.capabilities + capabilities.Element = AAZObjectArg() + cls._build_args_sku_capability_create(capabilities.Element) + + capacity = cls._args_schema.sku_settings.Element.capacity + capacity.default = AAZIntArg( + options=["default"], + ) + capacity.maximum = AAZIntArg( + options=["maximum"], + ) + capacity.minimum = AAZIntArg( + options=["minimum"], + required=True, + ) + capacity.scale_type = AAZStrArg( + options=["scale-type"], + enum={"Automatic": "Automatic", "Manual": "Manual", "None": "None"}, + ) + + costs = cls._args_schema.sku_settings.Element.costs + costs.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrArg( + options=["extended-unit"], + ) + _element.meter_id = AAZStrArg( + options=["meter-id"], + required=True, + ) + _element.quantity = AAZIntArg( + options=["quantity"], + ) + + location_info = cls._args_schema.sku_settings.Element.location_info + location_info.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListArg( + options=["extended-locations"], + ) + _element.location = AAZStrArg( + options=["location"], + required=True, + ) + _element.type = AAZStrArg( + options=["type"], + enum={"ArcZone": "ArcZone", "EdgeZone": "EdgeZone", "NotSpecified": "NotSpecified"}, + ) + _element.zone_details = AAZListArg( + options=["zone-details"], + ) + _element.zones = AAZListArg( + options=["zones"], + ) + + extended_locations = cls._args_schema.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrArg() + + zone_details = cls._args_schema.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + ) + _element.name = AAZListArg( + options=["name"], + ) + + capabilities = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectArg() + cls._build_args_sku_capability_create(capabilities.Element) + + name = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrArg() + + zones = cls._args_schema.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrArg() + + locations = cls._args_schema.sku_settings.Element.locations + locations.Element = AAZStrArg() + + required_features = cls._args_schema.sku_settings.Element.required_features + required_features.Element = AAZStrArg() + + required_quota_ids = cls._args_schema.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrArg() + return cls._args_schema + + _args_sku_capability_create = None + + @classmethod + def _build_args_sku_capability_create(cls, _schema): + if cls._args_sku_capability_create is not None: + _schema.name = cls._args_sku_capability_create.name + _schema.value = cls._args_sku_capability_create.value + return + + cls._args_sku_capability_create = AAZObjectArg() + + sku_capability_create = cls._args_sku_capability_create + sku_capability_create.name = AAZStrArg( + options=["name"], + required=True, + ) + sku_capability_create.value = AAZStrArg( + options=["value"], + required=True, + ) + + _schema.name = cls._args_sku_capability_create.name + _schema.value = cls._args_sku_capability_create.value + + def _execute_operations(self): + self.pre_operations() + self.SkusCreateOrUpdateNestedResourceTypeFirst(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SkusCreateOrUpdateNestedResourceTypeFirst(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("skuSettings", AAZListType, ".sku_settings", typ_kwargs={"flags": {"required": True}}) + + sku_settings = _builder.get(".properties.skuSettings") + if sku_settings is not None: + sku_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("capacity", AAZObjectType, ".capacity") + _elements.set_prop("costs", AAZListType, ".costs") + _elements.set_prop("family", AAZStrType, ".family") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locationInfo", AAZListType, ".location_info") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("requiredQuotaIds", AAZListType, ".required_quota_ids") + _elements.set_prop("size", AAZStrType, ".size") + _elements.set_prop("tier", AAZStrType, ".tier") + + capabilities = _builder.get(".properties.skuSettings[].capabilities") + if capabilities is not None: + _CreateHelper._build_schema_sku_capability_create(capabilities.set_elements(AAZObjectType, ".")) + + capacity = _builder.get(".properties.skuSettings[].capacity") + if capacity is not None: + capacity.set_prop("default", AAZIntType, ".default") + capacity.set_prop("maximum", AAZIntType, ".maximum") + capacity.set_prop("minimum", AAZIntType, ".minimum", typ_kwargs={"flags": {"required": True}}) + capacity.set_prop("scaleType", AAZStrType, ".scale_type") + + costs = _builder.get(".properties.skuSettings[].costs") + if costs is not None: + costs.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].costs[]") + if _elements is not None: + _elements.set_prop("extendedUnit", AAZStrType, ".extended_unit") + _elements.set_prop("meterId", AAZStrType, ".meter_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quantity", AAZIntType, ".quantity") + + location_info = _builder.get(".properties.skuSettings[].locationInfo") + if location_info is not None: + location_info.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[]") + if _elements is not None: + _elements.set_prop("extendedLocations", AAZListType, ".extended_locations") + _elements.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type") + _elements.set_prop("zoneDetails", AAZListType, ".zone_details") + _elements.set_prop("zones", AAZListType, ".zones") + + extended_locations = _builder.get(".properties.skuSettings[].locationInfo[].extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZStrType, ".") + + zone_details = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails") + if zone_details is not None: + zone_details.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("name", AAZListType, ".name") + + capabilities = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].capabilities") + if capabilities is not None: + _CreateHelper._build_schema_sku_capability_create(capabilities.set_elements(AAZObjectType, ".")) + + name = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].name") + if name is not None: + name.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.skuSettings[].locationInfo[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + locations = _builder.get(".properties.skuSettings[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.skuSettings[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + required_quota_ids = _builder.get(".properties.skuSettings[].requiredQuotaIds") + if required_quota_ids is not None: + required_quota_ids.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = cls._schema_on_200.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + _CreateHelper._build_schema_sku_capability_read(capabilities.Element) + + capacity = cls._schema_on_200.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = cls._schema_on_200.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = cls._schema_on_200.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + _CreateHelper._build_schema_sku_capability_read(capabilities.Element) + + name = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = cls._schema_on_200.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = cls._schema_on_200.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _CreateHelper: + """Helper class for Create""" + + @classmethod + def _build_schema_sku_capability_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + +__all__ = ["Create"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_delete.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_delete.py new file mode 100644 index 00000000000..32778d85439 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_delete.py @@ -0,0 +1,162 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-first delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a resource type sku. + + :example: sku nested-resource-type-first delete + az providerhub sku nested-resource-type-first delete -y --nested-resource-type-first "nestedResourceTypeFirst" --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" --sku "{skuName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + id_part="child_name_2", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + id_part="child_name_3", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.SkusDeleteNestedResourceTypeFirst(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class SkusDeleteNestedResourceTypeFirst(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_list.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_list.py new file mode 100644 index 00000000000..b28c0d615a0 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_list.py @@ -0,0 +1,348 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-first list", +) +class List(AAZCommand): + """List the list of skus for the given resource type. + + :example: sku nested-resource-type-first list + az providerhub sku nested-resource-type-first list --nested-resource-type-first "nestedResourceTypeFirst" --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_PAGINATION = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.SkusListByResourceTypeRegistrationsNestedResourceTypeFirst(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class SkusListByResourceTypeRegistrationsNestedResourceTypeFirst(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = cls._schema_on_200.value.Element.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = cls._schema_on_200.value.Element.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + _ListHelper._build_schema_sku_capability_read(capabilities.Element) + + capacity = cls._schema_on_200.value.Element.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = cls._schema_on_200.value.Element.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + _ListHelper._build_schema_sku_capability_read(capabilities.Element) + + name = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = cls._schema_on_200.value.Element.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.value.Element.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = cls._schema_on_200.value.Element.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + +__all__ = ["List"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_show.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_show.py new file mode 100644 index 00000000000..e792dfe08c1 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_show.py @@ -0,0 +1,350 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-first show", +) +class Show(AAZCommand): + """Get the sku details for the given resource type and sku name. + + :example: sku nested-resource-type-first show + az providerhub sku nested-resource-type-first show --nested-resource-type-first "nestedResourceTypeFirst" --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" --sku "{skuName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + id_part="child_name_2", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + id_part="child_name_3", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.SkusGetNestedResourceTypeFirst(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SkusGetNestedResourceTypeFirst(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = cls._schema_on_200.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + _ShowHelper._build_schema_sku_capability_read(capabilities.Element) + + capacity = cls._schema_on_200.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = cls._schema_on_200.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = cls._schema_on_200.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + _ShowHelper._build_schema_sku_capability_read(capabilities.Element) + + name = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = cls._schema_on_200.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = cls._schema_on_200.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + +__all__ = ["Show"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_update.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_update.py new file mode 100644 index 00000000000..0ccf35e9085 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_first/_update.py @@ -0,0 +1,818 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-first update", +) +class Update(AAZCommand): + """Update the resource type skus in the given resource type. + + :example: sku nested-resource-type-first update + az providerhub sku nested-resource-type-first update --nested-resource-type-first "nestedResourceTypeFirst" --sku-settings [{"name":"freeSku","kind":"Standard","tier":"Tier1"},{"name":"premiumSku","costs":[{"meterId":"xxx"}],"kind":"Premium","tier":"Tier2"}] --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" --sku "{skuName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + id_part="child_name_2", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + id_part="child_name_3", + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.sku_settings = AAZListArg( + options=["--sku-settings"], + arg_group="Properties", + ) + + sku_settings = cls._args_schema.sku_settings + sku_settings.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + nullable=True, + ) + _element.capacity = AAZObjectArg( + options=["capacity"], + nullable=True, + ) + _element.costs = AAZListArg( + options=["costs"], + nullable=True, + ) + _element.family = AAZStrArg( + options=["family"], + nullable=True, + ) + _element.kind = AAZStrArg( + options=["kind"], + nullable=True, + ) + _element.location_info = AAZListArg( + options=["location-info"], + nullable=True, + ) + _element.locations = AAZListArg( + options=["locations"], + nullable=True, + ) + _element.name = AAZStrArg( + options=["name"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + _element.required_quota_ids = AAZListArg( + options=["required-quota-ids"], + nullable=True, + ) + _element.size = AAZStrArg( + options=["size"], + nullable=True, + ) + _element.tier = AAZStrArg( + options=["tier"], + nullable=True, + ) + + capabilities = cls._args_schema.sku_settings.Element.capabilities + capabilities.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_sku_capability_update(capabilities.Element) + + capacity = cls._args_schema.sku_settings.Element.capacity + capacity.default = AAZIntArg( + options=["default"], + nullable=True, + ) + capacity.maximum = AAZIntArg( + options=["maximum"], + nullable=True, + ) + capacity.minimum = AAZIntArg( + options=["minimum"], + ) + capacity.scale_type = AAZStrArg( + options=["scale-type"], + nullable=True, + enum={"Automatic": "Automatic", "Manual": "Manual", "None": "None"}, + ) + + costs = cls._args_schema.sku_settings.Element.costs + costs.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrArg( + options=["extended-unit"], + nullable=True, + ) + _element.meter_id = AAZStrArg( + options=["meter-id"], + ) + _element.quantity = AAZIntArg( + options=["quantity"], + nullable=True, + ) + + location_info = cls._args_schema.sku_settings.Element.location_info + location_info.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListArg( + options=["extended-locations"], + nullable=True, + ) + _element.location = AAZStrArg( + options=["location"], + ) + _element.type = AAZStrArg( + options=["type"], + nullable=True, + enum={"ArcZone": "ArcZone", "EdgeZone": "EdgeZone", "NotSpecified": "NotSpecified"}, + ) + _element.zone_details = AAZListArg( + options=["zone-details"], + nullable=True, + ) + _element.zones = AAZListArg( + options=["zones"], + nullable=True, + ) + + extended_locations = cls._args_schema.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrArg( + nullable=True, + ) + + zone_details = cls._args_schema.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + nullable=True, + ) + _element.name = AAZListArg( + options=["name"], + nullable=True, + ) + + capabilities = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_sku_capability_update(capabilities.Element) + + name = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrArg( + nullable=True, + ) + + zones = cls._args_schema.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrArg( + nullable=True, + ) + + locations = cls._args_schema.sku_settings.Element.locations + locations.Element = AAZStrArg( + nullable=True, + ) + + required_features = cls._args_schema.sku_settings.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + required_quota_ids = cls._args_schema.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrArg( + nullable=True, + ) + return cls._args_schema + + _args_sku_capability_update = None + + @classmethod + def _build_args_sku_capability_update(cls, _schema): + if cls._args_sku_capability_update is not None: + _schema.name = cls._args_sku_capability_update.name + _schema.value = cls._args_sku_capability_update.value + return + + cls._args_sku_capability_update = AAZObjectArg( + nullable=True, + ) + + sku_capability_update = cls._args_sku_capability_update + sku_capability_update.name = AAZStrArg( + options=["name"], + ) + sku_capability_update.value = AAZStrArg( + options=["value"], + ) + + _schema.name = cls._args_sku_capability_update.name + _schema.value = cls._args_sku_capability_update.value + + def _execute_operations(self): + self.pre_operations() + self.SkusGetNestedResourceTypeFirst(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.SkusCreateOrUpdateNestedResourceTypeFirst(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SkusGetNestedResourceTypeFirst(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_sku_resource_read(cls._schema_on_200) + + return cls._schema_on_200 + + class SkusCreateOrUpdateNestedResourceTypeFirst(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_sku_resource_read(cls._schema_on_200) + + return cls._schema_on_200 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("skuSettings", AAZListType, ".sku_settings", typ_kwargs={"flags": {"required": True}}) + + sku_settings = _builder.get(".properties.skuSettings") + if sku_settings is not None: + sku_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("capacity", AAZObjectType, ".capacity") + _elements.set_prop("costs", AAZListType, ".costs") + _elements.set_prop("family", AAZStrType, ".family") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locationInfo", AAZListType, ".location_info") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("requiredQuotaIds", AAZListType, ".required_quota_ids") + _elements.set_prop("size", AAZStrType, ".size") + _elements.set_prop("tier", AAZStrType, ".tier") + + capabilities = _builder.get(".properties.skuSettings[].capabilities") + if capabilities is not None: + _UpdateHelper._build_schema_sku_capability_update(capabilities.set_elements(AAZObjectType, ".")) + + capacity = _builder.get(".properties.skuSettings[].capacity") + if capacity is not None: + capacity.set_prop("default", AAZIntType, ".default") + capacity.set_prop("maximum", AAZIntType, ".maximum") + capacity.set_prop("minimum", AAZIntType, ".minimum", typ_kwargs={"flags": {"required": True}}) + capacity.set_prop("scaleType", AAZStrType, ".scale_type") + + costs = _builder.get(".properties.skuSettings[].costs") + if costs is not None: + costs.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].costs[]") + if _elements is not None: + _elements.set_prop("extendedUnit", AAZStrType, ".extended_unit") + _elements.set_prop("meterId", AAZStrType, ".meter_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quantity", AAZIntType, ".quantity") + + location_info = _builder.get(".properties.skuSettings[].locationInfo") + if location_info is not None: + location_info.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[]") + if _elements is not None: + _elements.set_prop("extendedLocations", AAZListType, ".extended_locations") + _elements.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type") + _elements.set_prop("zoneDetails", AAZListType, ".zone_details") + _elements.set_prop("zones", AAZListType, ".zones") + + extended_locations = _builder.get(".properties.skuSettings[].locationInfo[].extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZStrType, ".") + + zone_details = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails") + if zone_details is not None: + zone_details.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("name", AAZListType, ".name") + + capabilities = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].capabilities") + if capabilities is not None: + _UpdateHelper._build_schema_sku_capability_update(capabilities.set_elements(AAZObjectType, ".")) + + name = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].name") + if name is not None: + name.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.skuSettings[].locationInfo[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + locations = _builder.get(".properties.skuSettings[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.skuSettings[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + required_quota_ids = _builder.get(".properties.skuSettings[].requiredQuotaIds") + if required_quota_ids is not None: + required_quota_ids.set_elements(AAZStrType, ".") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + @classmethod + def _build_schema_sku_capability_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + _schema_sku_resource_read = None + + @classmethod + def _build_schema_sku_resource_read(cls, _schema): + if cls._schema_sku_resource_read is not None: + _schema.id = cls._schema_sku_resource_read.id + _schema.name = cls._schema_sku_resource_read.name + _schema.properties = cls._schema_sku_resource_read.properties + _schema.system_data = cls._schema_sku_resource_read.system_data + _schema.type = cls._schema_sku_resource_read.type + return + + cls._schema_sku_resource_read = _schema_sku_resource_read = AAZObjectType() + + sku_resource_read = _schema_sku_resource_read + sku_resource_read.id = AAZStrType( + flags={"read_only": True}, + ) + sku_resource_read.name = AAZStrType( + flags={"read_only": True}, + ) + sku_resource_read.properties = AAZObjectType() + sku_resource_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + sku_resource_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_sku_resource_read.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = _schema_sku_resource_read.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = _schema_sku_resource_read.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + cls._build_schema_sku_capability_read(capabilities.Element) + + capacity = _schema_sku_resource_read.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = _schema_sku_resource_read.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = _schema_sku_resource_read.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + cls._build_schema_sku_capability_read(capabilities.Element) + + name = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = _schema_sku_resource_read.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = _schema_sku_resource_read.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = _schema_sku_resource_read.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = _schema_sku_resource_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.id = cls._schema_sku_resource_read.id + _schema.name = cls._schema_sku_resource_read.name + _schema.properties = cls._schema_sku_resource_read.properties + _schema.system_data = cls._schema_sku_resource_read.system_data + _schema.type = cls._schema_sku_resource_read.type + + +__all__ = ["Update"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/__cmd_group.py new file mode 100644 index 00000000000..daaf31c99af --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub sku nested-resource-type-second", +) +class __CMDGroup(AAZCommandGroup): + """Gets the sku details for the given resource type and sku name. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/__init__.py new file mode 100644 index 00000000000..c401f439385 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/__init__.py @@ -0,0 +1,16 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._update import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_create.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_create.py new file mode 100644 index 00000000000..5fbb87225b7 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_create.py @@ -0,0 +1,633 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-second create", +) +class Create(AAZCommand): + """Create the resource type skus in the given resource type. + + :example: sku nested-resource-type-second create + az providerhub sku nested-resource-type-second create --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --sku-settings [{"name":"freeSku","kind":"Standard","tier":"Tier1"},{"name":"premiumSku","costs":[{"meterId":"xxx"}],"kind":"Premium","tier":"Tier2"}] --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" --sku "{skuName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + ) + _args_schema.nested_resource_type_second = AAZStrArg( + options=["--nested-second", "--nested-resource-type-second"], + help="The second child resource type.", + required=True, + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.sku_settings = AAZListArg( + options=["--sku-settings"], + arg_group="Properties", + ) + + sku_settings = cls._args_schema.sku_settings + sku_settings.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + ) + _element.capacity = AAZObjectArg( + options=["capacity"], + ) + _element.costs = AAZListArg( + options=["costs"], + ) + _element.family = AAZStrArg( + options=["family"], + ) + _element.kind = AAZStrArg( + options=["kind"], + ) + _element.location_info = AAZListArg( + options=["location-info"], + ) + _element.locations = AAZListArg( + options=["locations"], + ) + _element.name = AAZStrArg( + options=["name"], + required=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + _element.required_quota_ids = AAZListArg( + options=["required-quota-ids"], + ) + _element.size = AAZStrArg( + options=["size"], + ) + _element.tier = AAZStrArg( + options=["tier"], + ) + + capabilities = cls._args_schema.sku_settings.Element.capabilities + capabilities.Element = AAZObjectArg() + cls._build_args_sku_capability_create(capabilities.Element) + + capacity = cls._args_schema.sku_settings.Element.capacity + capacity.default = AAZIntArg( + options=["default"], + ) + capacity.maximum = AAZIntArg( + options=["maximum"], + ) + capacity.minimum = AAZIntArg( + options=["minimum"], + required=True, + ) + capacity.scale_type = AAZStrArg( + options=["scale-type"], + enum={"Automatic": "Automatic", "Manual": "Manual", "None": "None"}, + ) + + costs = cls._args_schema.sku_settings.Element.costs + costs.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrArg( + options=["extended-unit"], + ) + _element.meter_id = AAZStrArg( + options=["meter-id"], + required=True, + ) + _element.quantity = AAZIntArg( + options=["quantity"], + ) + + location_info = cls._args_schema.sku_settings.Element.location_info + location_info.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListArg( + options=["extended-locations"], + ) + _element.location = AAZStrArg( + options=["location"], + required=True, + ) + _element.type = AAZStrArg( + options=["type"], + enum={"ArcZone": "ArcZone", "EdgeZone": "EdgeZone", "NotSpecified": "NotSpecified"}, + ) + _element.zone_details = AAZListArg( + options=["zone-details"], + ) + _element.zones = AAZListArg( + options=["zones"], + ) + + extended_locations = cls._args_schema.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrArg() + + zone_details = cls._args_schema.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + ) + _element.name = AAZListArg( + options=["name"], + ) + + capabilities = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectArg() + cls._build_args_sku_capability_create(capabilities.Element) + + name = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrArg() + + zones = cls._args_schema.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrArg() + + locations = cls._args_schema.sku_settings.Element.locations + locations.Element = AAZStrArg() + + required_features = cls._args_schema.sku_settings.Element.required_features + required_features.Element = AAZStrArg() + + required_quota_ids = cls._args_schema.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrArg() + return cls._args_schema + + _args_sku_capability_create = None + + @classmethod + def _build_args_sku_capability_create(cls, _schema): + if cls._args_sku_capability_create is not None: + _schema.name = cls._args_sku_capability_create.name + _schema.value = cls._args_sku_capability_create.value + return + + cls._args_sku_capability_create = AAZObjectArg() + + sku_capability_create = cls._args_sku_capability_create + sku_capability_create.name = AAZStrArg( + options=["name"], + required=True, + ) + sku_capability_create.value = AAZStrArg( + options=["value"], + required=True, + ) + + _schema.name = cls._args_sku_capability_create.name + _schema.value = cls._args_sku_capability_create.value + + def _execute_operations(self): + self.pre_operations() + self.SkusCreateOrUpdateNestedResourceTypeSecond(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SkusCreateOrUpdateNestedResourceTypeSecond(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeSecond", self.ctx.args.nested_resource_type_second, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("skuSettings", AAZListType, ".sku_settings", typ_kwargs={"flags": {"required": True}}) + + sku_settings = _builder.get(".properties.skuSettings") + if sku_settings is not None: + sku_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("capacity", AAZObjectType, ".capacity") + _elements.set_prop("costs", AAZListType, ".costs") + _elements.set_prop("family", AAZStrType, ".family") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locationInfo", AAZListType, ".location_info") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("requiredQuotaIds", AAZListType, ".required_quota_ids") + _elements.set_prop("size", AAZStrType, ".size") + _elements.set_prop("tier", AAZStrType, ".tier") + + capabilities = _builder.get(".properties.skuSettings[].capabilities") + if capabilities is not None: + _CreateHelper._build_schema_sku_capability_create(capabilities.set_elements(AAZObjectType, ".")) + + capacity = _builder.get(".properties.skuSettings[].capacity") + if capacity is not None: + capacity.set_prop("default", AAZIntType, ".default") + capacity.set_prop("maximum", AAZIntType, ".maximum") + capacity.set_prop("minimum", AAZIntType, ".minimum", typ_kwargs={"flags": {"required": True}}) + capacity.set_prop("scaleType", AAZStrType, ".scale_type") + + costs = _builder.get(".properties.skuSettings[].costs") + if costs is not None: + costs.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].costs[]") + if _elements is not None: + _elements.set_prop("extendedUnit", AAZStrType, ".extended_unit") + _elements.set_prop("meterId", AAZStrType, ".meter_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quantity", AAZIntType, ".quantity") + + location_info = _builder.get(".properties.skuSettings[].locationInfo") + if location_info is not None: + location_info.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[]") + if _elements is not None: + _elements.set_prop("extendedLocations", AAZListType, ".extended_locations") + _elements.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type") + _elements.set_prop("zoneDetails", AAZListType, ".zone_details") + _elements.set_prop("zones", AAZListType, ".zones") + + extended_locations = _builder.get(".properties.skuSettings[].locationInfo[].extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZStrType, ".") + + zone_details = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails") + if zone_details is not None: + zone_details.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("name", AAZListType, ".name") + + capabilities = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].capabilities") + if capabilities is not None: + _CreateHelper._build_schema_sku_capability_create(capabilities.set_elements(AAZObjectType, ".")) + + name = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].name") + if name is not None: + name.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.skuSettings[].locationInfo[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + locations = _builder.get(".properties.skuSettings[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.skuSettings[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + required_quota_ids = _builder.get(".properties.skuSettings[].requiredQuotaIds") + if required_quota_ids is not None: + required_quota_ids.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = cls._schema_on_200.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + _CreateHelper._build_schema_sku_capability_read(capabilities.Element) + + capacity = cls._schema_on_200.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = cls._schema_on_200.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = cls._schema_on_200.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + _CreateHelper._build_schema_sku_capability_read(capabilities.Element) + + name = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = cls._schema_on_200.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = cls._schema_on_200.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _CreateHelper: + """Helper class for Create""" + + @classmethod + def _build_schema_sku_capability_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + +__all__ = ["Create"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_delete.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_delete.py new file mode 100644 index 00000000000..68b2058ac3f --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_delete.py @@ -0,0 +1,172 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-second delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a resource type sku. + + :example: sku nested-resource-type-second delete + az providerhub sku nested-resource-type-second delete -y --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" --sku "{skuName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + id_part="child_name_2", + ) + _args_schema.nested_resource_type_second = AAZStrArg( + options=["--nested-second", "--nested-resource-type-second"], + help="The second child resource type.", + required=True, + id_part="child_name_3", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + id_part="child_name_4", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.SkusDeleteNestedResourceTypeSecond(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class SkusDeleteNestedResourceTypeSecond(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeSecond", self.ctx.args.nested_resource_type_second, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_list.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_list.py new file mode 100644 index 00000000000..e802adbbe00 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_list.py @@ -0,0 +1,357 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-second list", +) +class List(AAZCommand): + """List the list of skus for the given resource type. + + :example: sku nested-resource-type-second list + az providerhub sku nested-resource-type-second list --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_PAGINATION = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + ) + _args_schema.nested_resource_type_second = AAZStrArg( + options=["--nested-second", "--nested-resource-type-second"], + help="The second child resource type.", + required=True, + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.SkusListByResourceTypeRegistrationsNestedResourceTypeSecond(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class SkusListByResourceTypeRegistrationsNestedResourceTypeSecond(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeSecond", self.ctx.args.nested_resource_type_second, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = cls._schema_on_200.value.Element.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = cls._schema_on_200.value.Element.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + _ListHelper._build_schema_sku_capability_read(capabilities.Element) + + capacity = cls._schema_on_200.value.Element.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = cls._schema_on_200.value.Element.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + _ListHelper._build_schema_sku_capability_read(capabilities.Element) + + name = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = cls._schema_on_200.value.Element.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.value.Element.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = cls._schema_on_200.value.Element.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + +__all__ = ["List"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_show.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_show.py new file mode 100644 index 00000000000..fede2768730 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_show.py @@ -0,0 +1,360 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-second show", +) +class Show(AAZCommand): + """Get the sku details for the given resource type and sku name. + + :example: sku nested-resource-type-second show + az providerhub sku nested-resource-type-second show --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" --sku "{skuName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + id_part="child_name_2", + ) + _args_schema.nested_resource_type_second = AAZStrArg( + options=["--nested-second", "--nested-resource-type-second"], + help="The second child resource type.", + required=True, + id_part="child_name_3", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + id_part="child_name_4", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.SkusGetNestedResourceTypeSecond(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SkusGetNestedResourceTypeSecond(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeSecond", self.ctx.args.nested_resource_type_second, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = cls._schema_on_200.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + _ShowHelper._build_schema_sku_capability_read(capabilities.Element) + + capacity = cls._schema_on_200.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = cls._schema_on_200.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = cls._schema_on_200.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + _ShowHelper._build_schema_sku_capability_read(capabilities.Element) + + name = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = cls._schema_on_200.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = cls._schema_on_200.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + +__all__ = ["Show"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_update.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_update.py new file mode 100644 index 00000000000..eb4f3f8b16f --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_second/_update.py @@ -0,0 +1,832 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-second update", +) +class Update(AAZCommand): + """Update the resource type skus in the given resource type. + + :example: sku nested-resource-type-second update + az providerhub sku nested-resource-type-second update --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --sku-settings [{"name":"freeSku","kind":"Standard","tier":"Tier1"},{"name":"premiumSku","costs":[{"meterId":"xxx"}],"kind":"Premium","tier":"Tier2"}] --provider-namespace "{providerNamespace}" --resource-type "{resourceType}" --sku "{skuName}" + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + id_part="child_name_2", + ) + _args_schema.nested_resource_type_second = AAZStrArg( + options=["--nested-second", "--nested-resource-type-second"], + help="The second child resource type.", + required=True, + id_part="child_name_3", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + id_part="child_name_4", + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.sku_settings = AAZListArg( + options=["--sku-settings"], + arg_group="Properties", + ) + + sku_settings = cls._args_schema.sku_settings + sku_settings.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + nullable=True, + ) + _element.capacity = AAZObjectArg( + options=["capacity"], + nullable=True, + ) + _element.costs = AAZListArg( + options=["costs"], + nullable=True, + ) + _element.family = AAZStrArg( + options=["family"], + nullable=True, + ) + _element.kind = AAZStrArg( + options=["kind"], + nullable=True, + ) + _element.location_info = AAZListArg( + options=["location-info"], + nullable=True, + ) + _element.locations = AAZListArg( + options=["locations"], + nullable=True, + ) + _element.name = AAZStrArg( + options=["name"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + _element.required_quota_ids = AAZListArg( + options=["required-quota-ids"], + nullable=True, + ) + _element.size = AAZStrArg( + options=["size"], + nullable=True, + ) + _element.tier = AAZStrArg( + options=["tier"], + nullable=True, + ) + + capabilities = cls._args_schema.sku_settings.Element.capabilities + capabilities.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_sku_capability_update(capabilities.Element) + + capacity = cls._args_schema.sku_settings.Element.capacity + capacity.default = AAZIntArg( + options=["default"], + nullable=True, + ) + capacity.maximum = AAZIntArg( + options=["maximum"], + nullable=True, + ) + capacity.minimum = AAZIntArg( + options=["minimum"], + ) + capacity.scale_type = AAZStrArg( + options=["scale-type"], + nullable=True, + enum={"Automatic": "Automatic", "Manual": "Manual", "None": "None"}, + ) + + costs = cls._args_schema.sku_settings.Element.costs + costs.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrArg( + options=["extended-unit"], + nullable=True, + ) + _element.meter_id = AAZStrArg( + options=["meter-id"], + ) + _element.quantity = AAZIntArg( + options=["quantity"], + nullable=True, + ) + + location_info = cls._args_schema.sku_settings.Element.location_info + location_info.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListArg( + options=["extended-locations"], + nullable=True, + ) + _element.location = AAZStrArg( + options=["location"], + ) + _element.type = AAZStrArg( + options=["type"], + nullable=True, + enum={"ArcZone": "ArcZone", "EdgeZone": "EdgeZone", "NotSpecified": "NotSpecified"}, + ) + _element.zone_details = AAZListArg( + options=["zone-details"], + nullable=True, + ) + _element.zones = AAZListArg( + options=["zones"], + nullable=True, + ) + + extended_locations = cls._args_schema.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrArg( + nullable=True, + ) + + zone_details = cls._args_schema.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + nullable=True, + ) + _element.name = AAZListArg( + options=["name"], + nullable=True, + ) + + capabilities = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_sku_capability_update(capabilities.Element) + + name = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrArg( + nullable=True, + ) + + zones = cls._args_schema.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrArg( + nullable=True, + ) + + locations = cls._args_schema.sku_settings.Element.locations + locations.Element = AAZStrArg( + nullable=True, + ) + + required_features = cls._args_schema.sku_settings.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + required_quota_ids = cls._args_schema.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrArg( + nullable=True, + ) + return cls._args_schema + + _args_sku_capability_update = None + + @classmethod + def _build_args_sku_capability_update(cls, _schema): + if cls._args_sku_capability_update is not None: + _schema.name = cls._args_sku_capability_update.name + _schema.value = cls._args_sku_capability_update.value + return + + cls._args_sku_capability_update = AAZObjectArg( + nullable=True, + ) + + sku_capability_update = cls._args_sku_capability_update + sku_capability_update.name = AAZStrArg( + options=["name"], + ) + sku_capability_update.value = AAZStrArg( + options=["value"], + ) + + _schema.name = cls._args_sku_capability_update.name + _schema.value = cls._args_sku_capability_update.value + + def _execute_operations(self): + self.pre_operations() + self.SkusGetNestedResourceTypeSecond(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.SkusCreateOrUpdateNestedResourceTypeSecond(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SkusGetNestedResourceTypeSecond(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeSecond", self.ctx.args.nested_resource_type_second, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_sku_resource_read(cls._schema_on_200) + + return cls._schema_on_200 + + class SkusCreateOrUpdateNestedResourceTypeSecond(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeSecond", self.ctx.args.nested_resource_type_second, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_sku_resource_read(cls._schema_on_200) + + return cls._schema_on_200 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("skuSettings", AAZListType, ".sku_settings", typ_kwargs={"flags": {"required": True}}) + + sku_settings = _builder.get(".properties.skuSettings") + if sku_settings is not None: + sku_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("capacity", AAZObjectType, ".capacity") + _elements.set_prop("costs", AAZListType, ".costs") + _elements.set_prop("family", AAZStrType, ".family") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locationInfo", AAZListType, ".location_info") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("requiredQuotaIds", AAZListType, ".required_quota_ids") + _elements.set_prop("size", AAZStrType, ".size") + _elements.set_prop("tier", AAZStrType, ".tier") + + capabilities = _builder.get(".properties.skuSettings[].capabilities") + if capabilities is not None: + _UpdateHelper._build_schema_sku_capability_update(capabilities.set_elements(AAZObjectType, ".")) + + capacity = _builder.get(".properties.skuSettings[].capacity") + if capacity is not None: + capacity.set_prop("default", AAZIntType, ".default") + capacity.set_prop("maximum", AAZIntType, ".maximum") + capacity.set_prop("minimum", AAZIntType, ".minimum", typ_kwargs={"flags": {"required": True}}) + capacity.set_prop("scaleType", AAZStrType, ".scale_type") + + costs = _builder.get(".properties.skuSettings[].costs") + if costs is not None: + costs.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].costs[]") + if _elements is not None: + _elements.set_prop("extendedUnit", AAZStrType, ".extended_unit") + _elements.set_prop("meterId", AAZStrType, ".meter_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quantity", AAZIntType, ".quantity") + + location_info = _builder.get(".properties.skuSettings[].locationInfo") + if location_info is not None: + location_info.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[]") + if _elements is not None: + _elements.set_prop("extendedLocations", AAZListType, ".extended_locations") + _elements.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type") + _elements.set_prop("zoneDetails", AAZListType, ".zone_details") + _elements.set_prop("zones", AAZListType, ".zones") + + extended_locations = _builder.get(".properties.skuSettings[].locationInfo[].extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZStrType, ".") + + zone_details = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails") + if zone_details is not None: + zone_details.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("name", AAZListType, ".name") + + capabilities = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].capabilities") + if capabilities is not None: + _UpdateHelper._build_schema_sku_capability_update(capabilities.set_elements(AAZObjectType, ".")) + + name = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].name") + if name is not None: + name.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.skuSettings[].locationInfo[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + locations = _builder.get(".properties.skuSettings[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.skuSettings[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + required_quota_ids = _builder.get(".properties.skuSettings[].requiredQuotaIds") + if required_quota_ids is not None: + required_quota_ids.set_elements(AAZStrType, ".") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + @classmethod + def _build_schema_sku_capability_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + _schema_sku_resource_read = None + + @classmethod + def _build_schema_sku_resource_read(cls, _schema): + if cls._schema_sku_resource_read is not None: + _schema.id = cls._schema_sku_resource_read.id + _schema.name = cls._schema_sku_resource_read.name + _schema.properties = cls._schema_sku_resource_read.properties + _schema.system_data = cls._schema_sku_resource_read.system_data + _schema.type = cls._schema_sku_resource_read.type + return + + cls._schema_sku_resource_read = _schema_sku_resource_read = AAZObjectType() + + sku_resource_read = _schema_sku_resource_read + sku_resource_read.id = AAZStrType( + flags={"read_only": True}, + ) + sku_resource_read.name = AAZStrType( + flags={"read_only": True}, + ) + sku_resource_read.properties = AAZObjectType() + sku_resource_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + sku_resource_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_sku_resource_read.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = _schema_sku_resource_read.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = _schema_sku_resource_read.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + cls._build_schema_sku_capability_read(capabilities.Element) + + capacity = _schema_sku_resource_read.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = _schema_sku_resource_read.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = _schema_sku_resource_read.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + cls._build_schema_sku_capability_read(capabilities.Element) + + name = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = _schema_sku_resource_read.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = _schema_sku_resource_read.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = _schema_sku_resource_read.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = _schema_sku_resource_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.id = cls._schema_sku_resource_read.id + _schema.name = cls._schema_sku_resource_read.name + _schema.properties = cls._schema_sku_resource_read.properties + _schema.system_data = cls._schema_sku_resource_read.system_data + _schema.type = cls._schema_sku_resource_read.type + + +__all__ = ["Update"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/__cmd_group.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/__cmd_group.py new file mode 100644 index 00000000000..4a3d595d8ad --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "providerhub sku nested-resource-type-third", +) +class __CMDGroup(AAZCommandGroup): + """Gets the sku details for the given resource type and sku name. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/__init__.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/__init__.py new file mode 100644 index 00000000000..c401f439385 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/__init__.py @@ -0,0 +1,16 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._update import * diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_create.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_create.py new file mode 100644 index 00000000000..cc7e26eba2b --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_create.py @@ -0,0 +1,639 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-third create", +) +class Create(AAZCommand): + """Create the resource type skus in the given resource type. + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-rt-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + ) + _args_schema.nested_resource_type_second = AAZStrArg( + options=["--nested-rt-second", "--nested-resource-type-second"], + help="The second child resource type.", + required=True, + ) + _args_schema.nested_resource_type_third = AAZStrArg( + options=["--nested-rt-third", "--nested-resource-type-third"], + help="The third child resource type.", + required=True, + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.sku_settings = AAZListArg( + options=["--sku-settings"], + arg_group="Properties", + ) + + sku_settings = cls._args_schema.sku_settings + sku_settings.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + ) + _element.capacity = AAZObjectArg( + options=["capacity"], + ) + _element.costs = AAZListArg( + options=["costs"], + ) + _element.family = AAZStrArg( + options=["family"], + ) + _element.kind = AAZStrArg( + options=["kind"], + ) + _element.location_info = AAZListArg( + options=["location-info"], + ) + _element.locations = AAZListArg( + options=["locations"], + ) + _element.name = AAZStrArg( + options=["name"], + required=True, + ) + _element.required_features = AAZListArg( + options=["required-features"], + ) + _element.required_quota_ids = AAZListArg( + options=["required-quota-ids"], + ) + _element.size = AAZStrArg( + options=["size"], + ) + _element.tier = AAZStrArg( + options=["tier"], + ) + + capabilities = cls._args_schema.sku_settings.Element.capabilities + capabilities.Element = AAZObjectArg() + cls._build_args_sku_capability_create(capabilities.Element) + + capacity = cls._args_schema.sku_settings.Element.capacity + capacity.default = AAZIntArg( + options=["default"], + ) + capacity.maximum = AAZIntArg( + options=["maximum"], + ) + capacity.minimum = AAZIntArg( + options=["minimum"], + required=True, + ) + capacity.scale_type = AAZStrArg( + options=["scale-type"], + enum={"Automatic": "Automatic", "Manual": "Manual", "None": "None"}, + ) + + costs = cls._args_schema.sku_settings.Element.costs + costs.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrArg( + options=["extended-unit"], + ) + _element.meter_id = AAZStrArg( + options=["meter-id"], + required=True, + ) + _element.quantity = AAZIntArg( + options=["quantity"], + ) + + location_info = cls._args_schema.sku_settings.Element.location_info + location_info.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListArg( + options=["extended-locations"], + ) + _element.location = AAZStrArg( + options=["location"], + required=True, + ) + _element.type = AAZStrArg( + options=["type"], + enum={"ArcZone": "ArcZone", "EdgeZone": "EdgeZone", "NotSpecified": "NotSpecified"}, + ) + _element.zone_details = AAZListArg( + options=["zone-details"], + ) + _element.zones = AAZListArg( + options=["zones"], + ) + + extended_locations = cls._args_schema.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrArg() + + zone_details = cls._args_schema.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectArg() + + _element = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + ) + _element.name = AAZListArg( + options=["name"], + ) + + capabilities = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectArg() + cls._build_args_sku_capability_create(capabilities.Element) + + name = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrArg() + + zones = cls._args_schema.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrArg() + + locations = cls._args_schema.sku_settings.Element.locations + locations.Element = AAZStrArg() + + required_features = cls._args_schema.sku_settings.Element.required_features + required_features.Element = AAZStrArg() + + required_quota_ids = cls._args_schema.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrArg() + return cls._args_schema + + _args_sku_capability_create = None + + @classmethod + def _build_args_sku_capability_create(cls, _schema): + if cls._args_sku_capability_create is not None: + _schema.name = cls._args_sku_capability_create.name + _schema.value = cls._args_sku_capability_create.value + return + + cls._args_sku_capability_create = AAZObjectArg() + + sku_capability_create = cls._args_sku_capability_create + sku_capability_create.name = AAZStrArg( + options=["name"], + required=True, + ) + sku_capability_create.value = AAZStrArg( + options=["value"], + required=True, + ) + + _schema.name = cls._args_sku_capability_create.name + _schema.value = cls._args_sku_capability_create.value + + def _execute_operations(self): + self.pre_operations() + self.SkusCreateOrUpdateNestedResourceTypeThird(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SkusCreateOrUpdateNestedResourceTypeThird(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeSecond", self.ctx.args.nested_resource_type_second, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeThird", self.ctx.args.nested_resource_type_third, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("skuSettings", AAZListType, ".sku_settings", typ_kwargs={"flags": {"required": True}}) + + sku_settings = _builder.get(".properties.skuSettings") + if sku_settings is not None: + sku_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("capacity", AAZObjectType, ".capacity") + _elements.set_prop("costs", AAZListType, ".costs") + _elements.set_prop("family", AAZStrType, ".family") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locationInfo", AAZListType, ".location_info") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("requiredQuotaIds", AAZListType, ".required_quota_ids") + _elements.set_prop("size", AAZStrType, ".size") + _elements.set_prop("tier", AAZStrType, ".tier") + + capabilities = _builder.get(".properties.skuSettings[].capabilities") + if capabilities is not None: + _CreateHelper._build_schema_sku_capability_create(capabilities.set_elements(AAZObjectType, ".")) + + capacity = _builder.get(".properties.skuSettings[].capacity") + if capacity is not None: + capacity.set_prop("default", AAZIntType, ".default") + capacity.set_prop("maximum", AAZIntType, ".maximum") + capacity.set_prop("minimum", AAZIntType, ".minimum", typ_kwargs={"flags": {"required": True}}) + capacity.set_prop("scaleType", AAZStrType, ".scale_type") + + costs = _builder.get(".properties.skuSettings[].costs") + if costs is not None: + costs.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].costs[]") + if _elements is not None: + _elements.set_prop("extendedUnit", AAZStrType, ".extended_unit") + _elements.set_prop("meterId", AAZStrType, ".meter_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quantity", AAZIntType, ".quantity") + + location_info = _builder.get(".properties.skuSettings[].locationInfo") + if location_info is not None: + location_info.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[]") + if _elements is not None: + _elements.set_prop("extendedLocations", AAZListType, ".extended_locations") + _elements.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type") + _elements.set_prop("zoneDetails", AAZListType, ".zone_details") + _elements.set_prop("zones", AAZListType, ".zones") + + extended_locations = _builder.get(".properties.skuSettings[].locationInfo[].extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZStrType, ".") + + zone_details = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails") + if zone_details is not None: + zone_details.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("name", AAZListType, ".name") + + capabilities = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].capabilities") + if capabilities is not None: + _CreateHelper._build_schema_sku_capability_create(capabilities.set_elements(AAZObjectType, ".")) + + name = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].name") + if name is not None: + name.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.skuSettings[].locationInfo[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + locations = _builder.get(".properties.skuSettings[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.skuSettings[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + required_quota_ids = _builder.get(".properties.skuSettings[].requiredQuotaIds") + if required_quota_ids is not None: + required_quota_ids.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = cls._schema_on_200.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + _CreateHelper._build_schema_sku_capability_read(capabilities.Element) + + capacity = cls._schema_on_200.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = cls._schema_on_200.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = cls._schema_on_200.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + _CreateHelper._build_schema_sku_capability_read(capabilities.Element) + + name = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = cls._schema_on_200.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = cls._schema_on_200.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _CreateHelper: + """Helper class for Create""" + + @classmethod + def _build_schema_sku_capability_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + +__all__ = ["Create"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_delete.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_delete.py new file mode 100644 index 00000000000..3537e9f5696 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_delete.py @@ -0,0 +1,179 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-third delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a resource type sku. + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-rt-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + id_part="child_name_2", + ) + _args_schema.nested_resource_type_second = AAZStrArg( + options=["--nested-rt-second", "--nested-resource-type-second"], + help="The second child resource type.", + required=True, + id_part="child_name_3", + ) + _args_schema.nested_resource_type_third = AAZStrArg( + options=["--nested-rt-third", "--nested-resource-type-third"], + help="The third child resource type.", + required=True, + id_part="child_name_4", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + id_part="child_name_5", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.SkusDeleteNestedResourceTypeThird(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class SkusDeleteNestedResourceTypeThird(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeSecond", self.ctx.args.nested_resource_type_second, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeThird", self.ctx.args.nested_resource_type_third, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_list.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_list.py new file mode 100644 index 00000000000..4ecd5a83d6d --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_list.py @@ -0,0 +1,363 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-third list", +) +class List(AAZCommand): + """List the list of skus for the given resource type. + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_PAGINATION = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-rt-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + ) + _args_schema.nested_resource_type_second = AAZStrArg( + options=["--nested-rt-second", "--nested-resource-type-second"], + help="The second child resource type.", + required=True, + ) + _args_schema.nested_resource_type_third = AAZStrArg( + options=["--nested-rt-third", "--nested-resource-type-third"], + help="The third child resource type.", + required=True, + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.SkusListByResourceTypeRegistrationsNestedResourceTypeThird(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class SkusListByResourceTypeRegistrationsNestedResourceTypeThird(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeSecond", self.ctx.args.nested_resource_type_second, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeThird", self.ctx.args.nested_resource_type_third, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = cls._schema_on_200.value.Element.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = cls._schema_on_200.value.Element.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + _ListHelper._build_schema_sku_capability_read(capabilities.Element) + + capacity = cls._schema_on_200.value.Element.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = cls._schema_on_200.value.Element.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + _ListHelper._build_schema_sku_capability_read(capabilities.Element) + + name = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = cls._schema_on_200.value.Element.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = cls._schema_on_200.value.Element.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.value.Element.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = cls._schema_on_200.value.Element.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + +__all__ = ["List"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_show.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_show.py new file mode 100644 index 00000000000..47fb8577a50 --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_show.py @@ -0,0 +1,367 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-third show", +) +class Show(AAZCommand): + """Get the sku details for the given resource type and sku name. + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-rt-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + id_part="child_name_2", + ) + _args_schema.nested_resource_type_second = AAZStrArg( + options=["--nested-rt-second", "--nested-resource-type-second"], + help="The second child resource type.", + required=True, + id_part="child_name_3", + ) + _args_schema.nested_resource_type_third = AAZStrArg( + options=["--nested-rt-third", "--nested-resource-type-third"], + help="The third child resource type.", + required=True, + id_part="child_name_4", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + id_part="child_name_5", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.SkusGetNestedResourceTypeThird(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SkusGetNestedResourceTypeThird(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeSecond", self.ctx.args.nested_resource_type_second, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeThird", self.ctx.args.nested_resource_type_third, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = cls._schema_on_200.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + _ShowHelper._build_schema_sku_capability_read(capabilities.Element) + + capacity = cls._schema_on_200.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = cls._schema_on_200.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = cls._schema_on_200.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + _ShowHelper._build_schema_sku_capability_read(capabilities.Element) + + name = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = cls._schema_on_200.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = cls._schema_on_200.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = cls._schema_on_200.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = cls._schema_on_200.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + +__all__ = ["Show"] diff --git a/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_update.py b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_update.py new file mode 100644 index 00000000000..427129e8dbf --- /dev/null +++ b/src/providerhub/azext_providerhub/aaz/latest/providerhub/sku/nested_resource_type_third/_update.py @@ -0,0 +1,843 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "providerhub sku nested-resource-type-third update", +) +class Update(AAZCommand): + """Update the resource type skus in the given resource type. + """ + + _aaz_info = { + "version": "2024-04-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.providerhub/providerregistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/resourcetyperegistrations/{}/skus/{}", "2024-04-01-preview"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.nested_resource_type_first = AAZStrArg( + options=["--nested-rt-first", "--nested-resource-type-first"], + help="The first child resource type.", + required=True, + id_part="child_name_2", + ) + _args_schema.nested_resource_type_second = AAZStrArg( + options=["--nested-rt-second", "--nested-resource-type-second"], + help="The second child resource type.", + required=True, + id_part="child_name_3", + ) + _args_schema.nested_resource_type_third = AAZStrArg( + options=["--nested-rt-third", "--nested-resource-type-third"], + help="The third child resource type.", + required=True, + id_part="child_name_4", + ) + _args_schema.provider_namespace = AAZStrArg( + options=["--provider-namespace"], + help="The name of the resource provider hosted within ProviderHub.", + required=True, + id_part="name", + ) + _args_schema.resource_type = AAZStrArg( + options=["--resource-type"], + help="The resource type.", + required=True, + id_part="child_name_1", + ) + _args_schema.name = AAZStrArg( + options=["-n", "--sku", "--name"], + help="The SKU.", + required=True, + id_part="child_name_5", + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.sku_settings = AAZListArg( + options=["--sku-settings"], + arg_group="Properties", + ) + + sku_settings = cls._args_schema.sku_settings + sku_settings.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + nullable=True, + ) + _element.capacity = AAZObjectArg( + options=["capacity"], + nullable=True, + ) + _element.costs = AAZListArg( + options=["costs"], + nullable=True, + ) + _element.family = AAZStrArg( + options=["family"], + nullable=True, + ) + _element.kind = AAZStrArg( + options=["kind"], + nullable=True, + ) + _element.location_info = AAZListArg( + options=["location-info"], + nullable=True, + ) + _element.locations = AAZListArg( + options=["locations"], + nullable=True, + ) + _element.name = AAZStrArg( + options=["name"], + ) + _element.required_features = AAZListArg( + options=["required-features"], + nullable=True, + ) + _element.required_quota_ids = AAZListArg( + options=["required-quota-ids"], + nullable=True, + ) + _element.size = AAZStrArg( + options=["size"], + nullable=True, + ) + _element.tier = AAZStrArg( + options=["tier"], + nullable=True, + ) + + capabilities = cls._args_schema.sku_settings.Element.capabilities + capabilities.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_sku_capability_update(capabilities.Element) + + capacity = cls._args_schema.sku_settings.Element.capacity + capacity.default = AAZIntArg( + options=["default"], + nullable=True, + ) + capacity.maximum = AAZIntArg( + options=["maximum"], + nullable=True, + ) + capacity.minimum = AAZIntArg( + options=["minimum"], + ) + capacity.scale_type = AAZStrArg( + options=["scale-type"], + nullable=True, + enum={"Automatic": "Automatic", "Manual": "Manual", "None": "None"}, + ) + + costs = cls._args_schema.sku_settings.Element.costs + costs.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrArg( + options=["extended-unit"], + nullable=True, + ) + _element.meter_id = AAZStrArg( + options=["meter-id"], + ) + _element.quantity = AAZIntArg( + options=["quantity"], + nullable=True, + ) + + location_info = cls._args_schema.sku_settings.Element.location_info + location_info.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListArg( + options=["extended-locations"], + nullable=True, + ) + _element.location = AAZStrArg( + options=["location"], + ) + _element.type = AAZStrArg( + options=["type"], + nullable=True, + enum={"ArcZone": "ArcZone", "EdgeZone": "EdgeZone", "NotSpecified": "NotSpecified"}, + ) + _element.zone_details = AAZListArg( + options=["zone-details"], + nullable=True, + ) + _element.zones = AAZListArg( + options=["zones"], + nullable=True, + ) + + extended_locations = cls._args_schema.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrArg( + nullable=True, + ) + + zone_details = cls._args_schema.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListArg( + options=["capabilities"], + nullable=True, + ) + _element.name = AAZListArg( + options=["name"], + nullable=True, + ) + + capabilities = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectArg( + nullable=True, + ) + cls._build_args_sku_capability_update(capabilities.Element) + + name = cls._args_schema.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrArg( + nullable=True, + ) + + zones = cls._args_schema.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrArg( + nullable=True, + ) + + locations = cls._args_schema.sku_settings.Element.locations + locations.Element = AAZStrArg( + nullable=True, + ) + + required_features = cls._args_schema.sku_settings.Element.required_features + required_features.Element = AAZStrArg( + nullable=True, + ) + + required_quota_ids = cls._args_schema.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrArg( + nullable=True, + ) + return cls._args_schema + + _args_sku_capability_update = None + + @classmethod + def _build_args_sku_capability_update(cls, _schema): + if cls._args_sku_capability_update is not None: + _schema.name = cls._args_sku_capability_update.name + _schema.value = cls._args_sku_capability_update.value + return + + cls._args_sku_capability_update = AAZObjectArg( + nullable=True, + ) + + sku_capability_update = cls._args_sku_capability_update + sku_capability_update.name = AAZStrArg( + options=["name"], + ) + sku_capability_update.value = AAZStrArg( + options=["value"], + ) + + _schema.name = cls._args_sku_capability_update.name + _schema.value = cls._args_sku_capability_update.value + + def _execute_operations(self): + self.pre_operations() + self.SkusGetNestedResourceTypeThird(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.SkusCreateOrUpdateNestedResourceTypeThird(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SkusGetNestedResourceTypeThird(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeSecond", self.ctx.args.nested_resource_type_second, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeThird", self.ctx.args.nested_resource_type_third, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_sku_resource_read(cls._schema_on_200) + + return cls._schema_on_200 + + class SkusCreateOrUpdateNestedResourceTypeThird(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus/{sku}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "nestedResourceTypeFirst", self.ctx.args.nested_resource_type_first, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeSecond", self.ctx.args.nested_resource_type_second, + required=True, + ), + **self.serialize_url_param( + "nestedResourceTypeThird", self.ctx.args.nested_resource_type_third, + required=True, + ), + **self.serialize_url_param( + "providerNamespace", self.ctx.args.provider_namespace, + required=True, + ), + **self.serialize_url_param( + "resourceType", self.ctx.args.resource_type, + required=True, + ), + **self.serialize_url_param( + "sku", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2024-04-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_sku_resource_read(cls._schema_on_200) + + return cls._schema_on_200 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("skuSettings", AAZListType, ".sku_settings", typ_kwargs={"flags": {"required": True}}) + + sku_settings = _builder.get(".properties.skuSettings") + if sku_settings is not None: + sku_settings.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("capacity", AAZObjectType, ".capacity") + _elements.set_prop("costs", AAZListType, ".costs") + _elements.set_prop("family", AAZStrType, ".family") + _elements.set_prop("kind", AAZStrType, ".kind") + _elements.set_prop("locationInfo", AAZListType, ".location_info") + _elements.set_prop("locations", AAZListType, ".locations") + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("requiredFeatures", AAZListType, ".required_features") + _elements.set_prop("requiredQuotaIds", AAZListType, ".required_quota_ids") + _elements.set_prop("size", AAZStrType, ".size") + _elements.set_prop("tier", AAZStrType, ".tier") + + capabilities = _builder.get(".properties.skuSettings[].capabilities") + if capabilities is not None: + _UpdateHelper._build_schema_sku_capability_update(capabilities.set_elements(AAZObjectType, ".")) + + capacity = _builder.get(".properties.skuSettings[].capacity") + if capacity is not None: + capacity.set_prop("default", AAZIntType, ".default") + capacity.set_prop("maximum", AAZIntType, ".maximum") + capacity.set_prop("minimum", AAZIntType, ".minimum", typ_kwargs={"flags": {"required": True}}) + capacity.set_prop("scaleType", AAZStrType, ".scale_type") + + costs = _builder.get(".properties.skuSettings[].costs") + if costs is not None: + costs.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].costs[]") + if _elements is not None: + _elements.set_prop("extendedUnit", AAZStrType, ".extended_unit") + _elements.set_prop("meterId", AAZStrType, ".meter_id", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("quantity", AAZIntType, ".quantity") + + location_info = _builder.get(".properties.skuSettings[].locationInfo") + if location_info is not None: + location_info.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[]") + if _elements is not None: + _elements.set_prop("extendedLocations", AAZListType, ".extended_locations") + _elements.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("type", AAZStrType, ".type") + _elements.set_prop("zoneDetails", AAZListType, ".zone_details") + _elements.set_prop("zones", AAZListType, ".zones") + + extended_locations = _builder.get(".properties.skuSettings[].locationInfo[].extendedLocations") + if extended_locations is not None: + extended_locations.set_elements(AAZStrType, ".") + + zone_details = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails") + if zone_details is not None: + zone_details.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[]") + if _elements is not None: + _elements.set_prop("capabilities", AAZListType, ".capabilities") + _elements.set_prop("name", AAZListType, ".name") + + capabilities = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].capabilities") + if capabilities is not None: + _UpdateHelper._build_schema_sku_capability_update(capabilities.set_elements(AAZObjectType, ".")) + + name = _builder.get(".properties.skuSettings[].locationInfo[].zoneDetails[].name") + if name is not None: + name.set_elements(AAZStrType, ".") + + zones = _builder.get(".properties.skuSettings[].locationInfo[].zones") + if zones is not None: + zones.set_elements(AAZStrType, ".") + + locations = _builder.get(".properties.skuSettings[].locations") + if locations is not None: + locations.set_elements(AAZStrType, ".") + + required_features = _builder.get(".properties.skuSettings[].requiredFeatures") + if required_features is not None: + required_features.set_elements(AAZStrType, ".") + + required_quota_ids = _builder.get(".properties.skuSettings[].requiredQuotaIds") + if required_quota_ids is not None: + required_quota_ids.set_elements(AAZStrType, ".") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + @classmethod + def _build_schema_sku_capability_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("value", AAZStrType, ".value", typ_kwargs={"flags": {"required": True}}) + + _schema_sku_capability_read = None + + @classmethod + def _build_schema_sku_capability_read(cls, _schema): + if cls._schema_sku_capability_read is not None: + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + return + + cls._schema_sku_capability_read = _schema_sku_capability_read = AAZObjectType() + + sku_capability_read = _schema_sku_capability_read + sku_capability_read.name = AAZStrType( + flags={"required": True}, + ) + sku_capability_read.value = AAZStrType( + flags={"required": True}, + ) + + _schema.name = cls._schema_sku_capability_read.name + _schema.value = cls._schema_sku_capability_read.value + + _schema_sku_resource_read = None + + @classmethod + def _build_schema_sku_resource_read(cls, _schema): + if cls._schema_sku_resource_read is not None: + _schema.id = cls._schema_sku_resource_read.id + _schema.name = cls._schema_sku_resource_read.name + _schema.properties = cls._schema_sku_resource_read.properties + _schema.system_data = cls._schema_sku_resource_read.system_data + _schema.type = cls._schema_sku_resource_read.type + return + + cls._schema_sku_resource_read = _schema_sku_resource_read = AAZObjectType() + + sku_resource_read = _schema_sku_resource_read + sku_resource_read.id = AAZStrType( + flags={"read_only": True}, + ) + sku_resource_read.name = AAZStrType( + flags={"read_only": True}, + ) + sku_resource_read.properties = AAZObjectType() + sku_resource_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + sku_resource_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_sku_resource_read.properties + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku_settings = AAZListType( + serialized_name="skuSettings", + flags={"required": True}, + ) + + sku_settings = _schema_sku_resource_read.properties.sku_settings + sku_settings.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element + _element.capabilities = AAZListType() + _element.capacity = AAZObjectType() + _element.costs = AAZListType() + _element.family = AAZStrType() + _element.kind = AAZStrType() + _element.location_info = AAZListType( + serialized_name="locationInfo", + ) + _element.locations = AAZListType() + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.required_features = AAZListType( + serialized_name="requiredFeatures", + ) + _element.required_quota_ids = AAZListType( + serialized_name="requiredQuotaIds", + ) + _element.size = AAZStrType() + _element.tier = AAZStrType() + + capabilities = _schema_sku_resource_read.properties.sku_settings.Element.capabilities + capabilities.Element = AAZObjectType() + cls._build_schema_sku_capability_read(capabilities.Element) + + capacity = _schema_sku_resource_read.properties.sku_settings.Element.capacity + capacity.default = AAZIntType() + capacity.maximum = AAZIntType() + capacity.minimum = AAZIntType( + flags={"required": True}, + ) + capacity.scale_type = AAZStrType( + serialized_name="scaleType", + ) + + costs = _schema_sku_resource_read.properties.sku_settings.Element.costs + costs.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element.costs.Element + _element.extended_unit = AAZStrType( + serialized_name="extendedUnit", + ) + _element.meter_id = AAZStrType( + serialized_name="meterId", + flags={"required": True}, + ) + _element.quantity = AAZIntType() + + location_info = _schema_sku_resource_read.properties.sku_settings.Element.location_info + location_info.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element + _element.extended_locations = AAZListType( + serialized_name="extendedLocations", + ) + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.type = AAZStrType() + _element.zone_details = AAZListType( + serialized_name="zoneDetails", + ) + _element.zones = AAZListType() + + extended_locations = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.extended_locations + extended_locations.Element = AAZStrType() + + zone_details = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details + zone_details.Element = AAZObjectType() + + _element = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details.Element + _element.capabilities = AAZListType() + _element.name = AAZListType() + + capabilities = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details.Element.capabilities + capabilities.Element = AAZObjectType() + cls._build_schema_sku_capability_read(capabilities.Element) + + name = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zone_details.Element.name + name.Element = AAZStrType() + + zones = _schema_sku_resource_read.properties.sku_settings.Element.location_info.Element.zones + zones.Element = AAZStrType() + + locations = _schema_sku_resource_read.properties.sku_settings.Element.locations + locations.Element = AAZStrType() + + required_features = _schema_sku_resource_read.properties.sku_settings.Element.required_features + required_features.Element = AAZStrType() + + required_quota_ids = _schema_sku_resource_read.properties.sku_settings.Element.required_quota_ids + required_quota_ids.Element = AAZStrType() + + system_data = _schema_sku_resource_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.id = cls._schema_sku_resource_read.id + _schema.name = cls._schema_sku_resource_read.name + _schema.properties = cls._schema_sku_resource_read.properties + _schema.system_data = cls._schema_sku_resource_read.system_data + _schema.type = cls._schema_sku_resource_read.type + + +__all__ = ["Update"] diff --git a/src/providerhub/azext_providerhub/action.py b/src/providerhub/azext_providerhub/action.py deleted file mode 100644 index d95d53bf711..00000000000 --- a/src/providerhub/azext_providerhub/action.py +++ /dev/null @@ -1,17 +0,0 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# pylint: disable=wildcard-import -# pylint: disable=unused-wildcard-import - -from .generated.action import * # noqa: F403 -try: - from .manual.action import * # noqa: F403 -except ImportError: - pass diff --git a/src/providerhub/azext_providerhub/azext_metadata.json b/src/providerhub/azext_providerhub/azext_metadata.json index cfc30c747c7..916deb3b5c2 100644 --- a/src/providerhub/azext_providerhub/azext_metadata.json +++ b/src/providerhub/azext_providerhub/azext_metadata.json @@ -1,4 +1,4 @@ { - "azext.isExperimental": true, - "azext.minCliCoreVersion": "2.15.0" + "azext.isPreview": true, + "azext.minCliCoreVersion": "2.57.0" } \ No newline at end of file diff --git a/src/providerhub/azext_providerhub/vendored_sdks/__init__.py b/src/providerhub/azext_providerhub/commands.py similarity index 80% rename from src/providerhub/azext_providerhub/vendored_sdks/__init__.py rename to src/providerhub/azext_providerhub/commands.py index c9cfdc73e77..bd80efa5c3a 100644 --- a/src/providerhub/azext_providerhub/vendored_sdks/__init__.py +++ b/src/providerhub/azext_providerhub/commands.py @@ -1,4 +1,3 @@ -# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for @@ -8,5 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- - -__path__ = __import__('pkgutil').extend_path(__path__, __name__) +# pylint: disable=too-many-statements +# pylint: disable=too-many-locals +def load_command_table(_): + pass diff --git a/src/providerhub/azext_providerhub/custom.py b/src/providerhub/azext_providerhub/custom.py index dbe9d5f9742..7ba1a351931 100644 --- a/src/providerhub/azext_providerhub/custom.py +++ b/src/providerhub/azext_providerhub/custom.py @@ -9,9 +9,3 @@ # -------------------------------------------------------------------------- # pylint: disable=wildcard-import # pylint: disable=unused-wildcard-import - -from .generated.custom import * # noqa: F403 -try: - from .manual.custom import * # noqa: F403 -except ImportError: - pass diff --git a/src/providerhub/azext_providerhub/generated/__init__.py b/src/providerhub/azext_providerhub/generated/__init__.py deleted file mode 100644 index c9cfdc73e77..00000000000 --- a/src/providerhub/azext_providerhub/generated/__init__.py +++ /dev/null @@ -1,12 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/src/providerhub/azext_providerhub/generated/_client_factory.py b/src/providerhub/azext_providerhub/generated/_client_factory.py deleted file mode 100644 index cc95c4ce375..00000000000 --- a/src/providerhub/azext_providerhub/generated/_client_factory.py +++ /dev/null @@ -1,49 +0,0 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- - -from azure.cli.core.commands.client_factory import get_mgmt_service_client -from azext_providerhub.vendored_sdks.providerhub import ProviderHub - - -def cf_providerhub_cl(cli_ctx, *_): - return get_mgmt_service_client(cli_ctx, - ProviderHub) - - -def cf_providerhub(cli_ctx, *_): - return cf_providerhub_cl(cli_ctx).providerhub_operations - - -def cf_custom_rollout(cli_ctx, *_): - return cf_providerhub_cl(cli_ctx).custom_rollouts - - -def cf_default_rollout(cli_ctx, *_): - return cf_providerhub_cl(cli_ctx).default_rollouts - - -def cf_notification_registration(cli_ctx, *_): - return cf_providerhub_cl(cli_ctx).notification_registrations - - -def cf_operation(cli_ctx, *_): - return cf_providerhub_cl(cli_ctx).operations - - -def cf_provider_registration(cli_ctx, *_): - return cf_providerhub_cl(cli_ctx).provider_registrations - - -def cf_resource_type_registration(cli_ctx, *_): - return cf_providerhub_cl(cli_ctx).resource_type_registrations - - -def cf_sku(cli_ctx, *_): - return cf_providerhub_cl(cli_ctx).skus diff --git a/src/providerhub/azext_providerhub/generated/_help.py b/src/providerhub/azext_providerhub/generated/_help.py deleted file mode 100644 index 672d947a587..00000000000 --- a/src/providerhub/azext_providerhub/generated/_help.py +++ /dev/null @@ -1,858 +0,0 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# pylint: disable=too-many-lines - -from knack.help_files import helps - -helps['providerhub'] = """ - type: group - short-summary: Manage resources with ProviderHub -""" - -helps['providerhub custom-rollout'] = """ - type: group - short-summary: Manage custom rollout with providerhub -""" - -helps['providerhub custom-rollout list'] = """ - type: command - short-summary: "Gets the list of the custom rollouts for the given provider." - examples: - - name: CustomRollouts_ListByProviderRegistration - text: |- - az providerhub custom-rollout list --provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub custom-rollout show'] = """ - type: command - short-summary: "Gets the custom rollout details." - examples: - - name: CustomRollouts_Get - text: |- - az providerhub custom-rollout show --provider-namespace "Microsoft.Contoso" --rollout-name \ -"canaryTesting99" -""" - -helps['providerhub custom-rollout create'] = """ - type: command - short-summary: "Create the rollout details." - parameters: - - name: --canary - long-summary: | - Usage: --canary regions=XX - - Multiple actions can be specified by using more than one regions=XX argument. - examples: - - name: CustomRollouts_CreateOrUpdate - text: |- - az providerhub custom-rollout create --canary regions="eastus2euap" regions="centraluseuap" --provider-namespace \ -"Microsoft.Contoso" --rollout-name "eastus2euapShoeBoxTesting" -""" - -helps['providerhub default-rollout'] = """ - type: group - short-summary: Manage default rollout with providerhub -""" - -helps['providerhub default-rollout list'] = """ - type: command - short-summary: "Gets the list of the rollouts for the given provider." - examples: - - name: DefaultRollouts_ListByProviderRegistration - text: |- - az providerhub default-rollout list --provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub default-rollout show'] = """ - type: command - short-summary: "Gets the default rollout details." - examples: - - name: DefaultRollouts_Get - text: |- - az providerhub default-rollout show --provider-namespace "Microsoft.Contoso" --rollout-name \ -"2021week20" -""" - -helps['providerhub default-rollout create'] = """ - type: command - short-summary: "Create the rollout details." - parameters: - - name: --canary - long-summary: | - Usage: --canary skip-regions=XX - - skip-regions: Required. The canary skip regions. - - - name: --rest-of-the-world-group-two --row2 - long-summary: | - Usage: --rest-of-the-world-group-two wait-duration=XX - - wait-duration: Required. The rest of the world group two wait duration. - - examples: - - name: DefaultRollouts_CreateOrUpdate - text: |- - az providerhub default-rollout create \ - --provider-namespace "Microsoft.Contoso" --rollout-name "2021week20" \ - --canary skip-regions="eastus2euap" \ - --rest-of-the-world-group-two wait-duration="PT2H" -""" - -helps['providerhub default-rollout delete'] = """ - type: command - short-summary: "Deletes the rollout resource. Rollout must be in terminal state." - examples: - - name: DefaultRollouts_Delete - text: |- - az providerhub default-rollout delete --provider-namespace "Microsoft.Contoso" --rollout-name \ -"2021week20" -""" - -helps['providerhub default-rollout stop'] = """ - type: command - short-summary: "Stops or cancels the rollout, if in progress." - examples: - - name: DefaultRollouts_Stop - text: |- - az providerhub default-rollout stop --provider-namespace "Microsoft.Contoso" --rollout-name \ -"2021week20" -""" - -helps['providerhub manifest'] = """ - type: group - short-summary: Manage with providerhub manifest operations -""" - -helps['providerhub manifest checkin'] = """ - type: command - short-summary: "Checkin the manifest." - parameters: - - name: --arm-manifest-location --baseline-arm-manifest-location --location - long-summary: | - Usage: --location "EastUS2EUAP" - - examples: - - name: CheckinManifest - text: |- - az providerhub manifest checkin --location "EastUS2EUAP" --environment "Prod" \ ---provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub manifest generate'] = """ - type: command - short-summary: "Generates the manifest for the given provider." - examples: - - name: GenerateManifest - text: |- - az providerhub manifest generate --provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub notification-registration'] = """ - type: group - short-summary: Manage notification registration with providerhub -""" - -helps['providerhub notification-registration list'] = """ - type: command - short-summary: "Gets the list of the notification registrations for the given provider." - examples: - - name: NotificationRegistrations_ListByProviderRegistration - text: |- - az providerhub notification-registration list --provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub notification-registration show'] = """ - type: command - short-summary: "Gets the notification registration details." - examples: - - name: NotificationRegistrations_Get - text: |- - az providerhub notification-registration show --name "testNotificationRegistration" --provider-namespace \ -"Microsoft.Contoso" -""" - -helps['providerhub notification-registration create'] = """ - type: command - short-summary: "Create a notification registration." - parameters: - - name: --notification-endpoints - long-summary: | - Usage: --notification-endpoints notification-destination=XX locations=XX - - - Multiple actions can be specified by using more than one --notification-endpoints argument. - examples: - - name: NotificationRegistrations_CreateOrUpdate - text: |- - az providerhub notification-registration create --name "testNotificationRegistration" --included-events \ -"*/write" "Microsoft.Contoso/employees/delete" --message-scope "RegisteredSubscriptions" --notification-endpoints \ -locations="" locations="East US" notification-destination="/subscriptions/00000000-0000-0000-0000-000000000000/resource\ -Groups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications"\ - --notification-endpoints locations="North Europe" notification-destination="/subscriptions/00000000-0000-0000-0000-000000000000\ - /resourceGroups/mgmtexp-northeurope/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlin\ -kednotifications" --notification-mode "EventHub" --provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub notification-registration delete'] = """ - type: command - short-summary: "Deletes a notification registration." - examples: - - name: NotificationRegistrations_Delete - text: |- - az providerhub notification-registration delete --name "testNotificationRegistration" \ ---provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub operation'] = """ - type: group - short-summary: Manage operation with providerhub -""" - -helps['providerhub operation list'] = """ - type: command - short-summary: "Gets the operations supported by the given provider." - examples: - - name: Operations_ListByProviderRegistration - text: |- - az providerhub operation list --provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub operation create'] = """ - type: command - short-summary: "Create the operation supported by the given provider." - examples: - - name: Operations_CreateOrUpdate - text: |- - az providerhub operation create --contents "[{\\"name\\":\\"Microsoft.Contoso/Employees/Read\\",\\"displ\ -ay\\":{\\"description\\":\\"Read employees\\",\\"operation\\":\\"Gets/List employee resources\\",\\"provider\\":\\"Micr\ -osoft.Contoso\\",\\"resource\\":\\"Employees\\"}}]" --provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub operation delete'] = """ - type: command - short-summary: "Deletes an operation." - examples: - - name: Operations_Delete - text: |- - az providerhub operation delete --provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub provider-registration'] = """ - type: group - short-summary: Manage provider registration with providerhub -""" - -helps['providerhub provider-registration list'] = """ - type: command - short-summary: "Gets the list of the provider registrations in the subscription." - examples: - - name: ProviderRegistrations_List - text: |- - az providerhub provider-registration list -""" - -helps['providerhub provider-registration show'] = """ - type: command - short-summary: "Gets the provider registration details." - examples: - - name: ProviderRegistrations_Get - text: |- - az providerhub provider-registration show --provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub provider-registration create'] = """ - type: command - short-summary: "Create the provider registration." - parameters: - - name: --provider-authentication --provider-authn - short-summary: 'Used to set alternative audiences or resources that ARM should accept from the token while authenticating requests for the provider.' - long-summary: | - Usage: --provider-authentication allowed-audiences=XX - - allowed-audiences: Required. The allowed audiences. - - - name: --provider-authorizations --provider-authz - short-summary: 'The resource provider authorizations.' - long-summary: | - Usage: --provider-authorizations application-id=XX role-definition-id=XX managed-by-role-definition-id=XX - - application-id: Required. The application ID. - role-definition-id: Required. The role definition ID. - managed-by-role-definition-id: Required. The managed by role definition ID. - - Multiple actions can be specified by using more than one --provider-authorizations argument. - - name: --provider-version - type: string - short-summary: 'The provider version.' - long-summary: | - Usage: --provider-version "2.0" - - - name: --provider-type - type: string - short-summary: 'The provider type.' - long-summary: | - Usage: --provider-type "Internal" - - Available provider types include: Internal, External, Hidden, RegistrationFree, LegacyRegistrationRequired, TenantOnly, AuthorizationFree - - - name: --namespace - type: string - short-summary: 'The name of the resource provider hosted within ProviderHub.' - long-summary: | - Usage: --namespace "Microsoft.Contoso" - - - name: --capabilities - short-summary: 'The resource provider capabilities.' - long-summary: | - Usage: --capabilities quota-id=XX effect=XX required-features=XX - - - Multiple actions can be specified by using more than one --capabilities argument. - - name: --template-deployment-options --tmplt-deploy-opt - short-summary: 'The template deployment options.' - long-summary: | - Usage: --template-deployment-options preflight-supported=XX preflight-options=XX - - - name: --schema-owners - short-summary: 'Specifies an array of needed ACIS claims to modify the resource provider schema via ACIS.' - long-summary: | - Usage: --schema-owners "Contoso schema owners" - - Multiple actions can be specified by using more than one --schema-owners argument. - - name: --manifest-owners - short-summary: "Specifies an array of required ACIS claims to modify the resource provider's manifest content via ACIS." - long-summary: | - Usage: --manifest-owners "SPARTA-PlatformServiceAdministrator" - - Multiple actions can be specified by using more than one --manifest-owners argument. - - name: --incident-routing-service --incident-service - type: string - short-summary: 'The service in IcM when creating or transferring incidents to the RP.' - long-summary: | - Usage: --incident-routing-service "Contoso Resource Provider" - - - name: --incident-routing-team --incident-team - type: string - short-summary: 'The team in IcM when creating or transferring incidents to the RP.' - long-summary: | - Usage: --incident-routing-team "Contoso Triage" - - - name: --incident-contact-email - type: string - short-summary: 'The email address of contacts for incidents related to the RP.' - long-summary: | - Usage: --incident-contact-email "helpme@contoso.com" - - - name: --service-tree-infos - short-summary: 'The ServiceTree information for the resource provider.' - long-summary: | - Usage: --service-tree-infos service-id=XX component-id=XX - - service-id: Required. The service ID. - component-id: Required. The component ID. - - - Multiple actions can be specified by using more than one --service-tree-infos argument. - - name: --override-actions --subscription-state-override-actions - short-summary: 'The subscription state override actions.' - long-summary: | - Usage: --subscription-state-override-actions state=XX action=XX - - - Multiple actions can be specified by using more than one --subscription-state-override-actions argument. - - name: --metadata-authz --providerhub-metadata-authorizations - short-summary: 'The ProviderHub metadata authorizations.' - long-summary: | - Usage: --providerhub-metadata-authorizations application-id=XX role-definition-id=XX \ -managed-by-role-definition-id=XX - - application-id: Required. The application ID. - role-definition-id: Required. The role definition ID. - managed-by-role-definition-id: Required. The managed by role definition ID. - - Multiple actions can be specified by using more than one --providerhub-metadata-authorizations \ -argument. - - name: --metadata-authn --providerhub-metadata-authentication - short-summary: 'The ProviderHub metadata authentication.' - long-summary: | - Usage: --providerhub-metadata-authentication allowed-audiences=XX - - allowed-audiences: Required. The allowed audiences. - - - name: --resource-access-policy - type: string - short-summary: 'The resource access policy.' - long-summary: | - Usage: --resource-access-policy "AcisReadAllowed, AcisActionAllowed" - - - name: --opt-in-headers - type: string - short-summary: 'The opt-in headers.' - long-summary: | - Usage: --opt-in-headers "SignedUserToken" - - - name: --lighthouse-auth --lighthouse-authorizations - short-summary: 'The lighthouse authorizations.' - long-summary: | - Usage: --lighthouse-authorizations principal-id=XX role-definition-id=XX - - principal-id: Required. The principal ID. - role-definition-id: Required. The role definition ID. - - - name: --managed-by-tenant-id - type: string - short-summary: 'The managed by tenant ID.' - long-summary: | - Usage: --managed-by-tenant-id "00000000-0000-0000-0000-000000000000" - examples: - - name: ProviderRegistrations_CreateOrUpdate - text: |- - az providerhub provider-registration create \ - --providerhub-metadata-authorizations application-id="00000000-0000-0000-0000-000000000000" \ - role-definition-id="00000000-0000-0000-0000-000000000000" \ - --providerhub-metadata-authentication allowed-audiences="https://management.core.windows.net/" \ - --service-tree-infos service-id="00000000-0000-0000-0000-000000000000" \ - component-id="00000000-0000-0000-0000-000000000000" \ - --capabilities effect="Allow" quota-id="CSP_2015-05-01" \ - --capabilities effect="Allow" quota-id="CSP_MG_2017-12-01" \ - --manifest-owners "SPARTA-PlatformServiceAdministrator" \ - --incident-contact-email "helpme@contoso.com" \ - --incident-routing-service "Contoso Resource Provider" \ - --incident-routing-team "Contoso Triage" \ - --provider-type "Internal" \ - --provider-version "2.0" \ - --provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub provider-registration delete'] = """ - type: command - short-summary: "Deletes a provider registration." - examples: - - name: ProviderRegistrations_Delete - text: |- - az providerhub provider-registration delete --provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub provider-registration generate-operation'] = """ - type: command - short-summary: "Generates the operations api for the given provider." - examples: - - name: ProviderRegistrations_GenerateOperations - text: |- - az providerhub provider-registration generate-operation --provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub resource-type-registration'] = """ - type: group - short-summary: Manage resource type registration with providerhub -""" - -helps['providerhub resource-type-registration list'] = """ - type: command - short-summary: "Gets the list of the resource types for the given provider." - examples: - - name: ResourceTypeRegistrations_ListByProviderRegistration - text: |- - az providerhub resource-type-registration list --provider-namespace "Microsoft.Contoso" -""" - -helps['providerhub resource-type-registration show'] = """ - type: command - short-summary: "Gets a resource type details in the given subscription and provider." - examples: - - name: ResourceTypeRegistrations_Get - text: |- - az providerhub resource-type-registration show --provider-namespace "Microsoft.Contoso" --resource-type \ -"employees" -""" - -helps['providerhub resource-type-registration create'] = """ - type: command - short-summary: "Create a resource type." - parameters: - - name: --swagger-specifications - short-summary: 'The Swagger spec of the resource type.' - long-summary: | - Usage: --swagger-specifications api-versions=XX swagger-spec-folder-uri=XX - - api-versions: Required. The resource type API versions, separated by commas. - swagger-spec-folder-uri: Required. The Swagger spec URI. - - Multiple actions can be specified by using more than one --swagger-specifications argument. - - name: --routing-type - type: string - short-summary: 'The resource routing type.​' - long-summary: | - Usage: --routing-type "Default" - - Available routing types include: Default, ProxyOnly, HostBased, Extension, Tenant, Fanout, LocationBased, Failover, CascadeExtension, ChildFanout, CascadeAuthorizedExtension, BypassEndpointSelectionOptimization - - - name: --regionality - type: string - short-summary: 'The regionality of the resource type.' - long-summary: | - Usage: --regionality "Regional" - - name: --endpoints - type: string - short-summary: 'The resource type endpoints.' - long-summary: | - Usage: --endpoints api-versions=XX locations=XX required-features=XX - api-versions: Required. Comma separated list of API versions. - locations: Required. Comma separated list of locations. - required-features: Required. List of required features. Multiple required-features can be specified. - Multiple actions can be specified by using more than one --endpoints argument. - - name: --creation-begin --resource-creation-begin - short-summary: 'Extension options for handling the resource creation begin extension request.' - long-summary: | - Usage: --creation-begin request=XX response=XX - request: The list of extension option types. - response: The list of extension option types. - - name: --patch-begin --resource-patch-begin - short-summary: 'Extension options for handling the resource patch begin extension request.' - long-summary: | - Usage: --patch-begin request=XX response=XX - request: The list of extension option types. - response: The list of extension option types. - - name: --marketplace-type - type: string - short-summary: 'The type of marketplace behavior for the resource type.' - long-summary: | - Usage: --marketplace-type "AddOn" - - name: --allowed-unauthorized-actions --aua - type: string - short-summary: 'The allowed unauthorized actions' - long-summary: | - Usage: --allowed-unauthorized-actions "Microsoft.Contoso/rpResourceType/read, Microsoft.Contoso/rpResourceType/delete" - - name: --auth-mappings --authorization-action-mappings - short-summary: 'Allows RP to override action verb for RBAC purposes at ARM.' - long-summary: | - Usage: --auth-mappings original=XX desired=XX - - original: Required. The original action name. - desired: Required. The desired action name. - - Multiple actions can be specified by using more than one --auth-mappings argument. - - name: --linked-access-checks - short-summary: 'Enables additional Role Based Access Control (RBAC) checks on related resources.' - long-summary: | - Usage: --linked-access-checks action-name=XX linked-property=XX linked-action=XX linked-action-verb=XX \ -linked-type=XX - - action-name: The action name. - linked-property: The linked property. - linked-action: The linked action. - linked-action-verb: The linked action verb. - linked-type: The linked type. - - Multiple actions can be specified by using more than one --linked-access-checks argument. - - name: --default-api-version - type: string - short-summary: 'The default API version for the endpoint.' - long-summary: | - Usage: --default-api-version "2021-01-01" - - - name: --logging-rules - type: string - short-summary: 'The logging rules' - long-summary: | - Usage: --logging-rules action=XX direction=XX detail-level=XX - - action: Required. The action name. - direction: Required. The direction. - detail-level: Required. The detail level. - - Multiple actions can be specified by using more than one --logging-rules argument. - - name: --throttling-rules - type: string - short-summary: 'Enables setting individual limits for different actions in terms of number of requests or number of resources (for collection read requests only).' - long-summary: | - Usage: --throttling-rules action=XX metrics=XX required-features=XX - - action: Required. The action name. - metrics: Required. The throttling metrics. - required-features: The throttling rule required features. - - Multiple actions can be specified by using more than one --throttling-rules argument. - - name: --required-features - type: string - short-summary: 'The required features.' - long-summary: | - Usage: --required-features "Microsoft.Contoso/feature1, Microsoft.Contoso/feature2" - - - name: --req-features-policy --required-features-policy - short-summary: 'The accepted values are "Any" or "All". If the value is "All", then only the subscriptions registered to all the corresponding feature flag will be allowed.​' - long-summary: | - Usage: --req-features-policy "All" - - - name: --enable-async-operation - type: string - short-summary: 'Indicates whether the async operation is enabled for this resource type.' - long-summary: | - Usage: --enable-async-operation "false" - - - name: --enable-third-party-s2s - type: string - short-summary: 'Indicates whether third party s2s is enabled for this resource type.' - long-summary: | - Usage: --enable-third-party-s2s "false" - - - name: --is-pure-proxy - type: string - short-summary: 'Indicates whether this is a PureProxy resource type.' - long-summary: | - Usage: --is-pure-proxy "false" - - - name: --identity-management - type: string - short-summary: 'MSI related settings.' - long-summary: | - Usage: --identity-management type=XX application-id=XX - - type: The type of the identity management. - application-id: The application ID that handles the identity. - - - name: --check-name-availability-specifications --checkname-specs - short-summary: 'Name availability checks feature at the platform level.' - long-summary: | - Usage: --check-name-availability-specifications enable-default-validation=XX \ -resource-types-with-custom-validation=XX - - enable-default-validation: Boolean indicating whether RP has chosen to opt-out of RPaaS to perform check name. - resource-types-with-custom-validation: The types which needs additional validation from the RP. - - - name: --dav --disallowed-action-verbs - type: string - short-summary: 'The disallowed action verbs.' - long-summary: | - Usage: --dav "read" - - - name: --service-tree-infos - short-summary: 'The ServiceTree information for the resource provider.' - long-summary: | - Usage: --service-tree-infos service-id=XX component-id=XX - - service-id: Required. The service ID. - component-id: Required. The component ID. - - Multiple actions can be specified by using more than one --service-tree-infos argument. - - name: --opt-in-headers - type: string - short-summary: 'The opt-in headers.' - long-summary: | - Usage: --opt-in-headers "SignedUserToken" - - - name: --sub-state-rules --subscription-state-rules - short-summary: 'The subscription state rules.' - long-summary: | - Usage: --sub-state-rules state=XX allowed-actions=XX - - state: The subscription state. - allowed-actions: The allowed actions. - - Multiple actions can be specified by using more than one --sub-state-rules argument. - - name: --template-deployment-options --tmplt-deploy-opt - short-summary: 'The template deployment options.' - long-summary: | - Usage: --template-deployment-options preflight-supported=XX preflight-options=XX - - preflight-supported: Boolean indicating whether preflight validation is supported. - preflight-options: The preflight options. - - - name: --extended-locations - short-summary: 'The extended location options' - long-summary: | - Usage: --extended-locations type=XX supported-policy=XX - - type: The extended location type. - supported-policy: The supported policy. - - Multiple actions can be specified by using more than one --extended-locations argument. - - name: --resource-move-policy - short-summary: 'The resource move policy.' - long-summary: | - Usage: --resource-move-policy validation-required=XX cross-resource-group-move-enabled=XX \ -cross-subscription-move-enabled=XX - - validation-required: Boolean indicating whether validation is required for moving the resource. - cross-resource-group-move-enabled: Boolean indicating whether moving resources across resource groups is allowed. - cross-subscription-move-enabled: Boolean indicating whether moving resources across subscriptions is allowed. - - - name: --deletion-policy --resource-deletion-policy - type: string - short-summary: 'The resource deletion policy.' - long-summary: | - Usage: --deletion-policy "CascadeDeleteAll" - - - name: --override-actions --subscription-state-override-actions - short-summary: 'The subscription state override actions.' - long-summary: | - Usage: --subscription-state-override-actions state=XX action=XX - - - Multiple actions can be specified by using more than one --subscription-state-override-actions argument. - - examples: - - name: ResourceTypeRegistrations_CreateOrUpdate - text: |- - az providerhub resource-type-registration create \ - --endpoints api-versions="2019-01-01" locations="Global" \ - required-features="Microsoft.Contoso/RPaaSSampleApp" \ - extension-endpoint-uri="https://contoso-test-extension-endpoint.com/" \ - extension-categories="ResourceReadValidate" extension-categories="ResourceDeletionValidate" \ - --regionality "Global" \ - --routing-type "ProxyOnly" \ - --swagger-specifications api-versions="2019-01-01" \ - swagger-spec-folder-uri="https://github.com/pathtoresourceproviderswaggerspecfolder" \ - --provider-namespace "Microsoft.Contoso" \ - --enable-async-operation false \ - --template-deployment-options preflight-supported="true" \ - preflight-options="DefaultValidationOnly" preflight-options="continueDeploymentOnFailure" \ - --resource-type "testResourceType" -""" - -helps['providerhub resource-type-registration delete'] = """ - type: command - short-summary: "Deletes a resource type." - examples: - - name: ResourceTypeRegistrations_Delete - text: |- - az providerhub resource-type-registration delete --provider-namespace "Microsoft.Contoso" \ ---resource-type "testResourceType" -""" - -helps['providerhub sku'] = """ - type: group - short-summary: Manage sku with providerhub -""" - -helps['providerhub sku list'] = """ - type: command - short-summary: "Gets the list of skus for the given resource type. And Gets the list of skus for the given \ -resource type. And Gets the list of skus for the given resource type. And Gets the list of skus for the given resource \ -type." - examples: - - name: Skus_ListByResourceTypeRegistrationsNestedResourceTypeThird - text: |- - az providerhub sku list --nested-resource-type-first "nestedResourceTypeFirst" \ ---nested-resource-type-second "nestedResourceTypeSecond" --nested-resource-type-third "nestedResourceTypeThird" \ ---provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" - - name: Skus_ListByResourceTypeRegistrationsNestedResourceTypeSecond - text: |- - az providerhub sku list --nested-resource-type-first "nestedResourceTypeFirst" \ ---nested-resource-type-second "nestedResourceTypeSecond" --provider-namespace "Microsoft.Contoso" --resource-type \ -"testResourceType" - - name: Skus_ListByResourceTypeRegistrationsNestedResourceTypeFirst - text: |- - az providerhub sku list --nested-resource-type-first "nestedResourceTypeFirst" --provider-namespace \ -"Microsoft.Contoso" --resource-type "testResourceType" - - name: Skus_ListByResourceTypeRegistrations - text: |- - az providerhub sku list --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" -""" - -helps['providerhub sku show'] = """ - type: command - short-summary: "Gets the sku details for the given resource type and sku name." - examples: - - name: Skus_Get - text: |- - az providerhub sku show --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" \ ---sku "testSku" -""" - -helps['providerhub sku create'] = """ - type: command - short-summary: "Creates or updates the resource type skus in the given resource type. And Creates or updates the \ -resource type skus in the given resource type. And Creates or updates the resource type skus in the given resource \ -type. And Create the resource type skus in the given resource type." - examples: - - name: Skus_CreateOrUpdateNestedResourceTypeThird - text: |- - az providerhub sku create --nested-resource-type-first "nestedResourceTypeFirst" \ ---nested-resource-type-second "nestedResourceTypeSecond" --nested-resource-type-third "nestedResourceTypeThird" \ ---sku-settings "[{\\"name\\":\\"freeSku\\",\\"kind\\":\\"Standard\\",\\"tier\\":\\"Tier1\\"},{\\"name\\":\\"premiumSku\ -\\",\\"costs\\":[{\\"meterId\\":\\"xxx\\"}],\\"kind\\":\\"Premium\\",\\"tier\\":\\"Tier2\\"}]" --provider-namespace \ -"Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku" - - name: Skus_CreateOrUpdateNestedResourceTypeSecond - text: |- - az providerhub sku create --nested-resource-type-first "nestedResourceTypeFirst" \ ---nested-resource-type-second "nestedResourceTypeSecond" --sku-settings "[{\\"name\\":\\"freeSku\\",\\"kind\\":\\"Stand\ -ard\\",\\"tier\\":\\"Tier1\\"},{\\"name\\":\\"premiumSku\\",\\"costs\\":[{\\"meterId\\":\\"xxx\\"}],\\"kind\\":\\"Premi\ -um\\",\\"tier\\":\\"Tier2\\"}]" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku \ -"testSku" - - name: Skus_CreateOrUpdateNestedResourceTypeFirst - text: |- - az providerhub sku create --nested-resource-type-first "nestedResourceTypeFirst" --sku-settings \ -"[{\\"name\\":\\"freeSku\\",\\"kind\\":\\"Standard\\",\\"tier\\":\\"Tier1\\"},{\\"name\\":\\"premiumSku\\",\\"costs\\":\ -[{\\"meterId\\":\\"xxx\\"}],\\"kind\\":\\"Premium\\",\\"tier\\":\\"Tier2\\"}]" --provider-namespace \ -"Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku" - - name: Skus_CreateOrUpdate - text: |- - az providerhub sku create --sku-settings "[{\\"name\\":\\"freeSku\\",\\"kind\\":\\"Standard\\",\\"tier\\\ -":\\"Tier1\\"},{\\"name\\":\\"premiumSku\\",\\"costs\\":[{\\"meterId\\":\\"xxx\\"}],\\"kind\\":\\"Premium\\",\\"tier\\"\ -:\\"Tier2\\"}]" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku" -""" - -helps['providerhub sku delete'] = """ - type: command - short-summary: "Deletes a resource type sku. And Deletes a resource type sku. And Deletes a resource type sku. And \ -Deletes a resource type sku." - examples: - - name: Skus_DeleteNestedResourceTypeThird - text: |- - az providerhub sku delete --nested-resource-type-first "nestedResourceTypeFirst" \ ---nested-resource-type-second "nestedResourceTypeSecond" --nested-resource-type-third "nestedResourceTypeThird" \ ---provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku" - - name: Skus_DeleteNestedResourceTypeSecond - text: |- - az providerhub sku delete --nested-resource-type-first "nestedResourceTypeFirst" \ ---nested-resource-type-second "nestedResourceTypeSecond" --provider-namespace "Microsoft.Contoso" --resource-type \ -"testResourceType" --sku "testSku" - - name: Skus_DeleteNestedResourceTypeFirst - text: |- - az providerhub sku delete --nested-resource-type-first "nestedResourceTypeFirst" --provider-namespace \ -"Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku" - - name: Skus_Delete - text: |- - az providerhub sku delete --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" \ ---sku "testSku" -""" - -helps['providerhub sku show-nested-resource-type-first'] = """ - type: command - short-summary: "Gets the sku details for the given resource type and sku name." - examples: - - name: Skus_GetNestedResourceTypeFirst - text: |- - az providerhub sku show-nested-resource-type-first --nested-resource-type-first \ -"nestedResourceTypeFirst" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku" -""" - -helps['providerhub sku show-nested-resource-type-second'] = """ - type: command - short-summary: "Gets the sku details for the given resource type and sku name." - examples: - - name: Skus_GetNestedResourceTypeSecond - text: |- - az providerhub sku show-nested-resource-type-second --nested-resource-type-first \ -"nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --provider-namespace \ -"Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku" -""" - -helps['providerhub sku show-nested-resource-type-third'] = """ - type: command - short-summary: "Gets the sku details for the given resource type and sku name." - examples: - - name: Skus_GetNestedResourceTypeThird - text: |- - az providerhub sku show-nested-resource-type-third --nested-resource-type-first \ -"nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --nested-resource-type-third \ -"nestedResourceTypeThird" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku" -""" diff --git a/src/providerhub/azext_providerhub/generated/_params.py b/src/providerhub/azext_providerhub/generated/_params.py deleted file mode 100644 index f607833167a..00000000000 --- a/src/providerhub/azext_providerhub/generated/_params.py +++ /dev/null @@ -1,561 +0,0 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# pylint: disable=too-many-lines -# pylint: disable=too-many-statements -# pylint: disable=line-too-long - -from azure.cli.core.commands.parameters import ( - get_three_state_flag, - get_enum_type, - resource_group_name_type -) -from azure.cli.core.commands.validators import validate_file_or_dict -from azext_providerhub.action import ( - AddCanaryRegion, - AddDefaultRolloutROW2, - AddProviderAuthentication, - AddProviderAuthorizations, - AddCapabilities, - AddSkipRegions, - AddTemplateDeploymentOptions, - AddResourceTypeEndpointProperties, - AddSubscriptionStateOverrideActions, - AddProviderHubMetadataProviderAuthorizations, - AddProviderHubMetadataAuthentication, - AddAuthorizations, - AddNotificationEndpoints, - AddSwaggerSpecifications, - AddAuthorizationActionMappings, - AddLinkedAccessChecks, - AddThrottlingRules, - AddIdentityManagement, - AddCheckNameAvailabilitySpecifications, - AddServiceTreeInfos, - AddSubscriptionStateRules, - AddExtendedLocations, - AddResourceMovePolicy, - AddRequiredFeatures, - AddExtensionOptions, - AddResourcePatchBegin, - AddLoggingRules -) - - -def load_arguments(self, _): - - with self.argument_context('providerhub custom-rollout list') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - - with self.argument_context('providerhub custom-rollout show') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('rollout_name', type=str, - help='The rollout name.', id_part='child_name_1') - - with self.argument_context('providerhub custom-rollout create') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('rollout_name', type=str, help='The rollout name.') - c.argument('canary', action=AddCanaryRegion, nargs='+', - help='The canary regions to apply the manifest.', arg_group='Specification') - - with self.argument_context('providerhub custom-rollout update') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('rollout_name', type=str, help='The rollout name.') - c.argument('canary', action=AddCanaryRegion, nargs='+', - help='The canary regions to apply the manifest.', arg_group='Specification') - - with self.argument_context('providerhub default-rollout list') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - - with self.argument_context('providerhub default-rollout show') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('rollout_name', type=str, - help='The rollout name.', id_part='child_name_1') - - with self.argument_context('providerhub default-rollout create') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('rollout_name', type=str, help='The rollout name.') - c.argument('rest_of_the_world_group_two', options_list=['--rest-of-the-world-group-two', '--row2'], action=AddDefaultRolloutROW2, - nargs='+', help='DefaultRollout rest of the world group two.') - c.argument('canary', action=AddCanaryRegion, - nargs='*', help='The canary regions to skip.') - - with self.argument_context('providerhub default-rollout update') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('rollout_name', type=str, help='The rollout name.') - c.argument('rest_of_the_world_group_two', options_list=['--rest-of-the-world-group-two', '--row2'], action=AddDefaultRolloutROW2, - nargs='+', help='DefaultRollout rest of the world group two.') - c.argument('canary', action=AddCanaryRegion, - nargs='*', help='The canary regions to skip.') - - with self.argument_context('providerhub default-rollout delete') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('rollout_name', type=str, - help='The rollout name.', id_part='child_name_1') - - with self.argument_context('providerhub default-rollout stop') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('rollout_name', type=str, - help='The rollout name.', id_part='child_name_1') - - with self.argument_context('providerhub default-rollout wait') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('rollout_name', type=str, - help='The rollout name.', id_part='child_name_1') - - with self.argument_context('providerhub manifest checkin') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('environment', type=str, - help='The environment supplied to the checkin manifest operation.') - c.argument('baseline_arm_manifest_location', options_list=['--baseline-arm-manifest-location', '--arm-manifest-location', '--location'], type=str, help='The baseline ARM manifest location supplied to ' - 'the checkin manifest operation.') - - with self.argument_context('providerhub manifest generate') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - - with self.argument_context('providerhub notification-registration list') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - - with self.argument_context('providerhub notification-registration show') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('notification_registration_name', options_list=['--name', '-n', '--notification-registration-name'], - type=str, help='The notification registration.', id_part='child_name_1') - - with self.argument_context('providerhub notification-registration create') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('notification_registration_name', options_list=['--name', '-n', '--notification-registration-name'], - type=str, help='The notification registration.') - c.argument('notification_mode', arg_type=get_enum_type( - ['NotSpecified', 'EventHub', 'WebHook']), help='Determines how the notifications are sent to the RP. The two available modes are EventHub and Webhook.') - c.argument('message_scope', arg_type=get_enum_type( - ['NotSpecified', 'RegisteredSubscriptions']), help='Limits the messages that are sent to the RP. The default value is RegisteredSubscriptions. The available values are Global (all messages in Azure) and RegisteredSubscriptions (only messages in subscriptions registered by RP).') - c.argument('included_events', nargs='+', - help='These are the events that the RP should be messaged on. The message format is in the form {RP Namespace}/{Resource Type}/{action}. The availabe actions are: write, delete and move/action.') - c.argument('notification_endpoints', - action=AddNotificationEndpoints, nargs='+', help='These are the locations for the notification messages. Notifications will be sent to the region of the event resource\'s location (e.g. VM in East Us will send message to the specified endpoint in East US).') - - with self.argument_context('providerhub notification-registration update') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('notification_registration_name', options_list=['--name', '-n', '--notification-registration-name'], - type=str, help='The notification registration.') - c.argument('notification_mode', arg_type=get_enum_type( - ['NotSpecified', 'EventHub', 'WebHook']), help='Determines how the notifications are sent to the RP. The two available modes are EventHub and Webhook.') - c.argument('message_scope', arg_type=get_enum_type( - ['NotSpecified', 'RegisteredSubscriptions']), help='Limits the messages that are sent to the RP. The default value is RegisteredSubscriptions. The available values are Global (all messages in Azure) and RegisteredSubscriptions (only messages in subscriptions registered by RP).') - c.argument('included_events', nargs='+', - help='These are the events that the RP should be messaged on. The message format is in the form {RP Namespace}/{Resource Type}/{action}. The availabe actions are: write, delete and move/action.') - c.argument('notification_endpoints', - action=AddNotificationEndpoints, nargs='+', help='These are the locations for the notification messages. Notifications will be sent to the region of the event resource\'s location (e.g. VM in East Us will send message to the specified endpoint in East US).') - - with self.argument_context('providerhub notification-registration delete') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('notification_registration_name', options_list=['--name', '-n', '--notification-registration-name'], - type=str, help='The notification registration.', id_part='child_name_1') - - with self.argument_context('providerhub operation list') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - - with self.argument_context('providerhub operation create') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('contents', type=validate_file_or_dict, - help=' Expected value: json-string/@json-file.') - - with self.argument_context('providerhub operation update') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('contents', type=validate_file_or_dict, - help=' Expected value: json-string/@json-file.') - - with self.argument_context('providerhub operation delete') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - - with self.argument_context('providerhub provider-registration show') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - - with self.argument_context('providerhub provider-registration create') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('provider_authentication', options_list=['--provider-authentication', '--provider-authn'], action=AddProviderAuthentication, nargs='+', - help='Used to set alternative "audiences or resources" that ARM should accept from the token while authenticating requests for the provider. Only available to tenant level providers.') - c.argument('provider_authorizations', options_list=['--provider-authorizations', '--provider-authz'], action=AddProviderAuthorizations, - nargs='+', help='The resource provider authorizations.') - c.argument('provider_version', type=str, - help='The provider version. 2.0 is the only supported version.') - c.argument('provider_type', type=str, help='Value can be "Internal", "External", "Hidden", "RegistrationFree", "TenantOnly" or "LegacyRegistrationRequired". RegistrationFree is for providers that do not need subscriptions to explicitly register to use the provider. Hidden flag ensures that discovery APIs (GET /Providers) will not show the provider, however a user can still write to the provider explicitly. TenantOnly will not appear in Get /Providers and will not allow registration from users. LegacyRegistrationRequired is for legacy providers that need RDFE registration in addition to ARM registration.') - c.argument('capabilities', action=AddCapabilities, nargs='+', help='Allow the access to the resource provider from a restrictive subscription quota (DreamSpark_2015-02-01 and CSP_2015-05-01​). The required​Features array is optional, if specified the subscription should meet the quota ​and at least one of the features. If no capabilities is specified the provider will be available to every subscription but the restrictive quotas. New providers are required to allow CSP_2015-05-01​​') - c.argument('metadata', type=validate_file_or_dict, - help='The metadata.') - c.argument('template_deployment_options', options_list=['--template-deployment-options', '--tmplt-deploy-opt'], action=AddTemplateDeploymentOptions, - nargs='+', help='The field for preflight options.') - c.argument('schema_owners', nargs='+', - help='Specifies an array of needed ACIS claims to modify the resource provider schema via ACIS.', arg_group='Management') - c.argument('manifest_owners', nargs='+', - help='Specifies an array of required ACIS claims to modify the resource provider\'s manifest content via ACIS.', arg_group='Management') - c.argument('required_features', nargs='+', - help='The required features.', arg_group='Management') - c.argument('incident_routing_service', options_list=['--incident-routing-service', '--incident-service'], type=str, - help='The Service in IcM when creating or transferring incidents to the RP.', arg_group='Management') - c.argument('incident_routing_team', options_list=['--incident-routing-team', '--incident-team'], type=str, - help='The Team in IcM when creating or transferring incidents to the RP.', arg_group='Management') - c.argument('incident_contact_email', type=str, - help='The email address of contacts for incidents related to the RP.', arg_group='Management') - c.argument('service_tree_infos', action=AddServiceTreeInfos, nargs='+', help='The ServiceTree information for the resource provider.', - arg_group='Management') - c.argument('resource_access_policy', arg_type=get_enum_type(['NotSpecified', 'AcisReadAllowed', - 'AcisActionAllowed']), help='The resource access policy.', - arg_group='Management') - c.argument('resource_access_roles', type=validate_file_or_dict, - help='The resource access roles. Expected value: json-string/@json-file.', arg_group='Management') - c.argument('opt_in_headers', arg_type=get_enum_type(['NotSpecified', 'SignedUserToken', - 'ClientGroupMembership', 'SignedAuxiliaryTokens', - 'UnboundedClientGroupMembership']), help='ARM allows customized headers when sending requests to the RP. This can be done both at the provider level or at the individual resource type level.', - arg_group='Request Header Options') - c.argument('required_features_policy', options_list=['--required-features-policy', '--req-features-policy'], arg_type=get_enum_type(['Any', 'All']), help='The accepted values are "Any" or "All". If the value is "All", then only the subscriptions registered to all the corresponding feature flag will be allowed.​', arg_group='Features ' - 'Rule') - c.argument('subscription_state_override_actions', options_list=['--subscription-state-override-actions', '--override-actions'], action=AddSubscriptionStateOverrideActions, nargs='+', - help='The subscription state override actions.', arg_group='Subscription Lifecycle Notification Specifications') - c.argument('soft_delete_ttl', help='The soft delete time to live.', - arg_group='Subscription Lifecycle Notification Specifications') - c.argument('providerhub_metadata_authorizations', options_list=['--providerhub-metadata-authorizations', '--metadata-authz'], - action=AddProviderHubMetadataProviderAuthorizations, nargs='+', help='Available only for first party providers, this section can be used to bootstrap Service-to-Service authentication and authorization for the provider\'s application. When set, it would allow provider to access users\' subscription registered with them.', arg_group='Provider Hub Metadata') - c.argument('providerhub_metadata_authentication', options_list=['--providerhub-metadata-authentication', '--metadata-authn'], action=AddProviderHubMetadataAuthentication, nargs='+', help='Used to set alternative "audiences or resources" that ARM should accept from the token while authenticating requests for the provider. Only available to tenant level providers.', - arg_group='Provider Hub Metadata') - c.argument('lighthouse_authorizations', options_list=['--lighthouse-authorizations', '--lighthouse-auth'], action=AddAuthorizations, nargs='+', help='The lighthouse authorizations.', arg_group='Provider Hub Metadata ' - 'Third Party Provider Authorization') - c.argument('managed_by_tenant_id', type=str, help='The managed by tenant identifier.', arg_group='Provider Hub Metadata Third Party Provider ' - 'Authorization') - - with self.argument_context('providerhub provider-registration update') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('provider_authentication', options_list=['--provider-authentication', '--provider-authn'], action=AddProviderAuthentication, nargs='+', - help='Used to set alternative "audiences or resources" that ARM should accept from the token while authenticating requests for the provider. Only available to tenant level providers.') - c.argument('provider_authorizations', options_list=['--provider-authorizations', '--provider-authz'], action=AddProviderAuthorizations, - nargs='+', help='The resource provider authorizations.') - c.argument('provider_version', type=str, - help='The provider version. 2.0 is the only supported version.') - c.argument('provider_type', type=str, help='Value can be "Internal", "External", "Hidden", "RegistrationFree", "TenantOnly" or "LegacyRegistrationRequired". RegistrationFree is for providers that do not need subscriptions to explicitly register to use the provider. Hidden flag ensures that discovery APIs (GET /Providers) will not show the provider, however a user can still write to the provider explicitly. TenantOnly will not appear in Get /Providers and will not allow registration from users. LegacyRegistrationRequired is for legacy providers that need RDFE registration in addition to ARM registration.') - c.argument('capabilities', action=AddCapabilities, nargs='+', help='Allow the access to the resource provider from a restrictive subscription quota (DreamSpark_2015-02-01 and CSP_2015-05-01​). The required​Features array is optional, if specified the subscription should meet the quota ​and at least one of the features. If no capabilities is specified the provider will be available to every subscription but the restrictive quotas. New providers are required to allow CSP_2015-05-01​​') - c.argument('metadata', type=validate_file_or_dict, - help='The metadata.') - c.argument('template_deployment_options', options_list=['--template-deployment-options', '--tmplt-deploy-opt'], action=AddTemplateDeploymentOptions, - nargs='+', help='The field for preflight options.') - c.argument('schema_owners', nargs='+', - help='Specifies an array of needed ACIS claims to modify the resource provider schema via ACIS.', arg_group='Management') - c.argument('manifest_owners', nargs='+', - help='Specifies an array of required ACIS claims to modify the resource provider\'s manifest content via ACIS.', arg_group='Management') - c.argument('required_features', nargs='+', - help='The required features.', arg_group='Management') - c.argument('incident_routing_service', options_list=['--incident-routing-service', '--incident-service'], type=str, - help='The Service in IcM when creating or transferring incidents to the RP.', arg_group='Management') - c.argument('incident_routing_team', options_list=['--incident-routing-team', '--incident-team'], type=str, - help='The Team in IcM when creating or transferring incidents to the RP.', arg_group='Management') - c.argument('incident_contact_email', type=str, - help='The email address of contacts for incidents related to the RP.', arg_group='Management') - c.argument('service_tree_infos', action=AddServiceTreeInfos, nargs='+', help='The ServiceTree information for the resource provider.', - arg_group='Management') - c.argument('resource_access_policy', arg_type=get_enum_type(['NotSpecified', 'AcisReadAllowed', - 'AcisActionAllowed']), help='The resource access policy.', - arg_group='Management') - c.argument('resource_access_roles', type=validate_file_or_dict, - help='The resource access roles. Expected value: json-string/@json-file.', arg_group='Management') - c.argument('opt_in_headers', arg_type=get_enum_type(['NotSpecified', 'SignedUserToken', - 'ClientGroupMembership', 'SignedAuxiliaryTokens', - 'UnboundedClientGroupMembership']), help='ARM allows customized headers when sending requests to the RP. This can be done both at the provider level or at the individual resource type level.', - arg_group='Request Header Options') - c.argument('required_features_policy', options_list=['--required-features-policy', '--req-features-policy'], arg_type=get_enum_type(['Any', 'All']), help='The accepted values are "Any" or "All". If the value is "All", then only the subscriptions registered to all the corresponding feature flag will be allowed.​', arg_group='Features ' - 'Rule') - c.argument('subscription_state_override_actions', options_list=['--subscription-state-override-actions', '--override-actions'], action=AddSubscriptionStateOverrideActions, nargs='+', - help='The subscription state override actions.', arg_group='Subscription Lifecycle Notification Specifications') - c.argument('soft_delete_ttl', help='The soft delete time to live.', - arg_group='Subscription Lifecycle Notification Specifications') - c.argument('providerhub_metadata_authorizations', options_list=['--providerhub-metadata-authorizations', '--metadata-authz'], - action=AddProviderHubMetadataProviderAuthorizations, nargs='+', help='Available only for first party providers, this section can be used to bootstrap Service-to-Service authentication and authorization for the provider\'s application. When set, it would allow provider to access users\' subscription registered with them.', arg_group='Provider Hub Metadata') - c.argument('providerhub_metadata_authentication', options_list=['--providerhub-metadata-authentication', '--metadata-authn'], action=AddProviderHubMetadataAuthentication, nargs='+', help='Used to set alternative "audiences or resources" that ARM should accept from the token while authenticating requests for the provider. Only available to tenant level providers.', - arg_group='Provider Hub Metadata') - c.argument('lighthouse_authorizations', options_list=['--lighthouse-authorizations', '--lighthouse-auth'], action=AddAuthorizations, nargs='+', help='The lighthouse authorizations.', arg_group='Provider Hub Metadata ' - 'Third Party Provider Authorization') - c.argument('managed_by_tenant_id', type=str, help='The managed by tenant identifier.', arg_group='Provider Hub Metadata Third Party Provider ' - 'Authorization') - - with self.argument_context('providerhub provider-registration delete') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - - with self.argument_context('providerhub provider-registration generate-operation') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - - with self.argument_context('providerhub provider-registration wait') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - - with self.argument_context('providerhub resource-type-registration list') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - - with self.argument_context('providerhub resource-type-registration show') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('resource_type', type=str, - help='The resource type.', id_part='child_name_1') - - with self.argument_context('providerhub resource-type-registration create') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('resource_type', type=str, help='The resource type.') - c.argument('routing_type', type=str, help='The resource routing type.') - c.argument('regionality', arg_type=get_enum_type( - ['NotSpecified', 'Global', 'Regional']), help='The regionality of the resource type.') - c.argument('endpoints', action=AddResourceTypeEndpointProperties, nargs='+', help='The resource ' - 'type endpoint properties.') - c.argument('marketplace_type', arg_type=get_enum_type( - ['NotSpecified', 'AddOn', 'Bypass', 'Store']), help='The resource type behavior in the marketplace.') - c.argument('swagger_specifications', action=AddSwaggerSpecifications, nargs='+', - help='The OpenAPI (swagger specs) of the resource type. RPaaS will use the swagger specs to validate http requests/responses.') - c.argument('allowed_unauthorized_actions', options_list=['--allowed-unauthorized-actions', '--aua'], nargs='+', - help='The allowed unauthorized actions.') - c.argument('authorization_action_mappings', options_list=['--authorization-action-mappings', '--auth-mappings'], action=AddAuthorizationActionMappings, - nargs='+', help='Allows RP to override action verb for RBAC purposes at ARM.') - c.argument('linked_access_checks', action=AddLinkedAccessChecks, nargs='+', - help='Enables additional Role Based Access Control (RBAC) checks on related resources.') - c.argument('default_api_version', type=str, - help='The default API version for the endpoint.') - c.argument('logging_rules', type=AddLoggingRules, - help='Enables additional event logs RP wants customers to see in their subscription for a particular action.') - c.argument('throttling_rules', action=AddThrottlingRules, nargs='+', - help='Allows RPs to set individual limits for different actions in terms of number of requests or number of resources (for collection read requests only).') - c.argument('enable_async_operation', - arg_type=get_three_state_flag(), help='The flag to enable async operation.') - c.argument('enable_third_party_s2s', - arg_type=get_three_state_flag(), help='The flag to enable Third Party S2S.') - c.argument('is_pure_proxy', arg_type=get_three_state_flag(), - help='The flag to indicate a pure proxy resource.') - c.argument('identity_management', - action=AddIdentityManagement, nargs='+', help='The Managed Identity Support.') - c.argument('check_name_availability_specifications', options_list=['--check-name-availability-specifications', '--checkname-specs'], action=AddCheckNameAvailabilitySpecifications, nargs='+', - help='The checkname availability specifications.') - c.argument('disallowed_action_verbs', options_list=[ - '--disallowed-action-verbs', '--dav'], nargs='+', help='The disallowed action verbs.') - c.argument('service_tree_infos', - action=AddServiceTreeInfos, nargs='+', help='The service tree infos.') - c.argument('subscription_state_rules', options_list=['--subscription-state-rules', '--sub-state-rules'], - action=AddSubscriptionStateRules, nargs='+', help='The subscription state rules.') - c.argument('template_deployment_options', options_list=['--template-deployment-options', '--tmplt-deploy-opt'], - action=AddTemplateDeploymentOptions, nargs='+', help='The template deployment options.') - c.argument('extended_locations', - action=AddExtendedLocations, nargs='+', help='The extended locations.') - c.argument('resource_move_policy', - action=AddResourceMovePolicy, nargs='+', help='The resource move policy.') - c.argument('resource_deletion_policy', options_list=['--resource-deletion-policy', '--deletion-policy'], arg_type=get_enum_type(['NotSpecified', 'CascadeDeleteAll', - 'CascadeDeleteProxyOnlyChildren']), help='The resource deletion policy.') - c.argument('opt_in_headers', arg_type=get_enum_type(['NotSpecified', 'SignedUserToken', - 'ClientGroupMembership', 'SignedAuxiliaryTokens', - 'UnboundedClientGroupMembership']), help='The opt in headers.', - arg_group='Request Header Options') - c.argument('subscription_state_override_actions', options_list=['--subscription-state-override-actions', '--override-actions'], action=AddSubscriptionStateOverrideActions, nargs='+', - help='The subscription state override action.', arg_group='Subscription Lifecycle Notification Specifications') - c.argument('soft_delete_ttl', help='The soft delete time to live.', - arg_group='Subscription Lifecycle Notification Specifications') - c.argument('required_features_policy', options_list=['--required-features-policy', '--req-features-policy'], arg_type=get_enum_type(['Any', 'All']), help='The required features policy.', arg_group='Features ' - 'Rule') - c.argument('resource_creation_begin', options_list=['--resource-creation-begin', '--creation-begin'], action=AddExtensionOptions, nargs='+', help='The resource creation begin extion option.', - arg_group='Extension Options') - c.argument('resource_patch_begin', options_list=['--resource-patch-begin', '--patch-begin'], action=AddExtensionOptions, nargs='+', help='The resource patch begin extion option.', - arg_group='Extension Options') - - with self.argument_context('providerhub resource-type-registration update') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('resource_type', type=str, help='The resource type.') - c.argument('routing_type', type=str, help='The resource routing type.') - c.argument('regionality', arg_type=get_enum_type( - ['NotSpecified', 'Global', 'Regional']), help='The regionality of the resource type.') - c.argument('endpoints', action=AddResourceTypeEndpointProperties, nargs='+', help='The resource ' - 'type endpoint properties.') - c.argument('marketplace_type', arg_type=get_enum_type( - ['NotSpecified', 'AddOn', 'Bypass', 'Store']), help='The resource type behavior in the marketplace.') - c.argument('swagger_specifications', action=AddSwaggerSpecifications, nargs='+', - help='The OpenAPI (swagger specs) of the resource type. RPaaS will use the swagger specs to validate http requests/responses.') - c.argument('allowed_unauthorized_actions', options_list=['--allowed-unauthorized-actions', '--aua'], nargs='+', - help='The allowed unauthorized actions.') - c.argument('authorization_action_mappings', options_list=['--authorization-action-mappings', '--auth-mappings'], action=AddAuthorizationActionMappings, - nargs='+', help='Allows RP to override action verb for RBAC purposes at ARM.') - c.argument('linked_access_checks', action=AddLinkedAccessChecks, nargs='+', - help='Enables additional Role Based Access Control (RBAC) checks on related resources.') - c.argument('default_api_version', type=str, - help='The default API version for the endpoint.') - c.argument('logging_rules', type=AddLoggingRules, - help='Enables additional event logs RP wants customers to see in their subscription for a particular action.') - c.argument('throttling_rules', action=AddThrottlingRules, nargs='+', - help='Allows RPs to set individual limits for different actions in terms of number of requests or number of resources (for collection read requests only).') - c.argument('enable_async_operation', - arg_type=get_three_state_flag(), help='The flag to enable async operation.') - c.argument('enable_third_party_s2s', - arg_type=get_three_state_flag(), help='The flag to enable Third Party S2S.') - c.argument('is_pure_proxy', arg_type=get_three_state_flag(), - help='The flag to indicate a pure proxy resource.') - c.argument('identity_management', - action=AddIdentityManagement, nargs='+', help='The Managed Identity Support.') - c.argument('check_name_availability_specifications', options_list=['--check-name-availability-specifications', '--checkname-specs'], action=AddCheckNameAvailabilitySpecifications, nargs='+', - help='The checkname availability specifications.') - c.argument('disallowed_action_verbs', options_list=[ - '--disallowed-action-verbs', '--dav'], nargs='+', help='The disallowed action verbs.') - c.argument('service_tree_infos', - action=AddServiceTreeInfos, nargs='+', help='The service tree infos.') - c.argument('subscription_state_rules', options_list=['--subscription-state-rules', '--sub-state-rules'], - action=AddSubscriptionStateRules, nargs='+', help='The subscription state rules.') - c.argument('template_deployment_options', options_list=['--template-deployment-options', '--tmplt-deploy-opt'], - action=AddTemplateDeploymentOptions, nargs='+', help='The template deployment options.') - c.argument('extended_locations', - action=AddExtendedLocations, nargs='+', help='The extended locations.') - c.argument('resource_move_policy', - action=AddResourceMovePolicy, nargs='+', help='The resource move policy.') - c.argument('resource_deletion_policy', options_list=['--resource-deletion-policy', '--deletion-policy'], arg_type=get_enum_type(['NotSpecified', 'CascadeDeleteAll', - 'CascadeDeleteProxyOnlyChildren']), help='The resource deletion policy.') - c.argument('opt_in_headers', arg_type=get_enum_type(['NotSpecified', 'SignedUserToken', - 'ClientGroupMembership', 'SignedAuxiliaryTokens', - 'UnboundedClientGroupMembership']), help='The opt in headers.', - arg_group='Request Header Options') - c.argument('subscription_state_override_actions', options_list=['--subscription-state-override-actions', '--override-actions'], action=AddSubscriptionStateOverrideActions, nargs='+', - help='The subscription state override action.', arg_group='Subscription Lifecycle Notification Specifications') - c.argument('soft_delete_ttl', help='The soft delete time to live.', - arg_group='Subscription Lifecycle Notification Specifications') - c.argument('required_features_policy', options_list=['--required-features-policy', '--req-features-policy'], arg_type=get_enum_type(['Any', 'All']), help='The required features policy.', arg_group='Features ' - 'Rule') - c.argument('resource_creation_begin', options_list=['--resource-creation-begin', '--creation-begin'], action=AddExtensionOptions, nargs='+', help='The resource creation begin extion option.', - arg_group='Extension Options') - c.argument('resource_patch_begin', options_list=['--resource-patch-begin', '--patch-begin'], action=AddExtensionOptions, nargs='+', help='The resource patch begin extion option.', - arg_group='Extension Options') - - with self.argument_context('providerhub resource-type-registration delete') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('resource_type', type=str, - help='The resource type.', id_part='child_name_1') - - with self.argument_context('providerhub resource-type-registration wait') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('resource_type', type=str, - help='The resource type.', id_part='child_name_1') - - with self.argument_context('providerhub sku list') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('resource_type', type=str, help='The resource type.') - c.argument('nested_resource_type_first', options_list=['--nested-first', '--nested-resource-type-first'], type=str, - help='The first child resource type.') - c.argument('nested_resource_type_second', options_list=['--nested-second', '--nested-resource-type-second'], type=str, - help='The second child resource type.') - c.argument('nested_resource_type_third', options_list=['--nested-third', '--nested-resource-type-third'], type=str, - help='The third child resource type.') - - with self.argument_context('providerhub sku show') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('resource_type', type=str, - help='The resource type.', id_part='child_name_1') - c.argument('sku', type=str, help='The SKU.', id_part='child_name_2') - - with self.argument_context('providerhub sku create') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('resource_type', type=str, help='The resource type.') - c.argument('nested_resource_type_first', options_list=['--nested-first', '--nested-resource-type-first'], type=str, - help='The first child resource type.') - c.argument('nested_resource_type_second', options_list=['--nested-second', '--nested-resource-type-second'], type=str, - help='The second child resource type.') - c.argument('nested_resource_type_third', options_list=['--nested-third', '--nested-resource-type-third'], type=str, - help='The third child resource type.') - c.argument('sku', type=str, help='The SKU.') - c.argument('sku_settings', type=validate_file_or_dict, - help=' Expected value: json-string/@json-file.') - - with self.argument_context('providerhub sku update') as c: - c.argument('provider_namespace', type=str, - help='The name of the resource provider hosted within ProviderHub.') - c.argument('resource_type', type=str, help='The resource type.') - c.argument('nested_resource_type_first', options_list=['--nested-first', '--nested-resource-type-first'], type=str, - help='The first child resource type.') - c.argument('nested_resource_type_second', options_list=['--nested-second', '--nested-resource-type-second'], type=str, - help='The second child resource type.') - c.argument('nested_resource_type_third', options_list=['--nested-third', '--nested-resource-type-third'], type=str, - help='The third child resource type.') - c.argument('sku', type=str, help='The SKU.') - c.argument('sku_settings', type=validate_file_or_dict, - help=' Expected value: json-string/@json-file.') - - with self.argument_context('providerhub sku delete') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('resource_type', type=str, - help='The resource type.', id_part='child_name_1') - c.argument('nested_resource_type_first', options_list=['--nested-first', '--nested-resource-type-first'], type=str, help='The first child resource type.', - id_part='child_name_2') - c.argument('nested_resource_type_second', options_list=['--nested-second', '--nested-resource-type-second'], type=str, help='The second child resource type.', - id_part='child_name_3') - c.argument('nested_resource_type_third', options_list=['--nested-third', '--nested-resource-type-third'], type=str, help='The third child resource type.', - id_part='child_name_4') - c.argument('sku', type=str, help='The SKU.', id_part='child_name_5') - - with self.argument_context('providerhub sku show-nested-resource-type-first') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('resource_type', type=str, - help='The resource type.', id_part='child_name_1') - c.argument('nested_resource_type_first', options_list=['--nested-first', '--nested-resource-type-first'], type=str, help='The first child resource type.', - id_part='child_name_2') - c.argument('sku', type=str, help='The SKU.', id_part='child_name_3') - - with self.argument_context('providerhub sku show-nested-resource-type-second') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('resource_type', type=str, - help='The resource type.', id_part='child_name_1') - c.argument('nested_resource_type_first', options_list=['--nested-first', '--nested-resource-type-first'], type=str, help='The first child resource type.', - id_part='child_name_2') - c.argument('nested_resource_type_second', options_list=['--nested-second', '--nested-resource-type-second'], type=str, help='The second child resource type.', - id_part='child_name_3') - c.argument('sku', type=str, help='The SKU.', id_part='child_name_4') - - with self.argument_context('providerhub sku show-nested-resource-type-third') as c: - c.argument('provider_namespace', type=str, help='The name of the resource provider hosted within ProviderHub.', - id_part='name') - c.argument('resource_type', type=str, - help='The resource type.', id_part='child_name_1') - c.argument('nested_resource_type_first', options_list=['--nested-first', '--nested-resource-type-first'], type=str, help='The first child resource type.', - id_part='child_name_2') - c.argument('nested_resource_type_second', options_list=['--nested-second', '--nested-resource-type-second'], type=str, help='The second child resource type.', - id_part='child_name_3') - c.argument('nested_resource_type_third', options_list=['--nested-third', '--nested-resource-type-third'], type=str, help='The third child resource type.', - id_part='child_name_4') - c.argument('sku', type=str, help='The SKU.', id_part='child_name_5') diff --git a/src/providerhub/azext_providerhub/generated/action.py b/src/providerhub/azext_providerhub/generated/action.py deleted file mode 100644 index d12cdbd958c..00000000000 --- a/src/providerhub/azext_providerhub/generated/action.py +++ /dev/null @@ -1,809 +0,0 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# pylint: disable=protected-access - -import argparse -import json -from collections import defaultdict -from knack.util import CLIError - - -def generate_list(inputStr): - if inputStr is None: - return None - return [word.strip() for word in inputStr.split(',')] - - -class AddDefaultRolloutROW2(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.rest_of_the_world_group_two = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'wait-duration': - d['wait_duration'] = v[0] - else: - raise CLIError('Unsupported Key {} is provided for parameter rest_of_the_world_group_two. All possible keys are: wait-duration'. - format(k)) - return d - - -class AddProviderAuthentication(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.provider_authentication = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'allowed-audiences': - d['allowed_audiences'] = v - else: - raise CLIError('Unsupported Key {} is provided for parameter provider_authentication. All possible ' - 'keys are: allowed-audiences'.format(k)) - return d - - -class AddProviderHubMetadataAuthentication(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.providerhub_metadata_authentication = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'allowed-audiences': - d['allowed_audiences'] = v - else: - raise CLIError('Unsupported Key {} is provided for parameter providerhub_metadata_rp_authentication. ' - ' All possible keys are: allowed-audiences'.format(k)) - return d - - -class AddProviderAuthorizations(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddProviderAuthorizations, self).__call__( - parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'application-id': - d['application_id'] = v[0] - elif kl == 'role-definition-id': - d['role_definition_id'] = v[0] - elif kl == 'managed-by-role-definition-id': - d['managed_by_role_definition_id'] = v[0] - else: - raise CLIError('Unsupported Key {} is provided for parameter provider_authorizations. All possible ' - 'keys are: application-id, role-definition-id, managed-by-role-definition-id'.format(k)) - return d - - -class AddCapabilities(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddCapabilities, self).__call__( - parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'quota-id': - d['quota_id'] = v[0] - elif kl == 'effect': - d['effect'] = v[0] - elif kl == 'required-features': - d['required_features'] = v - else: - raise CLIError('Unsupported Key {} is provided for parameter capabilities. All possible keys are: ' - 'quota-id, effect, required-features'.format(k)) - return d - - -class AddSkipRegions(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values) - namespace.skip_regions = action - - def get_action(self, values): # pylint: disable=no-self-use - return generate_list(values[0]) - - -class AddRequiredFeatures(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values) - namespace.required_features = action - - def get_action(self, values): # pylint: disable=no-self-use - return values - - -class AddTemplateDeploymentOptions(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.template_deployment_options = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'preflight-supported': - d['preflight_supported'] = v[0] - elif kl == 'preflight-options': - d['preflight_options'] = v - else: - raise CLIError('Unsupported Key {} is provided for parameter template_deployment_options. All possible ' - 'keys are: preflight-supported, preflight-options'.format(k)) - return d - - -class AddServiceTreeInfos(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super().__call__(parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'service-id': - d['service_id'] = v[0] - elif kl == 'component-id': - d['component_id'] = v[0] - else: - raise CLIError('Unsupported Key {} is provided for parameter service_tree_infos. All possible keys ' - 'are: service-id, component-id'.format(k)) - return d - - -class AddResourceTypeEndpointProperties(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super().__call__(parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = { - 'extensions': [ - {} - ] - } - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'api-versions': - d['api_versions'] = generate_list(v[0]) - elif kl == 'locations': - d['locations'] = generate_list(v[0]) - elif kl == 'required-features': - d['required_features'] = v - elif kl == 'extensions': - d['extensions'] = json.loads(v[0]) - elif kl == 'extension-endpoint-uri': - d['extensions'][0]['endpointUri'] = v[0] - elif kl == 'extension-categories': - d['extensions'][0]['extensionCategories'] = v - elif kl == 'extension-timeout': - d['extensions'][0]['timeout'] = v[0] - else: - raise CLIError('Unsupported Key {} is provided for parameter endpoints. All possible keys ' - 'are: api-versions, locations, required-features, extension-endpoint-uri, extension-categories, extension-timeout'.format(k)) - return d - - -class AddExtensionOptions(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.resource_creation_begin = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'request': - d['request'] = v - elif kl == 'response': - d['response'] = v - else: - raise CLIError('Unsupported Key {} is provided for parameter resource_creation_begin. ' - 'All possible keys are: request, response'.format(k)) - return d - - -class AddResourcePatchBegin(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.resource_patch_begin = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'request': - d['request'] = v - elif kl == 'response': - d['response'] = v - else: - raise CLIError('Unsupported Key {} is provided for parameter resource_patch_begin. ' - 'All possible keys are: request, response'.format(k)) - return d - - -class AddSubscriptionStateOverrideActions(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddSubscriptionStateOverrideActions, self).__call__( - parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'state': - d['state'] = v[0] - elif kl == 'action': - d['action'] = v[0] - else: - raise CLIError('Unsupported Key {} is provided for parameter subscription_state_override_actions. All ' - 'possible keys are: state, action'.format(k)) - return d - - -class AddProviderHubMetadataProviderAuthorizations(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddProviderHubMetadataProviderAuthorizations, self).__call__( - parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'application-id': - d['application_id'] = v[0] - elif kl == 'role-definition-id': - d['role_definition_id'] = v[0] - elif kl == 'managed-by-role-definition-id': - d['managed_by_role_definition_id'] = v[0] - else: - raise CLIError('Unsupported Key {} is provided for parameter provider_hub_metadata_provider_authorizati' - 'ons. All possible keys are: application-id, role-definition-id, ' - 'managed-by-role-definition-id'.format(k)) - return d - - -class AddAuthorizations(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddAuthorizations, self).__call__( - parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'principal-id': - d['principal_id'] = v[0] - elif kl == 'role-definition-id': - d['role_definition_id'] = v[0] - else: - raise CLIError('Unsupported Key {} is provided for parameter authorizations. All possible keys are: ' - 'principal-id, role-definition-id'.format(k)) - return d - - -class AddCanaryRegion(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.canary = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'skip-regions': - d['skip_regions'] = v - elif kl == 'regions': - d['regions'] = v - else: - raise CLIError('Unsupported Key {} is provided for parameter canary. All possible keys are: ' - 'skip-regions, regions'.format(k)) - return d - - -class AddNotificationEndpoints(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddNotificationEndpoints, self).__call__( - parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'notification-destination': - d['notification_destination'] = v[0] - elif kl == 'locations': - d['locations'] = v - else: - raise CLIError('Unsupported Key {} is provided for parameter notification_endpoints. All possible keys ' - 'are: notification-destination, locations'.format(k)) - return d - - -class AddSwaggerSpecifications(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddSwaggerSpecifications, self).__call__( - parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'api-versions': - d['api_versions'] = generate_list(v[0]) - elif kl == 'swagger-spec-folder-uri': - d['swagger_spec_folder_uri'] = v[0] - else: - raise CLIError('Unsupported Key {} is provided for parameter swagger_specifications. All possible keys ' - 'are: api-versions, swagger-spec-folder-uri'.format(k)) - return d - - -class AddAuthorizationActionMappings(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddAuthorizationActionMappings, self).__call__( - parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'original': - d['original'] = v[0] - elif kl == 'desired': - d['desired'] = v[0] - else: - raise CLIError('Unsupported Key {} is provided for parameter authorization_action_mappings. All ' - 'possible keys are: original, desired'.format(k)) - return d - - -class AddLinkedAccessChecks(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddLinkedAccessChecks, self).__call__( - parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'action-name': - d['action_name'] = v[0] - elif kl == 'linked-property': - d['linked_property'] = v[0] - elif kl == 'linked-action': - d['linked_action'] = v[0] - elif kl == 'linked-action-verb': - d['linked_action_verb'] = v[0] - elif kl == 'linked-type': - d['linked_type'] = v[0] - else: - raise CLIError('Unsupported Key {} is provided for parameter linked_access_checks. All possible keys ' - 'are: action-name, linked-property, linked-action, linked-action-verb, linked-type'. - format(k)) - return d - - -class AddLoggingRules(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super().__call__(parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'action': - d['action'] = v[0] - elif kl == 'direction': - d['direction'] = v - elif kl == 'detail-level': - d['detail_level'] = v - else: - raise CLIError('Unsupported Key {} is provided for parameter logging_rules. All possible keys are: ' - 'action, metrics, detail-level'.format(k)) - return d - - -class AddThrottlingRules(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddThrottlingRules, self).__call__( - parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'action': - d['action'] = v[0] - elif kl == 'metrics': - d['metrics'] = v - elif kl == 'required-features': - d['required_features'] = v - else: - raise CLIError('Unsupported Key {} is provided for parameter throttling_rules. All possible keys are: ' - 'action, metrics, required-features'.format(k)) - return d - - -class AddIdentityManagement(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.identity_management = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'type': - d['type'] = v[0] - elif kl == 'application-id': - d['application_id'] = v[0] - else: - raise CLIError('Unsupported Key {} is provided for parameter identity_management. All possible keys ' - 'are: type, application-id'.format(k)) - return d - - -class AddCheckNameAvailabilitySpecifications(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.check_name_availability_specifications = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'enable-default-validation': - d['enable_default_validation'] = v[0] - elif kl == 'resource-types-with-custom-validation': - d['resource_types_with_custom_validation'] = v - else: - raise CLIError('Unsupported Key {} is provided for parameter check_name_availability_specifications. ' - 'All possible keys are: enable-default-validation, resource-types-with-custom-validation' - ''.format(k)) - return d - - -class AddSubscriptionStateRules(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddSubscriptionStateRules, self).__call__( - parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'state': - d['state'] = v[0] - elif kl == 'allowed-actions': - d['allowed_actions'] = v - else: - raise CLIError('Unsupported Key {} is provided for parameter subscription_state_rules. All possible ' - 'keys are: state, allowed-actions'.format(k)) - return d - - -class AddExtendedLocations(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddExtendedLocations, self).__call__( - parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'type': - d['type'] = v[0] - elif kl == 'supported-policy': - d['supported_policy'] = v[0] - else: - raise CLIError('Unsupported Key {} is provided for parameter extended_locations. All possible keys ' - 'are: type, supported-policy'.format(k)) - return d - - -class AddResourceMovePolicy(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.resource_move_policy = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'validation-required': - d['validation_required'] = v[0] - elif kl == 'cross-resource-group-move-enabled': - d['cross_resource_group_move_enabled'] = v[0] - elif kl == 'cross-subscription-move-enabled': - d['cross_subscription_move_enabled'] = v[0] - else: - raise CLIError('Unsupported Key {} is provided for parameter resource_move_policy. All possible keys ' - 'are: validation-required, cross-resource-group-move-enabled, ' - 'cross-subscription-move-enabled'.format(k)) - return d - - -class AddResourceCreationBegin(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.resource_creation_begin = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError( - 'usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'request': - d['request'] = v - elif kl == 'response': - d['response'] = v - else: - raise CLIError('Unsupported Key {} is provided for parameter resource_creation_begin. All possible ' - 'keys are: request, response'.format(k)) - return d diff --git a/src/providerhub/azext_providerhub/generated/commands.py b/src/providerhub/azext_providerhub/generated/commands.py deleted file mode 100644 index 4c067e85a3f..00000000000 --- a/src/providerhub/azext_providerhub/generated/commands.py +++ /dev/null @@ -1,117 +0,0 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# pylint: disable=too-many-statements -# pylint: disable=too-many-locals - -from azure.cli.core.commands import CliCommandType - - -def load_command_table(self, _): - - from azext_providerhub.generated._client_factory import cf_custom_rollout - providerhub_custom_rollout = CliCommandType( - operations_tmpl='azext_providerhub.vendored_sdks.providerhub.operations._custom_rollouts_operations#CustomRollo' - 'utsOperations.{}', - client_factory=cf_custom_rollout) - with self.command_group('providerhub custom-rollout', providerhub_custom_rollout, - client_factory=cf_custom_rollout) as g: - g.custom_command('list', 'providerhub_custom_rollout_list') - g.custom_show_command('show', 'providerhub_custom_rollout_show') - g.custom_command('create', 'providerhub_custom_rollout_create') - - from azext_providerhub.generated._client_factory import cf_default_rollout - providerhub_default_rollout = CliCommandType( - operations_tmpl='azext_providerhub.vendored_sdks.providerhub.operations._default_rollouts_operations#DefaultRol' - 'loutsOperations.{}', - client_factory=cf_default_rollout) - with self.command_group('providerhub default-rollout', providerhub_default_rollout, - client_factory=cf_default_rollout) as g: - g.custom_command('list', 'providerhub_default_rollout_list') - g.custom_show_command('show', 'providerhub_default_rollout_show') - g.custom_command('create', 'providerhub_default_rollout_create', supports_no_wait=True) - g.custom_command('delete', 'providerhub_default_rollout_delete', confirmation=True) - g.custom_command('stop', 'providerhub_default_rollout_stop') - - from azext_providerhub.generated._client_factory import cf_providerhub - providerhub_ = CliCommandType( - operations_tmpl='azext_providerhub.vendored_sdks.providerhub.operations._model_operations#ProviderHubOperations' - 'Mixin.{}', - client_factory=cf_providerhub) - with self.command_group('providerhub manifest', providerhub_, client_factory=cf_providerhub, is_experimental=True) as g: - g.custom_command('checkin', 'providerhub_checkin_manifest') - g.custom_command('generate', 'providerhub_generate_manifest') - - from azext_providerhub.generated._client_factory import cf_notification_registration - providerhub_notification_registration = CliCommandType( - operations_tmpl='azext_providerhub.vendored_sdks.providerhub.operations._notification_registrations_operations#' - 'NotificationRegistrationsOperations.{}', - client_factory=cf_notification_registration) - with self.command_group('providerhub notification-registration', providerhub_notification_registration, - client_factory=cf_notification_registration) as g: - g.custom_command('list', 'providerhub_notification_registration_list') - g.custom_show_command('show', 'providerhub_notification_registration_show') - g.custom_command('create', 'providerhub_notification_registration_create') - g.custom_command('delete', 'providerhub_notification_registration_delete', confirmation=True) - - from azext_providerhub.generated._client_factory import cf_operation - providerhub_operation = CliCommandType( - operations_tmpl='azext_providerhub.vendored_sdks.providerhub.operations._operations_operations#Operations.{}', - client_factory=cf_operation) - with self.command_group('providerhub operation', providerhub_operation, client_factory=cf_operation) as g: - g.custom_command('list', 'providerhub_operation_list') - g.custom_command('create', 'providerhub_operation_create') - g.custom_command('delete', 'providerhub_operation_delete', confirmation=True) - - from azext_providerhub.generated._client_factory import cf_provider_registration - providerhub_provider_registration = CliCommandType( - operations_tmpl='azext_providerhub.vendored_sdks.providerhub.operations._provider_registrations_operations#Prov' - 'iderRegistrationsOperations.{}', - client_factory=cf_provider_registration) - with self.command_group('providerhub provider-registration', providerhub_provider_registration, - client_factory=cf_provider_registration) as g: - g.custom_command('list', 'providerhub_provider_registration_list') - g.custom_show_command('show', 'providerhub_provider_registration_show') - g.custom_command('create', 'providerhub_provider_registration_create', supports_no_wait=True) - g.custom_command('delete', 'providerhub_provider_registration_delete', confirmation=True) - g.custom_command('generate-operation', 'providerhub_provider_registration_generate_operation') - - from azext_providerhub.generated._client_factory import cf_resource_type_registration - providerhub_resource_type_registration = CliCommandType( - operations_tmpl='azext_providerhub.vendored_sdks.providerhub.operations._resource_type_registrations_operations' - '#ResourceTypeRegistrationsOperations.{}', - client_factory=cf_resource_type_registration) - with self.command_group('providerhub resource-type-registration', providerhub_resource_type_registration, - client_factory=cf_resource_type_registration) as g: - g.custom_command('list', 'providerhub_resource_type_registration_list') - g.custom_show_command('show', 'providerhub_resource_type_registration_show') - - providerhub_resource_type_registration = CliCommandType( - operations_tmpl='azext_providerhub.vendored_sdks.providerhub.operations._resource_type_registration_operations#' - 'ResourceTypeRegistrationOperations.{}', - client_factory=cf_resource_type_registration) - with self.command_group('providerhub resource-type-registration', providerhub_resource_type_registration, - client_factory=cf_resource_type_registration) as g: - g.custom_command( - 'create', 'providerhub_resource_type_registration_create') - g.custom_command( - 'delete', 'providerhub_resource_type_registration_delete', confirmation=True) - - from azext_providerhub.generated._client_factory import cf_sku - providerhub_sku = CliCommandType( - operations_tmpl='azext_providerhub.vendored_sdks.providerhub.operations._skus_operations#SkusOperations.{}', - client_factory=cf_sku) - with self.command_group('providerhub sku', providerhub_sku, client_factory=cf_sku) as g: - g.custom_command('list', 'providerhub_sku_list') - g.custom_show_command('show', 'providerhub_sku_show') - g.custom_command('create', 'providerhub_sku_create') - g.custom_command('delete', 'providerhub_sku_delete', confirmation=True) - g.custom_command('show-nested-resource-type-first', 'providerhub_sku_show_nested_resource_type_first') - g.custom_command('show-nested-resource-type-second', 'providerhub_sku_show_nested_resource_type_second') - g.custom_command('show-nested-resource-type-third', 'providerhub_sku_show_nested_resource_type_third') diff --git a/src/providerhub/azext_providerhub/generated/custom.py b/src/providerhub/azext_providerhub/generated/custom.py deleted file mode 100644 index b9643202dab..00000000000 --- a/src/providerhub/azext_providerhub/generated/custom.py +++ /dev/null @@ -1,691 +0,0 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# pylint: disable=line-too-long -# pylint: disable=too-many-lines -# pylint: disable=unused-argument - -from azure.cli.core.util import sdk_no_wait - - -def providerhub_custom_rollout_list(client, - provider_namespace): - return client.list_by_provider_registration(provider_namespace=provider_namespace) - - -def providerhub_custom_rollout_show(client, - provider_namespace, - rollout_name): - return client.get(provider_namespace=provider_namespace, - rollout_name=rollout_name) - - -def providerhub_custom_rollout_create(client, - provider_namespace, - rollout_name, - canary): - - return client.create_or_update(provider_namespace=provider_namespace, - rollout_name=rollout_name, - canary=canary) - - -def providerhub_custom_rollout_update(instance, - provider_namespace, - rollout_name, - canary): - if canary is not None: - instance.properties.specification.canary = canary - return instance - - -def providerhub_default_rollout_list(client, - provider_namespace): - return client.list_by_provider_registration(provider_namespace=provider_namespace) - - -def providerhub_default_rollout_show(client, - provider_namespace, - rollout_name): - return client.get(provider_namespace=provider_namespace, - rollout_name=rollout_name) - - -def providerhub_default_rollout_create(client, - provider_namespace, - rollout_name, - rest_of_the_world_group_two=None, - canary=None, - no_wait=False): - properties = { - 'properties': { - 'specification': { - 'canary': canary, - 'rest_of_the_world_group_two': rest_of_the_world_group_two - } - } - } - return sdk_no_wait(no_wait, - client.begin_create_or_update, - provider_namespace=provider_namespace, - rollout_name=rollout_name, - properties=properties) - - -def providerhub_default_rollout_update(instance, - provider_namespace, - rollout_name, - rest_of_the_world_group_two=None, - canary=None, - no_wait=False): - if rest_of_the_world_group_two is not None: - instance.properties.specification.rest_of_the_world_group_two = rest_of_the_world_group_two - if canary is not None: - instance.properties.specification.canary = canary - return instance - - -def providerhub_default_rollout_delete(client, - provider_namespace, - rollout_name): - return client.delete(provider_namespace=provider_namespace, - rollout_name=rollout_name) - - -def providerhub_default_rollout_stop(client, - provider_namespace, - rollout_name): - return client.stop(provider_namespace=provider_namespace, - rollout_name=rollout_name) - - -def providerhub_checkin_manifest(client, - provider_namespace, - environment, - baseline_arm_manifest_location): - checkin_manifest_params = {} - checkin_manifest_params['environment'] = environment - checkin_manifest_params['baseline_arm_manifest_location'] = baseline_arm_manifest_location - return client.checkin_manifest(provider_namespace=provider_namespace, - checkin_manifest_params=checkin_manifest_params) - - -def providerhub_generate_manifest(client, - provider_namespace): - return client.generate_manifest(provider_namespace=provider_namespace) - - -def providerhub_notification_registration_list(client, - provider_namespace): - return client.list_by_provider_registration(provider_namespace=provider_namespace) - - -def providerhub_notification_registration_show(client, - provider_namespace, - notification_registration_name): - return client.get(provider_namespace=provider_namespace, - notification_registration_name=notification_registration_name) - - -def providerhub_notification_registration_create(client, - provider_namespace, - notification_registration_name, - notification_mode=None, - message_scope=None, - included_events=None, - notification_endpoints=None): - properties = {} - properties['properties'] = {} - properties['properties']['notification_mode'] = notification_mode - properties['properties']['message_scope'] = message_scope - properties['properties']['included_events'] = included_events - properties['properties']['notification_endpoints'] = notification_endpoints - return client.create_or_update(provider_namespace=provider_namespace, - notification_registration_name=notification_registration_name, - properties=properties) - - -def providerhub_notification_registration_update(instance, - provider_namespace, - notification_registration_name, - notification_mode=None, - message_scope=None, - included_events=None, - notification_endpoints=None): - if notification_mode is not None: - instance.properties.notification_mode = notification_mode - if message_scope is not None: - instance.properties.message_scope = message_scope - if included_events is not None: - instance.properties.included_events = included_events - if notification_endpoints is not None: - instance.properties.notification_endpoints = notification_endpoints - return instance - - -def providerhub_notification_registration_delete(client, - provider_namespace, - notification_registration_name): - return client.delete(provider_namespace=provider_namespace, - notification_registration_name=notification_registration_name) - - -def providerhub_operation_list(client, - provider_namespace): - return client.list_by_provider_registration(provider_namespace=provider_namespace) - - -def providerhub_operation_create(client, - provider_namespace, - contents): - operations_put_content = {} - operations_put_content['contents'] = contents - return client.create_or_update(provider_namespace=provider_namespace, - operations_put_content=operations_put_content) - - -def providerhub_operation_update(client, - provider_namespace, - contents): - operations_put_content = {} - operations_put_content['contents'] = contents - return client.create_or_update(provider_namespace=provider_namespace, - operations_put_content=operations_put_content) - - -def providerhub_operation_delete(client, - provider_namespace): - return client.delete(provider_namespace=provider_namespace) - - -def providerhub_provider_registration_list(client): - return client.list() - - -def providerhub_provider_registration_show(client, - provider_namespace): - return client.get(provider_namespace=provider_namespace) - - -def providerhub_provider_registration_create(client, - provider_namespace, - provider_authentication=None, - provider_authorizations=None, - namespace=None, - provider_version=None, - provider_type=None, - required_features=None, - capabilities=None, - metadata=None, - template_deployment_options=None, - schema_owners=None, - manifest_owners=None, - incident_routing_service=None, - incident_routing_team=None, - incident_contact_email=None, - service_tree_infos=None, - resource_access_policy=None, - resource_access_roles=None, - opt_in_headers=None, - required_features_policy=None, - subscription_state_override_actions=None, - soft_delete_ttl=None, - managed_by_tenant_id=None, - providerhub_metadata_authorizations=None, - providerhub_metadata_authentication=None, - lighthouse_authorizations=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - provider_namespace=provider_namespace, - provider_authentication=provider_authentication, - provider_authorizations=provider_authorizations, - namespace=namespace, - provider_version=provider_version, - provider_type=provider_type, - required_features=required_features, - capabilities=capabilities, - metadata=metadata, - template_deployment_options=template_deployment_options, - schema_owners=schema_owners, - manifest_owners=manifest_owners, - incident_routing_service=incident_routing_service, - incident_routing_team=incident_routing_team, - incident_contact_email=incident_contact_email, - service_tree_infos=service_tree_infos, - resource_access_policy=resource_access_policy, - opt_in_headers=opt_in_headers, - resource_access_roles=resource_access_roles, - subscription_state_override_actions=subscription_state_override_actions, - soft_delete_ttl=soft_delete_ttl, - required_features_policy=required_features_policy, - managed_by_tenant_id=managed_by_tenant_id, - providerhub_metadata_authorizations=providerhub_metadata_authorizations, - providerhub_metadata_authentication=providerhub_metadata_authentication, - lighthouse_authorizations=lighthouse_authorizations) - - -def providerhub_provider_registration_update(instance, - provider_namespace, - provider_authentication=None, - provider_authorizations=None, - namespace=None, - provider_version=None, - provider_type=None, - required_features=None, - capabilities=None, - metadata=None, - template_deployment_options=None, - schema_owners=None, - manifest_owners=None, - incident_routing_service=None, - incident_routing_team=None, - incident_contact_email=None, - service_tree_infos=None, - resource_access_policy=None, - resource_access_roles=None, - opt_in_headers=None, - required_features_policy=None, - subscription_state_override_actions=None, - soft_delete_ttl=None, - managed_by_tenant_id=None, - providerhub_metadata_authorizations=None, - providerhub_metadata_authentication=None, - lighthouse_authorizations=None, - no_wait=False): - if provider_authentication is not None: - instance.undefined = provider_authentication - if provider_authorizations is not None: - instance.undefined = provider_authorizations - if namespace is not None: - instance.undefined = namespace - if provider_version is not None: - instance.undefined = provider_version - if provider_type is not None: - instance.undefined = provider_type - if required_features is not None: - instance.undefined = required_features - if capabilities is not None: - instance.undefined = capabilities - if metadata is not None: - instance.undefined = metadata - if template_deployment_options is not None: - instance.undefined = template_deployment_options - if schema_owners is not None: - instance.undefined = schema_owners - if manifest_owners is not None: - instance.undefined = manifest_owners - if incident_routing_service is not None: - instance.undefined = incident_routing_service - if incident_routing_team is not None: - instance.undefined = incident_routing_team - if incident_contact_email is not None: - instance.undefined = incident_contact_email - if service_tree_infos is not None: - instance.undefined = service_tree_infos - if resource_access_policy is not None: - instance.undefined = resource_access_policy - if resource_access_roles is not None: - instance.undefined = resource_access_roles - if opt_in_headers is not None: - instance.undefined = opt_in_headers - if required_features_policy is not None: - instance.undefined = required_features_policy - if subscription_state_override_actions is not None: - instance.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions = subscription_state_override_actions - if soft_delete_ttl is not None: - instance.properties.subscription_lifecycle_notification_specifications.soft_delete_ttl = soft_delete_ttl - return instance - - -def providerhub_provider_registration_delete(client, - provider_namespace): - return client.delete(provider_namespace=provider_namespace) - - -def providerhub_provider_registration_generate_operation(client, - provider_namespace): - return client.generate_operations(provider_namespace=provider_namespace) - - -def providerhub_resource_type_registration_list(client, - provider_namespace): - return client.list_by_provider_registration(provider_namespace=provider_namespace) - - -def providerhub_resource_type_registration_show(client, - provider_namespace, - resource_type): - return client.get(provider_namespace=provider_namespace, - resource_type=resource_type) - - -def providerhub_resource_type_registration_create(client, - provider_namespace, - resource_type, - routing_type=None, - regionality=None, - endpoints=None, - marketplace_type=None, - swagger_specifications=None, - allowed_unauthorized_actions=None, - authorization_action_mappings=None, - linked_access_checks=None, - default_api_version=None, - logging_rules=None, - throttling_rules=None, - required_features=None, - enable_async_operation=None, - enable_third_party_s2s=None, - is_pure_proxy=None, - identity_management=None, - check_name_availability_specifications=None, - disallowed_action_verbs=None, - service_tree_infos=None, - subscription_state_rules=None, - template_deployment_options=None, - extended_locations=None, - resource_move_policy=None, - resource_deletion_policy=None, - opt_in_headers=None, - subscription_state_override_actions=None, - soft_delete_ttl=None, - required_features_policy=None, - resource_creation_begin=None, - resource_patch_begin=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - provider_namespace=provider_namespace, - resource_type=resource_type, - routing_type=routing_type, - regionality=regionality, - endpoints=endpoints, - marketplace_type=marketplace_type, - swagger_specifications=swagger_specifications, - allowed_unauthorized_actions=allowed_unauthorized_actions, - authorization_action_mappings=authorization_action_mappings, - linked_access_checks=linked_access_checks, - default_api_version=default_api_version, - logging_rules=logging_rules, - throttling_rules=throttling_rules, - required_features=required_features, - enable_async_operation=enable_async_operation, - enable_third_party_s2s=enable_third_party_s2s, - is_pure_proxy=is_pure_proxy, - identity_management=identity_management, - check_name_availability_specifications=check_name_availability_specifications, - disallowed_action_verbs=disallowed_action_verbs, - service_tree_infos=service_tree_infos, - subscription_state_rules=subscription_state_rules, - template_deployment_options=template_deployment_options, - extended_locations=extended_locations, - resource_move_policy=resource_move_policy, - resource_deletion_policy=resource_deletion_policy, - opt_in_headers=opt_in_headers, - subscription_state_override_actions=subscription_state_override_actions, - soft_delete_ttl=soft_delete_ttl, - required_features_policy=required_features_policy, - resource_creation_begin=resource_creation_begin, - resource_patch_begin=resource_patch_begin) - - -def providerhub_resource_type_registration_update(instance, - provider_namespace, - resource_type, - routing_type=None, - regionality=None, - endpoints=None, - marketplace_type=None, - swagger_specifications=None, - allowed_unauthorized_actions=None, - authorization_action_mappings=None, - linked_access_checks=None, - default_api_version=None, - logging_rules=None, - throttling_rules=None, - required_features=None, - enable_async_operation=None, - enable_third_party_s2s=None, - is_pure_proxy=None, - identity_management=None, - check_name_availability_specifications=None, - disallowed_action_verbs=None, - service_tree_infos=None, - subscription_state_rules=None, - template_deployment_options=None, - extended_locations=None, - resource_move_policy=None, - resource_deletion_policy=None, - opt_in_headers=None, - subscription_state_override_actions=None, - soft_delete_ttl=None, - required_features_policy=None, - resource_creation_begin=None, - resource_patch_begin=None, - no_wait=False): - if routing_type is not None: - instance.properties.routing_type = routing_type - if regionality is not None: - instance.properties.regionality = regionality - if endpoints is not None: - instance.properties.endpoints = endpoints - if marketplace_type is not None: - instance.properties.marketplace_type = marketplace_type - if swagger_specifications is not None: - instance.properties.swagger_specifications = swagger_specifications - if allowed_unauthorized_actions is not None: - instance.properties.allowed_unauthorized_actions = allowed_unauthorized_actions - if authorization_action_mappings is not None: - instance.properties.authorization_action_mappings = authorization_action_mappings - if linked_access_checks is not None: - instance.properties.linked_access_checks = linked_access_checks - if default_api_version is not None: - instance.properties.default_api_version = default_api_version - if logging_rules is not None: - instance.properties.logging_rules = logging_rules - if throttling_rules is not None: - instance.properties.throttling_rules = throttling_rules - if required_features is not None: - instance.properties.required_features = required_features - if enable_async_operation is not None: - instance.properties.enable_async_operation = enable_async_operation - if enable_third_party_s2s is not None: - instance.properties.enable_third_party_s2s = enable_third_party_s2s - if is_pure_proxy is not None: - instance.properties.is_pure_proxy = is_pure_proxy - if identity_management is not None: - instance.properties.identity_management = identity_management - if check_name_availability_specifications is not None: - instance.properties.check_name_availability_specifications = check_name_availability_specifications - if disallowed_action_verbs is not None: - instance.properties.disallowed_action_verbs = disallowed_action_verbs - if service_tree_infos is not None: - instance.properties.service_tree_infos = service_tree_infos - if subscription_state_rules is not None: - instance.properties.subscription_state_rules = subscription_state_rules - if template_deployment_options is not None: - instance.properties.template_deployment_options = template_deployment_options - if extended_locations is not None: - instance.properties.extended_locations = extended_locations - if resource_move_policy is not None: - instance.properties.resource_move_policy = resource_move_policy - if resource_deletion_policy is not None: - instance.properties.resource_deletion_policy = resource_deletion_policy - if opt_in_headers is not None: - instance.properties.request_header_options.opt_in_headers = opt_in_headers - if subscription_state_override_actions is not None: - instance.properties.subscription_lifecycle_notification_specifications.subscription_state_override_actions = subscription_state_override_actions - if soft_delete_ttl is not None: - instance.properties.subscription_lifecycle_notification_specifications.soft_delete_ttl = soft_delete_ttl - if required_features_policy is not None: - instance.properties.features_rule.required_features_policy = required_features_policy - if resource_creation_begin is not None: - instance.properties.extension_options.resource_creation_begin = resource_creation_begin - return instance - - -def providerhub_resource_type_registration_delete(client, - provider_namespace, - resource_type): - return client.delete(provider_namespace=provider_namespace, - resource_type=resource_type) - - -def providerhub_sku_list(client, - provider_namespace, - resource_type, - nested_resource_type_first=None, - nested_resource_type_second=None, - nested_resource_type_third=None): - if provider_namespace is not None and resource_type is not None and nested_resource_type_first is not None and nested_resource_type_second is not None and nested_resource_type_third is not None: - return client.list_by_resource_type_registrations_nested_resource_type_third(provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type_first=nested_resource_type_first, - nested_resource_type_second=nested_resource_type_second, - nested_resource_type_third=nested_resource_type_third) - elif provider_namespace is not None and resource_type is not None and nested_resource_type_first is not None and nested_resource_type_second is not None: - return client.list_by_resource_type_registrations_nested_resource_type_second(provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type_first=nested_resource_type_first, - nested_resource_type_second=nested_resource_type_second) - elif provider_namespace is not None and resource_type is not None and nested_resource_type_first is not None: - return client.list_by_resource_type_registrations_nested_resource_type_first(provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type_first=nested_resource_type_first) - return client.list_by_resource_type_registrations(provider_namespace=provider_namespace, - resource_type=resource_type) - - -def providerhub_sku_show(client, - provider_namespace, - resource_type, - sku): - return client.get(provider_namespace=provider_namespace, - resource_type=resource_type, - sku=sku) - - -def providerhub_sku_create(client, - provider_namespace, - resource_type, - sku, - sku_settings, - nested_resource_type_first=None, - nested_resource_type_second=None, - nested_resource_type_third=None): - properties = {} - properties['sku_settings'] = sku_settings - if nested_resource_type_first is not None and nested_resource_type_second is not None and nested_resource_type_third is not None: - return client.create_or_update_nested_resource_type_third(provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type_first=nested_resource_type_first, - nested_resource_type_second=nested_resource_type_second, - nested_resource_type_third=nested_resource_type_third, - sku=sku, - properties=properties) - elif nested_resource_type_first is not None and nested_resource_type_second is not None: - return client.create_or_update_nested_resource_type_second(provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type_first=nested_resource_type_first, - nested_resource_type_second=nested_resource_type_second, - sku=sku, - properties=properties) - elif nested_resource_type_first is not None: - return client.create_or_update_nested_resource_type_first(provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type_first=nested_resource_type_first, - sku=sku, - properties=properties) - return client.create_or_update(provider_namespace=provider_namespace, - resource_type=resource_type, - sku=sku, - properties=properties) - - -def providerhub_sku_update(client, - provider_namespace, - resource_type, - sku, - sku_settings): - properties = {} - properties['skuSettings'] = sku_settings - return client.create_or_update(provider_namespace=provider_namespace, - resource_type=resource_type, - sku=sku, - properties=properties) - - -def providerhub_sku_delete(client, - provider_namespace, - resource_type, - sku, - nested_resource_type_first=None, - nested_resource_type_second=None, - nested_resource_type_third=None): - if provider_namespace is not None and resource_type is not None and nested_resource_type_first is not None and nested_resource_type_second is not None and nested_resource_type_third is not None and sku is not None: - return client.delete_nested_resource_type_third(provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type_first=nested_resource_type_first, - nested_resource_type_second=nested_resource_type_second, - nested_resource_type_third=nested_resource_type_third, - sku=sku) - elif provider_namespace is not None and resource_type is not None and nested_resource_type_first is not None and nested_resource_type_second is not None and sku is not None: - return client.delete_nested_resource_type_second(provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type_first=nested_resource_type_first, - nested_resource_type_second=nested_resource_type_second, - sku=sku) - elif provider_namespace is not None and resource_type is not None and nested_resource_type_first is not None and sku is not None: - return client.delete_nested_resource_type_first(provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type_first=nested_resource_type_first, - sku=sku) - return client.delete(provider_namespace=provider_namespace, - resource_type=resource_type, - sku=sku) - - -def providerhub_sku_show_nested_resource_type_first(client, - provider_namespace, - resource_type, - nested_resource_type_first, - sku): - return client.get_nested_resource_type_first(provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type_first=nested_resource_type_first, - sku=sku) - - -def providerhub_sku_show_nested_resource_type_second(client, - provider_namespace, - resource_type, - nested_resource_type_first, - nested_resource_type_second, - sku): - return client.get_nested_resource_type_second(provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type_first=nested_resource_type_first, - nested_resource_type_second=nested_resource_type_second, - sku=sku) - - -def providerhub_sku_show_nested_resource_type_third(client, - provider_namespace, - resource_type, - nested_resource_type_first, - nested_resource_type_second, - nested_resource_type_third, - sku): - return client.get_nested_resource_type_third(provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type_first=nested_resource_type_first, - nested_resource_type_second=nested_resource_type_second, - nested_resource_type_third=nested_resource_type_third, - sku=sku) diff --git a/src/providerhub/azext_providerhub/manual/__init__.py b/src/providerhub/azext_providerhub/manual/__init__.py deleted file mode 100644 index c9cfdc73e77..00000000000 --- a/src/providerhub/azext_providerhub/manual/__init__.py +++ /dev/null @@ -1,12 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/src/providerhub/azext_providerhub/tests/latest/example_steps.py b/src/providerhub/azext_providerhub/tests/latest/example_steps.py index ace06ccfff3..ed8e22ebe4c 100644 --- a/src/providerhub/azext_providerhub/tests/latest/example_steps.py +++ b/src/providerhub/azext_providerhub/tests/latest/example_steps.py @@ -21,7 +21,7 @@ def step_custom_rollout_create(test, checks=None): test.cmd('az providerhub custom-rollout create ' '--provider-namespace "{providerNamespace}" ' '--rollout-name "{customRolloutName}" ' - '--canary regions="EastUS2EUAP" regions="centraluseuap"', + '--canary region="EastUS2EUAP" region="centraluseuap"', checks=[]) @@ -55,9 +55,7 @@ def step_default_rollout_create(test, checks=None): checks = [] test.cmd('az providerhub default-rollout create ' '--provider-namespace "{providerNamespace}" ' - '--rollout-name "{defaultRolloutName}" ' - '--rest-of-the-world-group-two wait-duration="PT2H" ' - '--canary skip-regions="centraluseuap"', + '--rollout-name "{defaultRolloutName}" ', checks=checks) @@ -147,7 +145,6 @@ def step_manifest_checkin(test, checks=None): checks = [] test.cmd('az providerhub manifest checkin ' '--environment "Prod" ' - '--baseline-arm-manifest-location "EastUS2EUAP" ' '--provider-namespace "{providerNamespace}"', checks=checks) @@ -236,8 +233,7 @@ def step_resource_type_registration_create(test, checks=None): if checks is None: checks = [] test.cmd('az providerhub resource-type-registration create ' - '--endpoints api-versions="2020-01-01-preview" ' - 'locations="" required-features="Microsoft.Contoso/RPaaSSampleApp" ' + '--endpoints "[{api-versions:[2019-01-01],locations:[global]}]" ' '--regionality "Global" ' '--routing-type "Proxyonly, Extension" ' '--swagger-specifications api-versions="2020-01-01-preview" swagger-spec-folder-uri="https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/contoso/resource-manager/Microsoft.Contoso/" ' diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_azure_providerhub.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_azure_providerhub.yaml new file mode 100644 index 00000000000..1d5be95b95f --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_azure_providerhub.yaml @@ -0,0 +1,78 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub manifest generate + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/generateManifest?api-version=2024-04-01-preview + response: + body: + string: '{"providerAuthorizations":[{"applicationId":"3cfadeba-63f1-46f4-8086-786a3f24045f"}],"namespace":"Private.VPTest","providerVersion":"2.0","providerType":"Internal, + Hidden","requiredFeatures":["Private.VPTest/EnableProvider"],"resourceTypes":[{"name":"testBridge","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","endpoints":[{"apiVersions":["2021-10-01-privatepreview"],"endpointUri":"https://westcentralus.metarp.azure.com/rolelocation/westcentralus/","locations":["West + Central US"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":false}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"Ingredients","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","endpoints":[{"apiVersions":["2022-09-23-preview"],"endpointUri":"https://westus.metarp.azure.com/rolelocation/westus/","locations":["West + US"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2022-09-23-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/eastus/","locations":["East + US"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2021-10-01-privatepreview","2022-09-23-preview"],"endpointUri":"https://westcentralus.metarp.azure.com/rolelocation/westcentralus/","locations":["West + Central US"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"Employees","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","endpoints":[{"apiVersions":["2021-09-01"],"endpointUri":"https://global.metarp.azure.com/","locations":["global"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"disallowedActionVerbs":["write"],"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"Tables","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","endpoints":[{"apiVersions":["2021-09-01"],"endpointUri":"https://global.metarp.azure.com/","locations":["global"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"disallowedActionVerbs":["write"],"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"typeOne","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","allowedUnauthorizedActions":["Private.VPTest/typeOne/read"],"linkedAccessChecks":[{"actionName":"Private.VPTest/typeOne/write","linkedProperty":"extendedLocation.name","linkedActionVerb":"read","linkedType":"fff"}],"defaultApiVersion":"2023-04-01-preview","endpoints":[{"apiVersions":["2023-04-01-preview"],"endpointUri":"https://westus.metarp.azure.com/rolelocation/westus/","locations":["West + US"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2023-04-01-preview"],"endpointUri":"https://westus2.metarp.azure.com/rolelocation/westus2/","locations":["West + US 2"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2023-04-01-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/eastus/","locations":["East + US"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":false}},"requestHeaderOptions":{"optInHeaders":"SignedUserToken, + ClientGroupMembership, SignedAuxiliaryTokens","optOutHeaders":"NotSpecified"},"disallowedActionVerbs":["write"],"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"extendedLocations":[{"type":"CustomLocation","supportedPolicy":"NotSpecified"}],"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"Chairs","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","endpoints":[{"apiVersions":["2021-09-01"],"endpointUri":"https://global.metarp.azure.com/","locations":["global"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"disallowedActionVerbs":["write"],"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"Ingredients2","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","endpoints":[{"apiVersions":["2022-09-23-preview"],"endpointUri":"https://westus.metarp.azure.com/rolelocation/westus/","locations":["West + US"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2022-09-23-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/eastus/","locations":["East + US"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]}],"management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator"],"incidentRoutingService":"Resource + Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"rpaascore@microsoft.com","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}],"resourceAccessPolicy":"NotSpecified"},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":{"BypassManifestValidation":true,"onboardedVia":"ProviderHub"},"globalNotificationEndpoints":[{"enabled":true,"endpointUri":"https://global.metarp.azure.com"}],"reRegisterSubscriptionMetadata":{"enabled":true,"concurrencyLimit":100},"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":true}}' + headers: + cache-control: + - no-cache + content-length: + - '7742' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 May 2024 00:18:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/1407a767-54a0-44bb-b28c-fb4e75c8e8ad + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 5E26D509F3F44CF09369418F6B29894E Ref B: CO6AA3150217031 Ref C: 2024-05-30T00:18:30Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_custom_rollout_create.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_custom_rollout_create.yaml new file mode 100644 index 00000000000..4ece07dcec3 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_custom_rollout_create.yaml @@ -0,0 +1,60 @@ +interactions: +- request: + body: '{"properties": {"specification": {"canary": {"regions": ["EastUS2EUAP", + "centraluseuap"]}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub custom-rollout create + Connection: + - keep-alive + Content-Length: + - '92' + Content-Type: + - application/json + ParameterSetName: + - --provider-namespace --rollout-name --canary + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/customRollouts/canaryTesting01?api-version=2024-04-01-preview + response: + body: + string: '{"error":{"code":"StorageNotProvisioned","message":"Storage provisioning + not done for locations: ''WESTUS:extensionresourcetype,WESTUS:testCLI''. Please + perform default rollout job first for ensuring that storage is provisioned. + Prerequisites can be found: https://aka.ms/CustomRolloutPreReq"}}' + headers: + cache-control: + - no-cache + content-length: + - '292' + content-type: + - application/json + date: + - Mon, 03 Jun 2024 16:50:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/2f75d913-995a-4779-93a9-4f2faf494b89 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: EF3B972848E64E92ADBE056C965E277F Ref B: DM2EDGE0606 Ref C: 2024-06-03T16:50:05Z' + status: + code: 412 + message: Precondition Failed +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_providerhub_Scenario.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_providerhub_Scenario.yaml deleted file mode 100644 index 6f93ad484cf..00000000000 --- a/src/providerhub/azext_providerhub/tests/latest/recordings/test_providerhub_Scenario.yaml +++ /dev/null @@ -1,1784 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub manifest generate - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/generateManifest?api-version=2020-11-20 - response: - body: - string: '{"providerAuthorizations":[{"applicationId":"3d834152-5efa-46f7-85a4-a18c2b5d46f9","roleDefinitionId":"760505bf-dcfa-4311-b890-18da392a00b2"}],"namespace":"Microsoft.Contoso","providerVersion":"2.0","providerType":"Internal, - Hidden","resourceTypes":[{"name":"extensionresourcetype","routingType":"ProxyOnly, - Extension","resourceValidation":"ReservedWords, ProfaneWords","endpoints":[{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://global.metarp.azure.com/","locations":[""],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, - DeploymentRequests"},"linkedOperationRules":[]},{"name":"Operations","routingType":"ProxyOnly, - Tenant","resourceValidation":"ReservedWords, ProfaneWords","allowedUnauthorizedActions":["microsoft.contoso/operations/read"],"endpoints":[{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://global.metarp.azure.com/","locations":[""],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, - DeploymentRequests"},"linkedOperationRules":[]},{"name":"clusters","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, - ProfaneWords","linkedAccessChecks":[{"actionName":"Microsoft.Contoso/clusters/write","linkedProperty":"extendedLocation.name","linkedAction":"Microsoft.ExtendedLocation/customLocations/deploy/action"}],"endpoints":[{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://eastus2euap.metarp.azure.com/rolelocation/eastus2euap/","locations":["East - US 2 EUAP"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"Canary"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/eastus/","locations":["East - US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/eastus2/","locations":["East - US 2"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://westus.metarp.azure.com/rolelocation/westus/","locations":["West - US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://westus2.metarp.azure.com/rolelocation/westus2/","locations":["West - US 2"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://westcentralus.metarp.azure.com/rolelocation/centralus/","locations":["Central - US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://westcentralus.metarp.azure.com/rolelocation/westcentralus/","locations":["West - Central US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://westus.metarp.azure.com/rolelocation/southcentralus/","locations":["South - Central US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/northcentralus/","locations":["North - Central US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://northeurope.metarp.azure.com/rolelocation/francecentral/","locations":["France - Central"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/southeastasia/","locations":["Southeast - Asia"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/eastasia/","locations":["East - Asia"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/koreacentral/","locations":["Korea - Central"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/australiaeast/","locations":["Australia - East"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://northeurope.metarp.azure.com/rolelocation/uksouth/","locations":["UK - South"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/japaneast/","locations":["Japan - East"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://westeurope.metarp.azure.com/rolelocation/westeurope/","locations":["West - Europe"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://northeurope.metarp.azure.com/rolelocation/northeurope/","locations":["North - Europe"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, - DeploymentRequests"},"extendedLocations":[{"type":"CustomLocation","supportedPolicy":"NotSpecified"}],"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"locations","routingType":"ProxyOnly","resourceValidation":"ReservedWords, - ProfaneWords","endpoints":[{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://global.metarp.azure.com/","locations":[""],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, - DeploymentRequests"},"linkedOperationRules":[]},{"name":"locations/operationStatuses","routingType":"ProxyOnly, - Tenant, LocationBased","resourceValidation":"ReservedWords, ProfaneWords","allowedUnauthorizedActions":["Microsoft.Contoso/Locations/OperationStatuses/read","Microsoft.Contoso/Locations/OperationStatuses/write"],"endpoints":[{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/eastus/","locations":["East - US"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/eastus2/","locations":["East - US 2"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://westus2.metarp.azure.com/rolelocation/westus2/","locations":["West - US 2"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://northeurope.metarp.azure.com/rolelocation/uksouth/","locations":["UK - South"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://westcentralus.metarp.azure.com/rolelocation/centralus/","locations":["Central - US"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://westcentralus.metarp.azure.com/rolelocation/westcentralus/","locations":["West - Central US"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/japaneast/","locations":["Japan - East"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/eastasia/","locations":["East - Asia"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://westus.metarp.azure.com/rolelocation/westus/","locations":["West - US"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://eastus2euap.metarp.azure.com/rolelocation/eastus2euap/","locations":["East - US 2 EUAP"],"timeout":"PT20S","endpointType":"Canary"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/australiaeast/","locations":["Australia - East"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/southeastasia/","locations":["Southeast - Asia"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://northeurope.metarp.azure.com/rolelocation/francecentral/","locations":["France - Central"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://westeurope.metarp.azure.com/rolelocation/westeurope/","locations":["West - Europe"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://northeurope.metarp.azure.com/rolelocation/northeurope/","locations":["North - Europe"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://westus.metarp.azure.com/rolelocation/southcentralus/","locations":["South - Central US"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/northcentralus/","locations":["North - Central US"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/koreacentral/","locations":["Korea - Central"],"timeout":"PT20S","endpointType":"NotSpecified"}],"linkedOperationRules":[]},{"name":"towers","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, - ProfaneWords","linkedAccessChecks":[{"actionName":"Microsoft.Contoso/towers/write","linkedProperty":"extendedLocation.name","linkedAction":"Microsoft.ExtendedLocation/customLocations/deploy/action"}],"endpoints":[{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://eastus2euap.metarp.azure.com/rolelocation/eastus2euap/","locations":["East - US 2 EUAP"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"Canary"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/eastus/","locations":["East - US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/eastus2/","locations":["East - US 2"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://westus.metarp.azure.com/rolelocation/westus/","locations":["West - US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://westus2.metarp.azure.com/rolelocation/westus2/","locations":["West - US 2"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://westcentralus.metarp.azure.com/rolelocation/centralus/","locations":["Central - US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://westcentralus.metarp.azure.com/rolelocation/westcentralus/","locations":["West - Central US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://westus.metarp.azure.com/rolelocation/southcentralus/","locations":["South - Central US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/northcentralus/","locations":["North - Central US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://northeurope.metarp.azure.com/rolelocation/francecentral/","locations":["France - Central"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/koreacentral/","locations":["Korea - Central"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/southeastasia/","locations":["Southeast - Asia"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/eastasia/","locations":["East - Asia"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/australiaeast/","locations":["Australia - East"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://northeurope.metarp.azure.com/rolelocation/uksouth/","locations":["UK - South"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/japaneast/","locations":["Japan - East"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://westeurope.metarp.azure.com/rolelocation/westeurope/","locations":["West - Europe"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2020-01-01-preview"],"endpointUri":"https://northeurope.metarp.azure.com/rolelocation/northeurope/","locations":["North - Europe"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, - DeploymentRequests"},"extendedLocations":[{"type":"CustomLocation","supportedPolicy":"NotSpecified"}],"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"employees","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, - ProfaneWords","endpoints":[{"apiVersions":["2018-11-01-preview","2020-01-01-preview","2019-01-01"],"endpointUri":"https://westus.metarp.azure.com/rolelocation/westus/","locations":["West - US"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2018-11-01-preview","2020-01-01-preview","2019-01-01"],"endpointUri":"https://westcentralus.metarp.azure.com/rolelocation/westcentralus/","locations":["West - Central US"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2018-11-01-preview","2020-01-01-preview","2019-01-01"],"endpointUri":"https://westeurope.metarp.azure.com/rolelocation/westeurope/","locations":["West - Europe"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2018-11-01-preview","2020-01-01-preview","2019-01-01"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/southeastasia/","locations":["Southeast - Asia"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2018-11-01-preview","2020-01-01-preview","2019-01-01"],"endpointUri":"https://westus2.metarp.azure.com/rolelocation/westus2/","locations":["West - US 2"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2018-11-01-preview","2020-01-01-preview","2019-01-01"],"endpointUri":"https://eastus2euap.metarp.azure.com/rolelocation/eastus2euap/","locations":["East - US 2 EUAP"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"timeout":"PT20S","endpointType":"Canary"},{"apiVersions":["2018-11-01-preview","2020-01-01-preview","2019-01-01"],"endpointUri":"https://northeurope.metarp.azure.com/rolelocation/northeurope/","locations":["North - Europe"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2018-11-01-preview","2020-01-01-preview","2019-01-01"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/eastus/","locations":["East - US"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2018-11-01-preview","2020-01-01-preview","2019-01-01"],"endpointUri":"https://southeastasia.metarp.azure.com/rolelocation/eastasia/","locations":["East - Asia"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, - DeploymentRequests"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Enabled"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Enabled"}]},{"name":"installations","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, - ProfaneWords","linkedAccessChecks":[{"actionName":"Microsoft.Contoso/installations/write","linkedProperty":"extendedLocation.name","linkedAction":"Microsoft.ExtendedLocation/customLocations/deploy/action"}],"endpoints":[{"apiVersions":["2021-04-01-preview"],"endpointUri":"https://eastus2euap.metarp.azure.com/rolelocation/eastus2euap/","locations":["East - US 2 EUAP"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"timeout":"PT20S","endpointType":"Canary"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, - DeploymentRequests"},"extendedLocations":[{"type":"CustomLocation","supportedPolicy":"NotSpecified"}],"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]}],"management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator"],"incidentRoutingService":"Resource - Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"rpaascore@microsoft.com","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}],"resourceAccessPolicy":"NotSpecified"},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":{"onboardedVia":"ProviderHub"},"globalNotificationEndpoints":[{"enabled":true,"endpointUri":"https://global.metarp.azure.com"}],"reRegisterSubscriptionMetadata":{"enabled":true,"concurrencyLimit":100}}' - headers: - cache-control: - - no-cache - content-length: - - '21151' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:53:59 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"environment": "Prod", "baselineArmManifestLocation": "EastUS2EUAP"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub manifest checkin - Connection: - - keep-alive - Content-Length: - - '69' - Content-Type: - - application/json - ParameterSetName: - - --environment --baseline-arm-manifest-location --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/checkinManifest?api-version=2020-11-20 - response: - body: - string: '{"isCheckedIn":false,"statusMessage":"Manifest is successfully merged. - Use the Default/Custom rollout (http://aka.ms/rpaasrollout) to roll out the - manifest in ARM."}' - headers: - cache-control: - - no-cache - content-length: - - '165' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:02 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"specification": {"canary": {"regions": ["EastUS2EUAP", - "centraluseuap"]}}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub custom-rollout create - Connection: - - keep-alive - Content-Length: - - '92' - Content-Type: - - application/json - ParameterSetName: - - --provider-namespace --rollout-name --canary - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/customRollouts/canaryTesting01?api-version=2020-11-20 - response: - body: - string: '{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["EastUS2EUAP","centraluseuap"]}},"status":{"completedRegions":["centraluseuap","EastUS2EUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"canaryTesting01"}' - headers: - cache-control: - - no-cache - content-length: - - '371' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:09 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub custom-rollout show - Connection: - - keep-alive - ParameterSetName: - - --provider-namespace --rollout-name - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/customRollouts/canaryTesting01?api-version=2020-11-20 - response: - body: - string: '{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["EastUS2EUAP","centraluseuap"]}},"status":{"completedRegions":["centraluseuap","EastUS2EUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"canaryTesting01"}' - headers: - cache-control: - - no-cache - content-length: - - '371' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:09 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub custom-rollout list - Connection: - - keep-alive - ParameterSetName: - - --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/customRollouts?api-version=2020-11-20 - response: - body: - string: '{"value":[{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["Eastus2euap","brazilus","centraluseuap"]}},"status":{"completedRegions":["Eastus2euap","centraluseuap","brazilus"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"cr1"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["centraluseuap"]}},"status":{"completedRegions":["centraluseuap"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"rolloutTest1"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["EastUS2EUAP","centraluseuap"]}},"status":{"completedRegions":["centraluseuap","EastUS2EUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"canaryTesting01"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["centraluseuap"]}},"status":{"completedRegions":["centraluseuap"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"2021week2"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["centraluseuap"]}},"status":{"completedRegions":["centraluseuap"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"test_rollout"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["centraluseuap"]}},"status":{"completedRegions":["centraluseuap"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"cliRollout"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["Eastus2euap","centraluseuap","brazilus"]}},"status":{"completedRegions":["Eastus2euap","brazilus","centraluseuap"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"cliDefaultRollout"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["Eastus2euap","centraluseuap","brazilus"]}},"status":{"completedRegions":["centraluseuap","Eastus2euap","brazilus"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"2020week2"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["Eastus2euap"]}},"status":{"completedRegions":["Eastus2euap"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"customRolloutSDK"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["Eastus2euap","centraluseuap","brazilus"]}},"status":{"completedRegions":["centraluseuap","brazilus","Eastus2euap"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"drTest"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["eastus2euap"]}},"status":{"completedRegions":["eastus2euap"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"psCustomRollout"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["Eastus2EUAP"]}},"status":{"completedRegions":["Eastus2EUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"customRollout1"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["eastus2euap"]}},"status":{"completedRegions":["eastus2euap"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationscustomRollouts","name":"contosoDRollout"}]}' - headers: - cache-control: - - no-cache - content-length: - - '4653' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:09 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"properties": {"specification": {"canary": {"skipRegions": ["centraluseuap"]}, - "restOfTheWorldGroupTwo": {"waitDuration": "PT2H"}}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub default-rollout create - Connection: - - keep-alive - Content-Length: - - '133' - Content-Type: - - application/json - ParameterSetName: - - --provider-namespace --rollout-name --rest-of-the-world-group-two --canary - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/defaultRollouts/cliDefaultRollout?api-version=2020-11-20 - response: - body: - string: '{"properties":{"provisioningState":"RolloutInProgress","specification":{"canary":{"skipRegions":["centraluseuap"],"regions":["eastus2euap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia","brazilus"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","norwaywest","westindia","germanywestcentral","brazilsoutheast"]},"restOfTheWorldGroupTwo":{"waitDuration":"PT2H","regions":["northeurope","centralus","southeastasia","ukwest","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast","eastusslv","southindia","westus3","jioindiawest"]}},"status":{"nextTrafficRegion":"Canary","nextTrafficRegionScheduledTime":"2021-06-08T02:54:13.109957Z","completedRegions":[],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"cliDefaultRollout"}' - headers: - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ProviderHub/operationStatuses/313385b3-adfe-4203-b908-69a998807048?api-version=2019-10-01 - cache-control: - - no-cache - content-length: - - '1370' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:14 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub default-rollout show - Connection: - - keep-alive - ParameterSetName: - - --provider-namespace --rollout-name - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/defaultRollouts/cliDefaultRollout?api-version=2020-11-20 - response: - body: - string: '{"properties":{"provisioningState":"RolloutInProgress","specification":{"canary":{"skipRegions":["centraluseuap"],"regions":["eastus2euap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia","brazilus"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","norwaywest","westindia","germanywestcentral","brazilsoutheast"]},"restOfTheWorldGroupTwo":{"waitDuration":"PT2H","regions":["northeurope","centralus","southeastasia","ukwest","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast","eastusslv","southindia","westus3","jioindiawest"]}},"status":{"nextTrafficRegion":"Canary","nextTrafficRegionScheduledTime":"2021-06-08T02:54:13.109957Z","completedRegions":[],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"cliDefaultRollout"}' - headers: - cache-control: - - no-cache - content-length: - - '1370' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:14 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub default-rollout list - Connection: - - keep-alive - ParameterSetName: - - --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/defaultRollouts?api-version=2020-11-20 - response: - body: - string: '{"value":[{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","indiawest","uknorth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","germanycentral","norwaywest"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["northeurope","centralus","southeastasia","ukwest","indiasouth","uksouth2","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast"]}},"status":{"nextTrafficRegion":"None","completedRegions":["centralus","centraluseuap","eastasia","southeastasia","eastus","eastus2","eastus2euap","westus","westus2","northcentralus","southcentralus","westcentralus","northeurope","westeurope","japaneast","japanwest","brazilsouth","brazilus","australiasoutheast","australiaeast","westindia","southindia","centralindia","canadacentral","canadaeast","uksouth","ukwest","koreacentral","koreasouth","francecentral","francesouth","australiacentral","australiacentral2","uaecentral","uaenorth","southafricanorth","southafricawest","switzerlandnorth","switzerlandwest","germanynorth","germanywestcentral","norwayeast","norwaywest","brazilsoutheast"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"rolloutTest1"},{"properties":{"provisioningState":"Canceled","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","indiawest","uknorth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","germanycentral","norwaywest"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["northeurope","centralus","southeastasia","ukwest","indiasouth","uksouth2","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast"]}},"status":{"nextTrafficRegion":"MediumTraffic","nextTrafficRegionScheduledTime":"2020-07-24T22:11:01.4914842Z","completedRegions":["brazilus","eastus2euap","centraluseuap","westcentralus"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"rolloutTest5"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","indiawest","uknorth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","germanycentral","norwaywest"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["northeurope","centralus","southeastasia","ukwest","indiasouth","uksouth2","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast"]}},"status":{"nextTrafficRegion":"None","completedRegions":["centralus","centraluseuap","eastasia","southeastasia","eastus","eastus2","eastus2euap","westus","westus2","northcentralus","southcentralus","westcentralus","northeurope","westeurope","japaneast","japanwest","brazilsouth","brazilus","australiasoutheast","australiaeast","westindia","southindia","centralindia","canadacentral","canadaeast","uksouth","ukwest","koreacentral","koreasouth","francecentral","francesouth","australiacentral","australiacentral2","uaecentral","uaenorth","southafricanorth","southafricawest","switzerlandnorth","switzerlandwest","germanynorth","germanywestcentral","norwayeast","norwaywest","brazilsoutheast"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"rolloutTest9"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","indiawest","uknorth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","germanycentral","norwaywest"]},"restOfTheWorldGroupTwo":{"waitDuration":"PT2H","regions":["northeurope","centralus","southeastasia","ukwest","indiasouth","uksouth2","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast"]}},"status":{"nextTrafficRegion":"None","completedRegions":["centralus","centraluseuap","eastasia","southeastasia","eastus","eastus2","eastus2euap","westus","westus2","northcentralus","southcentralus","westcentralus","northeurope","westeurope","japaneast","japanwest","brazilsouth","brazilus","australiasoutheast","australiaeast","westindia","southindia","centralindia","canadacentral","canadaeast","uksouth","ukwest","koreacentral","koreasouth","francecentral","francesouth","australiacentral","australiacentral2","uaecentral","uaenorth","southafricanorth","southafricawest","switzerlandnorth","switzerlandwest","germanynorth","germanywestcentral","norwayeast","norwaywest","brazilsoutheast"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"foo"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","indiawest","uknorth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","germanycentral","norwaywest"]},"restOfTheWorldGroupTwo":{"waitDuration":"PT2H","regions":["northeurope","centralus","southeastasia","ukwest","indiasouth","uksouth2","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast"]}},"status":{"nextTrafficRegion":"None","completedRegions":["centralus","eastasia","southeastasia","eastus","westus","northcentralus","southcentralus","northeurope","westeurope","eastus2","brazilsouth","japanwest","japaneast","australiaeast","australiasoutheast","westindia","southindia","centralindia","canadacentral","canadaeast","australiacentral","australiacentral2","westus2","westcentralus","uksouth","ukwest","centraluseuap","koreacentral","koreasouth","francecentral","francesouth","germanynorth","germanywestcentral","southafricanorth","southafricawest","uaecentral","uaenorth","norwayeast","norwaywest","switzerlandnorth","switzerlandwest","brazilsoutheast","eastus2euap","brazilus","westus3"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"foo3"},{"properties":{"provisioningState":"Canceled","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","indiawest","uknorth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","germanycentral","norwaywest"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["northeurope","centralus","southeastasia","ukwest","indiasouth","uksouth2","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast"]}},"status":{"nextTrafficRegion":"LowTraffic","nextTrafficRegionScheduledTime":"2021-01-12T19:51:13.5550006Z","completedRegions":["brazilus","eastus2euap","centraluseuap"],"failedOrSkippedRegions":{"westcentralus":null,"northcentralus":null,"centralindia":null,"westus2":null,"westeurope":null,"eastus":null,"southcentralus":null,"eastasia":null,"uksouth":null,"indiawest":null,"uknorth":null,"canadacentral":null,"japanwest":null,"australiasoutheast":null,"koreacentral":null,"francecentral":null,"australiacentral":null,"westus":null,"uaecentral":null,"southafricawest":null,"switzerlandwest":null,"germanycentral":null,"norwaywest":null,"northeurope":null,"centralus":null,"southeastasia":null,"ukwest":null,"indiasouth":null,"uksouth2":null,"canadaeast":null,"brazilsouth":null,"japaneast":null,"australiaeast":null,"koreasouth":null,"eastus2":null,"francesouth":null,"australiacentral2":null,"uaenorth":null,"southafricanorth":null,"switzerlandnorth":null,"germanynorth":null,"norwayeast":null}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"sanjaiga_rollout"},{"properties":{"provisioningState":"Canceled","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","indiawest","uknorth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","germanycentral","norwaywest"]},"restOfTheWorldGroupTwo":{"waitDuration":"PT2H","regions":["northeurope","centralus","southeastasia","ukwest","indiasouth","uksouth2","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast"]}},"status":{"nextTrafficRegion":"LowTraffic","nextTrafficRegionScheduledTime":"2021-01-13T07:16:00.0719813Z","completedRegions":["eastus2euap","centraluseuap","brazilus"],"failedOrSkippedRegions":{"westcentralus":null,"northcentralus":null,"centralindia":null,"westus2":null,"westeurope":null,"eastus":null,"southcentralus":null,"eastasia":null,"uksouth":null,"indiawest":null,"uknorth":null,"canadacentral":null,"japanwest":null,"australiasoutheast":null,"koreacentral":null,"francecentral":null,"australiacentral":null,"westus":null,"uaecentral":null,"southafricawest":null,"switzerlandwest":null,"germanycentral":null,"norwaywest":null,"northeurope":null,"centralus":null,"southeastasia":null,"ukwest":null,"indiasouth":null,"uksouth2":null,"canadaeast":null,"brazilsouth":null,"japaneast":null,"australiaeast":null,"koreasouth":null,"eastus2":null,"francesouth":null,"australiacentral2":null,"uaenorth":null,"southafricanorth":null,"switzerlandnorth":null,"germanynorth":null,"norwayeast":null}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"2021week2"},{"properties":{"provisioningState":"Canceled","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","indiawest","uknorth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","germanycentral","norwaywest"]},"restOfTheWorldGroupTwo":{"waitDuration":"PT2H","regions":["northeurope","centralus","southeastasia","ukwest","indiasouth","uksouth2","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast"]}},"status":{"nextTrafficRegion":"LowTraffic","nextTrafficRegionScheduledTime":"2021-01-14T05:09:56.8517117Z","completedRegions":["eastus2euap","centraluseuap","brazilus"],"failedOrSkippedRegions":{"westcentralus":null,"northcentralus":null,"centralindia":null,"westus2":null,"westeurope":null,"eastus":null,"southcentralus":null,"eastasia":null,"uksouth":null,"indiawest":null,"uknorth":null,"canadacentral":null,"japanwest":null,"australiasoutheast":null,"koreacentral":null,"francecentral":null,"australiacentral":null,"westus":null,"uaecentral":null,"southafricawest":null,"switzerlandwest":null,"germanycentral":null,"norwaywest":null,"northeurope":null,"centralus":null,"southeastasia":null,"ukwest":null,"indiasouth":null,"uksouth2":null,"canadaeast":null,"brazilsouth":null,"japaneast":null,"australiaeast":null,"koreasouth":null,"eastus2":null,"francesouth":null,"australiacentral2":null,"uaenorth":null,"southafricanorth":null,"switzerlandnorth":null,"germanynorth":null,"norwayeast":null}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"2020week2"},{"properties":{"provisioningState":"Canceled","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"PT4H","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"PT4H","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"PT4H","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"PT4H","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","norwaywest","westindia","germanywestcentral"]},"restOfTheWorldGroupTwo":{"waitDuration":"PT4H","regions":["northeurope","centralus","southeastasia","ukwest","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast","brazilsoutheast","eastusslv","southindia","westus3"]}},"status":{"nextTrafficRegion":"LowTraffic","nextTrafficRegionScheduledTime":"2021-05-12T05:02:43.6450086Z","completedRegions":["brazilus","eastus2euap","centraluseuap"],"failedOrSkippedRegions":{"westcentralus":null,"northcentralus":null,"centralindia":null,"westus2":null,"westeurope":null,"eastus":null,"southcentralus":null,"eastasia":null,"uksouth":null,"canadacentral":null,"japanwest":null,"australiasoutheast":null,"koreacentral":null,"francecentral":null,"australiacentral":null,"westus":null,"uaecentral":null,"southafricawest":null,"switzerlandwest":null,"norwaywest":null,"westindia":null,"germanywestcentral":null,"northeurope":null,"centralus":null,"southeastasia":null,"ukwest":null,"canadaeast":null,"brazilsouth":null,"japaneast":null,"australiaeast":null,"koreasouth":null,"eastus2":null,"francesouth":null,"australiacentral2":null,"uaenorth":null,"southafricanorth":null,"switzerlandnorth":null,"germanynorth":null,"norwayeast":null,"brazilsoutheast":null,"eastusslv":null,"southindia":null,"westus3":null}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"2021_w03_sanjaiga"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","norwaywest","westindia","germanywestcentral"]},"restOfTheWorldGroupTwo":{"waitDuration":"PT2H","regions":["northeurope","centralus","southeastasia","ukwest","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast","brazilsoutheast","eastusslv","southindia","westus3"]}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"Failed","completedRegions":["centraluseuap","eastus2euap","brazilus","westcentralus","centralindia","northcentralus","westus2","southafricawest","westindia","australiacentral","australiasoutheast","uaecentral","uksouth","francecentral","eastus","koreacentral","japanwest","eastasia","canadacentral","southcentralus","germanywestcentral","norwaywest","switzerlandwest","westus","westeurope","uaenorth","southindia","southeastasia","koreasouth","japaneast","brazilsoutheast","germanynorth","switzerlandnorth","southafricanorth","eastus2","australiaeast","brazilsouth","ukwest","centralus","westus3","eastusslv","norwayeast","australiacentral2","francesouth","northeurope","canadaeast"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"2021_03_17_sanjaiga"},{"properties":{"provisioningState":"Failed","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","norwaywest","westindia","germanywestcentral"]},"restOfTheWorldGroupTwo":{"waitDuration":"PT2H","regions":["northeurope","centralus","southeastasia","ukwest","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast","brazilsoutheast","eastusslv","southindia","westus3"]}},"status":{"nextTrafficRegion":"RestOfTheWorldGroupOne","nextTrafficRegionScheduledTime":"2021-03-27T17:14:48.2120898Z","completedRegions":["centraluseuap","eastus2euap","brazilus","westcentralus","northcentralus","centralindia"],"failedOrSkippedRegions":{"westus2":{"code":"InternalServerError","message":"Exception - thrown while trying to get manifest for provider ''Microsoft.Contoso'', commitID - ''5044e04d01b3c08e2aa956cdfd93fba9cc966726''"}}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"jobreen_3232021"},{"properties":{"provisioningState":"Canceled","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","norwaywest","westindia","germanywestcentral"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["northeurope","centralus","southeastasia","ukwest","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast","brazilsoutheast","eastusslv","southindia","westus3"]}},"status":{"nextTrafficRegion":"LowTraffic","nextTrafficRegionScheduledTime":"2021-03-31T18:49:15.2512037Z","completedRegions":["brazilus","centraluseuap","eastus2euap"],"failedOrSkippedRegions":{"westcentralus":null,"northcentralus":null,"centralindia":null,"westus2":null,"westeurope":null,"eastus":null,"southcentralus":null,"eastasia":null,"uksouth":null,"canadacentral":null,"japanwest":null,"australiasoutheast":null,"koreacentral":null,"francecentral":null,"australiacentral":null,"westus":null,"uaecentral":null,"southafricawest":null,"switzerlandwest":null,"norwaywest":null,"westindia":null,"germanywestcentral":null,"northeurope":null,"centralus":null,"southeastasia":null,"ukwest":null,"canadaeast":null,"brazilsouth":null,"japaneast":null,"australiaeast":null,"koreasouth":null,"eastus2":null,"francesouth":null,"australiacentral2":null,"uaenorth":null,"southafricanorth":null,"switzerlandnorth":null,"germanynorth":null,"norwayeast":null,"brazilsoutheast":null,"eastusslv":null,"southindia":null,"westus3":null}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"jobreen_3232022"},{"properties":{"provisioningState":"Failed","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","norwaywest","westindia","germanywestcentral"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["northeurope","centralus","southeastasia","ukwest","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast","brazilsoutheast","eastusslv","southindia","westus3"]}},"status":{"nextTrafficRegion":"LowTraffic","nextTrafficRegionScheduledTime":"2021-03-31T21:30:26.9641926Z","completedRegions":["centraluseuap","eastus2euap","brazilus"],"failedOrSkippedRegions":{"francesouth":{"code":"RolloutFailedWithUnexpectedError","message":"Unexpected - error to rollout manifest or regional registration for ''Microsoft.Contoso'' - in region ''francesouth''"}}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"jobreen_03302021"},{"properties":{"provisioningState":"Canceled","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","norwaywest","westindia","germanywestcentral"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["northeurope","centralus","southeastasia","ukwest","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast","brazilsoutheast","eastusslv","southindia","westus3"]}},"status":{"nextTrafficRegion":"LowTraffic","nextTrafficRegionScheduledTime":"2021-04-07T21:18:16.0130609Z","completedRegions":["eastus2euap","brazilus","centraluseuap"],"failedOrSkippedRegions":{"westcentralus":null,"northcentralus":null,"centralindia":null,"westus2":null,"westeurope":null,"eastus":null,"southcentralus":null,"eastasia":null,"uksouth":null,"canadacentral":null,"japanwest":null,"australiasoutheast":null,"koreacentral":null,"francecentral":null,"australiacentral":null,"westus":null,"uaecentral":null,"southafricawest":null,"switzerlandwest":null,"norwaywest":null,"westindia":null,"germanywestcentral":null,"northeurope":null,"centralus":null,"southeastasia":null,"ukwest":null,"canadaeast":null,"brazilsouth":null,"japaneast":null,"australiaeast":null,"koreasouth":null,"eastus2":null,"francesouth":null,"australiacentral2":null,"uaenorth":null,"southafricanorth":null,"switzerlandnorth":null,"germanynorth":null,"norwayeast":null,"brazilsoutheast":null,"eastusslv":null,"southindia":null,"westus3":null}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"jobreen_04062022"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","norwaywest","westindia","germanywestcentral"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["northeurope","centralus","southeastasia","ukwest","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast","brazilsoutheast","eastusslv","southindia","westus3"]}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"Failed","completedRegions":["eastus2euap","brazilus","centraluseuap","westcentralus","northcentralus","centralindia","westus2","australiacentral","germanywestcentral","uaecentral","koreacentral","eastasia","westindia","southafricawest","westus","canadacentral","uksouth","norwaywest","eastus","switzerlandwest","australiasoutheast","japanwest","francecentral","southcentralus","westeurope","southindia","switzerlandnorth","norwayeast","uaenorth","francesouth","australiacentral2","koreasouth","westus3","southafricanorth","brazilsouth","canadaeast","japaneast","eastusslv","brazilsoutheast","germanynorth","centralus","eastus2","australiaeast","northeurope","ukwest","southeastasia"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"jobreen_04072022"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["brazilus","eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","norwaywest","westindia","germanywestcentral"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["northeurope","centralus","southeastasia","ukwest","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast","brazilsoutheast","eastusslv","southindia","westus3"]}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"Failed","completedRegions":["centraluseuap","brazilus","eastus2euap","westcentralus","centralindia","northcentralus","westus2","germanywestcentral","norwaywest","westindia","switzerlandwest","francecentral","australiacentral","southafricawest","southcentralus","uaecentral","canadacentral","eastasia","westus","eastus","uksouth","australiasoutheast","japanwest","koreacentral","westeurope","westus3","eastusslv","southafricanorth","uaenorth","australiacentral2","francesouth","eastus2","brazilsouth","northeurope","switzerlandnorth","norwayeast","koreasouth","japaneast","southeastasia","southindia","brazilsoutheast","germanynorth","australiaeast","ukwest","centralus","canadaeast"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"jobreen_05042022"},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia","brazilus"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","norwaywest","westindia","germanywestcentral","brazilsoutheast"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["northeurope","centralus","southeastasia","ukwest","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast","eastusslv","southindia","westus3","jioindiawest"]}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"Failed","completedRegions":["eastus2euap","centraluseuap","westcentralus","centralindia","northcentralus","brazilus","westus2","japanwest","switzerlandwest","westindia","uaecentral","francecentral","australiacentral","canadacentral","eastus","westus","southafricawest","uksouth","koreacentral","southcentralus","brazilsoutheast","germanywestcentral","norwaywest","eastasia","australiasoutheast","westeurope","jioindiawest","westus3","norwayeast","australiacentral2","francesouth","eastus2","eastusslv","germanynorth","australiaeast","switzerlandnorth","uaenorth","northeurope","southafricanorth","canadaeast","southindia","brazilsouth","koreasouth","japaneast","southeastasia","ukwest","centralus"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"jobreen_05282021"},{"properties":{"provisioningState":"Canceled","specification":{"canary":{"regions":["eastus2euap","centraluseuap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia","brazilus"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","norwaywest","westindia","germanywestcentral","brazilsoutheast"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["northeurope","centralus","southeastasia","ukwest","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast","eastusslv","southindia","westus3","jioindiawest"]}},"status":{"nextTrafficRegion":"LowTraffic","nextTrafficRegionScheduledTime":"2021-06-09T02:10:00.6240253Z","completedRegions":["centraluseuap","eastus2euap"],"failedOrSkippedRegions":{"westcentralus":null,"northcentralus":null,"centralindia":null,"brazilus":null,"westus2":null,"westeurope":null,"eastus":null,"southcentralus":null,"eastasia":null,"uksouth":null,"canadacentral":null,"japanwest":null,"australiasoutheast":null,"koreacentral":null,"francecentral":null,"australiacentral":null,"westus":null,"uaecentral":null,"southafricawest":null,"switzerlandwest":null,"norwaywest":null,"westindia":null,"germanywestcentral":null,"brazilsoutheast":null,"northeurope":null,"centralus":null,"southeastasia":null,"ukwest":null,"canadaeast":null,"brazilsouth":null,"japaneast":null,"australiaeast":null,"koreasouth":null,"eastus2":null,"francesouth":null,"australiacentral2":null,"uaenorth":null,"southafricanorth":null,"switzerlandnorth":null,"germanynorth":null,"norwayeast":null,"eastusslv":null,"southindia":null,"westus3":null,"jioindiawest":null}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"contosoDRollout"},{"properties":{"provisioningState":"RolloutInProgress","specification":{"canary":{"skipRegions":["centraluseuap"],"regions":["eastus2euap"]},"lowTraffic":{"waitDuration":"P1D","regions":["westcentralus"]},"mediumTraffic":{"waitDuration":"P1D","regions":["northcentralus","centralindia","brazilus"]},"highTraffic":{"waitDuration":"P1D","regions":["westus2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["westeurope","eastus","southcentralus","eastasia","uksouth","canadacentral","japanwest","australiasoutheast","koreacentral","francecentral","australiacentral","westus","uaecentral","southafricawest","switzerlandwest","norwaywest","westindia","germanywestcentral","brazilsoutheast"]},"restOfTheWorldGroupTwo":{"waitDuration":"PT2H","regions":["northeurope","centralus","southeastasia","ukwest","canadaeast","brazilsouth","japaneast","australiaeast","koreasouth","eastus2","francesouth","australiacentral2","uaenorth","southafricanorth","switzerlandnorth","germanynorth","norwayeast","eastusslv","southindia","westus3","jioindiawest"]}},"status":{"nextTrafficRegion":"Canary","nextTrafficRegionScheduledTime":"2021-06-08T02:54:13.109957Z","completedRegions":[],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsdefaultRollouts","name":"cliDefaultRollout"}]}' - headers: - cache-control: - - no-cache - content-length: - - '36569' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:15 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub default-rollout stop - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --provider-namespace --rollout-name - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/defaultRollouts/cliDefaultRollout/stop?api-version=2020-11-20 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:15 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"routingType": "Proxyonly, Extension", "regionality": "Global", - "endpoints": [{"apiVersions": ["2020-01-01-preview"], "locations": [""], "requiredFeatures": - ["Microsoft.Contoso/RPaaSSampleApp"], "extensions": [{}]}], "swaggerSpecifications": - [{"apiVersions": ["2020-01-01-preview"], "swaggerSpecFolderUri": "https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/contoso/resource-manager/Microsoft.Contoso/"}], - "enableAsyncOperation": false, "enableThirdPartyS2S": false}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub resource-type-registration create - Connection: - - keep-alive - Content-Length: - - '514' - Content-Type: - - application/json - ParameterSetName: - - --endpoints --regionality --routing-type --swagger-specifications --provider-namespace - --enable-async-operation --enable-third-party-s2s --resource-type - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/resourcetypeRegistrations/extensionresourcetype?api-version=2020-11-20 - response: - body: - string: '{"properties":{"name":"extensionresourcetype","routingType":"ProxyOnly, - Extension","regionality":"Global","endpoints":[{"apiVersions":["2020-01-01-preview"],"locations":[""],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"extensions":[{}]}],"swaggerSpecifications":[{"apiVersions":["2020-01-01-preview"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/contoso/resource-manager/Microsoft.Contoso/"}],"enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsresourceTypeRegistrations","name":"extensionresourcetype"}' - headers: - cache-control: - - no-cache - content-length: - - '835' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:21 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub resource-type-registration show - Connection: - - keep-alive - ParameterSetName: - - --provider-namespace --resource-type - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/resourcetypeRegistrations/employees?api-version=2020-11-20 - response: - body: - string: '{"properties":{"name":"employees","routingType":"Default","regionality":"Regional","endpoints":[{"apiVersions":["2018-11-01-preview","2020-01-01-preview","2019-01-01"],"locations":["West - US","West Central US","West Europe","Southeast Asia","West US 2","East US - 2 EUAP","North Europe","East US","East Asia"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"]}],"swaggerSpecifications":[{"apiVersions":["2018-11-01-preview","2020-01-01-preview","2019-01-01"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/"}],"enableAsyncOperation":true,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]},"resourceMovePolicy":{"validationRequired":false,"crossResourceGroupMoveEnabled":true,"crossSubscriptionMoveEnabled":true}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsresourceTypeRegistrations","name":"employees"}' - headers: - cache-control: - - no-cache - content-length: - - '1093' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:21 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub resource-type-registration list - Connection: - - keep-alive - ParameterSetName: - - --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/resourcetypeRegistrations?api-version=2020-11-20 - response: - body: - string: '{"value":[{"properties":{"name":"extensionresourcetype","routingType":"ProxyOnly, - Extension","regionality":"Global","endpoints":[{"apiVersions":["2020-01-01-preview"],"locations":[""],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"extensions":[{}]}],"swaggerSpecifications":[{"apiVersions":["2020-01-01-preview"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/contoso/resource-manager/Microsoft.Contoso/"}],"enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsresourceTypeRegistrations","name":"extensionresourcetype"},{"properties":{"name":"Operations","routingType":"ProxyOnly, - Tenant","regionality":"Global","endpoints":[{"apiVersions":["2020-01-01-preview"],"locations":[""]}],"swaggerSpecifications":[{"apiVersions":["2020-01-01-preview"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/contoso/resource-manager/Microsoft.Contoso/"}],"allowedUnauthorizedActions":["microsoft.contoso/operations/read"],"enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsresourceTypeRegistrations","name":"Operations"},{"properties":{"name":"clusters","routingType":"Default","regionality":"Regional","endpoints":[{"apiVersions":["2020-01-01-preview"],"locations":["East - US 2 EUAP"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.canary.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["East - US","East US2","West US","West US2","Central US","West Central US","South - Central US","North Central US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.unitedstates.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["France - Central"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.france.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["Southeast - Asia","East Asia"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.asiapacific.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["Korea - Central"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.korea.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["Australia - East"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.australia.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["UK - South"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.unitedkingdom.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["Japan - East"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.japan.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["West - Europe","North Europe"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.europe.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]}],"swaggerSpecifications":[{"apiVersions":["2020-01-01-preview"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/"}],"linkedAccessChecks":[{"actionName":"Microsoft.Contoso/clusters/write","linkedProperty":"extendedLocation.name","linkedAction":"Microsoft.ExtendedLocation/customLocations/deploy/action"}],"enableAsyncOperation":true,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]},"extendedLocations":[{"type":"CustomLocation","supportedPolicy":"NotSpecified"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsresourceTypeRegistrations","name":"clusters"},{"properties":{"name":"locations","routingType":"ProxyOnly","regionality":"Global","endpoints":[{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"locations":[""]}],"swaggerSpecifications":[{"apiVersions":["2020-01-01-preview"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/"},{"apiVersions":["2021-04-01-preview"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/tree/RPSaaSMaster/specification/contoso/resource-manager/Microsoft.Contoso/"}],"enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsresourceTypeRegistrations","name":"locations"},{"properties":{"name":"locations/operationStatuses","routingType":"ProxyOnly, - Tenant, LocationBased","regionality":"Regional","endpoints":[{"apiVersions":["2020-01-01-preview","2021-04-01-preview"],"locations":["East - US","East US 2","West US 2","UK South","Central US","West Central US","Japan - East","East Asia","West US","East US 2 EUAP","Australia East","South East - Asia","France Central","West Europe","North Europe","South Central US","North - Central US","Korea Central"]}],"swaggerSpecifications":[{"apiVersions":["2020-01-01-preview"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/"},{"apiVersions":["2021-04-01-preview"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/tree/RPSaaSMaster/specification/contoso/resource-manager/Microsoft.Contoso/"}],"allowedUnauthorizedActions":["Microsoft.Contoso/Locations/OperationStatuses/read","Microsoft.Contoso/Locations/OperationStatuses/write"],"enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsresourceTypeRegistrations","name":"locations/operationStatuses"},{"properties":{"name":"towers","routingType":"Default","regionality":"Regional","endpoints":[{"apiVersions":["2020-01-01-preview"],"locations":["East - US 2 EUAP"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.canary.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["East - US","East US2","West US","West US2","Central US","West Central US","South - Central US","North Central US"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.unitedstates.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["France - Central"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.france.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["Korea - Central"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.korea.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["Southeast - Asia","East Asia"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.asiapacific.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["Australia - East"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.australia.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["UK - South"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.unitedkingdom.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["Japan - East"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.japan.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]},{"apiVersions":["2020-01-01-preview"],"locations":["West - Europe","North Europe"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.europe.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePatchBegin"]}]}],"swaggerSpecifications":[{"apiVersions":["2020-01-01-preview"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/contoso/resource-manager/Microsoft.Contoso/"}],"linkedAccessChecks":[{"actionName":"Microsoft.Contoso/towers/write","linkedProperty":"extendedLocation.name","linkedAction":"Microsoft.ExtendedLocation/customLocations/deploy/action"}],"enableAsyncOperation":true,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]},"extendedLocations":[{"type":"CustomLocation","supportedPolicy":"NotSpecified"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsresourceTypeRegistrations","name":"towers"},{"properties":{"name":"employees","routingType":"Default","regionality":"Regional","endpoints":[{"apiVersions":["2018-11-01-preview","2020-01-01-preview","2019-01-01"],"locations":["West - US","West Central US","West Europe","Southeast Asia","West US 2","East US - 2 EUAP","North Europe","East US","East Asia"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"]}],"swaggerSpecifications":[{"apiVersions":["2018-11-01-preview","2020-01-01-preview","2019-01-01"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/"}],"enableAsyncOperation":true,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]},"resourceMovePolicy":{"validationRequired":false,"crossResourceGroupMoveEnabled":true,"crossSubscriptionMoveEnabled":true}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsresourceTypeRegistrations","name":"employees"},{"properties":{"name":"installations","routingType":"Default","regionality":"Regional","endpoints":[{"apiVersions":["2021-04-01-preview"],"locations":["EastUS2EUAP"],"requiredFeatures":["Microsoft.Contoso/RPaaSBridge"],"extensions":[{"endpointUri":"https://k8bridge.Canary.production.fusion.azure.com/","extensionCategories":["ResourceCreationBegin","ResourceDeletionBegin","ResourcePostAction"]}]}],"swaggerSpecifications":[{"apiVersions":["2021-04-01-preview"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/tree/RPSaaSMaster/specification/contoso/resource-manager/Microsoft.Contoso/"}],"linkedAccessChecks":[{"actionName":"Microsoft.Contoso/installations/write","linkedProperty":"extendedLocation.name","linkedAction":"Microsoft.ExtendedLocation/customLocations/deploy/action"}],"enableAsyncOperation":true,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]},"extendedLocations":[{"type":"CustomLocation","supportedPolicy":"NotSpecified"}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsresourceTypeRegistrations","name":"installations"}]}' - headers: - cache-control: - - no-cache - content-length: - - '13838' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:22 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"properties": {"routingType": "ProxyOnly", "regionality": "Global", "endpoints": - [{"apiVersions": ["2019-01-01"], "locations": ["Global"], "requiredFeatures": - ["Microsoft.Contoso/RPaaSSampleApp"], "extensions": [{"endpointUri": "https://contoso-test-extension-endpoint.com/", - "extensionCategories": ["ResourceReadValidate", "ResourceDeletionValidate"]}]}], - "swaggerSpecifications": [{"apiVersions": ["2019-01-01"], "swaggerSpecFolderUri": - "https://github.com/Azure/azure-rest-api-specs-pr/tree/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/"}], - "enableAsyncOperation": false, "templateDeploymentOptions": {"preflightSupported": - true, "preflightOptions": ["DefaultValidationOnly", "continueDeploymentOnFailure"]}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub resource-type-registration create - Connection: - - keep-alive - Content-Length: - - '737' - Content-Type: - - application/json - ParameterSetName: - - --endpoints --regionality --routing-type --swagger-specifications --provider-namespace - --enable-async-operation --template-deployment-options --resource-type - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceType?api-version=2020-11-20 - response: - body: - string: '{"properties":{"name":"employees/nestedResourceType","routingType":"ProxyOnly","regionality":"Global","endpoints":[{"apiVersions":["2019-01-01"],"locations":["Global"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"extensions":[{"endpointUri":"https://contoso-test-extension-endpoint.com/","extensionCategories":["ResourceReadValidate","ResourceDeletionValidate"]}]}],"swaggerSpecifications":[{"apiVersions":["2019-01-01"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/tree/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/"}],"enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly","ContinueDeploymentOnFailure"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsresourceTypeRegistrations","name":"employees/nestedResourceType"}' - headers: - cache-control: - - no-cache - content-length: - - '991' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:24 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"routingType": "ProxyOnly", "regionality": "Global", "endpoints": - [{"apiVersions": ["2019-01-01"], "locations": ["Global"], "requiredFeatures": - ["Microsoft.Contoso/RPaaSSampleApp"], "extensions": [{"endpointUri": "https://contoso-test-extension-endpoint.com/", - "extensionCategories": ["ResourceReadValidate", "ResourceDeletionValidate"]}]}], - "swaggerSpecifications": [{"apiVersions": ["2019-01-01"], "swaggerSpecFolderUri": - "https://github.com/Azure/azure-rest-api-specs-pr/tree/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/"}], - "enableAsyncOperation": false, "templateDeploymentOptions": {"preflightSupported": - true, "preflightOptions": ["DefaultValidationOnly", "continueDeploymentOnFailure"]}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub resource-type-registration create - Connection: - - keep-alive - Content-Length: - - '737' - Content-Type: - - application/json - ParameterSetName: - - --endpoints --regionality --routing-type --swagger-specifications --provider-namespace - --enable-async-operation --template-deployment-options --resource-type - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceType?api-version=2020-11-20 - response: - body: - string: '{"properties":{"name":"employees/nestedResourceType","routingType":"ProxyOnly","regionality":"Global","endpoints":[{"apiVersions":["2019-01-01"],"locations":["Global"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"extensions":[{"endpointUri":"https://contoso-test-extension-endpoint.com/","extensionCategories":["ResourceReadValidate","ResourceDeletionValidate"]}]}],"swaggerSpecifications":[{"apiVersions":["2019-01-01"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/tree/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/"}],"enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly","ContinueDeploymentOnFailure"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsresourceTypeRegistrations","name":"employees/nestedResourceType"}' - headers: - cache-control: - - no-cache - content-length: - - '991' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:25 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub resource-type-registration show - Connection: - - keep-alive - ParameterSetName: - - --provider-namespace --resource-type - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceType?api-version=2020-11-20 - response: - body: - string: '{"properties":{"name":"employees/nestedResourceType","routingType":"ProxyOnly","regionality":"Global","endpoints":[{"apiVersions":["2019-01-01"],"locations":["Global"],"requiredFeatures":["Microsoft.Contoso/RPaaSSampleApp"],"extensions":[{"endpointUri":"https://contoso-test-extension-endpoint.com/","extensionCategories":["ResourceReadValidate","ResourceDeletionValidate"]}]}],"swaggerSpecifications":[{"apiVersions":["2019-01-01"],"swaggerSpecFolderUri":"https://github.com/Azure/azure-rest-api-specs-pr/tree/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/"}],"enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly","ContinueDeploymentOnFailure"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/","type":"Microsoft.ProviderHub/providerRegistrationsresourceTypeRegistrations","name":"employees/nestedResourceType"}' - headers: - cache-control: - - no-cache - content-length: - - '991' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:25 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub resource-type-registration delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --provider-namespace --resource-type - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceType?api-version=2020-11-20 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 08 Jun 2021 02:54:26 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub default-rollout delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --provider-namespace --rollout-name - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/defaultRollouts/cliDefaultRollout?api-version=2020-11-20 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:26 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"providerVersion": "2.0", "providerType": "Internal, Hidden", - "management": {"manifestOwners": ["SPARTA-PlatformServiceAdministrator"], "incidentRoutingService": - "Contoso Resource Provider", "incidentRoutingTeam": "Contoso Triage", "incidentContactEmail": - "helpme@contoso.com", "serviceTreeInfos": [{"serviceId": "6f53185c-ea09-4fc3-9075-318dec805303", - "componentId": "6f53185c-ea09-4fc3-9075-318dec805303"}]}, "capabilities": [{"quotaId": - "CSP_2015-05-01", "effect": "Allow"}, {"quotaId": "CSP_MG_2017-12-01", "effect": - "Allow"}], "providerHubMetadata": {"providerAuthorizations": [{"applicationId": - "3d834152-5efa-46f7-85a4-a18c2b5d46f9", "roleDefinitionId": "760505bf-dcfa-4311-b890-18da392a00b2"}], - "providerAuthentication": {"allowedAudiences": ["https://management.core.windows.net/"]}}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub provider-registration create - Connection: - - keep-alive - Content-Length: - - '810' - Content-Type: - - application/json - ParameterSetName: - - --providerhub-metadata-authorizations --providerhub-metadata-authentication - --service-tree-infos --capabilities --capabilities --manifest-owners --incident-contact-email - --incident-routing-service --incident-routing-team --provider-type --provider-version - --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso?api-version=2020-11-20 - response: - body: - string: '{"properties":{"providerHubMetadata":{"providerAuthorizations":[{"applicationId":"3d834152-5efa-46f7-85a4-a18c2b5d46f9","roleDefinitionId":"760505bf-dcfa-4311-b890-18da392a00b2"}],"providerAuthentication":{"allowedAudiences":["https://management.core.windows.net/"]}},"provisioningState":"Succeeded","namespace":"Microsoft.Contoso","providerVersion":"2.0","providerType":"Internal, - Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator"],"incidentRoutingService":"Contoso - Resource Provider","incidentRoutingTeam":"Contoso Triage","incidentContactEmail":"helpme@contoso.com","serviceTreeInfos":[{"serviceId":"6f53185c-ea09-4fc3-9075-318dec805303","componentId":"6f53185c-ea09-4fc3-9075-318dec805303"}],"resourceAccessPolicy":"NotSpecified"},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}]},"type":"Microsoft.ProviderHub/providerRegistrations"}' - headers: - cache-control: - - no-cache - content-length: - - '929' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:27 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub provider-registration show - Connection: - - keep-alive - ParameterSetName: - - --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso?api-version=2020-11-20 - response: - body: - string: '{"properties":{"providerHubMetadata":{"providerAuthorizations":[{"applicationId":"3d834152-5efa-46f7-85a4-a18c2b5d46f9","roleDefinitionId":"760505bf-dcfa-4311-b890-18da392a00b2"}],"providerAuthentication":{"allowedAudiences":["https://management.core.windows.net/"]}},"provisioningState":"Succeeded","namespace":"Microsoft.Contoso","providerVersion":"2.0","providerType":"Internal, - Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator"],"incidentRoutingService":"Contoso - Resource Provider","incidentRoutingTeam":"Contoso Triage","incidentContactEmail":"helpme@contoso.com","serviceTreeInfos":[{"serviceId":"6f53185c-ea09-4fc3-9075-318dec805303","componentId":"6f53185c-ea09-4fc3-9075-318dec805303"}],"resourceAccessPolicy":"NotSpecified"},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":null},"type":"Microsoft.ProviderHub/providerRegistrations"}' - headers: - cache-control: - - no-cache - content-length: - - '945' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:28 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub provider-registration list - Connection: - - keep-alive - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations?api-version=2020-11-20 - response: - body: - string: '{"value":[{"subscriptionId":"6f53185c-ea09-4fc3-9075-318dec805303","namespace":"Microsoft.Contoso","providerHubMetadata":{"providerAuthorizations":[{"applicationId":"3d834152-5efa-46f7-85a4-a18c2b5d46f9","roleDefinitionId":"760505bf-dcfa-4311-b890-18da392a00b2"}],"providerAuthentication":{"allowedAudiences":["https://management.core.windows.net/"]}},"management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator"],"incidentRoutingService":"Contoso - Resource Provider","incidentRoutingTeam":"Contoso Triage","incidentContactEmail":"helpme@contoso.com","serviceTreeInfos":[{"serviceId":"6f53185c-ea09-4fc3-9075-318dec805303","componentId":"6f53185c-ea09-4fc3-9075-318dec805303"}],"resourceAccessPolicy":"NotSpecified"},"providerType":"Internal, - Hidden","providerVersion":"2.0","capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"provisioningState":"Succeeded","metadata":null,"partitionKey":"FIXED","id":"MICROSOFTCONTOSO","createdTime":"2021-06-08T02:54:27.900755Z","changedTime":"2021-06-08T02:54:27.900755Z","_etag":"\"8502a0f4-0000-0700-0000-60bedbe30000\""}]}' - headers: - cache-control: - - no-cache - content-length: - - '1131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:28 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub provider-registration delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso?api-version=2020-11-20 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 08 Jun 2021 02:54:28 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"providerVersion": "2.0", "providerType": "Internal, Hidden", - "management": {"manifestOwners": ["SPARTA-PlatformServiceAdministrator"], "incidentRoutingService": - "Contoso Resource Provider", "incidentRoutingTeam": "Contoso Triage", "incidentContactEmail": - "helpme@contoso.com", "serviceTreeInfos": [{"serviceId": "6f53185c-ea09-4fc3-9075-318dec805303", - "componentId": "6f53185c-ea09-4fc3-9075-318dec805303"}]}, "capabilities": [{"quotaId": - "CSP_2015-05-01", "effect": "Allow"}, {"quotaId": "CSP_MG_2017-12-01", "effect": - "Allow"}], "providerHubMetadata": {"providerAuthorizations": [{"applicationId": - "3d834152-5efa-46f7-85a4-a18c2b5d46f9", "roleDefinitionId": "760505bf-dcfa-4311-b890-18da392a00b2"}], - "providerAuthentication": {"allowedAudiences": ["https://management.core.windows.net/"]}}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub provider-registration create - Connection: - - keep-alive - Content-Length: - - '810' - Content-Type: - - application/json - ParameterSetName: - - --providerhub-metadata-authorizations --providerhub-metadata-authentication - --service-tree-infos --capabilities --capabilities --manifest-owners --incident-contact-email - --incident-routing-service --incident-routing-team --provider-type --provider-version - --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso?api-version=2020-11-20 - response: - body: - string: '{"properties":{"providerHubMetadata":{"providerAuthorizations":[{"applicationId":"3d834152-5efa-46f7-85a4-a18c2b5d46f9","roleDefinitionId":"760505bf-dcfa-4311-b890-18da392a00b2"}],"providerAuthentication":{"allowedAudiences":["https://management.core.windows.net/"]}},"provisioningState":"Succeeded","namespace":"Microsoft.Contoso","providerVersion":"2.0","providerType":"Internal, - Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator"],"incidentRoutingService":"Contoso - Resource Provider","incidentRoutingTeam":"Contoso Triage","incidentContactEmail":"helpme@contoso.com","serviceTreeInfos":[{"serviceId":"6f53185c-ea09-4fc3-9075-318dec805303","componentId":"6f53185c-ea09-4fc3-9075-318dec805303"}],"resourceAccessPolicy":"NotSpecified"},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}]},"type":"Microsoft.ProviderHub/providerRegistrations"}' - headers: - cache-control: - - no-cache - content-length: - - '929' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:30 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub provider-registration generate-operation - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/generateOperations?api-version=2020-11-20 - response: - body: - string: '[{"name":"Microsoft.Contoso/operations/read","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"operations","operation":"Operations_List","description":"read - operations"}},{"name":"Microsoft.Contoso/clusters/read","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"clusters","operation":"clusters_Retrieve","description":"read - clusters"}},{"name":"Microsoft.Contoso/clusters/write","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"clusters","operation":"clusters_CreateOrUpdate","description":"write - clusters"}},{"name":"Microsoft.Contoso/clusters/delete","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"clusters","operation":"clusters_Delete","description":"delete - clusters"}},{"name":"Microsoft.Contoso/clusters/write","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"clusters","operation":"clusters_Update","description":"write - clusters"}},{"name":"Microsoft.Contoso/clusters/read","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"clusters","operation":"clusters_ListByResourceGroup","description":"read - clusters"}},{"name":"Microsoft.Contoso/clusters/read","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"clusters","operation":"clusters_ListBySubscription","description":"read - clusters"}},{"name":"Microsoft.Contoso/towers/read","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"towers","operation":"Towers_Get","description":"read - towers"}},{"name":"Microsoft.Contoso/towers/write","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"towers","operation":"Towers_CreateOrUpdate","description":"write - towers"}},{"name":"Microsoft.Contoso/towers/delete","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"towers","operation":"Towers_Delete","description":"delete - towers"}},{"name":"Microsoft.Contoso/towers/write","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"towers","operation":"Towers_Update","description":"write - towers"}},{"name":"Microsoft.Contoso/towers/read","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"towers","operation":"Towers_ListByResourceGroup","description":"read - towers"}},{"name":"Microsoft.Contoso/towers/read","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"towers","operation":"Towers_ListBySubscription","description":"read - towers"}},{"name":"microsoft.contoso/employees/read","isDataAction":false,"display":{"provider":"microsoft.contoso","resource":"employees","operation":"Employee_ListBySubscription","description":"Returns - list of employees."}},{"name":"microsoft.contoso/employees/read","isDataAction":false,"display":{"provider":"microsoft.contoso","resource":"employees","operation":"Employee_List","description":"Returns - list of employees."}},{"name":"microsoft.contoso/employees/read","isDataAction":false,"display":{"provider":"microsoft.contoso","resource":"employees","operation":"Employee_Get","description":"Returns - employee resource for a given name."}},{"name":"microsoft.contoso/employees/write","isDataAction":false,"display":{"provider":"microsoft.contoso","resource":"employees","operation":"Employee_CreateAndUpdate","description":"Create - or update employee resource."}},{"name":"microsoft.contoso/employees/delete","isDataAction":false,"display":{"provider":"microsoft.contoso","resource":"employees","operation":"Employee_Delete","description":"Deletes - employee resource for a given name."}},{"name":"microsoft.contoso/employees/write","isDataAction":false,"display":{"provider":"microsoft.contoso","resource":"employees","operation":"Employees_Update","description":"Update - employee details."}},{"name":"Microsoft.Contoso/installations/read","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"installations","operation":"installations_Retrieve","description":"read - installations"}},{"name":"Microsoft.Contoso/installations/write","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"installations","operation":"installations_CreateOrUpdate","description":"write - installations"}},{"name":"Microsoft.Contoso/installations/delete","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"installations","operation":"installations_Delete","description":"delete - installations"}},{"name":"Microsoft.Contoso/installations/write","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"installations","operation":"installations_Update","description":"write - installations"}},{"name":"Microsoft.Contoso/installations/read","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"installations","operation":"installations_ListByResourceGroup","description":"read - installations"}},{"name":"Microsoft.Contoso/installations/read","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"installations","operation":"installations_ListBySubscription","description":"read - installations"}}]' - headers: - cache-control: - - no-cache - content-length: - - '5080' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:30 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"notificationMode": "EventHub", "messageScope": "RegisteredSubscriptions", - "includedEvents": ["*/write", "Microsoft.Contoso/employees/delete"], "notificationEndpoints": - [{"notificationDestination": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications", - "locations": ["", "East US"]}, {"notificationDestination": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications", - "locations": ["East US"]}]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub notification-registration create - Connection: - - keep-alive - Content-Length: - - '644' - Content-Type: - - application/json - ParameterSetName: - - --name --included-events --message-scope --notification-endpoints --notification-endpoints - --notification-mode --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/notificationRegistrations/testNotificationRegistration?api-version=2020-11-20 - response: - body: - string: '{"name":"testNotificationRegistration","properties":{"notificationMode":"EventHub","messageScope":"RegisteredSubscriptions","includedEvents":["*/write","Microsoft.Contoso/employees/delete"],"notificationEndpoints":[{"notificationDestination":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications","locations":["","East - US"]},{"notificationDestination":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications","locations":["East - US"]}]}}' - headers: - cache-control: - - no-cache - content-length: - - '665' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:30 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub notification-registration show - Connection: - - keep-alive - ParameterSetName: - - --name --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/notificationRegistrations/testNotificationRegistration?api-version=2020-11-20 - response: - body: - string: '{"name":"testNotificationRegistration","properties":{"notificationMode":"EventHub","messageScope":"RegisteredSubscriptions","includedEvents":["*/write","Microsoft.Contoso/employees/delete"],"notificationEndpoints":[{"notificationDestination":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications","locations":["","East - US"]},{"notificationDestination":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications","locations":["East - US"]}]}}' - headers: - cache-control: - - no-cache - content-length: - - '665' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:31 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub notification-registration list - Connection: - - keep-alive - ParameterSetName: - - --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/notificationRegistrations?api-version=2020-11-20 - response: - body: - string: '{"value":[{"name":"employeesNotificationRegistration","properties":{"notificationMode":"EventHub","messageScope":"RegisteredSubscriptions","includedEvents":["*/write","Microsoft.Contoso/employees/delete"],"notificationEndpoints":[{"notificationDestination":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications","locations":["","East - US"]}]}},{"name":"testNotificationRegistration","properties":{"notificationMode":"EventHub","messageScope":"RegisteredSubscriptions","includedEvents":["*/write","Microsoft.Contoso/employees/delete"],"notificationEndpoints":[{"notificationDestination":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications","locations":["","East - US"]},{"notificationDestination":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications","locations":["East - US"]}]}}]}' - headers: - cache-control: - - no-cache - content-length: - - '1136' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:32 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub notification-registration delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --name --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/notificationRegistrations/testNotificationRegistration?api-version=2020-11-20 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:32 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub operation list - Connection: - - keep-alive - ParameterSetName: - - --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/operations/default?api-version=2020-11-20 - response: - body: - string: 'null' - headers: - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:33 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"contents": [{"name": "Microsoft.Contoso/Employees/Read", "display": {"provider": - "Microsoft.Contoso", "resource": "Employees", "operation": "Gets/List employee - resources", "description": "Read employees"}}]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub operation create - Connection: - - keep-alive - Content-Length: - - '209' - Content-Type: - - application/json - ParameterSetName: - - --contents --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/operations/default?api-version=2020-11-20 - response: - body: - string: '{"contents":[{"name":"Microsoft.Contoso/Employees/Read","isDataAction":false,"display":{"provider":"Microsoft.Contoso","resource":"Employees","operation":"Gets/List - employee resources","description":"Read employees"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '219' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:34 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub operation delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --provider-namespace - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/operations/default?api-version=2020-11-20 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:34 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - status: - code: 204 - message: No Content -- request: - body: '{"properties": {"skuSettings": [{"name": "freeSku"}]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub sku create - Connection: - - keep-alive - Content-Length: - - '54' - Content-Type: - - application/json - ParameterSetName: - - --sku-settings --provider-namespace --resource-type --sku - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/resourcetypeRegistrations/employees/skus/default?api-version=2020-11-20 - response: - body: - string: '{"properties":{"skuSettings":[{"name":"freeSku"}]},"type":"Microsoft.ProviderHub/providerRegistrationsskus","name":"default"}' - headers: - cache-control: - - no-cache - content-length: - - '125' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:34 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub sku show - Connection: - - keep-alive - ParameterSetName: - - --provider-namespace --resource-type --sku - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/resourcetypeRegistrations/employees/skus/default?api-version=2020-11-20 - response: - body: - string: '{"properties":{"skuSettings":[{"name":"freeSku"}]},"type":"Microsoft.ProviderHub/providerRegistrationsskus","name":"default"}' - headers: - cache-control: - - no-cache - content-length: - - '125' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:35 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub sku list - Connection: - - keep-alive - ParameterSetName: - - --provider-namespace --resource-type - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/resourcetypeRegistrations/employees/skus?api-version=2020-11-20 - response: - body: - string: '{"value":[{"properties":{"skuSettings":[{"name":"freeSku"}]},"type":"Microsoft.ProviderHub/providerRegistrationsskus","name":"default"}]}' - headers: - cache-control: - - no-cache - content-length: - - '137' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Jun 2021 02:54:36 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - providerhub sku delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --provider-namespace --resource-type --sku - User-Agent: - - AZURECLI/2.23.0 azsdk-python-providerhub/unknown Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/resourcetypeRegistrations/employees/skus/default?api-version=2020-11-20 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 08 Jun 2021 02:54:36 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 200 - message: OK -version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_create.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_create.yaml new file mode 100644 index 00000000000..c8722b7ea95 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_create.yaml @@ -0,0 +1,100 @@ +interactions: +- request: + body: '{"properties": {"dataAuthorizations": [{"role": "ServiceOwner"}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub authorized-application create + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json + ParameterSetName: + - -n --data-authorizations --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/authorizedApplications/8b51e6a7-7814-42bd-aa17-3fb1837b3b7a?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"providerNamespace":"Private.VPTest","dataAuthorizations":[{"role":"ServiceOwner"}],"provisioningState":"NotSpecified"},"name":"8b51e6a7-7814-42bd-aa17-3fb1837b3b7a","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-06T16:58:32.8885415Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-06T16:58:32.8885415Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '423' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 Jun 2024 16:58:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/4980e186-c01a-4b28-a5cd-674d1f01c64f + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 410EAB5469D24BB3A57790A8144A98B3 Ref B: CH1AA2020616011 Ref C: 2024-06-06T16:58:31Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub authorized-application create + Connection: + - keep-alive + ParameterSetName: + - -n --data-authorizations --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/authorizedApplications/8b51e6a7-7814-42bd-aa17-3fb1837b3b7a?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"providerNamespace":"Private.VPTest","dataAuthorizations":[{"role":"ServiceOwner","resourceTypes":[]}],"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/authorizedApplications/8b51e6a7-7814-42bd-aa17-3fb1837b3b7a","type":"Microsoft.ProviderHub/providerRegistrations/authorizedApplications","name":"8b51e6a7-7814-42bd-aa17-3fb1837b3b7a","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-06T16:58:32.8885415Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-06T16:58:32.8885415Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '703' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 Jun 2024 16:58:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/499f4eb9-e4e5-484f-ba80-b5862905493b + x-msedge-ref: + - 'Ref A: E0594BF48D524893BD21087EE3B5ED0F Ref B: CH1AA2020616011 Ref C: 2024-06-06T16:58:37Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_delete.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_delete.yaml new file mode 100644 index 00000000000..c07bdedcc27 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_delete.yaml @@ -0,0 +1,52 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub authorized-application delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y -n --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/authorizedApplications/8b51e6a7-7814-42bd-aa17-3fb1837b3b7a?api-version=2024-04-01-preview + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 Jun 2024 17:04:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/daa42b75-4c5b-42e0-937a-4d0f34ebd53a + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: 61E129DEDC0E4F7AA0D34633358EA7D4 Ref B: CH1AA2020612029 Ref C: 2024-06-06T17:03:59Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_list.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_list.yaml new file mode 100644 index 00000000000..4c771f8e01e --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_list.yaml @@ -0,0 +1,48 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub authorized-application list + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/authorizedApplications?api-version=2024-04-01-preview + response: + body: + string: '{"value":[{"properties":{"providerNamespace":"Private.VPTest","dataAuthorizations":[{"role":"ServiceOwner","resourceTypes":["*"]}],"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/authorizedApplications/3cfadeba-63f1-46f4-8086-786a3f24045f","type":"Microsoft.ProviderHub/providerRegistrations/authorizedApplications","name":"3cfadeba-63f1-46f4-8086-786a3f24045f","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2023-02-22T18:54:40.0731483Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-22T18:54:40.0731483Z"}},{"properties":{"providerNamespace":"Private.VPTest","dataAuthorizations":[{"role":"ServiceOwner","resourceTypes":[]}],"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/authorizedApplications/8b51e6a7-7814-42bd-aa17-3fb1837b3b7a","type":"Microsoft.ProviderHub/providerRegistrations/authorizedApplications","name":"8b51e6a7-7814-42bd-aa17-3fb1837b3b7a","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-06T16:58:32.8885415Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-06T16:58:32.8885415Z"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1422' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 Jun 2024 17:02:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/75c19a4d-cc74-410c-833a-6f55ac714bf0 + x-msedge-ref: + - 'Ref A: 274F9403C4F54B69BC1DB8DEFD055A89 Ref B: CH1AA2020616051 Ref C: 2024-06-06T17:02:46Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_show.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_show.yaml new file mode 100644 index 00000000000..9425a4124ef --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_authorized_application_show.yaml @@ -0,0 +1,48 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub authorized-application show + Connection: + - keep-alive + ParameterSetName: + - -n --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/authorizedApplications/8b51e6a7-7814-42bd-aa17-3fb1837b3b7a?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"providerNamespace":"Private.VPTest","dataAuthorizations":[{"role":"ServiceOwner","resourceTypes":[]}],"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/authorizedApplications/8b51e6a7-7814-42bd-aa17-3fb1837b3b7a","type":"Microsoft.ProviderHub/providerRegistrations/authorizedApplications","name":"8b51e6a7-7814-42bd-aa17-3fb1837b3b7a","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-06T16:58:32.8885415Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-06T16:58:32.8885415Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '703' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 Jun 2024 17:00:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/3413197a-39df-4b03-9d8f-9fef9bd0bbe0 + x-msedge-ref: + - 'Ref A: 5187706434B84A558985508114F23471 Ref B: CH1AA2020611011 Ref C: 2024-06-06T17:00:21Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_custom_rollout_create.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_custom_rollout_create.yaml new file mode 100644 index 00000000000..e36a311e94f --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_custom_rollout_create.yaml @@ -0,0 +1,112 @@ +interactions: +- request: + body: '{"properties": {"specification": {"canary": {"regions": ["EastUS2EUAP", + "centraluseuap"]}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub custom-rollout create + Connection: + - keep-alive + Content-Length: + - '92' + Content-Type: + - application/json + ParameterSetName: + - --provider-namespace --rollout-name --canary + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/customRollouts/canaryTesting01?api-version=2024-04-01-preview + response: + body: + string: '{"error":{"code":"InternalServerError","message":"Http request failed + with unhandled exception of type ''SocketException'' and message: ''Operation + canceled''."}}' + headers: + cache-control: + - no-cache + content-length: + - '158' + content-type: + - application/json + date: + - Mon, 03 Jun 2024 21:55:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-failure-cause: + - service + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/55618d36-c5e5-4865-81c7-025d737cade8 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-msedge-ref: + - 'Ref A: 62EDC2EB87E74F50A398E8170E511273 Ref B: CH1AA2020610021 Ref C: 2024-06-03T21:54:39Z' + status: + code: 500 + message: Internal Server Error +- request: + body: '{"properties": {"specification": {"canary": {"regions": ["EastUS2EUAP", + "centraluseuap"]}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub custom-rollout create + Connection: + - keep-alive + Content-Length: + - '92' + Content-Type: + - application/json + ParameterSetName: + - --provider-namespace --rollout-name --canary + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/customRollouts/canaryTesting01?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["EastUS2EUAP","centraluseuap"]},"refreshSubscriptionRegistration":false,"skipReleaseScopeValidation":false},"status":{"completedRegions":["centraluseuap","EastUS2EUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/customRollouts/canaryTesting01","type":"Microsoft.ProviderHub/providerRegistrations/customRollouts","name":"canaryTesting01","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-03T21:56:21.0990587Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-03T21:56:21.0990587Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '778' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 03 Jun 2024 21:56:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/b8fa4f41-4a75-4654-8c4d-dbdec0502142 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: B358A1C15BE54A7782040523F8DDD648 Ref B: CH1AA2020610021 Ref C: 2024-06-03T21:55:52Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_custom_rollout_list.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_custom_rollout_list.yaml new file mode 100644 index 00000000000..0fab287e1ed --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_custom_rollout_list.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub custom-rollout list + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/customRollouts?api-version=2024-04-01-preview + response: + body: + string: '{"value":[{"properties":{"provisioningState":"Failed","specification":{"canary":{"regions":["eastUS2Euap","centralUSEuap","brazilUS","eastUSStg","southCentralUSStg"]},"refreshSubscriptionRegistration":false,"skipReleaseScopeValidation":false},"status":{"completedRegions":["eastUS2Euap","centralUSEuap","brazilUS"],"failedOrSkippedRegions":{"eastUSStg":{"code":"BadRequest","message":"The + manifest in canary region cannot be used for location eastUSStg, the supported + canary locations are centraluseuap,eastus2euap,brazilus."},"southCentralUSStg":{"code":"BadRequest","message":"The + manifest in canary region cannot be used for location southCentralUSStg, the + supported canary locations are centraluseuap,eastus2euap,brazilus."}}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/customRollouts/testrollout","type":"Microsoft.ProviderHub/providerRegistrations/customRollouts","name":"testrollout","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2023-10-27T19:10:44.6828543Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-27T19:10:44.6828543Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["eastUS2Euap","centralUSEuap","brazilUS"]},"refreshSubscriptionRegistration":false,"skipReleaseScopeValidation":false},"status":{"completedRegions":["brazilUS","centralUSEuap","eastUS2Euap"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/customRollouts/testrolloutonly3regions","type":"Microsoft.ProviderHub/providerRegistrations/customRollouts","name":"testrolloutonly3regions","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2023-10-27T19:20:58.4679432Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-27T19:20:58.4679432Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["eastus2euap"]},"refreshSubscriptionRegistration":false,"skipReleaseScopeValidation":false,"manifestCheckinSpecification":{"manifestCheckinOption":"AttemptAutomaticManifestCheckin","manifestCheckinParams":{"environment":"Prod"},"manifestCheckinSync":true}},"status":{"completedRegions":["eastus2euap"],"failedOrSkippedRegions":{},"manifestCheckinInfo":{"isCheckedIn":true,"statusMessage":"Manifest + is successfully merged. Use the Default/Custom rollout (http://aka.ms/rpaasrollout) + to roll out the manifest in ARM.","commitId":"acb80a5f38586c45c5fe21494bfeca8e503bfb28"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/customRollouts/rolloutOpenPR","type":"Microsoft.ProviderHub/providerRegistrations/customRollouts","name":"rolloutOpenPR","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-01-11T23:05:36.7058281Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-11T23:05:36.7058281Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["EastUS2EUAP","centraluseuap"]},"refreshSubscriptionRegistration":false,"skipReleaseScopeValidation":false},"status":{"completedRegions":["centraluseuap","EastUS2EUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/customRollouts/canaryTesting01","type":"Microsoft.ProviderHub/providerRegistrations/customRollouts","name":"canaryTesting01","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-03T21:56:21.0990587Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-03T21:56:21.0990587Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["EastUS2EUAP","centraluseuap"]},"refreshSubscriptionRegistration":false,"skipReleaseScopeValidation":false},"status":{"completedRegions":["centraluseuap","EastUS2EUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/customRollouts/testCLI","type":"Microsoft.ProviderHub/providerRegistrations/customRollouts","name":"testCLI","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-05-29T01:28:15.4699172Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-05-29T01:28:15.4699172Z"}},{"properties":{"provisioningState":"StorageProvisioningFailed","specification":{"canary":{"regions":["Eastus2euap","brazilus","centraluseuap"]},"refreshSubscriptionRegistration":false,"skipReleaseScopeValidation":false,"autoProvisionConfig":{"storage":true,"resourceGraph":true}},"status":{"completedRegions":[],"failedOrSkippedRegions":{"Eastus2euap":null,"brazilus":null,"centraluseuap":null}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/customRollouts/testRollout","type":"Microsoft.ProviderHub/providerRegistrations/customRollouts","name":"testRollout","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-03T17:04:33.5308111Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-03T17:04:33.5308111Z"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '5612' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 Jun 2024 16:35:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/8265e1f1-87c3-479c-bade-4899521bad4f + x-msedge-ref: + - 'Ref A: B33EC054BC274BA3ABA853FD0B616E4E Ref B: CH1AA2020620037 Ref C: 2024-06-06T16:35:49Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_custom_rollout_show.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_custom_rollout_show.yaml new file mode 100644 index 00000000000..1bc6724d554 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_custom_rollout_show.yaml @@ -0,0 +1,48 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub custom-rollout show + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/customRollouts/canaryTesting01?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["EastUS2EUAP","centraluseuap"]},"refreshSubscriptionRegistration":false,"skipReleaseScopeValidation":false},"status":{"completedRegions":["centraluseuap","EastUS2EUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/customRollouts/canaryTesting01","type":"Microsoft.ProviderHub/providerRegistrations/customRollouts","name":"canaryTesting01","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-03T21:56:21.0990587Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-03T21:56:21.0990587Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '778' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 20:34:55 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/3d290846-7867-476f-980b-173c683d2dac + x-msedge-ref: + - 'Ref A: 0BD530E8A40848B983A4416B058060E4 Ref B: CH1AA2020610039 Ref C: 2024-06-04T20:34:54Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_create.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_create.yaml new file mode 100644 index 00000000000..94213ed38f6 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_create.yaml @@ -0,0 +1,1611 @@ +interactions: +- request: + body: '{"properties": {"specification": {"manifestCheckinSpecification": {"manifestCheckinOption": + "DoNotAttemptAutomaticManifestCheckin"}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + Content-Length: + - '134' + Content-Type: + - application/json + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/cliDefaultRollout?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"provisioningState":"RolloutInProgress","specification":{"canary":{"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","TAIWANNORTH","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","SOUTHCENTRALUS2"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","CENTRALUSFOUNDATIONAL","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORTHEUROPEFOUNDATIONAL","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHEASTASIAFOUNDATIONAL","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","TAIWANNORTHWEST","UAENORTH","UKWEST","WESTEUROPEFOUNDATIONAL","WESTUS3","AUSTRALIAEASTFOUNDATIONAL","AUSTRIAEAST","CHILECENTRAL","EASTUSFOUNDATIONAL","EASTUSSLV","INDONESIACENTRAL","ISRAELNORTHWEST","SOUTHEASTUS","SOUTHWESTUS","UKSOUTHFOUNDATIONAL"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"DoNotAttemptAutomaticManifestCheckin","manifestCheckinSync":false,"manifestGeneratedMatchesRepo":true}},"status":{"nextTrafficRegion":"Canary","nextTrafficRegionScheduledTime":"2024-06-04T16:34:24.1382143Z","completedRegions":[],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/cliDefaultRollout","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"cliDefaultRollout","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-04T16:34:14.8005518Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-04T16:34:14.8005518Z"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + cache-control: + - no-cache + content-length: + - '2447' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:34:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/f0bdf06c-a1f8-4954-8933-59f3fe9e14ad + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-msedge-ref: + - 'Ref A: EB5FF7DDB36446509FBAC0522BD11E3F Ref B: CH1AA2020614021 Ref C: 2024-06-04T16:34:14Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156712349005&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=epwD8fOcHXr97ZIQsnP_ROgh7mOsZQctRf2SLDaQ_IqCkASsNUFPQUpD9Gc9Mj1RZmwlL1MklWSBlU3t7BNoLTQ1jfALCVlYlijjuSQU21YcvrsnS43l0e-t6y-6zNc3QXXP_Pjp7nfnLec8v4xsD9QRwERylBSjPqNr5sn5q-hmEUV7AcaYwsbnG-bbAxqBzA6k8QBDOg7BXSLwHB3HBVPXkiRsv9ypPjgegc2Th85IPrWTfRp6E7J4j4Dh_MD-5B-Hxv_cEOIGbKdu4Z0t9bFc8lh5dss2Y-CqwusE7wKbQpDzLKuDL_d2v4ChHpweBLsJ022vry3xnY3PI6k_Og&h=kOGhUfFyDaOX0nTkbAIjx-bK4Dfe3OqatMl1P-LxgQ8 + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:34:31 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156712505349&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=F2l6y3OwSDy5lA3657iBlgOnPZVmZIA9WHGVohZm4w-C_BR6tk6MqarhWaYlU_001HCV3MvAkT3_RZCIH0hbEfwlerXPiXOlAXpCt0u5Zii8mNhte8csq4OsG3YVwgH3oyvce99U9Cx6ZRMrv2a9SmAxIVfI29S8IZnNusPYW02XCJErSkXC7vsjuavOkBTR7EUhLtASfcJkjHdi6Ust8lIfvkFHOaJ_N6yyhwfTh84lB105k_8tHgTU0hpFd8jCAvVOu1dG7HXHrzxz4tnnWHfg7elIHshg9ljnA8m8ZLRdsUwnPMIcVxoeu9CfMcrxxIfa_NCpvt8oJUcoerUjtQ&h=ayr_-ie83UMSFHJ7vHCkV5iT7CTpz8y33kMlRB-AgOU + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/846a0f39-1e98-49be-b775-ab7e1d989552 + x-msedge-ref: + - 'Ref A: 0CB19B6132C54F36BC5869245D836EE4 Ref B: CH1AA2020614021 Ref C: 2024-06-04T16:34:28Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156868480125&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=yePWOh3WtBTjzDBgod6b4dl9laa0uCiS2iNEc0rAz4BNx-AOL8goXHFqjerpA1owS8zLEsNPVE6IkpI_bU81nK5fXI2SKnZc-1Ke8NtNrQSo6JLAqSH7pPfYoBzM7y4Nx--4DNLYsltoh6_fXG0rS8TWlJmp5hKlE0SkqoFIWZ53jGohXRxdFGoEMY1xWSGnbfMF997iuRodkIsbHMBZ7t_aAf4NMPCrsLLc-2xlF0FRZBedVSKtD4VeuzfxFBus3c0PkoYgeJUylORzbcPsp0hUt8JI2wToJ1hdQkyf1zIz4hlKU8pWINk-3CI-jGmWNbTHLGAHj9Ucw2ESORN-Xg&h=orVTklly6p6PtLgSKgYboTFLYn3uISCIPxaLSPq5KJc + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:34:46 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156868636051&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=mJqoY6O1g3ihfwPjF0VitzjKrbuBUQo0UvDgerZPiuYL7iGE9ICyqdboH6BsgMXNgpQlbwdPn7EhugSZd7_Tfj16RCt62h-FEJaFF4j1VfoNE63ZdmwgRyWTy-9wvLGAOQcz0BlmeClRbwd0OGhCCSIA9GJxJ2VYnlBbOvhDhnuCKuSJwX2eVnkyEXGgWRCP47yFphwPOEd8EJ_BnoW9qNI6LcH13E0MID9um4yeCU97o6KVCKILIgcUTun1MAIudbKqEPVbRfufeOUX6rUveUofdx_zGUxCX97xvDziTLrs5Snd5dkdS1HHVDr9WlqYngTt-XzsqNlkDQzUgMfdSw&h=00r0G3eVInR7eglHanWu6tyKNU9ZDfmGqnaAf3kxKaE + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/313918c0-c282-4eea-be67-459d93ed52b4 + x-msedge-ref: + - 'Ref A: E42D5C12E6634C24B3057360E0C30D61 Ref B: CH1AA2020614021 Ref C: 2024-06-04T16:34:46Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531157025234219&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=hSZtGSabm6l4t155hh5B2JfO3MDuJvQO08PjIWiPtnOOoMQ99YPDIHomEM7GtfodLfvn3hd7sEFATfZMsZ5DcQ15wmuebxDmNo_lxHmz6Ob8t1dwGowDV75SVTShl2hd0OgV6meT-BdvXqRUktNM9N4DaxZgZ6fjnYTr9XEpif3UwwvJ5BdSK3nzE3RrsZIlm4pBtrJ1DB9ncIsqGhBJvbM1TOYGgNMv9H-cDUi5vH0o94gsuy2raWEyIXpPIb97Qs0FaR1kqJn5cik1A5zW-QHzYjvW-WBjJZQ38SIPPh3koN8pVIZcbO8YgzwrQZKal0NHzcWSuvkkepeXx3rqOg&h=UQmB8rfx2XSWtLgkCqtSI3ce22QGAbzAcnyc43ZELw4 + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:35:02 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531157025234219&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=hSZtGSabm6l4t155hh5B2JfO3MDuJvQO08PjIWiPtnOOoMQ99YPDIHomEM7GtfodLfvn3hd7sEFATfZMsZ5DcQ15wmuebxDmNo_lxHmz6Ob8t1dwGowDV75SVTShl2hd0OgV6meT-BdvXqRUktNM9N4DaxZgZ6fjnYTr9XEpif3UwwvJ5BdSK3nzE3RrsZIlm4pBtrJ1DB9ncIsqGhBJvbM1TOYGgNMv9H-cDUi5vH0o94gsuy2raWEyIXpPIb97Qs0FaR1kqJn5cik1A5zW-QHzYjvW-WBjJZQ38SIPPh3koN8pVIZcbO8YgzwrQZKal0NHzcWSuvkkepeXx3rqOg&h=UQmB8rfx2XSWtLgkCqtSI3ce22QGAbzAcnyc43ZELw4 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/3fe7e67c-639d-472c-a7e8-e0f783dafb1c + x-msedge-ref: + - 'Ref A: 9D994CE57E7045E9BD2FA8D540788571 Ref B: CH1AA2020614021 Ref C: 2024-06-04T16:35:02Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531157192235084&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=zeQ2R0_B6QpGsLkmmLT7AKnQdCk2Z3rZXKf9e8AGeBC-VdVYfvX5E58FSSU9zHktgfp_rWyZSF8xocQNgHLWDUMyhEGppVN6hAz2m0aQdELyO9zcNp1dnc8m7UKnXL12LH6JVfTLNjkIxA0sklUPF06MuevYTvbap4QKEeywdD1e0pfbpDQzmzpj8L748FNGJFLsBag0-51IbjKEJydwujOm6TJcAb5Dju3aWuuZ8V5-MkoYFCSr97cgmB_dC0HoBYcj9hfvjYUxhnf31pqAAIdYiF6Fju4yl_lwBBeQOHqP2HPRNnUeVr_oFUqUtUDJNqii-OxFr2e_tOkdhob_aw&h=hTtO8ipEXHBte9iolUX66eu072o51jE7BvcE4V2ZHbg + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:35:18 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531157192235084&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=zeQ2R0_B6QpGsLkmmLT7AKnQdCk2Z3rZXKf9e8AGeBC-VdVYfvX5E58FSSU9zHktgfp_rWyZSF8xocQNgHLWDUMyhEGppVN6hAz2m0aQdELyO9zcNp1dnc8m7UKnXL12LH6JVfTLNjkIxA0sklUPF06MuevYTvbap4QKEeywdD1e0pfbpDQzmzpj8L748FNGJFLsBag0-51IbjKEJydwujOm6TJcAb5Dju3aWuuZ8V5-MkoYFCSr97cgmB_dC0HoBYcj9hfvjYUxhnf31pqAAIdYiF6Fju4yl_lwBBeQOHqP2HPRNnUeVr_oFUqUtUDJNqii-OxFr2e_tOkdhob_aw&h=hTtO8ipEXHBte9iolUX66eu072o51jE7BvcE4V2ZHbg + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/38433524-d9f8-492a-b0fc-a39b9bce7704 + x-msedge-ref: + - 'Ref A: C9913030510840E7AB7A0503BFD7C7B5 Ref B: CH1AA2020614021 Ref C: 2024-06-04T16:35:17Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531160574624131&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=JPnbLeK5clDHgAKb04-ypeoTzDmBJhcfuncFePjbSQ4ppdQ51Uh3jQeigOQvP5sr_D1titzmjcaMvyQqNIxc2cPpfTIcyq5Dpk4b48JmulUTRZqzgOSCZG5BxV0XTog2gju6RAa0JMkP_3wHtuXUBb1c_qJo23897lvgDlX_UM06RBa9QCRhF3Jo_gbguMwMzbCDXABU3i4j4crmyYCZ74jjrNMqeRK2Xz1dgtID2yWlsV2J0Uj5DPt8qMSF2p1Sk12Js6hyf5RQ_KGiIZsnIfvcStquWN3TvCn8iAsFDgHM_mzfMKwD3dt1sRVfm9HxMMkwTytpPt-6aWCoReOeNA&h=YNBn5_qexBGNY_pnx7luuCztwEorB4XqMEyVyoZHSLo + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:40:57 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531160574781253&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=mtdMiRmljmcaHGy0B9aq7AygAddvZAAmooUgujruk420VQI_Co8oiT6u1pJGrIPMVHhZunJ7EBET4Y7y_zEHScqf6dd_cAC1lLHu-hd99sWvZ9KykTO5mYXk5qjcoviXtXz4sfHdRAnMwpgCUBCY7MOZjXxpX2PZ0NxFNDEo9tBG5hodUC5LxZVfOD4bsz4jJg2Qyiasz-_YjXxCsLg583nvtzMpoQVuPe8bJ_fCqEMsCdWuxXpgBwPfb2sV-juJhx9huqrphwEmkorhXUb38q9B5Mt_EoxLcp_V9R3H6q4U_viQZ7_WkmsKOK0a5ST1w4_pQTPeKXVC2bqd1iPvSg&h=zNrliNWUIaa6o4ISIaTkSaWAySKRTgfLirrA2dw80Jk + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/335e13d7-c8fc-4a1e-b19f-8ffcd43b267a + x-msedge-ref: + - 'Ref A: 409E7117509E43BCB0FE346FFD2C2B9F Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:40:56Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531160730264252&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=t7I-OLd_jcS8LK21Ur3VBrxfXGIAKHR4Qc4HHckZtRnUpcdpN7Ap4qwX8P8khdNElmxKJI_xpbDMWqEQlRaTZcrJS0f2JAzMKQj_IEgA_M9ITYskp6mQwNKWeNe7KoGfE7YU7OQBKZ_pDbVO1YIhwxwkLPpexLMjDTs8i_6tdBR95kENjhXLEALGrrDIjubl49zZm1DLc5hep6LObLwcLXIhgkjVF_t0u6uVss-iCDwgOmLjWpyzkqUJe_HzqxRSnRKSdwSeUQ3NbQAyJXHqtpDBnjti1FhWLnH8y-6Kt9XW6y8jUxYJWQFh10GoXBoVi5v_Duar6OtEOsnDSeOWhA&h=C0Kvw0s9j1UwFC5R_rrsrLlSspSI3O6yQ5mfynOf9T0 + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:41:12 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531160730264252&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=t7I-OLd_jcS8LK21Ur3VBrxfXGIAKHR4Qc4HHckZtRnUpcdpN7Ap4qwX8P8khdNElmxKJI_xpbDMWqEQlRaTZcrJS0f2JAzMKQj_IEgA_M9ITYskp6mQwNKWeNe7KoGfE7YU7OQBKZ_pDbVO1YIhwxwkLPpexLMjDTs8i_6tdBR95kENjhXLEALGrrDIjubl49zZm1DLc5hep6LObLwcLXIhgkjVF_t0u6uVss-iCDwgOmLjWpyzkqUJe_HzqxRSnRKSdwSeUQ3NbQAyJXHqtpDBnjti1FhWLnH8y-6Kt9XW6y8jUxYJWQFh10GoXBoVi5v_Duar6OtEOsnDSeOWhA&h=C0Kvw0s9j1UwFC5R_rrsrLlSspSI3O6yQ5mfynOf9T0 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/9df8e648-cb56-42de-bd1c-a674c377d2a6 + x-msedge-ref: + - 'Ref A: A64D5EC2237E4956AAB7D30726185804 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:41:12Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531160888739373&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=rE8LhRYG6PzaKAj1ELcZgQimkb62wDgkKf0QFf3UChfU3fi-mNMT7ng5mcu1kVaeFNKwNAHgavAWKap8qD_ddOYwdfmF4UfTDK-jet3QGWC067bpOk5TpA6KeOJOXs9aNUKIPceaEhyBuPck5CF6tsJNzBqAZLl6VdAxRD--wJBu8tiwNbgxEVTv9iGMXNjxgwy97fMwGDC34F0z33BrjpvcY2fyS7qZuBnmADTx-4ryOtActUR5XaybPcG-3GDIgmkIaLGevYPG8qfmuLjUdyDPiFe5JkOUPD-UCqmf6F5VStKtXajsgcUnvHARudsqQQh5BKNXmd1PxyU5az9OfQ&h=N-lRaWV8BR_OK3eChy2zexIbZmwihs_GdGRHT7AucXo + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:41:28 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531160888739373&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=rE8LhRYG6PzaKAj1ELcZgQimkb62wDgkKf0QFf3UChfU3fi-mNMT7ng5mcu1kVaeFNKwNAHgavAWKap8qD_ddOYwdfmF4UfTDK-jet3QGWC067bpOk5TpA6KeOJOXs9aNUKIPceaEhyBuPck5CF6tsJNzBqAZLl6VdAxRD--wJBu8tiwNbgxEVTv9iGMXNjxgwy97fMwGDC34F0z33BrjpvcY2fyS7qZuBnmADTx-4ryOtActUR5XaybPcG-3GDIgmkIaLGevYPG8qfmuLjUdyDPiFe5JkOUPD-UCqmf6F5VStKtXajsgcUnvHARudsqQQh5BKNXmd1PxyU5az9OfQ&h=N-lRaWV8BR_OK3eChy2zexIbZmwihs_GdGRHT7AucXo + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/e3b7937f-c792-49da-b868-b8eba54fd633 + x-msedge-ref: + - 'Ref A: CEE1A9EB5D674FB8B8C58E525F760A6A Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:41:28Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161044286810&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=N6u_xAbhPQJn6oIRhE1PaNFf2GLGk9_i_NMUzaa5cd4RrltffB_Kv43UsF4r94JNqhZE0jczzJvyFLvViwaPmVOls8tPYJZtnsFZK1NzBb6oLncvpeey9QxULkQCCPKda5BKr7ojN13HhXp2nY5Cpr--1g6i5Dws5eNNxRc-6tDfRliL4I1VYDFFK2VdGKYAOWfDBVunjC8gUhJ4Op3s10EXmLDUIq6xbOZNiktdRvjeQ4haySQrEzeGeYMm2G2sr1KmXi2kS_AQvNQIt0M-Al0ONgzVtSqJkkf2cN16YjNM-OIR4LwJhzGDhwxSfq1TBdtlJbMwUPE5vOYZQhiNig&h=ASxpJ5iQ828WhTd6Hvec2F3dgBdfAn74ObAR2VEdGyQ + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:41:44 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161044286810&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=N6u_xAbhPQJn6oIRhE1PaNFf2GLGk9_i_NMUzaa5cd4RrltffB_Kv43UsF4r94JNqhZE0jczzJvyFLvViwaPmVOls8tPYJZtnsFZK1NzBb6oLncvpeey9QxULkQCCPKda5BKr7ojN13HhXp2nY5Cpr--1g6i5Dws5eNNxRc-6tDfRliL4I1VYDFFK2VdGKYAOWfDBVunjC8gUhJ4Op3s10EXmLDUIq6xbOZNiktdRvjeQ4haySQrEzeGeYMm2G2sr1KmXi2kS_AQvNQIt0M-Al0ONgzVtSqJkkf2cN16YjNM-OIR4LwJhzGDhwxSfq1TBdtlJbMwUPE5vOYZQhiNig&h=ASxpJ5iQ828WhTd6Hvec2F3dgBdfAn74ObAR2VEdGyQ + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/ed911540-f4d6-46fd-bae5-9ce724ba96f6 + x-msedge-ref: + - 'Ref A: 3D94F1187A624991B55CFEAF65E47D87 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:41:43Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161199990326&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=oDomoaNRg9GJbwvNmm5EGA7mu-dj38iwSr8A0nYlXCeITpsjY5jhs2670FG1TsKPRtFPG5w7Lci5WHWynZmu_5ONkexrIPWvSswl0cm72STEQgFtc7m2lZpwA7gcDjcaRGom9PEgWgBxf7yEp0-fviHICmKDw4GYk2WuEcL36lnMiX8tiuCrmDEYsditEO2eQ_AEyxdgWgUkWnYPkSNJTnvQP-FB3w7ijb-FwekG1I-v8WFS7g8LAuEHkngTJcjXwEnvrrlouwaHLKb8CNDOjpX13DKAWOAAjyD0iTFEEtH9F1N6FJRnvnOeJ9gZp_bIDeYV0Q-ymuPmZpMSWI5ntw&h=ghRkI-1NyEB5zGbEQ_whiUL2WVre7cxdyuXz8ItXnF8 + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:41:59 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161199990326&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=oDomoaNRg9GJbwvNmm5EGA7mu-dj38iwSr8A0nYlXCeITpsjY5jhs2670FG1TsKPRtFPG5w7Lci5WHWynZmu_5ONkexrIPWvSswl0cm72STEQgFtc7m2lZpwA7gcDjcaRGom9PEgWgBxf7yEp0-fviHICmKDw4GYk2WuEcL36lnMiX8tiuCrmDEYsditEO2eQ_AEyxdgWgUkWnYPkSNJTnvQP-FB3w7ijb-FwekG1I-v8WFS7g8LAuEHkngTJcjXwEnvrrlouwaHLKb8CNDOjpX13DKAWOAAjyD0iTFEEtH9F1N6FJRnvnOeJ9gZp_bIDeYV0Q-ymuPmZpMSWI5ntw&h=ghRkI-1NyEB5zGbEQ_whiUL2WVre7cxdyuXz8ItXnF8 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/ad8809e4-4e29-4c04-ba81-4a451fa26ac1 + x-msedge-ref: + - 'Ref A: 11A09E089DE24E0A8C8DE861E993DE78 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:41:59Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161356567661&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=BWVAXny1joKV7TLifWz-8OAtTHVkCY2pS4ujTYMf0kdZuilI3_x80edlD7IaNybTI-4vVLlF4pIkN9UyFXKYGZtLeJsAHWW5K1YIFbjBO1SCFO0_zI28bnM181WskM-VN72VhRDMuXqxlWFmCAS0ydFuyK9qqLuaQo8hFMrHy7_BYvP2UOABMbdMmuP4OnkzUT5qGRJ5Qal6VgRiGfQ_4P61Us_xDq9p_WP-GK-Lg5rZL7obzzmBWHHwW3iF94V1FwVvajminCTd-qVBgSc6g8Xo4mUtlqV7h4Inq_o2adMrguqzJV9ovrs5rvaousaQBvbcui5ijaqZK2eqJMJaOw&h=sizH9G-5G8r2vqPYfs423i06R76N-47zWT599OEoXWw + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:42:15 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161356723883&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=tMEZAUt3NX-xU6EDvTisFEnEF3pkcoeX-ZB2ckLAp4x7w4vE4GcnyWP_sIuVb0PsJOxHh61DaXOrmQyoaGgrdRMSkDfUJdCscbU5UJNxKrbVDvgzklGQRzdaaZwrHDrPLWpFxZWvbbBxsDFB-FUNXsT0lgTCpDNvzgJSp8yDiBVswxzjqg9So3b7K9jPzB_T4XRpFPFFqkCrsNUzaxmibx_sQqNyawX7SGOvPNHDjyaedQx_D4bj2VPH1IrCoqDTcTVU55pV3b8wNwyiHHhacerzGese19FrA5AU4PPZYiEqbfb5vaI2Ta0Q5Mk6K9U00v4rK7S8d7fdQLdhEaJ8HA&h=MLkZxhFr3pv-_VRIeZgbDNGSUVq2MIAh1cGj9G8XCuE + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/505b1861-c5f7-4159-be26-df7366fd79f8 + x-msedge-ref: + - 'Ref A: 7D20129A8720400598FAAD4A7D6B1BC0 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:42:15Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161512170108&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=lBVBfeiN-DqGg96SsbzHjvG8dewkS3sptdd9r0j4ymDL4nGZ1_T5-MlAMxXeu3rgSrE1dC5Ww4-KX1jTfTddH80xrDJIqTnSVoJA_Kn_v2PhIWj7wB8Sk1C9WMtPsWXO3L5pAIQGoB8JBhzVCIR6pNyUQ38dNRFZGUXJnXtpk6KK0mwVGgVBKPh_FauzZ2pwMcj4-L6JYbSjvCmbUFHAtlTDFNWa9kgmFg5Vpe3cAzE6DuVckmYyqGYkoKAR3x2epZLTY4iNVMK000keRvT95cKyKEZX0yKQlesMNei29i0v3AehS4F_JBKuiaAteV3MteJJ3JkHvQloEFor6Pr9tQ&h=4MLsKJZAtcPpGYNBbrEyCrqbPddRJUPvmHcktqu7df4 + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:42:30 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161512326534&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=c6IPewnttLRDngawihH_uWW2STdXXi_23X8eqTbi_LDLLopBvQFZCzH9af1d7USX0yXMAqnCQAwZqufL-ptZ2zrR5_u5nGH4dNcd01PAVv--4hl2zU-HrzrC8dd9NRDgffvDo0y_2jqMxt16Sog2_O_l4nfunwV-9xa99GtJeQaxk1ATvOuIMbSD6qYQz2lPp_VE4gWOyWHXbxt2epE7W5eHFKACMrwnZEP8EsK66XW3LWU3iWxomwlnq3le0kh0P39RMnz5k2aVWhwbswZdJiPbLHuKtMQVsUt9ln5HUVPYpq47vqu2-cUsFxmyfJAYmntAL3-2hRQbxJDO4sfwEg&h=gZ8nf-1eh2-jku4y7DwIWrvzeoTRtrIn5z7JT5q0aWI + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/d0b0ebd1-be98-469f-88c2-5a0b17b85460 + x-msedge-ref: + - 'Ref A: 134D6B98AA214D1DB37B46ABE13DBA1A Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:42:30Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161669992562&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=d4fupCbb8syD_kD_TGL-10fQlpZrqtwSHOR3AQp2-bKuy3tiKnN2Jn8CfmdnnvMvCzGRG1FRftEd-RfeGmoWQrpPMBlCUExp19yBB0YSPXycLxi43VRsZn2SBwrFyxWbLIX9-CS97xxjrY-o5_vw3c6GmkEL0t14hUGvG5Xpv0wBi8NSG6xm0e33t6DRwXnYppSoa_TRaCAOVJvM_hQm0IPwo96iBgAeAbF76k5Ujguva5JhXVcVKFZD2Z9FvHb7PbyIDZEmOydH94l2dQ9e72hcsiIH-uIocRvasM9_AzPRTxJPHqOjBeNNIQs2a2xaqGSD2EJAl6Xo8YbE950SLA&h=vY-nwf68qZGPNIhESDQwYnObU6VyU2qzziPswKn6iP4 + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:42:46 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161669992562&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=d4fupCbb8syD_kD_TGL-10fQlpZrqtwSHOR3AQp2-bKuy3tiKnN2Jn8CfmdnnvMvCzGRG1FRftEd-RfeGmoWQrpPMBlCUExp19yBB0YSPXycLxi43VRsZn2SBwrFyxWbLIX9-CS97xxjrY-o5_vw3c6GmkEL0t14hUGvG5Xpv0wBi8NSG6xm0e33t6DRwXnYppSoa_TRaCAOVJvM_hQm0IPwo96iBgAeAbF76k5Ujguva5JhXVcVKFZD2Z9FvHb7PbyIDZEmOydH94l2dQ9e72hcsiIH-uIocRvasM9_AzPRTxJPHqOjBeNNIQs2a2xaqGSD2EJAl6Xo8YbE950SLA&h=vY-nwf68qZGPNIhESDQwYnObU6VyU2qzziPswKn6iP4 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/87b1044e-9ee6-48c1-b140-7dca698c75e0 + x-msedge-ref: + - 'Ref A: 92EB279E9E5E4CA4A1FBB89C409120E3 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:42:46Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161825845324&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=rzOJr8HSnMs9Fzp90nu3-MZstxcOHy7SOg2GAvQDaDa1ia0hhS_r9SoB4XgKNduOW_c-XOJ3RdKIhscn8-3Q8Axyu9w5pLo2zwKWTkBDZxPrhFvBK-xKbHOWV2a1d04-02FCJyJZnTwwjqmaqQ_K5lF2pP-2bgyAOSvzMmIMCPmyu3Q8id_wDfqPmu6_IfWzPB8-aN1dzd51EoTWcbvLqFtO4di7jGYNXFym_Zlu59a9XpIVgxcVl7WVBAkyKYGlF92E3Px4A5ULTIwhc8XjBLUL10aou4VLpLm-hnjrNMRP4PtPKgQRdYHMPx6w63kTj-jzkRORAxaOUrRhqDpkaQ&h=FDhEB8NmrU_4SuT3hYrNbvXnCe1gxk2N9duJ2sRAVws + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:43:02 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161825845324&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=rzOJr8HSnMs9Fzp90nu3-MZstxcOHy7SOg2GAvQDaDa1ia0hhS_r9SoB4XgKNduOW_c-XOJ3RdKIhscn8-3Q8Axyu9w5pLo2zwKWTkBDZxPrhFvBK-xKbHOWV2a1d04-02FCJyJZnTwwjqmaqQ_K5lF2pP-2bgyAOSvzMmIMCPmyu3Q8id_wDfqPmu6_IfWzPB8-aN1dzd51EoTWcbvLqFtO4di7jGYNXFym_Zlu59a9XpIVgxcVl7WVBAkyKYGlF92E3Px4A5ULTIwhc8XjBLUL10aou4VLpLm-hnjrNMRP4PtPKgQRdYHMPx6w63kTj-jzkRORAxaOUrRhqDpkaQ&h=FDhEB8NmrU_4SuT3hYrNbvXnCe1gxk2N9duJ2sRAVws + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/d4787559-2c1f-42c5-baed-e96c49da8c3e + x-msedge-ref: + - 'Ref A: F91E178F1BE8472398E11EB2CCFC8D44 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:43:02Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161981511842&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ElMwg09Uj5wXLFvo_bCszRab_0fxzgLYzx2wAEdDStYGRrbfRSwXCo_QMzKdbJSclkJl_XXM7CnAccWrpyYskIePVBUiW26OXN66qsumPJ6PHB9ein3YfR8_ukRexhZJNaxk01QCwBQaLU2OhSz0E_A1QwZZ2VU1BWASxlY35R4eKlfiHk_Vh6g23k9i0C4DSkFCtDeo8iY_mKlUQ5Sv_XRsm2EjXUbxBDlG_4itQB9XRjKVx-323GYbZhTYHwKGzeAu-XmLvwJ1FNgFIJBevnyCGph8_it4POLUjLyGudw_WFfXjtu6e9qg_NfsRYmEDrzHL30sVYh-gNRMZk1OBw&h=uXGwAc8NgMh-6mHKzfFg8uju7jeTevSs2tGj2Jn-lO8 + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:43:17 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531161981511842&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ElMwg09Uj5wXLFvo_bCszRab_0fxzgLYzx2wAEdDStYGRrbfRSwXCo_QMzKdbJSclkJl_XXM7CnAccWrpyYskIePVBUiW26OXN66qsumPJ6PHB9ein3YfR8_ukRexhZJNaxk01QCwBQaLU2OhSz0E_A1QwZZ2VU1BWASxlY35R4eKlfiHk_Vh6g23k9i0C4DSkFCtDeo8iY_mKlUQ5Sv_XRsm2EjXUbxBDlG_4itQB9XRjKVx-323GYbZhTYHwKGzeAu-XmLvwJ1FNgFIJBevnyCGph8_it4POLUjLyGudw_WFfXjtu6e9qg_NfsRYmEDrzHL30sVYh-gNRMZk1OBw&h=uXGwAc8NgMh-6mHKzfFg8uju7jeTevSs2tGj2Jn-lO8 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/5d9f845b-0ee7-406b-a5f6-13fb8eff5dfb + x-msedge-ref: + - 'Ref A: 1ED5A172F25D4381BCEE90FF24BFA925 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:43:17Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531162139177927&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=k3L-kBFbkgVSLZOhwNeZM7ABhxpbtYWDYT6YTsWVA9M9O_vBrkzpNHHzIyauCILAV4VBYI1DfG15A26VjtRkcnYqg3UJKcEJFprZDkW81Z41aNjzDTNBWdudRZk1BAgq0zFUdHOhBRqSfv4soIs8CpA6dgt4lsV1z0MUBxLNnYM5ukRylzNXjhO4MFk8e01KJVgffIKHjCHzkyHQ9nGZ44sAsq83q-veHoWDwytxM5CTroE0gbjesDXpuUw3pLaiP_Tow23qvJjZPC24DT0h5m6QaQmJ6F0phoLjK4STUXJCkCNFy0IBntn2S1FV1tUC9_lu8D5SFS0OhAHNu4A-aQ&h=1H538sV_dvjiXIjEqYAjZcqJf1vWPP-fY4H1cMyN-qk + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:43:33 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531162139177927&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=k3L-kBFbkgVSLZOhwNeZM7ABhxpbtYWDYT6YTsWVA9M9O_vBrkzpNHHzIyauCILAV4VBYI1DfG15A26VjtRkcnYqg3UJKcEJFprZDkW81Z41aNjzDTNBWdudRZk1BAgq0zFUdHOhBRqSfv4soIs8CpA6dgt4lsV1z0MUBxLNnYM5ukRylzNXjhO4MFk8e01KJVgffIKHjCHzkyHQ9nGZ44sAsq83q-veHoWDwytxM5CTroE0gbjesDXpuUw3pLaiP_Tow23qvJjZPC24DT0h5m6QaQmJ6F0phoLjK4STUXJCkCNFy0IBntn2S1FV1tUC9_lu8D5SFS0OhAHNu4A-aQ&h=1H538sV_dvjiXIjEqYAjZcqJf1vWPP-fY4H1cMyN-qk + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/5db7e90d-f58a-4271-9451-65560b5e961f + x-msedge-ref: + - 'Ref A: F89C8E1D34FB4F3EBE6968BEBE909798 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:43:33Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531162295336179&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=eTKUDLOXPrrITIGkyrTjXwb7Y0ExTY8rEEOA18MAO6UNsMFeojkhotmdRn_OjpRJMDt7PaI2kXAdDbu6yu_rW9Onzm7Ih233nDs6g3YWm-gE9mhn_tLa0dra8j_ODqkJeaI8jPSAu_MSDbYf0m0Jaa5iwJBQuDk3HtStdwFKflc2AYcKbtzoFy0AI20bBosuikw_TMJcmVjtQBcIDNvNC8xlCNVcNQ91b9F4sau1TsehM5nBN79FoMWBo6oxHxgV210d5QeyCo8O3bRyZZlV9LGxICOI9bqGx6FO_Nhm2UBZJpr-6QWYQJ-GJO__40bdbbDnR-WRs3weCoZ1dS3bew&h=TVQVhOGxgiNRb0soR4w-3LwlRvObPmia_Aet9SzRq1k + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:43:49 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531162295336179&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=eTKUDLOXPrrITIGkyrTjXwb7Y0ExTY8rEEOA18MAO6UNsMFeojkhotmdRn_OjpRJMDt7PaI2kXAdDbu6yu_rW9Onzm7Ih233nDs6g3YWm-gE9mhn_tLa0dra8j_ODqkJeaI8jPSAu_MSDbYf0m0Jaa5iwJBQuDk3HtStdwFKflc2AYcKbtzoFy0AI20bBosuikw_TMJcmVjtQBcIDNvNC8xlCNVcNQ91b9F4sau1TsehM5nBN79FoMWBo6oxHxgV210d5QeyCo8O3bRyZZlV9LGxICOI9bqGx6FO_Nhm2UBZJpr-6QWYQJ-GJO__40bdbbDnR-WRs3weCoZ1dS3bew&h=TVQVhOGxgiNRb0soR4w-3LwlRvObPmia_Aet9SzRq1k + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/b82ebf29-d223-41c7-9bdc-2f7f353d9d31 + x-msedge-ref: + - 'Ref A: 9D562D71BBA54293B4845E9CB6FE3912 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:43:49Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531162450961776&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=YRTsxh_VznkIzz5R85VXa2bnZuT200e57dHul9Q6z0mqAXZmA8wUdu4nRDeKDatz01pS_BlGNY0m039z5T9HIvi2AMlH64_nVQQVNOgiirH2u3G3L4_aeUO4Is6ZnSY_545fWeCWD_E2ZRZPMaPk1s5msDURxJFYaG265_SGJi5yvg4sAoSlQlrTn_KD05Spm_xC74qiIotDPIjSVEvPGw6qqv_embkyS7qB1NEy_VEguUn69o_59fFf7Br568nyeQzHxYoEcd3InpGMK7pDhlBFse6WjmOSMlcC4ufg4QEN4Pmwgo6fe7sEZAc7PwjY1hnQMgqlu3rOPykg7b3uyg&h=bJ9pNJtQdfYIdEFyR_gxct5PB6538LtgTmiEoj0bcPQ + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:44:04 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531162450961776&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=YRTsxh_VznkIzz5R85VXa2bnZuT200e57dHul9Q6z0mqAXZmA8wUdu4nRDeKDatz01pS_BlGNY0m039z5T9HIvi2AMlH64_nVQQVNOgiirH2u3G3L4_aeUO4Is6ZnSY_545fWeCWD_E2ZRZPMaPk1s5msDURxJFYaG265_SGJi5yvg4sAoSlQlrTn_KD05Spm_xC74qiIotDPIjSVEvPGw6qqv_embkyS7qB1NEy_VEguUn69o_59fFf7Br568nyeQzHxYoEcd3InpGMK7pDhlBFse6WjmOSMlcC4ufg4QEN4Pmwgo6fe7sEZAc7PwjY1hnQMgqlu3rOPykg7b3uyg&h=bJ9pNJtQdfYIdEFyR_gxct5PB6538LtgTmiEoj0bcPQ + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/ba81dcc3-e8e4-4975-b9e9-1962288f75c3 + x-msedge-ref: + - 'Ref A: 8FE505804D0848D188D2C0B42510802D Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:44:04Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531162606801374&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=Chgc2w66bFEvu6zbyEc0UEeGiTDdhBO_h8_YnYZdNXj4WMP4Wg7sxXjbb8CSeXWCfuynmJ9mQmM6nM-e_N6RURHZ8LFpFujruLa6Znvg4dr2phPTAF4jmgLQRGAEwRyTNM3Qmo2x0lRklKBYiPq9rKYrpcivLWx69Olci1mV59bPUJxnKq_m8gtthcNw_jvbxh7VlnnnjVeWuHKy0N-WFX7v4YxrMsRTemYj5cbN_8fnbhTZdwdZsK3I6UJiZaUO5YwYyqvMHVY9VHJl7zTb7GPQmCRd_Q5_KCBl7YAlhGXUMo-7PHqWqBx7n0QIh6ZCjEytyJJz2kbDzA5mH8Lalw&h=7sqLu5G7v-SxkCL72OxA0PMhkZci02B2XqWsKDD9cdU + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:44:20 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531162606958749&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=siVRIlbQxGVZT11PltSQKGjyZEyxabNC7EXVAyAvot2v7gi13E8oHFwNyq5u-CMnqWAnKT275gFw8RFPtj3VMANPFNTdqJ3WrX3uT_XhVaInW5jmi_PiT8sd_k4ZQQ2mXVeW04cUo1zQzUf7Yo2SIUSoGmqwwwEyA8kTj9x1do8dJ89uGh5umoIA98DTdyxN9GVu1QBj3ruJasCeF4jUXvi0__-vC_K81dNELx_7rUmReHuehnGF_TqDJOMMFqGW7cRD5Az-eg1EdBln_BCxLQJ9DWqrQ6fvcMyEF2rHFZETH8J31vbO7ZnUhoxDgJ-5r_iqydFLSpkSx6qdVrkR-g&h=rq0tpmEWkYUxyxtRMan5H4fb0INzPxsULiOsp-ZaS_U + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/8a668137-8629-4743-a207-bbee3cf736d8 + x-msedge-ref: + - 'Ref A: 9B47D17BF7334261BB6765BA2B0E3788 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:44:20Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531162762280294&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=YkX7xWPElvGxmRoF71mTkQRyXVEFjjDo8oyo-lWmm6aN3kqtChtWIWgARhnwGUDv9JW2pssOF_BFwFTrUo8C0vt3TyRr8gzyxTeHauUEh71BSMp1gD9z-edqYy1w2GFSPmxowC_1yznf8GRhfTk1j53Dozeu8_2nncyDonVnKyl9WEUbn3UDeIl-mgTLPLiDZ8MsNyBnz79aMep6GdLoxnipzsjSwEhSUU45Myzx7IftClwbFcZ95RAH06TEhQ5eOIf8PDKyp0nER_yMmXdlEXjG5Rbpa_td8T_pzL3TF3UQuomP5QhYO8W51VDRGehyweHOMvGyzS28_2tgNFKwJQ&h=AVhSdhOgkLgWeih_BwEyxkRh9OhIaLu-jn4_AF0F_7Q + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:44:35 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531162762436997&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=PjNCAUMoGDeO5aMRFitj2pIv26sHDF3kpiXHpK060dRkLvtHlHbPW8jchfDDAYReiwg6rWxjEgeOxRpKdOqC5nNPwyLkVWHI9E-b-PdiJpTPs-JS2lb9RRkT2PpXEnggKM-dKrxAjHJSapWYouU_YhacvOLu4e4bERi-8qwS32i90hB6S_fFpfyvyWxB63Z0CgacKe8-mFysgzUKYN41yxyud6w4z-PRdjTuuOc9kBCkNQaKkMgrRAwzVDD3-YSrv0KGQQ15aWxCv41G1z6hI0G_EU4KbDyERSASM1olA9Mjt0fmALrxjIElhQEwgCp9pI9qDTiEJUZjmNSKMlKNLg&h=TeaYogsoqBz2o-BhdqmJaBpVW2SghiRqiIzhBd7Xp38 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/9e779381-3a40-4a7e-9c8c-be3d8e402717 + x-msedge-ref: + - 'Ref A: 9002AE8574134EBBABE660CD8EB4B626 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:44:35Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531163229181385&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=yjSozTZlyU2l_FrfmlnYWiy0UDcqiE5d-kn3-aOAYVKqli39E5-Grc6owRFEIM4VSa6tfrtQ9wwDlFMToA2K4-s85xQlW5P5d1YKYcEAkvjhGZ1qBF2ASNm5Ty29oSjZNPwwDT0bEt6ZxTo09mM5JAyAwcNkWm1txgTlsiQGhHrIWxk_rDrzYavr3MB-W6gtt2hK-YcmV9LKicIruqsC4fYE58XRwlu8shu5YZ4YhxjFz1lfRF5sl-SWvt27DdBD4Hk2eRgnFRlaGVFGgLyqzg95ezq_XB3ju_1jjnHs3mvA4FRkMMXSRqjYIYCn-kQuSYlHFAXWY979W-C3XI7lmQ&h=Tupz9XGIU7SLa2EqAUy3SsyLEeMh7CrRW9g4ePY_jho + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:45:22 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531163229181385&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=yjSozTZlyU2l_FrfmlnYWiy0UDcqiE5d-kn3-aOAYVKqli39E5-Grc6owRFEIM4VSa6tfrtQ9wwDlFMToA2K4-s85xQlW5P5d1YKYcEAkvjhGZ1qBF2ASNm5Ty29oSjZNPwwDT0bEt6ZxTo09mM5JAyAwcNkWm1txgTlsiQGhHrIWxk_rDrzYavr3MB-W6gtt2hK-YcmV9LKicIruqsC4fYE58XRwlu8shu5YZ4YhxjFz1lfRF5sl-SWvt27DdBD4Hk2eRgnFRlaGVFGgLyqzg95ezq_XB3ju_1jjnHs3mvA4FRkMMXSRqjYIYCn-kQuSYlHFAXWY979W-C3XI7lmQ&h=Tupz9XGIU7SLa2EqAUy3SsyLEeMh7CrRW9g4ePY_jho + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/8103fc7e-ac62-45ef-9b0a-d5f74e68ce0b + x-msedge-ref: + - 'Ref A: 8E95EF0C230A448CB39B42146E471DBB Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:45:22Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531163384658234&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=KuLvl2RmS7SH6Kn5v2nPNbwiNNNTkpKWUg_dNOPphPU7HrSY_ED8R0zZO4D_05Ir-J01Qw6cIegvBt9wc95-p7l6vNQg6bQJtwuL6A6g3etrTZLffeiEaRx0z_QF30dhNUF8fBA7WYD9EcJ89UrTgEA0hBVturwpOuQ5i6iyOZQFqPqOupsPOamcOWWEL1qqVSpuZqv9XvHp5qLxEH1vkkTuBedLyEmJ9r_KY_AAqd6TIls-HR1ijhf3YMqmHE2Qm8NY7OOuDPHOihYCeL2ANwSpOF4haxfoXvr93W2Jl4CtwYHF371yI0yv2-SS9LJCTuZy826ezDDqM9ExlOUvLg&h=PQxxLeuyUwZRy_4v_pK6Vu6ctDGpEklRydVwPIqLBns + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:45:38 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531163384815021&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=O5PFXCBMs3iMDEYzXMsiYnnUHa598Jz1gaxOPTXs_M9PFJl6Xzx3dzCqxoS7C52TOuTKBZt7zJqjF8_Nw85-KRp4g5EhblsrbkX5qynJNvmD82C6UJBrbZhAHsSmXWzESX7D9Xeo4nFgVIPOyHcUiJEf4VmuC4qRHTDLuQDL7VaCY2mt5T7fARrTw_5RLh0BQdFxPcgLSr_HR-QHmH8SKRmdS0ACs-t4rRwlIDD6YWxWERrFulLILa0JfeyoqBlfaWyvwWpJtGAwyx4dLYUEmnIMWMhLIJpJOBhG7yOvruq8AKj-PEwPZMLa3XfeIkaFm6M98gcr1DOta2ZGYs2L-Q&h=3E_OjE-qa3GKEDUAwO65kzoWw2H5pJ5Z85cortTR71g + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/580f4253-905b-4372-99f7-3b5c85bea3ef + x-msedge-ref: + - 'Ref A: 648298022E204C17B9E1A3EF93F1E355 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:45:38Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531163541129092&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=vEf-81JmDYPbaE25xBLVXxdtjhxBAfXFg2Jdx2iphhb4wOcJh8j8zf3fJH3-58z9OwGJOb_NK-wKLkl2k2uPbFSv0s3pjUsXuwMUai29lE6a9-m5QPn7BW8UnlDctvrdDPHay9JoiW3huHGia6yLvgvUfYY1E2KdL_fsl1zEWPJFF_7kXYm6dGR7fznJnebYtwb4G0CshzwSOEXZO-o4rMz_-1OXs1nOBgqPq1nmuzQCBC9u89_ukanFeKAJJ-HidweeKiAHbFdS1cCiWJRMbEk8aSI_huoa7zwT8yh_GBoUhSv6aIY8_AiXlgX3M4fyJ6pIiYti486Fi7imr795Pw&h=dkmtF_YsftrBTozKRhfuBPCj3HtaX1FPOSQV7K87MHI + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:45:53 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531163541285059&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=CwaiArMAu7g0IgV3zmMPyJKsdAJs9rzXtNANNPFFXYcQgrSI8v44NgUfA9J5cLj43GpJZ135YmJ18bDy0sduoSr0Rzs8mzVvtTXtMyVnGS9Ag23fwbG0GctYoiPDEdAOJTiCZPGbl0XnIxAuVlqAhWb0QHTCLGTqL6nEpk9ZjlMq3gHHNF06N4eNZP5P9VCcI6gOnE3CRK_OgOyfb0nzodNGDN8ffE6A8Rj_rP17IYMsf38KytrQmj6jYxHrOrrs2F_k_e4aE0clzfNlJ40VgAKz0sF3vAdyk8Mg95B8PMf-3Jpef3An-oMPvUTpezKfMp_lVD4VdEQRDBTQgN-TAA&h=ivwpH_jQQujAhd_vEUZfJC88ELJKwE3xHkMvsNrZfW8 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/e840d765-280a-4d30-b61d-a5575ebf3bc3 + x-msedge-ref: + - 'Ref A: E630B16D6B9648B996A43377CDC53809 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:45:53Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531163696705747&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=nMHNqOjM-WmXkSyg5VJjxZP0IlxBjO5KkwbIM5dqCDtdFVQn-HhDW6-IywGSgK4gUfSeiVLWNUzbbqFyClC4r-kCPTXPsQ3KIH7vuWmpvakCOsbVsxFtCeOwwwbrv4h3p41o_DqNFFxdS5xX4MxD-kVRIZ_p-wUhLGPAczBIP1n3OwRo36wRn_XuxqONOzsk7rzliNUMM1rdpJe03o3ruSPNu_p5JVC8gqWjCRRY0CwUWjBSE5RcljFb9H12ath5cGBNgm6wq5C7iWsybZJ2OUxpcUSKXqN2YBcxZevT3VFMFYIpiTMEz_i4joEaAwF54CRNvceQUNMuS3sVKnJhmg&h=lTEyXA8t8dQWOsZO6anRnQUeE6ZT8lqBcm5_5RuoUfM + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:46:09 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531163696862042&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=JVDjumAY1DxHyTcb40Ayr9lSJq1Daggo3pIwDzM3hOBox1xsQdNvt5_nkUnDqtcIuiMDPHFkqdCVU4hOfxsC4_pFrSmeuxfHQOaR8JLt-GpVqBVI8eZKKFUoadAIjlAXkfmbY0dOPY9U97E0j34rgNyRpGyfpbZfcLYVAVdZ9JEiNXWdiagRCUtsMcFMhb-5TV54z-IZxvKQwP617KUIhInCSJtVGiFuk6jDu7v_A92-KT1Cy96JQHLeKfYFUTTkt7RmFqhravBaPo-B4jDx3Y7zrwI6AZPNoAklD-Ym4GdjPZ1m48OgLxlWhhdl_4LsFWMwxmwKZx4rDYFnANat_A&h=QFcGM4UJ_jJMn77r5TeUopd3pvg3RnKkb5azL2oNcb4 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/82fbe0e1-908f-4f7e-a0e2-4f61bf8187a6 + x-msedge-ref: + - 'Ref A: 870108D210834E47AA86161C5DFDBE4E Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:46:09Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531163853330381&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=JboUW5YGHazDJDTXaIWnQNMV8_Tw-06wO3aW6IzjvFvGVxp2LGsL3fWCQCp0pnBr6O5b4D3HfTLAn6m8P_cABrz53z6sVbO7kt3urFbq2LzXdbAHdQO2rCOPP2g4i9L_gzMdCOrZxSsl7294uU6D9Zsj9inVH8fHqDa8E74KtC9fKFhvj_yec7MrpMNB0iieeXlUlgwUPKfoS0_JbkmDanxitERMiu9Etp8Q5MOl5O2DHVffCnlQEi1px75bhNrdyw3Rg2XOrZVDz-t24de5OHDLsc7Iy4Wi31YgGSYsM2VAhQszv0SeJh0ZcoggfSrzbvpwRNvGmbtAkc_8G5aEXQ&h=wZGfx01d5EELbZnS32uqqljbauxAmwnptjMIUrieaIA + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:46:24 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531163853486467&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=URwys-hjpTBlutz9OQi_2wz5qTRDZe-AcQD-4Y9Z64V5q1wc3s0DdNY3yaW7n5ywH0z5myMiflb-RzCVJ6sBKg2-viuNH20DNmO5a7HJiW-5Tsem-QOkrFjzzhPWib53SRUACaXHaFrRI8blAnHYQUGRqxdxKqKYzpX29cNBXYnu1tr3QwFK5XGSaRDF_-6cSjpKV_5uoDg-verfrLe7mPBrmi_ABVCaqXWy5jqr1ppAh8LkGEqToIbxn7xxGqRnwLsIcmNWGCyuMTWoL4Z9BWChWCBHZVjKYcObqYLOgNvj6gK-_EML0ewUYJ8Pg6GAatVc7NmWAODQQ5BncI9i0Q&h=RzNm3SNiQCe9VRwAue2q7HPHSzt3yB0lwV3UTlpxpnU + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/d754da55-a1a7-4fa4-af71-410129c1bdff + x-msedge-ref: + - 'Ref A: CD414547C6EF4F2AA4DD5FF26A9BE8E6 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:46:24Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531164009263820&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=mX0VW55vOzqE9ztRNj4D8CCMVCaVUX6IyQW9W1Hv4_L53RYnvrINsR5orL5RMtybgcpf7-x2dUFwSQvXfHm8OPsoxpAD-uzuvAAb6AeGR_1y5swM6Ff79LcYUhOJQORKgnj4KmXkiFIntASEEd0mrgEkBl1kdmI9hBIdQYxbmAQQ6luihfn2HXeAzsdi6YcHYpAR5nHEtjagJvkx78hBh8EgLBOsIHHSp4qt6A3O-8B_tLlOxvtEbHstfmZHAIJRzg-NTxUpvKVI-Y_cqPab1QpjSM4shdkykXirvBbQEfkTVdB5Qpyo3MmhJffl3DNma0JiapkNC-Q_tqmjOWvfEg&h=tMod3vgrvNd9xpr8lJfF8052DQAIIr5QpM2gu21wlKA + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:46:40 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531164009419397&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=N1HQmRFyvzC-jW3A1syffflH_3I6QDLZICWcy8Xyuu7PX1JMjUX85oA2zJ1EQc3G7FGRWIOmF6Pw50O3j5CdAb14-_Dnhb86iQwRGZaX0E2_JNN8sifmF1rumzm5ZMzU2dJoqTLAWiAJYbl9AzhNZCVqeT_BK-TikVUuicamPt-XskGZfsrZTswZoof8iNwwUO37pOp1kZCbBEYdSGtCex5m8dbVNvJsncmphtKRTrv_A_5lLW1a5Fnpv21UTwakRYYCyWkRJ2FTrNm1XOVPlOh4KMrluHaFCciDFodKUu-HXvgqYdkM6bJesG1BbvyGClMzZYKSRYZyA-gbiDZX6w&h=UQmAzFr5KDXe8pXmi-zFz0vgKfivwxD6_-4AcZ1Ql6k + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/409329cc-7589-4631-bc1b-9684d3e4a437 + x-msedge-ref: + - 'Ref A: C307474ABC0648B58D1F00B5D3BD1214 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:46:40Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531164166871397&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=e3hiW59BBFYBOVAP5zxz9TVvcjlgNO3Ct-ns9WhUF_KgPy17Af72GR4B9atSBX8G0xYe3UDNyXUJ5JiOoYxEmbxwP2lfcglmELa_3UWhzAyheOBrX7f61rErOWBLv1qUULoC_EnRnCDl_LpPA6udYUUd9SmA1q2D4b01WpBsfA_1q-HGtaIKY137dCmL2re99p4U6igTQJk4abN_K10g8mpiceGslMTY76yVtIIZ-TIiOdjRXTQtMcbFLnmapwHOrIhk_s5DqTGeMGdxFsM8qD00X_60lp4jPCarjSTz_YIpQBMBCpfkt47Wqb4uvHKYN7wJp-hLG61WuZgNPHIV-A&h=JA8FD1PAhCol-7Olk8SUm4l03YUALme8gb5rMQmcFS0 + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:46:56 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531164167027356&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=GUs_3XdzKh6HVhx9HAwhSg1S3KDWe49LHYLxSe6WziMmpEIr0AP6BFXDHFRPgcnFQ3ynK6eCpy5eAoUWY7ldO-QWrU6QYd1pWxS-16V6Ng21_vPRbrGMWqU1rOomF_h0h0dlX7eD8Hoo-Tj5dNR96Bs4CuAmHWhutgwGj-lemhCyFiHexDyHpBurAJunjyt87fC7awUVEp7mSPQ8R0qpuLyc24nIHGDc3mTiOxOTV68Hs0FV1EVSLuAchBPm3CdYj_srRC7vxOCLd5-7uTz6HN76Zm39bgayXj8rgyqF5WjOkF4J-y1BhbwlxQKVj7I0rWg9mUDcvkbIco7BSiU6eQ&h=UD2W1l9i0foeDE2KdPqvvVZBiJP1R1iOkoqSSbBeVxk + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/c0644d9b-f9d3-4e11-9617-43b09454daf4 + x-msedge-ref: + - 'Ref A: C9E6C7105EE6453BAD14DC41341D0661 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:46:56Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531164324122315&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=Bw-TLnvUgf6PF07Syz1K6alwfXlSq2sSF504_wffv5afLcBruxB1KL2G6ziNveprrxvNdTZ0XhMi4F9Ih4Qb_BGfU1dvy0wRRq5wrR7feCLvQ8g9yrUVRMucekOIRtLm5CS2U6DW_88wCZJnj968TWd3r_VlXfGzkBXV21RE2iKlpCd-68PR482BFrJI6-qliNXH4fR_wsgyfdOlorYNAzLVUnMPcbi8q7ErfZSZ3HW16ko9KtMxcAjBzEdJJ3xnD1YoJl1KSi3fJXG7fenaPzDvD5nIo_KT9hy5NOneb6qbWZ_ucHDoaIadygLM6YqeXcVWSr9QJZokMoPaCsGOqA&h=9Zxclt2LU0NfajUVV5Uw8y0QFBx-DLGdz2WmIEli2Bk + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:47:11 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531164324278604&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=lJ1ynw_XianQlOlNTV2uGHNK_Zg03LFeB3DAZM0gRfH6bHrsvDPikkRW9AzPMOMUPxhbmqYUT-JdyJVUfxOI7bS99XRIReV4h9G9DjdTf4whjhTi-vXgh7vRv1KU_85PyG25sKXpsgjaKSqq5B1vLgSA64TwND0mL44zsMaubmrLhNcCFo1Xm3jGNM_786dhoVLneEdjoU4HhfjhwzKZ2TmHudK4VZnuyr46hkFC3wnBO87NhBAOWaTsK7T_KPaKkX3ioFbN4Hw_OsJgbdePIaEv8SWessPeUcxoo6dTpZ5qdm8k-2NqVylGQ3hbuZp83NUQ41kKbIucsqye6a0Suw&h=HVp5z0y0VvmGcDCiPgRGWnt-dSx9ctPQTRTFsV3HijM + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/c43be1e3-5cbe-4d32-aee5-9ba93e5c3b04 + x-msedge-ref: + - 'Ref A: 9DA458A581134B8F878EC192857E7351 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:47:11Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"RolloutInProgress","startTime":"2024-06-04T16:34:19.3603522Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531164480025465&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=QqM8DjCyCzDZ7pfIXA47403wCQj9J_b8oxtglbZaqjCd2QQBnU2F1ZNkHNWNDd2xbx0gxqic-5nwUfmhlP-MiHy77skXxpNuCC1N9tnk9vcjP9ZflkJ2ehP1_I76aisFkU-CTh7yM1R2Wxwl9Jzl4qJhYEe8GJKysK5YIuOUdp4XgvdJkTNm7umMHt9pTqqCvdDr3-K2oly4iymMRVW2OHH2pBYH_mwFyh2Ko1Fy-_kBh7xT8oWw9BvYyw-oBBTUTq8TBzZ-xuEc9RA2DA90r44XxS-nxF-8f494HYQpE2t-1B0hkqMc2uKkt0mYFH2zc8etio-7gI4N6QSa-UYKXQ&h=LIGsSKJHm22O_A1MUqfbOJV0CuKNwB7l-t93NHC86VQ + cache-control: + - no-cache + content-length: + - '265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:47:27 GMT + etag: + - '"210016e6-0000-0700-0000-665f420b0000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531164480025465&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=QqM8DjCyCzDZ7pfIXA47403wCQj9J_b8oxtglbZaqjCd2QQBnU2F1ZNkHNWNDd2xbx0gxqic-5nwUfmhlP-MiHy77skXxpNuCC1N9tnk9vcjP9ZflkJ2ehP1_I76aisFkU-CTh7yM1R2Wxwl9Jzl4qJhYEe8GJKysK5YIuOUdp4XgvdJkTNm7umMHt9pTqqCvdDr3-K2oly4iymMRVW2OHH2pBYH_mwFyh2Ko1Fy-_kBh7xT8oWw9BvYyw-oBBTUTq8TBzZ-xuEc9RA2DA90r44XxS-nxF-8f494HYQpE2t-1B0hkqMc2uKkt0mYFH2zc8etio-7gI4N6QSa-UYKXQ&h=LIGsSKJHm22O_A1MUqfbOJV0CuKNwB7l-t93NHC86VQ + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/e994dd17-fe56-4921-979c-7a7e0974d0cd + x-msedge-ref: + - 'Ref A: 228BBF6AB3C345C6ACE14BFB62632BED Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:47:27Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531156684882877&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=ozQN64LhSgHw0CylfTsO3sOhEREFpab92sETELPSnDc8eVSGUKqg8tH7sl4KSsXlSZwuHppBPWPo1962CsPXyh3K2eI65pwo9Zg6f2Ki2SlK6gwG0yvGv7BMvgkokYyAIpgHdlNq2odWUftCuBsbhxQEn6VwkXm9jNnm9jT-DhVBa_lhwX_qSHJ74S6v7RKIj8mLsaVhuV3OwE13bToj6Ob5mvIEins4NPBZYnAC-ZmtqqeN1c5AVrLGzAO4KVCHO1WCY33Xc6ceGqo0Cs3Om5mm6COeFgx2KX_yFRsDfLB8ikMXSviZrheoLO3wpw3G8EDvHfx1UCGncVR8yQf2TA&h=tNuGcpYW_ifIywKxUBHIWXx-WmeoUc52YFncj9z7v5U + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb","name":"e6ba5307-a358-4dd6-b78e-3e4fb252bccb","status":"Succeeded","startTime":"2024-06-04T16:34:19.3603522Z","endTime":"2024-06-04T16:47:32.7878109Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531164635397058&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=H0VUDV6FOaIMI5KKDSvi6ONE_QzhpNncKCk50RgvM2yu17rjIPTnug-tkj4liPsuOcmUbxav3WIbPk5sg49ujbRefGYoBZDcbTT8mMsb2lR8YZ74WnawT8obMaeVUEh6gLQPeqz2QTltmwJc2zJGf-qmf1Wj5zARFFTTBgZvA7-UT5-LaH6cFSGJbCKkpnBlg0CELBF2K-k2Qmm9apbjnhfEUwK_2oYP9XLIeaS-l7YehzmIZRt-HjHPnpkLt964hg4JsLjancVwGPnNFvST8k80xRet2HvcSt6eF5P1ETyOYEtNzoP0-KLRvFyXb1GyQspz2f6ChxycfDQO0I-15w&h=D9kCNJd8m0pKIv17QP4GSh8-KQgGt1O5ux3bZP8tmTw + cache-control: + - no-cache + content-length: + - '298' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:47:43 GMT + etag: + - '"22005b5d-0000-0700-0000-665f45250000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/operationStatuses/e6ba5307-a358-4dd6-b78e-3e4fb252bccb?api-version=2019-10-01&t=638531164635553426&c=MIIHhjCCBm6gAwIBAgITfATvg-ABhqk_WhxDigAABO-D4DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwNTI4MTE0NzQ4WhcNMjQwODI2MTE0NzQ4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6SRGFirQMAvJ96F1GRot9Gu0jNFVIsdcxlF8XlXqU9X701NvwG58ym10YwN8hHkNioOOycsfyVkXYth_VCFqEEekObyrEl-tNrZWfvqww4bYWUivvIrI8O176PQnxdJUwdyLxy_m1kNnzdhFUc2_XVI9YD60ktzCLDTFma9o3aCHUrYgy3amlNv2swmvGOZZ6-tcGk1c2r92DWrOLXJ6vDAkj0eshmxdUFozKBQGXhDw2YzfgCIIBLLBgMUV1YkSx6PC065VJKZJcAeLK-vHzYl0r68m4lYEe8IBcZfk-nFEL8hNFJKSTe0YSdkHYsCWoT8uUDfpYegrc7Oa9Q_80CAwEAAaOCBHMwggRvMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwEwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgh8fIENbYcQIBZAIBBjCCAcsGCCsGAQUFBwEBBIIBvTCCAbkwYwYIKwYBBQUHMAKGV2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2lpbmZyYS9DZXJ0cy9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDEuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwyLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMy5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDQuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwHQYDVR0OBBYEFH4HuQa8iNEpiWSPQ0DSq8jr737JMA4GA1UdDwEB_wQEAwIFoDCCASYGA1UdHwSCAR0wggEZMIIBFaCCARGgggENhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ1JML0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwxLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwyLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmwzLmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmyGMWh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcmwwgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDATAMBgorBgEEAYI3ewQBMB8GA1UdIwQYMBaAFHrWGYUoeWxxdh5g-PNL76IFQhYdMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAGAl1d1iYydhX8yZIsxFPPbsrcyO-BQ8EEzh7sbIXhxN3yZAFCmLVZK-KOb4t0Ys3N25W4lhpeR9mpOb5SsiWbLGz31xKg19qh_8qGLRCzrO_I3p4ycq5DgRhf_1J8WBZs4TackDzULQ2Eqm2bTUDj4zm7qBgD-0kF-38klatoQbFVGjwfxgUzlvLx4QxmVryqt6m9RlgR1Rf-SeDFKdSxqe4oWqnHdLH5AtYTB8WKS4g9rcya_QLJZBIvcnJkDVHLb-py3w2iamm6N-WoPscbF7jtaDNrxtpwGqxylXVHZLtk4KneXIVZzvN8_3pUYtEeenYV8qOuX7LUn3uZ021Vg&s=llUqI2_lrtIbEkt5-g9ZfOJzGmW0_rWnD4VtS-ZeVX2rq4WYbYqjBSClI5ejtj9I1SDDK8We5C1Yy2mznOoMZzHiW1sVMCGvqG0AvCHXeKzq6mN1CMT-bEzyXTBLUoh09Kqd3AhrjZvKUdYUO7vx-Cd9ePDZaCMsfX0ZdUj70HXZ4Th-5YtgW36NBxbiiGO7Ma6TbJ2qs5290inNrVXSPKBNK2dWunJO52qpXj-YZ29rm4ueWIyF77JvNG18NKYl80TZ9Gbr6x83AOHbvPOb_8KGVKEh65dzNl2YcirFI6q6wMga9LjojoysVgVfEddSArMQ2bYiT-ziQM38cBIUNw&h=3FQXvP2OW1Acxka2LlsUuyFJeIOIgk86jC10fpZC4GI + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/1e28b71e-fca4-4f63-968f-b48732144d6e + x-msedge-ref: + - 'Ref A: E076FED91BD84778BB19B98686053136 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:47:43Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout create + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/cliDefaultRollout?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","TAIWANNORTH","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","SOUTHCENTRALUS2"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","CENTRALUSFOUNDATIONAL","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORTHEUROPEFOUNDATIONAL","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHEASTASIAFOUNDATIONAL","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","TAIWANNORTHWEST","UAENORTH","UKWEST","WESTEUROPEFOUNDATIONAL","WESTUS3","AUSTRALIAEASTFOUNDATIONAL","AUSTRIAEAST","CHILECENTRAL","EASTUSFOUNDATIONAL","EASTUSSLV","INDONESIACENTRAL","ISRAELNORTHWEST","SOUTHEASTUS","SOUTHWESTUS","UKSOUTHFOUNDATIONAL"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"DoNotAttemptAutomaticManifestCheckin","manifestCheckinSync":false,"manifestGeneratedMatchesRepo":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["BRAZILUS","EASTUS2EUAP","CENTRALUSEUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/cliDefaultRollout","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"cliDefaultRollout","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-04T16:34:14.8005518Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-04T16:34:14.8005518Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '2464' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 16:47:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/8d81aa2a-14f3-4f6a-8c22-3659481902f9 + x-msedge-ref: + - 'Ref A: 66DD833E1CFB4D8998F9FD7124B00CB2 Ref B: CH1AA2020610019 Ref C: 2024-06-04T16:47:43Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_delete.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_delete.yaml new file mode 100644 index 00000000000..a02ce0bed45 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_delete.yaml @@ -0,0 +1,52 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/cliDefaultRollout?api-version=2024-04-01-preview + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 20:30:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/40abf8fe-20d1-4964-95fe-ac45b7eed998 + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: B8F32C55B61D4D4CB61933C398D37B8D Ref B: DM2EDGE0514 Ref C: 2024-06-04T20:30:32Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_list.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_list.yaml new file mode 100644 index 00000000000..fca5d9e1987 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_list.yaml @@ -0,0 +1,53 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout list + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts?api-version=2024-04-01-preview + response: + body: + string: '{"value":[{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","ISRAELCENTRAL","MALAYSIASOUTH","MEXICOCENTRAL","SPAINCENTRAL","TAIWANNORTH"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","EASTUS2","FRANCESOUTH","GERMANYNORTH","JAPANEAST","JIOINDIAWEST","KOREASOUTH","NORTHEUROPE","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHINDIA","SWITZERLANDNORTH","UAENORTH","UKWEST","WESTUS3","AUSTRIAEAST","CHILECENTRAL","EASTUSSLV","ITALYNORTH","TAIWANNORTHWEST"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["BRAZILUS","EASTUS2EUAP","CENTRALUSEUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/-testDefaultAuthApps","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"-testDefaultAuthApps","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2023-02-22T19:46:23.7833187Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-22T19:46:23.7833187Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","ISRAELCENTRAL","MEXICOCENTRAL","SPAINCENTRAL","TAIWANNORTH"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","EASTUS2","FRANCESOUTH","GERMANYNORTH","JAPANEAST","JIOINDIAWEST","KOREASOUTH","NORTHEUROPE","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHINDIA","SWITZERLANDNORTH","UAENORTH","UKWEST","WESTUS3","AUSTRIAEAST","CHILECENTRAL","EASTUSSLV","ISRAELNORTHWEST","ITALYNORTH","SOUTHEASTASIAFOUNDATIONAL","TAIWANNORTHWEST"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["CENTRALUSEUAP","BRAZILUS","EASTUS2EUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/rollout1","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"rollout1","systemData":{"createdBy":"vpourhashem@microsoft.com","createdByType":"User","createdAt":"2023-05-24T21:40:39.9653896Z","lastModifiedBy":"vpourhashem@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T21:40:39.9653896Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"skipRegions":[],"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","MEXICOCENTRAL","NEWZEALANDNORTH","SPAINCENTRAL","TAIWANNORTH"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","NORTHEUROPE","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHINDIA","SWITZERLANDNORTH","UAENORTH","UKWEST","WESTUS3","AUSTRIAEAST","CHILECENTRAL","EASTUSSLV","ISRAELNORTHWEST","SOUTHEASTASIAFOUNDATIONAL","TAIWANNORTHWEST"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"AttemptAutomaticManifestCheckin","manifestCheckinParams":{"environment":"Prod"},"manifestCheckinSync":false,"manifestGeneratedMatchesRepo":false,"syncManifestWithServiceTree":true,"skipOverwriteServiceTreeMetadata":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["EASTUS2EUAP","BRAZILUS","CENTRALUSEUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/testAutoCheckin","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"testAutoCheckin","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2023-09-22T16:57:15.0919511Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-09-22T16:57:15.0919511Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"skipRegions":[],"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","TAIWANNORTH"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","UAENORTH","UKWEST","WESTUS3","AUSTRIAEAST","CHILECENTRAL","EASTUSSLV","ISRAELNORTHWEST","SOUTHEASTASIAFOUNDATIONAL","TAIWANNORTHWEST"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/testdefaultrollout","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"testdefaultrollout","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2023-10-27T19:11:58.423959Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-27T19:11:58.423959Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"skipRegions":[],"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","TAIWANNORTH"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHEASTASIAFOUNDATIONAL","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","UAENORTH","UKWEST","WESTUS3","AUSTRIAEAST","CHILECENTRAL","EASTUSSLV","ISRAELNORTHWEST","NORTHEUROPEFOUNDATIONAL","TAIWANNORTHWEST"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"AttemptAutomaticManifestCheckin","manifestCheckinParams":{"environment":"Prod"},"manifestCheckinSync":false,"manifestGeneratedMatchesRepo":false,"syncManifestWithServiceTree":true,"skipOverwriteServiceTreeMetadata":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["EASTUS2EUAP","CENTRALUSEUAP","BRAZILUS"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/testAutoCheckin2","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"testAutoCheckin2","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2023-11-09T00:31:59.4823032Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-09T00:31:59.4823032Z"}},{"properties":{"provisioningState":"Failed","specification":{"canary":{"skipRegions":[],"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","TAIWANNORTH"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHEASTASIAFOUNDATIONAL","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","UAENORTH","UKWEST","WESTUS3","AUSTRIAEAST","CHILECENTRAL","EASTUSSLV","ISRAELNORTHWEST","NORTHEUROPEFOUNDATIONAL","TAIWANNORTHWEST"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"AttemptAutomaticManifestCheckin","manifestCheckinParams":{"environment":"Prod"},"manifestCheckinSync":false,"manifestGeneratedMatchesRepo":false,"syncManifestWithServiceTree":true,"skipOverwriteServiceTreeMetadata":true}},"status":{"nextTrafficRegion":"Canary","completedRegions":[],"failedOrSkippedRegions":{"AUSTRALIACENTRAL":null,"AUSTRALIASOUTHEAST":null,"BRAZILSOUTHEAST":null,"CANADACENTRAL":null,"EASTASIA":null,"EASTUS":null,"FRANCECENTRAL":null,"GERMANYWESTCENTRAL":null,"ITALYNORTH":null,"JAPANWEST":null,"JIOINDIACENTRAL":null,"KOREACENTRAL":null,"MALAYSIASOUTH":null,"NORWAYWEST":null,"SOUTHAFRICAWEST":null,"SOUTHCENTRALUS":null,"SWEDENCENTRAL":null,"SWEDENSOUTH":null,"SWITZERLANDWEST":null,"UAECENTRAL":null,"UKSOUTH":null,"WESTEUROPE":null,"WESTINDIA":null,"WESTUS":null,"MALAYSIAWEST":null,"NEWZEALANDNORTH":null,"TAIWANNORTH":null,"AUSTRALIACENTRAL2":null,"AUSTRALIAEAST":null,"BRAZILSOUTH":null,"CANADAEAST":null,"CENTRALUS":null,"EASTUS2":null,"FRANCESOUTH":null,"GERMANYNORTH":null,"ISRAELCENTRAL":null,"JAPANEAST":null,"JIOINDIAWEST":null,"KOREASOUTH":null,"MEXICOCENTRAL":null,"NORTHEUROPE":null,"NORWAYEAST":null,"POLANDCENTRAL":null,"QATARCENTRAL":null,"SOUTHAFRICANORTH":null,"SOUTHEASTASIA":null,"SOUTHEASTASIAFOUNDATIONAL":null,"SOUTHINDIA":null,"SPAINCENTRAL":null,"SWITZERLANDNORTH":null,"UAENORTH":null,"UKWEST":null,"WESTUS3":null,"AUSTRIAEAST":null,"CHILECENTRAL":null,"EASTUSSLV":null,"ISRAELNORTHWEST":null,"NORTHEUROPEFOUNDATIONAL":null,"TAIWANNORTHWEST":null,"BRAZILUS":null,"CENTRALUSEUAP":null,"EASTUS2EUAP":null,"CENTRALINDIA":null,"NORTHCENTRALUS":null,"SOUTHCENTRALUSSTG":null,"EASTUSSTG":null,"WESTCENTRALUS":null,"WESTUS2":null},"manifestCheckinInfo":{"isCheckedIn":false,"statusMessage":"The + manifest might contain breaking changes and hence a pull request(PR) is created + for manual review. Please visit https://aka.ms/rpaasrollout for the instructions + to get the PR merged.","pullRequest":"https://armmanifest.visualstudio.com/One/_git/Manifest/pullrequest/8121?_a=overview"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/testAutoCheckinPR","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"testAutoCheckinPR","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2023-11-09T01:11:52.9125226Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-09T01:11:52.9125226Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"skipRegions":[],"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","TAIWANNORTH"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHEASTASIAFOUNDATIONAL","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","UAENORTH","UKWEST","WESTUS3","AUSTRIAEAST","CENTRALUSFOUNDATIONAL","CHILECENTRAL","EASTUSSLV","ISRAELNORTHWEST","NORTHEUROPEFOUNDATIONAL","TAIWANNORTHWEST","WESTEUROPEFOUNDATIONAL"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"AttemptAutomaticManifestCheckin","manifestCheckinParams":{"environment":"Canary"},"manifestCheckinSync":false,"manifestGeneratedMatchesRepo":true,"syncManifestWithServiceTree":true,"skipOverwriteServiceTreeMetadata":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["EASTUS2EUAP","CENTRALUSEUAP","BRAZILUS"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/testAutoCheckinPROpen","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"testAutoCheckinPROpen","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-01-11T23:01:39.6321995Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-11T23:01:39.6321995Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","TAIWANNORTH","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","SOUTHCENTRALUS2"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","CENTRALUSFOUNDATIONAL","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORTHEUROPEFOUNDATIONAL","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHEASTASIAFOUNDATIONAL","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","TAIWANNORTHWEST","UAENORTH","UKWEST","WESTEUROPEFOUNDATIONAL","WESTUS3","AUSTRALIAEASTFOUNDATIONAL","AUSTRIAEAST","CHILECENTRAL","EASTUSFOUNDATIONAL","EASTUSSLV","INDONESIACENTRAL","ISRAELNORTHWEST","SOUTHEASTUS","SOUTHWESTUS","UKSOUTHFOUNDATIONAL"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"AttemptAutomaticManifestCheckin","manifestCheckinParams":{"environment":"Prod"},"manifestCheckinSync":false,"manifestGeneratedMatchesRepo":false,"syncManifestWithServiceTree":true,"skipOverwriteServiceTreeMetadata":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["CENTRALUSEUAP","EASTUS2EUAP","BRAZILUS"],"failedOrSkippedRegions":{},"manifestCheckinInfo":{"isCheckedIn":true,"statusMessage":"Manifest + is successfully merged. Use the Default/Custom rollout (http://aka.ms/rpaasrollout) + to roll out the manifest in ARM.","commitId":"78405c45ae56a90b10ea8ef13173f0b5f28b0308"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/testCLI","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"testCLI","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-05-23T03:15:32.5808049Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-05-23T03:15:32.5808049Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","TAIWANNORTH","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","SOUTHCENTRALUS2"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","CENTRALUSFOUNDATIONAL","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORTHEUROPEFOUNDATIONAL","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHEASTASIAFOUNDATIONAL","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","TAIWANNORTHWEST","UAENORTH","UKWEST","WESTEUROPEFOUNDATIONAL","WESTUS3","AUSTRALIAEASTFOUNDATIONAL","AUSTRIAEAST","CHILECENTRAL","EASTUSFOUNDATIONAL","EASTUSSLV","INDONESIACENTRAL","ISRAELNORTHWEST","SOUTHEASTUS","SOUTHWESTUS","UKSOUTHFOUNDATIONAL"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"AttemptAutomaticManifestCheckin","manifestCheckinParams":{"environment":"Prod"},"manifestCheckinSync":false,"manifestGeneratedMatchesRepo":true,"syncManifestWithServiceTree":true,"skipOverwriteServiceTreeMetadata":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["EASTUS2EUAP","BRAZILUS","CENTRALUSEUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/testCLI2","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"testCLI2","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-05-23T18:07:05.8170684Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-05-23T18:07:05.8170684Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","TAIWANNORTH","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","SOUTHCENTRALUS2"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","CENTRALUSFOUNDATIONAL","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORTHEUROPEFOUNDATIONAL","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHEASTASIAFOUNDATIONAL","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","TAIWANNORTHWEST","UAENORTH","UKWEST","WESTEUROPEFOUNDATIONAL","WESTUS3","AUSTRALIAEASTFOUNDATIONAL","AUSTRIAEAST","CHILECENTRAL","EASTUSFOUNDATIONAL","EASTUSSLV","INDONESIACENTRAL","ISRAELNORTHWEST","SOUTHEASTUS","SOUTHWESTUS","UKSOUTHFOUNDATIONAL"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"AttemptAutomaticManifestCheckin","manifestCheckinParams":{"environment":"Prod"},"manifestCheckinSync":false,"manifestGeneratedMatchesRepo":true,"syncManifestWithServiceTree":true,"skipOverwriteServiceTreeMetadata":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["BRAZILUS","EASTUS2EUAP","CENTRALUSEUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/testCLI3","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"testCLI3","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-05-23T18:29:11.89813Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-05-23T18:29:11.89813Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","TAIWANNORTH","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","SOUTHCENTRALUS2"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","CENTRALUSFOUNDATIONAL","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORTHEUROPEFOUNDATIONAL","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHEASTASIAFOUNDATIONAL","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","TAIWANNORTHWEST","UAENORTH","UKWEST","WESTEUROPEFOUNDATIONAL","WESTUS3","AUSTRALIAEASTFOUNDATIONAL","AUSTRIAEAST","CHILECENTRAL","EASTUSFOUNDATIONAL","EASTUSSLV","INDONESIACENTRAL","ISRAELNORTHWEST","SOUTHEASTUS","SOUTHWESTUS","UKSOUTHFOUNDATIONAL"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"DoNotAttemptAutomaticManifestCheckin","manifestCheckinSync":false,"manifestGeneratedMatchesRepo":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["EASTUS2EUAP","BRAZILUS","CENTRALUSEUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/testCLI4","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"testCLI4","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-05-23T21:12:54.1473035Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-05-23T21:12:54.1473035Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"skipRegions":["centraluseuap"],"regions":["BRAZILUS","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","TAIWANNORTH","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","SOUTHCENTRALUS2"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","CENTRALUSFOUNDATIONAL","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORTHEUROPEFOUNDATIONAL","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHEASTASIAFOUNDATIONAL","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","TAIWANNORTHWEST","UAENORTH","UKWEST","WESTEUROPEFOUNDATIONAL","WESTUS3","AUSTRALIAEASTFOUNDATIONAL","AUSTRIAEAST","CHILECENTRAL","EASTUSFOUNDATIONAL","EASTUSSLV","INDONESIACENTRAL","ISRAELNORTHWEST","SOUTHEASTUS","SOUTHWESTUS","UKSOUTHFOUNDATIONAL"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"AttemptAutomaticManifestCheckin","manifestCheckinParams":{"environment":"Prod"},"manifestCheckinSync":false,"manifestGeneratedMatchesRepo":true,"syncManifestWithServiceTree":true,"skipOverwriteServiceTreeMetadata":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["EASTUS2EUAP","BRAZILUS"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/testWithInsomnia","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"testWithInsomnia","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-05-23T22:20:14.5382391Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-05-23T22:20:14.5382391Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","TAIWANNORTH","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","SOUTHCENTRALUS2"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","CENTRALUSFOUNDATIONAL","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORTHEUROPEFOUNDATIONAL","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHEASTASIAFOUNDATIONAL","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","TAIWANNORTHWEST","UAENORTH","UKWEST","WESTEUROPEFOUNDATIONAL","WESTUS3","AUSTRALIAEASTFOUNDATIONAL","AUSTRIAEAST","CHILECENTRAL","EASTUSFOUNDATIONAL","EASTUSSLV","INDONESIACENTRAL","ISRAELNORTHWEST","SOUTHEASTUS","SOUTHWESTUS","UKSOUTHFOUNDATIONAL"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"AttemptAutomaticManifestCheckin","manifestCheckinSync":false,"manifestGeneratedMatchesRepo":true,"syncManifestWithServiceTree":true,"skipOverwriteServiceTreeMetadata":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["CENTRALUSEUAP","BRAZILUS","EASTUS2EUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/testCLI5","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"testCLI5","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-05-23T22:57:46.1860072Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-05-23T22:57:46.1860072Z"}},{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","TAIWANNORTH","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","SOUTHCENTRALUS2"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","CENTRALUSFOUNDATIONAL","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORTHEUROPEFOUNDATIONAL","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHEASTASIAFOUNDATIONAL","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","TAIWANNORTHWEST","UAENORTH","UKWEST","WESTEUROPEFOUNDATIONAL","WESTUS3","AUSTRALIAEASTFOUNDATIONAL","AUSTRIAEAST","CHILECENTRAL","EASTUSFOUNDATIONAL","EASTUSSLV","INDONESIACENTRAL","ISRAELNORTHWEST","SOUTHEASTUS","SOUTHWESTUS","UKSOUTHFOUNDATIONAL"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"DoNotAttemptAutomaticManifestCheckin","manifestCheckinSync":false,"manifestGeneratedMatchesRepo":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["CENTRALUSEUAP","BRAZILUS","EASTUS2EUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/cliDefaultRollout2","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"cliDefaultRollout2","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-05-30T22:04:37.5745104Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-05-30T22:04:37.5745104Z"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '35430' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 20:36:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/47eed4eb-ee17-43e9-b131-6b04ba4c5df7 + x-msedge-ref: + - 'Ref A: 017614411F374C96B3255F690290744E Ref B: DM2AA1091213021 Ref C: 2024-06-04T20:36:41Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_show.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_show.yaml new file mode 100644 index 00000000000..d3175b64658 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_show.yaml @@ -0,0 +1,48 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout show + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/cliDefaultRollout?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"provisioningState":"Succeeded","specification":{"canary":{"regions":["BRAZILUS","CENTRALUSEUAP","EASTUS2EUAP"]},"lowTraffic":{"waitDuration":"P1D","regions":["EASTUSSTG","WESTCENTRALUS"]},"mediumTraffic":{"waitDuration":"P1D","regions":["CENTRALINDIA","NORTHCENTRALUS","SOUTHCENTRALUSSTG"]},"highTraffic":{"waitDuration":"P1D","regions":["WESTUS2"]},"restOfTheWorldGroupOne":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL","AUSTRALIASOUTHEAST","BRAZILSOUTHEAST","CANADACENTRAL","EASTASIA","EASTUS","FRANCECENTRAL","GERMANYWESTCENTRAL","ITALYNORTH","JAPANWEST","JIOINDIACENTRAL","KOREACENTRAL","MALAYSIASOUTH","NORWAYWEST","SOUTHAFRICAWEST","SOUTHCENTRALUS","SWEDENCENTRAL","SWEDENSOUTH","SWITZERLANDWEST","TAIWANNORTH","UAECENTRAL","UKSOUTH","WESTEUROPE","WESTINDIA","WESTUS","MALAYSIAWEST","NEWZEALANDNORTH","SOUTHCENTRALUS2"]},"restOfTheWorldGroupTwo":{"waitDuration":"P1D","regions":["AUSTRALIACENTRAL2","AUSTRALIAEAST","BRAZILSOUTH","CANADAEAST","CENTRALUS","CENTRALUSFOUNDATIONAL","EASTUS2","FRANCESOUTH","GERMANYNORTH","ISRAELCENTRAL","JAPANEAST","JIOINDIAWEST","KOREASOUTH","MEXICOCENTRAL","NORTHEUROPE","NORTHEUROPEFOUNDATIONAL","NORWAYEAST","POLANDCENTRAL","QATARCENTRAL","SOUTHAFRICANORTH","SOUTHEASTASIA","SOUTHEASTASIAFOUNDATIONAL","SOUTHINDIA","SPAINCENTRAL","SWITZERLANDNORTH","TAIWANNORTHWEST","UAENORTH","UKWEST","WESTEUROPEFOUNDATIONAL","WESTUS3","AUSTRALIAEASTFOUNDATIONAL","AUSTRIAEAST","CHILECENTRAL","EASTUSFOUNDATIONAL","EASTUSSLV","INDONESIACENTRAL","ISRAELNORTHWEST","SOUTHEASTUS","SOUTHWESTUS","UKSOUTHFOUNDATIONAL"]},"autoProvisionConfig":{"storage":true,"resourceGraph":true},"manifestCheckinSpecification":{"manifestCheckinOption":"DoNotAttemptAutomaticManifestCheckin","manifestCheckinSync":false,"manifestGeneratedMatchesRepo":true}},"status":{"nextTrafficRegion":"None","subscriptionReregistrationResult":"NotApplicable","completedRegions":["BRAZILUS","EASTUS2EUAP","CENTRALUSEUAP"],"failedOrSkippedRegions":{}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/cliDefaultRollout","type":"Microsoft.ProviderHub/providerRegistrations/defaultRollouts","name":"cliDefaultRollout","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-04T16:34:14.8005518Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-04T16:34:14.8005518Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '2464' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 17:10:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/0af169b0-0276-4f15-a637-8a7a403847ea + x-msedge-ref: + - 'Ref A: 1852FAAEBB2648C08B61110A24007D58 Ref B: CH1AA2020615049 Ref C: 2024-06-04T17:10:20Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_stop.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_stop.yaml new file mode 100644 index 00000000000..fd6dc2436bd --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_default_rollout_stop.yaml @@ -0,0 +1,52 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub default-rollout stop + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --provider-namespace --rollout-name + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/defaultRollouts/cliDefaultRollout/stop?api-version=2024-04-01-preview + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 20:39:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/5662c2d1-b6a0-4a4c-839d-1d909d62236e + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 4E57B6120073420B8576E28E45DF6892 Ref B: CH1AA2020615039 Ref C: 2024-06-04T20:39:45Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_manifest_checkin.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_manifest_checkin.yaml new file mode 100644 index 00000000000..693dc2bc30c --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_manifest_checkin.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: '{"baselineArmManifestLocation": "EastUS2EUAP", "environment": "Canary"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub manifest checkin + Connection: + - keep-alive + Content-Length: + - '71' + Content-Type: + - application/json + ParameterSetName: + - --provider-namespace --environment + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/checkinManifest?api-version=2024-04-01-preview + response: + body: + string: '{"isCheckedIn":true,"statusMessage":"Manifest is successfully merged. + Use the Default/Custom rollout (http://aka.ms/rpaasrollout) to roll out the + manifest in ARM.","commitId":"c2479b885f8ce82534183eaef1689d9d2ec2e73c"}' + headers: + cache-control: + - no-cache + content-length: + - '218' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 21:12:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/b72316c6-1c6a-45b2-8da6-34b3b027d50a + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: B085E695ACEF422DA05985C3750B07ED Ref B: DM2EDGE0817 Ref C: 2024-06-04T21:12:30Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_manifest_generate.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_manifest_generate.yaml new file mode 100644 index 00000000000..dadfc6e3a2b --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_manifest_generate.yaml @@ -0,0 +1,76 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub manifest generate + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/generateManifest?api-version=2024-04-01-preview + response: + body: + string: '{"providerAuthorizations":[{"applicationId":"3cfadeba-63f1-46f4-8086-786a3f24045f"}],"namespace":"Private.VPTest","providerVersion":"2.0","providerType":"Internal, + Hidden","requiredFeatures":["Private.VPTest/EnableProvider"],"resourceTypes":[{"name":"testBridge","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","endpoints":[{"apiVersions":["2021-10-01-privatepreview"],"endpointUri":"https://westcentralus.metarp.azure.com/rolelocation/westcentralus/","locations":["West + Central US"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":false}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"Ingredients","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","endpoints":[{"apiVersions":["2022-09-23-preview"],"endpointUri":"https://westus.metarp.azure.com/rolelocation/westus/","locations":["West + US"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2022-09-23-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/eastus/","locations":["East + US"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2021-10-01-privatepreview","2022-09-23-preview"],"endpointUri":"https://westcentralus.metarp.azure.com/rolelocation/westcentralus/","locations":["West + Central US"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"Employees","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","endpoints":[{"apiVersions":["2021-09-01"],"endpointUri":"https://global.metarp.azure.com/","locations":["global"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"disallowedActionVerbs":["write"],"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"Tables","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","endpoints":[{"apiVersions":["2021-09-01"],"endpointUri":"https://global.metarp.azure.com/","locations":["global"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"disallowedActionVerbs":["write"],"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"Chairs","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","endpoints":[{"apiVersions":["2021-09-01"],"endpointUri":"https://global.metarp.azure.com/","locations":["global"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"disallowedActionVerbs":["write"],"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"Ingredients2","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","endpoints":[{"apiVersions":["2022-09-23-preview"],"endpointUri":"https://westus.metarp.azure.com/rolelocation/westus/","locations":["West + US"],"timeout":"PT20S","endpointType":"NotSpecified"},{"apiVersions":["2022-09-23-preview"],"endpointUri":"https://eastus.metarp.azure.com/rolelocation/eastus/","locations":["East + US"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"testCLI","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","defaultApiVersion":"2019-01-01","endpoints":[{"apiVersions":["2019-01-01"],"endpointUri":"https://global.metarp.azure.com/","locations":["global"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]},{"name":"extensionresourcetype","routingType":"BypassEndpointSelectionOptimization","resourceValidation":"ReservedWords, + ProfaneWords","defaultApiVersion":"2019-01-01","endpoints":[{"apiVersions":["2019-01-01"],"endpointUri":"https://global.metarp.azure.com/","locations":["global"],"timeout":"PT20S","endpointType":"NotSpecified"}],"metadata":{"providerHubMetadata":{"providerExtendsPreflight":true}},"templateDeploymentPolicy":{"capabilities":"Preflight","preflightOptions":"ValidationRequests, + DeploymentRequests, RegisteredOnly","preflightNotifications":"None"},"linkedOperationRules":[{"linkedOperation":"CrossResourceGroupResourceMove","linkedAction":"Blocked"},{"linkedOperation":"CrossSubscriptionResourceMove","linkedAction":"Blocked"}]}],"management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator"],"incidentRoutingService":"Resource + Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"rpaascore@microsoft.com","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}],"resourceAccessPolicy":"NotSpecified"},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":{"BypassManifestValidation":true,"onboardedVia":"ProviderHub"},"globalNotificationEndpoints":[{"enabled":true,"endpointUri":"https://global.metarp.azure.com"}],"reRegisterSubscriptionMetadata":{"enabled":true,"concurrencyLimit":100},"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":true}}' + headers: + cache-control: + - no-cache + content-length: + - '7621' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 03 Jun 2024 18:23:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/b7965431-5c10-496c-9728-82401dfc75c1 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 46F00D580FB946D38F3527188EE26FAE Ref B: DM2AA1091211025 Ref C: 2024-06-03T18:23:33Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_create.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_create.yaml new file mode 100644 index 00000000000..4441ae63f15 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_create.yaml @@ -0,0 +1,59 @@ +interactions: +- request: + body: '{"kind": "Managed", "properties": {"enableAsyncOperation": false, "endpoints": + [{"apiVersions": ["2019-01-01"], "locations": ["WestUS"]}], "regionality": "Regional", + "routingType": "ProxyOnly", "templateDeploymentOptions": {"preflightOptions": + ["DefaultValidationOnly", "ContinueDeploymentOnFailure"], "preflightSupported": + true}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub resource-type-registration create + Connection: + - keep-alive + Content-Length: + - '331' + Content-Type: + - application/json + ParameterSetName: + - --endpoints --regionality --routing-type --provider-namespace --enable-async-operation + --template-deployment-options --resource-type + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees%2Fresourcetyperegistrations%2FnestedResourceType?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"name":"employees/nestedResourceType","routingType":"ProxyOnly","regionality":"Regional","endpoints":[{"kind":"Managed","apiVersions":["2019-01-01"],"locations":["WestUS"]}],"defaultApiVersion":"2019-01-01","enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly","ContinueDeploymentOnFailure"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/employees/resourceTypeRegistrations/nestedResourceType","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"employees/nestedResourceType","kind":"Managed","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T23:47:12.9041223Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T23:48:01.1636321Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1028' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 23:48:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/e8a6c244-7eba-4904-872b-29e01cb05f32 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + x-msedge-ref: + - 'Ref A: B1A7E21AC9F2465F993E469B36BBFFC0 Ref B: DM2AA1091213021 Ref C: 2024-06-05T23:48:01Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_delete.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_delete.yaml new file mode 100644 index 00000000000..1bd43007d8c --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_delete.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub resource-type-registration delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --provider-namespace --resource-type + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees%2Fresourcetyperegistrations%2FnestedResourceType?api-version=2024-04-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 06 Jun 2024 00:22:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/1146754d-8244-48fd-8b11-fa39333af16e + x-ms-ratelimit-remaining-subscription-deletes: + - '14993' + x-msedge-ref: + - 'Ref A: C454CE6B4AB642AC98EBA34ACEE7F44A Ref B: CH1AA2020610051 Ref C: 2024-06-06T00:22:26Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_extensions_create.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_extensions_create.yaml new file mode 100644 index 00000000000..8397f5257ab --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_extensions_create.yaml @@ -0,0 +1,60 @@ +interactions: +- request: + body: '{"kind": "Managed", "properties": {"enableAsyncOperation": false, "endpoints": + [{"apiVersions": ["2019-01-01"], "extensions": [{"endpointUri": "https://contoso-test-extension-endpoint.com", + "extensionCategories": ["ResourceReadValidate", "ResourceDeletionValidate"]}], + "locations": ["WestUS"]}], "regionality": "Regional", "routingType": "ProxyOnly", + "templateDeploymentOptions": {"preflightOptions": ["DefaultValidationOnly", + "ContinueDeploymentOnFailure"], "preflightSupported": true}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub resource-type-registration create + Connection: + - keep-alive + Content-Length: + - '488' + Content-Type: + - application/json + ParameterSetName: + - --endpoints --regionality --routing-type --provider-namespace --enable-async-operation + --template-deployment-options --resource-type + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees%2Fresourcetyperegistrations%2FnestedResourceType?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"name":"employees/nestedResourceType","routingType":"ProxyOnly","regionality":"Regional","endpoints":[{"kind":"Managed","extensions":[{"endpointUri":"https://contoso-test-extension-endpoint.com","extensionCategories":["ResourceReadValidate","ResourceDeletionValidate"]}],"apiVersions":["2019-01-01"],"locations":["WestUS"]}],"defaultApiVersion":"2019-01-01","enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly","ContinueDeploymentOnFailure"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/employees/resourceTypeRegistrations/nestedResourceType","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"employees/nestedResourceType","kind":"Managed","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T23:47:12.9041223Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-06T00:14:18.3760935Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1179' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 Jun 2024 00:14:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/740bdb4d-b870-4526-b296-dffe9e9035fc + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + x-msedge-ref: + - 'Ref A: D7C9F166186F4B7DA31DDF30FCD6F545 Ref B: DM2AA1091214031 Ref C: 2024-06-06T00:14:18Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_show.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_show.yaml new file mode 100644 index 00000000000..d964d94822c --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_nested_resource_type_registration_show.yaml @@ -0,0 +1,49 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub resource-type-registration show + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --resource-type + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees%2Fresourcetyperegistrations%2FnestedResourceTypeFirst?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"name":"employees/nestedResourceTypeFirst","routingType":"Default","regionality":"Regional","endpoints":[{"kind":"Managed","extensions":[{"endpointUri":"https://contoso-test-extension-endpoint.com/","extensionCategories":["ResourceReadValidate","ResourceDeletionValidate"]}],"apiVersions":["2019-01-01"],"locations":["West + US"]}],"defaultApiVersion":"2019-01-01","enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/employees/resourceTypeRegistrations/nestedResourceTypeFirst","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"employees/nestedResourceTypeFirst","kind":"Managed","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T21:57:51.5679529Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T21:57:51.5679529Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1164' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 Jun 2024 16:27:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/37aff673-e7f8-4341-8375-839032545049 + x-msedge-ref: + - 'Ref A: 013D3ED950C74295899C562378F71A1D Ref B: DM2EDGE0406 Ref C: 2024-06-06T16:27:38Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_create.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_create.yaml new file mode 100644 index 00000000000..0aa958b5d7f --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_create.yaml @@ -0,0 +1,58 @@ +interactions: +- request: + body: '{"properties": {"includedEvents": ["*/write", "Microsoft.Contoso/employees/delete"], + "messageScope": "RegisteredSubscriptions", "notificationEndpoints": [{"locations": + ["EastUS"], "notificationDestination": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications"}], + "notificationMode": "EventHub"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub notification-registration create + Connection: + - keep-alive + Content-Length: + - '423' + Content-Type: + - application/json + ParameterSetName: + - --name --included-events --message-scope --notification-endpoints --notification-mode + --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/notificationRegistrations/testNotificationRegistration?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"notificationMode":"EventHub","messageScope":"RegisteredSubscriptions","includedEvents":["*/write","Microsoft.Contoso/employees/delete"],"notificationEndpoints":[{"notificationDestination":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications","locations":["EastUS"]}]},"name":"testNotificationRegistration","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T18:47:55.6681371Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T18:47:55.6681371Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '691' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 18:47:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/c4c697a5-7365-4444-a9ee-21b2786f184d + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + x-msedge-ref: + - 'Ref A: 5E6C03C725E84D3290B8AA49FA7A80B1 Ref B: CH1AA2020613051 Ref C: 2024-06-05T18:47:55Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_delete.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_delete.yaml new file mode 100644 index 00000000000..7fb2d8e90e0 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_delete.yaml @@ -0,0 +1,52 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub notification-registration delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --name --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/notificationRegistrations/testNotificationRegistration?api-version=2024-04-01-preview + response: + body: + string: 'null' + headers: + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 18:53:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/5a67b04f-ce1c-4172-ba01-36f3e6b9c9a0 + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: 0E55ABCC85A54D6B9627B0DF627AC217 Ref B: CH1AA2020620035 Ref C: 2024-06-05T18:53:45Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_list.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_list.yaml new file mode 100644 index 00000000000..0efbed6645c --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_list.yaml @@ -0,0 +1,48 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub notification-registration list + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/notificationRegistrations?api-version=2024-04-01-preview + response: + body: + string: '{"value":[{"properties":{"notificationMode":"EventHub","messageScope":"RegisteredSubscriptions","includedEvents":["*/write","Microsoft.Contoso/employees/delete"],"notificationEndpoints":[{"notificationDestination":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications","locations":["EastUS"]}]},"name":"testNotificationRegistration","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T18:47:55.6681371Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T18:47:55.6681371Z"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '703' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 18:51:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/90148ba1-abba-41d6-bb5f-1704ff9060f2 + x-msedge-ref: + - 'Ref A: 732DF48D5C9441B2B08F4ACE4F74B573 Ref B: CH1AA2020615003 Ref C: 2024-06-05T18:51:18Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_show.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_show.yaml new file mode 100644 index 00000000000..e2a4496c392 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_notification_registration_show.yaml @@ -0,0 +1,48 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub notification-registration show + Connection: + - keep-alive + ParameterSetName: + - --name --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/notificationRegistrations/testNotificationRegistration?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"notificationMode":"EventHub","messageScope":"RegisteredSubscriptions","includedEvents":["*/write","Microsoft.Contoso/employees/delete"],"notificationEndpoints":[{"notificationDestination":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications","locations":["EastUS"]}]},"name":"testNotificationRegistration","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T18:47:55.6681371Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T18:47:55.6681371Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '691' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 18:49:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/8e14bec6-4de3-4129-9510-4d02c1ae9b59 + x-msedge-ref: + - 'Ref A: 9E57FE69E4C7455281F5922A56D3FB20 Ref B: DM2AA1091213029 Ref C: 2024-06-05T18:49:33Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_operation_create.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_operation_create.yaml new file mode 100644 index 00000000000..a272450d0d5 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_operation_create.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: '{"properties": {"contents": [{"display": {"default": {"description": "Read + employees", "operation": "Gets/List employee resources", "provider": "Private.VPTest", + "resource": "Employees"}}, "name": "Private.VPTest/Employees/Read"}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub operation create + Connection: + - keep-alive + Content-Length: + - '232' + Content-Type: + - application/json + ParameterSetName: + - --contents --provider-namespace + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/operations/default?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"contents":[{"name":"Private.VPTest/Employees/Read","isDataAction":false,"display":{"default":{"provider":"Private.VPTest","resource":"Employees","operation":"Gets/List + employee resources","description":"Read employees"}}}]},"systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-18T22:52:07.2764732Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-18T22:52:07.2764732Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '482' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Jun 2024 22:52:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/0f446195-f1ee-47df-8d8e-5c8157a2b34b + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-msedge-ref: + - 'Ref A: 4674E58935484061964BFB4616ADCFCF Ref B: CO6AA3150220029 Ref C: 2024-06-18T22:52:07Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_operation_delete.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_operation_delete.yaml new file mode 100644 index 00000000000..b825f15cd1d --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_operation_delete.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub operation delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/operations/default?api-version=2024-04-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-type: + - application/json; charset=utf-8 + date: + - Thu, 06 Jun 2024 17:47:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/fd133360-8ba5-4ae0-9127-f76d6a4bdd27 + x-ms-ratelimit-remaining-subscription-deletes: + - '14997' + x-msedge-ref: + - 'Ref A: F283029E359B4D4E86A2BD8AE6A63220 Ref B: CH1AA2020613051 Ref C: 2024-06-06T17:47:11Z' + status: + code: 204 + message: No Content +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_operation_list.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_operation_list.yaml new file mode 100644 index 00000000000..3d47c9ea73f --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_operation_list.yaml @@ -0,0 +1,49 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub operation list + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/operations/default?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"contents":[{"name":"Private.VPTest/Employees/Read","isDataAction":false,"display":{"default":{"provider":"Private.VPTest","resource":"Employees","operation":"Gets/List + employee resources","description":"Read employees"}},"properties":null}]},"systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-06T18:27:56.6841995Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-06T18:27:56.6841995Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '500' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Jun 2024 22:49:15 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/5f1e2e36-ed98-43ec-b2c3-fe5cf71e833d + x-msedge-ref: + - 'Ref A: A01F2E36045A43C2BD0DF698D76C43E1 Ref B: CO6AA3150219035 Ref C: 2024-06-18T22:49:15Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_create.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_create.yaml new file mode 100644 index 00000000000..a0d66ade107 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_create.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '{"kind": "Managed", "properties": {"capabilities": [{"effect": "Allow", + "quotaId": "CSP_2015-05-01"}, {"effect": "Allow", "quotaId": "CSP_MG_2017-12-01"}], + "management": {"incidentContactEmail": "rpaascore@microsoft.com", "incidentRoutingService": + "Resource Provider Service as a Service", "incidentRoutingTeam": "RPaaS", "manifestOwners": + ["SPARTA-PlatformServiceAdministrator"], "serviceTreeInfos": [{"componentId": + "d1b7d8ba-05e2-48e6-90d6-d781b99c6e69", "serviceId": "d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]}, + "metadata": {"BypassManifestValidation": true}, "providerVersion": "2.0", "tokenAuthConfiguration": + {"authenticationScheme": "PoP", "signedRequestScope": "ResourceUri"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub provider-registration create + Connection: + - keep-alive + Content-Length: + - '684' + Content-Type: + - application/json + ParameterSetName: + - --token-auth-configuration --service-tree-infos --capabilities --capabilities + --manifest-owners --incident-contact-email --incident-routing-service --incident-routing-team + --provider-version --provider-namespace --metadata + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"privateResourceProviderConfiguration":{"allowedSubscriptions":["81ddc363-4b54-4223-833d-16b2a424d8a0"]},"provisioningState":"Succeeded","namespace":"Private.VPTest","providerVersion":"2.0","providerType":"Internal, + Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator"],"incidentRoutingService":"Resource + Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"rpaascore@microsoft.com","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":{"BypassManifestValidation":true},"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest","type":"Microsoft.ProviderHub/providerRegistrations","name":"Private.VPTest","kind":"Managed","systemData":{"createdBy":"vpourhashem@microsoft.com","createdByType":"User","createdAt":"2022-11-16T00:05:06.5154703Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-17T03:49:36.6182293Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1345' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 17 Jun 2024 03:49:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/295f3079-311a-4576-9769-bd2118a4720c + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-msedge-ref: + - 'Ref A: 6F6726D26FE84B3AB8B77DA8FE0CBD56 Ref B: CO6AA3150218035 Ref C: 2024-06-17T03:49:36Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_delete.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_delete.yaml new file mode 100644 index 00000000000..70ed905c350 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_delete.yaml @@ -0,0 +1,56 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub provider-registration delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --provider-namespace + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest?api-version=2024-04-01-preview + response: + body: + string: '{"error":{"code":"DecommissionProviderRequiredPropertiesNotFound","message":"The + Provider ''Private.VPTest'' must inclue ''Hidden'' and ''Decommissioned'' + in providerType when decommissioning."}}' + headers: + cache-control: + - no-cache + content-length: + - '189' + content-type: + - application/json + date: + - Mon, 17 Jun 2024 04:28:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/0ff1374b-8a79-4d6f-9143-3f9a92b4988e + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + x-msedge-ref: + - 'Ref A: 31D783824BF34F029D894C6EBDFD6C34 Ref B: CO6AA3150220047 Ref C: 2024-06-17T04:28:14Z' + status: + code: 400 + message: Bad Request +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_generate_operation.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_generate_operation.yaml new file mode 100644 index 00000000000..ff1387be29e --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_generate_operation.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub provider-registration generate-operation + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --provider-namespace + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/generateOperations?api-version=2024-04-01-preview + response: + body: + string: '{"contents":[{"name":"Private.VPTest/register/action","isDataAction":false,"display":{"provider":"Private.VPTest","resource":"Private.VPTest","operation":"Register + the Private.VPTest","description":"Register the subscription for Private.VPTest"}},{"name":"Private.VPTest/unregister/action","isDataAction":false,"display":{"provider":"Private.VPTest","resource":"Private.VPTest","operation":"Unregister + the Private.VPTest","description":"Unregister the subscription for Private.VPTest"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '488' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 18 Jun 2024 22:48:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/bd539023-5180-4fed-9818-7d03cec18b1b + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 932EED0238EC492484B29AD549ED96C9 Ref B: CO6AA3150218009 Ref C: 2024-06-18T22:48:49Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_list.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_list.yaml new file mode 100644 index 00000000000..fedd13cfd9f --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_list.yaml @@ -0,0 +1,59 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub provider-registration list + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations?api-version=2024-04-01-preview + response: + body: + string: '{"value":[{"properties":{"privateResourceProviderConfiguration":{"allowedSubscriptions":["81ddc363-4b54-4223-833d-16b2a424d8a0"]},"provisioningState":"Succeeded","namespace":"Private.VPTest","providerVersion":"2.0","providerType":"Internal, + Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator"],"incidentRoutingService":"Resource + Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"rpaascore@microsoft.com","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":null,"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest","type":"Microsoft.ProviderHub/providerRegistrations","name":"Private.VPTest","kind":"Managed","systemData":{"createdBy":"vpourhashem@microsoft.com","createdByType":"User","createdAt":"2022-11-16T00:05:06.5154703Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-03T22:48:22.0394426Z"}},{"properties":{"providerHubMetadata":{"providerAuthorizations":[{"applicationId":"","roleDefinitionId":""}],"providerAuthentication":{"allowedAudiences":[]}},"privateResourceProviderConfiguration":{"allowedSubscriptions":["30205494-33df-4393-8705-6d27798c4381"]},"provisioningState":"Failed","namespace":"Private.Gauri","providerVersion":"2.0","providerType":"Internal, + Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator","RPAAS-PlatformServiceAdministrator"],"incidentRoutingService":"sampleService","incidentRoutingTeam":"sampleTeam","incidentContactEmail":"alalani@microsoft.com","serviceTreeInfos":[{"serviceId":"5eb0b46d-bf43-4fef-a148-0d740e595d62","componentId":"5eb0b46d-bf43-4fef-a148-0d740e595d62"}]},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":null,"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.Gauri","type":"Microsoft.ProviderHub/providerRegistrations","name":"Private.Gauri","kind":"Managed","tags":{},"systemData":{"createdBy":"vpourhashem@microsoft.com","createdByType":"User","createdAt":"2023-11-08T21:25:11.1619476Z","lastModifiedBy":"vpourhashem@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-08T21:25:11.1619476Z"}},{"properties":{"providerHubMetadata":{"providerAuthorizations":[{"applicationId":"","roleDefinitionId":""}]},"privateResourceProviderConfiguration":{"allowedSubscriptions":["70aad6c5-69f0-4905-87b8-f8700e08e2dd"]},"provisioningState":"Succeeded","namespace":"Private.AkhilaBugBashRP","providerVersion":"2.0","providerType":"Internal, + Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator","RPAAS-PlatformServiceAdministrator"],"incidentRoutingService":"Resource + Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"RPaaSHot@microsoft.com","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":{"BypassManifestValidation":false},"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.AkhilaBugBashRP","type":"Microsoft.ProviderHub/providerRegistrations","name":"Private.AkhilaBugBashRP","kind":"Managed","systemData":{"createdBy":"akhilailla@microsoft.com","createdByType":"User","createdAt":"2024-04-17T18:19:50.131565Z","lastModifiedBy":"akhilailla@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-17T18:19:50.131565Z"}},{"properties":{"providerHubMetadata":{"providerAuthorizations":[{"applicationId":"","roleDefinitionId":""}]},"privateResourceProviderConfiguration":{"allowedSubscriptions":["81ddc363-4b54-4223-833d-16b2a424d8a0"]},"provisioningState":"Succeeded","namespace":"Private.NatalieTestRP","providerVersion":"2.0","providerType":"Internal, + Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator","RPAAS-PlatformServiceAdministrator"],"incidentRoutingService":"Resource + Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"RPaaSHot@microsoft.com","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":{"BypassManifestValidation":false},"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.NatalieTestRP","type":"Microsoft.ProviderHub/providerRegistrations","name":"Private.NatalieTestRP","kind":"Managed","systemData":{"createdBy":"nataliezoz@microsoft.com","createdByType":"User","createdAt":"2024-04-17T18:25:23.6827065Z","lastModifiedBy":"nataliezoz@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-17T18:25:23.6827065Z"}},{"properties":{"providerHubMetadata":{"providerAuthorizations":[{"applicationId":"","roleDefinitionId":""}]},"privateResourceProviderConfiguration":{"allowedSubscriptions":["70aad6c5-69f0-4905-87b8-f8700e08e2dd"]},"provisioningState":"Succeeded","namespace":"Private.VikashjRP","providerVersion":"2.0","providerType":"Internal, + Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator","RPAAS-PlatformServiceAdministrator"],"incidentRoutingService":"Resource + Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"RPaaSHot@microsoft.com","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":{"BypassManifestValidation":true},"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VikashjRP","type":"Microsoft.ProviderHub/providerRegistrations","name":"Private.VikashjRP","kind":"Managed","systemData":{"createdBy":"vikashj@microsoft.com","createdByType":"User","createdAt":"2024-04-17T18:31:57.0624357Z","lastModifiedBy":"vikashj@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-17T18:31:57.0624357Z"}},{"properties":{"providerHubMetadata":{"providerAuthorizations":[{"applicationId":"","roleDefinitionId":""}]},"privateResourceProviderConfiguration":{"allowedSubscriptions":["81ddc363-4b54-4223-833d-16b2a424d8a0"]},"provisioningState":"Succeeded","namespace":"Private.GerardoGoBugBash","providerVersion":"2.0","providerType":"Internal, + Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator","RPAAS-PlatformServiceAdministrator"],"incidentRoutingService":"Resource + Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"RPaaSHot@microsoft.com","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":{"BypassManifestValidation":true},"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.GerardoGoBugBash","type":"Microsoft.ProviderHub/providerRegistrations","name":"Private.GerardoGoBugBash","kind":"Managed","systemData":{"createdBy":"gerardogo@microsoft.com","createdByType":"User","createdAt":"2024-04-17T18:55:50.1277625Z","lastModifiedBy":"gerardogo@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-17T18:55:50.1277625Z"}},{"properties":{"privateResourceProviderConfiguration":{"allowedSubscriptions":["81ddc363-4b54-4223-833d-16b2a424d8a0"]},"provisioningState":"Succeeded","namespace":"Private.CLI","providerVersion":"2.0","providerType":"Internal, + Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator","RPAAS-PlatformServiceAdministrator"],"incidentRoutingService":"Resource + Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"rpaascore@microsoft.com","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":null,"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.CLI","type":"Microsoft.ProviderHub/providerRegistrations","name":"Private.CLI","kind":"Managed","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-05-01T21:18:32.1096725Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-05-01T21:18:32.1096725Z"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '10074' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 20:47:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/edcc518b-81e7-4677-a878-488c04006c96 + x-msedge-ref: + - 'Ref A: 6CE3F6A50AED4031978C97EEAA15CE15 Ref B: DM2EDGE0905 Ref C: 2024-06-04T20:47:18Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_show.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_show.yaml new file mode 100644 index 00000000000..02071c39e30 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_provider_registration_show.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub provider-registration show + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"privateResourceProviderConfiguration":{"allowedSubscriptions":["81ddc363-4b54-4223-833d-16b2a424d8a0"]},"provisioningState":"Succeeded","namespace":"Private.VPTest","providerVersion":"2.0","providerType":"Internal, + Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator"],"incidentRoutingService":"Resource + Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"rpaascore@microsoft.com","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":null,"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest","type":"Microsoft.ProviderHub/providerRegistrations","name":"Private.VPTest","kind":"Managed","systemData":{"createdBy":"vpourhashem@microsoft.com","createdByType":"User","createdAt":"2022-11-16T00:05:06.5154703Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-03T22:48:22.0394426Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1316' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 20:48:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/2568597c-49ab-4a03-9cd5-f5e251863007 + x-msedge-ref: + - 'Ref A: 12C227A4156843239D9845B7F233D725 Ref B: DM2EDGE0412 Ref C: 2024-06-04T20:48:49Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_create.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_create.yaml new file mode 100644 index 00000000000..25d414a40a8 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_create.yaml @@ -0,0 +1,55 @@ +interactions: +- request: + body: '{"kind": "Managed", "properties": {"endpoints": [{"apiVersions": ["2019-01-01"], + "locations": ["WestUS"]}], "regionality": "Regional"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub resource-type-registration create + Connection: + - keep-alive + Content-Length: + - '135' + Content-Type: + - application/json + ParameterSetName: + - --endpoints --regionality --provider-namespace --resource-type + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/extensionresourcetype?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"name":"extensionresourcetype","routingType":"Default","regionality":"Regional","endpoints":[{"kind":"Managed","apiVersions":["2019-01-01"],"locations":["WestUS"]}],"defaultApiVersion":"2019-01-01","enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/extensionresourcetype","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"extensionresourcetype","kind":"Managed","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-05-31T03:23:33.5645757Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-04T23:30:16.4751488Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '949' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 23:30:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/c2af90b9-43e4-42e1-89aa-e6284ab27de0 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-msedge-ref: + - 'Ref A: 8C557624C4F54E8380FDDB445379C9FA Ref B: DM2AA1091214017 Ref C: 2024-06-04T23:30:16Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_delete.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_delete.yaml new file mode 100644 index 00000000000..6f333fe596f --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_delete.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub resource-type-registration delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --provider-namespace --resource-type + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/extensionresourcetype?api-version=2024-04-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 04 Jun 2024 23:37:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/d589e7d3-de86-4e86-9654-1c613094a970 + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + x-msedge-ref: + - 'Ref A: 4E1ECD261DD0490FA03ED4E182EE372D Ref B: DM2AA1091212021 Ref C: 2024-06-04T23:37:08Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_list.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_list.yaml new file mode 100644 index 00000000000..9ead18e881d --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_list.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub resource-type-registration list + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations?api-version=2024-04-01-preview + response: + body: + string: '{"value":[{"properties":{"name":"testBridge","routingType":"Default","regionality":"Regional","endpoints":[{"extensions":[{"endpointUri":"https://prds-westcentralus.sparta.azure.com:17665/","extensionCategories":["ResourceCreationValidate","ResourceCreationBegin","ResourceCreationCompleted"]}],"apiVersions":["2021-10-01-privatepreview"],"locations":["West + Central US"]}],"enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/testBridge","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"testBridge","systemData":{"createdBy":"vpourhashem@microsoft.com","createdByType":"User","createdAt":"2022-11-18T01:10:20.7589531Z","lastModifiedBy":"vpourhashem@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-10T04:20:50.4709348Z"}},{"properties":{"name":"Ingredients","routingType":"Default","regionality":"Regional","endpoints":[{"kind":"Managed","apiVersions":["2022-09-23-preview"],"locations":["West + US","East US"]},{"kind":"Managed","apiVersions":["2021-10-01-privatepreview","2022-09-23-preview"],"locations":["West + Central US"]}],"enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/Ingredients","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"Ingredients","kind":"Managed","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2023-04-03T23:14:40.6414603Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-12-08T21:28:18.5478565Z"}},{"properties":{"name":"employees","routingType":"Default","regionality":"Regional","endpoints":[{"kind":"Managed","apiVersions":["2021-09-01"],"locations":["West + US"],"timeout":"PT20S","endpointType":"NotSpecified"}],"defaultApiVersion":"2021-09-01","enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"disallowedActionVerbs":["write"],"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/employees","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"employees","kind":"Managed","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2023-09-22T16:56:20.5757206Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-03T20:35:35.5582495Z"}},{"properties":{"name":"tables","routingType":"Default","regionality":"Regional","endpoints":[{"kind":"Managed","apiVersions":["2021-09-01"],"locations":["West + US"],"timeout":"PT20S","endpointType":"NotSpecified"}],"defaultApiVersion":"2021-09-01","enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"disallowedActionVerbs":["write"],"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/tables","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"tables","kind":"Managed","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2023-10-18T20:43:06.2873065Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-03T20:35:53.2739402Z"}},{"properties":{"name":"Chairs","routingType":"Default","regionality":"Regional","endpoints":[{"kind":"Managed","apiVersions":["2021-09-01"],"locations":["West + US"],"timeout":"PT20S","endpointType":"NotSpecified"}],"defaultApiVersion":"2021-09-01","enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"disallowedActionVerbs":["write"],"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/Chairs","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"Chairs","kind":"Managed","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2023-11-09T00:28:11.900944Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-03T20:36:01.4172875Z"}},{"properties":{"name":"Ingredients2","routingType":"Default","regionality":"Regional","endpoints":[{"kind":"Managed","apiVersions":["2022-09-23-preview"],"locations":["West + US","East US"]}],"enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/Ingredients2","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"Ingredients2","kind":"Managed","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2023-11-30T17:05:08.0267484Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-30T17:05:08.0267484Z"}},{"properties":{"name":"testCLI","routingType":"Default","regionality":"Regional","endpoints":[{"kind":"Managed","apiVersions":["2021-09-01"],"locations":["West + US"],"timeout":"PT20S","endpointType":"NotSpecified"}],"defaultApiVersion":"2021-09-01","enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"disallowedActionVerbs":["write"],"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/testCLI","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"testCLI","kind":"Managed","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-05-31T03:21:44.8907799Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-03T20:36:13.2183546Z"}},{"properties":{"name":"extensionresourcetype","routingType":"Default","regionality":"Regional","endpoints":[{"kind":"Managed","apiVersions":["2021-09-01"],"locations":["West + US"],"timeout":"PT20S","endpointType":"NotSpecified"}],"defaultApiVersion":"2021-09-01","enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"disallowedActionVerbs":["write"],"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/extensionresourcetype","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"extensionresourcetype","kind":"Managed","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-05-31T03:23:33.5645757Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-03T20:37:10.3853065Z"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '7999' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 20:54:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/b9f287d3-602c-46b2-924c-733ee5f2f761 + x-msedge-ref: + - 'Ref A: D00C88F400EE4BC396EAB83C83E1EE48 Ref B: CH1AA2020616023 Ref C: 2024-06-04T20:54:38Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_show.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_show.yaml new file mode 100644 index 00000000000..3224f4826ee --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_resource_type_registration_show.yaml @@ -0,0 +1,48 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub resource-type-registration show + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --resource-type + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/extensionresourcetype?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"name":"extensionresourcetype","routingType":"Default","regionality":"Regional","endpoints":[{"kind":"Managed","apiVersions":["2019-01-01"],"locations":["WestUS"]}],"defaultApiVersion":"2019-01-01","enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/extensionresourcetype","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"extensionresourcetype","kind":"Managed","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-05-31T03:23:33.5645757Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-04T23:30:16.4751488Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '949' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Jun 2024 23:33:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/4245872d-dcbb-44a8-8465-33d276a4bf3f + x-msedge-ref: + - 'Ref A: 75F23A1BC40B4DF2A82EC9A82A12C190 Ref B: DM2AA1091214045 Ref C: 2024-06-04T23:33:07Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create.yaml new file mode 100644 index 00000000000..fc7456f9ec3 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create.yaml @@ -0,0 +1,54 @@ +interactions: +- request: + body: '{"properties": {"skuSettings": [{"name": "freeSku"}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku create + Connection: + - keep-alive + Content-Length: + - '54' + Content-Type: + - application/json + ParameterSetName: + - --sku-settings --provider-namespace --resource-type --sku + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/skus/default?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"skuSettings":[{"name":"freeSku"}]},"type":"Microsoft.ProviderHub/providerRegistrations/skus","name":"default","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T21:18:02.9997287Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T21:18:02.9997287Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '368' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 21:18:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/b3bf9969-6e37-46b5-aed0-15909ec15734 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + x-msedge-ref: + - 'Ref A: 473223A27DB445A28A2D3BD198193F50 Ref B: DM2AA1091214049 Ref C: 2024-06-05T21:18:02Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create2.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create2.yaml new file mode 100644 index 00000000000..86b54c42e60 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create2.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: '{"properties": {"skuSettings": [{"kind": "Standard", "name": "freeSku", + "tier": "Tier1"}, {"costs": [{"meterId": "xxx"}], "kind": "Premium", "name": + "premiumSku", "tier": "Tier2"}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku nested-resource-type-first create + Connection: + - keep-alive + Content-Length: + - '182' + Content-Type: + - application/json + ParameterSetName: + - --nested-resource-type-first --sku-settings --provider-namespace --resource-type + --sku + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceTypeFirst/skus/default?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"skuSettings":[{"name":"freeSku","tier":"Tier1","kind":"Standard"},{"name":"premiumSku","tier":"Tier2","kind":"Premium","costs":[{"meterId":"xxx","quantity":0}]}]},"type":"Microsoft.ProviderHub/providerRegistrations/skus","name":"default","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T21:59:04.8075964Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T21:59:04.8075964Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '496' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 21:59:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/92f99bc3-a795-42fa-bc03-62e36df3eecb + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: FA402E73FBFA4E45BB4F0BB38FFE4EBA Ref B: DM2AA1091213039 Ref C: 2024-06-05T21:59:04Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create3.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create3.yaml new file mode 100644 index 00000000000..5d71bd6d78c --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create3.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: '{"properties": {"skuSettings": [{"kind": "Standard", "name": "freeSku", + "tier": "Tier1"}, {"costs": [{"meterId": "xxx"}], "kind": "Premium", "name": + "premiumSku", "tier": "Tier2"}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku nested-resource-type-second create + Connection: + - keep-alive + Content-Length: + - '182' + Content-Type: + - application/json + ParameterSetName: + - --nested-resource-type-first --nested-resource-type-second --sku-settings + --provider-namespace --resource-type --sku + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceTypeFirst/resourcetypeRegistrations/nestedResourceTypeSecond/skus/default?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"skuSettings":[{"name":"freeSku","tier":"Tier1","kind":"Standard"},{"name":"premiumSku","tier":"Tier2","kind":"Premium","costs":[{"meterId":"xxx","quantity":0}]}]},"type":"Microsoft.ProviderHub/providerRegistrations/skus","name":"default","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T22:03:17.7824421Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T22:03:17.7824421Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '496' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 22:03:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/522b8fb0-ec2c-4f55-afb5-b69201779efb + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: D58DFB3EB85445D68F180F2CDF464CAA Ref B: DM2AA1091213035 Ref C: 2024-06-05T22:03:16Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create4.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create4.yaml new file mode 100644 index 00000000000..d35c1b49a4e --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_create4.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: '{"properties": {"skuSettings": [{"kind": "Standard", "name": "freeSku", + "tier": "Tier1"}, {"costs": [{"meterId": "xxx"}], "kind": "Premium", "name": + "premiumSku", "tier": "Tier2"}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku nested-resource-type-third create + Connection: + - keep-alive + Content-Length: + - '182' + Content-Type: + - application/json + ParameterSetName: + - --nested-resource-type-first --nested-resource-type-second --nested-resource-type-third + --sku-settings --provider-namespace --resource-type --sku + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceTypeFirst/resourcetypeRegistrations/nestedResourceTypeSecond/resourcetypeRegistrations/nestedResourceTypeThird/skus/default?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"skuSettings":[{"name":"freeSku","tier":"Tier1","kind":"Standard"},{"name":"premiumSku","tier":"Tier2","kind":"Premium","costs":[{"meterId":"xxx","quantity":0}]}]},"type":"Microsoft.ProviderHub/providerRegistrations/skus","name":"default","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T22:12:58.0502068Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T22:12:58.0502068Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '496' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 22:12:59 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/74281276-4143-4336-b669-506b06229570 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + x-msedge-ref: + - 'Ref A: E682FE74BF604B2988C3C5BAA58701E8 Ref B: DM2AA1091214031 Ref C: 2024-06-05T22:12:57Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete.yaml new file mode 100644 index 00000000000..71c8c2c1c57 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --provider-namespace --resource-type --sku + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/skus/default?api-version=2024-04-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 05 Jun 2024 22:51:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/92b9d6ba-9825-4ab6-800a-f890fdca59a3 + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + x-msedge-ref: + - 'Ref A: 748CA763292F4DB3B7BBEC312A6B6F7A Ref B: CH1AA2020620053 Ref C: 2024-06-05T22:51:20Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete2.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete2.yaml new file mode 100644 index 00000000000..42e0bb21158 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete2.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku nested-resource-type-first delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --nested-resource-type-first --provider-namespace --resource-type --sku + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceTypeFirst/skus/default?api-version=2024-04-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 05 Jun 2024 22:55:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/634740ee-2c07-4734-adc0-311852fe4512 + x-ms-ratelimit-remaining-subscription-deletes: + - '14997' + x-msedge-ref: + - 'Ref A: B5B9AA21F28547359BEBB639BA3C253E Ref B: DM2AA1091212025 Ref C: 2024-06-05T22:55:13Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete3.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete3.yaml new file mode 100644 index 00000000000..6862c6bf854 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete3.yaml @@ -0,0 +1,51 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku nested-resource-type-second delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --nested-resource-type-first --nested-resource-type-second --provider-namespace + --resource-type --sku + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceTypeFirst/resourcetypeRegistrations/nestedResourceTypeSecond/skus/default?api-version=2024-04-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 05 Jun 2024 22:56:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/89ebd406-20d9-41aa-bc6c-4f6e42e5694c + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + x-msedge-ref: + - 'Ref A: D0B0BE22AAB940A0B97DA405751581D6 Ref B: CH1AA2020620037 Ref C: 2024-06-05T22:56:36Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete4.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete4.yaml new file mode 100644 index 00000000000..f66762e3042 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_delete4.yaml @@ -0,0 +1,51 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku nested-resource-type-third delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --nested-resource-type-first --nested-resource-type-second --nested-resource-type-third + --provider-namespace --resource-type --sku + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceTypeFirst/resourcetypeRegistrations/nestedResourceTypeSecond/resourcetypeRegistrations/nestedResourceTypeThird/skus/default?api-version=2024-04-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 05 Jun 2024 22:58:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/5fc0f12e-f098-4bcc-a086-ab011d38915f + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: 9F57DE934B434CEB91F57F65A7ABC57F Ref B: DM2AA1091212039 Ref C: 2024-06-05T22:57:56Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list.yaml new file mode 100644 index 00000000000..48bdfcb8018 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list.yaml @@ -0,0 +1,48 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku list + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --resource-type + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/skus?api-version=2024-04-01-preview + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 20 Jun 2024 17:23:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/fc87e484-784a-4bdc-9be0-529d143183d7 + x-msedge-ref: + - 'Ref A: 03971348169445DE95EBFE968DB6AE84 Ref B: CO6AA3150218025 Ref C: 2024-06-20T17:22:53Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list2.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list2.yaml new file mode 100644 index 00000000000..1d2bdf5b4d9 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list2.yaml @@ -0,0 +1,48 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku nested-resource-type-first list + Connection: + - keep-alive + ParameterSetName: + - --nested-resource-type-first --provider-namespace --resource-type + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceTypeFirst/skus?api-version=2024-04-01-preview + response: + body: + string: '{"value":[{"properties":{"skuSettings":[{"name":"freeSku","tier":"Tier1","kind":"Standard"},{"name":"premiumSku","tier":"Tier2","kind":"Premium","costs":[{"meterId":"xxx","quantity":0}]}]},"type":"Microsoft.ProviderHub/providerRegistrations/skus","name":"default","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T21:59:04.8075964Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T21:59:04.8075964Z"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '508' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 22:36:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/482e09c1-f8ea-4e91-a443-9fde1b17399f + x-msedge-ref: + - 'Ref A: F0F8AABC2439458C81A78AAEAFF6EE45 Ref B: DM2AA1091214025 Ref C: 2024-06-05T22:36:50Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list3.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list3.yaml new file mode 100644 index 00000000000..7e8936d1514 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list3.yaml @@ -0,0 +1,49 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku nested-resource-type-second list + Connection: + - keep-alive + ParameterSetName: + - --nested-resource-type-first --nested-resource-type-second --provider-namespace + --resource-type + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceTypeFirst/resourcetypeRegistrations/nestedResourceTypeSecond/skus?api-version=2024-04-01-preview + response: + body: + string: '{"value":[{"properties":{"skuSettings":[{"name":"freeSku","tier":"Tier1","kind":"Standard"},{"name":"premiumSku","tier":"Tier2","kind":"Premium","costs":[{"meterId":"xxx","quantity":0}]}]},"type":"Microsoft.ProviderHub/providerRegistrations/skus","name":"default","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T22:03:17.7824421Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T22:03:17.7824421Z"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '508' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 22:38:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/8ac26b90-2ea8-482d-b2a0-41213d5cc18a + x-msedge-ref: + - 'Ref A: 3465FADEF3084B9C9585863EE8392D94 Ref B: DM2AA1091214011 Ref C: 2024-06-05T22:38:51Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list4.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list4.yaml new file mode 100644 index 00000000000..49f413b0655 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_list4.yaml @@ -0,0 +1,49 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku nested-resource-type-third list + Connection: + - keep-alive + ParameterSetName: + - --nested-resource-type-first --nested-resource-type-second --nested-resource-type-third + --provider-namespace --resource-type + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceTypeFirst/resourcetypeRegistrations/nestedResourceTypeSecond/resourcetypeRegistrations/nestedResourceTypeThird/skus?api-version=2024-04-01-preview + response: + body: + string: '{"value":[{"properties":{"skuSettings":[{"name":"freeSku","tier":"Tier1","kind":"Standard"},{"name":"premiumSku","tier":"Tier2","kind":"Premium","costs":[{"meterId":"xxx","quantity":0}]}]},"type":"Microsoft.ProviderHub/providerRegistrations/skus","name":"default","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T22:12:58.0502068Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T22:12:58.0502068Z"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '508' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 22:48:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/62c5bec2-33fc-4cfa-b3e4-86e97092d846 + x-msedge-ref: + - 'Ref A: 50A6C4136273431C8D25EC50BEFA2336 Ref B: DM2AA1091214035 Ref C: 2024-06-05T22:48:40Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show.yaml new file mode 100644 index 00000000000..29e0085044b --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show.yaml @@ -0,0 +1,48 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku show + Connection: + - keep-alive + ParameterSetName: + - --provider-namespace --resource-type --sku + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/skus/default?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"skuSettings":[{"name":"freeSku"}]},"type":"Microsoft.ProviderHub/providerRegistrations/skus","name":"default","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T21:18:02.9997287Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T21:18:02.9997287Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '368' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 22:16:02 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/d779c2cf-bb3f-48db-943e-47ed188e752f + x-msedge-ref: + - 'Ref A: 81B6EF9072C14FC09AA68FE6BA9536E0 Ref B: DM2AA1091211029 Ref C: 2024-06-05T22:15:59Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show_nested_resource_type_first.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show_nested_resource_type_first.yaml new file mode 100644 index 00000000000..4233b9fb5a6 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show_nested_resource_type_first.yaml @@ -0,0 +1,48 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku nested-resource-type-first show + Connection: + - keep-alive + ParameterSetName: + - --nested-resource-type-first --provider-namespace --resource-type --sku + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceTypeFirst/skus/default?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"skuSettings":[{"name":"freeSku","tier":"Tier1","kind":"Standard"},{"name":"premiumSku","tier":"Tier2","kind":"Premium","costs":[{"meterId":"xxx","quantity":0}]}]},"type":"Microsoft.ProviderHub/providerRegistrations/skus","name":"default","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T21:59:04.8075964Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T21:59:04.8075964Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '496' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 22:18:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/3f6f9e94-523a-467e-9798-0cdebf132406 + x-msedge-ref: + - 'Ref A: 57F97B0C98604F67B3A5F990CF967730 Ref B: DM2AA1091212049 Ref C: 2024-06-05T22:18:36Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show_nested_resource_type_second.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show_nested_resource_type_second.yaml new file mode 100644 index 00000000000..b8dd0574562 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show_nested_resource_type_second.yaml @@ -0,0 +1,49 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku nested-resource-type-second show + Connection: + - keep-alive + ParameterSetName: + - --nested-resource-type-first --nested-resource-type-second --provider-namespace + --resource-type --sku + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceTypeFirst/resourcetypeRegistrations/nestedResourceTypeSecond/skus/default?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"skuSettings":[{"name":"freeSku","tier":"Tier1","kind":"Standard"},{"name":"premiumSku","tier":"Tier2","kind":"Premium","costs":[{"meterId":"xxx","quantity":0}]}]},"type":"Microsoft.ProviderHub/providerRegistrations/skus","name":"default","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T22:03:17.7824421Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T22:03:17.7824421Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '496' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 22:20:34 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/00cff36f-3348-4b12-b87e-136ec3bafdfb + x-msedge-ref: + - 'Ref A: ECF74AF82C9C4490B4D1F17E48B8F178 Ref B: DM2AA1091211051 Ref C: 2024-06-05T22:20:34Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show_nested_resource_type_third.yaml b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show_nested_resource_type_third.yaml new file mode 100644 index 00000000000..7754b0b6380 --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/recordings/test_step_sku_show_nested_resource_type_third.yaml @@ -0,0 +1,49 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - providerhub sku nested-resource-type-third show + Connection: + - keep-alive + ParameterSetName: + - --nested-resource-type-first --nested-resource-type-second --nested-resource-type-third + --provider-namespace --resource-type --sku + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/employees/resourcetypeRegistrations/nestedResourceTypeFirst/resourcetypeRegistrations/nestedResourceTypeSecond/resourcetypeRegistrations/nestedResourceTypeThird/skus/default?api-version=2024-04-01-preview + response: + body: + string: '{"properties":{"skuSettings":[{"name":"freeSku","tier":"Tier1","kind":"Standard"},{"name":"premiumSku","tier":"Tier2","kind":"Premium","costs":[{"meterId":"xxx","quantity":0}]}]},"type":"Microsoft.ProviderHub/providerRegistrations/skus","name":"default","systemData":{"createdBy":"gaurimadhok@microsoft.com","createdByType":"User","createdAt":"2024-06-05T22:12:58.0502068Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-05T22:12:58.0502068Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '496' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 05 Jun 2024 22:30:16 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/9516bd64-d570-4c63-b21c-dd24380e5922 + x-msedge-ref: + - 'Ref A: DB892FFD4A9E450095FD92E7725E6B21 Ref B: DM2AA1091214035 Ref C: 2024-06-05T22:30:16Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/providerhub/azext_providerhub/tests/latest/test_providerhub_scenario.py b/src/providerhub/azext_providerhub/tests/latest/test_providerhub_scenario.py deleted file mode 100644 index ca8e768665c..00000000000 --- a/src/providerhub/azext_providerhub/tests/latest/test_providerhub_scenario.py +++ /dev/null @@ -1,151 +0,0 @@ -# -------------------------------------------------------------------------- -# 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 os -from azure.cli.testsdk import ScenarioTest -from azure.cli.testsdk import ResourceGroupPreparer -from .example_steps import step_custom_rollout_create -from .example_steps import step_custom_rollout_show -from .example_steps import step_custom_rollout_list -from .example_steps import step_default_rollout_create -from .example_steps import step_default_rollout_show -from .example_steps import step_default_rollout_list -from .example_steps import step_default_rollout_stop -from .example_steps import step_default_rollout_delete -from .example_steps import step_notification_registration_create -from .example_steps import step_notification_registration_show -from .example_steps import step_notification_registration_list -from .example_steps import step_notification_registration_delete -from .example_steps import step_operation_create -from .example_steps import step_operation_list -from .example_steps import step_operation_delete -from .example_steps import step_manifest_checkin -from .example_steps import step_manifest_generate -from .example_steps import step_provider_registration_create -from .example_steps import step_provider_registration_show -from .example_steps import step_provider_registration_list -from .example_steps import step_provider_registration_generate_operation -from .example_steps import step_provider_registration_delete -from .example_steps import step_resource_type_registration_create -from .example_steps import step_resource_type_registration_show -from .example_steps import step_resource_type_registration_list -from .example_steps import step_nested_resource_type_registration_create -from .example_steps import step_nested_resource_type_registration_extensions_create -from .example_steps import step_nested_resource_type_registration_show -from .example_steps import step_nested_resource_type_registration_delete -from .example_steps import step_sku_create -from .example_steps import step_sku_create2 -from .example_steps import step_sku_create3 -from .example_steps import step_sku_create4 -from .example_steps import step_sku_show -from .example_steps import step_sku_show_nested_resource_type_first -from .example_steps import step_sku_show_nested_resource_type_second -from .example_steps import step_sku_show_nested_resource_type_third -from .example_steps import step_sku_list -from .example_steps import step_sku_list2 -from .example_steps import step_sku_list3 -from .example_steps import step_sku_list4 -from .example_steps import step_sku_delete -from .example_steps import step_sku_delete2 -from .example_steps import step_sku_delete3 -from .example_steps import step_sku_delete4 -from .. import ( - try_manual, - raise_if, - calc_coverage -) - - -TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) - - -# Env setup_scenario -@try_manual -def setup_scenario(test_2): - pass - - -# Env cleanup_scenario -@try_manual -def cleanup_scenario(test_2): - pass - - -# Testcase: Scenario -@try_manual -def call_scenario(test_2): - setup_scenario(test_2) - step_manifest_generate(test_2, checks=[]) - step_manifest_checkin(test_2, checks=[]) - step_custom_rollout_create(test_2, checks=[]) - step_custom_rollout_show(test_2, checks=[]) - step_custom_rollout_list(test_2, checks=[]) - step_default_rollout_create(test_2, checks=[]) - step_default_rollout_show(test_2, checks=[]) - step_default_rollout_list(test_2, checks=[]) - step_default_rollout_stop(test_2, checks=[]) - step_resource_type_registration_create(test_2, checks=[]) - step_resource_type_registration_show(test_2, checks=[]) - step_resource_type_registration_list(test_2, checks=[]) - step_nested_resource_type_registration_create(test_2, checks=[]) - step_nested_resource_type_registration_extensions_create(test_2, checks=[]) - step_nested_resource_type_registration_show(test_2, checks=[]) - step_nested_resource_type_registration_delete(test_2, checks=[]) - step_default_rollout_delete(test_2, checks=[]) - step_provider_registration_create(test_2, checks=[]) - step_provider_registration_show(test_2, checks=[]) - step_provider_registration_list(test_2, checks=[]) - step_provider_registration_delete(test_2, checks=[]) - step_provider_registration_create(test_2, checks=[]) - step_provider_registration_generate_operation(test_2, checks=[]) - step_notification_registration_create(test_2, checks=[]) - step_notification_registration_show(test_2, checks=[]) - step_notification_registration_list(test_2, checks=[]) - step_notification_registration_delete(test_2, checks=[]) - step_operation_list(test_2, checks=[]) - step_operation_create(test_2, checks=[]) - step_operation_delete(test_2, checks=[]) - step_sku_create(test_2, checks=[]) - step_sku_show(test_2, checks=[]) - step_sku_list(test_2, checks=[]) - step_sku_delete(test_2, checks=[]) - cleanup_scenario(test_2) - - -# Test class for Scenario -@try_manual -class ProviderhubScenarioTest(ScenarioTest): - - def __init__(self, *args, **kwargs): - super(ProviderhubScenarioTest, self).__init__(*args, **kwargs) - self.kwargs.update({ - 'subscription_id': self.get_subscription_id() - }) - - self.kwargs.update({ - 'providerNamespace': 'Microsoft.Contoso', - 'resourceType': 'employees', - 'customRolloutName': 'canaryTesting01', - 'defaultRolloutName': 'cliDefaultRollout', - 'region': 'eastus2euap', - 'notificationRegistration': 'testNotificationRegistration', - 'nestedResourceType': 'nestedResourceType', - 'skuName': 'default' - }) - - - @ResourceGroupPreparer(name_prefix='clitestproviderhub_mgmtexp-eastus'[:7], key='rg', parameter_name='rg') - @ResourceGroupPreparer(name_prefix='clitestproviderhub_mgmtexp-northeurope'[:7], key='rg_2', - parameter_name='rg_2') - def test_providerhub_Scenario(self_2): - call_scenario(self_2) - calc_coverage(__file__) - raise_if() - diff --git a/src/providerhub/azext_providerhub/tests/latest/test_providerhub_scenario_updated.py b/src/providerhub/azext_providerhub/tests/latest/test_providerhub_scenario_updated.py new file mode 100644 index 00000000000..71d452e5beb --- /dev/null +++ b/src/providerhub/azext_providerhub/tests/latest/test_providerhub_scenario_updated.py @@ -0,0 +1,517 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, StorageAccountPreparer, JMESPathCheck, NoneCheck, + api_version_constraint) +from azure.cli.testsdk.scenario_tests.decorators import AllowLargeResponse +from azure.cli.core.azclierror import ValidationError +from azure.core.exceptions import HttpResponseError + + +class ProviderHubScenario(ScenarioTest): + + def __init__(self, method_name, config_file=None, recording_dir=None, recording_name=None, + recording_processors=None, + replay_processors=None, recording_patches=None, replay_patches=None): + super(ProviderHubScenario, self).__init__( + method_name + ) + self.kwargs.update({ + 'subscription_id': self.get_subscription_id() + }) + + self.kwargs.update({ + 'providerNamespace': 'Private.VPTest', + 'resourceType': 'employees', + 'customRolloutName': 'canaryTesting01', + 'defaultRolloutName': 'cliDefaultRollout', + 'region': 'eastus2euap', + 'notificationRegistration': 'testNotificationRegistration', + 'nestedResourceType': 'nestedResourceType', + 'skuName': 'default' + }) + + # EXAMPLE: /providerhub/post/GenerateManifest + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_manifest') + def test_step_manifest_generate(self, resource_group): + self.cmd('az providerhub manifest generate --provider-namespace "{providerNamespace}"') + + # EXAMPLE: /providerhub/post/CheckinManifest + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_manifest') + def test_step_manifest_checkin(self, resource_group): + self.cmd('az providerhub manifest checkin --provider-namespace "{providerNamespace}" --environment "Canary"') + + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_authorized_application') + def test_step_authorized_application_create(self, resource_group): + self.cmd('az providerhub authorized-application create ' + '-n "8b51e6a7-7814-42bd-aa17-3fb1837b3b7a" ' + '--data-authorizations "[{{role:ServiceOwner}}]" ' + '--provider-namespace "{providerNamespace}" ') + + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_authorized_application') + def test_step_authorized_application_show(self, resource_group): + self.cmd('az providerhub authorized-application show ' + '-n "8b51e6a7-7814-42bd-aa17-3fb1837b3b7a" ' + '--provider-namespace "{providerNamespace}"') + + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_authorized_application') + def test_step_authorized_application_list(self, resource_group): + self.cmd('az providerhub authorized-application list ' + '--provider-namespace "{providerNamespace}"') + + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_authorized_application') + def test_step_authorized_application_delete(self, resource_group): + self.cmd('az providerhub authorized-application delete -y ' + '-n "8b51e6a7-7814-42bd-aa17-3fb1837b3b7a" ' + '--provider-namespace "{providerNamespace}" ') + + # EXAMPLE: /CustomRollouts/put/CustomRollouts_CreateOrUpdate + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_custom_rollout') + def test_step_custom_rollout_create(self, resource_group): + self.cmd('az providerhub custom-rollout create ' + '--provider-namespace "{providerNamespace}" ' + '--rollout-name "{customRolloutName}" ' + '--canary region="EastUS2EUAP" region="centraluseuap"') + + # EXAMPLE: /CustomRollouts/get/CustomRollouts_Get + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_custom_rollout') + def test_step_custom_rollout_show(self, resource_group): + self.cmd('az providerhub custom-rollout show ' + '--provider-namespace "{providerNamespace}" ' + '--rollout-name "{customRolloutName}"') + + # EXAMPLE: /CustomRollouts/get/CustomRollouts_ListByProviderRegistration + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_custom_rollout') + def test_step_custom_rollout_list(self, resource_group): + self.cmd('az providerhub custom-rollout list ' + '--provider-namespace "{providerNamespace}"') + + # EXAMPLE: /DefaultRollouts/put/DefaultRollouts_CreateOrUpdate + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_default_rollout') + def test_step_default_rollout_create(self, resource_group): + self.cmd('az providerhub default-rollout create ' + '--provider-namespace "{providerNamespace}" ' + '--rollout-name "{defaultRolloutName}" ') + + # EXAMPLE: /DefaultRollouts/get/DefaultRollouts_Get + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_default_rollout') + def test_step_default_rollout_show(self, resource_group): + self.cmd('az providerhub default-rollout show ' + '--provider-namespace "{providerNamespace}" ' + '--rollout-name "{defaultRolloutName}"') + + + # EXAMPLE: /DefaultRollouts/get/DefaultRollouts_ListByProviderRegistration + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_default_rollout') + def test_step_default_rollout_list(self, resource_group): + self.cmd('az providerhub default-rollout list ' + '--provider-namespace "{providerNamespace}"') + + + # EXAMPLE: /DefaultRollouts/post/DefaultRollouts_Stop + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_default_rollout') + def test_step_default_rollout_stop(self, resource_group): + self.cmd('az providerhub default-rollout stop ' + '--provider-namespace "{providerNamespace}" ' + '--rollout-name "{defaultRolloutName}"') + + + # EXAMPLE: /DefaultRollouts/delete/DefaultRollouts_Delete + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_default_rollout') + def test_step_default_rollout_delete(self, resource_group): + self.cmd('az providerhub default-rollout delete -y ' + '--provider-namespace "{providerNamespace}" ' + '--rollout-name "{defaultRolloutName}"') + + # EXAMPLE: /Operations/put/Operations_CreateOrUpdate + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_operations') + def test_step_operation_create(self, resource_group): + self.cmd('az providerhub operation create ' + '--contents "[{{\\"name\\":\\"Private.VPTest/Employees/Read\\",\\"display\\":{{\\"default\\":{{\\"description\\":\\"Rea' + 'd employees\\",\\"operation\\":\\"Gets/List employee resources\\",\\"provider\\":\\"Private.VPTest\\",' + '\\"resource\\":\\"Employees\\"}}}}}}]" --provider-namespace "{providerNamespace}"') + + # EXAMPLE: /Operations/get/Operations_ListByProviderRegistration + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_operations') + def test_step_operation_list(self, resource_group): + self.cmd('az providerhub operation list ' + '--provider-namespace "{providerNamespace}"') + + + # EXAMPLE: /Operations/delete/Operations_Delete + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_operations') + def test_step_operation_delete(self, resource_group): + self.cmd('az providerhub operation delete -y ' + '--provider-namespace "{providerNamespace}"') + + + # EXAMPLE: /ProviderRegistrations/put/ProviderRegistrations_CreateOrUpdate + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_provider_registration') + def test_step_provider_registration_create(self, resource_group): + self.cmd('az providerhub provider-registration create ' + '--token-auth-configuration authentication-scheme="PoP" signed-request-scope="ResourceUri" ' + '--service-tree-infos service-id="d1b7d8ba-05e2-48e6-90d6-d781b99c6e69" ' + 'component-id="d1b7d8ba-05e2-48e6-90d6-d781b99c6e69" ' + '--capabilities effect="Allow" quota-id="CSP_2015-05-01" ' + '--capabilities effect="Allow" quota-id="CSP_MG_2017-12-01" ' + '--manifest-owners "SPARTA-PlatformServiceAdministrator" ' + '--incident-contact-email "rpaascore@microsoft.com" ' + '--incident-routing-service "Resource Provider Service as a Service" ' + '--incident-routing-team "RPaaS" ' + '--provider-version "2.0" ' + '--provider-namespace "{providerNamespace}" ' + '--metadata {{\\"BypassManifestValidation\\":true}}') + + + # EXAMPLE: /ProviderRegistrations/get/ProviderRegistrations_Get + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_provider_registration') + def test_step_provider_registration_show(self, resource_group): + self.cmd('az providerhub provider-registration show ' + '--provider-namespace "{providerNamespace}"') + + + # EXAMPLE: /ProviderRegistrations/get/ProviderRegistrations_List + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_provider_registration') + def test_step_provider_registration_list(self, resource_group): + self.cmd('az providerhub provider-registration list') + + + # EXAMPLE: /ProviderRegistrations/post/ProviderRegistrations_GenerateOperations + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_provider_registration') + def test_step_provider_registration_generate_operation(self, resource_group): + self.cmd('az providerhub provider-registration generate-operation ' + '--provider-namespace "{providerNamespace}"') + + + # EXAMPLE: /ProviderRegistrations/delete/ProviderRegistrations_Delete + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_provider_registration') + def test_step_provider_registration_delete(self, resource_group): + with self.assertRaises(HttpResponseError): + self.cmd('az providerhub provider-registration delete -y ' + '--provider-namespace "{providerNamespace}" ') + + # EXAMPLE: /ResourceTypeRegistration/put/ResourceTypeRegistration_CreateOrUpdate + @AllowLargeResponse(size_kb=10240) + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_resource_type_registration') + def test_step_resource_type_registration_create(self, resource_group): + self.cmd('az providerhub resource-type-registration create ' + '--endpoints "[{{api-versions:[2019-01-01],locations:[WestUS]}}]" ' + '--regionality "Regional" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "extensionresourcetype"') + + # EXAMPLE: /ResourceTypeRegistrations/get/ResourceTypeRegistrations_ListByProviderRegistration + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_resource_type_registration') + def test_step_resource_type_registration_list(self, resource_group): + self.cmd('az providerhub resource-type-registration list ' + '--provider-namespace "{providerNamespace}"') + + + # EXAMPLE: /ResourceTypeRegistrations/get/ResourceTypeRegistrations_Get + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_resource_type_registration') + def test_step_resource_type_registration_show(self, resource_group): + self.cmd('az providerhub resource-type-registration show ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "extensionresourcetype"') + + # EXAMPLE: /ResourceTypeRegistrations/get/ResourceTypeRegistrations_Get + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_resource_type_registration') + def test_step_resource_type_registration_delete(self, resource_group): + self.cmd('az providerhub resource-type-registration delete -y ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "extensionresourcetype"') + + + # EXAMPLE: /ResourceTypeRegistration/put/ResourceTypeRegistration_CreateOrUpdate + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_resource_type_registration') + def test_step_nested_resource_type_registration_create(self, resource_group): + self.cmd('az providerhub resource-type-registration create ' + '--endpoints "[{{api-versions:[2019-01-01],locations:[WestUS]}}]" ' + '--regionality "Regional" ' + '--routing-type "ProxyOnly" ' + '--provider-namespace "{providerNamespace}" ' + '--enable-async-operation false ' + '--template-deployment-options {{preflight-supported:true,preflight-options:[DefaultValidationOnly,continueDeploymentOnFailure]}} ' + '--resource-type "employees/resourcetyperegistrations/{nestedResourceType}"', checks=[ + self.check("name", "employees/NestedResourceType", case_sensitive=False), + self.check("properties.routingType", "ProxyOnly", case_sensitive=False), + self.check("properties.regionality", "Regional", case_sensitive=False) + ]) + + + # EXAMPLE: /ResourceTypeRegistration/put/ResourceTypeRegistration_CreateOrUpdate + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_resource_type_registration') + def test_step_nested_resource_type_registration_extensions_create(self, resource_group): + self.cmd('az providerhub resource-type-registration create ' + '--endpoints "[{{\\"api-versions\\":[\\"2019-01-01\\"],\\"locations\\":[\\"WestUS\\"],\\"extensions\\":[{{\\"endpointUri\\":\\"https://contoso-test-extension-endpoint.com\\",\\"extensionCategories\\":[\\"ResourceReadValidate\\",\\"ResourceDeletionValidate\\"]}}]}}]" ' + '--regionality "Regional" ' + '--routing-type "ProxyOnly" ' + '--provider-namespace "{providerNamespace}" ' + '--enable-async-operation false ' + '--template-deployment-options {{preflight-supported:true,preflight-options:[DefaultValidationOnly,continueDeploymentOnFailure]}} ' + '--resource-type "employees/resourcetyperegistrations/{nestedResourceType}"', + checks = [ + self.check("name", "employees/NestedResourceType", case_sensitive=False), + self.check("properties.routingType", "ProxyOnly", case_sensitive=False), + self.check("properties.regionality", "Regional", case_sensitive=False) + ]) + + + # EXAMPLE: /ResourceTypeRegistration/delete/ResourceTypeRegistration_Delete + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_resource_type_registration') + def test_step_nested_resource_type_registration_delete(self, resource_group): + self.cmd('az providerhub resource-type-registration delete -y ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}/resourcetyperegistrations/{nestedResourceType}"') + + + # EXAMPLE: /ResourceTypeRegistrations/get/ResourceTypeRegistrations_Get + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_resource_type_registration') + def test_step_nested_resource_type_registration_show(self, resource_group): + self.cmd('az providerhub resource-type-registration show ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}/resourcetyperegistrations/nestedResourceTypeFirst"') + + + # EXAMPLE: /NotificationRegistrations/put/NotificationRegistrations_CreateOrUpdate + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_notification') + def test_step_notification_registration_create(self, resource_group): + self.cmd('az providerhub notification-registration create ' + '--name "{notificationRegistration}" ' + '--included-events "*/write" "Microsoft.Contoso/employees/delete" ' + '--message-scope "RegisteredSubscriptions" ' + '--notification-endpoints "[{{notification-destination:/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications,locations:[EastUS]}}]" ' + '--notification-mode "EventHub" ' + '--provider-namespace "{providerNamespace}"', + checks = [ + self.check("name", "{notificationRegistration}", case_sensitive=False), + self.check("properties.messageScope", "RegisteredSubscriptions", case_sensitive=False), + self.check("properties.notificationMode", "EventHub", case_sensitive=False) + ]) + + + # EXAMPLE: /NotificationRegistrations/get/NotificationRegistrations_Get + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_notification') + def test_step_notification_registration_show(self, resource_group): + self.cmd('az providerhub notification-registration show ' + '--name "{notificationRegistration}" ' + '--provider-namespace "{providerNamespace}"', + checks = [ + self.check("name", "{notificationRegistration}", case_sensitive=False), + self.check("properties.messageScope", "RegisteredSubscriptions", case_sensitive=False), + self.check("properties.notificationMode", "EventHub", case_sensitive=False), + ]) + + + # EXAMPLE: /NotificationRegistrations/get/NotificationRegistrations_ListByProviderRegistration + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_notification') + def test_step_notification_registration_list(self, resource_group): + self.cmd('az providerhub notification-registration list ' + '--provider-namespace "{providerNamespace}"', + checks = [ + self.check('length(@)', 1), + ]) + + + # EXAMPLE: /NotificationRegistrations/delete/NotificationRegistrations_Delete + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_notification') + def test_step_notification_registration_delete(self, resource_group): + self.cmd('az providerhub notification-registration delete -y ' + '--name "{notificationRegistration}" ' + '--provider-namespace "{providerNamespace}"') + + # EXAMPLE: /Skus/put/Skus_CreateOrUpdate + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_create(self, resource_group): + self.cmd('az providerhub sku create ' + '--sku-settings "[{{\\"name\\":\\"freeSku\\"}}]" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}" ' + '--sku "{skuName}"') + + + # EXAMPLE: /Skus/put/Skus_CreateOrUpdateNestedResourceTypeFirst + @AllowLargeResponse() + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_create2(self, resource_group): + self.cmd('az providerhub sku nested-resource-type-first create ' + '--nested-resource-type-first "nestedResourceTypeFirst" ' + '--sku-settings "[{{\\"name\\":\\"freeSku\\",\\"kind\\":\\"Standard\\",\\"tier\\":\\"Tier1\\"}},{{\\"name' + '\\":\\"premiumSku\\",\\"costs\\":[{{\\"meterId\\":\\"xxx\\"}}],\\"kind\\":\\"Premium\\",\\"tier\\":\\"Tie' + 'r2\\"}}]" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}" ' + '--sku "{skuName}"') + + + # EXAMPLE: /Skus/put/Skus_CreateOrUpdateNestedResourceTypeSecond + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_create3(self, resource_group): + self.cmd('az providerhub sku nested-resource-type-second create ' + '--nested-resource-type-first "nestedResourceTypeFirst" ' + '--nested-resource-type-second "nestedResourceTypeSecond" ' + '--sku-settings "[{{\\"name\\":\\"freeSku\\",\\"kind\\":\\"Standard\\",\\"tier\\":\\"Tier1\\"}},{{\\"name' + '\\":\\"premiumSku\\",\\"costs\\":[{{\\"meterId\\":\\"xxx\\"}}],\\"kind\\":\\"Premium\\",\\"tier\\":\\"Tie' + 'r2\\"}}]" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}" ' + '--sku "{skuName}"') + + + # EXAMPLE: /Skus/put/Skus_CreateOrUpdateNestedResourceTypeThird + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_create4(self, resource_group): + self.cmd('az providerhub sku nested-resource-type-third create ' + '--nested-resource-type-first "nestedResourceTypeFirst" ' + '--nested-resource-type-second "nestedResourceTypeSecond" ' + '--nested-resource-type-third "nestedResourceTypeThird" ' + '--sku-settings "[{{\\"name\\":\\"freeSku\\",\\"kind\\":\\"Standard\\",\\"tier\\":\\"Tier1\\"}},{{\\"name' + '\\":\\"premiumSku\\",\\"costs\\":[{{\\"meterId\\":\\"xxx\\"}}],\\"kind\\":\\"Premium\\",\\"tier\\":\\"Tie' + 'r2\\"}}]" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}" ' + '--sku "{skuName}"') + + + # EXAMPLE: /Skus/get/Skus_Get + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_show(self, resource_group): + self.cmd('az providerhub sku show ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}" ' + '--sku "{skuName}"') + + + # EXAMPLE: /Skus/get/Skus_GetNestedResourceTypeFirst + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_show_nested_resource_type_first(self, resource_group): + self.cmd('az providerhub sku nested-resource-type-first show ' + '--nested-resource-type-first "nestedResourceTypeFirst" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}" ' + '--sku "{skuName}"') + + + # EXAMPLE: /Skus/get/Skus_GetNestedResourceTypeSecond + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_show_nested_resource_type_second(self, resource_group): + self.cmd('az providerhub sku nested-resource-type-second show ' + '--nested-resource-type-first "nestedResourceTypeFirst" ' + '--nested-resource-type-second "nestedResourceTypeSecond" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}" ' + '--sku "{skuName}"') + + + # EXAMPLE: /Skus/get/Skus_GetNestedResourceTypeThird + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_show_nested_resource_type_third(self, resource_group): + self.cmd('az providerhub sku nested-resource-type-third show ' + '--nested-resource-type-first "nestedResourceTypeFirst" ' + '--nested-resource-type-second "nestedResourceTypeSecond" ' + '--nested-resource-type-third "nestedResourceTypeThird" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}" ' + '--sku "{skuName}"') + + + # EXAMPLE: /Skus/get/Skus_ListByResourceTypeRegistrations + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_list(self, resource_group): + self.cmd('az providerhub sku list ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}"') + + + # EXAMPLE: /Skus/get/Skus_ListByResourceTypeRegistrationsNestedResourceTypeFirst + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_list2(self, resource_group): + self.cmd('az providerhub sku nested-resource-type-first list ' + '--nested-resource-type-first "nestedResourceTypeFirst" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}"') + + + # EXAMPLE: /Skus/get/Skus_ListByResourceTypeRegistrationsNestedResourceTypeSecond + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_list3(self, resource_group): + self.cmd('az providerhub sku nested-resource-type-second list ' + '--nested-resource-type-first "nestedResourceTypeFirst" ' + '--nested-resource-type-second "nestedResourceTypeSecond" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}"') + + + # EXAMPLE: /Skus/get/Skus_ListByResourceTypeRegistrationsNestedResourceTypeThird + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_list4(self, resource_group): + self.cmd('az providerhub sku nested-resource-type-third list ' + '--nested-resource-type-first "nestedResourceTypeFirst" ' + '--nested-resource-type-second "nestedResourceTypeSecond" ' + '--nested-resource-type-third "nestedResourceTypeThird" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}"') + + + # EXAMPLE: /Skus/delete/Skus_Delete + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_delete(self, resource_group): + self.cmd('az providerhub sku delete -y ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}" ' + '--sku "{skuName}"') + + + # EXAMPLE: /Skus/delete/Skus_DeleteNestedResourceTypeFirst + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_delete2(self, resource_group): + self.cmd('az providerhub sku nested-resource-type-first delete -y ' + '--nested-resource-type-first "nestedResourceTypeFirst" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}" ' + '--sku "{skuName}"') + + + # EXAMPLE: /Skus/delete/Skus_DeleteNestedResourceTypeSecond + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_delete3(self, resource_group): + self.cmd('az providerhub sku nested-resource-type-second delete -y ' + '--nested-resource-type-first "nestedResourceTypeFirst" ' + '--nested-resource-type-second "nestedResourceTypeSecond" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}" ' + '--sku "{skuName}"') + + + # EXAMPLE: /Skus/delete/Skus_DeleteNestedResourceTypeThird + @ResourceGroupPreparer(name_prefix='cli_test_azure_providerhub_sku') + def test_step_sku_delete4(self, resource_group): + self.cmd('az providerhub sku nested-resource-type-third delete -y ' + '--nested-resource-type-first "nestedResourceTypeFirst" ' + '--nested-resource-type-second "nestedResourceTypeSecond" ' + '--nested-resource-type-third "nestedResourceTypeThird" ' + '--provider-namespace "{providerNamespace}" ' + '--resource-type "{resourceType}" ' + '--sku "{skuName}"') \ No newline at end of file diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/__init__.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/__init__.py deleted file mode 100644 index 74c6428c597..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._provider_hub import ProviderHub -__all__ = ['ProviderHub'] - -try: - from ._patch import patch_sdk # type: ignore - patch_sdk() -except ImportError: - pass diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/_configuration.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/_configuration.py deleted file mode 100644 index 34bef1e29bf..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/_configuration.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import TYPE_CHECKING - -from azure.core.configuration import Configuration -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any - - from azure.core.credentials import TokenCredential - -VERSION = "unknown" - -class ProviderHubConfiguration(Configuration): - """Configuration for ProviderHub. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - """ - - def __init__( - self, - credential, # type: "TokenCredential" - subscription_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - super(ProviderHubConfiguration, self).__init__(**kwargs) - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = "2020-11-20" - self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) - kwargs.setdefault('sdk_moniker', 'providerhub/{}'.format(VERSION)) - self._configure(**kwargs) - - def _configure( - self, - **kwargs # type: Any - ): - # type: (...) -> None - self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) - self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) - self.authentication_policy = kwargs.get('authentication_policy') - if self.credential and not self.authentication_policy: - self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/_provider_hub.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/_provider_hub.py deleted file mode 100644 index fa00f71e01f..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/_provider_hub.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import TYPE_CHECKING - -from azure.mgmt.core import ARMPipelineClient -from msrest import Deserializer, Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional - - from azure.core.credentials import TokenCredential - -from ._configuration import ProviderHubConfiguration -from .operations import CustomRolloutsOperations -from .operations import DefaultRolloutsOperations -from .operations import ProviderHubOperationsMixin -from .operations import NotificationRegistrationsOperations -from .operations import Operations -from .operations import ProviderRegistrationsOperations -from .operations import ResourceTypeRegistrationsOperations -from .operations import ResourceTypeRegistrationOperations -from .operations import SkusOperations -from . import models - - -class ProviderHub(ProviderHubOperationsMixin): - """Microsoft ProviderHub. - - :ivar custom_rollouts: CustomRolloutsOperations operations - :vartype custom_rollouts: provider_hub.operations.CustomRolloutsOperations - :ivar default_rollouts: DefaultRolloutsOperations operations - :vartype default_rollouts: provider_hub.operations.DefaultRolloutsOperations - :ivar providerhub_operations: ProviderHubOperationsMixin operations - :vartype providerhub_operations: provider_hub.operations.ProviderHubOperationsMixin - :ivar notification_registrations: NotificationRegistrationsOperations operations - :vartype notification_registrations: provider_hub.operations.NotificationRegistrationsOperations - :ivar operations: Operations operations - :vartype operations: provider_hub.operations.Operations - :ivar provider_registrations: ProviderRegistrationsOperations operations - :vartype provider_registrations: provider_hub.operations.ProviderRegistrationsOperations - :ivar resource_type_registrations: ResourceTypeRegistrationsOperations operations - :vartype resource_type_registrations: provider_hub.operations.ResourceTypeRegistrationsOperations - :ivar resource_type_registration: ResourceTypeRegistrationOperations operations - :vartype resource_type_registration: provider_hub.operations.ResourceTypeRegistrationOperations - :ivar skus: SkusOperations operations - :vartype skus: provider_hub.operations.SkusOperations - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - """ - - def __init__( - self, - credential, # type: "TokenCredential" - subscription_id, # type: str - base_url=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> None - if not base_url: - base_url = 'https://management.azure.com' - self._config = ProviderHubConfiguration(credential, subscription_id, **kwargs) - self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.providerhub_operations = ProviderHubOperationsMixin( - self._client, self._config, self._serialize, self._deserialize) - self.custom_rollouts = CustomRolloutsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.default_rollouts = DefaultRolloutsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.notification_registrations = NotificationRegistrationsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize) - self.provider_registrations = ProviderRegistrationsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.resource_type_registrations = ResourceTypeRegistrationsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.resource_type_registration = ResourceTypeRegistrationOperations( - self._client, self._config, self._serialize, self._deserialize) - self.skus = SkusOperations( - self._client, self._config, self._serialize, self._deserialize) - - def close(self): - # type: () -> None - self._client.close() - - def __enter__(self): - # type: () -> ProviderHub - self._client.__enter__() - return self - - def __exit__(self, *exc_details): - # type: (Any) -> None - self._client.__exit__(*exc_details) diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/_providerhub.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/_providerhub.py deleted file mode 100644 index 5e14e68b960..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/_providerhub.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import TYPE_CHECKING - -from azure.mgmt.core import ARMPipelineClient -from msrest import Deserializer, Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional - - from azure.core.credentials import TokenCredential - -from ._configuration import ProviderhubConfiguration -from .operations import CustomRolloutsOperations -from .operations import DefaultRolloutsOperations -from .operations import ProviderhubOperationsMixin -from .operations import Operations -from .operations import ProviderRegistrationsOperations -from .operations import ResourceTypeRegistrationsOperations -from .operations import ResourceTypeRegistrationOperations -from . import models - - -class Providerhub(): - """Microsoft Provider Hub. - - :ivar providerhub_operations: ProviderhubOperations operations - :vartype providerhub_operations: providerhub.operations.ProviderhubOperations - :ivar custom_rollouts: CustomRolloutsOperations operations - :vartype custom_rollouts: providerhub.operations.CustomRolloutsOperations - :ivar default_rollouts: DefaultRolloutsOperations operations - :vartype default_rollouts: providerhub.operations.DefaultRolloutsOperations - :ivar operations: Operations operations - :vartype operations: providerhub.operations.Operations - :ivar provider_registrations: ProviderRegistrationsOperations operations - :vartype provider_registrations: providerhub.operations.ProviderRegistrationsOperations - :ivar resource_type_registrations: ResourceTypeRegistrationsOperations operations - :vartype resource_type_registrations: providerhub.operations.ResourceTypeRegistrationsOperations - :ivar resource_type_registration: ResourceTypeRegistrationOperations operations - :vartype resource_type_registration: providerhub.operations.ResourceTypeRegistrationOperations - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - """ - - def __init__( - self, - credential, # type: "TokenCredential" - subscription_id, # type: str - base_url=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> None - if not base_url: - base_url = 'https://management.azure.com' - self._config = ProviderhubConfiguration(credential, subscription_id, **kwargs) - self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False - self._deserialize = Deserializer(client_models) - - self.providerhub_operations = ProviderhubOperationsMixin( - self._client, self._config, self._serialize, self._deserialize) - self.custom_rollouts = CustomRolloutsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.default_rollouts = DefaultRolloutsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize) - self.provider_registrations = ProviderRegistrationsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.resource_type_registrations = ResourceTypeRegistrationsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.resource_type_registration = ResourceTypeRegistrationOperations( - self._client, self._config, self._serialize, self._deserialize) - - def close(self): - # type: () -> None - self._client.close() - - def __enter__(self): - # type: () -> Providerhub - self._client.__enter__() - return self - - def __exit__(self, *exc_details): - # type: (Any) -> None - self._client.__exit__(*exc_details) diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/_configuration.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/_configuration.py deleted file mode 100644 index aa58874fb3f..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.configuration import Configuration -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - -VERSION = "unknown" - -class ProviderHubConfiguration(Configuration): - """Configuration for ProviderHub. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - **kwargs: Any - ) -> None: - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - super(ProviderHubConfiguration, self).__init__(**kwargs) - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = "2020-11-20" - self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) - kwargs.setdefault('sdk_moniker', 'providerhub/{}'.format(VERSION)) - self._configure(**kwargs) - - def _configure( - self, - **kwargs: Any - ) -> None: - self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) - self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) - self.authentication_policy = kwargs.get('authentication_policy') - if self.credential and not self.authentication_policy: - self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/_provider_hub.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/_provider_hub.py deleted file mode 100644 index fa8fb81bb5d..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/_provider_hub.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, Optional, TYPE_CHECKING - -from azure.mgmt.core import AsyncARMPipelineClient -from msrest import Deserializer, Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - -from ._configuration import ProviderHubConfiguration -from .operations import CustomRolloutsOperations -from .operations import DefaultRolloutsOperations -from .operations import ProviderHubOperationsMixin -from .operations import NotificationRegistrationsOperations -from .operations import Operations -from .operations import ProviderRegistrationsOperations -from .operations import ResourceTypeRegistrationsOperations -from .operations import ResourceTypeRegistrationOperations -from .operations import SkusOperations -from .. import models - - -class ProviderHub(ProviderHubOperationsMixin): - """Microsoft ProviderHub. - - :ivar custom_rollouts: CustomRolloutsOperations operations - :vartype custom_rollouts: provider_hub.aio.operations.CustomRolloutsOperations - :ivar default_rollouts: DefaultRolloutsOperations operations - :vartype default_rollouts: provider_hub.aio.operations.DefaultRolloutsOperations - :ivar notification_registrations: NotificationRegistrationsOperations operations - :vartype notification_registrations: provider_hub.aio.operations.NotificationRegistrationsOperations - :ivar operations: Operations operations - :vartype operations: provider_hub.aio.operations.Operations - :ivar provider_registrations: ProviderRegistrationsOperations operations - :vartype provider_registrations: provider_hub.aio.operations.ProviderRegistrationsOperations - :ivar resource_type_registrations: ResourceTypeRegistrationsOperations operations - :vartype resource_type_registrations: provider_hub.aio.operations.ResourceTypeRegistrationsOperations - :ivar resource_type_registration: ResourceTypeRegistrationOperations operations - :vartype resource_type_registration: provider_hub.aio.operations.ResourceTypeRegistrationOperations - :ivar skus: SkusOperations operations - :vartype skus: provider_hub.aio.operations.SkusOperations - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: Optional[str] = None, - **kwargs: Any - ) -> None: - if not base_url: - base_url = 'https://management.azure.com' - self._config = ProviderHubConfiguration(credential, subscription_id, **kwargs) - self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.custom_rollouts = CustomRolloutsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.default_rollouts = DefaultRolloutsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.notification_registrations = NotificationRegistrationsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize) - self.provider_registrations = ProviderRegistrationsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.resource_type_registrations = ResourceTypeRegistrationsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.resource_type_registration = ResourceTypeRegistrationOperations( - self._client, self._config, self._serialize, self._deserialize) - self.skus = SkusOperations( - self._client, self._config, self._serialize, self._deserialize) - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "ProviderHub": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/_providerhub.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/_providerhub.py deleted file mode 100644 index 181d2ea2c1f..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/_providerhub.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, Optional, TYPE_CHECKING - -from azure.mgmt.core import AsyncARMPipelineClient -from msrest import Deserializer, Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - -from ._configuration import ProviderhubConfiguration -from .operations import CustomRolloutsOperations -from .operations import DefaultRolloutsOperations -from .operations import ProviderhubOperationsMixin -from .operations import NotificationRegistrationsOperations -from .operations import Operations -from .operations import ProviderRegistrationsOperations -from .operations import ResourceTypeRegistrationsOperations -from .operations import ResourceTypeRegistrationOperations -from .operations import SkusOperations -from .. import models - - -class Providerhub(ProviderhubOperationsMixin): - """Microsoft Provider Hub. - - :ivar custom_rollouts: CustomRolloutsOperations operations - :vartype custom_rollouts: providerhub.aio.operations.CustomRolloutsOperations - :ivar default_rollouts: DefaultRolloutsOperations operations - :vartype default_rollouts: providerhub.aio.operations.DefaultRolloutsOperations - :ivar notification_registrations: NotificationRegistrationsOperations operations - :vartype notification_registrations: providerhub.aio.operations.NotificationRegistrationsOperations - :ivar operations: Operations operations - :vartype operations: providerhub.aio.operations.Operations - :ivar provider_registrations: ProviderRegistrationsOperations operations - :vartype provider_registrations: providerhub.aio.operations.ProviderRegistrationsOperations - :ivar resource_type_registrations: ResourceTypeRegistrationsOperations operations - :vartype resource_type_registrations: providerhub.aio.operations.ResourceTypeRegistrationsOperations - :ivar resource_type_registration: ResourceTypeRegistrationOperations operations - :vartype resource_type_registration: providerhub.aio.operations.ResourceTypeRegistrationOperations - :ivar skus: SkusOperations operations - :vartype skus: providerhub.aio.operations.SkusOperations - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: Optional[str] = None, - **kwargs: Any - ) -> None: - if not base_url: - base_url = 'https://management.azure.com' - self._config = ProviderhubConfiguration(credential, subscription_id, **kwargs) - self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False - self._deserialize = Deserializer(client_models) - - self.custom_rollouts = CustomRolloutsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.default_rollouts = DefaultRolloutsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.notification_registrations = NotificationRegistrationsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize) - self.provider_registrations = ProviderRegistrationsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.resource_type_registrations = ResourceTypeRegistrationsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.resource_type_registration = ResourceTypeRegistrationOperations( - self._client, self._config, self._serialize, self._deserialize) - self.skus = SkusOperations( - self._client, self._config, self._serialize, self._deserialize) - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "Providerhub": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/__init__.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/__init__.py deleted file mode 100644 index cf67c5ce099..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._custom_rollouts_operations import CustomRolloutsOperations -from ._default_rollouts_operations import DefaultRolloutsOperations -from ._provider_hub_operations import ProviderHubOperationsMixin -from ._notification_registrations_operations import NotificationRegistrationsOperations -from ._operations import Operations -from ._provider_registrations_operations import ProviderRegistrationsOperations -from ._resource_type_registrations_operations import ResourceTypeRegistrationsOperations -from ._resource_type_registration_operations import ResourceTypeRegistrationOperations -from ._skus_operations import SkusOperations - -__all__ = [ - 'CustomRolloutsOperations', - 'DefaultRolloutsOperations', - 'ProviderHubOperationsMixin', - 'NotificationRegistrationsOperations', - 'Operations', - 'ProviderRegistrationsOperations', - 'ResourceTypeRegistrationsOperations', - 'ResourceTypeRegistrationOperations', - 'SkusOperations', -] diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_custom_rollouts_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_custom_rollouts_operations.py deleted file mode 100644 index 49780a1a2b7..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_custom_rollouts_operations.py +++ /dev/null @@ -1,239 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class CustomRolloutsOperations: - """CustomRolloutsOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - async def get( - self, - provider_namespace: str, - rollout_name: str, - **kwargs - ) -> "models.CustomRollout": - """Gets the custom rollout details. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param rollout_name: The rollout name. - :type rollout_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: CustomRollout, or the result of cls(response) - :rtype: ~provider_hub.models.CustomRollout - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CustomRollout"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('CustomRollout', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}'} # type: ignore - - async def create_or_update( - self, - provider_namespace: str, - rollout_name: str, - properties: "models.CustomRollout", - **kwargs - ) -> "models.CustomRollout": - """Creates or updates the rollout details. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param rollout_name: The rollout name. - :type rollout_name: str - :param properties: The custom rollout properties supplied to the CreateOrUpdate operation. - :type properties: ~provider_hub.models.CustomRollout - :keyword callable cls: A custom type or function that will be passed the direct response - :return: CustomRollout, or the result of cls(response) - :rtype: ~provider_hub.models.CustomRollout - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CustomRollout"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'CustomRollout') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('CustomRollout', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}'} # type: ignore - - def list_by_provider_registration( - self, - provider_namespace: str, - **kwargs - ) -> AsyncIterable["models.CustomRolloutArrayResponseWithContinuation"]: - """Gets the list of the custom rollouts for the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either CustomRolloutArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~provider_hub.models.CustomRolloutArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CustomRolloutArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_provider_registration.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('CustomRolloutArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_provider_registration.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_default_rollouts_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_default_rollouts_operations.py deleted file mode 100644 index 99b79746763..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_default_rollouts_operations.py +++ /dev/null @@ -1,415 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class DefaultRolloutsOperations: - """DefaultRolloutsOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - async def get( - self, - provider_namespace: str, - rollout_name: str, - **kwargs - ) -> "models.DefaultRollout": - """Gets the default rollout details. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param rollout_name: The rollout name. - :type rollout_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DefaultRollout, or the result of cls(response) - :rtype: ~provider_hub.models.DefaultRollout - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.DefaultRollout"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('DefaultRollout', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}'} # type: ignore - - async def delete( - self, - provider_namespace: str, - rollout_name: str, - **kwargs - ) -> None: - """Deletes the rollout resource. Rollout must be in terminal state. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param rollout_name: The rollout name. - :type rollout_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}'} # type: ignore - - async def _create_or_update_initial( - self, - provider_namespace: str, - rollout_name: str, - properties: "models.DefaultRollout", - **kwargs - ) -> "models.DefaultRollout": - cls = kwargs.pop('cls', None) # type: ClsType["models.DefaultRollout"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'DefaultRollout') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize('DefaultRollout', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('DefaultRollout', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}'} # type: ignore - - async def begin_create_or_update( - self, - provider_namespace: str, - rollout_name: str, - properties: "models.DefaultRollout", - **kwargs - ) -> AsyncLROPoller["models.DefaultRollout"]: - """Creates or updates the rollout details. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param rollout_name: The rollout name. - :type rollout_name: str - :param properties: The Default rollout properties supplied to the CreateOrUpdate operation. - :type properties: ~provider_hub.models.DefaultRollout - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncLROPoller that returns either DefaultRollout or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~provider_hub.models.DefaultRollout] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.DefaultRollout"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = await self._create_or_update_initial( - provider_namespace=provider_namespace, - rollout_name=rollout_name, - properties=properties, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('DefaultRollout', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() - else: polling_method = polling - if cont_token: - return AsyncLROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}'} # type: ignore - - def list_by_provider_registration( - self, - provider_namespace: str, - **kwargs - ) -> AsyncIterable["models.DefaultRolloutArrayResponseWithContinuation"]: - """Gets the list of the rollouts for the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either DefaultRolloutArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~provider_hub.models.DefaultRolloutArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.DefaultRolloutArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_provider_registration.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('DefaultRolloutArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_provider_registration.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts'} # type: ignore - - async def stop( - self, - provider_namespace: str, - rollout_name: str, - **kwargs - ) -> None: - """Stops or cancels the rollout, if in progress. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param rollout_name: The rollout name. - :type rollout_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.stop.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.post(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - stop.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}/stop'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_notification_registrations_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_notification_registrations_operations.py deleted file mode 100644 index 1bdd2e1ca8d..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_notification_registrations_operations.py +++ /dev/null @@ -1,296 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class NotificationRegistrationsOperations: - """NotificationRegistrationsOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - async def get( - self, - provider_namespace: str, - notification_registration_name: str, - **kwargs - ) -> "models.NotificationRegistration": - """Gets the notification registration details. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param notification_registration_name: The notification registration. - :type notification_registration_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: NotificationRegistration, or the result of cls(response) - :rtype: ~provider_hub.models.NotificationRegistration - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.NotificationRegistration"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'notificationRegistrationName': self._serialize.url("notification_registration_name", notification_registration_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('NotificationRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}'} # type: ignore - - async def create_or_update( - self, - provider_namespace: str, - notification_registration_name: str, - properties: "models.NotificationRegistration", - **kwargs - ) -> "models.NotificationRegistration": - """Creates or updates a notification registration. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param notification_registration_name: The notification registration. - :type notification_registration_name: str - :param properties: The required body parameters supplied to the notification registration - operation. - :type properties: ~provider_hub.models.NotificationRegistration - :keyword callable cls: A custom type or function that will be passed the direct response - :return: NotificationRegistration, or the result of cls(response) - :rtype: ~provider_hub.models.NotificationRegistration - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.NotificationRegistration"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'notificationRegistrationName': self._serialize.url("notification_registration_name", notification_registration_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'NotificationRegistration') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('NotificationRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}'} # type: ignore - - async def delete( - self, - provider_namespace: str, - notification_registration_name: str, - **kwargs - ) -> None: - """Deletes a notification registration. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param notification_registration_name: The notification registration. - :type notification_registration_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'notificationRegistrationName': self._serialize.url("notification_registration_name", notification_registration_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}'} # type: ignore - - def list_by_provider_registration( - self, - provider_namespace: str, - **kwargs - ) -> AsyncIterable["models.NotificationRegistrationArrayResponseWithContinuation"]: - """Gets the list of the notification registrations for the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either NotificationRegistrationArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~provider_hub.models.NotificationRegistrationArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.NotificationRegistrationArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_provider_registration.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('NotificationRegistrationArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_provider_registration.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_operations.py deleted file mode 100644 index e89033014b2..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_operations.py +++ /dev/null @@ -1,274 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Generic, List, Optional, TypeVar -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class Operations: - """Operations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def list( - self, - **kwargs - ) -> AsyncIterable["models.OperationsDefinitionArrayResponseWithContinuation"]: - """Lists all the operations supported by Microsoft.ProviderHub. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either OperationsDefinitionArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~provider_hub.models.OperationsDefinitionArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationsDefinitionArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('OperationsDefinitionArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/providers/Microsoft.ProviderHub/operations'} # type: ignore - - async def list_by_provider_registration( - self, - provider_namespace: str, - **kwargs - ) -> List["models.OperationsDefinition"]: - """Gets the operations supported by the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of OperationsDefinition, or the result of cls(response) - :rtype: list[~provider_hub.models.OperationsDefinition] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[List["models.OperationsDefinition"]] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.list_by_provider_registration.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('[OperationsDefinition]', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - list_by_provider_registration.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default'} # type: ignore - - async def create_or_update( - self, - provider_namespace: str, - operations_put_content: "models.OperationsPutContent", - **kwargs - ) -> "models.OperationsContent": - """Creates or updates the operation supported by the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param operations_put_content: The operations content properties supplied to the CreateOrUpdate - operation. - :type operations_put_content: ~provider_hub.models.OperationsPutContent - :keyword callable cls: A custom type or function that will be passed the direct response - :return: OperationsContent, or the result of cls(response) - :rtype: ~provider_hub.models.OperationsContent - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationsContent"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(operations_put_content, 'OperationsPutContent') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('OperationsContent', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default'} # type: ignore - - async def delete( - self, - provider_namespace: str, - **kwargs - ) -> None: - """Deletes an operation. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_provider_hub_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_provider_hub_operations.py deleted file mode 100644 index 8ef8add2d62..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_provider_hub_operations.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class ProviderHubOperationsMixin: - - async def generate_manifest( - self, - provider_namespace: str, - **kwargs - ) -> "models.ResourceProviderManifest": - """Generates the manifest for the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ResourceProviderManifest, or the result of cls(response) - :rtype: ~provider_hub.models.ResourceProviderManifest - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ResourceProviderManifest"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.generate_manifest.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.post(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('ResourceProviderManifest', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - generate_manifest.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/generateManifest'} # type: ignore - - async def checkin_manifest( - self, - provider_namespace: str, - checkin_manifest_params: "models.CheckinManifestParams", - **kwargs - ) -> "models.CheckinManifestInfo": - """Checkin the manifest. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param checkin_manifest_params: The required body parameters supplied to the checkin manifest - operation. - :type checkin_manifest_params: ~provider_hub.models.CheckinManifestParams - :keyword callable cls: A custom type or function that will be passed the direct response - :return: CheckinManifestInfo, or the result of cls(response) - :rtype: ~provider_hub.models.CheckinManifestInfo - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckinManifestInfo"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.checkin_manifest.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(checkin_manifest_params, 'CheckinManifestParams') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('CheckinManifestInfo', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - checkin_manifest.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/checkinManifest'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_provider_registrations_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_provider_registrations_operations.py deleted file mode 100644 index cccdad50cb0..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_provider_registrations_operations.py +++ /dev/null @@ -1,394 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Generic, List, Optional, TypeVar, Union -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class ProviderRegistrationsOperations: - """ProviderRegistrationsOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - async def get( - self, - provider_namespace: str, - **kwargs - ) -> "models.ProviderRegistration": - """Gets the provider registration details. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ProviderRegistration, or the result of cls(response) - :rtype: ~provider_hub.models.ProviderRegistration - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderRegistration"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('ProviderRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}'} # type: ignore - - async def _create_or_update_initial( - self, - provider_namespace: str, - properties: "models.ProviderRegistration", - **kwargs - ) -> Optional["models.ProviderRegistration"]: - cls = kwargs.pop('cls', None) # type: ClsType[Optional["models.ProviderRegistration"]] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'ProviderRegistration') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ProviderRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}'} # type: ignore - - async def begin_create_or_update( - self, - provider_namespace: str, - properties: "models.ProviderRegistration", - **kwargs - ) -> AsyncLROPoller["models.ProviderRegistration"]: - """Creates or updates the provider registration. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param properties: The provider registration properties supplied to the CreateOrUpdate - operation. - :type properties: ~provider_hub.models.ProviderRegistration - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncLROPoller that returns either ProviderRegistration or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~provider_hub.models.ProviderRegistration] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderRegistration"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = await self._create_or_update_initial( - provider_namespace=provider_namespace, - properties=properties, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('ProviderRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() - else: polling_method = polling - if cont_token: - return AsyncLROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}'} # type: ignore - - async def delete( - self, - provider_namespace: str, - **kwargs - ) -> None: - """Deletes a provider registration. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}'} # type: ignore - - def list( - self, - **kwargs - ) -> AsyncIterable["models.ProviderRegistrationArrayResponseWithContinuation"]: - """Gets the list of the provider registrations in the subscription. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ProviderRegistrationArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~provider_hub.models.ProviderRegistrationArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderRegistrationArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('ProviderRegistrationArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations'} # type: ignore - - async def generate_operations( - self, - provider_namespace: str, - **kwargs - ) -> List["models.OperationsDefinition"]: - """Generates the operations api for the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of OperationsDefinition, or the result of cls(response) - :rtype: list[~provider_hub.models.OperationsDefinition] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[List["models.OperationsDefinition"]] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.generate_operations.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.post(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('[OperationsDefinition]', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - generate_operations.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/generateOperations'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_providerhub_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_providerhub_operations.py deleted file mode 100644 index dbdaaa6baa6..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_providerhub_operations.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.mgmt.core.exceptions import ARMErrorFormat -from ... import models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, - AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ProviderhubOperationsMixin: - - async def generate_manifest( - self, - provider_namespace: str, - **kwargs - ) -> "models.ResourceProviderManifest": - """Generates the manifest for the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ResourceProviderManifest, or the result of cls(response) - :rtype: ~providerhub.models.ResourceProviderManifest - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop( - 'cls', None) # type: ClsType["models.ResourceProviderManifest"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.generate_manifest.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - request = self._client.post(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize( - 'ResourceProviderManifest', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - generate_manifest.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/generateManifest'} # type: ignore - - async def checkin_manifest( - self, - provider_namespace: str, - checkin_manifest_params: "models.CheckinManifestParams", - **kwargs - ) -> "models.CheckinManifestInfo": - """Checkin the manifest. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param checkin_manifest_params: The required body parameters supplied to the checkin manifest - operation. - :type checkin_manifest_params: ~providerhub.models.CheckinManifestParams - :keyword callable cls: A custom type or function that will be passed the direct response - :return: CheckinManifestInfo, or the result of cls(response) - :rtype: ~providerhub.models.CheckinManifestInfo - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop( - 'cls', None) # type: ClsType["models.CheckinManifestInfo"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.checkin_manifest.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header( - "content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body( - checkin_manifest_params, 'CheckinManifestParams') - body_content_kwargs['content'] = body_content - request = self._client.post( - url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize( - 'CheckinManifestInfo', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - checkin_manifest.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/checkinManifest'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_resource_type_registration_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_resource_type_registration_operations.py deleted file mode 100644 index a81cc1729b0..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_resource_type_registration_operations.py +++ /dev/null @@ -1,264 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -from ... import models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, - AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ResourceTypeRegistrationOperations: - """ResourceTypeRegistrationOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~providerhub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - async def _create_or_update_initial( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type: str, - properties: "models.ResourceTypeRegistration", - **kwargs - ) -> "models.ResourceTypeRegistration": - # type: ClsType["models.ResourceTypeRegistration"] - cls = kwargs.pop('cls', None) - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceType': self._serialize.url("nested_resource_type", nested_resource_type, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header( - "content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body( - properties, 'ResourceTypeRegistration') - body_content_kwargs['content'] = body_content - request = self._client.put( - url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize( - 'ResourceTypeRegistration', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize( - 'ResourceTypeRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}{nestedResourceTypeUrl}'} # type: ignore - - async def begin_create_or_update( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type: str, - properties: "models.ResourceTypeRegistration", - **kwargs - ) -> AsyncLROPoller["models.ResourceTypeRegistration"]: - """Creates or updates a resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type: The nested resource type. - :type nested_resource_type: str - :param properties: The resource type registration parameters supplied to the CreateOrUpdate operation. - :type properties: ~providerhub.models.ResourceTypeRegistration - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncLROPoller that returns either ResourceTypeRegistration or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~providerhub.models.ResourceTypeRegistration] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop( - 'polling', True) # type: Union[bool, AsyncPollingMethod] - # type: ClsType["models.ResourceTypeRegistration"] - cls = kwargs.pop('cls', None) - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', - None) # type: Optional[str] - if cont_token is None: - raw_result = await self._create_or_update_initial( - provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type=nested_resource_type, - properties=properties, - cls=lambda x, y, z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize( - 'ResourceTypeRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceType': self._serialize.url("nested_resource_type", nested_resource_type, 'str'), - } - - if polling is True: - polling_method = AsyncARMPolling(lro_delay, lro_options={ - 'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: - polling_method = AsyncNoPolling() - else: - polling_method = polling - if cont_token: - return AsyncLROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}{nestedResourceTypeUrl}'} # type: ignore - - async def delete( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type: str, - **kwargs - ) -> None: - """Deletes a resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type: The nested resource type. - :type nested_resource_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceType': self._serialize.url("nested_resource_type", nested_resource_type, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}{nestedResourceTypeUrl}'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_resource_type_registrations_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_resource_type_registrations_operations.py deleted file mode 100644 index 901308e2456..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_resource_type_registrations_operations.py +++ /dev/null @@ -1,375 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class ResourceTypeRegistrationsOperations: - """ResourceTypeRegistrationsOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - async def get( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type: str, - **kwargs - ) -> "models.ResourceTypeRegistration": - """Gets a resource type details in the given subscription and provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type: The nested resource type. - :type nested_resource_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ResourceTypeRegistration, or the result of cls(response) - :rtype: ~provider_hub.models.ResourceTypeRegistration - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ResourceTypeRegistration"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceType': self._serialize.url("nested_resource_type", nested_resource_type, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('ResourceTypeRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}{nestedResourceTypeUrl}'} # type: ignore - - async def _create_or_update_initial( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type: str, - properties: "models.ResourceTypeRegistration", - **kwargs - ) -> "models.ResourceTypeRegistration": - cls = kwargs.pop('cls', None) # type: ClsType["models.ResourceTypeRegistration"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceType': self._serialize.url("nested_resource_type", nested_resource_type, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'ResourceTypeRegistration') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize('ResourceTypeRegistration', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('ResourceTypeRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}{nestedResourceTypeUrl}'} # type: ignore - - async def begin_create_or_update( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type: str, - properties: "models.ResourceTypeRegistration", - **kwargs - ) -> AsyncLROPoller["models.ResourceTypeRegistration"]: - """Creates or updates a resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type: The nested resource type. - :type nested_resource_type: str - :param properties: The required request body parameters supplied to the resource type - registration CreateOrUpdate operation. - :type properties: ~provider_hub.models.ResourceTypeRegistration - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncLROPoller that returns either ResourceTypeRegistration or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~provider_hub.models.ResourceTypeRegistration] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.ResourceTypeRegistration"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = await self._create_or_update_initial( - provider_namespace=provider_namespace, - resource_type=resource_type, - nested_resource_type=nested_resource_type, - properties=properties, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('ResourceTypeRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceType': self._serialize.url("nested_resource_type", nested_resource_type, 'str'), - } - - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() - else: polling_method = polling - if cont_token: - return AsyncLROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}{nestedResourceTypeUrl}'} # type: ignore - - async def delete( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type: str, - **kwargs - ) -> None: - """Deletes a resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type: The nested resource type. - :type nested_resource_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceType': self._serialize.url("nested_resource_type", nested_resource_type, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}{nestedResourceTypeUrl}'} # type: ignore - - def list_by_provider_registration( - self, - provider_namespace: str, - **kwargs - ) -> AsyncIterable["models.ResourceTypeRegistrationArrayResponseWithContinuation"]: - """Gets the list of the resource types for the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ResourceTypeRegistrationArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~provider_hub.models.ResourceTypeRegistrationArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ResourceTypeRegistrationArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_provider_registration.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('ResourceTypeRegistrationArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_provider_registration.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_skus_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_skus_operations.py deleted file mode 100644 index c7e21bb3654..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/aio/operations/_skus_operations.py +++ /dev/null @@ -1,1214 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class SkusOperations: - """SkusOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - async def get( - self, - provider_namespace: str, - resource_type: str, - sku: str, - **kwargs - ) -> "models.SkuResource": - """Gets the sku details for the given resource type and sku name. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}'} # type: ignore - - async def create_or_update( - self, - provider_namespace: str, - resource_type: str, - sku: str, - properties: "models.ResourceTypeSku", - **kwargs - ) -> "models.SkuResource": - """Creates or updates the resource type skus in the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param sku: The SKU. - :type sku: str - :param properties: The required body parameters supplied to the resource sku operation. - :type properties: ~provider_hub.models.ResourceTypeSku - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'ResourceTypeSku') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}'} # type: ignore - - async def delete( - self, - provider_namespace: str, - resource_type: str, - sku: str, - **kwargs - ) -> None: - """Deletes a resource type sku. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus/{sku}'} # type: ignore - - async def get_nested_resource_type_first( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type_first: str, - sku: str, - **kwargs - ) -> "models.SkuResource": - """Gets the sku details for the given resource type and sku name. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get_nested_resource_type_first.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_nested_resource_type_first.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}'} # type: ignore - - async def create_or_update_nested_resource_type_first( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type_first: str, - sku: str, - properties: "models.ResourceTypeSku", - **kwargs - ) -> "models.SkuResource": - """Creates or updates the resource type skus in the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param sku: The SKU. - :type sku: str - :param properties: The required body parameters supplied to the resource sku operation. - :type properties: ~provider_hub.models.ResourceTypeSku - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update_nested_resource_type_first.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'ResourceTypeSku') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update_nested_resource_type_first.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}'} # type: ignore - - async def delete_nested_resource_type_first( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type_first: str, - sku: str, - **kwargs - ) -> None: - """Deletes a resource type sku. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete_nested_resource_type_first.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete_nested_resource_type_first.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}'} # type: ignore - - async def get_nested_resource_type_second( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type_first: str, - nested_resource_type_second: str, - sku: str, - **kwargs - ) -> "models.SkuResource": - """Gets the sku details for the given resource type and sku name. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get_nested_resource_type_second.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_nested_resource_type_second.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus/{sku}'} # type: ignore - - async def create_or_update_nested_resource_type_second( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type_first: str, - nested_resource_type_second: str, - sku: str, - properties: "models.ResourceTypeSku", - **kwargs - ) -> "models.SkuResource": - """Creates or updates the resource type skus in the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param sku: The SKU. - :type sku: str - :param properties: The required body parameters supplied to the resource sku operation. - :type properties: ~provider_hub.models.ResourceTypeSku - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update_nested_resource_type_second.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'ResourceTypeSku') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update_nested_resource_type_second.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus/{sku}'} # type: ignore - - async def delete_nested_resource_type_second( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type_first: str, - nested_resource_type_second: str, - sku: str, - **kwargs - ) -> None: - """Deletes a resource type sku. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete_nested_resource_type_second.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete_nested_resource_type_second.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus/{sku}'} # type: ignore - - async def get_nested_resource_type_third( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type_first: str, - nested_resource_type_second: str, - nested_resource_type_third: str, - sku: str, - **kwargs - ) -> "models.SkuResource": - """Gets the sku details for the given resource type and sku name. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param nested_resource_type_third: The third child resource type. - :type nested_resource_type_third: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get_nested_resource_type_third.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'nestedResourceTypeThird': self._serialize.url("nested_resource_type_third", nested_resource_type_third, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_nested_resource_type_third.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus/{sku}'} # type: ignore - - async def create_or_update_nested_resource_type_third( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type_first: str, - nested_resource_type_second: str, - nested_resource_type_third: str, - sku: str, - properties: "models.ResourceTypeSku", - **kwargs - ) -> "models.SkuResource": - """Creates or updates the resource type skus in the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param nested_resource_type_third: The third child resource type. - :type nested_resource_type_third: str - :param sku: The SKU. - :type sku: str - :param properties: The required body parameters supplied to the resource sku operation. - :type properties: ~provider_hub.models.ResourceTypeSku - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update_nested_resource_type_third.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'nestedResourceTypeThird': self._serialize.url("nested_resource_type_third", nested_resource_type_third, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'ResourceTypeSku') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update_nested_resource_type_third.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus/{sku}'} # type: ignore - - async def delete_nested_resource_type_third( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type_first: str, - nested_resource_type_second: str, - nested_resource_type_third: str, - sku: str, - **kwargs - ) -> None: - """Deletes a resource type sku. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param nested_resource_type_third: The third child resource type. - :type nested_resource_type_third: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete_nested_resource_type_third.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'nestedResourceTypeThird': self._serialize.url("nested_resource_type_third", nested_resource_type_third, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete_nested_resource_type_third.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus/{sku}'} # type: ignore - - def list_by_resource_type_registrations( - self, - provider_namespace: str, - resource_type: str, - **kwargs - ) -> AsyncIterable["models.SkuResourceArrayResponseWithContinuation"]: - """Gets the list of skus for the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either SkuResourceArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~provider_hub.models.SkuResourceArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResourceArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_resource_type_registrations.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('SkuResourceArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_resource_type_registrations.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/skus'} # type: ignore - - def list_by_resource_type_registrations_nested_resource_type_first( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type_first: str, - **kwargs - ) -> AsyncIterable["models.SkuResourceArrayResponseWithContinuation"]: - """Gets the list of skus for the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either SkuResourceArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~provider_hub.models.SkuResourceArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResourceArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_resource_type_registrations_nested_resource_type_first.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('SkuResourceArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_resource_type_registrations_nested_resource_type_first.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus'} # type: ignore - - def list_by_resource_type_registrations_nested_resource_type_second( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type_first: str, - nested_resource_type_second: str, - **kwargs - ) -> AsyncIterable["models.SkuResourceArrayResponseWithContinuation"]: - """Gets the list of skus for the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either SkuResourceArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~provider_hub.models.SkuResourceArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResourceArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_resource_type_registrations_nested_resource_type_second.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('SkuResourceArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_resource_type_registrations_nested_resource_type_second.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus'} # type: ignore - - def list_by_resource_type_registrations_nested_resource_type_third( - self, - provider_namespace: str, - resource_type: str, - nested_resource_type_first: str, - nested_resource_type_second: str, - nested_resource_type_third: str, - **kwargs - ) -> AsyncIterable["models.SkuResourceArrayResponseWithContinuation"]: - """Gets the list of skus for the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param nested_resource_type_third: The third child resource type. - :type nested_resource_type_third: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either SkuResourceArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~provider_hub.models.SkuResourceArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResourceArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_resource_type_registrations_nested_resource_type_third.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'nestedResourceTypeThird': self._serialize.url("nested_resource_type_third", nested_resource_type_third, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('SkuResourceArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_resource_type_registrations_nested_resource_type_third.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/__init__.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/__init__.py deleted file mode 100644 index 97be766ed37..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/__init__.py +++ /dev/null @@ -1,497 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -try: - from ._models_py3 import AuthorizationActionMapping - from ._models_py3 import CanaryTrafficRegionRolloutConfiguration - from ._models_py3 import CheckNameAvailabilitySpecifications - from ._models_py3 import CheckinManifestInfo - from ._models_py3 import CheckinManifestParams - from ._models_py3 import CustomRollout - from ._models_py3 import CustomRolloutArrayResponseWithContinuation - from ._models_py3 import CustomRolloutProperties - from ._models_py3 import CustomRolloutPropertiesSpecification - from ._models_py3 import CustomRolloutPropertiesStatus - from ._models_py3 import CustomRolloutPropertiesautogenerated - from ._models_py3 import CustomRolloutSpecification - from ._models_py3 import CustomRolloutSpecificationCanary - from ._models_py3 import CustomRolloutSpecificationProviderRegistration - from ._models_py3 import CustomRolloutStatus - from ._models_py3 import DefaultRollout - from ._models_py3 import DefaultRolloutArrayResponseWithContinuation - from ._models_py3 import DefaultRolloutProperties - from ._models_py3 import DefaultRolloutPropertiesSpecification - from ._models_py3 import DefaultRolloutPropertiesStatus - from ._models_py3 import DefaultRolloutPropertiesautogenerated - from ._models_py3 import DefaultRolloutSpecification - from ._models_py3 import DefaultRolloutSpecificationCanary - from ._models_py3 import DefaultRolloutSpecificationHighTraffic - from ._models_py3 import DefaultRolloutSpecificationLowTraffic - from ._models_py3 import DefaultRolloutSpecificationMediumTraffic - from ._models_py3 import DefaultRolloutSpecificationProviderRegistration - from ._models_py3 import DefaultRolloutSpecificationRestOfTheWorldGroupOne - from ._models_py3 import DefaultRolloutSpecificationRestOfTheWorldGroupTwo - from ._models_py3 import DefaultRolloutStatus - from ._models_py3 import Error - from ._models_py3 import ErrorInnerError - from ._models_py3 import ErrorResponse - from ._models_py3 import ErrorResponseError - from ._models_py3 import ExtendedErrorInfo - from ._models_py3 import ExtendedLocationOptions - from ._models_py3 import ExtensionOptions - from ._models_py3 import FeaturesRule - from ._models_py3 import IdentityManagement - from ._models_py3 import IdentityManagementProperties - from ._models_py3 import InnerError - from ._models_py3 import LightHouseAuthorization - from ._models_py3 import LinkedAccessCheck - from ._models_py3 import LinkedOperationRule - from ._models_py3 import LoggingHiddenPropertyPath - from ._models_py3 import LoggingRule - from ._models_py3 import LoggingRuleHiddenPropertyPaths - from ._models_py3 import NotificationEndpoint - from ._models_py3 import NotificationRegistration - from ._models_py3 import NotificationRegistrationArrayResponseWithContinuation - from ._models_py3 import NotificationRegistrationProperties - from ._models_py3 import NotificationRegistrationPropertiesautogenerated - from ._models_py3 import OperationsContent - from ._models_py3 import OperationsDefinition - from ._models_py3 import OperationsDefinitionArrayResponseWithContinuation - from ._models_py3 import OperationsDefinitionDisplay - from ._models_py3 import OperationsDisplayDefinition - from ._models_py3 import OperationsPutContent - from ._models_py3 import ProviderHubMetadata - from ._models_py3 import ProviderHubMetadataProviderAuthentication - from ._models_py3 import ProviderHubMetadataThirdPartyProviderAuthorization - from ._models_py3 import ProviderRegistration - from ._models_py3 import ProviderRegistrationArrayResponseWithContinuation - from ._models_py3 import ProviderRegistrationProperties - from ._models_py3 import ProviderRegistrationPropertiesProviderHubMetadata - from ._models_py3 import ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications - from ._models_py3 import ProviderRegistrationPropertiesautogenerated - from ._models_py3 import ProxyResource - from ._models_py3 import ReRegisterSubscriptionMetadata - from ._models_py3 import RequestHeaderOptions - from ._models_py3 import Resource - from ._models_py3 import ResourceMovePolicy - from ._models_py3 import ResourceProviderAuthentication - from ._models_py3 import ResourceProviderAuthorization - from ._models_py3 import ResourceProviderCapabilities - from ._models_py3 import ResourceProviderEndpoint - from ._models_py3 import ResourceProviderEndpointFeaturesRule - from ._models_py3 import ResourceProviderManagement - from ._models_py3 import ResourceProviderManifest - from ._models_py3 import ResourceProviderManifestFeaturesRule - from ._models_py3 import ResourceProviderManifestManagement - from ._models_py3 import ResourceProviderManifestProperties - from ._models_py3 import ResourceProviderManifestPropertiesFeaturesRule - from ._models_py3 import ResourceProviderManifestPropertiesManagement - from ._models_py3 import ResourceProviderManifestPropertiesProviderAuthentication - from ._models_py3 import ResourceProviderManifestPropertiesRequestHeaderOptions - from ._models_py3 import ResourceProviderManifestPropertiesTemplateDeploymentOptions - from ._models_py3 import ResourceProviderManifestProviderAuthentication - from ._models_py3 import ResourceProviderManifestReRegisterSubscriptionMetadata - from ._models_py3 import ResourceProviderManifestRequestHeaderOptions - from ._models_py3 import ResourceType - from ._models_py3 import ResourceTypeEndpoint - from ._models_py3 import ResourceTypeEndpointFeaturesRule - from ._models_py3 import ResourceTypeExtension - from ._models_py3 import ResourceTypeExtensionOptions - from ._models_py3 import ResourceTypeExtensionOptionsResourceCreationBegin - from ._models_py3 import ResourceTypeFeaturesRule - from ._models_py3 import ResourceTypeIdentityManagement - from ._models_py3 import ResourceTypeRegistration - from ._models_py3 import ResourceTypeRegistrationArrayResponseWithContinuation - from ._models_py3 import ResourceTypeRegistrationProperties - from ._models_py3 import ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications - from ._models_py3 import ResourceTypeRegistrationPropertiesExtensionOptions - from ._models_py3 import ResourceTypeRegistrationPropertiesFeaturesRule - from ._models_py3 import ResourceTypeRegistrationPropertiesIdentityManagement - from ._models_py3 import ResourceTypeRegistrationPropertiesRequestHeaderOptions - from ._models_py3 import ResourceTypeRegistrationPropertiesResourceMovePolicy - from ._models_py3 import ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications - from ._models_py3 import ResourceTypeRegistrationPropertiesTemplateDeploymentOptions - from ._models_py3 import ResourceTypeRegistrationPropertiesautogenerated - from ._models_py3 import ResourceTypeRequestHeaderOptions - from ._models_py3 import ResourceTypeSku - from ._models_py3 import ResourceTypeTemplateDeploymentPolicy - from ._models_py3 import RolloutStatusBase - from ._models_py3 import ServiceTreeInfo - from ._models_py3 import SkuCapability - from ._models_py3 import SkuCapacity - from ._models_py3 import SkuCost - from ._models_py3 import SkuLocationInfo - from ._models_py3 import SkuResource - from ._models_py3 import SkuResourceArrayResponseWithContinuation - from ._models_py3 import SkuResourceProperties - from ._models_py3 import SkuSetting - from ._models_py3 import SkuSettingCapacity - from ._models_py3 import SkuZoneDetail - from ._models_py3 import SubscriptionLifecycleNotificationSpecifications - from ._models_py3 import SubscriptionStateOverrideAction - from ._models_py3 import SubscriptionStateRule - from ._models_py3 import SwaggerSpecification - from ._models_py3 import TemplateDeploymentOptions - from ._models_py3 import TemplateDeploymentPolicy - from ._models_py3 import ThirdPartyProviderAuthorization - from ._models_py3 import ThrottlingMetric - from ._models_py3 import ThrottlingRule - from ._models_py3 import TrafficRegionRolloutConfiguration - from ._models_py3 import TrafficRegions - from ._models_py3 import TypedErrorInfo -except (SyntaxError, ImportError): - from ._models import AuthorizationActionMapping # type: ignore - from ._models import CanaryTrafficRegionRolloutConfiguration # type: ignore - from ._models import CheckNameAvailabilitySpecifications # type: ignore - from ._models import CheckinManifestInfo # type: ignore - from ._models import CheckinManifestParams # type: ignore - from ._models import CustomRollout # type: ignore - from ._models import CustomRolloutArrayResponseWithContinuation # type: ignore - from ._models import CustomRolloutProperties # type: ignore - from ._models import CustomRolloutPropertiesSpecification # type: ignore - from ._models import CustomRolloutPropertiesStatus # type: ignore - from ._models import CustomRolloutPropertiesautogenerated # type: ignore - from ._models import CustomRolloutSpecification # type: ignore - from ._models import CustomRolloutSpecificationCanary # type: ignore - from ._models import CustomRolloutSpecificationProviderRegistration # type: ignore - from ._models import CustomRolloutStatus # type: ignore - from ._models import DefaultRollout # type: ignore - from ._models import DefaultRolloutArrayResponseWithContinuation # type: ignore - from ._models import DefaultRolloutProperties # type: ignore - from ._models import DefaultRolloutPropertiesSpecification # type: ignore - from ._models import DefaultRolloutPropertiesStatus # type: ignore - from ._models import DefaultRolloutPropertiesautogenerated # type: ignore - from ._models import DefaultRolloutSpecification # type: ignore - from ._models import DefaultRolloutSpecificationCanary # type: ignore - from ._models import DefaultRolloutSpecificationHighTraffic # type: ignore - from ._models import DefaultRolloutSpecificationLowTraffic # type: ignore - from ._models import DefaultRolloutSpecificationMediumTraffic # type: ignore - from ._models import DefaultRolloutSpecificationProviderRegistration # type: ignore - from ._models import DefaultRolloutSpecificationRestOfTheWorldGroupOne # type: ignore - from ._models import DefaultRolloutSpecificationRestOfTheWorldGroupTwo # type: ignore - from ._models import DefaultRolloutStatus # type: ignore - from ._models import Error # type: ignore - from ._models import ErrorInnerError # type: ignore - from ._models import ErrorResponse # type: ignore - from ._models import ErrorResponseError # type: ignore - from ._models import ExtendedErrorInfo # type: ignore - from ._models import ExtendedLocationOptions # type: ignore - from ._models import ExtensionOptions # type: ignore - from ._models import FeaturesRule # type: ignore - from ._models import IdentityManagement # type: ignore - from ._models import IdentityManagementProperties # type: ignore - from ._models import InnerError # type: ignore - from ._models import LightHouseAuthorization # type: ignore - from ._models import LinkedAccessCheck # type: ignore - from ._models import LinkedOperationRule # type: ignore - from ._models import LoggingHiddenPropertyPath # type: ignore - from ._models import LoggingRule # type: ignore - from ._models import LoggingRuleHiddenPropertyPaths # type: ignore - from ._models import NotificationEndpoint # type: ignore - from ._models import NotificationRegistration # type: ignore - from ._models import NotificationRegistrationArrayResponseWithContinuation # type: ignore - from ._models import NotificationRegistrationProperties # type: ignore - from ._models import NotificationRegistrationPropertiesautogenerated # type: ignore - from ._models import OperationsContent # type: ignore - from ._models import OperationsDefinition # type: ignore - from ._models import OperationsDefinitionArrayResponseWithContinuation # type: ignore - from ._models import OperationsDefinitionDisplay # type: ignore - from ._models import OperationsDisplayDefinition # type: ignore - from ._models import OperationsPutContent # type: ignore - from ._models import ProviderHubMetadata # type: ignore - from ._models import ProviderHubMetadataProviderAuthentication # type: ignore - from ._models import ProviderHubMetadataThirdPartyProviderAuthorization # type: ignore - from ._models import ProviderRegistration # type: ignore - from ._models import ProviderRegistrationArrayResponseWithContinuation # type: ignore - from ._models import ProviderRegistrationProperties # type: ignore - from ._models import ProviderRegistrationPropertiesProviderHubMetadata # type: ignore - from ._models import ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications # type: ignore - from ._models import ProviderRegistrationPropertiesautogenerated # type: ignore - from ._models import ProxyResource # type: ignore - from ._models import ReRegisterSubscriptionMetadata # type: ignore - from ._models import RequestHeaderOptions # type: ignore - from ._models import Resource # type: ignore - from ._models import ResourceMovePolicy # type: ignore - from ._models import ResourceProviderAuthentication # type: ignore - from ._models import ResourceProviderAuthorization # type: ignore - from ._models import ResourceProviderCapabilities # type: ignore - from ._models import ResourceProviderEndpoint # type: ignore - from ._models import ResourceProviderEndpointFeaturesRule # type: ignore - from ._models import ResourceProviderManagement # type: ignore - from ._models import ResourceProviderManifest # type: ignore - from ._models import ResourceProviderManifestFeaturesRule # type: ignore - from ._models import ResourceProviderManifestManagement # type: ignore - from ._models import ResourceProviderManifestProperties # type: ignore - from ._models import ResourceProviderManifestPropertiesFeaturesRule # type: ignore - from ._models import ResourceProviderManifestPropertiesManagement # type: ignore - from ._models import ResourceProviderManifestPropertiesProviderAuthentication # type: ignore - from ._models import ResourceProviderManifestPropertiesRequestHeaderOptions # type: ignore - from ._models import ResourceProviderManifestPropertiesTemplateDeploymentOptions # type: ignore - from ._models import ResourceProviderManifestProviderAuthentication # type: ignore - from ._models import ResourceProviderManifestReRegisterSubscriptionMetadata # type: ignore - from ._models import ResourceProviderManifestRequestHeaderOptions # type: ignore - from ._models import ResourceType # type: ignore - from ._models import ResourceTypeEndpoint # type: ignore - from ._models import ResourceTypeEndpointFeaturesRule # type: ignore - from ._models import ResourceTypeExtension # type: ignore - from ._models import ResourceTypeExtensionOptions # type: ignore - from ._models import ResourceTypeExtensionOptionsResourceCreationBegin # type: ignore - from ._models import ResourceTypeFeaturesRule # type: ignore - from ._models import ResourceTypeIdentityManagement # type: ignore - from ._models import ResourceTypeRegistration # type: ignore - from ._models import ResourceTypeRegistrationArrayResponseWithContinuation # type: ignore - from ._models import ResourceTypeRegistrationProperties # type: ignore - from ._models import ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications # type: ignore - from ._models import ResourceTypeRegistrationPropertiesExtensionOptions # type: ignore - from ._models import ResourceTypeRegistrationPropertiesFeaturesRule # type: ignore - from ._models import ResourceTypeRegistrationPropertiesIdentityManagement # type: ignore - from ._models import ResourceTypeRegistrationPropertiesRequestHeaderOptions # type: ignore - from ._models import ResourceTypeRegistrationPropertiesResourceMovePolicy # type: ignore - from ._models import ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications # type: ignore - from ._models import ResourceTypeRegistrationPropertiesTemplateDeploymentOptions # type: ignore - from ._models import ResourceTypeRegistrationPropertiesautogenerated # type: ignore - from ._models import ResourceTypeRequestHeaderOptions # type: ignore - from ._models import ResourceTypeSku # type: ignore - from ._models import ResourceTypeTemplateDeploymentPolicy # type: ignore - from ._models import RolloutStatusBase # type: ignore - from ._models import ServiceTreeInfo # type: ignore - from ._models import SkuCapability # type: ignore - from ._models import SkuCapacity # type: ignore - from ._models import SkuCost # type: ignore - from ._models import SkuLocationInfo # type: ignore - from ._models import SkuResource # type: ignore - from ._models import SkuResourceArrayResponseWithContinuation # type: ignore - from ._models import SkuResourceProperties # type: ignore - from ._models import SkuSetting # type: ignore - from ._models import SkuSettingCapacity # type: ignore - from ._models import SkuZoneDetail # type: ignore - from ._models import SubscriptionLifecycleNotificationSpecifications # type: ignore - from ._models import SubscriptionStateOverrideAction # type: ignore - from ._models import SubscriptionStateRule # type: ignore - from ._models import SwaggerSpecification # type: ignore - from ._models import TemplateDeploymentOptions # type: ignore - from ._models import TemplateDeploymentPolicy # type: ignore - from ._models import ThirdPartyProviderAuthorization # type: ignore - from ._models import ThrottlingMetric # type: ignore - from ._models import ThrottlingRule # type: ignore - from ._models import TrafficRegionRolloutConfiguration # type: ignore - from ._models import TrafficRegions # type: ignore - from ._models import TypedErrorInfo # type: ignore - -from ._provider_hub_enums import ( - ExtensionCategory, - ExtensionOptionType, - FeaturesPolicy, - IdentityManagementTypes, - LinkedAction, - LinkedOperation, - LoggingDetails, - LoggingDirections, - ManifestResourceDeletionPolicy, - MessageScope, - NotificationMode, - OperationsDefinitionActionType, - OperationsDefinitionOrigin, - OptInHeaderType, - PreflightOption, - ProvisioningState, - Regionality, - ResourceDeletionPolicy, - ResourceProviderCapabilitiesEffect, - ResourceProviderManagementResourceAccessPolicy, - ResourceProviderType, - ResourceTypeMarketplaceType, - ResourceTypeRegistrationPropertiesMarketplaceType, - ResourceValidation, - RoutingType, - SkuLocationInfoType, - SkuScaleType, - SubscriptionNotificationOperation, - SubscriptionReregistrationResult, - SubscriptionState, - SubscriptionTransitioningState, - TemplateDeploymentCapabilities, - TemplateDeploymentPreflightOptions, - ThrottlingMetricType, - TrafficRegionCategory, -) - -__all__ = [ - 'AuthorizationActionMapping', - 'CanaryTrafficRegionRolloutConfiguration', - 'CheckNameAvailabilitySpecifications', - 'CheckinManifestInfo', - 'CheckinManifestParams', - 'CustomRollout', - 'CustomRolloutArrayResponseWithContinuation', - 'CustomRolloutProperties', - 'CustomRolloutPropertiesSpecification', - 'CustomRolloutPropertiesStatus', - 'CustomRolloutPropertiesautogenerated', - 'CustomRolloutSpecification', - 'CustomRolloutSpecificationCanary', - 'CustomRolloutSpecificationProviderRegistration', - 'CustomRolloutStatus', - 'DefaultRollout', - 'DefaultRolloutArrayResponseWithContinuation', - 'DefaultRolloutProperties', - 'DefaultRolloutPropertiesSpecification', - 'DefaultRolloutPropertiesStatus', - 'DefaultRolloutPropertiesautogenerated', - 'DefaultRolloutSpecification', - 'DefaultRolloutSpecificationCanary', - 'DefaultRolloutSpecificationHighTraffic', - 'DefaultRolloutSpecificationLowTraffic', - 'DefaultRolloutSpecificationMediumTraffic', - 'DefaultRolloutSpecificationProviderRegistration', - 'DefaultRolloutSpecificationRestOfTheWorldGroupOne', - 'DefaultRolloutSpecificationRestOfTheWorldGroupTwo', - 'DefaultRolloutStatus', - 'Error', - 'ErrorInnerError', - 'ErrorResponse', - 'ErrorResponseError', - 'ExtendedErrorInfo', - 'ExtendedLocationOptions', - 'ExtensionOptions', - 'FeaturesRule', - 'IdentityManagement', - 'IdentityManagementProperties', - 'InnerError', - 'LightHouseAuthorization', - 'LinkedAccessCheck', - 'LinkedOperationRule', - 'LoggingHiddenPropertyPath', - 'LoggingRule', - 'LoggingRuleHiddenPropertyPaths', - 'NotificationEndpoint', - 'NotificationRegistration', - 'NotificationRegistrationArrayResponseWithContinuation', - 'NotificationRegistrationProperties', - 'NotificationRegistrationPropertiesautogenerated', - 'OperationsContent', - 'OperationsDefinition', - 'OperationsDefinitionArrayResponseWithContinuation', - 'OperationsDefinitionDisplay', - 'OperationsDisplayDefinition', - 'OperationsPutContent', - 'ProviderHubMetadata', - 'ProviderHubMetadataProviderAuthentication', - 'ProviderHubMetadataThirdPartyProviderAuthorization', - 'ProviderRegistration', - 'ProviderRegistrationArrayResponseWithContinuation', - 'ProviderRegistrationProperties', - 'ProviderRegistrationPropertiesProviderHubMetadata', - 'ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications', - 'ProviderRegistrationPropertiesautogenerated', - 'ProxyResource', - 'ReRegisterSubscriptionMetadata', - 'RequestHeaderOptions', - 'Resource', - 'ResourceMovePolicy', - 'ResourceProviderAuthentication', - 'ResourceProviderAuthorization', - 'ResourceProviderCapabilities', - 'ResourceProviderEndpoint', - 'ResourceProviderEndpointFeaturesRule', - 'ResourceProviderManagement', - 'ResourceProviderManifest', - 'ResourceProviderManifestFeaturesRule', - 'ResourceProviderManifestManagement', - 'ResourceProviderManifestProperties', - 'ResourceProviderManifestPropertiesFeaturesRule', - 'ResourceProviderManifestPropertiesManagement', - 'ResourceProviderManifestPropertiesProviderAuthentication', - 'ResourceProviderManifestPropertiesRequestHeaderOptions', - 'ResourceProviderManifestPropertiesTemplateDeploymentOptions', - 'ResourceProviderManifestProviderAuthentication', - 'ResourceProviderManifestReRegisterSubscriptionMetadata', - 'ResourceProviderManifestRequestHeaderOptions', - 'ResourceType', - 'ResourceTypeEndpoint', - 'ResourceTypeEndpointFeaturesRule', - 'ResourceTypeExtension', - 'ResourceTypeExtensionOptions', - 'ResourceTypeExtensionOptionsResourceCreationBegin', - 'ResourceTypeFeaturesRule', - 'ResourceTypeIdentityManagement', - 'ResourceTypeRegistration', - 'ResourceTypeRegistrationArrayResponseWithContinuation', - 'ResourceTypeRegistrationProperties', - 'ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications', - 'ResourceTypeRegistrationPropertiesExtensionOptions', - 'ResourceTypeRegistrationPropertiesFeaturesRule', - 'ResourceTypeRegistrationPropertiesIdentityManagement', - 'ResourceTypeRegistrationPropertiesRequestHeaderOptions', - 'ResourceTypeRegistrationPropertiesResourceMovePolicy', - 'ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications', - 'ResourceTypeRegistrationPropertiesTemplateDeploymentOptions', - 'ResourceTypeRegistrationPropertiesautogenerated', - 'ResourceTypeRequestHeaderOptions', - 'ResourceTypeSku', - 'ResourceTypeTemplateDeploymentPolicy', - 'RolloutStatusBase', - 'ServiceTreeInfo', - 'SkuCapability', - 'SkuCapacity', - 'SkuCost', - 'SkuLocationInfo', - 'SkuResource', - 'SkuResourceArrayResponseWithContinuation', - 'SkuResourceProperties', - 'SkuSetting', - 'SkuSettingCapacity', - 'SkuZoneDetail', - 'SubscriptionLifecycleNotificationSpecifications', - 'SubscriptionStateOverrideAction', - 'SubscriptionStateRule', - 'SwaggerSpecification', - 'TemplateDeploymentOptions', - 'TemplateDeploymentPolicy', - 'ThirdPartyProviderAuthorization', - 'ThrottlingMetric', - 'ThrottlingRule', - 'TrafficRegionRolloutConfiguration', - 'TrafficRegions', - 'TypedErrorInfo', - 'ExtensionCategory', - 'ExtensionOptionType', - 'FeaturesPolicy', - 'IdentityManagementTypes', - 'LinkedAction', - 'LinkedOperation', - 'LoggingDetails', - 'LoggingDirections', - 'ManifestResourceDeletionPolicy', - 'MessageScope', - 'NotificationMode', - 'OperationsDefinitionActionType', - 'OperationsDefinitionOrigin', - 'OptInHeaderType', - 'PreflightOption', - 'ProvisioningState', - 'Regionality', - 'ResourceDeletionPolicy', - 'ResourceProviderCapabilitiesEffect', - 'ResourceProviderManagementResourceAccessPolicy', - 'ResourceProviderType', - 'ResourceTypeMarketplaceType', - 'ResourceTypeRegistrationPropertiesMarketplaceType', - 'ResourceValidation', - 'RoutingType', - 'SkuLocationInfoType', - 'SkuScaleType', - 'SubscriptionNotificationOperation', - 'SubscriptionReregistrationResult', - 'SubscriptionState', - 'SubscriptionTransitioningState', - 'TemplateDeploymentCapabilities', - 'TemplateDeploymentPreflightOptions', - 'ThrottlingMetricType', - 'TrafficRegionCategory', -] diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_models.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_models.py deleted file mode 100644 index 31c94c84a9d..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_models.py +++ /dev/null @@ -1,4372 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.exceptions import HttpResponseError -import msrest.serialization - - -class AuthorizationActionMapping(msrest.serialization.Model): - """AuthorizationActionMapping. - - :param original: - :type original: str - :param desired: - :type desired: str - """ - - _attribute_map = { - 'original': {'key': 'original', 'type': 'str'}, - 'desired': {'key': 'desired', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AuthorizationActionMapping, self).__init__(**kwargs) - self.original = kwargs.get('original', None) - self.desired = kwargs.get('desired', None) - - -class CanaryTrafficRegionRolloutConfiguration(msrest.serialization.Model): - """CanaryTrafficRegionRolloutConfiguration. - - :param skip_regions: - :type skip_regions: list[str] - :param regions: - :type regions: list[str] - """ - - _attribute_map = { - 'skip_regions': {'key': 'skipRegions', 'type': '[str]'}, - 'regions': {'key': 'regions', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(CanaryTrafficRegionRolloutConfiguration, self).__init__(**kwargs) - self.skip_regions = kwargs.get('skip_regions', None) - self.regions = kwargs.get('regions', None) - - -class CheckinManifestInfo(msrest.serialization.Model): - """CheckinManifestInfo. - - All required parameters must be populated in order to send to Azure. - - :param is_checked_in: Required. - :type is_checked_in: bool - :param status_message: Required. - :type status_message: str - :param pull_request: - :type pull_request: str - :param commit_id: - :type commit_id: str - """ - - _validation = { - 'is_checked_in': {'required': True}, - 'status_message': {'required': True}, - } - - _attribute_map = { - 'is_checked_in': {'key': 'isCheckedIn', 'type': 'bool'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'pull_request': {'key': 'pullRequest', 'type': 'str'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CheckinManifestInfo, self).__init__(**kwargs) - self.is_checked_in = kwargs['is_checked_in'] - self.status_message = kwargs['status_message'] - self.pull_request = kwargs.get('pull_request', None) - self.commit_id = kwargs.get('commit_id', None) - - -class CheckinManifestParams(msrest.serialization.Model): - """CheckinManifestParams. - - All required parameters must be populated in order to send to Azure. - - :param environment: Required. The environment supplied to the checkin manifest operation. - :type environment: str - :param baseline_arm_manifest_location: Required. The baseline ARM manifest location supplied to - the checkin manifest operation. - :type baseline_arm_manifest_location: str - """ - - _validation = { - 'environment': {'required': True}, - 'baseline_arm_manifest_location': {'required': True}, - } - - _attribute_map = { - 'environment': {'key': 'environment', 'type': 'str'}, - 'baseline_arm_manifest_location': {'key': 'baselineArmManifestLocation', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CheckinManifestParams, self).__init__(**kwargs) - self.environment = kwargs['environment'] - self.baseline_arm_manifest_location = kwargs['baseline_arm_manifest_location'] - - -class CheckNameAvailabilitySpecifications(msrest.serialization.Model): - """CheckNameAvailabilitySpecifications. - - :param enable_default_validation: - :type enable_default_validation: bool - :param resource_types_with_custom_validation: - :type resource_types_with_custom_validation: list[str] - """ - - _attribute_map = { - 'enable_default_validation': {'key': 'enableDefaultValidation', 'type': 'bool'}, - 'resource_types_with_custom_validation': {'key': 'resourceTypesWithCustomValidation', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(CheckNameAvailabilitySpecifications, self).__init__(**kwargs) - self.enable_default_validation = kwargs.get('enable_default_validation', None) - self.resource_types_with_custom_validation = kwargs.get('resource_types_with_custom_validation', None) - - -class Resource(msrest.serialization.Model): - """Common fields that are returned in the response for all Azure Resource Manager resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - - -class CustomRollout(Resource): - """Rollout details. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: Required. Properties of the rollout. - :type properties: ~provider_hub.models.CustomRolloutProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'properties': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'CustomRolloutProperties'}, - } - - def __init__( - self, - **kwargs - ): - super(CustomRollout, self).__init__(**kwargs) - self.properties = kwargs['properties'] - - -class CustomRolloutArrayResponseWithContinuation(msrest.serialization.Model): - """CustomRolloutArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.CustomRollout] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[CustomRollout]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CustomRolloutArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - -class CustomRolloutProperties(msrest.serialization.Model): - """CustomRolloutProperties. - - All required parameters must be populated in order to send to Azure. - - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param specification: Required. - :type specification: ~provider_hub.models.CustomRolloutSpecification - :param status: - :type status: ~provider_hub.models.CustomRolloutStatus - """ - - _validation = { - 'specification': {'required': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'specification': {'key': 'specification', 'type': 'CustomRolloutSpecification'}, - 'status': {'key': 'status', 'type': 'CustomRolloutStatus'}, - } - - def __init__( - self, - **kwargs - ): - super(CustomRolloutProperties, self).__init__(**kwargs) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.specification = kwargs['specification'] - self.status = kwargs.get('status', None) - - -class CustomRolloutPropertiesautogenerated(CustomRolloutProperties): - """Properties of the rollout. - - All required parameters must be populated in order to send to Azure. - - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param specification: Required. - :type specification: ~provider_hub.models.CustomRolloutSpecification - :param status: - :type status: ~provider_hub.models.CustomRolloutStatus - """ - - _validation = { - 'specification': {'required': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'specification': {'key': 'specification', 'type': 'CustomRolloutSpecification'}, - 'status': {'key': 'status', 'type': 'CustomRolloutStatus'}, - } - - def __init__( - self, - **kwargs - ): - super(CustomRolloutPropertiesautogenerated, self).__init__(**kwargs) - - -class CustomRolloutSpecification(msrest.serialization.Model): - """CustomRolloutSpecification. - - All required parameters must be populated in order to send to Azure. - - :param canary: Required. - :type canary: ~provider_hub.models.TrafficRegions - :param provider_registration: - :type provider_registration: ~provider_hub.models.ProviderRegistration - :param resource_type_registrations: - :type resource_type_registrations: list[~provider_hub.models.ResourceTypeRegistration] - """ - - _validation = { - 'canary': {'required': True}, - } - - _attribute_map = { - 'canary': {'key': 'canary', 'type': 'TrafficRegions'}, - 'provider_registration': {'key': 'providerRegistration', 'type': 'ProviderRegistration'}, - 'resource_type_registrations': {'key': 'resourceTypeRegistrations', 'type': '[ResourceTypeRegistration]'}, - } - - def __init__( - self, - **kwargs - ): - super(CustomRolloutSpecification, self).__init__(**kwargs) - self.canary = kwargs['canary'] - self.provider_registration = kwargs.get('provider_registration', None) - self.resource_type_registrations = kwargs.get('resource_type_registrations', None) - - -class CustomRolloutPropertiesSpecification(CustomRolloutSpecification): - """CustomRolloutPropertiesSpecification. - - All required parameters must be populated in order to send to Azure. - - :param canary: Required. - :type canary: ~provider_hub.models.TrafficRegions - :param provider_registration: - :type provider_registration: ~provider_hub.models.ProviderRegistration - :param resource_type_registrations: - :type resource_type_registrations: list[~provider_hub.models.ResourceTypeRegistration] - """ - - _validation = { - 'canary': {'required': True}, - } - - _attribute_map = { - 'canary': {'key': 'canary', 'type': 'TrafficRegions'}, - 'provider_registration': {'key': 'providerRegistration', 'type': 'ProviderRegistration'}, - 'resource_type_registrations': {'key': 'resourceTypeRegistrations', 'type': '[ResourceTypeRegistration]'}, - } - - def __init__( - self, - **kwargs - ): - super(CustomRolloutPropertiesSpecification, self).__init__(**kwargs) - - -class CustomRolloutStatus(msrest.serialization.Model): - """CustomRolloutStatus. - - :param completed_regions: - :type completed_regions: list[str] - :param failed_or_skipped_regions: Dictionary of :code:``. - :type failed_or_skipped_regions: dict[str, ~provider_hub.models.ExtendedErrorInfo] - """ - - _attribute_map = { - 'completed_regions': {'key': 'completedRegions', 'type': '[str]'}, - 'failed_or_skipped_regions': {'key': 'failedOrSkippedRegions', 'type': '{ExtendedErrorInfo}'}, - } - - def __init__( - self, - **kwargs - ): - super(CustomRolloutStatus, self).__init__(**kwargs) - self.completed_regions = kwargs.get('completed_regions', None) - self.failed_or_skipped_regions = kwargs.get('failed_or_skipped_regions', None) - - -class CustomRolloutPropertiesStatus(CustomRolloutStatus): - """CustomRolloutPropertiesStatus. - - :param completed_regions: - :type completed_regions: list[str] - :param failed_or_skipped_regions: Dictionary of :code:``. - :type failed_or_skipped_regions: dict[str, ~provider_hub.models.ExtendedErrorInfo] - """ - - _attribute_map = { - 'completed_regions': {'key': 'completedRegions', 'type': '[str]'}, - 'failed_or_skipped_regions': {'key': 'failedOrSkippedRegions', 'type': '{ExtendedErrorInfo}'}, - } - - def __init__( - self, - **kwargs - ): - super(CustomRolloutPropertiesStatus, self).__init__(**kwargs) - - -class TrafficRegions(msrest.serialization.Model): - """TrafficRegions. - - :param regions: - :type regions: list[str] - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(TrafficRegions, self).__init__(**kwargs) - self.regions = kwargs.get('regions', None) - - -class CustomRolloutSpecificationCanary(TrafficRegions): - """CustomRolloutSpecificationCanary. - - :param regions: - :type regions: list[str] - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(CustomRolloutSpecificationCanary, self).__init__(**kwargs) - - -class ProviderRegistration(Resource): - """ProviderRegistration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: - :type properties: ~provider_hub.models.ProviderRegistrationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProviderRegistrationProperties'}, - } - - def __init__( - self, - **kwargs - ): - super(ProviderRegistration, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class CustomRolloutSpecificationProviderRegistration(ProviderRegistration): - """CustomRolloutSpecificationProviderRegistration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: - :type properties: ~provider_hub.models.ProviderRegistrationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProviderRegistrationProperties'}, - } - - def __init__( - self, - **kwargs - ): - super(CustomRolloutSpecificationProviderRegistration, self).__init__(**kwargs) - - -class DefaultRollout(Resource): - """Default rollout definition. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: Properties of the rollout. - :type properties: ~provider_hub.models.DefaultRolloutProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DefaultRolloutProperties'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRollout, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class DefaultRolloutArrayResponseWithContinuation(msrest.serialization.Model): - """DefaultRolloutArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.DefaultRollout] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[DefaultRollout]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - -class DefaultRolloutProperties(msrest.serialization.Model): - """DefaultRolloutProperties. - - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param specification: - :type specification: ~provider_hub.models.DefaultRolloutSpecification - :param status: - :type status: ~provider_hub.models.DefaultRolloutStatus - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'specification': {'key': 'specification', 'type': 'DefaultRolloutSpecification'}, - 'status': {'key': 'status', 'type': 'DefaultRolloutStatus'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutProperties, self).__init__(**kwargs) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.specification = kwargs.get('specification', None) - self.status = kwargs.get('status', None) - - -class DefaultRolloutPropertiesautogenerated(DefaultRolloutProperties): - """Properties of the rollout. - - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param specification: - :type specification: ~provider_hub.models.DefaultRolloutSpecification - :param status: - :type status: ~provider_hub.models.DefaultRolloutStatus - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'specification': {'key': 'specification', 'type': 'DefaultRolloutSpecification'}, - 'status': {'key': 'status', 'type': 'DefaultRolloutStatus'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutPropertiesautogenerated, self).__init__(**kwargs) - - -class DefaultRolloutSpecification(msrest.serialization.Model): - """DefaultRolloutSpecification. - - :param canary: - :type canary: ~provider_hub.models.CanaryTrafficRegionRolloutConfiguration - :param low_traffic: - :type low_traffic: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param medium_traffic: - :type medium_traffic: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param high_traffic: - :type high_traffic: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param rest_of_the_world_group_one: - :type rest_of_the_world_group_one: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param rest_of_the_world_group_two: - :type rest_of_the_world_group_two: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param provider_registration: - :type provider_registration: ~provider_hub.models.ProviderRegistration - :param resource_type_registrations: - :type resource_type_registrations: list[~provider_hub.models.ResourceTypeRegistration] - """ - - _attribute_map = { - 'canary': {'key': 'canary', 'type': 'CanaryTrafficRegionRolloutConfiguration'}, - 'low_traffic': {'key': 'lowTraffic', 'type': 'TrafficRegionRolloutConfiguration'}, - 'medium_traffic': {'key': 'mediumTraffic', 'type': 'TrafficRegionRolloutConfiguration'}, - 'high_traffic': {'key': 'highTraffic', 'type': 'TrafficRegionRolloutConfiguration'}, - 'rest_of_the_world_group_one': {'key': 'restOfTheWorldGroupOne', 'type': 'TrafficRegionRolloutConfiguration'}, - 'rest_of_the_world_group_two': {'key': 'restOfTheWorldGroupTwo', 'type': 'TrafficRegionRolloutConfiguration'}, - 'provider_registration': {'key': 'providerRegistration', 'type': 'ProviderRegistration'}, - 'resource_type_registrations': {'key': 'resourceTypeRegistrations', 'type': '[ResourceTypeRegistration]'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutSpecification, self).__init__(**kwargs) - self.canary = kwargs.get('canary', None) - self.low_traffic = kwargs.get('low_traffic', None) - self.medium_traffic = kwargs.get('medium_traffic', None) - self.high_traffic = kwargs.get('high_traffic', None) - self.rest_of_the_world_group_one = kwargs.get('rest_of_the_world_group_one', None) - self.rest_of_the_world_group_two = kwargs.get('rest_of_the_world_group_two', None) - self.provider_registration = kwargs.get('provider_registration', None) - self.resource_type_registrations = kwargs.get('resource_type_registrations', None) - - -class DefaultRolloutPropertiesSpecification(DefaultRolloutSpecification): - """DefaultRolloutPropertiesSpecification. - - :param canary: - :type canary: ~provider_hub.models.CanaryTrafficRegionRolloutConfiguration - :param low_traffic: - :type low_traffic: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param medium_traffic: - :type medium_traffic: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param high_traffic: - :type high_traffic: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param rest_of_the_world_group_one: - :type rest_of_the_world_group_one: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param rest_of_the_world_group_two: - :type rest_of_the_world_group_two: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param provider_registration: - :type provider_registration: ~provider_hub.models.ProviderRegistration - :param resource_type_registrations: - :type resource_type_registrations: list[~provider_hub.models.ResourceTypeRegistration] - """ - - _attribute_map = { - 'canary': {'key': 'canary', 'type': 'CanaryTrafficRegionRolloutConfiguration'}, - 'low_traffic': {'key': 'lowTraffic', 'type': 'TrafficRegionRolloutConfiguration'}, - 'medium_traffic': {'key': 'mediumTraffic', 'type': 'TrafficRegionRolloutConfiguration'}, - 'high_traffic': {'key': 'highTraffic', 'type': 'TrafficRegionRolloutConfiguration'}, - 'rest_of_the_world_group_one': {'key': 'restOfTheWorldGroupOne', 'type': 'TrafficRegionRolloutConfiguration'}, - 'rest_of_the_world_group_two': {'key': 'restOfTheWorldGroupTwo', 'type': 'TrafficRegionRolloutConfiguration'}, - 'provider_registration': {'key': 'providerRegistration', 'type': 'ProviderRegistration'}, - 'resource_type_registrations': {'key': 'resourceTypeRegistrations', 'type': '[ResourceTypeRegistration]'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutPropertiesSpecification, self).__init__(**kwargs) - - -class RolloutStatusBase(msrest.serialization.Model): - """RolloutStatusBase. - - :param completed_regions: - :type completed_regions: list[str] - :param failed_or_skipped_regions: Dictionary of :code:``. - :type failed_or_skipped_regions: dict[str, ~provider_hub.models.ExtendedErrorInfo] - """ - - _attribute_map = { - 'completed_regions': {'key': 'completedRegions', 'type': '[str]'}, - 'failed_or_skipped_regions': {'key': 'failedOrSkippedRegions', 'type': '{ExtendedErrorInfo}'}, - } - - def __init__( - self, - **kwargs - ): - super(RolloutStatusBase, self).__init__(**kwargs) - self.completed_regions = kwargs.get('completed_regions', None) - self.failed_or_skipped_regions = kwargs.get('failed_or_skipped_regions', None) - - -class DefaultRolloutStatus(RolloutStatusBase): - """DefaultRolloutStatus. - - :param completed_regions: - :type completed_regions: list[str] - :param failed_or_skipped_regions: Dictionary of :code:``. - :type failed_or_skipped_regions: dict[str, ~provider_hub.models.ExtendedErrorInfo] - :param next_traffic_region: Possible values include: "NotSpecified", "Canary", "LowTraffic", - "MediumTraffic", "HighTraffic", "None", "RestOfTheWorldGroupOne", "RestOfTheWorldGroupTwo". - :type next_traffic_region: str or ~provider_hub.models.TrafficRegionCategory - :param next_traffic_region_scheduled_time: - :type next_traffic_region_scheduled_time: ~datetime.datetime - :param subscription_reregistration_result: Possible values include: "NotApplicable", - "ConditionalUpdate", "ForcedUpdate", "Failed". - :type subscription_reregistration_result: str or - ~provider_hub.models.SubscriptionReregistrationResult - """ - - _attribute_map = { - 'completed_regions': {'key': 'completedRegions', 'type': '[str]'}, - 'failed_or_skipped_regions': {'key': 'failedOrSkippedRegions', 'type': '{ExtendedErrorInfo}'}, - 'next_traffic_region': {'key': 'nextTrafficRegion', 'type': 'str'}, - 'next_traffic_region_scheduled_time': {'key': 'nextTrafficRegionScheduledTime', 'type': 'iso-8601'}, - 'subscription_reregistration_result': {'key': 'subscriptionReregistrationResult', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutStatus, self).__init__(**kwargs) - self.next_traffic_region = kwargs.get('next_traffic_region', None) - self.next_traffic_region_scheduled_time = kwargs.get('next_traffic_region_scheduled_time', None) - self.subscription_reregistration_result = kwargs.get('subscription_reregistration_result', None) - - -class DefaultRolloutPropertiesStatus(DefaultRolloutStatus): - """DefaultRolloutPropertiesStatus. - - :param completed_regions: - :type completed_regions: list[str] - :param failed_or_skipped_regions: Dictionary of :code:``. - :type failed_or_skipped_regions: dict[str, ~provider_hub.models.ExtendedErrorInfo] - :param next_traffic_region: Possible values include: "NotSpecified", "Canary", "LowTraffic", - "MediumTraffic", "HighTraffic", "None", "RestOfTheWorldGroupOne", "RestOfTheWorldGroupTwo". - :type next_traffic_region: str or ~provider_hub.models.TrafficRegionCategory - :param next_traffic_region_scheduled_time: - :type next_traffic_region_scheduled_time: ~datetime.datetime - :param subscription_reregistration_result: Possible values include: "NotApplicable", - "ConditionalUpdate", "ForcedUpdate", "Failed". - :type subscription_reregistration_result: str or - ~provider_hub.models.SubscriptionReregistrationResult - """ - - _attribute_map = { - 'completed_regions': {'key': 'completedRegions', 'type': '[str]'}, - 'failed_or_skipped_regions': {'key': 'failedOrSkippedRegions', 'type': '{ExtendedErrorInfo}'}, - 'next_traffic_region': {'key': 'nextTrafficRegion', 'type': 'str'}, - 'next_traffic_region_scheduled_time': {'key': 'nextTrafficRegionScheduledTime', 'type': 'iso-8601'}, - 'subscription_reregistration_result': {'key': 'subscriptionReregistrationResult', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutPropertiesStatus, self).__init__(**kwargs) - - -class DefaultRolloutSpecificationCanary(CanaryTrafficRegionRolloutConfiguration): - """DefaultRolloutSpecificationCanary. - - :param skip_regions: - :type skip_regions: list[str] - :param regions: - :type regions: list[str] - """ - - _attribute_map = { - 'skip_regions': {'key': 'skipRegions', 'type': '[str]'}, - 'regions': {'key': 'regions', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutSpecificationCanary, self).__init__(**kwargs) - - -class TrafficRegionRolloutConfiguration(TrafficRegions): - """TrafficRegionRolloutConfiguration. - - :param regions: - :type regions: list[str] - :param wait_duration: - :type wait_duration: ~datetime.timedelta - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - 'wait_duration': {'key': 'waitDuration', 'type': 'duration'}, - } - - def __init__( - self, - **kwargs - ): - super(TrafficRegionRolloutConfiguration, self).__init__(**kwargs) - self.wait_duration = kwargs.get('wait_duration', None) - - -class DefaultRolloutSpecificationHighTraffic(TrafficRegionRolloutConfiguration): - """DefaultRolloutSpecificationHighTraffic. - - :param regions: - :type regions: list[str] - :param wait_duration: - :type wait_duration: ~datetime.timedelta - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - 'wait_duration': {'key': 'waitDuration', 'type': 'duration'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutSpecificationHighTraffic, self).__init__(**kwargs) - - -class DefaultRolloutSpecificationLowTraffic(TrafficRegionRolloutConfiguration): - """DefaultRolloutSpecificationLowTraffic. - - :param regions: - :type regions: list[str] - :param wait_duration: - :type wait_duration: ~datetime.timedelta - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - 'wait_duration': {'key': 'waitDuration', 'type': 'duration'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutSpecificationLowTraffic, self).__init__(**kwargs) - - -class DefaultRolloutSpecificationMediumTraffic(TrafficRegionRolloutConfiguration): - """DefaultRolloutSpecificationMediumTraffic. - - :param regions: - :type regions: list[str] - :param wait_duration: - :type wait_duration: ~datetime.timedelta - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - 'wait_duration': {'key': 'waitDuration', 'type': 'duration'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutSpecificationMediumTraffic, self).__init__(**kwargs) - - -class DefaultRolloutSpecificationProviderRegistration(ProviderRegistration): - """DefaultRolloutSpecificationProviderRegistration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: - :type properties: ~provider_hub.models.ProviderRegistrationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProviderRegistrationProperties'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutSpecificationProviderRegistration, self).__init__(**kwargs) - - -class DefaultRolloutSpecificationRestOfTheWorldGroupOne(TrafficRegionRolloutConfiguration): - """DefaultRolloutSpecificationRestOfTheWorldGroupOne. - - :param regions: - :type regions: list[str] - :param wait_duration: - :type wait_duration: ~datetime.timedelta - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - 'wait_duration': {'key': 'waitDuration', 'type': 'duration'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutSpecificationRestOfTheWorldGroupOne, self).__init__(**kwargs) - - -class DefaultRolloutSpecificationRestOfTheWorldGroupTwo(TrafficRegionRolloutConfiguration): - """DefaultRolloutSpecificationRestOfTheWorldGroupTwo. - - :param regions: - :type regions: list[str] - :param wait_duration: - :type wait_duration: ~datetime.timedelta - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - 'wait_duration': {'key': 'waitDuration', 'type': 'duration'}, - } - - def __init__( - self, - **kwargs - ): - super(DefaultRolloutSpecificationRestOfTheWorldGroupTwo, self).__init__(**kwargs) - - -class Error(msrest.serialization.Model): - """Standard error object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Server-defined set of error codes. - :vartype code: str - :ivar message: Human-readable representation of the error. - :vartype message: str - :ivar target: Target of the error. - :vartype target: str - :ivar details: Array of details about specific errors that led to this reported error. - :vartype details: list[~provider_hub.models.Error] - :ivar inner_error: Object containing more specific information than the current object about - the error. - :vartype inner_error: ~provider_hub.models.InnerError - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'inner_error': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[Error]'}, - 'inner_error': {'key': 'innerError', 'type': 'InnerError'}, - } - - def __init__( - self, - **kwargs - ): - super(Error, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None - self.inner_error = None - - -class InnerError(msrest.serialization.Model): - """Inner error containing list of errors. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param additional_properties: Unmatched properties from the message are deserialized to this - collection. - :type additional_properties: dict[str, object] - :ivar code: Specific error code than was provided by the containing error. - :vartype code: str - :ivar inner_error: Object containing more specific information than the current object about - the error. - :vartype inner_error: object - """ - - _validation = { - 'code': {'readonly': True}, - 'inner_error': {'readonly': True}, - } - - _attribute_map = { - 'additional_properties': {'key': '', 'type': '{object}'}, - 'code': {'key': 'code', 'type': 'str'}, - 'inner_error': {'key': 'innerError', 'type': 'object'}, - } - - def __init__( - self, - **kwargs - ): - super(InnerError, self).__init__(**kwargs) - self.additional_properties = kwargs.get('additional_properties', None) - self.code = None - self.inner_error = None - - -class ErrorInnerError(InnerError): - """Object containing more specific information than the current object about the error. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param additional_properties: Unmatched properties from the message are deserialized to this - collection. - :type additional_properties: dict[str, object] - :ivar code: Specific error code than was provided by the containing error. - :vartype code: str - :ivar inner_error: Object containing more specific information than the current object about - the error. - :vartype inner_error: object - """ - - _validation = { - 'code': {'readonly': True}, - 'inner_error': {'readonly': True}, - } - - _attribute_map = { - 'additional_properties': {'key': '', 'type': '{object}'}, - 'code': {'key': 'code', 'type': 'str'}, - 'inner_error': {'key': 'innerError', 'type': 'object'}, - } - - def __init__( - self, - **kwargs - ): - super(ErrorInnerError, self).__init__(**kwargs) - - -class ErrorResponse(msrest.serialization.Model): - """Standard error response. - - :param error: Standard error object. - :type error: ~provider_hub.models.Error - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'Error'}, - } - - def __init__( - self, - **kwargs - ): - super(ErrorResponse, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - - -class ErrorResponseError(Error): - """Standard error object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Server-defined set of error codes. - :vartype code: str - :ivar message: Human-readable representation of the error. - :vartype message: str - :ivar target: Target of the error. - :vartype target: str - :ivar details: Array of details about specific errors that led to this reported error. - :vartype details: list[~provider_hub.models.Error] - :ivar inner_error: Object containing more specific information than the current object about - the error. - :vartype inner_error: ~provider_hub.models.InnerError - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'inner_error': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[Error]'}, - 'inner_error': {'key': 'innerError', 'type': 'InnerError'}, - } - - def __init__( - self, - **kwargs - ): - super(ErrorResponseError, self).__init__(**kwargs) - - -class ExtendedErrorInfo(msrest.serialization.Model): - """ExtendedErrorInfo. - - :param code: - :type code: str - :param target: - :type target: str - :param message: - :type message: str - :param details: - :type details: list[~provider_hub.models.ExtendedErrorInfo] - :param additional_info: - :type additional_info: list[~provider_hub.models.TypedErrorInfo] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ExtendedErrorInfo]'}, - 'additional_info': {'key': 'additionalInfo', 'type': '[TypedErrorInfo]'}, - } - - def __init__( - self, - **kwargs - ): - super(ExtendedErrorInfo, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.target = kwargs.get('target', None) - self.message = kwargs.get('message', None) - self.details = kwargs.get('details', None) - self.additional_info = kwargs.get('additional_info', None) - - -class ExtendedLocationOptions(msrest.serialization.Model): - """ExtendedLocationOptions. - - :param type: - :type type: str - :param supported_policy: - :type supported_policy: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'supported_policy': {'key': 'supportedPolicy', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ExtendedLocationOptions, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.supported_policy = kwargs.get('supported_policy', None) - - -class ExtensionOptions(msrest.serialization.Model): - """ExtensionOptions. - - :param request: - :type request: list[str or ~provider_hub.models.ExtensionOptionType] - :param response: - :type response: list[str or ~provider_hub.models.ExtensionOptionType] - """ - - _attribute_map = { - 'request': {'key': 'request', 'type': '[str]'}, - 'response': {'key': 'response', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(ExtensionOptions, self).__init__(**kwargs) - self.request = kwargs.get('request', None) - self.response = kwargs.get('response', None) - - -class FeaturesRule(msrest.serialization.Model): - """FeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(FeaturesRule, self).__init__(**kwargs) - self.required_features_policy = kwargs['required_features_policy'] - - -class IdentityManagement(msrest.serialization.Model): - """IdentityManagement. - - :param type: Possible values include: "NotSpecified", "SystemAssigned", "UserAssigned", - "Actor", "DelegatedResourceIdentity". - :type type: str or ~provider_hub.models.IdentityManagementTypes - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(IdentityManagement, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - - -class IdentityManagementProperties(msrest.serialization.Model): - """IdentityManagementProperties. - - :param type: Possible values include: "NotSpecified", "SystemAssigned", "UserAssigned", - "Actor", "DelegatedResourceIdentity". - :type type: str or ~provider_hub.models.IdentityManagementTypes - :param application_id: - :type application_id: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'application_id': {'key': 'applicationId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(IdentityManagementProperties, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.application_id = kwargs.get('application_id', None) - - -class LightHouseAuthorization(msrest.serialization.Model): - """LightHouseAuthorization. - - All required parameters must be populated in order to send to Azure. - - :param principal_id: Required. - :type principal_id: str - :param role_definition_id: Required. - :type role_definition_id: str - """ - - _validation = { - 'principal_id': {'required': True}, - 'role_definition_id': {'required': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'role_definition_id': {'key': 'roleDefinitionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(LightHouseAuthorization, self).__init__(**kwargs) - self.principal_id = kwargs['principal_id'] - self.role_definition_id = kwargs['role_definition_id'] - - -class LinkedAccessCheck(msrest.serialization.Model): - """LinkedAccessCheck. - - :param action_name: - :type action_name: str - :param linked_property: - :type linked_property: str - :param linked_action: - :type linked_action: str - :param linked_action_verb: - :type linked_action_verb: str - :param linked_type: - :type linked_type: str - """ - - _attribute_map = { - 'action_name': {'key': 'actionName', 'type': 'str'}, - 'linked_property': {'key': 'linkedProperty', 'type': 'str'}, - 'linked_action': {'key': 'linkedAction', 'type': 'str'}, - 'linked_action_verb': {'key': 'linkedActionVerb', 'type': 'str'}, - 'linked_type': {'key': 'linkedType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(LinkedAccessCheck, self).__init__(**kwargs) - self.action_name = kwargs.get('action_name', None) - self.linked_property = kwargs.get('linked_property', None) - self.linked_action = kwargs.get('linked_action', None) - self.linked_action_verb = kwargs.get('linked_action_verb', None) - self.linked_type = kwargs.get('linked_type', None) - - -class LinkedOperationRule(msrest.serialization.Model): - """LinkedOperationRule. - - All required parameters must be populated in order to send to Azure. - - :param linked_operation: Required. Possible values include: "None", - "CrossResourceGroupResourceMove", "CrossSubscriptionResourceMove". - :type linked_operation: str or ~provider_hub.models.LinkedOperation - :param linked_action: Required. Possible values include: "NotSpecified", "Blocked", - "Validate", "Enabled". - :type linked_action: str or ~provider_hub.models.LinkedAction - """ - - _validation = { - 'linked_operation': {'required': True}, - 'linked_action': {'required': True}, - } - - _attribute_map = { - 'linked_operation': {'key': 'linkedOperation', 'type': 'str'}, - 'linked_action': {'key': 'linkedAction', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(LinkedOperationRule, self).__init__(**kwargs) - self.linked_operation = kwargs['linked_operation'] - self.linked_action = kwargs['linked_action'] - - -class LoggingHiddenPropertyPath(msrest.serialization.Model): - """LoggingHiddenPropertyPath. - - :param hidden_paths_on_request: - :type hidden_paths_on_request: list[str] - :param hidden_paths_on_response: - :type hidden_paths_on_response: list[str] - """ - - _attribute_map = { - 'hidden_paths_on_request': {'key': 'hiddenPathsOnRequest', 'type': '[str]'}, - 'hidden_paths_on_response': {'key': 'hiddenPathsOnResponse', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(LoggingHiddenPropertyPath, self).__init__(**kwargs) - self.hidden_paths_on_request = kwargs.get('hidden_paths_on_request', None) - self.hidden_paths_on_response = kwargs.get('hidden_paths_on_response', None) - - -class LoggingRule(msrest.serialization.Model): - """LoggingRule. - - All required parameters must be populated in order to send to Azure. - - :param action: Required. - :type action: str - :param direction: Required. Possible values include: "None", "Request", "Response". - :type direction: str or ~provider_hub.models.LoggingDirections - :param detail_level: Required. Possible values include: "None", "Body". - :type detail_level: str or ~provider_hub.models.LoggingDetails - :param hidden_property_paths: - :type hidden_property_paths: ~provider_hub.models.LoggingHiddenPropertyPath - """ - - _validation = { - 'action': {'required': True}, - 'direction': {'required': True}, - 'detail_level': {'required': True}, - } - - _attribute_map = { - 'action': {'key': 'action', 'type': 'str'}, - 'direction': {'key': 'direction', 'type': 'str'}, - 'detail_level': {'key': 'detailLevel', 'type': 'str'}, - 'hidden_property_paths': {'key': 'hiddenPropertyPaths', 'type': 'LoggingHiddenPropertyPath'}, - } - - def __init__( - self, - **kwargs - ): - super(LoggingRule, self).__init__(**kwargs) - self.action = kwargs['action'] - self.direction = kwargs['direction'] - self.detail_level = kwargs['detail_level'] - self.hidden_property_paths = kwargs.get('hidden_property_paths', None) - - -class LoggingRuleHiddenPropertyPaths(LoggingHiddenPropertyPath): - """LoggingRuleHiddenPropertyPaths. - - :param hidden_paths_on_request: - :type hidden_paths_on_request: list[str] - :param hidden_paths_on_response: - :type hidden_paths_on_response: list[str] - """ - - _attribute_map = { - 'hidden_paths_on_request': {'key': 'hiddenPathsOnRequest', 'type': '[str]'}, - 'hidden_paths_on_response': {'key': 'hiddenPathsOnResponse', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(LoggingRuleHiddenPropertyPaths, self).__init__(**kwargs) - - -class NotificationEndpoint(msrest.serialization.Model): - """NotificationEndpoint. - - :param notification_destination: - :type notification_destination: str - :param locations: - :type locations: list[str] - """ - - _attribute_map = { - 'notification_destination': {'key': 'notificationDestination', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(NotificationEndpoint, self).__init__(**kwargs) - self.notification_destination = kwargs.get('notification_destination', None) - self.locations = kwargs.get('locations', None) - - -class NotificationRegistration(Resource): - """The notification registration definition. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: - :type properties: ~provider_hub.models.NotificationRegistrationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'NotificationRegistrationProperties'}, - } - - def __init__( - self, - **kwargs - ): - super(NotificationRegistration, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class NotificationRegistrationArrayResponseWithContinuation(msrest.serialization.Model): - """NotificationRegistrationArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.NotificationRegistration] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[NotificationRegistration]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(NotificationRegistrationArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - -class NotificationRegistrationProperties(msrest.serialization.Model): - """NotificationRegistrationProperties. - - :param notification_mode: Possible values include: "NotSpecified", "EventHub", "WebHook". - :type notification_mode: str or ~provider_hub.models.NotificationMode - :param message_scope: Possible values include: "NotSpecified", "RegisteredSubscriptions". - :type message_scope: str or ~provider_hub.models.MessageScope - :param included_events: - :type included_events: list[str] - :param notification_endpoints: - :type notification_endpoints: list[~provider_hub.models.NotificationEndpoint] - """ - - _attribute_map = { - 'notification_mode': {'key': 'notificationMode', 'type': 'str'}, - 'message_scope': {'key': 'messageScope', 'type': 'str'}, - 'included_events': {'key': 'includedEvents', 'type': '[str]'}, - 'notification_endpoints': {'key': 'notificationEndpoints', 'type': '[NotificationEndpoint]'}, - } - - def __init__( - self, - **kwargs - ): - super(NotificationRegistrationProperties, self).__init__(**kwargs) - self.notification_mode = kwargs.get('notification_mode', None) - self.message_scope = kwargs.get('message_scope', None) - self.included_events = kwargs.get('included_events', None) - self.notification_endpoints = kwargs.get('notification_endpoints', None) - - -class NotificationRegistrationPropertiesautogenerated(NotificationRegistrationProperties): - """NotificationRegistrationPropertiesautogenerated. - - :param notification_mode: Possible values include: "NotSpecified", "EventHub", "WebHook". - :type notification_mode: str or ~provider_hub.models.NotificationMode - :param message_scope: Possible values include: "NotSpecified", "RegisteredSubscriptions". - :type message_scope: str or ~provider_hub.models.MessageScope - :param included_events: - :type included_events: list[str] - :param notification_endpoints: - :type notification_endpoints: list[~provider_hub.models.NotificationEndpoint] - """ - - _attribute_map = { - 'notification_mode': {'key': 'notificationMode', 'type': 'str'}, - 'message_scope': {'key': 'messageScope', 'type': 'str'}, - 'included_events': {'key': 'includedEvents', 'type': '[str]'}, - 'notification_endpoints': {'key': 'notificationEndpoints', 'type': '[NotificationEndpoint]'}, - } - - def __init__( - self, - **kwargs - ): - super(NotificationRegistrationPropertiesautogenerated, self).__init__(**kwargs) - - -class OperationsContent(Resource): - """OperationsContent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param name_properties_name: Name of the operation. - :type name_properties_name: str - :param is_data_action: Indicates whether the operation applies to data-plane. - :type is_data_action: bool - :param origin: Possible values include: "NotSpecified", "User", "System". - :type origin: str or ~provider_hub.models.OperationsDefinitionOrigin - :param display: Display information of the operation. - :type display: ~provider_hub.models.OperationsDisplayDefinition - :param action_type: Possible values include: "NotSpecified", "Internal". - :type action_type: str or ~provider_hub.models.OperationsDefinitionActionType - :param properties: Any object. - :type properties: object - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name_properties_name': {'key': 'properties.name', 'type': 'str'}, - 'is_data_action': {'key': 'properties.isDataAction', 'type': 'bool'}, - 'origin': {'key': 'properties.origin', 'type': 'str'}, - 'display': {'key': 'properties.display', 'type': 'OperationsDisplayDefinition'}, - 'action_type': {'key': 'properties.actionType', 'type': 'str'}, - 'properties': {'key': 'properties.properties', 'type': 'object'}, - } - - def __init__( - self, - **kwargs - ): - super(OperationsContent, self).__init__(**kwargs) - self.name_properties_name = kwargs.get('name_properties_name', None) - self.is_data_action = kwargs.get('is_data_action', None) - self.origin = kwargs.get('origin', None) - self.display = kwargs.get('display', None) - self.action_type = kwargs.get('action_type', None) - self.properties = kwargs.get('properties', None) - - -class OperationsDefinition(msrest.serialization.Model): - """Properties of an Operation. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. Name of the operation. - :type name: str - :param is_data_action: Indicates whether the operation applies to data-plane. - :type is_data_action: bool - :param origin: Possible values include: "NotSpecified", "User", "System". - :type origin: str or ~provider_hub.models.OperationsDefinitionOrigin - :param display: Required. Display information of the operation. - :type display: ~provider_hub.models.OperationsDisplayDefinition - :param action_type: Possible values include: "NotSpecified", "Internal". - :type action_type: str or ~provider_hub.models.OperationsDefinitionActionType - :param properties: Any object. - :type properties: object - """ - - _validation = { - 'name': {'required': True}, - 'display': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationsDisplayDefinition'}, - 'action_type': {'key': 'actionType', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__( - self, - **kwargs - ): - super(OperationsDefinition, self).__init__(**kwargs) - self.name = kwargs['name'] - self.is_data_action = kwargs.get('is_data_action', None) - self.origin = kwargs.get('origin', None) - self.display = kwargs['display'] - self.action_type = kwargs.get('action_type', None) - self.properties = kwargs.get('properties', None) - - -class OperationsDefinitionArrayResponseWithContinuation(msrest.serialization.Model): - """OperationsDefinitionArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.OperationsDefinition] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[OperationsDefinition]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(OperationsDefinitionArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - -class OperationsDisplayDefinition(msrest.serialization.Model): - """OperationsDisplayDefinition. - - All required parameters must be populated in order to send to Azure. - - :param provider: Required. - :type provider: str - :param resource: Required. - :type resource: str - :param operation: Required. - :type operation: str - :param description: Required. - :type description: str - """ - - _validation = { - 'provider': {'required': True}, - 'resource': {'required': True}, - 'operation': {'required': True}, - 'description': {'required': True}, - } - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(OperationsDisplayDefinition, self).__init__(**kwargs) - self.provider = kwargs['provider'] - self.resource = kwargs['resource'] - self.operation = kwargs['operation'] - self.description = kwargs['description'] - - -class OperationsDefinitionDisplay(OperationsDisplayDefinition): - """Display information of the operation. - - All required parameters must be populated in order to send to Azure. - - :param provider: Required. - :type provider: str - :param resource: Required. - :type resource: str - :param operation: Required. - :type operation: str - :param description: Required. - :type description: str - """ - - _validation = { - 'provider': {'required': True}, - 'resource': {'required': True}, - 'operation': {'required': True}, - 'description': {'required': True}, - } - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(OperationsDefinitionDisplay, self).__init__(**kwargs) - - -class OperationsPutContent(msrest.serialization.Model): - """OperationsPutContent. - - All required parameters must be populated in order to send to Azure. - - :param contents: Required. - :type contents: list[~provider_hub.models.OperationsDefinition] - """ - - _validation = { - 'contents': {'required': True}, - } - - _attribute_map = { - 'contents': {'key': 'contents', 'type': '[OperationsDefinition]'}, - } - - def __init__( - self, - **kwargs - ): - super(OperationsPutContent, self).__init__(**kwargs) - self.contents = kwargs['contents'] - - -class ProviderHubMetadata(msrest.serialization.Model): - """ProviderHubMetadata. - - :param provider_authorizations: - :type provider_authorizations: list[~provider_hub.models.ResourceProviderAuthorization] - :param provider_authentication: - :type provider_authentication: ~provider_hub.models.ResourceProviderAuthentication - :param third_party_provider_authorization: - :type third_party_provider_authorization: ~provider_hub.models.ThirdPartyProviderAuthorization - """ - - _attribute_map = { - 'provider_authorizations': {'key': 'providerAuthorizations', 'type': '[ResourceProviderAuthorization]'}, - 'provider_authentication': {'key': 'providerAuthentication', 'type': 'ResourceProviderAuthentication'}, - 'third_party_provider_authorization': {'key': 'thirdPartyProviderAuthorization', 'type': 'ThirdPartyProviderAuthorization'}, - } - - def __init__( - self, - **kwargs - ): - super(ProviderHubMetadata, self).__init__(**kwargs) - self.provider_authorizations = kwargs.get('provider_authorizations', None) - self.provider_authentication = kwargs.get('provider_authentication', None) - self.third_party_provider_authorization = kwargs.get('third_party_provider_authorization', None) - - -class ResourceProviderAuthentication(msrest.serialization.Model): - """ResourceProviderAuthentication. - - All required parameters must be populated in order to send to Azure. - - :param allowed_audiences: Required. - :type allowed_audiences: list[str] - """ - - _validation = { - 'allowed_audiences': {'required': True}, - } - - _attribute_map = { - 'allowed_audiences': {'key': 'allowedAudiences', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderAuthentication, self).__init__(**kwargs) - self.allowed_audiences = kwargs['allowed_audiences'] - - -class ProviderHubMetadataProviderAuthentication(ResourceProviderAuthentication): - """ProviderHubMetadataProviderAuthentication. - - All required parameters must be populated in order to send to Azure. - - :param allowed_audiences: Required. - :type allowed_audiences: list[str] - """ - - _validation = { - 'allowed_audiences': {'required': True}, - } - - _attribute_map = { - 'allowed_audiences': {'key': 'allowedAudiences', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(ProviderHubMetadataProviderAuthentication, self).__init__(**kwargs) - - -class ThirdPartyProviderAuthorization(msrest.serialization.Model): - """ThirdPartyProviderAuthorization. - - :param authorizations: - :type authorizations: list[~provider_hub.models.LightHouseAuthorization] - :param managed_by_tenant_id: - :type managed_by_tenant_id: str - """ - - _attribute_map = { - 'authorizations': {'key': 'authorizations', 'type': '[LightHouseAuthorization]'}, - 'managed_by_tenant_id': {'key': 'managedByTenantId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ThirdPartyProviderAuthorization, self).__init__(**kwargs) - self.authorizations = kwargs.get('authorizations', None) - self.managed_by_tenant_id = kwargs.get('managed_by_tenant_id', None) - - -class ProviderHubMetadataThirdPartyProviderAuthorization(ThirdPartyProviderAuthorization): - """ProviderHubMetadataThirdPartyProviderAuthorization. - - :param authorizations: - :type authorizations: list[~provider_hub.models.LightHouseAuthorization] - :param managed_by_tenant_id: - :type managed_by_tenant_id: str - """ - - _attribute_map = { - 'authorizations': {'key': 'authorizations', 'type': '[LightHouseAuthorization]'}, - 'managed_by_tenant_id': {'key': 'managedByTenantId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ProviderHubMetadataThirdPartyProviderAuthorization, self).__init__(**kwargs) - - -class ProviderRegistrationArrayResponseWithContinuation(msrest.serialization.Model): - """ProviderRegistrationArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.ProviderRegistration] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ProviderRegistration]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ProviderRegistrationArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - -class ResourceProviderManifestProperties(msrest.serialization.Model): - """ResourceProviderManifestProperties. - - :param provider_authentication: - :type provider_authentication: ~provider_hub.models.ResourceProviderAuthentication - :param provider_authorizations: - :type provider_authorizations: list[~provider_hub.models.ResourceProviderAuthorization] - :param namespace: - :type namespace: str - :param provider_version: - :type provider_version: str - :param provider_type: Possible values include: "NotSpecified", "Internal", "External", - "Hidden", "RegistrationFree", "LegacyRegistrationRequired", "TenantOnly", "AuthorizationFree". - :type provider_type: str or ~provider_hub.models.ResourceProviderType - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param management: - :type management: ~provider_hub.models.ResourceProviderManagement - :param capabilities: - :type capabilities: list[~provider_hub.models.ResourceProviderCapabilities] - :param metadata: Any object. - :type metadata: object - :param template_deployment_options: - :type template_deployment_options: ~provider_hub.models.TemplateDeploymentOptions - """ - - _attribute_map = { - 'provider_authentication': {'key': 'providerAuthentication', 'type': 'ResourceProviderAuthentication'}, - 'provider_authorizations': {'key': 'providerAuthorizations', 'type': '[ResourceProviderAuthorization]'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'provider_version': {'key': 'providerVersion', 'type': 'str'}, - 'provider_type': {'key': 'providerType', 'type': 'str'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'management': {'key': 'management', 'type': 'ResourceProviderManagement'}, - 'capabilities': {'key': 'capabilities', 'type': '[ResourceProviderCapabilities]'}, - 'metadata': {'key': 'metadata', 'type': 'object'}, - 'template_deployment_options': {'key': 'templateDeploymentOptions', 'type': 'TemplateDeploymentOptions'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderManifestProperties, self).__init__(**kwargs) - self.provider_authentication = kwargs.get('provider_authentication', None) - self.provider_authorizations = kwargs.get('provider_authorizations', None) - self.namespace = kwargs.get('namespace', None) - self.provider_version = kwargs.get('provider_version', None) - self.provider_type = kwargs.get('provider_type', None) - self.required_features = kwargs.get('required_features', None) - self.features_rule = kwargs.get('features_rule', None) - self.request_header_options = kwargs.get('request_header_options', None) - self.management = kwargs.get('management', None) - self.capabilities = kwargs.get('capabilities', None) - self.metadata = kwargs.get('metadata', None) - self.template_deployment_options = kwargs.get('template_deployment_options', None) - - -class ProviderRegistrationProperties(ResourceProviderManifestProperties): - """ProviderRegistrationProperties. - - :param provider_authentication: - :type provider_authentication: ~provider_hub.models.ResourceProviderAuthentication - :param provider_authorizations: - :type provider_authorizations: list[~provider_hub.models.ResourceProviderAuthorization] - :param namespace: - :type namespace: str - :param provider_version: - :type provider_version: str - :param provider_type: Possible values include: "NotSpecified", "Internal", "External", - "Hidden", "RegistrationFree", "LegacyRegistrationRequired", "TenantOnly", "AuthorizationFree". - :type provider_type: str or ~provider_hub.models.ResourceProviderType - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param management: - :type management: ~provider_hub.models.ResourceProviderManagement - :param capabilities: - :type capabilities: list[~provider_hub.models.ResourceProviderCapabilities] - :param metadata: Any object. - :type metadata: object - :param template_deployment_options: - :type template_deployment_options: ~provider_hub.models.TemplateDeploymentOptions - :param provider_hub_metadata: - :type provider_hub_metadata: ~provider_hub.models.ProviderHubMetadata - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param subscription_lifecycle_notification_specifications: - :type subscription_lifecycle_notification_specifications: - ~provider_hub.models.SubscriptionLifecycleNotificationSpecifications - """ - - _attribute_map = { - 'provider_authentication': {'key': 'providerAuthentication', 'type': 'ResourceProviderAuthentication'}, - 'provider_authorizations': {'key': 'providerAuthorizations', 'type': '[ResourceProviderAuthorization]'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'provider_version': {'key': 'providerVersion', 'type': 'str'}, - 'provider_type': {'key': 'providerType', 'type': 'str'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'management': {'key': 'management', 'type': 'ResourceProviderManagement'}, - 'capabilities': {'key': 'capabilities', 'type': '[ResourceProviderCapabilities]'}, - 'metadata': {'key': 'metadata', 'type': 'object'}, - 'template_deployment_options': {'key': 'templateDeploymentOptions', 'type': 'TemplateDeploymentOptions'}, - 'provider_hub_metadata': {'key': 'providerHubMetadata', 'type': 'ProviderHubMetadata'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'subscription_lifecycle_notification_specifications': {'key': 'subscriptionLifecycleNotificationSpecifications', 'type': 'SubscriptionLifecycleNotificationSpecifications'}, - } - - def __init__( - self, - **kwargs - ): - super(ProviderRegistrationProperties, self).__init__(**kwargs) - self.provider_hub_metadata = kwargs.get('provider_hub_metadata', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.subscription_lifecycle_notification_specifications = kwargs.get('subscription_lifecycle_notification_specifications', None) - - -class ProviderRegistrationPropertiesautogenerated(ProviderRegistrationProperties): - """ProviderRegistrationPropertiesautogenerated. - - :param provider_authentication: - :type provider_authentication: ~provider_hub.models.ResourceProviderAuthentication - :param provider_authorizations: - :type provider_authorizations: list[~provider_hub.models.ResourceProviderAuthorization] - :param namespace: - :type namespace: str - :param provider_version: - :type provider_version: str - :param provider_type: Possible values include: "NotSpecified", "Internal", "External", - "Hidden", "RegistrationFree", "LegacyRegistrationRequired", "TenantOnly", "AuthorizationFree". - :type provider_type: str or ~provider_hub.models.ResourceProviderType - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param management: - :type management: ~provider_hub.models.ResourceProviderManagement - :param capabilities: - :type capabilities: list[~provider_hub.models.ResourceProviderCapabilities] - :param metadata: Any object. - :type metadata: object - :param template_deployment_options: - :type template_deployment_options: ~provider_hub.models.TemplateDeploymentOptions - :param provider_hub_metadata: - :type provider_hub_metadata: ~provider_hub.models.ProviderHubMetadata - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param subscription_lifecycle_notification_specifications: - :type subscription_lifecycle_notification_specifications: - ~provider_hub.models.SubscriptionLifecycleNotificationSpecifications - """ - - _attribute_map = { - 'provider_authentication': {'key': 'providerAuthentication', 'type': 'ResourceProviderAuthentication'}, - 'provider_authorizations': {'key': 'providerAuthorizations', 'type': '[ResourceProviderAuthorization]'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'provider_version': {'key': 'providerVersion', 'type': 'str'}, - 'provider_type': {'key': 'providerType', 'type': 'str'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'management': {'key': 'management', 'type': 'ResourceProviderManagement'}, - 'capabilities': {'key': 'capabilities', 'type': '[ResourceProviderCapabilities]'}, - 'metadata': {'key': 'metadata', 'type': 'object'}, - 'template_deployment_options': {'key': 'templateDeploymentOptions', 'type': 'TemplateDeploymentOptions'}, - 'provider_hub_metadata': {'key': 'providerHubMetadata', 'type': 'ProviderHubMetadata'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'subscription_lifecycle_notification_specifications': {'key': 'subscriptionLifecycleNotificationSpecifications', 'type': 'SubscriptionLifecycleNotificationSpecifications'}, - } - - def __init__( - self, - **kwargs - ): - super(ProviderRegistrationPropertiesautogenerated, self).__init__(**kwargs) - - -class ProviderRegistrationPropertiesProviderHubMetadata(ProviderHubMetadata): - """ProviderRegistrationPropertiesProviderHubMetadata. - - :param provider_authorizations: - :type provider_authorizations: list[~provider_hub.models.ResourceProviderAuthorization] - :param provider_authentication: - :type provider_authentication: ~provider_hub.models.ResourceProviderAuthentication - :param third_party_provider_authorization: - :type third_party_provider_authorization: ~provider_hub.models.ThirdPartyProviderAuthorization - """ - - _attribute_map = { - 'provider_authorizations': {'key': 'providerAuthorizations', 'type': '[ResourceProviderAuthorization]'}, - 'provider_authentication': {'key': 'providerAuthentication', 'type': 'ResourceProviderAuthentication'}, - 'third_party_provider_authorization': {'key': 'thirdPartyProviderAuthorization', 'type': 'ThirdPartyProviderAuthorization'}, - } - - def __init__( - self, - **kwargs - ): - super(ProviderRegistrationPropertiesProviderHubMetadata, self).__init__(**kwargs) - - -class SubscriptionLifecycleNotificationSpecifications(msrest.serialization.Model): - """SubscriptionLifecycleNotificationSpecifications. - - :param subscription_state_override_actions: - :type subscription_state_override_actions: - list[~provider_hub.models.SubscriptionStateOverrideAction] - :param soft_delete_ttl: - :type soft_delete_ttl: ~datetime.timedelta - """ - - _attribute_map = { - 'subscription_state_override_actions': {'key': 'subscriptionStateOverrideActions', 'type': '[SubscriptionStateOverrideAction]'}, - 'soft_delete_ttl': {'key': 'softDeleteTTL', 'type': 'duration'}, - } - - def __init__( - self, - **kwargs - ): - super(SubscriptionLifecycleNotificationSpecifications, self).__init__(**kwargs) - self.subscription_state_override_actions = kwargs.get('subscription_state_override_actions', None) - self.soft_delete_ttl = kwargs.get('soft_delete_ttl', None) - - -class ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications(SubscriptionLifecycleNotificationSpecifications): - """ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications. - - :param subscription_state_override_actions: - :type subscription_state_override_actions: - list[~provider_hub.models.SubscriptionStateOverrideAction] - :param soft_delete_ttl: - :type soft_delete_ttl: ~datetime.timedelta - """ - - _attribute_map = { - 'subscription_state_override_actions': {'key': 'subscriptionStateOverrideActions', 'type': '[SubscriptionStateOverrideAction]'}, - 'soft_delete_ttl': {'key': 'softDeleteTTL', 'type': 'duration'}, - } - - def __init__( - self, - **kwargs - ): - super(ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications, self).__init__(**kwargs) - - -class ProxyResource(Resource): - """The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ProxyResource, self).__init__(**kwargs) - - -class RequestHeaderOptions(msrest.serialization.Model): - """RequestHeaderOptions. - - :param opt_in_headers: Possible values include: "NotSpecified", "SignedUserToken", - "ClientGroupMembership", "SignedAuxiliaryTokens", "UnboundedClientGroupMembership". - :type opt_in_headers: str or ~provider_hub.models.OptInHeaderType - """ - - _attribute_map = { - 'opt_in_headers': {'key': 'optInHeaders', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(RequestHeaderOptions, self).__init__(**kwargs) - self.opt_in_headers = kwargs.get('opt_in_headers', None) - - -class ReRegisterSubscriptionMetadata(msrest.serialization.Model): - """ReRegisterSubscriptionMetadata. - - All required parameters must be populated in order to send to Azure. - - :param enabled: Required. - :type enabled: bool - :param concurrency_limit: - :type concurrency_limit: int - """ - - _validation = { - 'enabled': {'required': True}, - } - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'concurrency_limit': {'key': 'concurrencyLimit', 'type': 'int'}, - } - - def __init__( - self, - **kwargs - ): - super(ReRegisterSubscriptionMetadata, self).__init__(**kwargs) - self.enabled = kwargs['enabled'] - self.concurrency_limit = kwargs.get('concurrency_limit', None) - - -class ResourceMovePolicy(msrest.serialization.Model): - """ResourceMovePolicy. - - :param validation_required: - :type validation_required: bool - :param cross_resource_group_move_enabled: - :type cross_resource_group_move_enabled: bool - :param cross_subscription_move_enabled: - :type cross_subscription_move_enabled: bool - """ - - _attribute_map = { - 'validation_required': {'key': 'validationRequired', 'type': 'bool'}, - 'cross_resource_group_move_enabled': {'key': 'crossResourceGroupMoveEnabled', 'type': 'bool'}, - 'cross_subscription_move_enabled': {'key': 'crossSubscriptionMoveEnabled', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceMovePolicy, self).__init__(**kwargs) - self.validation_required = kwargs.get('validation_required', None) - self.cross_resource_group_move_enabled = kwargs.get('cross_resource_group_move_enabled', None) - self.cross_subscription_move_enabled = kwargs.get('cross_subscription_move_enabled', None) - - -class ResourceProviderAuthorization(msrest.serialization.Model): - """ResourceProviderAuthorization. - - :param application_id: - :type application_id: str - :param role_definition_id: - :type role_definition_id: str - :param managed_by_role_definition_id: - :type managed_by_role_definition_id: str - """ - - _attribute_map = { - 'application_id': {'key': 'applicationId', 'type': 'str'}, - 'role_definition_id': {'key': 'roleDefinitionId', 'type': 'str'}, - 'managed_by_role_definition_id': {'key': 'managedByRoleDefinitionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderAuthorization, self).__init__(**kwargs) - self.application_id = kwargs.get('application_id', None) - self.role_definition_id = kwargs.get('role_definition_id', None) - self.managed_by_role_definition_id = kwargs.get('managed_by_role_definition_id', None) - - -class ResourceProviderCapabilities(msrest.serialization.Model): - """ResourceProviderCapabilities. - - All required parameters must be populated in order to send to Azure. - - :param quota_id: Required. - :type quota_id: str - :param effect: Required. Possible values include: "NotSpecified", "Allow", "Disallow". - :type effect: str or ~provider_hub.models.ResourceProviderCapabilitiesEffect - :param required_features: - :type required_features: list[str] - """ - - _validation = { - 'quota_id': {'required': True}, - 'effect': {'required': True}, - } - - _attribute_map = { - 'quota_id': {'key': 'quotaId', 'type': 'str'}, - 'effect': {'key': 'effect', 'type': 'str'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderCapabilities, self).__init__(**kwargs) - self.quota_id = kwargs['quota_id'] - self.effect = kwargs['effect'] - self.required_features = kwargs.get('required_features', None) - - -class ResourceProviderEndpoint(msrest.serialization.Model): - """ResourceProviderEndpoint. - - :param enabled: - :type enabled: bool - :param api_versions: - :type api_versions: list[str] - :param endpoint_uri: - :type endpoint_uri: str - :param locations: - :type locations: list[str] - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param timeout: - :type timeout: ~datetime.timedelta - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'endpoint_uri': {'key': 'endpointUri', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'timeout': {'key': 'timeout', 'type': 'duration'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderEndpoint, self).__init__(**kwargs) - self.enabled = kwargs.get('enabled', None) - self.api_versions = kwargs.get('api_versions', None) - self.endpoint_uri = kwargs.get('endpoint_uri', None) - self.locations = kwargs.get('locations', None) - self.required_features = kwargs.get('required_features', None) - self.features_rule = kwargs.get('features_rule', None) - self.timeout = kwargs.get('timeout', None) - - -class ResourceProviderEndpointFeaturesRule(FeaturesRule): - """ResourceProviderEndpointFeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderEndpointFeaturesRule, self).__init__(**kwargs) - - -class ResourceProviderManagement(msrest.serialization.Model): - """ResourceProviderManagement. - - :param schema_owners: - :type schema_owners: list[str] - :param manifest_owners: - :type manifest_owners: list[str] - :param incident_routing_service: - :type incident_routing_service: str - :param incident_routing_team: - :type incident_routing_team: str - :param incident_contact_email: - :type incident_contact_email: str - :param service_tree_infos: - :type service_tree_infos: list[~provider_hub.models.ServiceTreeInfo] - :param resource_access_policy: Possible values include: "NotSpecified", "AcisReadAllowed", - "AcisActionAllowed". - :type resource_access_policy: str or - ~provider_hub.models.ResourceProviderManagementResourceAccessPolicy - :param resource_access_roles: - :type resource_access_roles: list[object] - """ - - _attribute_map = { - 'schema_owners': {'key': 'schemaOwners', 'type': '[str]'}, - 'manifest_owners': {'key': 'manifestOwners', 'type': '[str]'}, - 'incident_routing_service': {'key': 'incidentRoutingService', 'type': 'str'}, - 'incident_routing_team': {'key': 'incidentRoutingTeam', 'type': 'str'}, - 'incident_contact_email': {'key': 'incidentContactEmail', 'type': 'str'}, - 'service_tree_infos': {'key': 'serviceTreeInfos', 'type': '[ServiceTreeInfo]'}, - 'resource_access_policy': {'key': 'resourceAccessPolicy', 'type': 'str'}, - 'resource_access_roles': {'key': 'resourceAccessRoles', 'type': '[object]'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderManagement, self).__init__(**kwargs) - self.schema_owners = kwargs.get('schema_owners', None) - self.manifest_owners = kwargs.get('manifest_owners', None) - self.incident_routing_service = kwargs.get('incident_routing_service', None) - self.incident_routing_team = kwargs.get('incident_routing_team', None) - self.incident_contact_email = kwargs.get('incident_contact_email', None) - self.service_tree_infos = kwargs.get('service_tree_infos', None) - self.resource_access_policy = kwargs.get('resource_access_policy', None) - self.resource_access_roles = kwargs.get('resource_access_roles', None) - - -class ResourceProviderManifest(msrest.serialization.Model): - """ResourceProviderManifest. - - :param provider_authentication: - :type provider_authentication: ~provider_hub.models.ResourceProviderAuthentication - :param provider_authorizations: - :type provider_authorizations: list[~provider_hub.models.ResourceProviderAuthorization] - :param namespace: - :type namespace: str - :param provider_version: - :type provider_version: str - :param provider_type: Possible values include: "NotSpecified", "Internal", "External", - "Hidden", "RegistrationFree", "LegacyRegistrationRequired", "TenantOnly", "AuthorizationFree". - :type provider_type: str or ~provider_hub.models.ResourceProviderType - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param resource_types: - :type resource_types: list[~provider_hub.models.ResourceType] - :param management: - :type management: ~provider_hub.models.ResourceProviderManagement - :param capabilities: - :type capabilities: list[~provider_hub.models.ResourceProviderCapabilities] - :param metadata: Any object. - :type metadata: object - :param global_notification_endpoints: - :type global_notification_endpoints: list[~provider_hub.models.ResourceProviderEndpoint] - :param re_register_subscription_metadata: - :type re_register_subscription_metadata: ~provider_hub.models.ReRegisterSubscriptionMetadata - """ - - _attribute_map = { - 'provider_authentication': {'key': 'providerAuthentication', 'type': 'ResourceProviderAuthentication'}, - 'provider_authorizations': {'key': 'providerAuthorizations', 'type': '[ResourceProviderAuthorization]'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'provider_version': {'key': 'providerVersion', 'type': 'str'}, - 'provider_type': {'key': 'providerType', 'type': 'str'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'resource_types': {'key': 'resourceTypes', 'type': '[ResourceType]'}, - 'management': {'key': 'management', 'type': 'ResourceProviderManagement'}, - 'capabilities': {'key': 'capabilities', 'type': '[ResourceProviderCapabilities]'}, - 'metadata': {'key': 'metadata', 'type': 'object'}, - 'global_notification_endpoints': {'key': 'globalNotificationEndpoints', 'type': '[ResourceProviderEndpoint]'}, - 're_register_subscription_metadata': {'key': 'reRegisterSubscriptionMetadata', 'type': 'ReRegisterSubscriptionMetadata'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderManifest, self).__init__(**kwargs) - self.provider_authentication = kwargs.get('provider_authentication', None) - self.provider_authorizations = kwargs.get('provider_authorizations', None) - self.namespace = kwargs.get('namespace', None) - self.provider_version = kwargs.get('provider_version', None) - self.provider_type = kwargs.get('provider_type', None) - self.required_features = kwargs.get('required_features', None) - self.features_rule = kwargs.get('features_rule', None) - self.request_header_options = kwargs.get('request_header_options', None) - self.resource_types = kwargs.get('resource_types', None) - self.management = kwargs.get('management', None) - self.capabilities = kwargs.get('capabilities', None) - self.metadata = kwargs.get('metadata', None) - self.global_notification_endpoints = kwargs.get('global_notification_endpoints', None) - self.re_register_subscription_metadata = kwargs.get('re_register_subscription_metadata', None) - - -class ResourceProviderManifestFeaturesRule(FeaturesRule): - """ResourceProviderManifestFeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderManifestFeaturesRule, self).__init__(**kwargs) - - -class ResourceProviderManifestManagement(ResourceProviderManagement): - """ResourceProviderManifestManagement. - - :param schema_owners: - :type schema_owners: list[str] - :param manifest_owners: - :type manifest_owners: list[str] - :param incident_routing_service: - :type incident_routing_service: str - :param incident_routing_team: - :type incident_routing_team: str - :param incident_contact_email: - :type incident_contact_email: str - :param service_tree_infos: - :type service_tree_infos: list[~provider_hub.models.ServiceTreeInfo] - :param resource_access_policy: Possible values include: "NotSpecified", "AcisReadAllowed", - "AcisActionAllowed". - :type resource_access_policy: str or - ~provider_hub.models.ResourceProviderManagementResourceAccessPolicy - :param resource_access_roles: - :type resource_access_roles: list[object] - """ - - _attribute_map = { - 'schema_owners': {'key': 'schemaOwners', 'type': '[str]'}, - 'manifest_owners': {'key': 'manifestOwners', 'type': '[str]'}, - 'incident_routing_service': {'key': 'incidentRoutingService', 'type': 'str'}, - 'incident_routing_team': {'key': 'incidentRoutingTeam', 'type': 'str'}, - 'incident_contact_email': {'key': 'incidentContactEmail', 'type': 'str'}, - 'service_tree_infos': {'key': 'serviceTreeInfos', 'type': '[ServiceTreeInfo]'}, - 'resource_access_policy': {'key': 'resourceAccessPolicy', 'type': 'str'}, - 'resource_access_roles': {'key': 'resourceAccessRoles', 'type': '[object]'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderManifestManagement, self).__init__(**kwargs) - - -class ResourceProviderManifestPropertiesFeaturesRule(FeaturesRule): - """ResourceProviderManifestPropertiesFeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderManifestPropertiesFeaturesRule, self).__init__(**kwargs) - - -class ResourceProviderManifestPropertiesManagement(ResourceProviderManagement): - """ResourceProviderManifestPropertiesManagement. - - :param schema_owners: - :type schema_owners: list[str] - :param manifest_owners: - :type manifest_owners: list[str] - :param incident_routing_service: - :type incident_routing_service: str - :param incident_routing_team: - :type incident_routing_team: str - :param incident_contact_email: - :type incident_contact_email: str - :param service_tree_infos: - :type service_tree_infos: list[~provider_hub.models.ServiceTreeInfo] - :param resource_access_policy: Possible values include: "NotSpecified", "AcisReadAllowed", - "AcisActionAllowed". - :type resource_access_policy: str or - ~provider_hub.models.ResourceProviderManagementResourceAccessPolicy - :param resource_access_roles: - :type resource_access_roles: list[object] - """ - - _attribute_map = { - 'schema_owners': {'key': 'schemaOwners', 'type': '[str]'}, - 'manifest_owners': {'key': 'manifestOwners', 'type': '[str]'}, - 'incident_routing_service': {'key': 'incidentRoutingService', 'type': 'str'}, - 'incident_routing_team': {'key': 'incidentRoutingTeam', 'type': 'str'}, - 'incident_contact_email': {'key': 'incidentContactEmail', 'type': 'str'}, - 'service_tree_infos': {'key': 'serviceTreeInfos', 'type': '[ServiceTreeInfo]'}, - 'resource_access_policy': {'key': 'resourceAccessPolicy', 'type': 'str'}, - 'resource_access_roles': {'key': 'resourceAccessRoles', 'type': '[object]'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderManifestPropertiesManagement, self).__init__(**kwargs) - - -class ResourceProviderManifestPropertiesProviderAuthentication(ResourceProviderAuthentication): - """ResourceProviderManifestPropertiesProviderAuthentication. - - All required parameters must be populated in order to send to Azure. - - :param allowed_audiences: Required. - :type allowed_audiences: list[str] - """ - - _validation = { - 'allowed_audiences': {'required': True}, - } - - _attribute_map = { - 'allowed_audiences': {'key': 'allowedAudiences', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderManifestPropertiesProviderAuthentication, self).__init__(**kwargs) - - -class ResourceProviderManifestPropertiesRequestHeaderOptions(RequestHeaderOptions): - """ResourceProviderManifestPropertiesRequestHeaderOptions. - - :param opt_in_headers: Possible values include: "NotSpecified", "SignedUserToken", - "ClientGroupMembership", "SignedAuxiliaryTokens", "UnboundedClientGroupMembership". - :type opt_in_headers: str or ~provider_hub.models.OptInHeaderType - """ - - _attribute_map = { - 'opt_in_headers': {'key': 'optInHeaders', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderManifestPropertiesRequestHeaderOptions, self).__init__(**kwargs) - - -class TemplateDeploymentOptions(msrest.serialization.Model): - """TemplateDeploymentOptions. - - :param preflight_supported: - :type preflight_supported: bool - :param preflight_options: - :type preflight_options: list[str or ~provider_hub.models.PreflightOption] - """ - - _attribute_map = { - 'preflight_supported': {'key': 'preflightSupported', 'type': 'bool'}, - 'preflight_options': {'key': 'preflightOptions', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(TemplateDeploymentOptions, self).__init__(**kwargs) - self.preflight_supported = kwargs.get('preflight_supported', None) - self.preflight_options = kwargs.get('preflight_options', None) - - -class ResourceProviderManifestPropertiesTemplateDeploymentOptions(TemplateDeploymentOptions): - """ResourceProviderManifestPropertiesTemplateDeploymentOptions. - - :param preflight_supported: - :type preflight_supported: bool - :param preflight_options: - :type preflight_options: list[str or ~provider_hub.models.PreflightOption] - """ - - _attribute_map = { - 'preflight_supported': {'key': 'preflightSupported', 'type': 'bool'}, - 'preflight_options': {'key': 'preflightOptions', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderManifestPropertiesTemplateDeploymentOptions, self).__init__(**kwargs) - - -class ResourceProviderManifestProviderAuthentication(ResourceProviderAuthentication): - """ResourceProviderManifestProviderAuthentication. - - All required parameters must be populated in order to send to Azure. - - :param allowed_audiences: Required. - :type allowed_audiences: list[str] - """ - - _validation = { - 'allowed_audiences': {'required': True}, - } - - _attribute_map = { - 'allowed_audiences': {'key': 'allowedAudiences', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderManifestProviderAuthentication, self).__init__(**kwargs) - - -class ResourceProviderManifestRequestHeaderOptions(RequestHeaderOptions): - """ResourceProviderManifestRequestHeaderOptions. - - :param opt_in_headers: Possible values include: "NotSpecified", "SignedUserToken", - "ClientGroupMembership", "SignedAuxiliaryTokens", "UnboundedClientGroupMembership". - :type opt_in_headers: str or ~provider_hub.models.OptInHeaderType - """ - - _attribute_map = { - 'opt_in_headers': {'key': 'optInHeaders', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderManifestRequestHeaderOptions, self).__init__(**kwargs) - - -class ResourceProviderManifestReRegisterSubscriptionMetadata(ReRegisterSubscriptionMetadata): - """ResourceProviderManifestReRegisterSubscriptionMetadata. - - All required parameters must be populated in order to send to Azure. - - :param enabled: Required. - :type enabled: bool - :param concurrency_limit: - :type concurrency_limit: int - """ - - _validation = { - 'enabled': {'required': True}, - } - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'concurrency_limit': {'key': 'concurrencyLimit', 'type': 'int'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceProviderManifestReRegisterSubscriptionMetadata, self).__init__(**kwargs) - - -class ResourceType(msrest.serialization.Model): - """ResourceType. - - :param name: - :type name: str - :param routing_type: Possible values include: "Default", "ProxyOnly", "HostBased", - "Extension", "Tenant", "Fanout", "LocationBased", "Failover", "CascadeExtension". - :type routing_type: str or ~provider_hub.models.RoutingType - :param resource_validation: Possible values include: "NotSpecified", "ReservedWords", - "ProfaneWords". - :type resource_validation: str or ~provider_hub.models.ResourceValidation - :param allowed_unauthorized_actions: - :type allowed_unauthorized_actions: list[str] - :param authorization_action_mappings: - :type authorization_action_mappings: list[~provider_hub.models.AuthorizationActionMapping] - :param linked_access_checks: - :type linked_access_checks: list[~provider_hub.models.LinkedAccessCheck] - :param default_api_version: - :type default_api_version: str - :param logging_rules: - :type logging_rules: list[~provider_hub.models.LoggingRule] - :param throttling_rules: - :type throttling_rules: list[~provider_hub.models.ThrottlingRule] - :param endpoints: - :type endpoints: list[~provider_hub.models.ResourceProviderEndpoint] - :param marketplace_type: Possible values include: "NotSpecified", "AddOn", "Bypass", "Store". - :type marketplace_type: str or ~provider_hub.models.ResourceTypeMarketplaceType - :param identity_management: - :type identity_management: ~provider_hub.models.IdentityManagement - :param metadata: Any object. - :type metadata: object - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param subscription_state_rules: - :type subscription_state_rules: list[~provider_hub.models.SubscriptionStateRule] - :param service_tree_infos: - :type service_tree_infos: list[~provider_hub.models.ServiceTreeInfo] - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param sku_link: - :type sku_link: str - :param disallowed_action_verbs: - :type disallowed_action_verbs: list[str] - :param template_deployment_policy: - :type template_deployment_policy: ~provider_hub.models.TemplateDeploymentPolicy - :param extended_locations: - :type extended_locations: list[~provider_hub.models.ExtendedLocationOptions] - :param linked_operation_rules: - :type linked_operation_rules: list[~provider_hub.models.LinkedOperationRule] - :param resource_deletion_policy: Possible values include: "NotSpecified", "Cascade", "Force". - :type resource_deletion_policy: str or ~provider_hub.models.ManifestResourceDeletionPolicy - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'routing_type': {'key': 'routingType', 'type': 'str'}, - 'resource_validation': {'key': 'resourceValidation', 'type': 'str'}, - 'allowed_unauthorized_actions': {'key': 'allowedUnauthorizedActions', 'type': '[str]'}, - 'authorization_action_mappings': {'key': 'authorizationActionMappings', 'type': '[AuthorizationActionMapping]'}, - 'linked_access_checks': {'key': 'linkedAccessChecks', 'type': '[LinkedAccessCheck]'}, - 'default_api_version': {'key': 'defaultApiVersion', 'type': 'str'}, - 'logging_rules': {'key': 'loggingRules', 'type': '[LoggingRule]'}, - 'throttling_rules': {'key': 'throttlingRules', 'type': '[ThrottlingRule]'}, - 'endpoints': {'key': 'endpoints', 'type': '[ResourceProviderEndpoint]'}, - 'marketplace_type': {'key': 'marketplaceType', 'type': 'str'}, - 'identity_management': {'key': 'identityManagement', 'type': 'IdentityManagement'}, - 'metadata': {'key': 'metadata', 'type': 'object'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'subscription_state_rules': {'key': 'subscriptionStateRules', 'type': '[SubscriptionStateRule]'}, - 'service_tree_infos': {'key': 'serviceTreeInfos', 'type': '[ServiceTreeInfo]'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'sku_link': {'key': 'skuLink', 'type': 'str'}, - 'disallowed_action_verbs': {'key': 'disallowedActionVerbs', 'type': '[str]'}, - 'template_deployment_policy': {'key': 'templateDeploymentPolicy', 'type': 'TemplateDeploymentPolicy'}, - 'extended_locations': {'key': 'extendedLocations', 'type': '[ExtendedLocationOptions]'}, - 'linked_operation_rules': {'key': 'linkedOperationRules', 'type': '[LinkedOperationRule]'}, - 'resource_deletion_policy': {'key': 'resourceDeletionPolicy', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceType, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.routing_type = kwargs.get('routing_type', None) - self.resource_validation = kwargs.get('resource_validation', None) - self.allowed_unauthorized_actions = kwargs.get('allowed_unauthorized_actions', None) - self.authorization_action_mappings = kwargs.get('authorization_action_mappings', None) - self.linked_access_checks = kwargs.get('linked_access_checks', None) - self.default_api_version = kwargs.get('default_api_version', None) - self.logging_rules = kwargs.get('logging_rules', None) - self.throttling_rules = kwargs.get('throttling_rules', None) - self.endpoints = kwargs.get('endpoints', None) - self.marketplace_type = kwargs.get('marketplace_type', None) - self.identity_management = kwargs.get('identity_management', None) - self.metadata = kwargs.get('metadata', None) - self.required_features = kwargs.get('required_features', None) - self.features_rule = kwargs.get('features_rule', None) - self.subscription_state_rules = kwargs.get('subscription_state_rules', None) - self.service_tree_infos = kwargs.get('service_tree_infos', None) - self.request_header_options = kwargs.get('request_header_options', None) - self.sku_link = kwargs.get('sku_link', None) - self.disallowed_action_verbs = kwargs.get('disallowed_action_verbs', None) - self.template_deployment_policy = kwargs.get('template_deployment_policy', None) - self.extended_locations = kwargs.get('extended_locations', None) - self.linked_operation_rules = kwargs.get('linked_operation_rules', None) - self.resource_deletion_policy = kwargs.get('resource_deletion_policy', None) - - -class ResourceTypeEndpoint(msrest.serialization.Model): - """ResourceTypeEndpoint. - - :param enabled: - :type enabled: bool - :param api_versions: - :type api_versions: list[str] - :param locations: - :type locations: list[str] - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param extensions: - :type extensions: list[~provider_hub.models.ResourceTypeExtension] - :param timeout: - :type timeout: ~datetime.timedelta - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'extensions': {'key': 'extensions', 'type': '[ResourceTypeExtension]'}, - 'timeout': {'key': 'timeout', 'type': 'duration'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeEndpoint, self).__init__(**kwargs) - self.enabled = kwargs.get('enabled', None) - self.api_versions = kwargs.get('api_versions', None) - self.locations = kwargs.get('locations', None) - self.required_features = kwargs.get('required_features', None) - self.features_rule = kwargs.get('features_rule', None) - self.extensions = kwargs.get('extensions', None) - self.timeout = kwargs.get('timeout', None) - - -class ResourceTypeEndpointFeaturesRule(FeaturesRule): - """ResourceTypeEndpointFeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeEndpointFeaturesRule, self).__init__(**kwargs) - - -class ResourceTypeExtension(msrest.serialization.Model): - """ResourceTypeExtension. - - :param endpoint_uri: - :type endpoint_uri: str - :param extension_categories: - :type extension_categories: list[str or ~provider_hub.models.ExtensionCategory] - :param timeout: - :type timeout: ~datetime.timedelta - """ - - _attribute_map = { - 'endpoint_uri': {'key': 'endpointUri', 'type': 'str'}, - 'extension_categories': {'key': 'extensionCategories', 'type': '[str]'}, - 'timeout': {'key': 'timeout', 'type': 'duration'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeExtension, self).__init__(**kwargs) - self.endpoint_uri = kwargs.get('endpoint_uri', None) - self.extension_categories = kwargs.get('extension_categories', None) - self.timeout = kwargs.get('timeout', None) - - -class ResourceTypeExtensionOptions(msrest.serialization.Model): - """ResourceTypeExtensionOptions. - - :param resource_creation_begin: - :type resource_creation_begin: ~provider_hub.models.ExtensionOptions - """ - - _attribute_map = { - 'resource_creation_begin': {'key': 'resourceCreationBegin', 'type': 'ExtensionOptions'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeExtensionOptions, self).__init__(**kwargs) - self.resource_creation_begin = kwargs.get('resource_creation_begin', None) - - -class ResourceTypeExtensionOptionsResourceCreationBegin(ExtensionOptions): - """ResourceTypeExtensionOptionsResourceCreationBegin. - - :param request: - :type request: list[str or ~provider_hub.models.ExtensionOptionType] - :param response: - :type response: list[str or ~provider_hub.models.ExtensionOptionType] - """ - - _attribute_map = { - 'request': {'key': 'request', 'type': '[str]'}, - 'response': {'key': 'response', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeExtensionOptionsResourceCreationBegin, self).__init__(**kwargs) - - -class ResourceTypeFeaturesRule(FeaturesRule): - """ResourceTypeFeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeFeaturesRule, self).__init__(**kwargs) - - -class ResourceTypeIdentityManagement(IdentityManagement): - """ResourceTypeIdentityManagement. - - :param type: Possible values include: "NotSpecified", "SystemAssigned", "UserAssigned", - "Actor", "DelegatedResourceIdentity". - :type type: str or ~provider_hub.models.IdentityManagementTypes - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeIdentityManagement, self).__init__(**kwargs) - - -class ResourceTypeRegistration(Resource): - """ResourceTypeRegistration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: - :type properties: ~provider_hub.models.ResourceTypeRegistrationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceTypeRegistrationProperties'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeRegistration, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ResourceTypeRegistrationArrayResponseWithContinuation(msrest.serialization.Model): - """ResourceTypeRegistrationArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.ResourceTypeRegistration] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ResourceTypeRegistration]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeRegistrationArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - -class ResourceTypeRegistrationProperties(msrest.serialization.Model): - """ResourceTypeRegistrationProperties. - - :param routing_type: Possible values include: "Default", "ProxyOnly", "HostBased", - "Extension", "Tenant", "Fanout", "LocationBased", "Failover", "CascadeExtension". - :type routing_type: str or ~provider_hub.models.RoutingType - :param regionality: Possible values include: "NotSpecified", "Global", "Regional". - :type regionality: str or ~provider_hub.models.Regionality - :param endpoints: - :type endpoints: list[~provider_hub.models.ResourceTypeEndpoint] - :param extension_options: - :type extension_options: ~provider_hub.models.ResourceTypeExtensionOptions - :param marketplace_type: Possible values include: "NotSpecified", "AddOn", "Bypass", "Store". - :type marketplace_type: str or - ~provider_hub.models.ResourceTypeRegistrationPropertiesMarketplaceType - :param swagger_specifications: - :type swagger_specifications: list[~provider_hub.models.SwaggerSpecification] - :param allowed_unauthorized_actions: - :type allowed_unauthorized_actions: list[str] - :param authorization_action_mappings: - :type authorization_action_mappings: list[~provider_hub.models.AuthorizationActionMapping] - :param linked_access_checks: - :type linked_access_checks: list[~provider_hub.models.LinkedAccessCheck] - :param default_api_version: - :type default_api_version: str - :param logging_rules: - :type logging_rules: list[~provider_hub.models.LoggingRule] - :param throttling_rules: - :type throttling_rules: list[~provider_hub.models.ThrottlingRule] - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param enable_async_operation: - :type enable_async_operation: bool - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param enable_third_party_s2s: - :type enable_third_party_s2s: bool - :param subscription_lifecycle_notification_specifications: - :type subscription_lifecycle_notification_specifications: - ~provider_hub.models.SubscriptionLifecycleNotificationSpecifications - :param is_pure_proxy: - :type is_pure_proxy: bool - :param identity_management: - :type identity_management: ~provider_hub.models.IdentityManagementProperties - :param check_name_availability_specifications: - :type check_name_availability_specifications: - ~provider_hub.models.CheckNameAvailabilitySpecifications - :param disallowed_action_verbs: - :type disallowed_action_verbs: list[str] - :param service_tree_infos: - :type service_tree_infos: list[~provider_hub.models.ServiceTreeInfo] - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param subscription_state_rules: - :type subscription_state_rules: list[~provider_hub.models.SubscriptionStateRule] - :param template_deployment_options: - :type template_deployment_options: ~provider_hub.models.TemplateDeploymentOptions - :param extended_locations: - :type extended_locations: list[~provider_hub.models.ExtendedLocationOptions] - :param resource_move_policy: - :type resource_move_policy: ~provider_hub.models.ResourceMovePolicy - :param resource_deletion_policy: Possible values include: "NotSpecified", "CascadeDeleteAll", - "CascadeDeleteProxyOnlyChildren". - :type resource_deletion_policy: str or ~provider_hub.models.ResourceDeletionPolicy - """ - - _attribute_map = { - 'routing_type': {'key': 'routingType', 'type': 'str'}, - 'regionality': {'key': 'regionality', 'type': 'str'}, - 'endpoints': {'key': 'endpoints', 'type': '[ResourceTypeEndpoint]'}, - 'extension_options': {'key': 'extensionOptions', 'type': 'ResourceTypeExtensionOptions'}, - 'marketplace_type': {'key': 'marketplaceType', 'type': 'str'}, - 'swagger_specifications': {'key': 'swaggerSpecifications', 'type': '[SwaggerSpecification]'}, - 'allowed_unauthorized_actions': {'key': 'allowedUnauthorizedActions', 'type': '[str]'}, - 'authorization_action_mappings': {'key': 'authorizationActionMappings', 'type': '[AuthorizationActionMapping]'}, - 'linked_access_checks': {'key': 'linkedAccessChecks', 'type': '[LinkedAccessCheck]'}, - 'default_api_version': {'key': 'defaultApiVersion', 'type': 'str'}, - 'logging_rules': {'key': 'loggingRules', 'type': '[LoggingRule]'}, - 'throttling_rules': {'key': 'throttlingRules', 'type': '[ThrottlingRule]'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'enable_async_operation': {'key': 'enableAsyncOperation', 'type': 'bool'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'enable_third_party_s2s': {'key': 'enableThirdPartyS2S', 'type': 'bool'}, - 'subscription_lifecycle_notification_specifications': {'key': 'subscriptionLifecycleNotificationSpecifications', 'type': 'SubscriptionLifecycleNotificationSpecifications'}, - 'is_pure_proxy': {'key': 'isPureProxy', 'type': 'bool'}, - 'identity_management': {'key': 'identityManagement', 'type': 'IdentityManagementProperties'}, - 'check_name_availability_specifications': {'key': 'checkNameAvailabilitySpecifications', 'type': 'CheckNameAvailabilitySpecifications'}, - 'disallowed_action_verbs': {'key': 'disallowedActionVerbs', 'type': '[str]'}, - 'service_tree_infos': {'key': 'serviceTreeInfos', 'type': '[ServiceTreeInfo]'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'subscription_state_rules': {'key': 'subscriptionStateRules', 'type': '[SubscriptionStateRule]'}, - 'template_deployment_options': {'key': 'templateDeploymentOptions', 'type': 'TemplateDeploymentOptions'}, - 'extended_locations': {'key': 'extendedLocations', 'type': '[ExtendedLocationOptions]'}, - 'resource_move_policy': {'key': 'resourceMovePolicy', 'type': 'ResourceMovePolicy'}, - 'resource_deletion_policy': {'key': 'resourceDeletionPolicy', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeRegistrationProperties, self).__init__(**kwargs) - self.routing_type = kwargs.get('routing_type', None) - self.regionality = kwargs.get('regionality', None) - self.endpoints = kwargs.get('endpoints', None) - self.extension_options = kwargs.get('extension_options', None) - self.marketplace_type = kwargs.get('marketplace_type', None) - self.swagger_specifications = kwargs.get('swagger_specifications', None) - self.allowed_unauthorized_actions = kwargs.get('allowed_unauthorized_actions', None) - self.authorization_action_mappings = kwargs.get('authorization_action_mappings', None) - self.linked_access_checks = kwargs.get('linked_access_checks', None) - self.default_api_version = kwargs.get('default_api_version', None) - self.logging_rules = kwargs.get('logging_rules', None) - self.throttling_rules = kwargs.get('throttling_rules', None) - self.required_features = kwargs.get('required_features', None) - self.features_rule = kwargs.get('features_rule', None) - self.enable_async_operation = kwargs.get('enable_async_operation', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.enable_third_party_s2s = kwargs.get('enable_third_party_s2s', None) - self.subscription_lifecycle_notification_specifications = kwargs.get('subscription_lifecycle_notification_specifications', None) - self.is_pure_proxy = kwargs.get('is_pure_proxy', None) - self.identity_management = kwargs.get('identity_management', None) - self.check_name_availability_specifications = kwargs.get('check_name_availability_specifications', None) - self.disallowed_action_verbs = kwargs.get('disallowed_action_verbs', None) - self.service_tree_infos = kwargs.get('service_tree_infos', None) - self.request_header_options = kwargs.get('request_header_options', None) - self.subscription_state_rules = kwargs.get('subscription_state_rules', None) - self.template_deployment_options = kwargs.get('template_deployment_options', None) - self.extended_locations = kwargs.get('extended_locations', None) - self.resource_move_policy = kwargs.get('resource_move_policy', None) - self.resource_deletion_policy = kwargs.get('resource_deletion_policy', None) - - -class ResourceTypeRegistrationPropertiesautogenerated(ResourceTypeRegistrationProperties): - """ResourceTypeRegistrationPropertiesautogenerated. - - :param routing_type: Possible values include: "Default", "ProxyOnly", "HostBased", - "Extension", "Tenant", "Fanout", "LocationBased", "Failover", "CascadeExtension". - :type routing_type: str or ~provider_hub.models.RoutingType - :param regionality: Possible values include: "NotSpecified", "Global", "Regional". - :type regionality: str or ~provider_hub.models.Regionality - :param endpoints: - :type endpoints: list[~provider_hub.models.ResourceTypeEndpoint] - :param extension_options: - :type extension_options: ~provider_hub.models.ResourceTypeExtensionOptions - :param marketplace_type: Possible values include: "NotSpecified", "AddOn", "Bypass", "Store". - :type marketplace_type: str or - ~provider_hub.models.ResourceTypeRegistrationPropertiesMarketplaceType - :param swagger_specifications: - :type swagger_specifications: list[~provider_hub.models.SwaggerSpecification] - :param allowed_unauthorized_actions: - :type allowed_unauthorized_actions: list[str] - :param authorization_action_mappings: - :type authorization_action_mappings: list[~provider_hub.models.AuthorizationActionMapping] - :param linked_access_checks: - :type linked_access_checks: list[~provider_hub.models.LinkedAccessCheck] - :param default_api_version: - :type default_api_version: str - :param logging_rules: - :type logging_rules: list[~provider_hub.models.LoggingRule] - :param throttling_rules: - :type throttling_rules: list[~provider_hub.models.ThrottlingRule] - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param enable_async_operation: - :type enable_async_operation: bool - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param enable_third_party_s2s: - :type enable_third_party_s2s: bool - :param subscription_lifecycle_notification_specifications: - :type subscription_lifecycle_notification_specifications: - ~provider_hub.models.SubscriptionLifecycleNotificationSpecifications - :param is_pure_proxy: - :type is_pure_proxy: bool - :param identity_management: - :type identity_management: ~provider_hub.models.IdentityManagementProperties - :param check_name_availability_specifications: - :type check_name_availability_specifications: - ~provider_hub.models.CheckNameAvailabilitySpecifications - :param disallowed_action_verbs: - :type disallowed_action_verbs: list[str] - :param service_tree_infos: - :type service_tree_infos: list[~provider_hub.models.ServiceTreeInfo] - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param subscription_state_rules: - :type subscription_state_rules: list[~provider_hub.models.SubscriptionStateRule] - :param template_deployment_options: - :type template_deployment_options: ~provider_hub.models.TemplateDeploymentOptions - :param extended_locations: - :type extended_locations: list[~provider_hub.models.ExtendedLocationOptions] - :param resource_move_policy: - :type resource_move_policy: ~provider_hub.models.ResourceMovePolicy - :param resource_deletion_policy: Possible values include: "NotSpecified", "CascadeDeleteAll", - "CascadeDeleteProxyOnlyChildren". - :type resource_deletion_policy: str or ~provider_hub.models.ResourceDeletionPolicy - """ - - _attribute_map = { - 'routing_type': {'key': 'routingType', 'type': 'str'}, - 'regionality': {'key': 'regionality', 'type': 'str'}, - 'endpoints': {'key': 'endpoints', 'type': '[ResourceTypeEndpoint]'}, - 'extension_options': {'key': 'extensionOptions', 'type': 'ResourceTypeExtensionOptions'}, - 'marketplace_type': {'key': 'marketplaceType', 'type': 'str'}, - 'swagger_specifications': {'key': 'swaggerSpecifications', 'type': '[SwaggerSpecification]'}, - 'allowed_unauthorized_actions': {'key': 'allowedUnauthorizedActions', 'type': '[str]'}, - 'authorization_action_mappings': {'key': 'authorizationActionMappings', 'type': '[AuthorizationActionMapping]'}, - 'linked_access_checks': {'key': 'linkedAccessChecks', 'type': '[LinkedAccessCheck]'}, - 'default_api_version': {'key': 'defaultApiVersion', 'type': 'str'}, - 'logging_rules': {'key': 'loggingRules', 'type': '[LoggingRule]'}, - 'throttling_rules': {'key': 'throttlingRules', 'type': '[ThrottlingRule]'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'enable_async_operation': {'key': 'enableAsyncOperation', 'type': 'bool'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'enable_third_party_s2s': {'key': 'enableThirdPartyS2S', 'type': 'bool'}, - 'subscription_lifecycle_notification_specifications': {'key': 'subscriptionLifecycleNotificationSpecifications', 'type': 'SubscriptionLifecycleNotificationSpecifications'}, - 'is_pure_proxy': {'key': 'isPureProxy', 'type': 'bool'}, - 'identity_management': {'key': 'identityManagement', 'type': 'IdentityManagementProperties'}, - 'check_name_availability_specifications': {'key': 'checkNameAvailabilitySpecifications', 'type': 'CheckNameAvailabilitySpecifications'}, - 'disallowed_action_verbs': {'key': 'disallowedActionVerbs', 'type': '[str]'}, - 'service_tree_infos': {'key': 'serviceTreeInfos', 'type': '[ServiceTreeInfo]'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'subscription_state_rules': {'key': 'subscriptionStateRules', 'type': '[SubscriptionStateRule]'}, - 'template_deployment_options': {'key': 'templateDeploymentOptions', 'type': 'TemplateDeploymentOptions'}, - 'extended_locations': {'key': 'extendedLocations', 'type': '[ExtendedLocationOptions]'}, - 'resource_move_policy': {'key': 'resourceMovePolicy', 'type': 'ResourceMovePolicy'}, - 'resource_deletion_policy': {'key': 'resourceDeletionPolicy', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesautogenerated, self).__init__(**kwargs) - - -class ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications(CheckNameAvailabilitySpecifications): - """ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications. - - :param enable_default_validation: - :type enable_default_validation: bool - :param resource_types_with_custom_validation: - :type resource_types_with_custom_validation: list[str] - """ - - _attribute_map = { - 'enable_default_validation': {'key': 'enableDefaultValidation', 'type': 'bool'}, - 'resource_types_with_custom_validation': {'key': 'resourceTypesWithCustomValidation', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications, self).__init__(**kwargs) - - -class ResourceTypeRegistrationPropertiesExtensionOptions(ResourceTypeExtensionOptions): - """ResourceTypeRegistrationPropertiesExtensionOptions. - - :param resource_creation_begin: - :type resource_creation_begin: ~provider_hub.models.ExtensionOptions - """ - - _attribute_map = { - 'resource_creation_begin': {'key': 'resourceCreationBegin', 'type': 'ExtensionOptions'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesExtensionOptions, self).__init__(**kwargs) - - -class ResourceTypeRegistrationPropertiesFeaturesRule(FeaturesRule): - """ResourceTypeRegistrationPropertiesFeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesFeaturesRule, self).__init__(**kwargs) - - -class ResourceTypeRegistrationPropertiesIdentityManagement(IdentityManagementProperties): - """ResourceTypeRegistrationPropertiesIdentityManagement. - - :param type: Possible values include: "NotSpecified", "SystemAssigned", "UserAssigned", - "Actor", "DelegatedResourceIdentity". - :type type: str or ~provider_hub.models.IdentityManagementTypes - :param application_id: - :type application_id: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'application_id': {'key': 'applicationId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesIdentityManagement, self).__init__(**kwargs) - - -class ResourceTypeRegistrationPropertiesRequestHeaderOptions(RequestHeaderOptions): - """ResourceTypeRegistrationPropertiesRequestHeaderOptions. - - :param opt_in_headers: Possible values include: "NotSpecified", "SignedUserToken", - "ClientGroupMembership", "SignedAuxiliaryTokens", "UnboundedClientGroupMembership". - :type opt_in_headers: str or ~provider_hub.models.OptInHeaderType - """ - - _attribute_map = { - 'opt_in_headers': {'key': 'optInHeaders', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesRequestHeaderOptions, self).__init__(**kwargs) - - -class ResourceTypeRegistrationPropertiesResourceMovePolicy(ResourceMovePolicy): - """ResourceTypeRegistrationPropertiesResourceMovePolicy. - - :param validation_required: - :type validation_required: bool - :param cross_resource_group_move_enabled: - :type cross_resource_group_move_enabled: bool - :param cross_subscription_move_enabled: - :type cross_subscription_move_enabled: bool - """ - - _attribute_map = { - 'validation_required': {'key': 'validationRequired', 'type': 'bool'}, - 'cross_resource_group_move_enabled': {'key': 'crossResourceGroupMoveEnabled', 'type': 'bool'}, - 'cross_subscription_move_enabled': {'key': 'crossSubscriptionMoveEnabled', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesResourceMovePolicy, self).__init__(**kwargs) - - -class ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications(SubscriptionLifecycleNotificationSpecifications): - """ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications. - - :param subscription_state_override_actions: - :type subscription_state_override_actions: - list[~provider_hub.models.SubscriptionStateOverrideAction] - :param soft_delete_ttl: - :type soft_delete_ttl: ~datetime.timedelta - """ - - _attribute_map = { - 'subscription_state_override_actions': {'key': 'subscriptionStateOverrideActions', 'type': '[SubscriptionStateOverrideAction]'}, - 'soft_delete_ttl': {'key': 'softDeleteTTL', 'type': 'duration'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications, self).__init__(**kwargs) - - -class ResourceTypeRegistrationPropertiesTemplateDeploymentOptions(TemplateDeploymentOptions): - """ResourceTypeRegistrationPropertiesTemplateDeploymentOptions. - - :param preflight_supported: - :type preflight_supported: bool - :param preflight_options: - :type preflight_options: list[str or ~provider_hub.models.PreflightOption] - """ - - _attribute_map = { - 'preflight_supported': {'key': 'preflightSupported', 'type': 'bool'}, - 'preflight_options': {'key': 'preflightOptions', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesTemplateDeploymentOptions, self).__init__(**kwargs) - - -class ResourceTypeRequestHeaderOptions(RequestHeaderOptions): - """ResourceTypeRequestHeaderOptions. - - :param opt_in_headers: Possible values include: "NotSpecified", "SignedUserToken", - "ClientGroupMembership", "SignedAuxiliaryTokens", "UnboundedClientGroupMembership". - :type opt_in_headers: str or ~provider_hub.models.OptInHeaderType - """ - - _attribute_map = { - 'opt_in_headers': {'key': 'optInHeaders', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeRequestHeaderOptions, self).__init__(**kwargs) - - -class ResourceTypeSku(msrest.serialization.Model): - """ResourceTypeSku. - - All required parameters must be populated in order to send to Azure. - - :param sku_settings: Required. - :type sku_settings: list[~provider_hub.models.SkuSetting] - """ - - _validation = { - 'sku_settings': {'required': True}, - } - - _attribute_map = { - 'sku_settings': {'key': 'skuSettings', 'type': '[SkuSetting]'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeSku, self).__init__(**kwargs) - self.sku_settings = kwargs['sku_settings'] - - -class TemplateDeploymentPolicy(msrest.serialization.Model): - """TemplateDeploymentPolicy. - - All required parameters must be populated in order to send to Azure. - - :param capabilities: Required. Possible values include: "Default", "Preflight". - :type capabilities: str or ~provider_hub.models.TemplateDeploymentCapabilities - :param preflight_options: Required. Possible values include: "None", "ValidationRequests", - "DeploymentRequests", "TestOnly", "RegisteredOnly". - :type preflight_options: str or ~provider_hub.models.TemplateDeploymentPreflightOptions - """ - - _validation = { - 'capabilities': {'required': True}, - 'preflight_options': {'required': True}, - } - - _attribute_map = { - 'capabilities': {'key': 'capabilities', 'type': 'str'}, - 'preflight_options': {'key': 'preflightOptions', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TemplateDeploymentPolicy, self).__init__(**kwargs) - self.capabilities = kwargs['capabilities'] - self.preflight_options = kwargs['preflight_options'] - - -class ResourceTypeTemplateDeploymentPolicy(TemplateDeploymentPolicy): - """ResourceTypeTemplateDeploymentPolicy. - - All required parameters must be populated in order to send to Azure. - - :param capabilities: Required. Possible values include: "Default", "Preflight". - :type capabilities: str or ~provider_hub.models.TemplateDeploymentCapabilities - :param preflight_options: Required. Possible values include: "None", "ValidationRequests", - "DeploymentRequests", "TestOnly", "RegisteredOnly". - :type preflight_options: str or ~provider_hub.models.TemplateDeploymentPreflightOptions - """ - - _validation = { - 'capabilities': {'required': True}, - 'preflight_options': {'required': True}, - } - - _attribute_map = { - 'capabilities': {'key': 'capabilities', 'type': 'str'}, - 'preflight_options': {'key': 'preflightOptions', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ResourceTypeTemplateDeploymentPolicy, self).__init__(**kwargs) - - -class ServiceTreeInfo(msrest.serialization.Model): - """ServiceTreeInfo. - - :param service_id: - :type service_id: str - :param component_id: - :type component_id: str - """ - - _attribute_map = { - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'component_id': {'key': 'componentId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ServiceTreeInfo, self).__init__(**kwargs) - self.service_id = kwargs.get('service_id', None) - self.component_id = kwargs.get('component_id', None) - - -class SkuCapability(msrest.serialization.Model): - """SkuCapability. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. - :type name: str - :param value: Required. - :type value: str - """ - - _validation = { - 'name': {'required': True}, - 'value': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuCapability, self).__init__(**kwargs) - self.name = kwargs['name'] - self.value = kwargs['value'] - - -class SkuCapacity(msrest.serialization.Model): - """SkuCapacity. - - All required parameters must be populated in order to send to Azure. - - :param minimum: Required. - :type minimum: int - :param maximum: - :type maximum: int - :param default: - :type default: int - :param scale_type: Possible values include: "None", "Manual", "Automatic". - :type scale_type: str or ~provider_hub.models.SkuScaleType - """ - - _validation = { - 'minimum': {'required': True}, - } - - _attribute_map = { - 'minimum': {'key': 'minimum', 'type': 'int'}, - 'maximum': {'key': 'maximum', 'type': 'int'}, - 'default': {'key': 'default', 'type': 'int'}, - 'scale_type': {'key': 'scaleType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuCapacity, self).__init__(**kwargs) - self.minimum = kwargs['minimum'] - self.maximum = kwargs.get('maximum', None) - self.default = kwargs.get('default', None) - self.scale_type = kwargs.get('scale_type', None) - - -class SkuCost(msrest.serialization.Model): - """SkuCost. - - All required parameters must be populated in order to send to Azure. - - :param meter_id: Required. - :type meter_id: str - :param quantity: - :type quantity: int - :param extended_unit: - :type extended_unit: str - """ - - _validation = { - 'meter_id': {'required': True}, - } - - _attribute_map = { - 'meter_id': {'key': 'meterId', 'type': 'str'}, - 'quantity': {'key': 'quantity', 'type': 'int'}, - 'extended_unit': {'key': 'extendedUnit', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuCost, self).__init__(**kwargs) - self.meter_id = kwargs['meter_id'] - self.quantity = kwargs.get('quantity', None) - self.extended_unit = kwargs.get('extended_unit', None) - - -class SkuLocationInfo(msrest.serialization.Model): - """SkuLocationInfo. - - All required parameters must be populated in order to send to Azure. - - :param location: Required. - :type location: str - :param zones: - :type zones: list[str] - :param zone_details: - :type zone_details: list[~provider_hub.models.SkuZoneDetail] - :param extended_locations: - :type extended_locations: list[str] - :param type: Possible values include: "NotSpecified", "EdgeZone", "ArcZone". - :type type: str or ~provider_hub.models.SkuLocationInfoType - """ - - _validation = { - 'location': {'required': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'zones': {'key': 'zones', 'type': '[str]'}, - 'zone_details': {'key': 'zoneDetails', 'type': '[SkuZoneDetail]'}, - 'extended_locations': {'key': 'extendedLocations', 'type': '[str]'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuLocationInfo, self).__init__(**kwargs) - self.location = kwargs['location'] - self.zones = kwargs.get('zones', None) - self.zone_details = kwargs.get('zone_details', None) - self.extended_locations = kwargs.get('extended_locations', None) - self.type = kwargs.get('type', None) - - -class SkuResource(Resource): - """SkuResource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: - :type properties: ~provider_hub.models.ResourceTypeSku - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceTypeSku'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class SkuResourceArrayResponseWithContinuation(msrest.serialization.Model): - """SkuResourceArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.SkuResource] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[SkuResource]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuResourceArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - -class SkuResourceProperties(ResourceTypeSku): - """SkuResourceProperties. - - All required parameters must be populated in order to send to Azure. - - :param sku_settings: Required. - :type sku_settings: list[~provider_hub.models.SkuSetting] - """ - - _validation = { - 'sku_settings': {'required': True}, - } - - _attribute_map = { - 'sku_settings': {'key': 'skuSettings', 'type': '[SkuSetting]'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuResourceProperties, self).__init__(**kwargs) - - -class SkuSetting(msrest.serialization.Model): - """SkuSetting. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. - :type name: str - :param tier: - :type tier: str - :param size: - :type size: str - :param family: - :type family: str - :param kind: - :type kind: str - :param locations: - :type locations: list[str] - :param location_info: - :type location_info: list[~provider_hub.models.SkuLocationInfo] - :param required_quota_ids: - :type required_quota_ids: list[str] - :param required_features: - :type required_features: list[str] - :param capacity: - :type capacity: ~provider_hub.models.SkuCapacity - :param costs: - :type costs: list[~provider_hub.models.SkuCost] - :param capabilities: - :type capabilities: list[~provider_hub.models.SkuCapability] - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'location_info': {'key': 'locationInfo', 'type': '[SkuLocationInfo]'}, - 'required_quota_ids': {'key': 'requiredQuotaIds', 'type': '[str]'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'capacity': {'key': 'capacity', 'type': 'SkuCapacity'}, - 'costs': {'key': 'costs', 'type': '[SkuCost]'}, - 'capabilities': {'key': 'capabilities', 'type': '[SkuCapability]'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuSetting, self).__init__(**kwargs) - self.name = kwargs['name'] - self.tier = kwargs.get('tier', None) - self.size = kwargs.get('size', None) - self.family = kwargs.get('family', None) - self.kind = kwargs.get('kind', None) - self.locations = kwargs.get('locations', None) - self.location_info = kwargs.get('location_info', None) - self.required_quota_ids = kwargs.get('required_quota_ids', None) - self.required_features = kwargs.get('required_features', None) - self.capacity = kwargs.get('capacity', None) - self.costs = kwargs.get('costs', None) - self.capabilities = kwargs.get('capabilities', None) - - -class SkuSettingCapacity(SkuCapacity): - """SkuSettingCapacity. - - All required parameters must be populated in order to send to Azure. - - :param minimum: Required. - :type minimum: int - :param maximum: - :type maximum: int - :param default: - :type default: int - :param scale_type: Possible values include: "None", "Manual", "Automatic". - :type scale_type: str or ~provider_hub.models.SkuScaleType - """ - - _validation = { - 'minimum': {'required': True}, - } - - _attribute_map = { - 'minimum': {'key': 'minimum', 'type': 'int'}, - 'maximum': {'key': 'maximum', 'type': 'int'}, - 'default': {'key': 'default', 'type': 'int'}, - 'scale_type': {'key': 'scaleType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuSettingCapacity, self).__init__(**kwargs) - - -class SkuZoneDetail(msrest.serialization.Model): - """SkuZoneDetail. - - :param name: - :type name: list[str] - :param capabilities: - :type capabilities: list[~provider_hub.models.SkuCapability] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': '[str]'}, - 'capabilities': {'key': 'capabilities', 'type': '[SkuCapability]'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuZoneDetail, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.capabilities = kwargs.get('capabilities', None) - - -class SubscriptionStateOverrideAction(msrest.serialization.Model): - """SubscriptionStateOverrideAction. - - All required parameters must be populated in order to send to Azure. - - :param state: Required. Possible values include: "Registered", "Unregistered", "Warned", - "Suspended", "Deleted", "WarnedToRegistered", "WarnedToSuspended", "WarnedToDeleted", - "WarnedToUnregistered", "SuspendedToRegistered", "SuspendedToWarned", "SuspendedToDeleted", - "SuspendedToUnregistered". - :type state: str or ~provider_hub.models.SubscriptionTransitioningState - :param action: Required. Possible values include: "NotDefined", "DeleteAllResources", - "SoftDeleteAllResources", "NoOp", "BillingCancellation", "UndoSoftDelete". - :type action: str or ~provider_hub.models.SubscriptionNotificationOperation - """ - - _validation = { - 'state': {'required': True}, - 'action': {'required': True}, - } - - _attribute_map = { - 'state': {'key': 'state', 'type': 'str'}, - 'action': {'key': 'action', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SubscriptionStateOverrideAction, self).__init__(**kwargs) - self.state = kwargs['state'] - self.action = kwargs['action'] - - -class SubscriptionStateRule(msrest.serialization.Model): - """SubscriptionStateRule. - - :param state: Possible values include: "NotDefined", "Enabled", "Warned", "PastDue", - "Disabled", "Deleted". - :type state: str or ~provider_hub.models.SubscriptionState - :param allowed_actions: - :type allowed_actions: list[str] - """ - - _attribute_map = { - 'state': {'key': 'state', 'type': 'str'}, - 'allowed_actions': {'key': 'allowedActions', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(SubscriptionStateRule, self).__init__(**kwargs) - self.state = kwargs.get('state', None) - self.allowed_actions = kwargs.get('allowed_actions', None) - - -class SwaggerSpecification(msrest.serialization.Model): - """SwaggerSpecification. - - :param api_versions: - :type api_versions: list[str] - :param swagger_spec_folder_uri: - :type swagger_spec_folder_uri: str - """ - - _attribute_map = { - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'swagger_spec_folder_uri': {'key': 'swaggerSpecFolderUri', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SwaggerSpecification, self).__init__(**kwargs) - self.api_versions = kwargs.get('api_versions', None) - self.swagger_spec_folder_uri = kwargs.get('swagger_spec_folder_uri', None) - - -class ThrottlingMetric(msrest.serialization.Model): - """ThrottlingMetric. - - All required parameters must be populated in order to send to Azure. - - :param type: Required. Possible values include: "NotSpecified", "NumberOfRequests", - "NumberOfResources". - :type type: str or ~provider_hub.models.ThrottlingMetricType - :param limit: Required. - :type limit: long - :param interval: - :type interval: ~datetime.timedelta - """ - - _validation = { - 'type': {'required': True}, - 'limit': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'limit': {'key': 'limit', 'type': 'long'}, - 'interval': {'key': 'interval', 'type': 'duration'}, - } - - def __init__( - self, - **kwargs - ): - super(ThrottlingMetric, self).__init__(**kwargs) - self.type = kwargs['type'] - self.limit = kwargs['limit'] - self.interval = kwargs.get('interval', None) - - -class ThrottlingRule(msrest.serialization.Model): - """ThrottlingRule. - - All required parameters must be populated in order to send to Azure. - - :param action: Required. - :type action: str - :param metrics: Required. - :type metrics: list[~provider_hub.models.ThrottlingMetric] - :param required_features: - :type required_features: list[str] - """ - - _validation = { - 'action': {'required': True}, - 'metrics': {'required': True}, - } - - _attribute_map = { - 'action': {'key': 'action', 'type': 'str'}, - 'metrics': {'key': 'metrics', 'type': '[ThrottlingMetric]'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(ThrottlingRule, self).__init__(**kwargs) - self.action = kwargs['action'] - self.metrics = kwargs['metrics'] - self.required_features = kwargs.get('required_features', None) - - -class TypedErrorInfo(msrest.serialization.Model): - """TypedErrorInfo. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param type: Required. - :type type: str - :ivar info: Any object. - :vartype info: object - """ - - _validation = { - 'type': {'required': True}, - 'info': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, - } - - def __init__( - self, - **kwargs - ): - super(TypedErrorInfo, self).__init__(**kwargs) - self.type = kwargs['type'] - self.info = None diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_models_py3.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_models_py3.py deleted file mode 100644 index 69db580a911..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_models_py3.py +++ /dev/null @@ -1,4968 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -from typing import Dict, List, Optional, Union - -from azure.core.exceptions import HttpResponseError -import msrest.serialization - -from ._provider_hub_enums import * - - -class AuthorizationActionMapping(msrest.serialization.Model): - """AuthorizationActionMapping. - - :param original: - :type original: str - :param desired: - :type desired: str - """ - - _attribute_map = { - 'original': {'key': 'original', 'type': 'str'}, - 'desired': {'key': 'desired', 'type': 'str'}, - } - - def __init__( - self, - *, - original: Optional[str] = None, - desired: Optional[str] = None, - **kwargs - ): - super(AuthorizationActionMapping, self).__init__(**kwargs) - self.original = original - self.desired = desired - - -class CanaryTrafficRegionRolloutConfiguration(msrest.serialization.Model): - """CanaryTrafficRegionRolloutConfiguration. - - :param skip_regions: - :type skip_regions: list[str] - :param regions: - :type regions: list[str] - """ - - _attribute_map = { - 'skip_regions': {'key': 'skipRegions', 'type': '[str]'}, - 'regions': {'key': 'regions', 'type': '[str]'}, - } - - def __init__( - self, - *, - skip_regions: Optional[List[str]] = None, - regions: Optional[List[str]] = None, - **kwargs - ): - super(CanaryTrafficRegionRolloutConfiguration, self).__init__(**kwargs) - self.skip_regions = skip_regions - self.regions = regions - - -class CheckinManifestInfo(msrest.serialization.Model): - """CheckinManifestInfo. - - All required parameters must be populated in order to send to Azure. - - :param is_checked_in: Required. - :type is_checked_in: bool - :param status_message: Required. - :type status_message: str - :param pull_request: - :type pull_request: str - :param commit_id: - :type commit_id: str - """ - - _validation = { - 'is_checked_in': {'required': True}, - 'status_message': {'required': True}, - } - - _attribute_map = { - 'is_checked_in': {'key': 'isCheckedIn', 'type': 'bool'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'pull_request': {'key': 'pullRequest', 'type': 'str'}, - 'commit_id': {'key': 'commitId', 'type': 'str'}, - } - - def __init__( - self, - *, - is_checked_in: bool, - status_message: str, - pull_request: Optional[str] = None, - commit_id: Optional[str] = None, - **kwargs - ): - super(CheckinManifestInfo, self).__init__(**kwargs) - self.is_checked_in = is_checked_in - self.status_message = status_message - self.pull_request = pull_request - self.commit_id = commit_id - - -class CheckinManifestParams(msrest.serialization.Model): - """CheckinManifestParams. - - All required parameters must be populated in order to send to Azure. - - :param environment: Required. The environment supplied to the checkin manifest operation. - :type environment: str - :param baseline_arm_manifest_location: Required. The baseline ARM manifest location supplied to - the checkin manifest operation. - :type baseline_arm_manifest_location: str - """ - - _validation = { - 'environment': {'required': True}, - 'baseline_arm_manifest_location': {'required': True}, - } - - _attribute_map = { - 'environment': {'key': 'environment', 'type': 'str'}, - 'baseline_arm_manifest_location': {'key': 'baselineArmManifestLocation', 'type': 'str'}, - } - - def __init__( - self, - *, - environment: str, - baseline_arm_manifest_location: str, - **kwargs - ): - super(CheckinManifestParams, self).__init__(**kwargs) - self.environment = environment - self.baseline_arm_manifest_location = baseline_arm_manifest_location - - -class CheckNameAvailabilitySpecifications(msrest.serialization.Model): - """CheckNameAvailabilitySpecifications. - - :param enable_default_validation: - :type enable_default_validation: bool - :param resource_types_with_custom_validation: - :type resource_types_with_custom_validation: list[str] - """ - - _attribute_map = { - 'enable_default_validation': {'key': 'enableDefaultValidation', 'type': 'bool'}, - 'resource_types_with_custom_validation': {'key': 'resourceTypesWithCustomValidation', 'type': '[str]'}, - } - - def __init__( - self, - *, - enable_default_validation: Optional[bool] = None, - resource_types_with_custom_validation: Optional[List[str]] = None, - **kwargs - ): - super(CheckNameAvailabilitySpecifications, self).__init__(**kwargs) - self.enable_default_validation = enable_default_validation - self.resource_types_with_custom_validation = resource_types_with_custom_validation - - -class Resource(msrest.serialization.Model): - """Common fields that are returned in the response for all Azure Resource Manager resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - - -class CustomRollout(Resource): - """Rollout details. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: Required. Properties of the rollout. - :type properties: ~provider_hub.models.CustomRolloutProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'properties': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'CustomRolloutProperties'}, - } - - def __init__( - self, - *, - properties: "CustomRolloutProperties", - **kwargs - ): - super(CustomRollout, self).__init__(**kwargs) - self.properties = properties - - -class CustomRolloutArrayResponseWithContinuation(msrest.serialization.Model): - """CustomRolloutArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.CustomRollout] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[CustomRollout]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - value: Optional[List["CustomRollout"]] = None, - next_link: Optional[str] = None, - **kwargs - ): - super(CustomRolloutArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomRolloutProperties(msrest.serialization.Model): - """CustomRolloutProperties. - - All required parameters must be populated in order to send to Azure. - - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param specification: Required. - :type specification: ~provider_hub.models.CustomRolloutSpecification - :param status: - :type status: ~provider_hub.models.CustomRolloutStatus - """ - - _validation = { - 'specification': {'required': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'specification': {'key': 'specification', 'type': 'CustomRolloutSpecification'}, - 'status': {'key': 'status', 'type': 'CustomRolloutStatus'}, - } - - def __init__( - self, - *, - specification: "CustomRolloutSpecification", - provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, - status: Optional["CustomRolloutStatus"] = None, - **kwargs - ): - super(CustomRolloutProperties, self).__init__(**kwargs) - self.provisioning_state = provisioning_state - self.specification = specification - self.status = status - - -class CustomRolloutPropertiesautogenerated(CustomRolloutProperties): - """Properties of the rollout. - - All required parameters must be populated in order to send to Azure. - - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param specification: Required. - :type specification: ~provider_hub.models.CustomRolloutSpecification - :param status: - :type status: ~provider_hub.models.CustomRolloutStatus - """ - - _validation = { - 'specification': {'required': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'specification': {'key': 'specification', 'type': 'CustomRolloutSpecification'}, - 'status': {'key': 'status', 'type': 'CustomRolloutStatus'}, - } - - def __init__( - self, - *, - specification: "CustomRolloutSpecification", - provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, - status: Optional["CustomRolloutStatus"] = None, - **kwargs - ): - super(CustomRolloutPropertiesautogenerated, self).__init__(provisioning_state=provisioning_state, specification=specification, status=status, **kwargs) - - -class CustomRolloutSpecification(msrest.serialization.Model): - """CustomRolloutSpecification. - - All required parameters must be populated in order to send to Azure. - - :param canary: Required. - :type canary: ~provider_hub.models.TrafficRegions - :param provider_registration: - :type provider_registration: ~provider_hub.models.ProviderRegistration - :param resource_type_registrations: - :type resource_type_registrations: list[~provider_hub.models.ResourceTypeRegistration] - """ - - _validation = { - 'canary': {'required': True}, - } - - _attribute_map = { - 'canary': {'key': 'canary', 'type': 'TrafficRegions'}, - 'provider_registration': {'key': 'providerRegistration', 'type': 'ProviderRegistration'}, - 'resource_type_registrations': {'key': 'resourceTypeRegistrations', 'type': '[ResourceTypeRegistration]'}, - } - - def __init__( - self, - *, - canary: "TrafficRegions", - provider_registration: Optional["ProviderRegistration"] = None, - resource_type_registrations: Optional[List["ResourceTypeRegistration"]] = None, - **kwargs - ): - super(CustomRolloutSpecification, self).__init__(**kwargs) - self.canary = canary - self.provider_registration = provider_registration - self.resource_type_registrations = resource_type_registrations - - -class CustomRolloutPropertiesSpecification(CustomRolloutSpecification): - """CustomRolloutPropertiesSpecification. - - All required parameters must be populated in order to send to Azure. - - :param canary: Required. - :type canary: ~provider_hub.models.TrafficRegions - :param provider_registration: - :type provider_registration: ~provider_hub.models.ProviderRegistration - :param resource_type_registrations: - :type resource_type_registrations: list[~provider_hub.models.ResourceTypeRegistration] - """ - - _validation = { - 'canary': {'required': True}, - } - - _attribute_map = { - 'canary': {'key': 'canary', 'type': 'TrafficRegions'}, - 'provider_registration': {'key': 'providerRegistration', 'type': 'ProviderRegistration'}, - 'resource_type_registrations': {'key': 'resourceTypeRegistrations', 'type': '[ResourceTypeRegistration]'}, - } - - def __init__( - self, - *, - canary: "TrafficRegions", - provider_registration: Optional["ProviderRegistration"] = None, - resource_type_registrations: Optional[List["ResourceTypeRegistration"]] = None, - **kwargs - ): - super(CustomRolloutPropertiesSpecification, self).__init__(canary=canary, provider_registration=provider_registration, resource_type_registrations=resource_type_registrations, **kwargs) - - -class CustomRolloutStatus(msrest.serialization.Model): - """CustomRolloutStatus. - - :param completed_regions: - :type completed_regions: list[str] - :param failed_or_skipped_regions: Dictionary of :code:``. - :type failed_or_skipped_regions: dict[str, ~provider_hub.models.ExtendedErrorInfo] - """ - - _attribute_map = { - 'completed_regions': {'key': 'completedRegions', 'type': '[str]'}, - 'failed_or_skipped_regions': {'key': 'failedOrSkippedRegions', 'type': '{ExtendedErrorInfo}'}, - } - - def __init__( - self, - *, - completed_regions: Optional[List[str]] = None, - failed_or_skipped_regions: Optional[Dict[str, "ExtendedErrorInfo"]] = None, - **kwargs - ): - super(CustomRolloutStatus, self).__init__(**kwargs) - self.completed_regions = completed_regions - self.failed_or_skipped_regions = failed_or_skipped_regions - - -class CustomRolloutPropertiesStatus(CustomRolloutStatus): - """CustomRolloutPropertiesStatus. - - :param completed_regions: - :type completed_regions: list[str] - :param failed_or_skipped_regions: Dictionary of :code:``. - :type failed_or_skipped_regions: dict[str, ~provider_hub.models.ExtendedErrorInfo] - """ - - _attribute_map = { - 'completed_regions': {'key': 'completedRegions', 'type': '[str]'}, - 'failed_or_skipped_regions': {'key': 'failedOrSkippedRegions', 'type': '{ExtendedErrorInfo}'}, - } - - def __init__( - self, - *, - completed_regions: Optional[List[str]] = None, - failed_or_skipped_regions: Optional[Dict[str, "ExtendedErrorInfo"]] = None, - **kwargs - ): - super(CustomRolloutPropertiesStatus, self).__init__(completed_regions=completed_regions, failed_or_skipped_regions=failed_or_skipped_regions, **kwargs) - - -class TrafficRegions(msrest.serialization.Model): - """TrafficRegions. - - :param regions: - :type regions: list[str] - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - } - - def __init__( - self, - *, - regions: Optional[List[str]] = None, - **kwargs - ): - super(TrafficRegions, self).__init__(**kwargs) - self.regions = regions - - -class CustomRolloutSpecificationCanary(TrafficRegions): - """CustomRolloutSpecificationCanary. - - :param regions: - :type regions: list[str] - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - } - - def __init__( - self, - *, - regions: Optional[List[str]] = None, - **kwargs - ): - super(CustomRolloutSpecificationCanary, self).__init__(regions=regions, **kwargs) - - -class ProviderRegistration(Resource): - """ProviderRegistration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: - :type properties: ~provider_hub.models.ProviderRegistrationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProviderRegistrationProperties'}, - } - - def __init__( - self, - *, - properties: Optional["ProviderRegistrationProperties"] = None, - **kwargs - ): - super(ProviderRegistration, self).__init__(**kwargs) - self.properties = properties - - -class CustomRolloutSpecificationProviderRegistration(ProviderRegistration): - """CustomRolloutSpecificationProviderRegistration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: - :type properties: ~provider_hub.models.ProviderRegistrationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProviderRegistrationProperties'}, - } - - def __init__( - self, - *, - properties: Optional["ProviderRegistrationProperties"] = None, - **kwargs - ): - super(CustomRolloutSpecificationProviderRegistration, self).__init__(properties=properties, **kwargs) - - -class DefaultRollout(Resource): - """Default rollout definition. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: Properties of the rollout. - :type properties: ~provider_hub.models.DefaultRolloutProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DefaultRolloutProperties'}, - } - - def __init__( - self, - *, - properties: Optional["DefaultRolloutProperties"] = None, - **kwargs - ): - super(DefaultRollout, self).__init__(**kwargs) - self.properties = properties - - -class DefaultRolloutArrayResponseWithContinuation(msrest.serialization.Model): - """DefaultRolloutArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.DefaultRollout] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[DefaultRollout]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - value: Optional[List["DefaultRollout"]] = None, - next_link: Optional[str] = None, - **kwargs - ): - super(DefaultRolloutArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DefaultRolloutProperties(msrest.serialization.Model): - """DefaultRolloutProperties. - - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param specification: - :type specification: ~provider_hub.models.DefaultRolloutSpecification - :param status: - :type status: ~provider_hub.models.DefaultRolloutStatus - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'specification': {'key': 'specification', 'type': 'DefaultRolloutSpecification'}, - 'status': {'key': 'status', 'type': 'DefaultRolloutStatus'}, - } - - def __init__( - self, - *, - provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, - specification: Optional["DefaultRolloutSpecification"] = None, - status: Optional["DefaultRolloutStatus"] = None, - **kwargs - ): - super(DefaultRolloutProperties, self).__init__(**kwargs) - self.provisioning_state = provisioning_state - self.specification = specification - self.status = status - - -class DefaultRolloutPropertiesautogenerated(DefaultRolloutProperties): - """Properties of the rollout. - - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param specification: - :type specification: ~provider_hub.models.DefaultRolloutSpecification - :param status: - :type status: ~provider_hub.models.DefaultRolloutStatus - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'specification': {'key': 'specification', 'type': 'DefaultRolloutSpecification'}, - 'status': {'key': 'status', 'type': 'DefaultRolloutStatus'}, - } - - def __init__( - self, - *, - provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, - specification: Optional["DefaultRolloutSpecification"] = None, - status: Optional["DefaultRolloutStatus"] = None, - **kwargs - ): - super(DefaultRolloutPropertiesautogenerated, self).__init__(provisioning_state=provisioning_state, specification=specification, status=status, **kwargs) - - -class DefaultRolloutSpecification(msrest.serialization.Model): - """DefaultRolloutSpecification. - - :param canary: - :type canary: ~provider_hub.models.CanaryTrafficRegionRolloutConfiguration - :param low_traffic: - :type low_traffic: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param medium_traffic: - :type medium_traffic: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param high_traffic: - :type high_traffic: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param rest_of_the_world_group_one: - :type rest_of_the_world_group_one: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param rest_of_the_world_group_two: - :type rest_of_the_world_group_two: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param provider_registration: - :type provider_registration: ~provider_hub.models.ProviderRegistration - :param resource_type_registrations: - :type resource_type_registrations: list[~provider_hub.models.ResourceTypeRegistration] - """ - - _attribute_map = { - 'canary': {'key': 'canary', 'type': 'CanaryTrafficRegionRolloutConfiguration'}, - 'low_traffic': {'key': 'lowTraffic', 'type': 'TrafficRegionRolloutConfiguration'}, - 'medium_traffic': {'key': 'mediumTraffic', 'type': 'TrafficRegionRolloutConfiguration'}, - 'high_traffic': {'key': 'highTraffic', 'type': 'TrafficRegionRolloutConfiguration'}, - 'rest_of_the_world_group_one': {'key': 'restOfTheWorldGroupOne', 'type': 'TrafficRegionRolloutConfiguration'}, - 'rest_of_the_world_group_two': {'key': 'restOfTheWorldGroupTwo', 'type': 'TrafficRegionRolloutConfiguration'}, - 'provider_registration': {'key': 'providerRegistration', 'type': 'ProviderRegistration'}, - 'resource_type_registrations': {'key': 'resourceTypeRegistrations', 'type': '[ResourceTypeRegistration]'}, - } - - def __init__( - self, - *, - canary: Optional["CanaryTrafficRegionRolloutConfiguration"] = None, - low_traffic: Optional["TrafficRegionRolloutConfiguration"] = None, - medium_traffic: Optional["TrafficRegionRolloutConfiguration"] = None, - high_traffic: Optional["TrafficRegionRolloutConfiguration"] = None, - rest_of_the_world_group_one: Optional["TrafficRegionRolloutConfiguration"] = None, - rest_of_the_world_group_two: Optional["TrafficRegionRolloutConfiguration"] = None, - provider_registration: Optional["ProviderRegistration"] = None, - resource_type_registrations: Optional[List["ResourceTypeRegistration"]] = None, - **kwargs - ): - super(DefaultRolloutSpecification, self).__init__(**kwargs) - self.canary = canary - self.low_traffic = low_traffic - self.medium_traffic = medium_traffic - self.high_traffic = high_traffic - self.rest_of_the_world_group_one = rest_of_the_world_group_one - self.rest_of_the_world_group_two = rest_of_the_world_group_two - self.provider_registration = provider_registration - self.resource_type_registrations = resource_type_registrations - - -class DefaultRolloutPropertiesSpecification(DefaultRolloutSpecification): - """DefaultRolloutPropertiesSpecification. - - :param canary: - :type canary: ~provider_hub.models.CanaryTrafficRegionRolloutConfiguration - :param low_traffic: - :type low_traffic: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param medium_traffic: - :type medium_traffic: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param high_traffic: - :type high_traffic: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param rest_of_the_world_group_one: - :type rest_of_the_world_group_one: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param rest_of_the_world_group_two: - :type rest_of_the_world_group_two: ~provider_hub.models.TrafficRegionRolloutConfiguration - :param provider_registration: - :type provider_registration: ~provider_hub.models.ProviderRegistration - :param resource_type_registrations: - :type resource_type_registrations: list[~provider_hub.models.ResourceTypeRegistration] - """ - - _attribute_map = { - 'canary': {'key': 'canary', 'type': 'CanaryTrafficRegionRolloutConfiguration'}, - 'low_traffic': {'key': 'lowTraffic', 'type': 'TrafficRegionRolloutConfiguration'}, - 'medium_traffic': {'key': 'mediumTraffic', 'type': 'TrafficRegionRolloutConfiguration'}, - 'high_traffic': {'key': 'highTraffic', 'type': 'TrafficRegionRolloutConfiguration'}, - 'rest_of_the_world_group_one': {'key': 'restOfTheWorldGroupOne', 'type': 'TrafficRegionRolloutConfiguration'}, - 'rest_of_the_world_group_two': {'key': 'restOfTheWorldGroupTwo', 'type': 'TrafficRegionRolloutConfiguration'}, - 'provider_registration': {'key': 'providerRegistration', 'type': 'ProviderRegistration'}, - 'resource_type_registrations': {'key': 'resourceTypeRegistrations', 'type': '[ResourceTypeRegistration]'}, - } - - def __init__( - self, - *, - canary: Optional["CanaryTrafficRegionRolloutConfiguration"] = None, - low_traffic: Optional["TrafficRegionRolloutConfiguration"] = None, - medium_traffic: Optional["TrafficRegionRolloutConfiguration"] = None, - high_traffic: Optional["TrafficRegionRolloutConfiguration"] = None, - rest_of_the_world_group_one: Optional["TrafficRegionRolloutConfiguration"] = None, - rest_of_the_world_group_two: Optional["TrafficRegionRolloutConfiguration"] = None, - provider_registration: Optional["ProviderRegistration"] = None, - resource_type_registrations: Optional[List["ResourceTypeRegistration"]] = None, - **kwargs - ): - super(DefaultRolloutPropertiesSpecification, self).__init__(canary=canary, low_traffic=low_traffic, medium_traffic=medium_traffic, high_traffic=high_traffic, rest_of_the_world_group_one=rest_of_the_world_group_one, rest_of_the_world_group_two=rest_of_the_world_group_two, provider_registration=provider_registration, resource_type_registrations=resource_type_registrations, **kwargs) - - -class RolloutStatusBase(msrest.serialization.Model): - """RolloutStatusBase. - - :param completed_regions: - :type completed_regions: list[str] - :param failed_or_skipped_regions: Dictionary of :code:``. - :type failed_or_skipped_regions: dict[str, ~provider_hub.models.ExtendedErrorInfo] - """ - - _attribute_map = { - 'completed_regions': {'key': 'completedRegions', 'type': '[str]'}, - 'failed_or_skipped_regions': {'key': 'failedOrSkippedRegions', 'type': '{ExtendedErrorInfo}'}, - } - - def __init__( - self, - *, - completed_regions: Optional[List[str]] = None, - failed_or_skipped_regions: Optional[Dict[str, "ExtendedErrorInfo"]] = None, - **kwargs - ): - super(RolloutStatusBase, self).__init__(**kwargs) - self.completed_regions = completed_regions - self.failed_or_skipped_regions = failed_or_skipped_regions - - -class DefaultRolloutStatus(RolloutStatusBase): - """DefaultRolloutStatus. - - :param completed_regions: - :type completed_regions: list[str] - :param failed_or_skipped_regions: Dictionary of :code:``. - :type failed_or_skipped_regions: dict[str, ~provider_hub.models.ExtendedErrorInfo] - :param next_traffic_region: Possible values include: "NotSpecified", "Canary", "LowTraffic", - "MediumTraffic", "HighTraffic", "None", "RestOfTheWorldGroupOne", "RestOfTheWorldGroupTwo". - :type next_traffic_region: str or ~provider_hub.models.TrafficRegionCategory - :param next_traffic_region_scheduled_time: - :type next_traffic_region_scheduled_time: ~datetime.datetime - :param subscription_reregistration_result: Possible values include: "NotApplicable", - "ConditionalUpdate", "ForcedUpdate", "Failed". - :type subscription_reregistration_result: str or - ~provider_hub.models.SubscriptionReregistrationResult - """ - - _attribute_map = { - 'completed_regions': {'key': 'completedRegions', 'type': '[str]'}, - 'failed_or_skipped_regions': {'key': 'failedOrSkippedRegions', 'type': '{ExtendedErrorInfo}'}, - 'next_traffic_region': {'key': 'nextTrafficRegion', 'type': 'str'}, - 'next_traffic_region_scheduled_time': {'key': 'nextTrafficRegionScheduledTime', 'type': 'iso-8601'}, - 'subscription_reregistration_result': {'key': 'subscriptionReregistrationResult', 'type': 'str'}, - } - - def __init__( - self, - *, - completed_regions: Optional[List[str]] = None, - failed_or_skipped_regions: Optional[Dict[str, "ExtendedErrorInfo"]] = None, - next_traffic_region: Optional[Union[str, "TrafficRegionCategory"]] = None, - next_traffic_region_scheduled_time: Optional[datetime.datetime] = None, - subscription_reregistration_result: Optional[Union[str, "SubscriptionReregistrationResult"]] = None, - **kwargs - ): - super(DefaultRolloutStatus, self).__init__(completed_regions=completed_regions, failed_or_skipped_regions=failed_or_skipped_regions, **kwargs) - self.next_traffic_region = next_traffic_region - self.next_traffic_region_scheduled_time = next_traffic_region_scheduled_time - self.subscription_reregistration_result = subscription_reregistration_result - - -class DefaultRolloutPropertiesStatus(DefaultRolloutStatus): - """DefaultRolloutPropertiesStatus. - - :param completed_regions: - :type completed_regions: list[str] - :param failed_or_skipped_regions: Dictionary of :code:``. - :type failed_or_skipped_regions: dict[str, ~provider_hub.models.ExtendedErrorInfo] - :param next_traffic_region: Possible values include: "NotSpecified", "Canary", "LowTraffic", - "MediumTraffic", "HighTraffic", "None", "RestOfTheWorldGroupOne", "RestOfTheWorldGroupTwo". - :type next_traffic_region: str or ~provider_hub.models.TrafficRegionCategory - :param next_traffic_region_scheduled_time: - :type next_traffic_region_scheduled_time: ~datetime.datetime - :param subscription_reregistration_result: Possible values include: "NotApplicable", - "ConditionalUpdate", "ForcedUpdate", "Failed". - :type subscription_reregistration_result: str or - ~provider_hub.models.SubscriptionReregistrationResult - """ - - _attribute_map = { - 'completed_regions': {'key': 'completedRegions', 'type': '[str]'}, - 'failed_or_skipped_regions': {'key': 'failedOrSkippedRegions', 'type': '{ExtendedErrorInfo}'}, - 'next_traffic_region': {'key': 'nextTrafficRegion', 'type': 'str'}, - 'next_traffic_region_scheduled_time': {'key': 'nextTrafficRegionScheduledTime', 'type': 'iso-8601'}, - 'subscription_reregistration_result': {'key': 'subscriptionReregistrationResult', 'type': 'str'}, - } - - def __init__( - self, - *, - completed_regions: Optional[List[str]] = None, - failed_or_skipped_regions: Optional[Dict[str, "ExtendedErrorInfo"]] = None, - next_traffic_region: Optional[Union[str, "TrafficRegionCategory"]] = None, - next_traffic_region_scheduled_time: Optional[datetime.datetime] = None, - subscription_reregistration_result: Optional[Union[str, "SubscriptionReregistrationResult"]] = None, - **kwargs - ): - super(DefaultRolloutPropertiesStatus, self).__init__(completed_regions=completed_regions, failed_or_skipped_regions=failed_or_skipped_regions, next_traffic_region=next_traffic_region, next_traffic_region_scheduled_time=next_traffic_region_scheduled_time, subscription_reregistration_result=subscription_reregistration_result, **kwargs) - - -class DefaultRolloutSpecificationCanary(CanaryTrafficRegionRolloutConfiguration): - """DefaultRolloutSpecificationCanary. - - :param skip_regions: - :type skip_regions: list[str] - :param regions: - :type regions: list[str] - """ - - _attribute_map = { - 'skip_regions': {'key': 'skipRegions', 'type': '[str]'}, - 'regions': {'key': 'regions', 'type': '[str]'}, - } - - def __init__( - self, - *, - skip_regions: Optional[List[str]] = None, - regions: Optional[List[str]] = None, - **kwargs - ): - super(DefaultRolloutSpecificationCanary, self).__init__(skip_regions=skip_regions, regions=regions, **kwargs) - - -class TrafficRegionRolloutConfiguration(TrafficRegions): - """TrafficRegionRolloutConfiguration. - - :param regions: - :type regions: list[str] - :param wait_duration: - :type wait_duration: ~datetime.timedelta - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - 'wait_duration': {'key': 'waitDuration', 'type': 'duration'}, - } - - def __init__( - self, - *, - regions: Optional[List[str]] = None, - wait_duration: Optional[datetime.timedelta] = None, - **kwargs - ): - super(TrafficRegionRolloutConfiguration, self).__init__(regions=regions, **kwargs) - self.wait_duration = wait_duration - - -class DefaultRolloutSpecificationHighTraffic(TrafficRegionRolloutConfiguration): - """DefaultRolloutSpecificationHighTraffic. - - :param regions: - :type regions: list[str] - :param wait_duration: - :type wait_duration: ~datetime.timedelta - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - 'wait_duration': {'key': 'waitDuration', 'type': 'duration'}, - } - - def __init__( - self, - *, - regions: Optional[List[str]] = None, - wait_duration: Optional[datetime.timedelta] = None, - **kwargs - ): - super(DefaultRolloutSpecificationHighTraffic, self).__init__(regions=regions, wait_duration=wait_duration, **kwargs) - - -class DefaultRolloutSpecificationLowTraffic(TrafficRegionRolloutConfiguration): - """DefaultRolloutSpecificationLowTraffic. - - :param regions: - :type regions: list[str] - :param wait_duration: - :type wait_duration: ~datetime.timedelta - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - 'wait_duration': {'key': 'waitDuration', 'type': 'duration'}, - } - - def __init__( - self, - *, - regions: Optional[List[str]] = None, - wait_duration: Optional[datetime.timedelta] = None, - **kwargs - ): - super(DefaultRolloutSpecificationLowTraffic, self).__init__(regions=regions, wait_duration=wait_duration, **kwargs) - - -class DefaultRolloutSpecificationMediumTraffic(TrafficRegionRolloutConfiguration): - """DefaultRolloutSpecificationMediumTraffic. - - :param regions: - :type regions: list[str] - :param wait_duration: - :type wait_duration: ~datetime.timedelta - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - 'wait_duration': {'key': 'waitDuration', 'type': 'duration'}, - } - - def __init__( - self, - *, - regions: Optional[List[str]] = None, - wait_duration: Optional[datetime.timedelta] = None, - **kwargs - ): - super(DefaultRolloutSpecificationMediumTraffic, self).__init__(regions=regions, wait_duration=wait_duration, **kwargs) - - -class DefaultRolloutSpecificationProviderRegistration(ProviderRegistration): - """DefaultRolloutSpecificationProviderRegistration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: - :type properties: ~provider_hub.models.ProviderRegistrationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProviderRegistrationProperties'}, - } - - def __init__( - self, - *, - properties: Optional["ProviderRegistrationProperties"] = None, - **kwargs - ): - super(DefaultRolloutSpecificationProviderRegistration, self).__init__(properties=properties, **kwargs) - - -class DefaultRolloutSpecificationRestOfTheWorldGroupOne(TrafficRegionRolloutConfiguration): - """DefaultRolloutSpecificationRestOfTheWorldGroupOne. - - :param regions: - :type regions: list[str] - :param wait_duration: - :type wait_duration: ~datetime.timedelta - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - 'wait_duration': {'key': 'waitDuration', 'type': 'duration'}, - } - - def __init__( - self, - *, - regions: Optional[List[str]] = None, - wait_duration: Optional[datetime.timedelta] = None, - **kwargs - ): - super(DefaultRolloutSpecificationRestOfTheWorldGroupOne, self).__init__(regions=regions, wait_duration=wait_duration, **kwargs) - - -class DefaultRolloutSpecificationRestOfTheWorldGroupTwo(TrafficRegionRolloutConfiguration): - """DefaultRolloutSpecificationRestOfTheWorldGroupTwo. - - :param regions: - :type regions: list[str] - :param wait_duration: - :type wait_duration: ~datetime.timedelta - """ - - _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, - 'wait_duration': {'key': 'waitDuration', 'type': 'duration'}, - } - - def __init__( - self, - *, - regions: Optional[List[str]] = None, - wait_duration: Optional[datetime.timedelta] = None, - **kwargs - ): - super(DefaultRolloutSpecificationRestOfTheWorldGroupTwo, self).__init__(regions=regions, wait_duration=wait_duration, **kwargs) - - -class Error(msrest.serialization.Model): - """Standard error object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Server-defined set of error codes. - :vartype code: str - :ivar message: Human-readable representation of the error. - :vartype message: str - :ivar target: Target of the error. - :vartype target: str - :ivar details: Array of details about specific errors that led to this reported error. - :vartype details: list[~provider_hub.models.Error] - :ivar inner_error: Object containing more specific information than the current object about - the error. - :vartype inner_error: ~provider_hub.models.InnerError - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'inner_error': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[Error]'}, - 'inner_error': {'key': 'innerError', 'type': 'InnerError'}, - } - - def __init__( - self, - **kwargs - ): - super(Error, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None - self.inner_error = None - - -class InnerError(msrest.serialization.Model): - """Inner error containing list of errors. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param additional_properties: Unmatched properties from the message are deserialized to this - collection. - :type additional_properties: dict[str, object] - :ivar code: Specific error code than was provided by the containing error. - :vartype code: str - :ivar inner_error: Object containing more specific information than the current object about - the error. - :vartype inner_error: object - """ - - _validation = { - 'code': {'readonly': True}, - 'inner_error': {'readonly': True}, - } - - _attribute_map = { - 'additional_properties': {'key': '', 'type': '{object}'}, - 'code': {'key': 'code', 'type': 'str'}, - 'inner_error': {'key': 'innerError', 'type': 'object'}, - } - - def __init__( - self, - *, - additional_properties: Optional[Dict[str, object]] = None, - **kwargs - ): - super(InnerError, self).__init__(**kwargs) - self.additional_properties = additional_properties - self.code = None - self.inner_error = None - - -class ErrorInnerError(InnerError): - """Object containing more specific information than the current object about the error. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param additional_properties: Unmatched properties from the message are deserialized to this - collection. - :type additional_properties: dict[str, object] - :ivar code: Specific error code than was provided by the containing error. - :vartype code: str - :ivar inner_error: Object containing more specific information than the current object about - the error. - :vartype inner_error: object - """ - - _validation = { - 'code': {'readonly': True}, - 'inner_error': {'readonly': True}, - } - - _attribute_map = { - 'additional_properties': {'key': '', 'type': '{object}'}, - 'code': {'key': 'code', 'type': 'str'}, - 'inner_error': {'key': 'innerError', 'type': 'object'}, - } - - def __init__( - self, - *, - additional_properties: Optional[Dict[str, object]] = None, - **kwargs - ): - super(ErrorInnerError, self).__init__(additional_properties=additional_properties, **kwargs) - - -class ErrorResponse(msrest.serialization.Model): - """Standard error response. - - :param error: Standard error object. - :type error: ~provider_hub.models.Error - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'Error'}, - } - - def __init__( - self, - *, - error: Optional["Error"] = None, - **kwargs - ): - super(ErrorResponse, self).__init__(**kwargs) - self.error = error - - -class ErrorResponseError(Error): - """Standard error object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Server-defined set of error codes. - :vartype code: str - :ivar message: Human-readable representation of the error. - :vartype message: str - :ivar target: Target of the error. - :vartype target: str - :ivar details: Array of details about specific errors that led to this reported error. - :vartype details: list[~provider_hub.models.Error] - :ivar inner_error: Object containing more specific information than the current object about - the error. - :vartype inner_error: ~provider_hub.models.InnerError - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'inner_error': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[Error]'}, - 'inner_error': {'key': 'innerError', 'type': 'InnerError'}, - } - - def __init__( - self, - **kwargs - ): - super(ErrorResponseError, self).__init__(**kwargs) - - -class ExtendedErrorInfo(msrest.serialization.Model): - """ExtendedErrorInfo. - - :param code: - :type code: str - :param target: - :type target: str - :param message: - :type message: str - :param details: - :type details: list[~provider_hub.models.ExtendedErrorInfo] - :param additional_info: - :type additional_info: list[~provider_hub.models.TypedErrorInfo] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ExtendedErrorInfo]'}, - 'additional_info': {'key': 'additionalInfo', 'type': '[TypedErrorInfo]'}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - target: Optional[str] = None, - message: Optional[str] = None, - details: Optional[List["ExtendedErrorInfo"]] = None, - additional_info: Optional[List["TypedErrorInfo"]] = None, - **kwargs - ): - super(ExtendedErrorInfo, self).__init__(**kwargs) - self.code = code - self.target = target - self.message = message - self.details = details - self.additional_info = additional_info - - -class ExtendedLocationOptions(msrest.serialization.Model): - """ExtendedLocationOptions. - - :param type: - :type type: str - :param supported_policy: - :type supported_policy: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'supported_policy': {'key': 'supportedPolicy', 'type': 'str'}, - } - - def __init__( - self, - *, - type: Optional[str] = None, - supported_policy: Optional[str] = None, - **kwargs - ): - super(ExtendedLocationOptions, self).__init__(**kwargs) - self.type = type - self.supported_policy = supported_policy - - -class ExtensionOptions(msrest.serialization.Model): - """ExtensionOptions. - - :param request: - :type request: list[str or ~provider_hub.models.ExtensionOptionType] - :param response: - :type response: list[str or ~provider_hub.models.ExtensionOptionType] - """ - - _attribute_map = { - 'request': {'key': 'request', 'type': '[str]'}, - 'response': {'key': 'response', 'type': '[str]'}, - } - - def __init__( - self, - *, - request: Optional[List[Union[str, "ExtensionOptionType"]]] = None, - response: Optional[List[Union[str, "ExtensionOptionType"]]] = None, - **kwargs - ): - super(ExtensionOptions, self).__init__(**kwargs) - self.request = request - self.response = response - - -class FeaturesRule(msrest.serialization.Model): - """FeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - *, - required_features_policy: Union[str, "FeaturesPolicy"], - **kwargs - ): - super(FeaturesRule, self).__init__(**kwargs) - self.required_features_policy = required_features_policy - - -class IdentityManagement(msrest.serialization.Model): - """IdentityManagement. - - :param type: Possible values include: "NotSpecified", "SystemAssigned", "UserAssigned", - "Actor", "DelegatedResourceIdentity". - :type type: str or ~provider_hub.models.IdentityManagementTypes - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "IdentityManagementTypes"]] = None, - **kwargs - ): - super(IdentityManagement, self).__init__(**kwargs) - self.type = type - - -class IdentityManagementProperties(msrest.serialization.Model): - """IdentityManagementProperties. - - :param type: Possible values include: "NotSpecified", "SystemAssigned", "UserAssigned", - "Actor", "DelegatedResourceIdentity". - :type type: str or ~provider_hub.models.IdentityManagementTypes - :param application_id: - :type application_id: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'application_id': {'key': 'applicationId', 'type': 'str'}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "IdentityManagementTypes"]] = None, - application_id: Optional[str] = None, - **kwargs - ): - super(IdentityManagementProperties, self).__init__(**kwargs) - self.type = type - self.application_id = application_id - - -class LightHouseAuthorization(msrest.serialization.Model): - """LightHouseAuthorization. - - All required parameters must be populated in order to send to Azure. - - :param principal_id: Required. - :type principal_id: str - :param role_definition_id: Required. - :type role_definition_id: str - """ - - _validation = { - 'principal_id': {'required': True}, - 'role_definition_id': {'required': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'role_definition_id': {'key': 'roleDefinitionId', 'type': 'str'}, - } - - def __init__( - self, - *, - principal_id: str, - role_definition_id: str, - **kwargs - ): - super(LightHouseAuthorization, self).__init__(**kwargs) - self.principal_id = principal_id - self.role_definition_id = role_definition_id - - -class LinkedAccessCheck(msrest.serialization.Model): - """LinkedAccessCheck. - - :param action_name: - :type action_name: str - :param linked_property: - :type linked_property: str - :param linked_action: - :type linked_action: str - :param linked_action_verb: - :type linked_action_verb: str - :param linked_type: - :type linked_type: str - """ - - _attribute_map = { - 'action_name': {'key': 'actionName', 'type': 'str'}, - 'linked_property': {'key': 'linkedProperty', 'type': 'str'}, - 'linked_action': {'key': 'linkedAction', 'type': 'str'}, - 'linked_action_verb': {'key': 'linkedActionVerb', 'type': 'str'}, - 'linked_type': {'key': 'linkedType', 'type': 'str'}, - } - - def __init__( - self, - *, - action_name: Optional[str] = None, - linked_property: Optional[str] = None, - linked_action: Optional[str] = None, - linked_action_verb: Optional[str] = None, - linked_type: Optional[str] = None, - **kwargs - ): - super(LinkedAccessCheck, self).__init__(**kwargs) - self.action_name = action_name - self.linked_property = linked_property - self.linked_action = linked_action - self.linked_action_verb = linked_action_verb - self.linked_type = linked_type - - -class LinkedOperationRule(msrest.serialization.Model): - """LinkedOperationRule. - - All required parameters must be populated in order to send to Azure. - - :param linked_operation: Required. Possible values include: "None", - "CrossResourceGroupResourceMove", "CrossSubscriptionResourceMove". - :type linked_operation: str or ~provider_hub.models.LinkedOperation - :param linked_action: Required. Possible values include: "NotSpecified", "Blocked", - "Validate", "Enabled". - :type linked_action: str or ~provider_hub.models.LinkedAction - """ - - _validation = { - 'linked_operation': {'required': True}, - 'linked_action': {'required': True}, - } - - _attribute_map = { - 'linked_operation': {'key': 'linkedOperation', 'type': 'str'}, - 'linked_action': {'key': 'linkedAction', 'type': 'str'}, - } - - def __init__( - self, - *, - linked_operation: Union[str, "LinkedOperation"], - linked_action: Union[str, "LinkedAction"], - **kwargs - ): - super(LinkedOperationRule, self).__init__(**kwargs) - self.linked_operation = linked_operation - self.linked_action = linked_action - - -class LoggingHiddenPropertyPath(msrest.serialization.Model): - """LoggingHiddenPropertyPath. - - :param hidden_paths_on_request: - :type hidden_paths_on_request: list[str] - :param hidden_paths_on_response: - :type hidden_paths_on_response: list[str] - """ - - _attribute_map = { - 'hidden_paths_on_request': {'key': 'hiddenPathsOnRequest', 'type': '[str]'}, - 'hidden_paths_on_response': {'key': 'hiddenPathsOnResponse', 'type': '[str]'}, - } - - def __init__( - self, - *, - hidden_paths_on_request: Optional[List[str]] = None, - hidden_paths_on_response: Optional[List[str]] = None, - **kwargs - ): - super(LoggingHiddenPropertyPath, self).__init__(**kwargs) - self.hidden_paths_on_request = hidden_paths_on_request - self.hidden_paths_on_response = hidden_paths_on_response - - -class LoggingRule(msrest.serialization.Model): - """LoggingRule. - - All required parameters must be populated in order to send to Azure. - - :param action: Required. - :type action: str - :param direction: Required. Possible values include: "None", "Request", "Response". - :type direction: str or ~provider_hub.models.LoggingDirections - :param detail_level: Required. Possible values include: "None", "Body". - :type detail_level: str or ~provider_hub.models.LoggingDetails - :param hidden_property_paths: - :type hidden_property_paths: ~provider_hub.models.LoggingHiddenPropertyPath - """ - - _validation = { - 'action': {'required': True}, - 'direction': {'required': True}, - 'detail_level': {'required': True}, - } - - _attribute_map = { - 'action': {'key': 'action', 'type': 'str'}, - 'direction': {'key': 'direction', 'type': 'str'}, - 'detail_level': {'key': 'detailLevel', 'type': 'str'}, - 'hidden_property_paths': {'key': 'hiddenPropertyPaths', 'type': 'LoggingHiddenPropertyPath'}, - } - - def __init__( - self, - *, - action: str, - direction: Union[str, "LoggingDirections"], - detail_level: Union[str, "LoggingDetails"], - hidden_property_paths: Optional["LoggingHiddenPropertyPath"] = None, - **kwargs - ): - super(LoggingRule, self).__init__(**kwargs) - self.action = action - self.direction = direction - self.detail_level = detail_level - self.hidden_property_paths = hidden_property_paths - - -class LoggingRuleHiddenPropertyPaths(LoggingHiddenPropertyPath): - """LoggingRuleHiddenPropertyPaths. - - :param hidden_paths_on_request: - :type hidden_paths_on_request: list[str] - :param hidden_paths_on_response: - :type hidden_paths_on_response: list[str] - """ - - _attribute_map = { - 'hidden_paths_on_request': {'key': 'hiddenPathsOnRequest', 'type': '[str]'}, - 'hidden_paths_on_response': {'key': 'hiddenPathsOnResponse', 'type': '[str]'}, - } - - def __init__( - self, - *, - hidden_paths_on_request: Optional[List[str]] = None, - hidden_paths_on_response: Optional[List[str]] = None, - **kwargs - ): - super(LoggingRuleHiddenPropertyPaths, self).__init__(hidden_paths_on_request=hidden_paths_on_request, hidden_paths_on_response=hidden_paths_on_response, **kwargs) - - -class NotificationEndpoint(msrest.serialization.Model): - """NotificationEndpoint. - - :param notification_destination: - :type notification_destination: str - :param locations: - :type locations: list[str] - """ - - _attribute_map = { - 'notification_destination': {'key': 'notificationDestination', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - } - - def __init__( - self, - *, - notification_destination: Optional[str] = None, - locations: Optional[List[str]] = None, - **kwargs - ): - super(NotificationEndpoint, self).__init__(**kwargs) - self.notification_destination = notification_destination - self.locations = locations - - -class NotificationRegistration(Resource): - """The notification registration definition. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: - :type properties: ~provider_hub.models.NotificationRegistrationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'NotificationRegistrationProperties'}, - } - - def __init__( - self, - *, - properties: Optional["NotificationRegistrationProperties"] = None, - **kwargs - ): - super(NotificationRegistration, self).__init__(**kwargs) - self.properties = properties - - -class NotificationRegistrationArrayResponseWithContinuation(msrest.serialization.Model): - """NotificationRegistrationArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.NotificationRegistration] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[NotificationRegistration]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - value: Optional[List["NotificationRegistration"]] = None, - next_link: Optional[str] = None, - **kwargs - ): - super(NotificationRegistrationArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class NotificationRegistrationProperties(msrest.serialization.Model): - """NotificationRegistrationProperties. - - :param notification_mode: Possible values include: "NotSpecified", "EventHub", "WebHook". - :type notification_mode: str or ~provider_hub.models.NotificationMode - :param message_scope: Possible values include: "NotSpecified", "RegisteredSubscriptions". - :type message_scope: str or ~provider_hub.models.MessageScope - :param included_events: - :type included_events: list[str] - :param notification_endpoints: - :type notification_endpoints: list[~provider_hub.models.NotificationEndpoint] - """ - - _attribute_map = { - 'notification_mode': {'key': 'notificationMode', 'type': 'str'}, - 'message_scope': {'key': 'messageScope', 'type': 'str'}, - 'included_events': {'key': 'includedEvents', 'type': '[str]'}, - 'notification_endpoints': {'key': 'notificationEndpoints', 'type': '[NotificationEndpoint]'}, - } - - def __init__( - self, - *, - notification_mode: Optional[Union[str, "NotificationMode"]] = None, - message_scope: Optional[Union[str, "MessageScope"]] = None, - included_events: Optional[List[str]] = None, - notification_endpoints: Optional[List["NotificationEndpoint"]] = None, - **kwargs - ): - super(NotificationRegistrationProperties, self).__init__(**kwargs) - self.notification_mode = notification_mode - self.message_scope = message_scope - self.included_events = included_events - self.notification_endpoints = notification_endpoints - - -class NotificationRegistrationPropertiesautogenerated(NotificationRegistrationProperties): - """NotificationRegistrationPropertiesautogenerated. - - :param notification_mode: Possible values include: "NotSpecified", "EventHub", "WebHook". - :type notification_mode: str or ~provider_hub.models.NotificationMode - :param message_scope: Possible values include: "NotSpecified", "RegisteredSubscriptions". - :type message_scope: str or ~provider_hub.models.MessageScope - :param included_events: - :type included_events: list[str] - :param notification_endpoints: - :type notification_endpoints: list[~provider_hub.models.NotificationEndpoint] - """ - - _attribute_map = { - 'notification_mode': {'key': 'notificationMode', 'type': 'str'}, - 'message_scope': {'key': 'messageScope', 'type': 'str'}, - 'included_events': {'key': 'includedEvents', 'type': '[str]'}, - 'notification_endpoints': {'key': 'notificationEndpoints', 'type': '[NotificationEndpoint]'}, - } - - def __init__( - self, - *, - notification_mode: Optional[Union[str, "NotificationMode"]] = None, - message_scope: Optional[Union[str, "MessageScope"]] = None, - included_events: Optional[List[str]] = None, - notification_endpoints: Optional[List["NotificationEndpoint"]] = None, - **kwargs - ): - super(NotificationRegistrationPropertiesautogenerated, self).__init__(notification_mode=notification_mode, message_scope=message_scope, included_events=included_events, notification_endpoints=notification_endpoints, **kwargs) - - -class OperationsContent(Resource): - """OperationsContent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param name_properties_name: Name of the operation. - :type name_properties_name: str - :param is_data_action: Indicates whether the operation applies to data-plane. - :type is_data_action: bool - :param origin: Possible values include: "NotSpecified", "User", "System". - :type origin: str or ~provider_hub.models.OperationsDefinitionOrigin - :param display: Display information of the operation. - :type display: ~provider_hub.models.OperationsDisplayDefinition - :param action_type: Possible values include: "NotSpecified", "Internal". - :type action_type: str or ~provider_hub.models.OperationsDefinitionActionType - :param properties: Any object. - :type properties: object - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name_properties_name': {'key': 'properties.name', 'type': 'str'}, - 'is_data_action': {'key': 'properties.isDataAction', 'type': 'bool'}, - 'origin': {'key': 'properties.origin', 'type': 'str'}, - 'display': {'key': 'properties.display', 'type': 'OperationsDisplayDefinition'}, - 'action_type': {'key': 'properties.actionType', 'type': 'str'}, - 'properties': {'key': 'properties.properties', 'type': 'object'}, - } - - def __init__( - self, - *, - name_properties_name: Optional[str] = None, - is_data_action: Optional[bool] = None, - origin: Optional[Union[str, "OperationsDefinitionOrigin"]] = None, - display: Optional["OperationsDisplayDefinition"] = None, - action_type: Optional[Union[str, "OperationsDefinitionActionType"]] = None, - properties: Optional[object] = None, - **kwargs - ): - super(OperationsContent, self).__init__(**kwargs) - self.name_properties_name = name_properties_name - self.is_data_action = is_data_action - self.origin = origin - self.display = display - self.action_type = action_type - self.properties = properties - - -class OperationsDefinition(msrest.serialization.Model): - """Properties of an Operation. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. Name of the operation. - :type name: str - :param is_data_action: Indicates whether the operation applies to data-plane. - :type is_data_action: bool - :param origin: Possible values include: "NotSpecified", "User", "System". - :type origin: str or ~provider_hub.models.OperationsDefinitionOrigin - :param display: Required. Display information of the operation. - :type display: ~provider_hub.models.OperationsDisplayDefinition - :param action_type: Possible values include: "NotSpecified", "Internal". - :type action_type: str or ~provider_hub.models.OperationsDefinitionActionType - :param properties: Any object. - :type properties: object - """ - - _validation = { - 'name': {'required': True}, - 'display': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationsDisplayDefinition'}, - 'action_type': {'key': 'actionType', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__( - self, - *, - name: str, - display: "OperationsDisplayDefinition", - is_data_action: Optional[bool] = None, - origin: Optional[Union[str, "OperationsDefinitionOrigin"]] = None, - action_type: Optional[Union[str, "OperationsDefinitionActionType"]] = None, - properties: Optional[object] = None, - **kwargs - ): - super(OperationsDefinition, self).__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.origin = origin - self.display = display - self.action_type = action_type - self.properties = properties - - -class OperationsDefinitionArrayResponseWithContinuation(msrest.serialization.Model): - """OperationsDefinitionArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.OperationsDefinition] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[OperationsDefinition]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - value: Optional[List["OperationsDefinition"]] = None, - next_link: Optional[str] = None, - **kwargs - ): - super(OperationsDefinitionArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class OperationsDisplayDefinition(msrest.serialization.Model): - """OperationsDisplayDefinition. - - All required parameters must be populated in order to send to Azure. - - :param provider: Required. - :type provider: str - :param resource: Required. - :type resource: str - :param operation: Required. - :type operation: str - :param description: Required. - :type description: str - """ - - _validation = { - 'provider': {'required': True}, - 'resource': {'required': True}, - 'operation': {'required': True}, - 'description': {'required': True}, - } - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__( - self, - *, - provider: str, - resource: str, - operation: str, - description: str, - **kwargs - ): - super(OperationsDisplayDefinition, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationsDefinitionDisplay(OperationsDisplayDefinition): - """Display information of the operation. - - All required parameters must be populated in order to send to Azure. - - :param provider: Required. - :type provider: str - :param resource: Required. - :type resource: str - :param operation: Required. - :type operation: str - :param description: Required. - :type description: str - """ - - _validation = { - 'provider': {'required': True}, - 'resource': {'required': True}, - 'operation': {'required': True}, - 'description': {'required': True}, - } - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__( - self, - *, - provider: str, - resource: str, - operation: str, - description: str, - **kwargs - ): - super(OperationsDefinitionDisplay, self).__init__(provider=provider, resource=resource, operation=operation, description=description, **kwargs) - - -class OperationsPutContent(msrest.serialization.Model): - """OperationsPutContent. - - All required parameters must be populated in order to send to Azure. - - :param contents: Required. - :type contents: list[~provider_hub.models.OperationsDefinition] - """ - - _validation = { - 'contents': {'required': True}, - } - - _attribute_map = { - 'contents': {'key': 'contents', 'type': '[OperationsDefinition]'}, - } - - def __init__( - self, - *, - contents: List["OperationsDefinition"], - **kwargs - ): - super(OperationsPutContent, self).__init__(**kwargs) - self.contents = contents - - -class ProviderHubMetadata(msrest.serialization.Model): - """ProviderHubMetadata. - - :param provider_authorizations: - :type provider_authorizations: list[~provider_hub.models.ResourceProviderAuthorization] - :param provider_authentication: - :type provider_authentication: ~provider_hub.models.ResourceProviderAuthentication - :param third_party_provider_authorization: - :type third_party_provider_authorization: ~provider_hub.models.ThirdPartyProviderAuthorization - """ - - _attribute_map = { - 'provider_authorizations': {'key': 'providerAuthorizations', 'type': '[ResourceProviderAuthorization]'}, - 'provider_authentication': {'key': 'providerAuthentication', 'type': 'ResourceProviderAuthentication'}, - 'third_party_provider_authorization': {'key': 'thirdPartyProviderAuthorization', 'type': 'ThirdPartyProviderAuthorization'}, - } - - def __init__( - self, - *, - provider_authorizations: Optional[List["ResourceProviderAuthorization"]] = None, - provider_authentication: Optional["ResourceProviderAuthentication"] = None, - third_party_provider_authorization: Optional["ThirdPartyProviderAuthorization"] = None, - **kwargs - ): - super(ProviderHubMetadata, self).__init__(**kwargs) - self.provider_authorizations = provider_authorizations - self.provider_authentication = provider_authentication - self.third_party_provider_authorization = third_party_provider_authorization - - -class ResourceProviderAuthentication(msrest.serialization.Model): - """ResourceProviderAuthentication. - - All required parameters must be populated in order to send to Azure. - - :param allowed_audiences: Required. - :type allowed_audiences: list[str] - """ - - _validation = { - 'allowed_audiences': {'required': True}, - } - - _attribute_map = { - 'allowed_audiences': {'key': 'allowedAudiences', 'type': '[str]'}, - } - - def __init__( - self, - *, - allowed_audiences: List[str], - **kwargs - ): - super(ResourceProviderAuthentication, self).__init__(**kwargs) - self.allowed_audiences = allowed_audiences - - -class ProviderHubMetadataProviderAuthentication(ResourceProviderAuthentication): - """ProviderHubMetadataProviderAuthentication. - - All required parameters must be populated in order to send to Azure. - - :param allowed_audiences: Required. - :type allowed_audiences: list[str] - """ - - _validation = { - 'allowed_audiences': {'required': True}, - } - - _attribute_map = { - 'allowed_audiences': {'key': 'allowedAudiences', 'type': '[str]'}, - } - - def __init__( - self, - *, - allowed_audiences: List[str], - **kwargs - ): - super(ProviderHubMetadataProviderAuthentication, self).__init__(allowed_audiences=allowed_audiences, **kwargs) - - -class ThirdPartyProviderAuthorization(msrest.serialization.Model): - """ThirdPartyProviderAuthorization. - - :param authorizations: - :type authorizations: list[~provider_hub.models.LightHouseAuthorization] - :param managed_by_tenant_id: - :type managed_by_tenant_id: str - """ - - _attribute_map = { - 'authorizations': {'key': 'authorizations', 'type': '[LightHouseAuthorization]'}, - 'managed_by_tenant_id': {'key': 'managedByTenantId', 'type': 'str'}, - } - - def __init__( - self, - *, - authorizations: Optional[List["LightHouseAuthorization"]] = None, - managed_by_tenant_id: Optional[str] = None, - **kwargs - ): - super(ThirdPartyProviderAuthorization, self).__init__(**kwargs) - self.authorizations = authorizations - self.managed_by_tenant_id = managed_by_tenant_id - - -class ProviderHubMetadataThirdPartyProviderAuthorization(ThirdPartyProviderAuthorization): - """ProviderHubMetadataThirdPartyProviderAuthorization. - - :param authorizations: - :type authorizations: list[~provider_hub.models.LightHouseAuthorization] - :param managed_by_tenant_id: - :type managed_by_tenant_id: str - """ - - _attribute_map = { - 'authorizations': {'key': 'authorizations', 'type': '[LightHouseAuthorization]'}, - 'managed_by_tenant_id': {'key': 'managedByTenantId', 'type': 'str'}, - } - - def __init__( - self, - *, - authorizations: Optional[List["LightHouseAuthorization"]] = None, - managed_by_tenant_id: Optional[str] = None, - **kwargs - ): - super(ProviderHubMetadataThirdPartyProviderAuthorization, self).__init__(authorizations=authorizations, managed_by_tenant_id=managed_by_tenant_id, **kwargs) - - -class ProviderRegistrationArrayResponseWithContinuation(msrest.serialization.Model): - """ProviderRegistrationArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.ProviderRegistration] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ProviderRegistration]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - value: Optional[List["ProviderRegistration"]] = None, - next_link: Optional[str] = None, - **kwargs - ): - super(ProviderRegistrationArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceProviderManifestProperties(msrest.serialization.Model): - """ResourceProviderManifestProperties. - - :param provider_authentication: - :type provider_authentication: ~provider_hub.models.ResourceProviderAuthentication - :param provider_authorizations: - :type provider_authorizations: list[~provider_hub.models.ResourceProviderAuthorization] - :param namespace: - :type namespace: str - :param provider_version: - :type provider_version: str - :param provider_type: Possible values include: "NotSpecified", "Internal", "External", - "Hidden", "RegistrationFree", "LegacyRegistrationRequired", "TenantOnly", "AuthorizationFree". - :type provider_type: str or ~provider_hub.models.ResourceProviderType - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param management: - :type management: ~provider_hub.models.ResourceProviderManagement - :param capabilities: - :type capabilities: list[~provider_hub.models.ResourceProviderCapabilities] - :param metadata: Any object. - :type metadata: object - :param template_deployment_options: - :type template_deployment_options: ~provider_hub.models.TemplateDeploymentOptions - """ - - _attribute_map = { - 'provider_authentication': {'key': 'providerAuthentication', 'type': 'ResourceProviderAuthentication'}, - 'provider_authorizations': {'key': 'providerAuthorizations', 'type': '[ResourceProviderAuthorization]'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'provider_version': {'key': 'providerVersion', 'type': 'str'}, - 'provider_type': {'key': 'providerType', 'type': 'str'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'management': {'key': 'management', 'type': 'ResourceProviderManagement'}, - 'capabilities': {'key': 'capabilities', 'type': '[ResourceProviderCapabilities]'}, - 'metadata': {'key': 'metadata', 'type': 'object'}, - 'template_deployment_options': {'key': 'templateDeploymentOptions', 'type': 'TemplateDeploymentOptions'}, - } - - def __init__( - self, - *, - provider_authentication: Optional["ResourceProviderAuthentication"] = None, - provider_authorizations: Optional[List["ResourceProviderAuthorization"]] = None, - namespace: Optional[str] = None, - provider_version: Optional[str] = None, - provider_type: Optional[Union[str, "ResourceProviderType"]] = None, - required_features: Optional[List[str]] = None, - features_rule: Optional["FeaturesRule"] = None, - request_header_options: Optional["RequestHeaderOptions"] = None, - management: Optional["ResourceProviderManagement"] = None, - capabilities: Optional[List["ResourceProviderCapabilities"]] = None, - metadata: Optional[object] = None, - template_deployment_options: Optional["TemplateDeploymentOptions"] = None, - **kwargs - ): - super(ResourceProviderManifestProperties, self).__init__(**kwargs) - self.provider_authentication = provider_authentication - self.provider_authorizations = provider_authorizations - self.namespace = namespace - self.provider_version = provider_version - self.provider_type = provider_type - self.required_features = required_features - self.features_rule = features_rule - self.request_header_options = request_header_options - self.management = management - self.capabilities = capabilities - self.metadata = metadata - self.template_deployment_options = template_deployment_options - - -class ProviderRegistrationProperties(ResourceProviderManifestProperties): - """ProviderRegistrationProperties. - - :param provider_authentication: - :type provider_authentication: ~provider_hub.models.ResourceProviderAuthentication - :param provider_authorizations: - :type provider_authorizations: list[~provider_hub.models.ResourceProviderAuthorization] - :param namespace: - :type namespace: str - :param provider_version: - :type provider_version: str - :param provider_type: Possible values include: "NotSpecified", "Internal", "External", - "Hidden", "RegistrationFree", "LegacyRegistrationRequired", "TenantOnly", "AuthorizationFree". - :type provider_type: str or ~provider_hub.models.ResourceProviderType - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param management: - :type management: ~provider_hub.models.ResourceProviderManagement - :param capabilities: - :type capabilities: list[~provider_hub.models.ResourceProviderCapabilities] - :param metadata: Any object. - :type metadata: object - :param template_deployment_options: - :type template_deployment_options: ~provider_hub.models.TemplateDeploymentOptions - :param provider_hub_metadata: - :type provider_hub_metadata: ~provider_hub.models.ProviderHubMetadata - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param subscription_lifecycle_notification_specifications: - :type subscription_lifecycle_notification_specifications: - ~provider_hub.models.SubscriptionLifecycleNotificationSpecifications - """ - - _attribute_map = { - 'provider_authentication': {'key': 'providerAuthentication', 'type': 'ResourceProviderAuthentication'}, - 'provider_authorizations': {'key': 'providerAuthorizations', 'type': '[ResourceProviderAuthorization]'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'provider_version': {'key': 'providerVersion', 'type': 'str'}, - 'provider_type': {'key': 'providerType', 'type': 'str'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'management': {'key': 'management', 'type': 'ResourceProviderManagement'}, - 'capabilities': {'key': 'capabilities', 'type': '[ResourceProviderCapabilities]'}, - 'metadata': {'key': 'metadata', 'type': 'object'}, - 'template_deployment_options': {'key': 'templateDeploymentOptions', 'type': 'TemplateDeploymentOptions'}, - 'provider_hub_metadata': {'key': 'providerHubMetadata', 'type': 'ProviderHubMetadata'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'subscription_lifecycle_notification_specifications': {'key': 'subscriptionLifecycleNotificationSpecifications', 'type': 'SubscriptionLifecycleNotificationSpecifications'}, - } - - def __init__( - self, - *, - provider_authentication: Optional["ResourceProviderAuthentication"] = None, - provider_authorizations: Optional[List["ResourceProviderAuthorization"]] = None, - namespace: Optional[str] = None, - provider_version: Optional[str] = None, - provider_type: Optional[Union[str, "ResourceProviderType"]] = None, - required_features: Optional[List[str]] = None, - features_rule: Optional["FeaturesRule"] = None, - request_header_options: Optional["RequestHeaderOptions"] = None, - management: Optional["ResourceProviderManagement"] = None, - capabilities: Optional[List["ResourceProviderCapabilities"]] = None, - metadata: Optional[object] = None, - template_deployment_options: Optional["TemplateDeploymentOptions"] = None, - provider_hub_metadata: Optional["ProviderHubMetadata"] = None, - provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, - subscription_lifecycle_notification_specifications: Optional["SubscriptionLifecycleNotificationSpecifications"] = None, - **kwargs - ): - super(ProviderRegistrationProperties, self).__init__(provider_authentication=provider_authentication, provider_authorizations=provider_authorizations, namespace=namespace, provider_version=provider_version, provider_type=provider_type, required_features=required_features, features_rule=features_rule, request_header_options=request_header_options, management=management, capabilities=capabilities, metadata=metadata, template_deployment_options=template_deployment_options, **kwargs) - self.provider_hub_metadata = provider_hub_metadata - self.provisioning_state = provisioning_state - self.subscription_lifecycle_notification_specifications = subscription_lifecycle_notification_specifications - - -class ProviderRegistrationPropertiesautogenerated(ProviderRegistrationProperties): - """ProviderRegistrationPropertiesautogenerated. - - :param provider_authentication: - :type provider_authentication: ~provider_hub.models.ResourceProviderAuthentication - :param provider_authorizations: - :type provider_authorizations: list[~provider_hub.models.ResourceProviderAuthorization] - :param namespace: - :type namespace: str - :param provider_version: - :type provider_version: str - :param provider_type: Possible values include: "NotSpecified", "Internal", "External", - "Hidden", "RegistrationFree", "LegacyRegistrationRequired", "TenantOnly", "AuthorizationFree". - :type provider_type: str or ~provider_hub.models.ResourceProviderType - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param management: - :type management: ~provider_hub.models.ResourceProviderManagement - :param capabilities: - :type capabilities: list[~provider_hub.models.ResourceProviderCapabilities] - :param metadata: Any object. - :type metadata: object - :param template_deployment_options: - :type template_deployment_options: ~provider_hub.models.TemplateDeploymentOptions - :param provider_hub_metadata: - :type provider_hub_metadata: ~provider_hub.models.ProviderHubMetadata - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param subscription_lifecycle_notification_specifications: - :type subscription_lifecycle_notification_specifications: - ~provider_hub.models.SubscriptionLifecycleNotificationSpecifications - """ - - _attribute_map = { - 'provider_authentication': {'key': 'providerAuthentication', 'type': 'ResourceProviderAuthentication'}, - 'provider_authorizations': {'key': 'providerAuthorizations', 'type': '[ResourceProviderAuthorization]'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'provider_version': {'key': 'providerVersion', 'type': 'str'}, - 'provider_type': {'key': 'providerType', 'type': 'str'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'management': {'key': 'management', 'type': 'ResourceProviderManagement'}, - 'capabilities': {'key': 'capabilities', 'type': '[ResourceProviderCapabilities]'}, - 'metadata': {'key': 'metadata', 'type': 'object'}, - 'template_deployment_options': {'key': 'templateDeploymentOptions', 'type': 'TemplateDeploymentOptions'}, - 'provider_hub_metadata': {'key': 'providerHubMetadata', 'type': 'ProviderHubMetadata'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'subscription_lifecycle_notification_specifications': {'key': 'subscriptionLifecycleNotificationSpecifications', 'type': 'SubscriptionLifecycleNotificationSpecifications'}, - } - - def __init__( - self, - *, - provider_authentication: Optional["ResourceProviderAuthentication"] = None, - provider_authorizations: Optional[List["ResourceProviderAuthorization"]] = None, - namespace: Optional[str] = None, - provider_version: Optional[str] = None, - provider_type: Optional[Union[str, "ResourceProviderType"]] = None, - required_features: Optional[List[str]] = None, - features_rule: Optional["FeaturesRule"] = None, - request_header_options: Optional["RequestHeaderOptions"] = None, - management: Optional["ResourceProviderManagement"] = None, - capabilities: Optional[List["ResourceProviderCapabilities"]] = None, - metadata: Optional[object] = None, - template_deployment_options: Optional["TemplateDeploymentOptions"] = None, - provider_hub_metadata: Optional["ProviderHubMetadata"] = None, - provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, - subscription_lifecycle_notification_specifications: Optional["SubscriptionLifecycleNotificationSpecifications"] = None, - **kwargs - ): - super(ProviderRegistrationPropertiesautogenerated, self).__init__(provider_authentication=provider_authentication, provider_authorizations=provider_authorizations, namespace=namespace, provider_version=provider_version, provider_type=provider_type, required_features=required_features, features_rule=features_rule, request_header_options=request_header_options, management=management, capabilities=capabilities, metadata=metadata, template_deployment_options=template_deployment_options, provider_hub_metadata=provider_hub_metadata, provisioning_state=provisioning_state, subscription_lifecycle_notification_specifications=subscription_lifecycle_notification_specifications, **kwargs) - - -class ProviderRegistrationPropertiesProviderHubMetadata(ProviderHubMetadata): - """ProviderRegistrationPropertiesProviderHubMetadata. - - :param provider_authorizations: - :type provider_authorizations: list[~provider_hub.models.ResourceProviderAuthorization] - :param provider_authentication: - :type provider_authentication: ~provider_hub.models.ResourceProviderAuthentication - :param third_party_provider_authorization: - :type third_party_provider_authorization: ~provider_hub.models.ThirdPartyProviderAuthorization - """ - - _attribute_map = { - 'provider_authorizations': {'key': 'providerAuthorizations', 'type': '[ResourceProviderAuthorization]'}, - 'provider_authentication': {'key': 'providerAuthentication', 'type': 'ResourceProviderAuthentication'}, - 'third_party_provider_authorization': {'key': 'thirdPartyProviderAuthorization', 'type': 'ThirdPartyProviderAuthorization'}, - } - - def __init__( - self, - *, - provider_authorizations: Optional[List["ResourceProviderAuthorization"]] = None, - provider_authentication: Optional["ResourceProviderAuthentication"] = None, - third_party_provider_authorization: Optional["ThirdPartyProviderAuthorization"] = None, - **kwargs - ): - super(ProviderRegistrationPropertiesProviderHubMetadata, self).__init__(provider_authorizations=provider_authorizations, provider_authentication=provider_authentication, third_party_provider_authorization=third_party_provider_authorization, **kwargs) - - -class SubscriptionLifecycleNotificationSpecifications(msrest.serialization.Model): - """SubscriptionLifecycleNotificationSpecifications. - - :param subscription_state_override_actions: - :type subscription_state_override_actions: - list[~provider_hub.models.SubscriptionStateOverrideAction] - :param soft_delete_ttl: - :type soft_delete_ttl: ~datetime.timedelta - """ - - _attribute_map = { - 'subscription_state_override_actions': {'key': 'subscriptionStateOverrideActions', 'type': '[SubscriptionStateOverrideAction]'}, - 'soft_delete_ttl': {'key': 'softDeleteTTL', 'type': 'duration'}, - } - - def __init__( - self, - *, - subscription_state_override_actions: Optional[List["SubscriptionStateOverrideAction"]] = None, - soft_delete_ttl: Optional[datetime.timedelta] = None, - **kwargs - ): - super(SubscriptionLifecycleNotificationSpecifications, self).__init__(**kwargs) - self.subscription_state_override_actions = subscription_state_override_actions - self.soft_delete_ttl = soft_delete_ttl - - -class ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications(SubscriptionLifecycleNotificationSpecifications): - """ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications. - - :param subscription_state_override_actions: - :type subscription_state_override_actions: - list[~provider_hub.models.SubscriptionStateOverrideAction] - :param soft_delete_ttl: - :type soft_delete_ttl: ~datetime.timedelta - """ - - _attribute_map = { - 'subscription_state_override_actions': {'key': 'subscriptionStateOverrideActions', 'type': '[SubscriptionStateOverrideAction]'}, - 'soft_delete_ttl': {'key': 'softDeleteTTL', 'type': 'duration'}, - } - - def __init__( - self, - *, - subscription_state_override_actions: Optional[List["SubscriptionStateOverrideAction"]] = None, - soft_delete_ttl: Optional[datetime.timedelta] = None, - **kwargs - ): - super(ProviderRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications, self).__init__(subscription_state_override_actions=subscription_state_override_actions, soft_delete_ttl=soft_delete_ttl, **kwargs) - - -class ProxyResource(Resource): - """The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ProxyResource, self).__init__(**kwargs) - - -class RequestHeaderOptions(msrest.serialization.Model): - """RequestHeaderOptions. - - :param opt_in_headers: Possible values include: "NotSpecified", "SignedUserToken", - "ClientGroupMembership", "SignedAuxiliaryTokens", "UnboundedClientGroupMembership". - :type opt_in_headers: str or ~provider_hub.models.OptInHeaderType - """ - - _attribute_map = { - 'opt_in_headers': {'key': 'optInHeaders', 'type': 'str'}, - } - - def __init__( - self, - *, - opt_in_headers: Optional[Union[str, "OptInHeaderType"]] = None, - **kwargs - ): - super(RequestHeaderOptions, self).__init__(**kwargs) - self.opt_in_headers = opt_in_headers - - -class ReRegisterSubscriptionMetadata(msrest.serialization.Model): - """ReRegisterSubscriptionMetadata. - - All required parameters must be populated in order to send to Azure. - - :param enabled: Required. - :type enabled: bool - :param concurrency_limit: - :type concurrency_limit: int - """ - - _validation = { - 'enabled': {'required': True}, - } - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'concurrency_limit': {'key': 'concurrencyLimit', 'type': 'int'}, - } - - def __init__( - self, - *, - enabled: bool, - concurrency_limit: Optional[int] = None, - **kwargs - ): - super(ReRegisterSubscriptionMetadata, self).__init__(**kwargs) - self.enabled = enabled - self.concurrency_limit = concurrency_limit - - -class ResourceMovePolicy(msrest.serialization.Model): - """ResourceMovePolicy. - - :param validation_required: - :type validation_required: bool - :param cross_resource_group_move_enabled: - :type cross_resource_group_move_enabled: bool - :param cross_subscription_move_enabled: - :type cross_subscription_move_enabled: bool - """ - - _attribute_map = { - 'validation_required': {'key': 'validationRequired', 'type': 'bool'}, - 'cross_resource_group_move_enabled': {'key': 'crossResourceGroupMoveEnabled', 'type': 'bool'}, - 'cross_subscription_move_enabled': {'key': 'crossSubscriptionMoveEnabled', 'type': 'bool'}, - } - - def __init__( - self, - *, - validation_required: Optional[bool] = None, - cross_resource_group_move_enabled: Optional[bool] = None, - cross_subscription_move_enabled: Optional[bool] = None, - **kwargs - ): - super(ResourceMovePolicy, self).__init__(**kwargs) - self.validation_required = validation_required - self.cross_resource_group_move_enabled = cross_resource_group_move_enabled - self.cross_subscription_move_enabled = cross_subscription_move_enabled - - -class ResourceProviderAuthorization(msrest.serialization.Model): - """ResourceProviderAuthorization. - - :param application_id: - :type application_id: str - :param role_definition_id: - :type role_definition_id: str - :param managed_by_role_definition_id: - :type managed_by_role_definition_id: str - """ - - _attribute_map = { - 'application_id': {'key': 'applicationId', 'type': 'str'}, - 'role_definition_id': {'key': 'roleDefinitionId', 'type': 'str'}, - 'managed_by_role_definition_id': {'key': 'managedByRoleDefinitionId', 'type': 'str'}, - } - - def __init__( - self, - *, - application_id: Optional[str] = None, - role_definition_id: Optional[str] = None, - managed_by_role_definition_id: Optional[str] = None, - **kwargs - ): - super(ResourceProviderAuthorization, self).__init__(**kwargs) - self.application_id = application_id - self.role_definition_id = role_definition_id - self.managed_by_role_definition_id = managed_by_role_definition_id - - -class ResourceProviderCapabilities(msrest.serialization.Model): - """ResourceProviderCapabilities. - - All required parameters must be populated in order to send to Azure. - - :param quota_id: Required. - :type quota_id: str - :param effect: Required. Possible values include: "NotSpecified", "Allow", "Disallow". - :type effect: str or ~provider_hub.models.ResourceProviderCapabilitiesEffect - :param required_features: - :type required_features: list[str] - """ - - _validation = { - 'quota_id': {'required': True}, - 'effect': {'required': True}, - } - - _attribute_map = { - 'quota_id': {'key': 'quotaId', 'type': 'str'}, - 'effect': {'key': 'effect', 'type': 'str'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - } - - def __init__( - self, - *, - quota_id: str, - effect: Union[str, "ResourceProviderCapabilitiesEffect"], - required_features: Optional[List[str]] = None, - **kwargs - ): - super(ResourceProviderCapabilities, self).__init__(**kwargs) - self.quota_id = quota_id - self.effect = effect - self.required_features = required_features - - -class ResourceProviderEndpoint(msrest.serialization.Model): - """ResourceProviderEndpoint. - - :param enabled: - :type enabled: bool - :param api_versions: - :type api_versions: list[str] - :param endpoint_uri: - :type endpoint_uri: str - :param locations: - :type locations: list[str] - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param timeout: - :type timeout: ~datetime.timedelta - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'endpoint_uri': {'key': 'endpointUri', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'timeout': {'key': 'timeout', 'type': 'duration'}, - } - - def __init__( - self, - *, - enabled: Optional[bool] = None, - api_versions: Optional[List[str]] = None, - endpoint_uri: Optional[str] = None, - locations: Optional[List[str]] = None, - required_features: Optional[List[str]] = None, - features_rule: Optional["FeaturesRule"] = None, - timeout: Optional[datetime.timedelta] = None, - **kwargs - ): - super(ResourceProviderEndpoint, self).__init__(**kwargs) - self.enabled = enabled - self.api_versions = api_versions - self.endpoint_uri = endpoint_uri - self.locations = locations - self.required_features = required_features - self.features_rule = features_rule - self.timeout = timeout - - -class ResourceProviderEndpointFeaturesRule(FeaturesRule): - """ResourceProviderEndpointFeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - *, - required_features_policy: Union[str, "FeaturesPolicy"], - **kwargs - ): - super(ResourceProviderEndpointFeaturesRule, self).__init__(required_features_policy=required_features_policy, **kwargs) - - -class ResourceProviderManagement(msrest.serialization.Model): - """ResourceProviderManagement. - - :param schema_owners: - :type schema_owners: list[str] - :param manifest_owners: - :type manifest_owners: list[str] - :param incident_routing_service: - :type incident_routing_service: str - :param incident_routing_team: - :type incident_routing_team: str - :param incident_contact_email: - :type incident_contact_email: str - :param service_tree_infos: - :type service_tree_infos: list[~provider_hub.models.ServiceTreeInfo] - :param resource_access_policy: Possible values include: "NotSpecified", "AcisReadAllowed", - "AcisActionAllowed". - :type resource_access_policy: str or - ~provider_hub.models.ResourceProviderManagementResourceAccessPolicy - :param resource_access_roles: - :type resource_access_roles: list[object] - """ - - _attribute_map = { - 'schema_owners': {'key': 'schemaOwners', 'type': '[str]'}, - 'manifest_owners': {'key': 'manifestOwners', 'type': '[str]'}, - 'incident_routing_service': {'key': 'incidentRoutingService', 'type': 'str'}, - 'incident_routing_team': {'key': 'incidentRoutingTeam', 'type': 'str'}, - 'incident_contact_email': {'key': 'incidentContactEmail', 'type': 'str'}, - 'service_tree_infos': {'key': 'serviceTreeInfos', 'type': '[ServiceTreeInfo]'}, - 'resource_access_policy': {'key': 'resourceAccessPolicy', 'type': 'str'}, - 'resource_access_roles': {'key': 'resourceAccessRoles', 'type': '[object]'}, - } - - def __init__( - self, - *, - schema_owners: Optional[List[str]] = None, - manifest_owners: Optional[List[str]] = None, - incident_routing_service: Optional[str] = None, - incident_routing_team: Optional[str] = None, - incident_contact_email: Optional[str] = None, - service_tree_infos: Optional[List["ServiceTreeInfo"]] = None, - resource_access_policy: Optional[Union[str, "ResourceProviderManagementResourceAccessPolicy"]] = None, - resource_access_roles: Optional[List[object]] = None, - **kwargs - ): - super(ResourceProviderManagement, self).__init__(**kwargs) - self.schema_owners = schema_owners - self.manifest_owners = manifest_owners - self.incident_routing_service = incident_routing_service - self.incident_routing_team = incident_routing_team - self.incident_contact_email = incident_contact_email - self.service_tree_infos = service_tree_infos - self.resource_access_policy = resource_access_policy - self.resource_access_roles = resource_access_roles - - -class ResourceProviderManifest(msrest.serialization.Model): - """ResourceProviderManifest. - - :param provider_authentication: - :type provider_authentication: ~provider_hub.models.ResourceProviderAuthentication - :param provider_authorizations: - :type provider_authorizations: list[~provider_hub.models.ResourceProviderAuthorization] - :param namespace: - :type namespace: str - :param provider_version: - :type provider_version: str - :param provider_type: Possible values include: "NotSpecified", "Internal", "External", - "Hidden", "RegistrationFree", "LegacyRegistrationRequired", "TenantOnly", "AuthorizationFree". - :type provider_type: str or ~provider_hub.models.ResourceProviderType - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param resource_types: - :type resource_types: list[~provider_hub.models.ResourceType] - :param management: - :type management: ~provider_hub.models.ResourceProviderManagement - :param capabilities: - :type capabilities: list[~provider_hub.models.ResourceProviderCapabilities] - :param metadata: Any object. - :type metadata: object - :param global_notification_endpoints: - :type global_notification_endpoints: list[~provider_hub.models.ResourceProviderEndpoint] - :param re_register_subscription_metadata: - :type re_register_subscription_metadata: ~provider_hub.models.ReRegisterSubscriptionMetadata - """ - - _attribute_map = { - 'provider_authentication': {'key': 'providerAuthentication', 'type': 'ResourceProviderAuthentication'}, - 'provider_authorizations': {'key': 'providerAuthorizations', 'type': '[ResourceProviderAuthorization]'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'provider_version': {'key': 'providerVersion', 'type': 'str'}, - 'provider_type': {'key': 'providerType', 'type': 'str'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'resource_types': {'key': 'resourceTypes', 'type': '[ResourceType]'}, - 'management': {'key': 'management', 'type': 'ResourceProviderManagement'}, - 'capabilities': {'key': 'capabilities', 'type': '[ResourceProviderCapabilities]'}, - 'metadata': {'key': 'metadata', 'type': 'object'}, - 'global_notification_endpoints': {'key': 'globalNotificationEndpoints', 'type': '[ResourceProviderEndpoint]'}, - 're_register_subscription_metadata': {'key': 'reRegisterSubscriptionMetadata', 'type': 'ReRegisterSubscriptionMetadata'}, - } - - def __init__( - self, - *, - provider_authentication: Optional["ResourceProviderAuthentication"] = None, - provider_authorizations: Optional[List["ResourceProviderAuthorization"]] = None, - namespace: Optional[str] = None, - provider_version: Optional[str] = None, - provider_type: Optional[Union[str, "ResourceProviderType"]] = None, - required_features: Optional[List[str]] = None, - features_rule: Optional["FeaturesRule"] = None, - request_header_options: Optional["RequestHeaderOptions"] = None, - resource_types: Optional[List["ResourceType"]] = None, - management: Optional["ResourceProviderManagement"] = None, - capabilities: Optional[List["ResourceProviderCapabilities"]] = None, - metadata: Optional[object] = None, - global_notification_endpoints: Optional[List["ResourceProviderEndpoint"]] = None, - re_register_subscription_metadata: Optional["ReRegisterSubscriptionMetadata"] = None, - **kwargs - ): - super(ResourceProviderManifest, self).__init__(**kwargs) - self.provider_authentication = provider_authentication - self.provider_authorizations = provider_authorizations - self.namespace = namespace - self.provider_version = provider_version - self.provider_type = provider_type - self.required_features = required_features - self.features_rule = features_rule - self.request_header_options = request_header_options - self.resource_types = resource_types - self.management = management - self.capabilities = capabilities - self.metadata = metadata - self.global_notification_endpoints = global_notification_endpoints - self.re_register_subscription_metadata = re_register_subscription_metadata - - -class ResourceProviderManifestFeaturesRule(FeaturesRule): - """ResourceProviderManifestFeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - *, - required_features_policy: Union[str, "FeaturesPolicy"], - **kwargs - ): - super(ResourceProviderManifestFeaturesRule, self).__init__(required_features_policy=required_features_policy, **kwargs) - - -class ResourceProviderManifestManagement(ResourceProviderManagement): - """ResourceProviderManifestManagement. - - :param schema_owners: - :type schema_owners: list[str] - :param manifest_owners: - :type manifest_owners: list[str] - :param incident_routing_service: - :type incident_routing_service: str - :param incident_routing_team: - :type incident_routing_team: str - :param incident_contact_email: - :type incident_contact_email: str - :param service_tree_infos: - :type service_tree_infos: list[~provider_hub.models.ServiceTreeInfo] - :param resource_access_policy: Possible values include: "NotSpecified", "AcisReadAllowed", - "AcisActionAllowed". - :type resource_access_policy: str or - ~provider_hub.models.ResourceProviderManagementResourceAccessPolicy - :param resource_access_roles: - :type resource_access_roles: list[object] - """ - - _attribute_map = { - 'schema_owners': {'key': 'schemaOwners', 'type': '[str]'}, - 'manifest_owners': {'key': 'manifestOwners', 'type': '[str]'}, - 'incident_routing_service': {'key': 'incidentRoutingService', 'type': 'str'}, - 'incident_routing_team': {'key': 'incidentRoutingTeam', 'type': 'str'}, - 'incident_contact_email': {'key': 'incidentContactEmail', 'type': 'str'}, - 'service_tree_infos': {'key': 'serviceTreeInfos', 'type': '[ServiceTreeInfo]'}, - 'resource_access_policy': {'key': 'resourceAccessPolicy', 'type': 'str'}, - 'resource_access_roles': {'key': 'resourceAccessRoles', 'type': '[object]'}, - } - - def __init__( - self, - *, - schema_owners: Optional[List[str]] = None, - manifest_owners: Optional[List[str]] = None, - incident_routing_service: Optional[str] = None, - incident_routing_team: Optional[str] = None, - incident_contact_email: Optional[str] = None, - service_tree_infos: Optional[List["ServiceTreeInfo"]] = None, - resource_access_policy: Optional[Union[str, "ResourceProviderManagementResourceAccessPolicy"]] = None, - resource_access_roles: Optional[List[object]] = None, - **kwargs - ): - super(ResourceProviderManifestManagement, self).__init__(schema_owners=schema_owners, manifest_owners=manifest_owners, incident_routing_service=incident_routing_service, incident_routing_team=incident_routing_team, incident_contact_email=incident_contact_email, service_tree_infos=service_tree_infos, resource_access_policy=resource_access_policy, resource_access_roles=resource_access_roles, **kwargs) - - -class ResourceProviderManifestPropertiesFeaturesRule(FeaturesRule): - """ResourceProviderManifestPropertiesFeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - *, - required_features_policy: Union[str, "FeaturesPolicy"], - **kwargs - ): - super(ResourceProviderManifestPropertiesFeaturesRule, self).__init__(required_features_policy=required_features_policy, **kwargs) - - -class ResourceProviderManifestPropertiesManagement(ResourceProviderManagement): - """ResourceProviderManifestPropertiesManagement. - - :param schema_owners: - :type schema_owners: list[str] - :param manifest_owners: - :type manifest_owners: list[str] - :param incident_routing_service: - :type incident_routing_service: str - :param incident_routing_team: - :type incident_routing_team: str - :param incident_contact_email: - :type incident_contact_email: str - :param service_tree_infos: - :type service_tree_infos: list[~provider_hub.models.ServiceTreeInfo] - :param resource_access_policy: Possible values include: "NotSpecified", "AcisReadAllowed", - "AcisActionAllowed". - :type resource_access_policy: str or - ~provider_hub.models.ResourceProviderManagementResourceAccessPolicy - :param resource_access_roles: - :type resource_access_roles: list[object] - """ - - _attribute_map = { - 'schema_owners': {'key': 'schemaOwners', 'type': '[str]'}, - 'manifest_owners': {'key': 'manifestOwners', 'type': '[str]'}, - 'incident_routing_service': {'key': 'incidentRoutingService', 'type': 'str'}, - 'incident_routing_team': {'key': 'incidentRoutingTeam', 'type': 'str'}, - 'incident_contact_email': {'key': 'incidentContactEmail', 'type': 'str'}, - 'service_tree_infos': {'key': 'serviceTreeInfos', 'type': '[ServiceTreeInfo]'}, - 'resource_access_policy': {'key': 'resourceAccessPolicy', 'type': 'str'}, - 'resource_access_roles': {'key': 'resourceAccessRoles', 'type': '[object]'}, - } - - def __init__( - self, - *, - schema_owners: Optional[List[str]] = None, - manifest_owners: Optional[List[str]] = None, - incident_routing_service: Optional[str] = None, - incident_routing_team: Optional[str] = None, - incident_contact_email: Optional[str] = None, - service_tree_infos: Optional[List["ServiceTreeInfo"]] = None, - resource_access_policy: Optional[Union[str, "ResourceProviderManagementResourceAccessPolicy"]] = None, - resource_access_roles: Optional[List[object]] = None, - **kwargs - ): - super(ResourceProviderManifestPropertiesManagement, self).__init__(schema_owners=schema_owners, manifest_owners=manifest_owners, incident_routing_service=incident_routing_service, incident_routing_team=incident_routing_team, incident_contact_email=incident_contact_email, service_tree_infos=service_tree_infos, resource_access_policy=resource_access_policy, resource_access_roles=resource_access_roles, **kwargs) - - -class ResourceProviderManifestPropertiesProviderAuthentication(ResourceProviderAuthentication): - """ResourceProviderManifestPropertiesProviderAuthentication. - - All required parameters must be populated in order to send to Azure. - - :param allowed_audiences: Required. - :type allowed_audiences: list[str] - """ - - _validation = { - 'allowed_audiences': {'required': True}, - } - - _attribute_map = { - 'allowed_audiences': {'key': 'allowedAudiences', 'type': '[str]'}, - } - - def __init__( - self, - *, - allowed_audiences: List[str], - **kwargs - ): - super(ResourceProviderManifestPropertiesProviderAuthentication, self).__init__(allowed_audiences=allowed_audiences, **kwargs) - - -class ResourceProviderManifestPropertiesRequestHeaderOptions(RequestHeaderOptions): - """ResourceProviderManifestPropertiesRequestHeaderOptions. - - :param opt_in_headers: Possible values include: "NotSpecified", "SignedUserToken", - "ClientGroupMembership", "SignedAuxiliaryTokens", "UnboundedClientGroupMembership". - :type opt_in_headers: str or ~provider_hub.models.OptInHeaderType - """ - - _attribute_map = { - 'opt_in_headers': {'key': 'optInHeaders', 'type': 'str'}, - } - - def __init__( - self, - *, - opt_in_headers: Optional[Union[str, "OptInHeaderType"]] = None, - **kwargs - ): - super(ResourceProviderManifestPropertiesRequestHeaderOptions, self).__init__(opt_in_headers=opt_in_headers, **kwargs) - - -class TemplateDeploymentOptions(msrest.serialization.Model): - """TemplateDeploymentOptions. - - :param preflight_supported: - :type preflight_supported: bool - :param preflight_options: - :type preflight_options: list[str or ~provider_hub.models.PreflightOption] - """ - - _attribute_map = { - 'preflight_supported': {'key': 'preflightSupported', 'type': 'bool'}, - 'preflight_options': {'key': 'preflightOptions', 'type': '[str]'}, - } - - def __init__( - self, - *, - preflight_supported: Optional[bool] = None, - preflight_options: Optional[List[Union[str, "PreflightOption"]]] = None, - **kwargs - ): - super(TemplateDeploymentOptions, self).__init__(**kwargs) - self.preflight_supported = preflight_supported - self.preflight_options = preflight_options - - -class ResourceProviderManifestPropertiesTemplateDeploymentOptions(TemplateDeploymentOptions): - """ResourceProviderManifestPropertiesTemplateDeploymentOptions. - - :param preflight_supported: - :type preflight_supported: bool - :param preflight_options: - :type preflight_options: list[str or ~provider_hub.models.PreflightOption] - """ - - _attribute_map = { - 'preflight_supported': {'key': 'preflightSupported', 'type': 'bool'}, - 'preflight_options': {'key': 'preflightOptions', 'type': '[str]'}, - } - - def __init__( - self, - *, - preflight_supported: Optional[bool] = None, - preflight_options: Optional[List[Union[str, "PreflightOption"]]] = None, - **kwargs - ): - super(ResourceProviderManifestPropertiesTemplateDeploymentOptions, self).__init__(preflight_supported=preflight_supported, preflight_options=preflight_options, **kwargs) - - -class ResourceProviderManifestProviderAuthentication(ResourceProviderAuthentication): - """ResourceProviderManifestProviderAuthentication. - - All required parameters must be populated in order to send to Azure. - - :param allowed_audiences: Required. - :type allowed_audiences: list[str] - """ - - _validation = { - 'allowed_audiences': {'required': True}, - } - - _attribute_map = { - 'allowed_audiences': {'key': 'allowedAudiences', 'type': '[str]'}, - } - - def __init__( - self, - *, - allowed_audiences: List[str], - **kwargs - ): - super(ResourceProviderManifestProviderAuthentication, self).__init__(allowed_audiences=allowed_audiences, **kwargs) - - -class ResourceProviderManifestRequestHeaderOptions(RequestHeaderOptions): - """ResourceProviderManifestRequestHeaderOptions. - - :param opt_in_headers: Possible values include: "NotSpecified", "SignedUserToken", - "ClientGroupMembership", "SignedAuxiliaryTokens", "UnboundedClientGroupMembership". - :type opt_in_headers: str or ~provider_hub.models.OptInHeaderType - """ - - _attribute_map = { - 'opt_in_headers': {'key': 'optInHeaders', 'type': 'str'}, - } - - def __init__( - self, - *, - opt_in_headers: Optional[Union[str, "OptInHeaderType"]] = None, - **kwargs - ): - super(ResourceProviderManifestRequestHeaderOptions, self).__init__(opt_in_headers=opt_in_headers, **kwargs) - - -class ResourceProviderManifestReRegisterSubscriptionMetadata(ReRegisterSubscriptionMetadata): - """ResourceProviderManifestReRegisterSubscriptionMetadata. - - All required parameters must be populated in order to send to Azure. - - :param enabled: Required. - :type enabled: bool - :param concurrency_limit: - :type concurrency_limit: int - """ - - _validation = { - 'enabled': {'required': True}, - } - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'concurrency_limit': {'key': 'concurrencyLimit', 'type': 'int'}, - } - - def __init__( - self, - *, - enabled: bool, - concurrency_limit: Optional[int] = None, - **kwargs - ): - super(ResourceProviderManifestReRegisterSubscriptionMetadata, self).__init__(enabled=enabled, concurrency_limit=concurrency_limit, **kwargs) - - -class ResourceType(msrest.serialization.Model): - """ResourceType. - - :param name: - :type name: str - :param routing_type: Possible values include: "Default", "ProxyOnly", "HostBased", - "Extension", "Tenant", "Fanout", "LocationBased", "Failover", "CascadeExtension". - :type routing_type: str or ~provider_hub.models.RoutingType - :param resource_validation: Possible values include: "NotSpecified", "ReservedWords", - "ProfaneWords". - :type resource_validation: str or ~provider_hub.models.ResourceValidation - :param allowed_unauthorized_actions: - :type allowed_unauthorized_actions: list[str] - :param authorization_action_mappings: - :type authorization_action_mappings: list[~provider_hub.models.AuthorizationActionMapping] - :param linked_access_checks: - :type linked_access_checks: list[~provider_hub.models.LinkedAccessCheck] - :param default_api_version: - :type default_api_version: str - :param logging_rules: - :type logging_rules: list[~provider_hub.models.LoggingRule] - :param throttling_rules: - :type throttling_rules: list[~provider_hub.models.ThrottlingRule] - :param endpoints: - :type endpoints: list[~provider_hub.models.ResourceProviderEndpoint] - :param marketplace_type: Possible values include: "NotSpecified", "AddOn", "Bypass", "Store". - :type marketplace_type: str or ~provider_hub.models.ResourceTypeMarketplaceType - :param identity_management: - :type identity_management: ~provider_hub.models.IdentityManagement - :param metadata: Any object. - :type metadata: object - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param subscription_state_rules: - :type subscription_state_rules: list[~provider_hub.models.SubscriptionStateRule] - :param service_tree_infos: - :type service_tree_infos: list[~provider_hub.models.ServiceTreeInfo] - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param sku_link: - :type sku_link: str - :param disallowed_action_verbs: - :type disallowed_action_verbs: list[str] - :param template_deployment_policy: - :type template_deployment_policy: ~provider_hub.models.TemplateDeploymentPolicy - :param extended_locations: - :type extended_locations: list[~provider_hub.models.ExtendedLocationOptions] - :param linked_operation_rules: - :type linked_operation_rules: list[~provider_hub.models.LinkedOperationRule] - :param resource_deletion_policy: Possible values include: "NotSpecified", "Cascade", "Force". - :type resource_deletion_policy: str or ~provider_hub.models.ManifestResourceDeletionPolicy - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'routing_type': {'key': 'routingType', 'type': 'str'}, - 'resource_validation': {'key': 'resourceValidation', 'type': 'str'}, - 'allowed_unauthorized_actions': {'key': 'allowedUnauthorizedActions', 'type': '[str]'}, - 'authorization_action_mappings': {'key': 'authorizationActionMappings', 'type': '[AuthorizationActionMapping]'}, - 'linked_access_checks': {'key': 'linkedAccessChecks', 'type': '[LinkedAccessCheck]'}, - 'default_api_version': {'key': 'defaultApiVersion', 'type': 'str'}, - 'logging_rules': {'key': 'loggingRules', 'type': '[LoggingRule]'}, - 'throttling_rules': {'key': 'throttlingRules', 'type': '[ThrottlingRule]'}, - 'endpoints': {'key': 'endpoints', 'type': '[ResourceProviderEndpoint]'}, - 'marketplace_type': {'key': 'marketplaceType', 'type': 'str'}, - 'identity_management': {'key': 'identityManagement', 'type': 'IdentityManagement'}, - 'metadata': {'key': 'metadata', 'type': 'object'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'subscription_state_rules': {'key': 'subscriptionStateRules', 'type': '[SubscriptionStateRule]'}, - 'service_tree_infos': {'key': 'serviceTreeInfos', 'type': '[ServiceTreeInfo]'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'sku_link': {'key': 'skuLink', 'type': 'str'}, - 'disallowed_action_verbs': {'key': 'disallowedActionVerbs', 'type': '[str]'}, - 'template_deployment_policy': {'key': 'templateDeploymentPolicy', 'type': 'TemplateDeploymentPolicy'}, - 'extended_locations': {'key': 'extendedLocations', 'type': '[ExtendedLocationOptions]'}, - 'linked_operation_rules': {'key': 'linkedOperationRules', 'type': '[LinkedOperationRule]'}, - 'resource_deletion_policy': {'key': 'resourceDeletionPolicy', 'type': 'str'}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - routing_type: Optional[Union[str, "RoutingType"]] = None, - resource_validation: Optional[Union[str, "ResourceValidation"]] = None, - allowed_unauthorized_actions: Optional[List[str]] = None, - authorization_action_mappings: Optional[List["AuthorizationActionMapping"]] = None, - linked_access_checks: Optional[List["LinkedAccessCheck"]] = None, - default_api_version: Optional[str] = None, - logging_rules: Optional[List["LoggingRule"]] = None, - throttling_rules: Optional[List["ThrottlingRule"]] = None, - endpoints: Optional[List["ResourceProviderEndpoint"]] = None, - marketplace_type: Optional[Union[str, "ResourceTypeMarketplaceType"]] = None, - identity_management: Optional["IdentityManagement"] = None, - metadata: Optional[object] = None, - required_features: Optional[List[str]] = None, - features_rule: Optional["FeaturesRule"] = None, - subscription_state_rules: Optional[List["SubscriptionStateRule"]] = None, - service_tree_infos: Optional[List["ServiceTreeInfo"]] = None, - request_header_options: Optional["RequestHeaderOptions"] = None, - sku_link: Optional[str] = None, - disallowed_action_verbs: Optional[List[str]] = None, - template_deployment_policy: Optional["TemplateDeploymentPolicy"] = None, - extended_locations: Optional[List["ExtendedLocationOptions"]] = None, - linked_operation_rules: Optional[List["LinkedOperationRule"]] = None, - resource_deletion_policy: Optional[Union[str, "ManifestResourceDeletionPolicy"]] = None, - **kwargs - ): - super(ResourceType, self).__init__(**kwargs) - self.name = name - self.routing_type = routing_type - self.resource_validation = resource_validation - self.allowed_unauthorized_actions = allowed_unauthorized_actions - self.authorization_action_mappings = authorization_action_mappings - self.linked_access_checks = linked_access_checks - self.default_api_version = default_api_version - self.logging_rules = logging_rules - self.throttling_rules = throttling_rules - self.endpoints = endpoints - self.marketplace_type = marketplace_type - self.identity_management = identity_management - self.metadata = metadata - self.required_features = required_features - self.features_rule = features_rule - self.subscription_state_rules = subscription_state_rules - self.service_tree_infos = service_tree_infos - self.request_header_options = request_header_options - self.sku_link = sku_link - self.disallowed_action_verbs = disallowed_action_verbs - self.template_deployment_policy = template_deployment_policy - self.extended_locations = extended_locations - self.linked_operation_rules = linked_operation_rules - self.resource_deletion_policy = resource_deletion_policy - - -class ResourceTypeEndpoint(msrest.serialization.Model): - """ResourceTypeEndpoint. - - :param enabled: - :type enabled: bool - :param api_versions: - :type api_versions: list[str] - :param locations: - :type locations: list[str] - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param extensions: - :type extensions: list[~provider_hub.models.ResourceTypeExtension] - :param timeout: - :type timeout: ~datetime.timedelta - """ - - _attribute_map = { - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'extensions': {'key': 'extensions', 'type': '[ResourceTypeExtension]'}, - 'timeout': {'key': 'timeout', 'type': 'duration'}, - } - - def __init__( - self, - *, - enabled: Optional[bool] = None, - api_versions: Optional[List[str]] = None, - locations: Optional[List[str]] = None, - required_features: Optional[List[str]] = None, - features_rule: Optional["FeaturesRule"] = None, - extensions: Optional[List["ResourceTypeExtension"]] = None, - timeout: Optional[datetime.timedelta] = None, - **kwargs - ): - super(ResourceTypeEndpoint, self).__init__(**kwargs) - self.enabled = enabled - self.api_versions = api_versions - self.locations = locations - self.required_features = required_features - self.features_rule = features_rule - self.extensions = extensions - self.timeout = timeout - - -class ResourceTypeEndpointFeaturesRule(FeaturesRule): - """ResourceTypeEndpointFeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - *, - required_features_policy: Union[str, "FeaturesPolicy"], - **kwargs - ): - super(ResourceTypeEndpointFeaturesRule, self).__init__(required_features_policy=required_features_policy, **kwargs) - - -class ResourceTypeExtension(msrest.serialization.Model): - """ResourceTypeExtension. - - :param endpoint_uri: - :type endpoint_uri: str - :param extension_categories: - :type extension_categories: list[str or ~provider_hub.models.ExtensionCategory] - :param timeout: - :type timeout: ~datetime.timedelta - """ - - _attribute_map = { - 'endpoint_uri': {'key': 'endpointUri', 'type': 'str'}, - 'extension_categories': {'key': 'extensionCategories', 'type': '[str]'}, - 'timeout': {'key': 'timeout', 'type': 'duration'}, - } - - def __init__( - self, - *, - endpoint_uri: Optional[str] = None, - extension_categories: Optional[List[Union[str, "ExtensionCategory"]]] = None, - timeout: Optional[datetime.timedelta] = None, - **kwargs - ): - super(ResourceTypeExtension, self).__init__(**kwargs) - self.endpoint_uri = endpoint_uri - self.extension_categories = extension_categories - self.timeout = timeout - - -class ResourceTypeExtensionOptions(msrest.serialization.Model): - """ResourceTypeExtensionOptions. - - :param resource_creation_begin: - :type resource_creation_begin: ~provider_hub.models.ExtensionOptions - """ - - _attribute_map = { - 'resource_creation_begin': {'key': 'resourceCreationBegin', 'type': 'ExtensionOptions'}, - } - - def __init__( - self, - *, - resource_creation_begin: Optional["ExtensionOptions"] = None, - **kwargs - ): - super(ResourceTypeExtensionOptions, self).__init__(**kwargs) - self.resource_creation_begin = resource_creation_begin - - -class ResourceTypeExtensionOptionsResourceCreationBegin(ExtensionOptions): - """ResourceTypeExtensionOptionsResourceCreationBegin. - - :param request: - :type request: list[str or ~provider_hub.models.ExtensionOptionType] - :param response: - :type response: list[str or ~provider_hub.models.ExtensionOptionType] - """ - - _attribute_map = { - 'request': {'key': 'request', 'type': '[str]'}, - 'response': {'key': 'response', 'type': '[str]'}, - } - - def __init__( - self, - *, - request: Optional[List[Union[str, "ExtensionOptionType"]]] = None, - response: Optional[List[Union[str, "ExtensionOptionType"]]] = None, - **kwargs - ): - super(ResourceTypeExtensionOptionsResourceCreationBegin, self).__init__(request=request, response=response, **kwargs) - - -class ResourceTypeFeaturesRule(FeaturesRule): - """ResourceTypeFeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - *, - required_features_policy: Union[str, "FeaturesPolicy"], - **kwargs - ): - super(ResourceTypeFeaturesRule, self).__init__(required_features_policy=required_features_policy, **kwargs) - - -class ResourceTypeIdentityManagement(IdentityManagement): - """ResourceTypeIdentityManagement. - - :param type: Possible values include: "NotSpecified", "SystemAssigned", "UserAssigned", - "Actor", "DelegatedResourceIdentity". - :type type: str or ~provider_hub.models.IdentityManagementTypes - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "IdentityManagementTypes"]] = None, - **kwargs - ): - super(ResourceTypeIdentityManagement, self).__init__(type=type, **kwargs) - - -class ResourceTypeRegistration(Resource): - """ResourceTypeRegistration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: - :type properties: ~provider_hub.models.ResourceTypeRegistrationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceTypeRegistrationProperties'}, - } - - def __init__( - self, - *, - properties: Optional["ResourceTypeRegistrationProperties"] = None, - **kwargs - ): - super(ResourceTypeRegistration, self).__init__(**kwargs) - self.properties = properties - - -class ResourceTypeRegistrationArrayResponseWithContinuation(msrest.serialization.Model): - """ResourceTypeRegistrationArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.ResourceTypeRegistration] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ResourceTypeRegistration]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - value: Optional[List["ResourceTypeRegistration"]] = None, - next_link: Optional[str] = None, - **kwargs - ): - super(ResourceTypeRegistrationArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceTypeRegistrationProperties(msrest.serialization.Model): - """ResourceTypeRegistrationProperties. - - :param routing_type: Possible values include: "Default", "ProxyOnly", "HostBased", - "Extension", "Tenant", "Fanout", "LocationBased", "Failover", "CascadeExtension". - :type routing_type: str or ~provider_hub.models.RoutingType - :param regionality: Possible values include: "NotSpecified", "Global", "Regional". - :type regionality: str or ~provider_hub.models.Regionality - :param endpoints: - :type endpoints: list[~provider_hub.models.ResourceTypeEndpoint] - :param extension_options: - :type extension_options: ~provider_hub.models.ResourceTypeExtensionOptions - :param marketplace_type: Possible values include: "NotSpecified", "AddOn", "Bypass", "Store". - :type marketplace_type: str or - ~provider_hub.models.ResourceTypeRegistrationPropertiesMarketplaceType - :param swagger_specifications: - :type swagger_specifications: list[~provider_hub.models.SwaggerSpecification] - :param allowed_unauthorized_actions: - :type allowed_unauthorized_actions: list[str] - :param authorization_action_mappings: - :type authorization_action_mappings: list[~provider_hub.models.AuthorizationActionMapping] - :param linked_access_checks: - :type linked_access_checks: list[~provider_hub.models.LinkedAccessCheck] - :param default_api_version: - :type default_api_version: str - :param logging_rules: - :type logging_rules: list[~provider_hub.models.LoggingRule] - :param throttling_rules: - :type throttling_rules: list[~provider_hub.models.ThrottlingRule] - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param enable_async_operation: - :type enable_async_operation: bool - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param enable_third_party_s2s: - :type enable_third_party_s2s: bool - :param subscription_lifecycle_notification_specifications: - :type subscription_lifecycle_notification_specifications: - ~provider_hub.models.SubscriptionLifecycleNotificationSpecifications - :param is_pure_proxy: - :type is_pure_proxy: bool - :param identity_management: - :type identity_management: ~provider_hub.models.IdentityManagementProperties - :param check_name_availability_specifications: - :type check_name_availability_specifications: - ~provider_hub.models.CheckNameAvailabilitySpecifications - :param disallowed_action_verbs: - :type disallowed_action_verbs: list[str] - :param service_tree_infos: - :type service_tree_infos: list[~provider_hub.models.ServiceTreeInfo] - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param subscription_state_rules: - :type subscription_state_rules: list[~provider_hub.models.SubscriptionStateRule] - :param template_deployment_options: - :type template_deployment_options: ~provider_hub.models.TemplateDeploymentOptions - :param extended_locations: - :type extended_locations: list[~provider_hub.models.ExtendedLocationOptions] - :param resource_move_policy: - :type resource_move_policy: ~provider_hub.models.ResourceMovePolicy - :param resource_deletion_policy: Possible values include: "NotSpecified", "CascadeDeleteAll", - "CascadeDeleteProxyOnlyChildren". - :type resource_deletion_policy: str or ~provider_hub.models.ResourceDeletionPolicy - """ - - _attribute_map = { - 'routing_type': {'key': 'routingType', 'type': 'str'}, - 'regionality': {'key': 'regionality', 'type': 'str'}, - 'endpoints': {'key': 'endpoints', 'type': '[ResourceTypeEndpoint]'}, - 'extension_options': {'key': 'extensionOptions', 'type': 'ResourceTypeExtensionOptions'}, - 'marketplace_type': {'key': 'marketplaceType', 'type': 'str'}, - 'swagger_specifications': {'key': 'swaggerSpecifications', 'type': '[SwaggerSpecification]'}, - 'allowed_unauthorized_actions': {'key': 'allowedUnauthorizedActions', 'type': '[str]'}, - 'authorization_action_mappings': {'key': 'authorizationActionMappings', 'type': '[AuthorizationActionMapping]'}, - 'linked_access_checks': {'key': 'linkedAccessChecks', 'type': '[LinkedAccessCheck]'}, - 'default_api_version': {'key': 'defaultApiVersion', 'type': 'str'}, - 'logging_rules': {'key': 'loggingRules', 'type': '[LoggingRule]'}, - 'throttling_rules': {'key': 'throttlingRules', 'type': '[ThrottlingRule]'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'enable_async_operation': {'key': 'enableAsyncOperation', 'type': 'bool'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'enable_third_party_s2s': {'key': 'enableThirdPartyS2S', 'type': 'bool'}, - 'subscription_lifecycle_notification_specifications': {'key': 'subscriptionLifecycleNotificationSpecifications', 'type': 'SubscriptionLifecycleNotificationSpecifications'}, - 'is_pure_proxy': {'key': 'isPureProxy', 'type': 'bool'}, - 'identity_management': {'key': 'identityManagement', 'type': 'IdentityManagementProperties'}, - 'check_name_availability_specifications': {'key': 'checkNameAvailabilitySpecifications', 'type': 'CheckNameAvailabilitySpecifications'}, - 'disallowed_action_verbs': {'key': 'disallowedActionVerbs', 'type': '[str]'}, - 'service_tree_infos': {'key': 'serviceTreeInfos', 'type': '[ServiceTreeInfo]'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'subscription_state_rules': {'key': 'subscriptionStateRules', 'type': '[SubscriptionStateRule]'}, - 'template_deployment_options': {'key': 'templateDeploymentOptions', 'type': 'TemplateDeploymentOptions'}, - 'extended_locations': {'key': 'extendedLocations', 'type': '[ExtendedLocationOptions]'}, - 'resource_move_policy': {'key': 'resourceMovePolicy', 'type': 'ResourceMovePolicy'}, - 'resource_deletion_policy': {'key': 'resourceDeletionPolicy', 'type': 'str'}, - } - - def __init__( - self, - *, - routing_type: Optional[Union[str, "RoutingType"]] = None, - regionality: Optional[Union[str, "Regionality"]] = None, - endpoints: Optional[List["ResourceTypeEndpoint"]] = None, - extension_options: Optional["ResourceTypeExtensionOptions"] = None, - marketplace_type: Optional[Union[str, "ResourceTypeRegistrationPropertiesMarketplaceType"]] = None, - swagger_specifications: Optional[List["SwaggerSpecification"]] = None, - allowed_unauthorized_actions: Optional[List[str]] = None, - authorization_action_mappings: Optional[List["AuthorizationActionMapping"]] = None, - linked_access_checks: Optional[List["LinkedAccessCheck"]] = None, - default_api_version: Optional[str] = None, - logging_rules: Optional[List["LoggingRule"]] = None, - throttling_rules: Optional[List["ThrottlingRule"]] = None, - required_features: Optional[List[str]] = None, - features_rule: Optional["FeaturesRule"] = None, - enable_async_operation: Optional[bool] = None, - provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, - enable_third_party_s2s: Optional[bool] = None, - subscription_lifecycle_notification_specifications: Optional["SubscriptionLifecycleNotificationSpecifications"] = None, - is_pure_proxy: Optional[bool] = None, - identity_management: Optional["IdentityManagementProperties"] = None, - check_name_availability_specifications: Optional["CheckNameAvailabilitySpecifications"] = None, - disallowed_action_verbs: Optional[List[str]] = None, - service_tree_infos: Optional[List["ServiceTreeInfo"]] = None, - request_header_options: Optional["RequestHeaderOptions"] = None, - subscription_state_rules: Optional[List["SubscriptionStateRule"]] = None, - template_deployment_options: Optional["TemplateDeploymentOptions"] = None, - extended_locations: Optional[List["ExtendedLocationOptions"]] = None, - resource_move_policy: Optional["ResourceMovePolicy"] = None, - resource_deletion_policy: Optional[Union[str, "ResourceDeletionPolicy"]] = None, - **kwargs - ): - super(ResourceTypeRegistrationProperties, self).__init__(**kwargs) - self.routing_type = routing_type - self.regionality = regionality - self.endpoints = endpoints - self.extension_options = extension_options - self.marketplace_type = marketplace_type - self.swagger_specifications = swagger_specifications - self.allowed_unauthorized_actions = allowed_unauthorized_actions - self.authorization_action_mappings = authorization_action_mappings - self.linked_access_checks = linked_access_checks - self.default_api_version = default_api_version - self.logging_rules = logging_rules - self.throttling_rules = throttling_rules - self.required_features = required_features - self.features_rule = features_rule - self.enable_async_operation = enable_async_operation - self.provisioning_state = provisioning_state - self.enable_third_party_s2s = enable_third_party_s2s - self.subscription_lifecycle_notification_specifications = subscription_lifecycle_notification_specifications - self.is_pure_proxy = is_pure_proxy - self.identity_management = identity_management - self.check_name_availability_specifications = check_name_availability_specifications - self.disallowed_action_verbs = disallowed_action_verbs - self.service_tree_infos = service_tree_infos - self.request_header_options = request_header_options - self.subscription_state_rules = subscription_state_rules - self.template_deployment_options = template_deployment_options - self.extended_locations = extended_locations - self.resource_move_policy = resource_move_policy - self.resource_deletion_policy = resource_deletion_policy - - -class ResourceTypeRegistrationPropertiesautogenerated(ResourceTypeRegistrationProperties): - """ResourceTypeRegistrationPropertiesautogenerated. - - :param routing_type: Possible values include: "Default", "ProxyOnly", "HostBased", - "Extension", "Tenant", "Fanout", "LocationBased", "Failover", "CascadeExtension". - :type routing_type: str or ~provider_hub.models.RoutingType - :param regionality: Possible values include: "NotSpecified", "Global", "Regional". - :type regionality: str or ~provider_hub.models.Regionality - :param endpoints: - :type endpoints: list[~provider_hub.models.ResourceTypeEndpoint] - :param extension_options: - :type extension_options: ~provider_hub.models.ResourceTypeExtensionOptions - :param marketplace_type: Possible values include: "NotSpecified", "AddOn", "Bypass", "Store". - :type marketplace_type: str or - ~provider_hub.models.ResourceTypeRegistrationPropertiesMarketplaceType - :param swagger_specifications: - :type swagger_specifications: list[~provider_hub.models.SwaggerSpecification] - :param allowed_unauthorized_actions: - :type allowed_unauthorized_actions: list[str] - :param authorization_action_mappings: - :type authorization_action_mappings: list[~provider_hub.models.AuthorizationActionMapping] - :param linked_access_checks: - :type linked_access_checks: list[~provider_hub.models.LinkedAccessCheck] - :param default_api_version: - :type default_api_version: str - :param logging_rules: - :type logging_rules: list[~provider_hub.models.LoggingRule] - :param throttling_rules: - :type throttling_rules: list[~provider_hub.models.ThrottlingRule] - :param required_features: - :type required_features: list[str] - :param features_rule: - :type features_rule: ~provider_hub.models.FeaturesRule - :param enable_async_operation: - :type enable_async_operation: bool - :param provisioning_state: Possible values include: "NotSpecified", "Accepted", "Running", - "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", - "MovingResources", "TransientFailure", "RolloutInProgress". - :type provisioning_state: str or ~provider_hub.models.ProvisioningState - :param enable_third_party_s2s: - :type enable_third_party_s2s: bool - :param subscription_lifecycle_notification_specifications: - :type subscription_lifecycle_notification_specifications: - ~provider_hub.models.SubscriptionLifecycleNotificationSpecifications - :param is_pure_proxy: - :type is_pure_proxy: bool - :param identity_management: - :type identity_management: ~provider_hub.models.IdentityManagementProperties - :param check_name_availability_specifications: - :type check_name_availability_specifications: - ~provider_hub.models.CheckNameAvailabilitySpecifications - :param disallowed_action_verbs: - :type disallowed_action_verbs: list[str] - :param service_tree_infos: - :type service_tree_infos: list[~provider_hub.models.ServiceTreeInfo] - :param request_header_options: - :type request_header_options: ~provider_hub.models.RequestHeaderOptions - :param subscription_state_rules: - :type subscription_state_rules: list[~provider_hub.models.SubscriptionStateRule] - :param template_deployment_options: - :type template_deployment_options: ~provider_hub.models.TemplateDeploymentOptions - :param extended_locations: - :type extended_locations: list[~provider_hub.models.ExtendedLocationOptions] - :param resource_move_policy: - :type resource_move_policy: ~provider_hub.models.ResourceMovePolicy - :param resource_deletion_policy: Possible values include: "NotSpecified", "CascadeDeleteAll", - "CascadeDeleteProxyOnlyChildren". - :type resource_deletion_policy: str or ~provider_hub.models.ResourceDeletionPolicy - """ - - _attribute_map = { - 'routing_type': {'key': 'routingType', 'type': 'str'}, - 'regionality': {'key': 'regionality', 'type': 'str'}, - 'endpoints': {'key': 'endpoints', 'type': '[ResourceTypeEndpoint]'}, - 'extension_options': {'key': 'extensionOptions', 'type': 'ResourceTypeExtensionOptions'}, - 'marketplace_type': {'key': 'marketplaceType', 'type': 'str'}, - 'swagger_specifications': {'key': 'swaggerSpecifications', 'type': '[SwaggerSpecification]'}, - 'allowed_unauthorized_actions': {'key': 'allowedUnauthorizedActions', 'type': '[str]'}, - 'authorization_action_mappings': {'key': 'authorizationActionMappings', 'type': '[AuthorizationActionMapping]'}, - 'linked_access_checks': {'key': 'linkedAccessChecks', 'type': '[LinkedAccessCheck]'}, - 'default_api_version': {'key': 'defaultApiVersion', 'type': 'str'}, - 'logging_rules': {'key': 'loggingRules', 'type': '[LoggingRule]'}, - 'throttling_rules': {'key': 'throttlingRules', 'type': '[ThrottlingRule]'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'features_rule': {'key': 'featuresRule', 'type': 'FeaturesRule'}, - 'enable_async_operation': {'key': 'enableAsyncOperation', 'type': 'bool'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'enable_third_party_s2s': {'key': 'enableThirdPartyS2S', 'type': 'bool'}, - 'subscription_lifecycle_notification_specifications': {'key': 'subscriptionLifecycleNotificationSpecifications', 'type': 'SubscriptionLifecycleNotificationSpecifications'}, - 'is_pure_proxy': {'key': 'isPureProxy', 'type': 'bool'}, - 'identity_management': {'key': 'identityManagement', 'type': 'IdentityManagementProperties'}, - 'check_name_availability_specifications': {'key': 'checkNameAvailabilitySpecifications', 'type': 'CheckNameAvailabilitySpecifications'}, - 'disallowed_action_verbs': {'key': 'disallowedActionVerbs', 'type': '[str]'}, - 'service_tree_infos': {'key': 'serviceTreeInfos', 'type': '[ServiceTreeInfo]'}, - 'request_header_options': {'key': 'requestHeaderOptions', 'type': 'RequestHeaderOptions'}, - 'subscription_state_rules': {'key': 'subscriptionStateRules', 'type': '[SubscriptionStateRule]'}, - 'template_deployment_options': {'key': 'templateDeploymentOptions', 'type': 'TemplateDeploymentOptions'}, - 'extended_locations': {'key': 'extendedLocations', 'type': '[ExtendedLocationOptions]'}, - 'resource_move_policy': {'key': 'resourceMovePolicy', 'type': 'ResourceMovePolicy'}, - 'resource_deletion_policy': {'key': 'resourceDeletionPolicy', 'type': 'str'}, - } - - def __init__( - self, - *, - routing_type: Optional[Union[str, "RoutingType"]] = None, - regionality: Optional[Union[str, "Regionality"]] = None, - endpoints: Optional[List["ResourceTypeEndpoint"]] = None, - extension_options: Optional["ResourceTypeExtensionOptions"] = None, - marketplace_type: Optional[Union[str, "ResourceTypeRegistrationPropertiesMarketplaceType"]] = None, - swagger_specifications: Optional[List["SwaggerSpecification"]] = None, - allowed_unauthorized_actions: Optional[List[str]] = None, - authorization_action_mappings: Optional[List["AuthorizationActionMapping"]] = None, - linked_access_checks: Optional[List["LinkedAccessCheck"]] = None, - default_api_version: Optional[str] = None, - logging_rules: Optional[List["LoggingRule"]] = None, - throttling_rules: Optional[List["ThrottlingRule"]] = None, - required_features: Optional[List[str]] = None, - features_rule: Optional["FeaturesRule"] = None, - enable_async_operation: Optional[bool] = None, - provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, - enable_third_party_s2s: Optional[bool] = None, - subscription_lifecycle_notification_specifications: Optional["SubscriptionLifecycleNotificationSpecifications"] = None, - is_pure_proxy: Optional[bool] = None, - identity_management: Optional["IdentityManagementProperties"] = None, - check_name_availability_specifications: Optional["CheckNameAvailabilitySpecifications"] = None, - disallowed_action_verbs: Optional[List[str]] = None, - service_tree_infos: Optional[List["ServiceTreeInfo"]] = None, - request_header_options: Optional["RequestHeaderOptions"] = None, - subscription_state_rules: Optional[List["SubscriptionStateRule"]] = None, - template_deployment_options: Optional["TemplateDeploymentOptions"] = None, - extended_locations: Optional[List["ExtendedLocationOptions"]] = None, - resource_move_policy: Optional["ResourceMovePolicy"] = None, - resource_deletion_policy: Optional[Union[str, "ResourceDeletionPolicy"]] = None, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesautogenerated, self).__init__(routing_type=routing_type, regionality=regionality, endpoints=endpoints, extension_options=extension_options, marketplace_type=marketplace_type, swagger_specifications=swagger_specifications, allowed_unauthorized_actions=allowed_unauthorized_actions, authorization_action_mappings=authorization_action_mappings, linked_access_checks=linked_access_checks, default_api_version=default_api_version, logging_rules=logging_rules, throttling_rules=throttling_rules, required_features=required_features, features_rule=features_rule, enable_async_operation=enable_async_operation, provisioning_state=provisioning_state, enable_third_party_s2s=enable_third_party_s2s, subscription_lifecycle_notification_specifications=subscription_lifecycle_notification_specifications, is_pure_proxy=is_pure_proxy, identity_management=identity_management, check_name_availability_specifications=check_name_availability_specifications, disallowed_action_verbs=disallowed_action_verbs, service_tree_infos=service_tree_infos, request_header_options=request_header_options, subscription_state_rules=subscription_state_rules, template_deployment_options=template_deployment_options, extended_locations=extended_locations, resource_move_policy=resource_move_policy, resource_deletion_policy=resource_deletion_policy, **kwargs) - - -class ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications(CheckNameAvailabilitySpecifications): - """ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications. - - :param enable_default_validation: - :type enable_default_validation: bool - :param resource_types_with_custom_validation: - :type resource_types_with_custom_validation: list[str] - """ - - _attribute_map = { - 'enable_default_validation': {'key': 'enableDefaultValidation', 'type': 'bool'}, - 'resource_types_with_custom_validation': {'key': 'resourceTypesWithCustomValidation', 'type': '[str]'}, - } - - def __init__( - self, - *, - enable_default_validation: Optional[bool] = None, - resource_types_with_custom_validation: Optional[List[str]] = None, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesCheckNameAvailabilitySpecifications, self).__init__(enable_default_validation=enable_default_validation, resource_types_with_custom_validation=resource_types_with_custom_validation, **kwargs) - - -class ResourceTypeRegistrationPropertiesExtensionOptions(ResourceTypeExtensionOptions): - """ResourceTypeRegistrationPropertiesExtensionOptions. - - :param resource_creation_begin: - :type resource_creation_begin: ~provider_hub.models.ExtensionOptions - """ - - _attribute_map = { - 'resource_creation_begin': {'key': 'resourceCreationBegin', 'type': 'ExtensionOptions'}, - } - - def __init__( - self, - *, - resource_creation_begin: Optional["ExtensionOptions"] = None, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesExtensionOptions, self).__init__(resource_creation_begin=resource_creation_begin, **kwargs) - - -class ResourceTypeRegistrationPropertiesFeaturesRule(FeaturesRule): - """ResourceTypeRegistrationPropertiesFeaturesRule. - - All required parameters must be populated in order to send to Azure. - - :param required_features_policy: Required. Possible values include: "Any", "All". - :type required_features_policy: str or ~provider_hub.models.FeaturesPolicy - """ - - _validation = { - 'required_features_policy': {'required': True}, - } - - _attribute_map = { - 'required_features_policy': {'key': 'requiredFeaturesPolicy', 'type': 'str'}, - } - - def __init__( - self, - *, - required_features_policy: Union[str, "FeaturesPolicy"], - **kwargs - ): - super(ResourceTypeRegistrationPropertiesFeaturesRule, self).__init__(required_features_policy=required_features_policy, **kwargs) - - -class ResourceTypeRegistrationPropertiesIdentityManagement(IdentityManagementProperties): - """ResourceTypeRegistrationPropertiesIdentityManagement. - - :param type: Possible values include: "NotSpecified", "SystemAssigned", "UserAssigned", - "Actor", "DelegatedResourceIdentity". - :type type: str or ~provider_hub.models.IdentityManagementTypes - :param application_id: - :type application_id: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'application_id': {'key': 'applicationId', 'type': 'str'}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "IdentityManagementTypes"]] = None, - application_id: Optional[str] = None, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesIdentityManagement, self).__init__(type=type, application_id=application_id, **kwargs) - - -class ResourceTypeRegistrationPropertiesRequestHeaderOptions(RequestHeaderOptions): - """ResourceTypeRegistrationPropertiesRequestHeaderOptions. - - :param opt_in_headers: Possible values include: "NotSpecified", "SignedUserToken", - "ClientGroupMembership", "SignedAuxiliaryTokens", "UnboundedClientGroupMembership". - :type opt_in_headers: str or ~provider_hub.models.OptInHeaderType - """ - - _attribute_map = { - 'opt_in_headers': {'key': 'optInHeaders', 'type': 'str'}, - } - - def __init__( - self, - *, - opt_in_headers: Optional[Union[str, "OptInHeaderType"]] = None, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesRequestHeaderOptions, self).__init__(opt_in_headers=opt_in_headers, **kwargs) - - -class ResourceTypeRegistrationPropertiesResourceMovePolicy(ResourceMovePolicy): - """ResourceTypeRegistrationPropertiesResourceMovePolicy. - - :param validation_required: - :type validation_required: bool - :param cross_resource_group_move_enabled: - :type cross_resource_group_move_enabled: bool - :param cross_subscription_move_enabled: - :type cross_subscription_move_enabled: bool - """ - - _attribute_map = { - 'validation_required': {'key': 'validationRequired', 'type': 'bool'}, - 'cross_resource_group_move_enabled': {'key': 'crossResourceGroupMoveEnabled', 'type': 'bool'}, - 'cross_subscription_move_enabled': {'key': 'crossSubscriptionMoveEnabled', 'type': 'bool'}, - } - - def __init__( - self, - *, - validation_required: Optional[bool] = None, - cross_resource_group_move_enabled: Optional[bool] = None, - cross_subscription_move_enabled: Optional[bool] = None, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesResourceMovePolicy, self).__init__(validation_required=validation_required, cross_resource_group_move_enabled=cross_resource_group_move_enabled, cross_subscription_move_enabled=cross_subscription_move_enabled, **kwargs) - - -class ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications(SubscriptionLifecycleNotificationSpecifications): - """ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications. - - :param subscription_state_override_actions: - :type subscription_state_override_actions: - list[~provider_hub.models.SubscriptionStateOverrideAction] - :param soft_delete_ttl: - :type soft_delete_ttl: ~datetime.timedelta - """ - - _attribute_map = { - 'subscription_state_override_actions': {'key': 'subscriptionStateOverrideActions', 'type': '[SubscriptionStateOverrideAction]'}, - 'soft_delete_ttl': {'key': 'softDeleteTTL', 'type': 'duration'}, - } - - def __init__( - self, - *, - subscription_state_override_actions: Optional[List["SubscriptionStateOverrideAction"]] = None, - soft_delete_ttl: Optional[datetime.timedelta] = None, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesSubscriptionLifecycleNotificationSpecifications, self).__init__(subscription_state_override_actions=subscription_state_override_actions, soft_delete_ttl=soft_delete_ttl, **kwargs) - - -class ResourceTypeRegistrationPropertiesTemplateDeploymentOptions(TemplateDeploymentOptions): - """ResourceTypeRegistrationPropertiesTemplateDeploymentOptions. - - :param preflight_supported: - :type preflight_supported: bool - :param preflight_options: - :type preflight_options: list[str or ~provider_hub.models.PreflightOption] - """ - - _attribute_map = { - 'preflight_supported': {'key': 'preflightSupported', 'type': 'bool'}, - 'preflight_options': {'key': 'preflightOptions', 'type': '[str]'}, - } - - def __init__( - self, - *, - preflight_supported: Optional[bool] = None, - preflight_options: Optional[List[Union[str, "PreflightOption"]]] = None, - **kwargs - ): - super(ResourceTypeRegistrationPropertiesTemplateDeploymentOptions, self).__init__(preflight_supported=preflight_supported, preflight_options=preflight_options, **kwargs) - - -class ResourceTypeRequestHeaderOptions(RequestHeaderOptions): - """ResourceTypeRequestHeaderOptions. - - :param opt_in_headers: Possible values include: "NotSpecified", "SignedUserToken", - "ClientGroupMembership", "SignedAuxiliaryTokens", "UnboundedClientGroupMembership". - :type opt_in_headers: str or ~provider_hub.models.OptInHeaderType - """ - - _attribute_map = { - 'opt_in_headers': {'key': 'optInHeaders', 'type': 'str'}, - } - - def __init__( - self, - *, - opt_in_headers: Optional[Union[str, "OptInHeaderType"]] = None, - **kwargs - ): - super(ResourceTypeRequestHeaderOptions, self).__init__(opt_in_headers=opt_in_headers, **kwargs) - - -class ResourceTypeSku(msrest.serialization.Model): - """ResourceTypeSku. - - All required parameters must be populated in order to send to Azure. - - :param sku_settings: Required. - :type sku_settings: list[~provider_hub.models.SkuSetting] - """ - - _validation = { - 'sku_settings': {'required': True}, - } - - _attribute_map = { - 'sku_settings': {'key': 'skuSettings', 'type': '[SkuSetting]'}, - } - - def __init__( - self, - *, - sku_settings: List["SkuSetting"], - **kwargs - ): - super(ResourceTypeSku, self).__init__(**kwargs) - self.sku_settings = sku_settings - - -class TemplateDeploymentPolicy(msrest.serialization.Model): - """TemplateDeploymentPolicy. - - All required parameters must be populated in order to send to Azure. - - :param capabilities: Required. Possible values include: "Default", "Preflight". - :type capabilities: str or ~provider_hub.models.TemplateDeploymentCapabilities - :param preflight_options: Required. Possible values include: "None", "ValidationRequests", - "DeploymentRequests", "TestOnly", "RegisteredOnly". - :type preflight_options: str or ~provider_hub.models.TemplateDeploymentPreflightOptions - """ - - _validation = { - 'capabilities': {'required': True}, - 'preflight_options': {'required': True}, - } - - _attribute_map = { - 'capabilities': {'key': 'capabilities', 'type': 'str'}, - 'preflight_options': {'key': 'preflightOptions', 'type': 'str'}, - } - - def __init__( - self, - *, - capabilities: Union[str, "TemplateDeploymentCapabilities"], - preflight_options: Union[str, "TemplateDeploymentPreflightOptions"], - **kwargs - ): - super(TemplateDeploymentPolicy, self).__init__(**kwargs) - self.capabilities = capabilities - self.preflight_options = preflight_options - - -class ResourceTypeTemplateDeploymentPolicy(TemplateDeploymentPolicy): - """ResourceTypeTemplateDeploymentPolicy. - - All required parameters must be populated in order to send to Azure. - - :param capabilities: Required. Possible values include: "Default", "Preflight". - :type capabilities: str or ~provider_hub.models.TemplateDeploymentCapabilities - :param preflight_options: Required. Possible values include: "None", "ValidationRequests", - "DeploymentRequests", "TestOnly", "RegisteredOnly". - :type preflight_options: str or ~provider_hub.models.TemplateDeploymentPreflightOptions - """ - - _validation = { - 'capabilities': {'required': True}, - 'preflight_options': {'required': True}, - } - - _attribute_map = { - 'capabilities': {'key': 'capabilities', 'type': 'str'}, - 'preflight_options': {'key': 'preflightOptions', 'type': 'str'}, - } - - def __init__( - self, - *, - capabilities: Union[str, "TemplateDeploymentCapabilities"], - preflight_options: Union[str, "TemplateDeploymentPreflightOptions"], - **kwargs - ): - super(ResourceTypeTemplateDeploymentPolicy, self).__init__(capabilities=capabilities, preflight_options=preflight_options, **kwargs) - - -class ServiceTreeInfo(msrest.serialization.Model): - """ServiceTreeInfo. - - :param service_id: - :type service_id: str - :param component_id: - :type component_id: str - """ - - _attribute_map = { - 'service_id': {'key': 'serviceId', 'type': 'str'}, - 'component_id': {'key': 'componentId', 'type': 'str'}, - } - - def __init__( - self, - *, - service_id: Optional[str] = None, - component_id: Optional[str] = None, - **kwargs - ): - super(ServiceTreeInfo, self).__init__(**kwargs) - self.service_id = service_id - self.component_id = component_id - - -class SkuCapability(msrest.serialization.Model): - """SkuCapability. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. - :type name: str - :param value: Required. - :type value: str - """ - - _validation = { - 'name': {'required': True}, - 'value': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__( - self, - *, - name: str, - value: str, - **kwargs - ): - super(SkuCapability, self).__init__(**kwargs) - self.name = name - self.value = value - - -class SkuCapacity(msrest.serialization.Model): - """SkuCapacity. - - All required parameters must be populated in order to send to Azure. - - :param minimum: Required. - :type minimum: int - :param maximum: - :type maximum: int - :param default: - :type default: int - :param scale_type: Possible values include: "None", "Manual", "Automatic". - :type scale_type: str or ~provider_hub.models.SkuScaleType - """ - - _validation = { - 'minimum': {'required': True}, - } - - _attribute_map = { - 'minimum': {'key': 'minimum', 'type': 'int'}, - 'maximum': {'key': 'maximum', 'type': 'int'}, - 'default': {'key': 'default', 'type': 'int'}, - 'scale_type': {'key': 'scaleType', 'type': 'str'}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "SkuScaleType"]] = None, - **kwargs - ): - super(SkuCapacity, self).__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SkuCost(msrest.serialization.Model): - """SkuCost. - - All required parameters must be populated in order to send to Azure. - - :param meter_id: Required. - :type meter_id: str - :param quantity: - :type quantity: int - :param extended_unit: - :type extended_unit: str - """ - - _validation = { - 'meter_id': {'required': True}, - } - - _attribute_map = { - 'meter_id': {'key': 'meterId', 'type': 'str'}, - 'quantity': {'key': 'quantity', 'type': 'int'}, - 'extended_unit': {'key': 'extendedUnit', 'type': 'str'}, - } - - def __init__( - self, - *, - meter_id: str, - quantity: Optional[int] = None, - extended_unit: Optional[str] = None, - **kwargs - ): - super(SkuCost, self).__init__(**kwargs) - self.meter_id = meter_id - self.quantity = quantity - self.extended_unit = extended_unit - - -class SkuLocationInfo(msrest.serialization.Model): - """SkuLocationInfo. - - All required parameters must be populated in order to send to Azure. - - :param location: Required. - :type location: str - :param zones: - :type zones: list[str] - :param zone_details: - :type zone_details: list[~provider_hub.models.SkuZoneDetail] - :param extended_locations: - :type extended_locations: list[str] - :param type: Possible values include: "NotSpecified", "EdgeZone", "ArcZone". - :type type: str or ~provider_hub.models.SkuLocationInfoType - """ - - _validation = { - 'location': {'required': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'zones': {'key': 'zones', 'type': '[str]'}, - 'zone_details': {'key': 'zoneDetails', 'type': '[SkuZoneDetail]'}, - 'extended_locations': {'key': 'extendedLocations', 'type': '[str]'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - *, - location: str, - zones: Optional[List[str]] = None, - zone_details: Optional[List["SkuZoneDetail"]] = None, - extended_locations: Optional[List[str]] = None, - type: Optional[Union[str, "SkuLocationInfoType"]] = None, - **kwargs - ): - super(SkuLocationInfo, self).__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - self.extended_locations = extended_locations - self.type = type - - -class SkuResource(Resource): - """SkuResource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param properties: - :type properties: ~provider_hub.models.ResourceTypeSku - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceTypeSku'}, - } - - def __init__( - self, - *, - properties: Optional["ResourceTypeSku"] = None, - **kwargs - ): - super(SkuResource, self).__init__(**kwargs) - self.properties = properties - - -class SkuResourceArrayResponseWithContinuation(msrest.serialization.Model): - """SkuResourceArrayResponseWithContinuation. - - :param value: - :type value: list[~provider_hub.models.SkuResource] - :param next_link: The URL to get to the next set of results, if there are any. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[SkuResource]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - value: Optional[List["SkuResource"]] = None, - next_link: Optional[str] = None, - **kwargs - ): - super(SkuResourceArrayResponseWithContinuation, self).__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SkuResourceProperties(ResourceTypeSku): - """SkuResourceProperties. - - All required parameters must be populated in order to send to Azure. - - :param sku_settings: Required. - :type sku_settings: list[~provider_hub.models.SkuSetting] - """ - - _validation = { - 'sku_settings': {'required': True}, - } - - _attribute_map = { - 'sku_settings': {'key': 'skuSettings', 'type': '[SkuSetting]'}, - } - - def __init__( - self, - *, - sku_settings: List["SkuSetting"], - **kwargs - ): - super(SkuResourceProperties, self).__init__(sku_settings=sku_settings, **kwargs) - - -class SkuSetting(msrest.serialization.Model): - """SkuSetting. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. - :type name: str - :param tier: - :type tier: str - :param size: - :type size: str - :param family: - :type family: str - :param kind: - :type kind: str - :param locations: - :type locations: list[str] - :param location_info: - :type location_info: list[~provider_hub.models.SkuLocationInfo] - :param required_quota_ids: - :type required_quota_ids: list[str] - :param required_features: - :type required_features: list[str] - :param capacity: - :type capacity: ~provider_hub.models.SkuCapacity - :param costs: - :type costs: list[~provider_hub.models.SkuCost] - :param capabilities: - :type capabilities: list[~provider_hub.models.SkuCapability] - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'location_info': {'key': 'locationInfo', 'type': '[SkuLocationInfo]'}, - 'required_quota_ids': {'key': 'requiredQuotaIds', 'type': '[str]'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - 'capacity': {'key': 'capacity', 'type': 'SkuCapacity'}, - 'costs': {'key': 'costs', 'type': '[SkuCost]'}, - 'capabilities': {'key': 'capabilities', 'type': '[SkuCapability]'}, - } - - def __init__( - self, - *, - name: str, - tier: Optional[str] = None, - size: Optional[str] = None, - family: Optional[str] = None, - kind: Optional[str] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["SkuLocationInfo"]] = None, - required_quota_ids: Optional[List[str]] = None, - required_features: Optional[List[str]] = None, - capacity: Optional["SkuCapacity"] = None, - costs: Optional[List["SkuCost"]] = None, - capabilities: Optional[List["SkuCapability"]] = None, - **kwargs - ): - super(SkuSetting, self).__init__(**kwargs) - self.name = name - self.tier = tier - self.size = size - self.family = family - self.kind = kind - self.locations = locations - self.location_info = location_info - self.required_quota_ids = required_quota_ids - self.required_features = required_features - self.capacity = capacity - self.costs = costs - self.capabilities = capabilities - - -class SkuSettingCapacity(SkuCapacity): - """SkuSettingCapacity. - - All required parameters must be populated in order to send to Azure. - - :param minimum: Required. - :type minimum: int - :param maximum: - :type maximum: int - :param default: - :type default: int - :param scale_type: Possible values include: "None", "Manual", "Automatic". - :type scale_type: str or ~provider_hub.models.SkuScaleType - """ - - _validation = { - 'minimum': {'required': True}, - } - - _attribute_map = { - 'minimum': {'key': 'minimum', 'type': 'int'}, - 'maximum': {'key': 'maximum', 'type': 'int'}, - 'default': {'key': 'default', 'type': 'int'}, - 'scale_type': {'key': 'scaleType', 'type': 'str'}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "SkuScaleType"]] = None, - **kwargs - ): - super(SkuSettingCapacity, self).__init__(minimum=minimum, maximum=maximum, default=default, scale_type=scale_type, **kwargs) - - -class SkuZoneDetail(msrest.serialization.Model): - """SkuZoneDetail. - - :param name: - :type name: list[str] - :param capabilities: - :type capabilities: list[~provider_hub.models.SkuCapability] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': '[str]'}, - 'capabilities': {'key': 'capabilities', 'type': '[SkuCapability]'}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["SkuCapability"]] = None, - **kwargs - ): - super(SkuZoneDetail, self).__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class SubscriptionStateOverrideAction(msrest.serialization.Model): - """SubscriptionStateOverrideAction. - - All required parameters must be populated in order to send to Azure. - - :param state: Required. Possible values include: "Registered", "Unregistered", "Warned", - "Suspended", "Deleted", "WarnedToRegistered", "WarnedToSuspended", "WarnedToDeleted", - "WarnedToUnregistered", "SuspendedToRegistered", "SuspendedToWarned", "SuspendedToDeleted", - "SuspendedToUnregistered". - :type state: str or ~provider_hub.models.SubscriptionTransitioningState - :param action: Required. Possible values include: "NotDefined", "DeleteAllResources", - "SoftDeleteAllResources", "NoOp", "BillingCancellation", "UndoSoftDelete". - :type action: str or ~provider_hub.models.SubscriptionNotificationOperation - """ - - _validation = { - 'state': {'required': True}, - 'action': {'required': True}, - } - - _attribute_map = { - 'state': {'key': 'state', 'type': 'str'}, - 'action': {'key': 'action', 'type': 'str'}, - } - - def __init__( - self, - *, - state: Union[str, "SubscriptionTransitioningState"], - action: Union[str, "SubscriptionNotificationOperation"], - **kwargs - ): - super(SubscriptionStateOverrideAction, self).__init__(**kwargs) - self.state = state - self.action = action - - -class SubscriptionStateRule(msrest.serialization.Model): - """SubscriptionStateRule. - - :param state: Possible values include: "NotDefined", "Enabled", "Warned", "PastDue", - "Disabled", "Deleted". - :type state: str or ~provider_hub.models.SubscriptionState - :param allowed_actions: - :type allowed_actions: list[str] - """ - - _attribute_map = { - 'state': {'key': 'state', 'type': 'str'}, - 'allowed_actions': {'key': 'allowedActions', 'type': '[str]'}, - } - - def __init__( - self, - *, - state: Optional[Union[str, "SubscriptionState"]] = None, - allowed_actions: Optional[List[str]] = None, - **kwargs - ): - super(SubscriptionStateRule, self).__init__(**kwargs) - self.state = state - self.allowed_actions = allowed_actions - - -class SwaggerSpecification(msrest.serialization.Model): - """SwaggerSpecification. - - :param api_versions: - :type api_versions: list[str] - :param swagger_spec_folder_uri: - :type swagger_spec_folder_uri: str - """ - - _attribute_map = { - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'swagger_spec_folder_uri': {'key': 'swaggerSpecFolderUri', 'type': 'str'}, - } - - def __init__( - self, - *, - api_versions: Optional[List[str]] = None, - swagger_spec_folder_uri: Optional[str] = None, - **kwargs - ): - super(SwaggerSpecification, self).__init__(**kwargs) - self.api_versions = api_versions - self.swagger_spec_folder_uri = swagger_spec_folder_uri - - -class ThrottlingMetric(msrest.serialization.Model): - """ThrottlingMetric. - - All required parameters must be populated in order to send to Azure. - - :param type: Required. Possible values include: "NotSpecified", "NumberOfRequests", - "NumberOfResources". - :type type: str or ~provider_hub.models.ThrottlingMetricType - :param limit: Required. - :type limit: long - :param interval: - :type interval: ~datetime.timedelta - """ - - _validation = { - 'type': {'required': True}, - 'limit': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'limit': {'key': 'limit', 'type': 'long'}, - 'interval': {'key': 'interval', 'type': 'duration'}, - } - - def __init__( - self, - *, - type: Union[str, "ThrottlingMetricType"], - limit: int, - interval: Optional[datetime.timedelta] = None, - **kwargs - ): - super(ThrottlingMetric, self).__init__(**kwargs) - self.type = type - self.limit = limit - self.interval = interval - - -class ThrottlingRule(msrest.serialization.Model): - """ThrottlingRule. - - All required parameters must be populated in order to send to Azure. - - :param action: Required. - :type action: str - :param metrics: Required. - :type metrics: list[~provider_hub.models.ThrottlingMetric] - :param required_features: - :type required_features: list[str] - """ - - _validation = { - 'action': {'required': True}, - 'metrics': {'required': True}, - } - - _attribute_map = { - 'action': {'key': 'action', 'type': 'str'}, - 'metrics': {'key': 'metrics', 'type': '[ThrottlingMetric]'}, - 'required_features': {'key': 'requiredFeatures', 'type': '[str]'}, - } - - def __init__( - self, - *, - action: str, - metrics: List["ThrottlingMetric"], - required_features: Optional[List[str]] = None, - **kwargs - ): - super(ThrottlingRule, self).__init__(**kwargs) - self.action = action - self.metrics = metrics - self.required_features = required_features - - -class TypedErrorInfo(msrest.serialization.Model): - """TypedErrorInfo. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param type: Required. - :type type: str - :ivar info: Any object. - :vartype info: object - """ - - _validation = { - 'type': {'required': True}, - 'info': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, - } - - def __init__( - self, - *, - type: str, - **kwargs - ): - super(TypedErrorInfo, self).__init__(**kwargs) - self.type = type - self.info = None diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_provider_hub_enums.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_provider_hub_enums.py deleted file mode 100644 index 0e36c179e2d..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_provider_hub_enums.py +++ /dev/null @@ -1,297 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum, EnumMeta -from six import with_metaclass - -class _CaseInsensitiveEnumMeta(EnumMeta): - def __getitem__(self, name): - return super().__getitem__(name.upper()) - - def __getattr__(cls, name): - """Return the enum member matching `name` - We use __getattr__ instead of descriptors or inserting into the enum - class' __dict__ in order to support `name` and `value` being both - properties for enum members (which live in the class' __dict__) and - enum members themselves. - """ - try: - return cls._member_map_[name.upper()] - except KeyError: - raise AttributeError(name) - - -class ExtensionCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - RESOURCE_CREATION_VALIDATE = "ResourceCreationValidate" - RESOURCE_CREATION_BEGIN = "ResourceCreationBegin" - RESOURCE_CREATION_COMPLETED = "ResourceCreationCompleted" - RESOURCE_READ_VALIDATE = "ResourceReadValidate" - RESOURCE_READ_BEGIN = "ResourceReadBegin" - RESOURCE_PATCH_VALIDATE = "ResourcePatchValidate" - RESOURCE_PATCH_COMPLETED = "ResourcePatchCompleted" - RESOURCE_DELETION_VALIDATE = "ResourceDeletionValidate" - RESOURCE_DELETION_BEGIN = "ResourceDeletionBegin" - RESOURCE_DELETION_COMPLETED = "ResourceDeletionCompleted" - RESOURCE_POST_ACTION = "ResourcePostAction" - SUBSCRIPTION_LIFECYCLE_NOTIFICATION = "SubscriptionLifecycleNotification" - RESOURCE_PATCH_BEGIN = "ResourcePatchBegin" - RESOURCE_MOVE_BEGIN = "ResourceMoveBegin" - RESOURCE_MOVE_COMPLETED = "ResourceMoveCompleted" - -class ExtensionOptionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - DO_NOT_MERGE_EXISTING_READ_ONLY_AND_SECRET_PROPERTIES = "DoNotMergeExistingReadOnlyAndSecretProperties" - INCLUDE_INTERNAL_METADATA = "IncludeInternalMetadata" - -class FeaturesPolicy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - ANY = "Any" - ALL = "All" - -class IdentityManagementTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - ACTOR = "Actor" - DELEGATED_RESOURCE_IDENTITY = "DelegatedResourceIdentity" - -class LinkedAction(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - BLOCKED = "Blocked" - VALIDATE = "Validate" - ENABLED = "Enabled" - -class LinkedOperation(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NONE = "None" - CROSS_RESOURCE_GROUP_RESOURCE_MOVE = "CrossResourceGroupResourceMove" - CROSS_SUBSCRIPTION_RESOURCE_MOVE = "CrossSubscriptionResourceMove" - -class LoggingDetails(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NONE = "None" - BODY = "Body" - -class LoggingDirections(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NONE = "None" - REQUEST = "Request" - RESPONSE = "Response" - -class ManifestResourceDeletionPolicy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - CASCADE = "Cascade" - FORCE = "Force" - -class MessageScope(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - REGISTERED_SUBSCRIPTIONS = "RegisteredSubscriptions" - -class NotificationMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - EVENT_HUB = "EventHub" - WEB_HOOK = "WebHook" - -class OperationsDefinitionActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - INTERNAL = "Internal" - -class OperationsDefinitionOrigin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - USER = "User" - SYSTEM = "System" - -class OptInHeaderType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - SIGNED_USER_TOKEN = "SignedUserToken" - CLIENT_GROUP_MEMBERSHIP = "ClientGroupMembership" - SIGNED_AUXILIARY_TOKENS = "SignedAuxiliaryTokens" - UNBOUNDED_CLIENT_GROUP_MEMBERSHIP = "UnboundedClientGroupMembership" - -class PreflightOption(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NONE = "None" - CONTINUE_DEPLOYMENT_ON_FAILURE = "ContinueDeploymentOnFailure" - DEFAULT_VALIDATION_ONLY = "DefaultValidationOnly" - -class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - ACCEPTED = "Accepted" - RUNNING = "Running" - CREATING = "Creating" - CREATED = "Created" - DELETING = "Deleting" - DELETED = "Deleted" - CANCELED = "Canceled" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - MOVING_RESOURCES = "MovingResources" - TRANSIENT_FAILURE = "TransientFailure" - ROLLOUT_IN_PROGRESS = "RolloutInProgress" - -class Regionality(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - GLOBAL_ENUM = "Global" - REGIONAL = "Regional" - -class ResourceDeletionPolicy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - CASCADE_DELETE_ALL = "CascadeDeleteAll" - CASCADE_DELETE_PROXY_ONLY_CHILDREN = "CascadeDeleteProxyOnlyChildren" - -class ResourceProviderCapabilitiesEffect(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - ALLOW = "Allow" - DISALLOW = "Disallow" - -class ResourceProviderManagementResourceAccessPolicy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - ACIS_READ_ALLOWED = "AcisReadAllowed" - ACIS_ACTION_ALLOWED = "AcisActionAllowed" - -class ResourceProviderType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - INTERNAL = "Internal" - EXTERNAL = "External" - HIDDEN = "Hidden" - REGISTRATION_FREE = "RegistrationFree" - LEGACY_REGISTRATION_REQUIRED = "LegacyRegistrationRequired" - TENANT_ONLY = "TenantOnly" - AUTHORIZATION_FREE = "AuthorizationFree" - -class ResourceTypeMarketplaceType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - ADD_ON = "AddOn" - BYPASS = "Bypass" - STORE = "Store" - -class ResourceTypeRegistrationPropertiesMarketplaceType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - ADD_ON = "AddOn" - BYPASS = "Bypass" - STORE = "Store" - -class ResourceValidation(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - RESERVED_WORDS = "ReservedWords" - PROFANE_WORDS = "ProfaneWords" - -class RoutingType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - DEFAULT = "Default" - PROXY_ONLY = "ProxyOnly" - HOST_BASED = "HostBased" - EXTENSION = "Extension" - TENANT = "Tenant" - FANOUT = "Fanout" - LOCATION_BASED = "LocationBased" - FAILOVER = "Failover" - CASCADE_EXTENSION = "CascadeExtension" - -class SkuLocationInfoType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - EDGE_ZONE = "EdgeZone" - ARC_ZONE = "ArcZone" - -class SkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - -class SubscriptionNotificationOperation(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_DEFINED = "NotDefined" - DELETE_ALL_RESOURCES = "DeleteAllResources" - SOFT_DELETE_ALL_RESOURCES = "SoftDeleteAllResources" - NO_OP = "NoOp" - BILLING_CANCELLATION = "BillingCancellation" - UNDO_SOFT_DELETE = "UndoSoftDelete" - -class SubscriptionReregistrationResult(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_APPLICABLE = "NotApplicable" - CONDITIONAL_UPDATE = "ConditionalUpdate" - FORCED_UPDATE = "ForcedUpdate" - FAILED = "Failed" - -class SubscriptionState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_DEFINED = "NotDefined" - ENABLED = "Enabled" - WARNED = "Warned" - PAST_DUE = "PastDue" - DISABLED = "Disabled" - DELETED = "Deleted" - -class SubscriptionTransitioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - REGISTERED = "Registered" - UNREGISTERED = "Unregistered" - WARNED = "Warned" - SUSPENDED = "Suspended" - DELETED = "Deleted" - WARNED_TO_REGISTERED = "WarnedToRegistered" - WARNED_TO_SUSPENDED = "WarnedToSuspended" - WARNED_TO_DELETED = "WarnedToDeleted" - WARNED_TO_UNREGISTERED = "WarnedToUnregistered" - SUSPENDED_TO_REGISTERED = "SuspendedToRegistered" - SUSPENDED_TO_WARNED = "SuspendedToWarned" - SUSPENDED_TO_DELETED = "SuspendedToDeleted" - SUSPENDED_TO_UNREGISTERED = "SuspendedToUnregistered" - -class TemplateDeploymentCapabilities(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - DEFAULT = "Default" - PREFLIGHT = "Preflight" - -class TemplateDeploymentPreflightOptions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NONE = "None" - VALIDATION_REQUESTS = "ValidationRequests" - DEPLOYMENT_REQUESTS = "DeploymentRequests" - TEST_ONLY = "TestOnly" - REGISTERED_ONLY = "RegisteredOnly" - -class ThrottlingMetricType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - NUMBER_OF_REQUESTS = "NumberOfRequests" - NUMBER_OF_RESOURCES = "NumberOfResources" - -class TrafficRegionCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - CANARY = "Canary" - LOW_TRAFFIC = "LowTraffic" - MEDIUM_TRAFFIC = "MediumTraffic" - HIGH_TRAFFIC = "HighTraffic" - NONE = "None" - REST_OF_THE_WORLD_GROUP_ONE = "RestOfTheWorldGroupOne" - REST_OF_THE_WORLD_GROUP_TWO = "RestOfTheWorldGroupTwo" diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_providerhub_enums.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_providerhub_enums.py deleted file mode 100644 index 251b1728618..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/models/_providerhub_enums.py +++ /dev/null @@ -1,332 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum, EnumMeta -from six import with_metaclass - - -class _CaseInsensitiveEnumMeta(EnumMeta): - def __getitem__(self, name): - return super().__getitem__(name.upper()) - - def __getattr__(cls, name): - """Return the enum member matching `name` - We use __getattr__ instead of descriptors or inserting into the enum - class' __dict__ in order to support `name` and `value` being both - properties for enum members (which live in the class' __dict__) and - enum members themselves. - """ - try: - return cls._member_map_[name.upper()] - except KeyError: - raise AttributeError(name) - - -class ExtensionCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - RESOURCE_CREATION_VALIDATE = "ResourceCreationValidate" - RESOURCE_CREATION_BEGIN = "ResourceCreationBegin" - RESOURCE_CREATION_COMPLETED = "ResourceCreationCompleted" - RESOURCE_READ_VALIDATE = "ResourceReadValidate" - RESOURCE_READ_BEGIN = "ResourceReadBegin" - RESOURCE_PATCH_VALIDATE = "ResourcePatchValidate" - RESOURCE_PATCH_COMPLETED = "ResourcePatchCompleted" - RESOURCE_DELETION_VALIDATE = "ResourceDeletionValidate" - RESOURCE_DELETION_BEGIN = "ResourceDeletionBegin" - RESOURCE_DELETION_COMPLETED = "ResourceDeletionCompleted" - RESOURCE_POST_ACTION = "ResourcePostAction" - SUBSCRIPTION_LIFECYCLE_NOTIFICATION = "SubscriptionLifecycleNotification" - RESOURCE_PATCH_BEGIN = "ResourcePatchBegin" - RESOURCE_MOVE_BEGIN = "ResourceMoveBegin" - RESOURCE_MOVE_COMPLETED = "ResourceMoveCompleted" - - -class ExtensionOptionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - DO_NOT_MERGE_EXISTING_READ_ONLY_AND_SECRET_PROPERTIES = "DoNotMergeExistingReadOnlyAndSecretProperties" - INCLUDE_INTERNAL_METADATA = "IncludeInternalMetadata" - - -class FeaturesPolicy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - ANY = "Any" - ALL = "All" - - -class IdentityManagementTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - ACTOR = "Actor" - DELEGATED_RESOURCE_IDENTITY = "DelegatedResourceIdentity" - - -class LinkedAction(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - BLOCKED = "Blocked" - VALIDATE = "Validate" - ENABLED = "Enabled" - - -class LinkedOperation(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NONE = "None" - CROSS_RESOURCE_GROUP_RESOURCE_MOVE = "CrossResourceGroupResourceMove" - CROSS_SUBSCRIPTION_RESOURCE_MOVE = "CrossSubscriptionResourceMove" - - -class LoggingDetails(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NONE = "None" - BODY = "Body" - - -class LoggingDirections(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NONE = "None" - REQUEST = "Request" - RESPONSE = "Response" - - -class ManifestResourceDeletionPolicy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - CASCADE = "Cascade" - FORCE = "Force" - - -class MessageScope(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - REGISTERED_SUBSCRIPTIONS = "RegisteredSubscriptions" - - -class NotificationMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - EVENT_HUB = "EventHub" - WEB_HOOK = "WebHook" - - -class OperationsDefinitionActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - INTERNAL = "Internal" - - -class OperationsDefinitionOrigin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - USER = "User" - SYSTEM = "System" - - -class OptInHeaderType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - SIGNED_USER_TOKEN = "SignedUserToken" - CLIENT_GROUP_MEMBERSHIP = "ClientGroupMembership" - SIGNED_AUXILIARY_TOKENS = "SignedAuxiliaryTokens" - UNBOUNDED_CLIENT_GROUP_MEMBERSHIP = "UnboundedClientGroupMembership" - - -class PreflightOption(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NONE = "None" - CONTINUE_DEPLOYMENT_ON_FAILURE = "ContinueDeploymentOnFailure" - DEFAULT_VALIDATION_ONLY = "DefaultValidationOnly" - - -class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - ACCEPTED = "Accepted" - RUNNING = "Running" - CREATING = "Creating" - CREATED = "Created" - DELETING = "Deleting" - DELETED = "Deleted" - CANCELED = "Canceled" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - MOVING_RESOURCES = "MovingResources" - TRANSIENT_FAILURE = "TransientFailure" - ROLLOUT_IN_PROGRESS = "RolloutInProgress" - - -class Regionality(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - GLOBAL_ENUM = "Global" - REGIONAL = "Regional" - - -class ResourceDeletionPolicy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - CASCADE_DELETE_ALL = "CascadeDeleteAll" - CASCADE_DELETE_PROXY_ONLY_CHILDREN = "CascadeDeleteProxyOnlyChildren" - - -class ResourceProviderCapabilitiesEffect(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - ALLOW = "Allow" - DISALLOW = "Disallow" - - -class ResourceProviderManagementResourceAccessPolicy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - ACIS_READ_ALLOWED = "AcisReadAllowed" - ACIS_ACTION_ALLOWED = "AcisActionAllowed" - - -class ResourceProviderType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - INTERNAL = "Internal" - EXTERNAL = "External" - HIDDEN = "Hidden" - REGISTRATION_FREE = "RegistrationFree" - LEGACY_REGISTRATION_REQUIRED = "LegacyRegistrationRequired" - TENANT_ONLY = "TenantOnly" - AUTHORIZATION_FREE = "AuthorizationFree" - - -class ResourceTypeMarketplaceType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - ADD_ON = "AddOn" - BYPASS = "Bypass" - STORE = "Store" - - -class ResourceTypeRegistrationPropertiesMarketplaceType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - ADD_ON = "AddOn" - BYPASS = "Bypass" - STORE = "Store" - - -class ResourceValidation(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - RESERVED_WORDS = "ReservedWords" - PROFANE_WORDS = "ProfaneWords" - - -class RoutingType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - DEFAULT = "Default" - PROXY_ONLY = "ProxyOnly" - HOST_BASED = "HostBased" - EXTENSION = "Extension" - TENANT = "Tenant" - FANOUT = "Fanout" - LOCATION_BASED = "LocationBased" - FAILOVER = "Failover" - CASCADE_EXTENSION = "CascadeExtension" - - -class SkuLocationInfoType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - EDGE_ZONE = "EdgeZone" - ARC_ZONE = "ArcZone" - - -class SkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class SubscriptionNotificationOperation(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_DEFINED = "NotDefined" - DELETE_ALL_RESOURCES = "DeleteAllResources" - SOFT_DELETE_ALL_RESOURCES = "SoftDeleteAllResources" - NO_OP = "NoOp" - BILLING_CANCELLATION = "BillingCancellation" - UNDO_SOFT_DELETE = "UndoSoftDelete" - - -class SubscriptionReregistrationResult(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_APPLICABLE = "NotApplicable" - CONDITIONAL_UPDATE = "ConditionalUpdate" - FORCED_UPDATE = "ForcedUpdate" - FAILED = "Failed" - - -class SubscriptionState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_DEFINED = "NotDefined" - ENABLED = "Enabled" - WARNED = "Warned" - PAST_DUE = "PastDue" - DISABLED = "Disabled" - DELETED = "Deleted" - - -class SubscriptionTransitioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - REGISTERED = "Registered" - UNREGISTERED = "Unregistered" - WARNED = "Warned" - SUSPENDED = "Suspended" - DELETED = "Deleted" - WARNED_TO_REGISTERED = "WarnedToRegistered" - WARNED_TO_SUSPENDED = "WarnedToSuspended" - WARNED_TO_DELETED = "WarnedToDeleted" - WARNED_TO_UNREGISTERED = "WarnedToUnregistered" - SUSPENDED_TO_REGISTERED = "SuspendedToRegistered" - SUSPENDED_TO_WARNED = "SuspendedToWarned" - SUSPENDED_TO_DELETED = "SuspendedToDeleted" - SUSPENDED_TO_UNREGISTERED = "SuspendedToUnregistered" - - -class TemplateDeploymentCapabilities(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - DEFAULT = "Default" - PREFLIGHT = "Preflight" - - -class TemplateDeploymentPreflightOptions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NONE = "None" - VALIDATION_REQUESTS = "ValidationRequests" - DEPLOYMENT_REQUESTS = "DeploymentRequests" - TEST_ONLY = "TestOnly" - REGISTERED_ONLY = "RegisteredOnly" - - -class ThrottlingMetricType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - NUMBER_OF_REQUESTS = "NumberOfRequests" - NUMBER_OF_RESOURCES = "NumberOfResources" - - -class TrafficRegionCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - NOT_SPECIFIED = "NotSpecified" - CANARY = "Canary" - LOW_TRAFFIC = "LowTraffic" - MEDIUM_TRAFFIC = "MediumTraffic" - HIGH_TRAFFIC = "HighTraffic" - NONE = "None" - REST_OF_THE_WORLD_GROUP_ONE = "RestOfTheWorldGroupOne" - REST_OF_THE_WORLD_GROUP_TWO = "RestOfTheWorldGroupTwo" diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/__init__.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/__init__.py deleted file mode 100644 index 5f8923dd553..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._custom_rollouts_operations import CustomRolloutsOperations -from ._default_rollouts_operations import DefaultRolloutsOperations -from ._provider_hub_operations import ProviderHubOperationsMixin -from ._notification_registrations_operations import NotificationRegistrationsOperations -from ._operations import Operations -from ._provider_registrations_operations import ProviderRegistrationsOperations -from ._resource_type_registrations_operations import ResourceTypeRegistrationsOperations -from ._resource_type_registration_operations import ResourceTypeRegistrationOperations -from ._skus_operations import SkusOperations - -__all__ = [ - 'CustomRolloutsOperations', - 'DefaultRolloutsOperations', - 'ProviderHubOperationsMixin', - 'NotificationRegistrationsOperations', - 'Operations', - 'ProviderRegistrationsOperations', - 'ResourceTypeRegistrationsOperations', - 'SkusOperations', - 'ResourceTypeRegistrationOperations', -] diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_custom_rollouts_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_custom_rollouts_operations.py deleted file mode 100644 index 85c11b74106..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_custom_rollouts_operations.py +++ /dev/null @@ -1,254 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class CustomRolloutsOperations(object): - """CustomRolloutsOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def get( - self, - provider_namespace, # type: str - rollout_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "models.CustomRollout" - """Gets the custom rollout details. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param rollout_name: The rollout name. - :type rollout_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: CustomRollout, or the result of cls(response) - :rtype: ~provider_hub.models.CustomRollout - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CustomRollout"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('CustomRollout', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}'} # type: ignore - - def create_or_update( - self, - provider_namespace, # type: str - rollout_name, # type: str - canary, # type: "models.CustomRollout" - **kwargs # type: Any - ): - # type: (...) -> "models.CustomRollout" - """Creates or updates the rollout details. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param rollout_name: The rollout name. - :type rollout_name: str - :param canary: The custom rollout canary regions supplied to the CreateOrUpdate operation. - :type canary: ~provider_hub.models.TrafficRegions - :keyword callable cls: A custom type or function that will be passed the direct response - :return: CustomRollout, or the result of cls(response) - :rtype: ~provider_hub.models.CustomRollout - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CustomRollout"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - properties = models.CustomRollout( - properties = models.CustomRolloutProperties( - specification = models.CustomRolloutPropertiesSpecification( - canary = canary - ) - ) - ) - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'CustomRollout') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('CustomRollout', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts/{rolloutName}'} # type: ignore - - def list_by_provider_registration( - self, - provider_namespace, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["models.CustomRolloutArrayResponseWithContinuation"] - """Gets the list of the custom rollouts for the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either CustomRolloutArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~provider_hub.models.CustomRolloutArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CustomRolloutArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_provider_registration.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('CustomRolloutArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_by_provider_registration.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/customRollouts'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_default_rollouts_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_default_rollouts_operations.py deleted file mode 100644 index e164e140c23..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_default_rollouts_operations.py +++ /dev/null @@ -1,425 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class DefaultRolloutsOperations(object): - """DefaultRolloutsOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def get( - self, - provider_namespace, # type: str - rollout_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "models.DefaultRollout" - """Gets the default rollout details. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param rollout_name: The rollout name. - :type rollout_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DefaultRollout, or the result of cls(response) - :rtype: ~provider_hub.models.DefaultRollout - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.DefaultRollout"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('DefaultRollout', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}'} # type: ignore - - def delete( - self, - provider_namespace, # type: str - rollout_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - """Deletes the rollout resource. Rollout must be in terminal state. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param rollout_name: The rollout name. - :type rollout_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}'} # type: ignore - - def _create_or_update_initial( - self, - provider_namespace, # type: str - rollout_name, # type: str - properties, # type: models.DefaultRolloutProperties - **kwargs # type: Any - ): - # type: (...) -> "models.DefaultRollout" - cls = kwargs.pop('cls', None) # type: ClsType["models.DefaultRollout"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'DefaultRollout') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize('DefaultRollout', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('DefaultRollout', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}'} # type: ignore - - def begin_create_or_update( - self, - provider_namespace, # type: str - rollout_name, # type: str - properties, # type: models.DefaultRolloutProperties - **kwargs # type: Any - ): - # type: (...) -> LROPoller["models.DefaultRollout"] - """Creates or updates the rollout details. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param rollout_name: The rollout name. - :type rollout_name: str - :param properties: The Default rollout properties supplied to the CreateOrUpdate operation. - :type properties: ~provider_hub.models.DefaultRollout - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns either DefaultRollout or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~provider_hub.models.DefaultRollout] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.DefaultRollout"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = self._create_or_update_initial( - provider_namespace=provider_namespace, - rollout_name=rollout_name, - properties=properties, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('DefaultRollout', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - if cont_token: - return LROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}'} # type: ignore - - def list_by_provider_registration( - self, - provider_namespace, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["models.DefaultRolloutArrayResponseWithContinuation"] - """Gets the list of the rollouts for the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either DefaultRolloutArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~provider_hub.models.DefaultRolloutArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.DefaultRolloutArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_provider_registration.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('DefaultRolloutArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_by_provider_registration.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts'} # type: ignore - - def stop( - self, - provider_namespace, # type: str - rollout_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - """Stops or cancels the rollout, if in progress. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param rollout_name: The rollout name. - :type rollout_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.stop.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'rolloutName': self._serialize.url("rollout_name", rollout_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.post(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - stop.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/defaultRollouts/{rolloutName}/stop'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_notification_registrations_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_notification_registrations_operations.py deleted file mode 100644 index 31362033fd1..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_notification_registrations_operations.py +++ /dev/null @@ -1,304 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class NotificationRegistrationsOperations(object): - """NotificationRegistrationsOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def get( - self, - provider_namespace, # type: str - notification_registration_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "models.NotificationRegistration" - """Gets the notification registration details. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param notification_registration_name: The notification registration. - :type notification_registration_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: NotificationRegistration, or the result of cls(response) - :rtype: ~provider_hub.models.NotificationRegistration - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.NotificationRegistration"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'notificationRegistrationName': self._serialize.url("notification_registration_name", notification_registration_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('NotificationRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}'} # type: ignore - - def create_or_update( - self, - provider_namespace, # type: str - notification_registration_name, # type: str - properties, # type: "models.NotificationRegistration" - **kwargs # type: Any - ): - # type: (...) -> "models.NotificationRegistration" - """Creates or updates a notification registration. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param notification_registration_name: The notification registration. - :type notification_registration_name: str - :param properties: The required body parameters supplied to the notification registration - operation. - :type properties: ~provider_hub.models.NotificationRegistration - :keyword callable cls: A custom type or function that will be passed the direct response - :return: NotificationRegistration, or the result of cls(response) - :rtype: ~provider_hub.models.NotificationRegistration - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.NotificationRegistration"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'notificationRegistrationName': self._serialize.url("notification_registration_name", notification_registration_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'NotificationRegistration') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('NotificationRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}'} # type: ignore - - def delete( - self, - provider_namespace, # type: str - notification_registration_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - """Deletes a notification registration. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param notification_registration_name: The notification registration. - :type notification_registration_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'notificationRegistrationName': self._serialize.url("notification_registration_name", notification_registration_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations/{notificationRegistrationName}'} # type: ignore - - def list_by_provider_registration( - self, - provider_namespace, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["models.NotificationRegistrationArrayResponseWithContinuation"] - """Gets the list of the notification registrations for the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either NotificationRegistrationArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~provider_hub.models.NotificationRegistrationArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.NotificationRegistrationArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_provider_registration.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('NotificationRegistrationArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_by_provider_registration.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/notificationRegistrations'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_operations.py deleted file mode 100644 index 91402615238..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_operations.py +++ /dev/null @@ -1,282 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, List, Optional, TypeVar - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class Operations(object): - """Operations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def list( - self, - **kwargs # type: Any - ): - # type: (...) -> Iterable["models.OperationsDefinitionArrayResponseWithContinuation"] - """Lists all the operations supported by Microsoft.ProviderHub. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either OperationsDefinitionArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~provider_hub.models.OperationsDefinitionArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationsDefinitionArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('OperationsDefinitionArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/providers/Microsoft.ProviderHub/operations'} # type: ignore - - def list_by_provider_registration( - self, - provider_namespace, # type: str - **kwargs # type: Any - ): - # type: (...) -> List["models.OperationsDefinition"] - """Gets the operations supported by the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of OperationsDefinition, or the result of cls(response) - :rtype: list[~provider_hub.models.OperationsDefinition] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[List["models.OperationsDefinition"]] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.list_by_provider_registration.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('[OperationsDefinition]', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - list_by_provider_registration.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default'} # type: ignore - - def create_or_update( - self, - provider_namespace, # type: str - operations_put_content, # type: "models.OperationsPutContent" - **kwargs # type: Any - ): - # type: (...) -> "models.OperationsContent" - """Creates or updates the operation supported by the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param operations_put_content: The operations content properties supplied to the CreateOrUpdate - operation. - :type operations_put_content: ~provider_hub.models.OperationsPutContent - :keyword callable cls: A custom type or function that will be passed the direct response - :return: OperationsContent, or the result of cls(response) - :rtype: ~provider_hub.models.OperationsContent - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationsContent"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(operations_put_content, 'OperationsPutContent') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('OperationsContent', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default'} # type: ignore - - def delete( - self, - provider_namespace, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - """Deletes an operation. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_provider_hub_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_provider_hub_operations.py deleted file mode 100644 index 7f1b4661a54..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_provider_hub_operations.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class ProviderHubOperationsMixin(object): - """ProviderhubOperationsMixin operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~providerhub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def generate_manifest( - self, - provider_namespace, # type: str - **kwargs # type: Any - ): - # type: (...) -> "models.ResourceProviderManifest" - """Generates the manifest for the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ResourceProviderManifest, or the result of cls(response) - :rtype: ~provider_hub.models.ResourceProviderManifest - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ResourceProviderManifest"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.generate_manifest.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.post(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('ResourceProviderManifest', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - generate_manifest.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/generateManifest'} # type: ignore - - def checkin_manifest( - self, - provider_namespace, # type: str - checkin_manifest_params, # type: "models.CheckinManifestParams" - **kwargs # type: Any - ): - # type: (...) -> "models.CheckinManifestInfo" - """Checkin the manifest. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param checkin_manifest_params: The required body parameters supplied to the checkin manifest - operation. - :type checkin_manifest_params: ~provider_hub.models.CheckinManifestParams - :keyword callable cls: A custom type or function that will be passed the direct response - :return: CheckinManifestInfo, or the result of cls(response) - :rtype: ~provider_hub.models.CheckinManifestInfo - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckinManifestInfo"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.checkin_manifest.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(checkin_manifest_params, 'CheckinManifestParams') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('CheckinManifestInfo', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - checkin_manifest.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/checkinManifest'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_provider_registrations_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_provider_registrations_operations.py deleted file mode 100644 index 9c43d4be276..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_provider_registrations_operations.py +++ /dev/null @@ -1,556 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, List, Optional, TypeVar, Union - - T = TypeVar('T') - ClsType = Optional[Callable[[ - PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - - -class ProviderRegistrationsOperations(object): - """ProviderRegistrationsOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def get( - self, - provider_namespace, # type: str - **kwargs # type: Any - ): - # type: (...) -> "models.ProviderRegistration" - """Gets the provider registration details. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ProviderRegistration, or the result of cls(response) - :rtype: ~provider_hub.models.ProviderRegistration - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop( - 'cls', None) # type: ClsType["models.ProviderRegistration"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run( - request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize( - 'ProviderRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - # type: ignore - get.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}'} - - def _create_or_update_initial( - self, - provider_namespace, # type: str - provider_authentication, # type: "models.ResourceProviderAuthorization" - provider_authorizations, # type: "models.ThirdPartyProviderAuthorization" - provider_version, # type: str - provider_type, # type: str - namespace, # type: str - capabilities, # type: list["models.ResourceProviderCapabilities"] - metadata, # type: object - template_deployment_options, # type: "models.TemplateDeploymentOptions" - schema_owners, # type: list[str] - manifest_owners, # type: list[str] - incident_routing_service, # type: str - incident_routing_team, # type: str - incident_contact_email, # type: str - service_tree_infos, # type: list["models.ServiceTreeInfo"] - resource_access_policy, # type: "models.ResourceProviderManagementResourceAccessPolicy" - required_features_policy, # type: "models.FeaturesPolicy" - required_features, # type: list[str] - opt_in_headers, # type: "models.OptInHeaderType" - managed_by_tenant_id, # type: str - # type: "models.ResourceProviderAuthorization" - providerhub_metadata_authorizations, - # type: "models.ResourceProviderAuthentication" - providerhub_metadata_authentication, - lighthouse_authorizations, # type: "models.LightHouseAuthorization" - # type: list["models.SubscriptionStateOverrideAction"] - subscription_state_override_actions, - resource_access_roles, # type: list[object] - soft_delete_ttl, # type: duration - **kwargs # type: Any - ): - # type: (...) -> Optional["models.ProviderRegistration"] - # type: ClsType[Optional["models.ProviderRegistration"]] - cls = kwargs.pop('cls', None) - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header( - "content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - features_rule = models.FeaturesRule( - required_features_policy=required_features_policy) if required_features_policy else None - subscriptionLifecycleNotificationSpecifications = models.SubscriptionLifecycleNotificationSpecifications( - subscription_state_override_actions=subscription_state_override_actions, - soft_delete_ttl=soft_delete_ttl - ) - management = models.ResourceProviderManagement(schema_owners=schema_owners, manifest_owners=manifest_owners, incident_routing_service=incident_routing_service, incident_routing_team=incident_routing_team, - incident_contact_email=incident_contact_email, service_tree_infos=service_tree_infos, resource_access_policy=resource_access_policy, resource_access_roles=resource_access_roles) - third_party_provider_authorization = models.ThirdPartyProviderAuthorization( - authorizations=lighthouse_authorizations, managed_by_tenant_id=managed_by_tenant_id) if lighthouse_authorizations or managed_by_tenant_id else None - providerhub_metadata = models.ProviderHubMetadata(provider_authorizations=providerhub_metadata_authorizations, - provider_authentication=providerhub_metadata_authentication, - third_party_provider_authorization=third_party_provider_authorization) - - properties = models.ProviderRegistration( - properties=models.ProviderRegistrationProperties(provider_authentication=provider_authentication, provider_authorizations=provider_authorizations, provider_version=provider_version, provider_type=provider_type, provider_hub_metadata=providerhub_metadata, namespace=namespace, - features_rule=features_rule, management=management, capabilities=capabilities, metadata=metadata, template_deployment_options=template_deployment_options, - required_features=required_features) - ) - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'ProviderRegistration') - body_content_kwargs['content'] = body_content - request = self._client.put( - url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run( - request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize( - 'ProviderRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}'} # type: ignore - - def begin_create_or_update( - self, - provider_namespace, # type: str - provider_authentication, # type: "models.ResourceProviderAuthorization" - provider_authorizations, # type: "models.ThirdPartyProviderAuthorization" - provider_version, # type: str - provider_type, # type: str - namespace, # type: str - capabilities, # type: list["models.ResourceProviderCapabilities"] - metadata, # type: object - template_deployment_options, # type: "models.TemplateDeploymentOptions" - schema_owners, # type: list[str] - manifest_owners, # type: list[str] - incident_routing_service, # type: str - incident_routing_team, # type: str - incident_contact_email, # type: str - service_tree_infos, # type: list["models.ServiceTreeInfo"] - resource_access_policy, # type: "models.ResourceProviderManagementResourceAccessPolicy" - required_features_policy, # type: "models.FeaturesPolicy" - required_features, # type: list[str] - opt_in_headers, # type: "models.OptInHeaderType" - managed_by_tenant_id, # type: str - # type: "models.ResourceProviderAuthorization" - providerhub_metadata_authorizations, - # type: "models.ResourceProviderAuthentication" - providerhub_metadata_authentication, - lighthouse_authorizations, # type: "models.LightHouseAuthorization" - # type: list["models.SubscriptionStateOverrideAction"] - subscription_state_override_actions, - resource_access_roles, # type: list[object] - soft_delete_ttl, # type: duration - **kwargs # type: Any - ): - # type: (...) -> LROPoller["models.ProviderRegistration"] - """Creates or updates the provider registration. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param properties: The provider registration properties supplied to the CreateOrUpdate - operation. - :type properties: ~provider_hub.models.ProviderRegistration - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns either ProviderRegistration or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~provider_hub.models.ProviderRegistration] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop( - 'polling', True) # type: Union[bool, PollingMethod] - # type: ClsType["models.ProviderRegistration"] - cls = kwargs.pop('cls', None) - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', - None) # type: Optional[str] - if cont_token is None: - raw_result = self._create_or_update_initial( - provider_namespace=provider_namespace, - provider_authentication=provider_authentication, - provider_authorizations=provider_authorizations, - provider_version=provider_version, - provider_type=provider_type, - namespace=namespace, - capabilities=capabilities, - metadata=metadata, - template_deployment_options=template_deployment_options, - schema_owners=schema_owners, - manifest_owners=manifest_owners, - incident_routing_service=incident_routing_service, - incident_routing_team=incident_routing_team, - incident_contact_email=incident_contact_email, - service_tree_infos=service_tree_infos, - resource_access_policy=resource_access_policy, - required_features_policy=required_features_policy, - required_features=required_features, - opt_in_headers=opt_in_headers, - managed_by_tenant_id=managed_by_tenant_id, - providerhub_metadata_authorizations=providerhub_metadata_authorizations, - providerhub_metadata_authentication=providerhub_metadata_authentication, - lighthouse_authorizations=lighthouse_authorizations, - resource_access_roles=resource_access_roles, - subscription_state_override_actions=subscription_state_override_actions, - soft_delete_ttl=soft_delete_ttl, - cls=lambda x, y, z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize( - 'ProviderRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - - if polling is True: - polling_method = ARMPolling(lro_delay, lro_options={ - 'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: - polling_method = NoPolling() - else: - polling_method = polling - if cont_token: - return LROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}'} # type: ignore - - def delete( - self, - provider_namespace, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - """Deletes a provider registration. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run( - request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}'} # type: ignore - - def list( - self, - **kwargs # type: Any - ): - # type: (...) -> Iterable["models.ProviderRegistrationArrayResponseWithContinuation"] - """Gets the list of the provider registrations in the subscription. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ProviderRegistrationArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~provider_hub.models.ProviderRegistrationArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop( - 'cls', None) # type: ClsType["models.ProviderRegistrationArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - request = self._client.get( - url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get( - url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize( - 'ProviderRegistrationArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run( - request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, - response=response, error_map=error_map) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations'} # type: ignore - - def generate_operations( - self, - provider_namespace, # type: str - **kwargs # type: Any - ): - # type: (...) -> List["models.OperationsDefinition"] - """Generates the operations api for the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of OperationsDefinition, or the result of cls(response) - :rtype: list[~provider_hub.models.OperationsDefinition] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop( - 'cls', None) # type: ClsType[List["models.OperationsDefinition"]] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.generate_operations.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - request = self._client.post(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run( - request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize( - '[OperationsDefinition]', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - generate_operations.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/generateOperations'} # type: ignore diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_resource_type_registration_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_resource_type_registration_operations.py deleted file mode 100644 index c2a9c9e201e..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_resource_type_registration_operations.py +++ /dev/null @@ -1,444 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import datetime -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -from .. import models - - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - - T = TypeVar('T') - ClsType = Optional[Callable[[ - PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - - -class ResourceTypeRegistrationOperations(object): - """ResourceTypeRegistrationOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~providerhub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def get( - self, - provider_namespace, # type: str - resource_type, # type: str - **kwargs # type: Any - ): - # type: (...) -> "models.ResourceTypeRegistration" - """Gets a resource type details in the given subscription and provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ResourceTypeRegistration, or the result of cls(response) - :rtype: ~provider_hub.models.ResourceTypeRegistration - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop( - 'cls', None) # type: ClsType["models.ResourceTypeRegistration"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - url = self.constructResourceTypeUrl(url, resource_type) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run( - request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize( - 'ResourceTypeRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/'} # type: ignore - - def _create_or_update_initial( - self, - provider_namespace, # type: str - resource_type, # type: str - routing_type, # type: str or "models.RoutingType" - regionality, # type: "models.Regionality" - endpoints, # type: list["models.ResourceTypeEndpoint"] - resource_creation_begin, # type: "models.ExtensionOptions" - resource_patch_begin, # type: "models.ExtensionOptions" - marketplace_type, # type: "models.ResourceTypeRegistrationPropertiesMarketplaceType" - swagger_specifications, # type: list["models.SwaggerSpecification"] - allowed_unauthorized_actions, # type: list[str] - # type: list["models.AuthorizationActionMapping"] - authorization_action_mappings, - linked_access_checks, # type: list["models.LinkedAccessCheck"] - default_api_version, # type: str - logging_rules, # type: list["models.LoggingRule"] - throttling_rules, # type: list["models.ThrottlingRule"] - required_features, # type: list[str] - enable_async_operation, # type: bool - enable_third_party_s2s, # type: bool - is_pure_proxy, # type: bool - identity_management, # type: "models.IdentityManagementProperties" - # type: "models.CheckNameAvailabilitySpecifications" - check_name_availability_specifications, - disallowed_action_verbs, # type: list[str] - service_tree_infos, # type: list["models.ServiceTreeInfo"] - subscription_state_rules, # type: list["models.SubscriptionStateRule"] - template_deployment_options, # type: "models.TemplateDeploymentOptions" - extended_locations, # type: list["models.ExtendedLocationOptions"] - resource_move_policy, # type: "models.ResourceMovePolicy" - resource_deletion_policy, # type: "models.ResourceDeletionPolicy" - opt_in_headers, # type: "models.OptInHeaderType" - required_features_policy, # type: "models.FeaturesPolicy" - extensions, # type: "models.ResourceTypeExtension" - **kwargs # type: Any - ): - # type: (...) -> "models.ResourceTypeRegistration" - # type: ClsType["models.ResourceTypeRegistration"] - cls = kwargs.pop('cls', None) - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - url = self.constructResourceTypeUrl(url, resource_type) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header( - "content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - request_header_options = models.RequestHeaderOptions( - opt_in_headers=opt_in_headers) if opt_in_headers else None - features_rule = models.FeaturesRule( - required_features_policy=required_features_policy) if required_features_policy else None - extensions = models.ResourceTypeExtension( - extensions=extensions) if extensions else None - extension_options = models.ResourceTypeExtensionOptions(resource_creation_begin=resource_creation_begin, - resource_patch_begin=resource_patch_begin) if resource_creation_begin or resource_patch_begin else None - - properties = models.ResourceTypeRegistration(routing_type=routing_type, regionality=regionality, endpoints=endpoints, extension_options=extension_options, marketplace_type=marketplace_type, swagger_specifications=swagger_specifications, allowed_unauthorized_actions=allowed_unauthorized_actions, authorization_action_mappings=authorization_action_mappings, linked_access_checks=linked_access_checks, default_api_version=default_api_version, logging_rules=logging_rules, throttling_rules=throttling_rules, required_features=required_features, features_rule=features_rule, enable_async_operation=enable_async_operation, - enable_third_party_s2s=enable_third_party_s2s, is_pure_proxy=is_pure_proxy, identity_management=identity_management, check_name_availability_specifications=check_name_availability_specifications, disallowed_action_verbs=disallowed_action_verbs, service_tree_infos=service_tree_infos, request_header_options=request_header_options, subscription_state_rules=subscription_state_rules, template_deployment_options=template_deployment_options, extended_locations=extended_locations, resource_move_policy=resource_move_policy, resource_deletion_policy=resource_deletion_policy) - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'ResourceTypeRegistration') - body_content_kwargs['content'] = body_content - request = self._client.put( - url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run( - request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize( - 'ResourceTypeRegistration', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize( - 'ResourceTypeRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/'} # type: ignore - - def begin_create_or_update( - self, - provider_namespace, # type: str - resource_type, # type: str - routing_type, # type: str or "models.RoutingType" - regionality, # type: "models.Regionality" - endpoints, # type: list["models.ResourceTypeEndpoint"] - resource_creation_begin, # type: "models.ExtensionOptions" - resource_patch_begin, # type: "models.ExtensionOptions" - marketplace_type, # type: "models.ResourceTypeRegistrationPropertiesMarketplaceType" - swagger_specifications, # type: list["models.SwaggerSpecification"] - allowed_unauthorized_actions, # type: list[str] - # type: list["models.AuthorizationActionMapping"] - authorization_action_mappings, - linked_access_checks, # type: list["models.LinkedAccessCheck"] - default_api_version, # type: str - logging_rules, # type: list["models.LoggingRule"] - throttling_rules, # type: list["models.ThrottlingRule"] - required_features, # type: list[str] - enable_async_operation, # type: bool - enable_third_party_s2s, # type: bool - is_pure_proxy, # type: bool - identity_management, # type: "models.IdentityManagementProperties" - # type: "models.CheckNameAvailabilitySpecifications" - check_name_availability_specifications, - disallowed_action_verbs, # type: list[str] - service_tree_infos, # type: list["models.ServiceTreeInfo"] - subscription_state_rules, # type: list["models.SubscriptionStateRule"] - template_deployment_options, # type: "models.TemplateDeploymentOptions" - extended_locations, # type: list["models.ExtendedLocationOptions"] - resource_move_policy, # type: "models.ResourceMovePolicy" - resource_deletion_policy, # type: "models.ResourceDeletionPolicy" - opt_in_headers, # type: "models.OptInHeaderType" - required_features_policy, # type: "models.FeaturesPolicy" - extensions, # type: "models.ResourceTypeExtension", - **kwargs # type: Any - ): - # type: (...) -> LROPoller["models.ResourceTypeRegistration"] - """Creates or updates a resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param properties: The resource type registration parameters supplied to the CreateOrUpdate operation. - :type properties: ~providerhub.models.ResourceTypeRegistration - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns either ResourceTypeRegistration or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~providerhub.models.ResourceTypeRegistration] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop( - 'polling', True) # type: Union[bool, PollingMethod] - # type: ClsType["models.ResourceTypeRegistration"] - cls = kwargs.pop('cls', None) - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', - None) # type: Optional[str] - if cont_token is None: - raw_result = self._create_or_update_initial( - provider_namespace=provider_namespace, - resource_type=resource_type, - routing_type=routing_type, - regionality=regionality, - endpoints=endpoints, - resource_creation_begin=resource_creation_begin, - resource_patch_begin=resource_patch_begin, - marketplace_type=marketplace_type, - swagger_specifications=swagger_specifications, - allowed_unauthorized_actions=allowed_unauthorized_actions, - authorization_action_mappings=authorization_action_mappings, - linked_access_checks=linked_access_checks, - default_api_version=default_api_version, - logging_rules=logging_rules, - throttling_rules=throttling_rules, - required_features=required_features, - enable_async_operation=enable_async_operation, - enable_third_party_s2s=enable_third_party_s2s, - is_pure_proxy=is_pure_proxy, - identity_management=identity_management, - check_name_availability_specifications=check_name_availability_specifications, - disallowed_action_verbs=disallowed_action_verbs, - service_tree_infos=service_tree_infos, - subscription_state_rules=subscription_state_rules, - template_deployment_options=template_deployment_options, - extended_locations=extended_locations, - resource_move_policy=resource_move_policy, - resource_deletion_policy=resource_deletion_policy, - opt_in_headers=opt_in_headers, - required_features_policy=required_features_policy, - extensions=extensions, - cls=lambda x, y, z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize( - 'ResourceTypeRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - } - - if polling is True: - polling_method = ARMPolling(lro_delay, lro_options={ - 'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: - polling_method = NoPolling() - else: - polling_method = polling - if cont_token: - return LROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/'} # type: ignore - - def delete( - self, - provider_namespace, # type: str - resource_type, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - """Deletes a resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - url = self.constructResourceTypeUrl(url, resource_type) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run( - request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - delete.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/'} # type: ignore - - def constructResourceTypeUrl( - self, - url, - resourceName - ): - # type: str - resourceName = resourceName.split("/") - resourceTypeUrlSuffix = "/resourcetypeRegistrations/".join(resourceName) - return url + resourceTypeUrlSuffix diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_resource_type_registrations_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_resource_type_registrations_operations.py deleted file mode 100644 index accf6a2f2eb..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_resource_type_registrations_operations.py +++ /dev/null @@ -1,536 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union - - T = TypeVar('T') - ClsType = Optional[Callable[[ - PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - - -class ResourceTypeRegistrationsOperations(object): - """ResourceTypeRegistrationsOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def get( - self, - provider_namespace, # type: str - resource_type, # type: str - **kwargs # type: Any - ): - # type: (...) -> "models.ResourceTypeRegistration" - """Gets a resource type details in the given subscription and provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ResourceTypeRegistration, or the result of cls(response) - :rtype: ~provider_hub.models.ResourceTypeRegistration - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop( - 'cls', None) # type: ClsType["models.ResourceTypeRegistration"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - url = self.constructResourceTypeUrl(url, resource_type) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run( - request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize( - 'ResourceTypeRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/'} # type: ignore - - def _create_or_update_initial( - self, - provider_namespace, # type: str - resource_type, # type: str - routing_type, # type: "models.RoutingType" - regionality, # type: "models.Regionality" - endpoints, # type: list["models.ResourceTypeEndpoint"] - resource_creation_begin, # type: "models.ExtensionOptions" - resource_patch_begin, # type: "models.ExtensionOptions" - marketplace_type, # type: "models.ResourceTypeRegistrationPropertiesMarketplaceType" - swagger_specifications, # type: list["models.SwaggerSpecification"] - allowed_unauthorized_actions, # type: list[str] - # type: list["models.AuthorizationActionMapping"] - authorization_action_mappings, - linked_access_checks, # type: list["models.LinkedAccessCheck"] - default_api_version, # type: str - logging_rules, # type: list["models.LoggingRule"] - throttling_rules, # type: list["models.ThrottlingRule"] - required_features, # type: list[str] - enable_async_operation, # type: bool - enable_third_party_s2s, # type: bool - is_pure_proxy, # type: bool - identity_management, # type: "models.IdentityManagementProperties" - # type: "models.CheckNameAvailabilitySpecifications" - check_name_availability_specifications, - disallowed_action_verbs, # type: list[str] - service_tree_infos, # type: list["models.ServiceTreeInfo"] - subscription_state_rules, # type: list["models.SubscriptionStateRule"] - template_deployment_options, # type: "models.TemplateDeploymentOptions" - extended_locations, # type: list["models.ExtendedLocationOptions"] - resource_move_policy, # type: "models.ResourceMovePolicy" - resource_deletion_policy, # type: "models.ResourceDeletionPolicy" - opt_in_headers, # type: "models.OptInHeaderType" - required_features_policy, # type: "models.FeaturesPolicy" - # type: "list[~provider_hub.models.SubscriptionStateOverrideAction]" - subscription_state_override_actions, - soft_delete_ttl, # type: "~datetime.timedelta" - **kwargs # type: Any - ): - # type: (...) -> "models.ResourceTypeRegistration" - # type: ClsType["models.ResourceTypeRegistration"] - cls = kwargs.pop('cls', None) - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - url = self.constructResourceTypeUrl(url, resource_type) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header( - "content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - request_header_options = models.RequestHeaderOptions( - opt_in_headers=opt_in_headers) if opt_in_headers else None - features_rule = models.FeaturesRule( - required_features_policy=required_features_policy) if required_features_policy else None - extension_options = models.ResourceTypeExtensionOptions(resource_creation_begin=resource_creation_begin, - resource_patch_begin=resource_patch_begin) if resource_creation_begin or resource_patch_begin else None - subscription_lifecycle_notification_specifications = models.SubscriptionLifecycleNotificationSpecifications( - subscription_state_override_actions=subscription_state_override_actions, soft_delete_ttl=soft_delete_ttl) if subscription_state_override_actions or soft_delete_ttl else None - - properties = models.ResourceTypeRegistrationProperties(routing_type=routing_type, regionality=regionality, endpoints=endpoints, extension_options=extension_options, marketplace_type=marketplace_type, swagger_specifications=swagger_specifications, allowed_unauthorized_actions=allowed_unauthorized_actions, authorization_action_mappings=authorization_action_mappings, linked_access_checks=linked_access_checks, default_api_version=default_api_version, logging_rules=logging_rules, throttling_rules=throttling_rules, required_features=required_features, features_rule=features_rule, enable_async_operation=enable_async_operation, - enable_third_party_s2s=enable_third_party_s2s, is_pure_proxy=is_pure_proxy, identity_management=identity_management, check_name_availability_specifications=check_name_availability_specifications, disallowed_action_verbs=disallowed_action_verbs, service_tree_infos=service_tree_infos, request_header_options=request_header_options, subscription_state_rules=subscription_state_rules, template_deployment_options=template_deployment_options, extended_locations=extended_locations, resource_move_policy=resource_move_policy, resource_deletion_policy=resource_deletion_policy, - subscription_lifecycle_notification_specifications=subscription_lifecycle_notification_specifications) - resourceTypeRegistration = models.ResourceTypeRegistration(properties=properties) - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body( - resourceTypeRegistration, 'ResourceTypeRegistration') - body_content_kwargs['content'] = body_content - request = self._client.put( - url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run( - request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize( - 'ResourceTypeRegistration', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize( - 'ResourceTypeRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/'} # type: ignore - - def begin_create_or_update( - self, - provider_namespace, # type: str - resource_type, # type: str - routing_type, # type: "models.RoutingType" - regionality, # type: "models.Regionality" - endpoints, # type: list["models.ResourceTypeEndpoint"] - resource_creation_begin, # type: "models.ExtensionOptions" - resource_patch_begin, # type: "models.ExtensionOptions" - marketplace_type, # type: "models.ResourceTypeRegistrationPropertiesMarketplaceType" - swagger_specifications, # type: list["models.SwaggerSpecification"] - allowed_unauthorized_actions, # type: list[str] - # type: list["models.AuthorizationActionMapping"] - authorization_action_mappings, - linked_access_checks, # type: list["models.LinkedAccessCheck"] - default_api_version, # type: str - logging_rules, # type: list["models.LoggingRule"] - throttling_rules, # type: list["models.ThrottlingRule"] - required_features, # type: list[str] - enable_async_operation, # type: bool - enable_third_party_s2s, # type: bool - is_pure_proxy, # type: bool - identity_management, # type: "models.IdentityManagementProperties" - # type: "models.CheckNameAvailabilitySpecifications" - check_name_availability_specifications, - disallowed_action_verbs, # type: list[str] - service_tree_infos, # type: list["models.ServiceTreeInfo"] - subscription_state_rules, # type: list["models.SubscriptionStateRule"] - template_deployment_options, # type: "models.TemplateDeploymentOptions" - extended_locations, # type: list["models.ExtendedLocationOptions"] - resource_move_policy, # type: "models.ResourceMovePolicy" - resource_deletion_policy, # type: "models.ResourceDeletionPolicy" - opt_in_headers, # type: "models.OptInHeaderType" - required_features_policy, # type: "models.FeaturesPolicy" - # type: "list[~provider_hub.models.SubscriptionStateOverrideAction]" - subscription_state_override_actions, - soft_delete_ttl, # type: "~datetime.timedelta" - **kwargs # type: Any - ): - # type: (...) -> LROPoller["models.ResourceTypeRegistration"] - """Creates or updates a resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param properties: The required request body parameters supplied to the resource type - registration CreateOrUpdate operation. - :type properties: ~provider_hub.models.ResourceTypeRegistration - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns either ResourceTypeRegistration or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~provider_hub.models.ResourceTypeRegistration] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop( - 'polling', True) # type: Union[bool, PollingMethod] - # type: ClsType["models.ResourceTypeRegistration"] - cls = kwargs.pop('cls', None) - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', - None) # type: Optional[str] - if cont_token is None: - raw_result = self._create_or_update_initial( - provider_namespace=provider_namespace, - resource_type=resource_type, - routing_type=routing_type, - regionality=regionality, - resource_creation_begin=resource_creation_begin, - resource_patch_begin=resource_patch_begin, - endpoints=endpoints, - marketplace_type=marketplace_type, - swagger_specifications=swagger_specifications, - allowed_unauthorized_actions=allowed_unauthorized_actions, - authorization_action_mappings=authorization_action_mappings, - linked_access_checks=linked_access_checks, - default_api_version=default_api_version, - logging_rules=logging_rules, - throttling_rules=throttling_rules, - required_features=required_features, - enable_async_operation=enable_async_operation, - enable_third_party_s2s=enable_third_party_s2s, - is_pure_proxy=is_pure_proxy, - identity_management=identity_management, - check_name_availability_specifications=check_name_availability_specifications, - disallowed_action_verbs=disallowed_action_verbs, - service_tree_infos=service_tree_infos, - subscription_state_rules=subscription_state_rules, - template_deployment_options=template_deployment_options, - extended_locations=extended_locations, - resource_move_policy=resource_move_policy, - resource_deletion_policy=resource_deletion_policy, - opt_in_headers=opt_in_headers, - required_features_policy=required_features_policy, - subscription_state_override_actions=subscription_state_override_actions, - soft_delete_ttl=soft_delete_ttl, - cls=lambda x, y, z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize( - 'ResourceTypeRegistration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - } - - if polling is True: - polling_method = ARMPolling(lro_delay, lro_options={ - 'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: - polling_method = NoPolling() - else: - polling_method = polling - if cont_token: - return LROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/'} # type: ignore - - def delete( - self, - provider_namespace, # type: str - resource_type, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - """Deletes a resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - url = self.constructResourceTypeUrl(url, resource_type) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run( - request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, - response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/'} # type: ignore - - def list_by_provider_registration( - self, - provider_namespace, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["models.ResourceTypeRegistrationArrayResponseWithContinuation"] - """Gets the list of the resource types for the given provider. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ResourceTypeRegistrationArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~provider_hub.models.ResourceTypeRegistrationArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop( - 'cls', None) # type: ClsType["models.ResourceTypeRegistrationArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header( - "accept", accept, 'str') - - if not next_link: - # Construct URL - # type: ignore - url = self.list_by_provider_registration.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query( - "api_version", api_version, 'str') - - request = self._client.get( - url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get( - url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize( - 'ResourceTypeRegistrationArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run( - request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, - response=response, error_map=error_map) - raise HttpResponseError( - response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_by_provider_registration.metadata = { - 'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations'} # type: ignore - - def constructResourceTypeUrl( - self, - url, - resourceName - ): - # type: str - resourceName = resourceName.split("/") - resourceTypeUrlSuffix = "/resourcetypeRegistrations/".join(resourceName) - return url + resourceTypeUrlSuffix diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_skus_operations.py b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_skus_operations.py deleted file mode 100644 index 92f0e4e117f..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/operations/_skus_operations.py +++ /dev/null @@ -1,1254 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class SkusOperations(object): - """SkusOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~provider_hub.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def get( - self, - provider_namespace, # type: str - resource_type, # type: str - sku, # type: str - **kwargs # type: Any - ): - # type: (...) -> "models.SkuResource" - """Gets the sku details for the given resource type and sku name. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - url = self.constructResourceTypeUrl(url, resource_type, sku) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/'} # type: ignore - - def create_or_update( - self, - provider_namespace, # type: str - resource_type, # type: str - sku, # type: str - properties, # type: "models.ResourceTypeSku" - **kwargs # type: Any - ): - # type: (...) -> "models.SkuResource" - """Creates or updates the resource type skus in the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param sku: The SKU. - :type sku: str - :param properties: The required body parameters supplied to the resource sku operation. - :type properties: ~provider_hub.models.ResourceTypeSku - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - url = self.constructResourceTypeUrl(url, resource_type, sku) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = { - 'properties': self._serialize.body(properties, 'ResourceTypeSku') - } - body_content_kwargs['content'] = body_content - - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/'} # type: ignore - - def delete( - self, - provider_namespace, # type: str - resource_type, # type: str - sku, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - """Deletes a resource type sku. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - url = self.constructResourceTypeUrl(url, resource_type, sku) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/'} # type: ignore - - def get_nested_resource_type_first( - self, - provider_namespace, # type: str - resource_type, # type: str - nested_resource_type_first, # type: str - sku, # type: str - **kwargs # type: Any - ): - # type: (...) -> "models.SkuResource" - """Gets the sku details for the given resource type and sku name. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get_nested_resource_type_first.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_nested_resource_type_first.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}'} # type: ignore - - def create_or_update_nested_resource_type_first( - self, - provider_namespace, # type: str - resource_type, # type: str - nested_resource_type_first, # type: str - sku, # type: str - properties, # type: "models.ResourceTypeSku" - **kwargs # type: Any - ): - # type: (...) -> "models.SkuResource" - """Creates or updates the resource type skus in the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param sku: The SKU. - :type sku: str - :param properties: The required body parameters supplied to the resource sku operation. - :type properties: ~provider_hub.models.ResourceTypeSku - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update_nested_resource_type_first.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'ResourceTypeSku') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update_nested_resource_type_first.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}'} # type: ignore - - def delete_nested_resource_type_first( - self, - provider_namespace, # type: str - resource_type, # type: str - nested_resource_type_first, # type: str - sku, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - """Deletes a resource type sku. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete_nested_resource_type_first.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete_nested_resource_type_first.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus/{sku}'} # type: ignore - - def get_nested_resource_type_second( - self, - provider_namespace, # type: str - resource_type, # type: str - nested_resource_type_first, # type: str - nested_resource_type_second, # type: str - sku, # type: str - **kwargs # type: Any - ): - # type: (...) -> "models.SkuResource" - """Gets the sku details for the given resource type and sku name. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get_nested_resource_type_second.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_nested_resource_type_second.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus/{sku}'} # type: ignore - - def create_or_update_nested_resource_type_second( - self, - provider_namespace, # type: str - resource_type, # type: str - nested_resource_type_first, # type: str - nested_resource_type_second, # type: str - sku, # type: str - properties, # type: "models.ResourceTypeSku" - **kwargs # type: Any - ): - # type: (...) -> "models.SkuResource" - """Creates or updates the resource type skus in the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param sku: The SKU. - :type sku: str - :param properties: The required body parameters supplied to the resource sku operation. - :type properties: ~provider_hub.models.ResourceTypeSku - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update_nested_resource_type_second.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'ResourceTypeSku') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update_nested_resource_type_second.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus/{sku}'} # type: ignore - - def delete_nested_resource_type_second( - self, - provider_namespace, # type: str - resource_type, # type: str - nested_resource_type_first, # type: str - nested_resource_type_second, # type: str - sku, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - """Deletes a resource type sku. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete_nested_resource_type_second.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete_nested_resource_type_second.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus/{sku}'} # type: ignore - - def get_nested_resource_type_third( - self, - provider_namespace, # type: str - resource_type, # type: str - nested_resource_type_first, # type: str - nested_resource_type_second, # type: str - nested_resource_type_third, # type: str - sku, # type: str - **kwargs # type: Any - ): - # type: (...) -> "models.SkuResource" - """Gets the sku details for the given resource type and sku name. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param nested_resource_type_third: The third child resource type. - :type nested_resource_type_third: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.get_nested_resource_type_third.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'nestedResourceTypeThird': self._serialize.url("nested_resource_type_third", nested_resource_type_third, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_nested_resource_type_third.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus/{sku}'} # type: ignore - - def create_or_update_nested_resource_type_third( - self, - provider_namespace, # type: str - resource_type, # type: str - nested_resource_type_first, # type: str - nested_resource_type_second, # type: str - nested_resource_type_third, # type: str - sku, # type: str - properties, # type: "models.ResourceTypeSku" - **kwargs # type: Any - ): - # type: (...) -> "models.SkuResource" - """Creates or updates the resource type skus in the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param nested_resource_type_third: The third child resource type. - :type nested_resource_type_third: str - :param sku: The SKU. - :type sku: str - :param properties: The required body parameters supplied to the resource sku operation. - :type properties: ~provider_hub.models.ResourceTypeSku - :keyword callable cls: A custom type or function that will be passed the direct response - :return: SkuResource, or the result of cls(response) - :rtype: ~provider_hub.models.SkuResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_or_update_nested_resource_type_third.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'nestedResourceTypeThird': self._serialize.url("nested_resource_type_third", nested_resource_type_third, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'ResourceTypeSku') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('SkuResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_or_update_nested_resource_type_third.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus/{sku}'} # type: ignore - - def delete_nested_resource_type_third( - self, - provider_namespace, # type: str - resource_type, # type: str - nested_resource_type_first, # type: str - nested_resource_type_second, # type: str - nested_resource_type_third, # type: str - sku, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - """Deletes a resource type sku. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param nested_resource_type_third: The third child resource type. - :type nested_resource_type_third: str - :param sku: The SKU. - :type sku: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - # Construct URL - url = self.delete_nested_resource_type_third.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'nestedResourceTypeThird': self._serialize.url("nested_resource_type_third", nested_resource_type_third, 'str'), - 'sku': self._serialize.url("sku", sku, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - delete_nested_resource_type_third.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus/{sku}'} # type: ignore - - def list_by_resource_type_registrations( - self, - provider_namespace, # type: str - resource_type, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["models.SkuResourceArrayResponseWithContinuation"] - """Gets the list of skus for the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either SkuResourceArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~provider_hub.models.SkuResourceArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResourceArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_resource_type_registrations.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - url = self.constructResourceTypeUrl(url, resource_type) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('SkuResourceArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_by_resource_type_registrations.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/'} # type: ignore - - def list_by_resource_type_registrations_nested_resource_type_first( - self, - provider_namespace, # type: str - resource_type, # type: str - nested_resource_type_first, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["models.SkuResourceArrayResponseWithContinuation"] - """Gets the list of skus for the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either SkuResourceArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~provider_hub.models.SkuResourceArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResourceArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_resource_type_registrations_nested_resource_type_first.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('SkuResourceArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_by_resource_type_registrations_nested_resource_type_first.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/skus'} # type: ignore - - def list_by_resource_type_registrations_nested_resource_type_second( - self, - provider_namespace, # type: str - resource_type, # type: str - nested_resource_type_first, # type: str - nested_resource_type_second, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["models.SkuResourceArrayResponseWithContinuation"] - """Gets the list of skus for the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either SkuResourceArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~provider_hub.models.SkuResourceArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResourceArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_resource_type_registrations_nested_resource_type_second.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('SkuResourceArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_by_resource_type_registrations_nested_resource_type_second.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/skus'} # type: ignore - - def list_by_resource_type_registrations_nested_resource_type_third( - self, - provider_namespace, # type: str - resource_type, # type: str - nested_resource_type_first, # type: str - nested_resource_type_second, # type: str - nested_resource_type_third, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["models.SkuResourceArrayResponseWithContinuation"] - """Gets the list of skus for the given resource type. - - :param provider_namespace: The name of the resource provider hosted within ProviderHub. - :type provider_namespace: str - :param resource_type: The resource type. - :type resource_type: str - :param nested_resource_type_first: The first child resource type. - :type nested_resource_type_first: str - :param nested_resource_type_second: The second child resource type. - :type nested_resource_type_second: str - :param nested_resource_type_third: The third child resource type. - :type nested_resource_type_third: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either SkuResourceArrayResponseWithContinuation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~provider_hub.models.SkuResourceArrayResponseWithContinuation] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuResourceArrayResponseWithContinuation"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-20" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_resource_type_registrations_nested_resource_type_third.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'providerNamespace': self._serialize.url("provider_namespace", provider_namespace, 'str'), - 'resourceType': self._serialize.url("resource_type", resource_type, 'str'), - 'nestedResourceTypeFirst': self._serialize.url("nested_resource_type_first", nested_resource_type_first, 'str'), - 'nestedResourceTypeSecond': self._serialize.url("nested_resource_type_second", nested_resource_type_second, 'str'), - 'nestedResourceTypeThird': self._serialize.url("nested_resource_type_third", nested_resource_type_third, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('SkuResourceArrayResponseWithContinuation', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_by_resource_type_registrations_nested_resource_type_third.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/resourcetypeRegistrations/{resourceType}/resourcetypeRegistrations/{nestedResourceTypeFirst}/resourcetypeRegistrations/{nestedResourceTypeSecond}/resourcetypeRegistrations/{nestedResourceTypeThird}/skus'} # type: ignore - - def constructResourceTypeUrl( - self, - url, - resourceName, - sku=None - ): - # type: str - resourceName = resourceName.split("/") - resourceTypeUrlSegment = "/resourcetypeRegistrations/".join(resourceName) - skuUrlSegment = f"/skus/{sku}" if sku else "/skus" - - return url + resourceTypeUrlSegment + skuUrlSegment diff --git a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/py.typed b/src/providerhub/azext_providerhub/vendored_sdks/providerhub/py.typed deleted file mode 100644 index e5aff4f83af..00000000000 --- a/src/providerhub/azext_providerhub/vendored_sdks/providerhub/py.typed +++ /dev/null @@ -1 +0,0 @@ -# Marker file for PEP 561. \ No newline at end of file diff --git a/src/providerhub/gen.zip b/src/providerhub/gen.zip deleted file mode 100644 index 4a2014133c779077d7fd48f4b7838ca03ba86749..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 53763 zcmeG_%Wfpeag^3J1fC494+eZtqW3^@!0w)*Ru(i8jh*E@cCb5KisV=lW(MVAcXqSH z?ygoEz^X zLgOTUJMi)MTYBja#{=rc2_46+@zp1!xv-!0Psm<4zKVkWX+kzTTjW*HiNZMSC2&0& zhmoHI;iyHP37%E}4vga*~`<^6KTWxZEN~l*%v3WkP}x zgMml=740M>3d4l-!U!-8I3|FA??c|}`X`LME+u_BqCg6CbaIs=ar1DCJeefnA+QPP z1;7^^FpQA8y;FbGr!g7&SES=lVhY$hVH9E4C-l@m55kD}qb|7!;PFl<8H9i*=rI~Q zh%Sf$O+;n)h;?DSZ?3Pe_o8q}S}hU`f!7I1qAPFck0$;A?tMa@{o={1gRh=FChfgR zoP@)}a4-lbN!%V!lENi#FQUMpucO!FF8p5qEQhK~djyro>o6={#L;*i)?^cvY@0;= zZPGcVowIm%KOE7m$Lj=sfEoNEu!7)qei?72*LTUAcMKHKv^vA?=7#^C%kJ%2Jt6gyD3W@QM#A|M{umLToc znJL(LxbyIW(z8bo>uG6$rEMJlg=?PC02F!a!~zsKyId2nOup6~|3!8?F#tt&-=GBm zmt{&fkCJe#x0Xe2fmbnJy16WJ3p<_JUTPYu^Z%lhvr7jwp;Nql$}Zb+m!ojbU*0Wg zUTJu>ASYl}Chvzy&=-KXyyqp`@HDtlE#PO zmFdy1bq=qc5NmlBrv76#`5Et;r@=fkRB1Sw5cA!uvM@}IcU}^8C(b;FQ~^1eLi63L z0&+K*?&mCqYK>CkZv^nlrh)vUsho8*A>;{Ad0RF$+?o;a^%#Ra5O?CULiW{a8VE&e zS7u*!Xg2dpFxVMan1#;1dUXwfq~CKg@MU)p^K-Rs&bZS~M|O6lbSO(=Jx4=Vc1X&G z>Js!xpoH*qdyI>UJq!j0qgVbY=s^rk@A0zmSunz&C4*YJubXz*6dlg&;@0wxrkIn) znQ1w9MBLaNdqj_p`E#HN*Ky;my<=s^1<%zP)KSb@bgs^x#?W=gANwc4AV>n(ZlJv$ z>@e&$V9zAHXpmn|!o+U|-QC9C(Sf(~@X-&O58?kuI>+7~&#M=R>PO8-I|fv+)d9On zqomn^z`5T^nsn#~1JXF9gYl4lhF2k+-s*%y9U-!H1p5sTK5ycl4{XtpMjD4Fu;&s^ zBDf+XY=tJF{xHLF90h)#>KaP^Cs$+W^yMg_(a0Z^f}YbT2B(2Ec3KZh0ZaE6YS{(x z?5gvK;X>^l^J+;vud3`$R!X94Rn-lvBnfN*bogAR8KQ(XXz8U=-Y;40K<(A{DkAuJC z9zYD=9>0NqFiPEg_&4Ao!QldW9?%Q8_--5i8H79rEkS<{OC0k02yWr+XTD}-D(~*Y zQH@jbY!bnk5(p#u>q!vNZVygjOyGIoIwRqy=>^go`2D{{=Hy;lzu%`(Gal2947$ez_|!~YrFd7vq6Wz~Z1%zd9PMdNqF}di znk3`+al73Q5?Cgp@7R9wzIc!Wp1$qBhkwy(Cr#`QDTv!AgYcxCvV%jkQ!liwkSMQ8 zwSdJQ_=!8rPe84%5l&xHxjT z1!mlK!!S78y(K4sr+a$gt3T{hRZ*4O9{b1<}J{R)SszJ;cpwk1+ns19D z9G?bJr5=2`(gShEo4_G&twJTpNS!`04&QNg!Z_U#PP@hvqi8goIEiR6mh25WFw}X5 z?$@1M@$o&bgb?cBQAO?=vdPWKU_~1A1A$Ml#f7b5)ZFXYxLn9pQ?OaeeD1noF{cyg z(&Vf)vT3Ip?~QZw9+}x`t57jjoArfFO*gDAe0se7+M-oEPP|6zm`Lu6(y3c+#YkUl zUMx6?LEyYUSFk~|SQe8fi)-*@bAClQ!}?j8{0e4HkM8H?3u=6HH_K@QleGim7ERyv zV@b2iicdD>1H#SPdAY*U%KTQ%!7ioFjD5M#-7J*vh|sm#bBm_Z`nr>DcCnT4(~@_n za53y?2Medg8`-MTOs7c89I@wV?$(|qISM!PWEt1Bs(*_n%bO8i)wIbu>Sp3}AU&-T z+^X60X4If!9_5m8Gn3vWEzqjdEt*c}Ri*q{!(0$4^l%^O8W1e(~9nora20;tuA9v404x*z}`p0m&0#q#c*%9M|h>rb; zMrlqXC2N(yZO%eew-rY0>b61Ozp_m+LjvC+uieawzG7c95s29oYLmx}cV)Bui=?`f zp>rUxVvxCiD^{7CTRy)$G@TyGsC?e6ffa!nxFtcw_w6bP66e3=D`=H1#A(Tyj;&?#%eOl5J8#Ga|B-tB9s*PN`WMpb`x8(_kgQ5(=!Oh%0}~hs{8%1)RbD zpi+hz?59?+R(wIE2w1Z1Y~7h22VWS?iG;bsRyeGsiGX$jLP$IDAf%meEY%*x!$Ivx z<*;_da#%sGO!K(O6DG=Jk32PDli=k)?eAL?ywlZ{quV=GN|I65aWO(tXM?oWqj zmD_R?G))aT_T!kRO$1Dx0fn@cCAf+JMr`PIcKnz=Cc+V&q6=6vkW?2Dsn3+%Wh^)Q zpAt}J!F=;>%h(2obG;U*wiPXk-XOPyH5*w_R_td6()4M=6pj^p;X|R~Y0M6rkr^_p zCoW@J%s<*};ENuO?TW-oAZgGuFNO@Z@Z$D4-F@y4V!FkLUtaiTstnw|QJM_m)X}st zprbyRkI%L?w#lPfPi`en={y;ak}E2cfg7G7FO&?}ij<<`T%m~4{}Xv8D&X}Vs8MP2 z529~s(5&i)7Od0vhz&K-e?>z2mXcXgCNpu%N{%H?rWLnK+Rxj+g~&>Jw~$-romTKS z1FRBg2C3OPP(+_WYQoD?kQTf^gb1d0Y1xL4#bcT=aHn`K6wD>Iz+fpmn-PXwK{y+6 zAe@abtP~qN=72Uj!y#>mWG6!O~#Spt3GI%4C^{1@;n>_HNehj}JoL%5wsh5jq*W(GK6x%eQ-v%#w(A#QBY(+eB z;zhU?N8XySEbW^g1krxl z3odszApDDNlQ8S>Qm+@YVgpLsjW>^f^lqD+(W~8!s1L3J#CZV=q-60B8@tGTWn?QN zRJIcY|5H9k{TypmSDp(303=(KRnVqf$;kU+&9n(moo#~9wSPO@`_F& zAE4K7K@EZr*D4&`l0Sa|e@zu*Xq(|-e?#$DQ{&Nk;1CarC671ij5nubs}8$;o_81`G6aR*}A zq`{LvQON6dG&zYoQ7~p{>2)oYXU>w-$wYIzjRw>gOta4I@(gpYj~Ya2*9Ctf7_r>< zyN!07@3Z}ZeJ#EPnv&!N-Rri9F0+77+{PrCZQ)+Tx#VfjkXc_qo^ND2E3_B4ClCsw z-8jLLlg(j&n9$2HWY=pm#zI^uE_U4Zqv0SJozZUo3AD?uJU~;+ntVpR+AI+)C{n0r ziMM0V6v|TkY1xr~{9?yhiJNM646)2)Lr6rYSVDs3%c)w9{k|cLxcp)-H)C}S&f#n} z=N8GMuIrc|i0bh^hfZXk2z7FB=T4dj0CybPMu5_!jQK}X`ODEda?|r!zfwA~;c z5Bw`^#8TdZyC8fLyapctF3v_>A{`$9Ks1upw9yL+`xR(QBqSDjX4(BQk1aM4MlWqK zMK6LCJBDilP1;O86nwviA8jIB(bWRyyPQU0d?Wk1xLP@GbjzKE%y=Y{c4t>gZD1%y z@AO-|Zg^B?aHlOfIFTpvtPloWPkl@at(4{Cf%46e|~SRUsn!`e^6b z>n8^~Z1FF-x`x;D{b@<=89|{st~okKYj;6{ zIH5<V$dOko0m@gf(syTy&b4rb!#!4!BNg6VCQ*VMcj!{-D*m&1`)I*S^8MY4n9zlg> z(9Y%j+&Vd6G_KB}5WyIYcpUmtf(ngz+(oVqjgwdE7Z?Fb<67d`G#qy7AP71%Jf7c6 zs2&G+(mc<=dS>aUq)v){eSoi}IE^JhhvpDI+=NQF30B0Fb?0(n{9Z&UJR%0e;RD69 zF>sGz`J==ib^S=h@u5s`l-@apKOe#0*Vo%Dq>tD%fpkOyFKrBi$uR4n1Bak^p*hx+ zy^--!ba{Ds$vD2)!HOy)?AIG&^x z81^FYl<3#dYxed{?F@-r5A&}_Epw%X4{h{BwF%AYCrN}pR{9LbprJ6yebncwq>)^` z@^A6ob%oZBi&^qUu0{rXKj6NOjEX#(d|>2XT3rnc)Q80ta9WM8yEwiu!hck^mesO{ z&XQOD4jj}xTWfoz`1p1?6kG^mRoCh)-qpWOhXaR&-^2)-7Il@wW|s9-wu_q+cIs{w z7n2LCVzw|J?+&^A>e^ z7W=N6(s5(NWdz2s5wjqXY0=DLXYYmVE9PYsh07Sj9TB}&hi=gnTi<%58;@v7O7|GS zq`Eydk2d^9b`3S29?~+$CeJjFr)}}`@;Z?mh0Fb>v*4!7Z9ZZ$^Yw(<$eu%L&zi z47I9ot7g@kQHF~7l}pCu411S!L90}^Xquf@rPQ>IUvB@`FMspbYisz?*2GeCDB==I zNn#nVYGT3Bi7q+0x=;BOS2eM4O;B0%qnL7vZ;#e)hH=Q+jbtw?rgnCS?() zRW+w(EsaPC1}l3~(%woPOWIrNC$8!(A2tKEt3|}o+SMZBu%Z@`k|bI&5J-a+X9Zx% z=5wWTmE+(`oH>y&m(~i0l|CTF2xuoDgtQY6LfQ$ZhT3sZJ5o8U9kCo%kSo(s-|f0q ze7j_^)vfe6k70E&Q;jPHouSfI3d2(5vsY|86L5!yGD$191E&2rrIJUXC0d19+M#M& zwbT2VGc~oQwbs%s-k5oO zN!PaG#UW)-W{papDz8yllNuwqxLC0o_R?$DR3kIfJ@>JgLkU$m!1e+}XnXM?w7u|ZswxM!C!NFF6VKr* z$v4(J6OKDp^1&6tx25V?KFu}cv4&D-tWp{rdG!jnpvo72Yl4t#C{`l=z8i(r(xlo= zUQ)!qrrL~k+(dVyFoNnNERnU^r?*o)$Rha3e@_>AgBEqlyeW%S#Hla#Ce&W^Ua#ca zcfR|VYwN6l+sA+S=4UUz`TcJ{{$gznKUgVE{h2E5_7>MJ@mpRu?X40LgSu%4U#iGI z+JErJ-$BVY{NNU1_Vf49T?KON$+V%E??_j=F6)T;Ss}Y(s|;#w4GY=vpFf9R{{XF~ z$b%Yl+2diaq6PlO!gl-z+y95QJ>y*|7A$nfe-O+6lwgr%?^KeCh3^EqwY7&Qx<}$9 m8Oq=lpSQRpoFPyCy%Kr3IREs|5ZU+Ozkh`CgTMH1{PzDHITl+0 diff --git a/src/providerhub/setup.py b/src/providerhub/setup.py index 998a48e5c8c..f463507e317 100644 --- a/src/providerhub/setup.py +++ b/src/providerhub/setup.py @@ -10,11 +10,7 @@ from setuptools import setup, find_packages # HISTORY.rst entry. -VERSION = '0.2.0' -try: - from azext_providerhub.manual.version import VERSION -except ImportError: - pass +VERSION = '1.0.0b1' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers @@ -32,11 +28,6 @@ DEPENDENCIES = [] -try: - from azext_providerhub.manual.dependency import DEPENDENCIES -except ImportError: - pass - with open('README.md', 'r', encoding='utf-8') as f: README = f.read() with open('HISTORY.rst', 'r', encoding='utf-8') as f: