From 2a7108c7433bb72ec9c1034235ed5b868c53b42a Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 22 Oct 2018 13:17:44 -0700 Subject: [PATCH 1/9] [AutoPR servicefabricmesh/resource-manager] Swagger specification and examples for Service Fabric Mesh 2018-09-01-preview release. (#3660) * Generated from 45861eac4a32b399bec385541d6fb233c46e3079 # This is a combination of 2 commits. # This is the 1st commit message: Swagger specification and examples for Service Fabric Mesh 2018-09-01-preview release. # This is the commit message #2: remove template example files * Packaging update of azure-mgmt-servicefabricmesh --- azure-mgmt-servicefabricmesh/HISTORY.rst | 9 + azure-mgmt-servicefabricmesh/MANIFEST.in | 4 + azure-mgmt-servicefabricmesh/README.rst | 49 +++ .../azure/__init__.py | 1 + .../azure/mgmt/__init__.py | 1 + .../azure/mgmt/servicefabricmesh/__init__.py | 18 + .../mgmt/servicefabricmesh/models/__init__.py | 277 +++++++++++++ .../add_remove_replica_scaling_mechanism.py | 53 +++ ...dd_remove_replica_scaling_mechanism_py3.py | 53 +++ .../models/application_properties.py | 85 ++++ .../models/application_properties_py3.py | 85 ++++ .../application_resource_description.py | 113 +++++ .../application_resource_description_paged.py | 27 ++ .../application_resource_description_py3.py | 113 +++++ .../models/application_scoped_volume.py | 49 +++ ...ation_scoped_volume_creation_parameters.py | 46 +++ ...n_scoped_volume_creation_parameters_py3.py | 46 +++ ...n_parameters_service_fabric_volume_disk.py | 44 ++ ...rameters_service_fabric_volume_disk_py3.py | 44 ++ .../models/application_scoped_volume_py3.py | 49 +++ .../models/auto_scaling_mechanism.py | 42 ++ .../models/auto_scaling_mechanism_py3.py | 42 ++ .../models/auto_scaling_metric.py | 42 ++ .../models/auto_scaling_metric_py3.py | 42 ++ .../models/auto_scaling_policy.py | 46 +++ .../models/auto_scaling_policy_py3.py | 46 +++ .../models/auto_scaling_resource_metric.py | 41 ++ .../auto_scaling_resource_metric_py3.py | 41 ++ .../models/auto_scaling_trigger.py | 41 ++ .../models/auto_scaling_trigger_py3.py | 41 ++ .../models/available_operation_display.py | 40 ++ .../models/available_operation_display_py3.py | 40 ++ .../models/average_load_scaling_trigger.py | 58 +++ .../average_load_scaling_trigger_py3.py | 58 +++ ...al_monitoring_pipeline_sink_description.py | 63 +++ ...onitoring_pipeline_sink_description_py3.py | 63 +++ .../container_code_package_properties.py | 112 +++++ .../container_code_package_properties_py3.py | 112 +++++ .../models/container_event.py | 48 +++ .../models/container_event_py3.py | 48 +++ .../models/container_instance_view.py | 41 ++ .../models/container_instance_view_py3.py | 41 ++ .../models/container_label.py | 39 ++ .../models/container_label_py3.py | 39 ++ .../models/container_logs.py | 28 ++ .../models/container_logs_py3.py | 28 ++ .../models/container_state.py | 44 ++ .../models/container_state_py3.py | 44 ++ .../models/diagnostics_description.py | 38 ++ .../models/diagnostics_description_py3.py | 38 ++ .../models/diagnostics_ref.py | 33 ++ .../models/diagnostics_ref_py3.py | 33 ++ .../models/diagnostics_sink_properties.py | 50 +++ .../models/diagnostics_sink_properties_py3.py | 50 +++ .../models/endpoint_properties.py | 38 ++ .../models/endpoint_properties_py3.py | 38 ++ .../servicefabricmesh/models/endpoint_ref.py | 28 ++ .../models/endpoint_ref_py3.py | 28 ++ .../models/environment_variable.py | 32 ++ .../models/environment_variable_py3.py | 32 ++ .../models/error_details_model.py | 39 ++ .../models/error_details_model_py3.py | 39 ++ .../models/error_error_model.py | 47 +++ .../models/error_error_model_py3.py | 47 +++ .../servicefabricmesh/models/error_model.py | 47 +++ .../models/error_model_py3.py | 47 +++ .../models/gateway_destination.py | 45 ++ .../models/gateway_destination_py3.py | 45 ++ .../models/gateway_properties.py | 75 ++++ .../models/gateway_properties_py3.py | 75 ++++ .../models/gateway_resource_description.py | 101 +++++ .../gateway_resource_description_paged.py | 27 ++ .../gateway_resource_description_py3.py | 101 +++++ .../servicefabricmesh/models/http_config.py | 46 +++ .../models/http_config_py3.py | 46 +++ .../models/http_host_config.py | 41 ++ .../models/http_host_config_py3.py | 41 ++ .../models/http_route_config.py | 45 ++ .../models/http_route_config_py3.py | 45 ++ .../models/http_route_match_header.py | 42 ++ .../models/http_route_match_header_py3.py | 42 ++ .../models/http_route_match_path.py | 48 +++ .../models/http_route_match_path_py3.py | 48 +++ .../models/http_route_match_rule.py | 39 ++ .../models/http_route_match_rule_py3.py | 39 ++ .../models/image_registry_credential.py | 46 +++ .../models/image_registry_credential_py3.py | 46 +++ ...nlined_value_secret_resource_properties.py | 64 +++ ...ed_value_secret_resource_properties_py3.py | 64 +++ .../local_network_resource_properties.py | 61 +++ .../local_network_resource_properties_py3.py | 61 +++ .../models/managed_proxy_resource.py | 49 +++ .../models/managed_proxy_resource_py3.py | 49 +++ .../servicefabricmesh/models/network_ref.py | 34 ++ .../models/network_ref_py3.py | 34 ++ .../models/network_resource_description.py | 59 +++ .../network_resource_description_paged.py | 27 ++ .../network_resource_description_py3.py | 59 +++ .../models/network_resource_properties.py | 65 +++ .../network_resource_properties_base.py | 50 +++ .../network_resource_properties_base_py3.py | 50 +++ .../models/network_resource_properties_py3.py | 65 +++ .../models/operation_result.py | 41 ++ .../models/operation_result_paged.py | 27 ++ .../models/operation_result_py3.py | 41 ++ .../models/provisioned_resource_properties.py | 35 ++ .../provisioned_resource_properties_py3.py | 35 ++ .../models/proxy_resource.py | 45 ++ .../models/proxy_resource_py3.py | 45 ++ .../models/reliable_collections_ref.py | 42 ++ .../models/reliable_collections_ref_py3.py | 42 ++ .../mgmt/servicefabricmesh/models/resource.py | 47 +++ .../models/resource_limits.py | 35 ++ .../models/resource_limits_py3.py | 35 ++ .../servicefabricmesh/models/resource_py3.py | 47 +++ .../models/resource_requests.py | 45 ++ .../models/resource_requests_py3.py | 45 ++ .../models/resource_requirements.py | 40 ++ .../models/resource_requirements_py3.py | 40 ++ .../models/secret_resource_description.py | 60 +++ .../secret_resource_description_paged.py | 27 ++ .../models/secret_resource_description_py3.py | 60 +++ .../models/secret_resource_properties.py | 71 ++++ .../models/secret_resource_properties_base.py | 50 +++ .../secret_resource_properties_base_py3.py | 50 +++ .../models/secret_resource_properties_py3.py | 71 ++++ .../servicefabricmesh/models/secret_value.py | 28 ++ .../models/secret_value_properties.py | 28 ++ .../models/secret_value_properties_py3.py | 28 ++ .../models/secret_value_py3.py | 28 ++ .../secret_value_resource_description.py | 63 +++ ...secret_value_resource_description_paged.py | 27 ++ .../secret_value_resource_description_py3.py | 63 +++ ...ice_fabric_mesh_management_client_enums.py | 96 +++++ .../models/service_properties.py | 71 ++++ .../models/service_properties_py3.py | 71 ++++ .../models/service_replica_description.py | 55 +++ .../service_replica_description_paged.py | 27 ++ .../models/service_replica_description_py3.py | 55 +++ .../models/service_replica_properties.py | 54 +++ .../models/service_replica_properties_py3.py | 54 +++ .../models/service_resource_description.py | 116 ++++++ .../service_resource_description_paged.py | 27 ++ .../service_resource_description_py3.py | 116 ++++++ .../mgmt/servicefabricmesh/models/setting.py | 34 ++ .../servicefabricmesh/models/setting_py3.py | 34 ++ .../servicefabricmesh/models/tcp_config.py | 46 +++ .../models/tcp_config_py3.py | 46 +++ .../models/tracked_resource.py | 56 +++ .../models/tracked_resource_py3.py | 56 +++ .../models/volume_properties.py | 62 +++ .../models/volume_properties_py3.py | 62 +++ .../volume_provider_parameters_azure_file.py | 46 +++ ...lume_provider_parameters_azure_file_py3.py | 46 +++ .../models/volume_reference.py | 45 ++ .../models/volume_reference_py3.py | 45 ++ .../models/volume_resource_description.py | 88 ++++ .../volume_resource_description_paged.py | 27 ++ .../models/volume_resource_description_py3.py | 88 ++++ .../servicefabricmesh/operations/__init__.py | 34 ++ .../operations/application_operations.py | 372 +++++++++++++++++ .../operations/code_package_operations.py | 115 ++++++ .../operations/gateway_operations.py | 372 +++++++++++++++++ .../operations/network_operations.py | 370 +++++++++++++++++ .../operations/operations.py | 99 +++++ .../operations/secret_operations.py | 367 ++++++++++++++++ .../operations/secret_value_operations.py | 390 ++++++++++++++++++ .../operations/service_operations.py | 179 ++++++++ .../operations/service_replica_operations.py | 184 +++++++++ .../operations/volume_operations.py | 367 ++++++++++++++++ .../service_fabric_mesh_management_client.py | 126 ++++++ .../azure/mgmt/servicefabricmesh/version.py | 13 + .../sdk_packaging.toml | 7 + azure-mgmt-servicefabricmesh/setup.cfg | 2 + azure-mgmt-servicefabricmesh/setup.py | 87 ++++ 175 files changed, 11062 insertions(+) create mode 100644 azure-mgmt-servicefabricmesh/HISTORY.rst create mode 100644 azure-mgmt-servicefabricmesh/MANIFEST.in create mode 100644 azure-mgmt-servicefabricmesh/README.rst create mode 100644 azure-mgmt-servicefabricmesh/azure/__init__.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/__init__.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/__init__.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/__init__.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/add_remove_replica_scaling_mechanism.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/add_remove_replica_scaling_mechanism_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_resource_description.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_resource_description_paged.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_resource_description_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_mechanism.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_mechanism_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_metric.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_metric_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_policy.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_policy_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_resource_metric.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_resource_metric_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_trigger.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_trigger_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/available_operation_display.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/available_operation_display_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/average_load_scaling_trigger.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/average_load_scaling_trigger_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/azure_internal_monitoring_pipeline_sink_description.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/azure_internal_monitoring_pipeline_sink_description_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_event.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_event_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_instance_view.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_instance_view_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_label.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_label_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_logs.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_logs_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_state.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_state_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_description.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_description_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_ref.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_ref_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_sink_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_sink_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_ref.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_ref_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/environment_variable.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/environment_variable_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_details_model.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_details_model_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_error_model.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_error_model_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_model.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_model_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_destination.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_destination_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_resource_description.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_resource_description_paged.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_resource_description_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_config.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_config_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_config.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_config_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_header.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_header_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_path.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_path_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_rule.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_rule_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/image_registry_credential.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/image_registry_credential_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/inlined_value_secret_resource_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/inlined_value_secret_resource_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/local_network_resource_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/local_network_resource_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/managed_proxy_resource.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/managed_proxy_resource_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_ref.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_ref_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_description.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_description_paged.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_description_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties_base.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties_base_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/operation_result.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/operation_result_paged.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/operation_result_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/provisioned_resource_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/provisioned_resource_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/proxy_resource.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/proxy_resource_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/reliable_collections_ref.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/reliable_collections_ref_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_limits.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_limits_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requests.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requests_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requirements.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requirements_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_description.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_description_paged.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_description_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties_base.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties_base_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_resource_description.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_resource_description_paged.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_resource_description_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_fabric_mesh_management_client_enums.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_description.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_description_paged.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_description_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_resource_description.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_resource_description_paged.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_resource_description_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/setting.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/setting_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tcp_config.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tcp_config_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tracked_resource.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tracked_resource_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_properties.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_properties_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_provider_parameters_azure_file.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_provider_parameters_azure_file_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_reference.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_reference_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_resource_description.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_resource_description_paged.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_resource_description_py3.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/__init__.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/application_operations.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/code_package_operations.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/gateway_operations.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/network_operations.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/operations.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/secret_operations.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/secret_value_operations.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/service_operations.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/service_replica_operations.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/volume_operations.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/service_fabric_mesh_management_client.py create mode 100644 azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py create mode 100644 azure-mgmt-servicefabricmesh/sdk_packaging.toml create mode 100644 azure-mgmt-servicefabricmesh/setup.cfg create mode 100644 azure-mgmt-servicefabricmesh/setup.py diff --git a/azure-mgmt-servicefabricmesh/HISTORY.rst b/azure-mgmt-servicefabricmesh/HISTORY.rst new file mode 100644 index 000000000000..8924d5d6c445 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/HISTORY.rst @@ -0,0 +1,9 @@ +.. :changelog: + +Release History +=============== + +0.1.0 (1970-01-01) +++++++++++++++++++ + +* Initial Release diff --git a/azure-mgmt-servicefabricmesh/MANIFEST.in b/azure-mgmt-servicefabricmesh/MANIFEST.in new file mode 100644 index 000000000000..6ceb27f7a96e --- /dev/null +++ b/azure-mgmt-servicefabricmesh/MANIFEST.in @@ -0,0 +1,4 @@ +include *.rst +include azure/__init__.py +include azure/mgmt/__init__.py + diff --git a/azure-mgmt-servicefabricmesh/README.rst b/azure-mgmt-servicefabricmesh/README.rst new file mode 100644 index 000000000000..45de4e6b43dd --- /dev/null +++ b/azure-mgmt-servicefabricmesh/README.rst @@ -0,0 +1,49 @@ +Microsoft Azure SDK for Python +============================== + +This is the Microsoft Azure MyService Management Client Library. + +Azure Resource Manager (ARM) is the next generation of management APIs that +replace the old Azure Service Management (ASM). + +This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. + +For the older Azure Service Management (ASM) libraries, see +`azure-servicemanagement-legacy `__ library. + +For a more complete set of Azure libraries, see the `azure `__ bundle package. + + +Compatibility +============= + +**IMPORTANT**: If you have an earlier version of the azure package +(version < 1.0), you should uninstall it before installing this package. + +You can check the version using pip: + +.. code:: shell + + pip freeze + +If you see azure==0.11.0 (or any version below 1.0), uninstall it first: + +.. code:: shell + + pip uninstall azure + + +Usage +===== + +For code examples, see `MyService Management +`__ +on docs.microsoft.com. + + +Provide Feedback +================ + +If you encounter any bugs or have suggestions, please file an issue in the +`Issues `__ +section of the project. diff --git a/azure-mgmt-servicefabricmesh/azure/__init__.py b/azure-mgmt-servicefabricmesh/azure/__init__.py new file mode 100644 index 000000000000..0260537a02bb --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/__init__.py @@ -0,0 +1 @@ +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/__init__.py b/azure-mgmt-servicefabricmesh/azure/mgmt/__init__.py new file mode 100644 index 000000000000..0260537a02bb --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/__init__.py @@ -0,0 +1 @@ +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/__init__.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/__init__.py new file mode 100644 index 000000000000..667f96329533 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/__init__.py @@ -0,0 +1,18 @@ +# 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 .service_fabric_mesh_management_client import ServiceFabricMeshManagementClient +from .version import VERSION + +__all__ = ['ServiceFabricMeshManagementClient'] + +__version__ = VERSION + diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/__init__.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/__init__.py new file mode 100644 index 000000000000..1eb94e67662a --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/__init__.py @@ -0,0 +1,277 @@ +# 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 .available_operation_display_py3 import AvailableOperationDisplay + from .error_details_model_py3 import ErrorDetailsModel + from .error_error_model_py3 import ErrorErrorModel + from .error_model_py3 import ErrorModel, ErrorModelException + from .operation_result_py3 import OperationResult + from .provisioned_resource_properties_py3 import ProvisionedResourceProperties + from .proxy_resource_py3 import ProxyResource + from .managed_proxy_resource_py3 import ManagedProxyResource + from .resource_py3 import Resource + from .tracked_resource_py3 import TrackedResource + from .secret_resource_properties_py3 import SecretResourceProperties + from .inlined_value_secret_resource_properties_py3 import InlinedValueSecretResourceProperties + from .secret_resource_properties_base_py3 import SecretResourcePropertiesBase + from .secret_resource_description_py3 import SecretResourceDescription + from .secret_value_py3 import SecretValue + from .secret_value_properties_py3 import SecretValueProperties + from .secret_value_resource_description_py3 import SecretValueResourceDescription + from .volume_provider_parameters_azure_file_py3 import VolumeProviderParametersAzureFile + from .volume_properties_py3 import VolumeProperties + from .volume_reference_py3 import VolumeReference + from .application_scoped_volume_creation_parameters_py3 import ApplicationScopedVolumeCreationParameters + from .application_scoped_volume_py3 import ApplicationScopedVolume + from .application_scoped_volume_creation_parameters_service_fabric_volume_disk_py3 import ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk + from .volume_resource_description_py3 import VolumeResourceDescription + from .network_resource_properties_py3 import NetworkResourceProperties + from .local_network_resource_properties_py3 import LocalNetworkResourceProperties + from .endpoint_ref_py3 import EndpointRef + from .network_ref_py3 import NetworkRef + from .network_resource_properties_base_py3 import NetworkResourcePropertiesBase + from .network_resource_description_py3 import NetworkResourceDescription + from .gateway_destination_py3 import GatewayDestination + from .tcp_config_py3 import TcpConfig + from .http_route_match_path_py3 import HttpRouteMatchPath + from .http_route_match_header_py3 import HttpRouteMatchHeader + from .http_route_match_rule_py3 import HttpRouteMatchRule + from .http_route_config_py3 import HttpRouteConfig + from .http_host_config_py3 import HttpHostConfig + from .http_config_py3 import HttpConfig + from .gateway_properties_py3 import GatewayProperties + from .gateway_resource_description_py3 import GatewayResourceDescription + from .image_registry_credential_py3 import ImageRegistryCredential + from .environment_variable_py3 import EnvironmentVariable + from .setting_py3 import Setting + from .container_label_py3 import ContainerLabel + from .endpoint_properties_py3 import EndpointProperties + from .resource_requests_py3 import ResourceRequests + from .resource_limits_py3 import ResourceLimits + from .resource_requirements_py3 import ResourceRequirements + from .diagnostics_ref_py3 import DiagnosticsRef + from .reliable_collections_ref_py3 import ReliableCollectionsRef + from .container_state_py3 import ContainerState + from .container_event_py3 import ContainerEvent + from .container_instance_view_py3 import ContainerInstanceView + from .container_code_package_properties_py3 import ContainerCodePackageProperties + from .auto_scaling_trigger_py3 import AutoScalingTrigger + from .auto_scaling_mechanism_py3 import AutoScalingMechanism + from .auto_scaling_policy_py3 import AutoScalingPolicy + from .service_resource_description_py3 import ServiceResourceDescription + from .diagnostics_sink_properties_py3 import DiagnosticsSinkProperties + from .diagnostics_description_py3 import DiagnosticsDescription + from .application_properties_py3 import ApplicationProperties + from .azure_internal_monitoring_pipeline_sink_description_py3 import AzureInternalMonitoringPipelineSinkDescription + from .application_resource_description_py3 import ApplicationResourceDescription + from .add_remove_replica_scaling_mechanism_py3 import AddRemoveReplicaScalingMechanism + from .auto_scaling_metric_py3 import AutoScalingMetric + from .auto_scaling_resource_metric_py3 import AutoScalingResourceMetric + from .service_properties_py3 import ServiceProperties + from .service_replica_properties_py3 import ServiceReplicaProperties + from .service_replica_description_py3 import ServiceReplicaDescription + from .average_load_scaling_trigger_py3 import AverageLoadScalingTrigger + from .container_logs_py3 import ContainerLogs +except (SyntaxError, ImportError): + from .available_operation_display import AvailableOperationDisplay + from .error_details_model import ErrorDetailsModel + from .error_error_model import ErrorErrorModel + from .error_model import ErrorModel, ErrorModelException + from .operation_result import OperationResult + from .provisioned_resource_properties import ProvisionedResourceProperties + from .proxy_resource import ProxyResource + from .managed_proxy_resource import ManagedProxyResource + from .resource import Resource + from .tracked_resource import TrackedResource + from .secret_resource_properties import SecretResourceProperties + from .inlined_value_secret_resource_properties import InlinedValueSecretResourceProperties + from .secret_resource_properties_base import SecretResourcePropertiesBase + from .secret_resource_description import SecretResourceDescription + from .secret_value import SecretValue + from .secret_value_properties import SecretValueProperties + from .secret_value_resource_description import SecretValueResourceDescription + from .volume_provider_parameters_azure_file import VolumeProviderParametersAzureFile + from .volume_properties import VolumeProperties + from .volume_reference import VolumeReference + from .application_scoped_volume_creation_parameters import ApplicationScopedVolumeCreationParameters + from .application_scoped_volume import ApplicationScopedVolume + from .application_scoped_volume_creation_parameters_service_fabric_volume_disk import ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk + from .volume_resource_description import VolumeResourceDescription + from .network_resource_properties import NetworkResourceProperties + from .local_network_resource_properties import LocalNetworkResourceProperties + from .endpoint_ref import EndpointRef + from .network_ref import NetworkRef + from .network_resource_properties_base import NetworkResourcePropertiesBase + from .network_resource_description import NetworkResourceDescription + from .gateway_destination import GatewayDestination + from .tcp_config import TcpConfig + from .http_route_match_path import HttpRouteMatchPath + from .http_route_match_header import HttpRouteMatchHeader + from .http_route_match_rule import HttpRouteMatchRule + from .http_route_config import HttpRouteConfig + from .http_host_config import HttpHostConfig + from .http_config import HttpConfig + from .gateway_properties import GatewayProperties + from .gateway_resource_description import GatewayResourceDescription + from .image_registry_credential import ImageRegistryCredential + from .environment_variable import EnvironmentVariable + from .setting import Setting + from .container_label import ContainerLabel + from .endpoint_properties import EndpointProperties + from .resource_requests import ResourceRequests + from .resource_limits import ResourceLimits + from .resource_requirements import ResourceRequirements + from .diagnostics_ref import DiagnosticsRef + from .reliable_collections_ref import ReliableCollectionsRef + from .container_state import ContainerState + from .container_event import ContainerEvent + from .container_instance_view import ContainerInstanceView + from .container_code_package_properties import ContainerCodePackageProperties + from .auto_scaling_trigger import AutoScalingTrigger + from .auto_scaling_mechanism import AutoScalingMechanism + from .auto_scaling_policy import AutoScalingPolicy + from .service_resource_description import ServiceResourceDescription + from .diagnostics_sink_properties import DiagnosticsSinkProperties + from .diagnostics_description import DiagnosticsDescription + from .application_properties import ApplicationProperties + from .azure_internal_monitoring_pipeline_sink_description import AzureInternalMonitoringPipelineSinkDescription + from .application_resource_description import ApplicationResourceDescription + from .add_remove_replica_scaling_mechanism import AddRemoveReplicaScalingMechanism + from .auto_scaling_metric import AutoScalingMetric + from .auto_scaling_resource_metric import AutoScalingResourceMetric + from .service_properties import ServiceProperties + from .service_replica_properties import ServiceReplicaProperties + from .service_replica_description import ServiceReplicaDescription + from .average_load_scaling_trigger import AverageLoadScalingTrigger + from .container_logs import ContainerLogs +from .operation_result_paged import OperationResultPaged +from .secret_resource_description_paged import SecretResourceDescriptionPaged +from .secret_value_resource_description_paged import SecretValueResourceDescriptionPaged +from .volume_resource_description_paged import VolumeResourceDescriptionPaged +from .network_resource_description_paged import NetworkResourceDescriptionPaged +from .gateway_resource_description_paged import GatewayResourceDescriptionPaged +from .application_resource_description_paged import ApplicationResourceDescriptionPaged +from .service_resource_description_paged import ServiceResourceDescriptionPaged +from .service_replica_description_paged import ServiceReplicaDescriptionPaged +from .service_fabric_mesh_management_client_enums import ( + ResourceStatus, + HealthState, + SecretKind, + VolumeProvider, + SizeTypes, + ApplicationScopedVolumeKind, + NetworkKind, + HeaderMatchType, + OperatingSystemType, + DiagnosticsSinkKind, + AutoScalingMechanismKind, + AutoScalingMetricKind, + AutoScalingResourceMetricName, + AutoScalingTriggerKind, +) + +__all__ = [ + 'AvailableOperationDisplay', + 'ErrorDetailsModel', + 'ErrorErrorModel', + 'ErrorModel', 'ErrorModelException', + 'OperationResult', + 'ProvisionedResourceProperties', + 'ProxyResource', + 'ManagedProxyResource', + 'Resource', + 'TrackedResource', + 'SecretResourceProperties', + 'InlinedValueSecretResourceProperties', + 'SecretResourcePropertiesBase', + 'SecretResourceDescription', + 'SecretValue', + 'SecretValueProperties', + 'SecretValueResourceDescription', + 'VolumeProviderParametersAzureFile', + 'VolumeProperties', + 'VolumeReference', + 'ApplicationScopedVolumeCreationParameters', + 'ApplicationScopedVolume', + 'ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk', + 'VolumeResourceDescription', + 'NetworkResourceProperties', + 'LocalNetworkResourceProperties', + 'EndpointRef', + 'NetworkRef', + 'NetworkResourcePropertiesBase', + 'NetworkResourceDescription', + 'GatewayDestination', + 'TcpConfig', + 'HttpRouteMatchPath', + 'HttpRouteMatchHeader', + 'HttpRouteMatchRule', + 'HttpRouteConfig', + 'HttpHostConfig', + 'HttpConfig', + 'GatewayProperties', + 'GatewayResourceDescription', + 'ImageRegistryCredential', + 'EnvironmentVariable', + 'Setting', + 'ContainerLabel', + 'EndpointProperties', + 'ResourceRequests', + 'ResourceLimits', + 'ResourceRequirements', + 'DiagnosticsRef', + 'ReliableCollectionsRef', + 'ContainerState', + 'ContainerEvent', + 'ContainerInstanceView', + 'ContainerCodePackageProperties', + 'AutoScalingTrigger', + 'AutoScalingMechanism', + 'AutoScalingPolicy', + 'ServiceResourceDescription', + 'DiagnosticsSinkProperties', + 'DiagnosticsDescription', + 'ApplicationProperties', + 'AzureInternalMonitoringPipelineSinkDescription', + 'ApplicationResourceDescription', + 'AddRemoveReplicaScalingMechanism', + 'AutoScalingMetric', + 'AutoScalingResourceMetric', + 'ServiceProperties', + 'ServiceReplicaProperties', + 'ServiceReplicaDescription', + 'AverageLoadScalingTrigger', + 'ContainerLogs', + 'OperationResultPaged', + 'SecretResourceDescriptionPaged', + 'SecretValueResourceDescriptionPaged', + 'VolumeResourceDescriptionPaged', + 'NetworkResourceDescriptionPaged', + 'GatewayResourceDescriptionPaged', + 'ApplicationResourceDescriptionPaged', + 'ServiceResourceDescriptionPaged', + 'ServiceReplicaDescriptionPaged', + 'ResourceStatus', + 'HealthState', + 'SecretKind', + 'VolumeProvider', + 'SizeTypes', + 'ApplicationScopedVolumeKind', + 'NetworkKind', + 'HeaderMatchType', + 'OperatingSystemType', + 'DiagnosticsSinkKind', + 'AutoScalingMechanismKind', + 'AutoScalingMetricKind', + 'AutoScalingResourceMetricName', + 'AutoScalingTriggerKind', +] diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/add_remove_replica_scaling_mechanism.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/add_remove_replica_scaling_mechanism.py new file mode 100644 index 000000000000..6332ff38fa34 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/add_remove_replica_scaling_mechanism.py @@ -0,0 +1,53 @@ +# 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 .auto_scaling_mechanism import AutoScalingMechanism + + +class AddRemoveReplicaScalingMechanism(AutoScalingMechanism): + """Describes the horizontal auto scaling mechanism that adds or removes + replicas (containers or container groups). + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param min_count: Required. Minimum number of containers (scale down won't + be performed below this number). + :type min_count: int + :param max_count: Required. Maximum number of containers (scale up won't + be performed above this number). + :type max_count: int + :param scale_increment: Required. Each time auto scaling is performed, + this number of containers will be added or removed. + :type scale_increment: int + """ + + _validation = { + 'kind': {'required': True}, + 'min_count': {'required': True}, + 'max_count': {'required': True}, + 'scale_increment': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'min_count': {'key': 'minCount', 'type': 'int'}, + 'max_count': {'key': 'maxCount', 'type': 'int'}, + 'scale_increment': {'key': 'scaleIncrement', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AddRemoveReplicaScalingMechanism, self).__init__(**kwargs) + self.min_count = kwargs.get('min_count', None) + self.max_count = kwargs.get('max_count', None) + self.scale_increment = kwargs.get('scale_increment', None) + self.kind = 'AddRemoveReplica' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/add_remove_replica_scaling_mechanism_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/add_remove_replica_scaling_mechanism_py3.py new file mode 100644 index 000000000000..ce862f88deb9 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/add_remove_replica_scaling_mechanism_py3.py @@ -0,0 +1,53 @@ +# 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 .auto_scaling_mechanism_py3 import AutoScalingMechanism + + +class AddRemoveReplicaScalingMechanism(AutoScalingMechanism): + """Describes the horizontal auto scaling mechanism that adds or removes + replicas (containers or container groups). + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param min_count: Required. Minimum number of containers (scale down won't + be performed below this number). + :type min_count: int + :param max_count: Required. Maximum number of containers (scale up won't + be performed above this number). + :type max_count: int + :param scale_increment: Required. Each time auto scaling is performed, + this number of containers will be added or removed. + :type scale_increment: int + """ + + _validation = { + 'kind': {'required': True}, + 'min_count': {'required': True}, + 'max_count': {'required': True}, + 'scale_increment': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'min_count': {'key': 'minCount', 'type': 'int'}, + 'max_count': {'key': 'maxCount', 'type': 'int'}, + 'scale_increment': {'key': 'scaleIncrement', 'type': 'int'}, + } + + def __init__(self, *, min_count: int, max_count: int, scale_increment: int, **kwargs) -> None: + super(AddRemoveReplicaScalingMechanism, self).__init__(**kwargs) + self.min_count = min_count + self.max_count = max_count + self.scale_increment = scale_increment + self.kind = 'AddRemoveReplica' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_properties.py new file mode 100644 index 000000000000..6f233daf4bd5 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_properties.py @@ -0,0 +1,85 @@ +# 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 msrest.serialization import Model + + +class ApplicationProperties(Model): + """Describes properties of a application resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param description: User readable description of the application. + :type description: str + :param services: Describes the services in the application. This property + is used to create or modify services of the application. On get only the + name of the service is returned. The service description can be obtained + by querying for the service resource. + :type services: + list[~azure.mgmt.servicefabricmesh.models.ServiceResourceDescription] + :param diagnostics: Describes the diagnostics definition and usage for an + application resource. + :type diagnostics: + ~azure.mgmt.servicefabricmesh.models.DiagnosticsDescription + :param debug_params: Internal - used by Visual Studio to setup the + debugging session on the local development environment. + :type debug_params: str + :ivar service_names: Names of the services in the application. + :vartype service_names: list[str] + :ivar status: Status of the application. Possible values include: + 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the application. + :vartype status_details: str + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or + ~azure.mgmt.servicefabricmesh.models.HealthState + :ivar unhealthy_evaluation: When the application's health state is not + 'Ok', this additional details from service fabric Health Manager for the + user to know why the application is marked unhealthy. + :vartype unhealthy_evaluation: str + """ + + _validation = { + 'service_names': {'readonly': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'services': {'key': 'services', 'type': '[ServiceResourceDescription]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsDescription'}, + 'debug_params': {'key': 'debugParams', 'type': 'str'}, + 'service_names': {'key': 'serviceNames', 'type': '[str]'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'health_state': {'key': 'healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'unhealthyEvaluation', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationProperties, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.services = kwargs.get('services', None) + self.diagnostics = kwargs.get('diagnostics', None) + self.debug_params = kwargs.get('debug_params', None) + self.service_names = None + self.status = None + self.status_details = None + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_properties_py3.py new file mode 100644 index 000000000000..da7c9d599952 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_properties_py3.py @@ -0,0 +1,85 @@ +# 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 msrest.serialization import Model + + +class ApplicationProperties(Model): + """Describes properties of a application resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param description: User readable description of the application. + :type description: str + :param services: Describes the services in the application. This property + is used to create or modify services of the application. On get only the + name of the service is returned. The service description can be obtained + by querying for the service resource. + :type services: + list[~azure.mgmt.servicefabricmesh.models.ServiceResourceDescription] + :param diagnostics: Describes the diagnostics definition and usage for an + application resource. + :type diagnostics: + ~azure.mgmt.servicefabricmesh.models.DiagnosticsDescription + :param debug_params: Internal - used by Visual Studio to setup the + debugging session on the local development environment. + :type debug_params: str + :ivar service_names: Names of the services in the application. + :vartype service_names: list[str] + :ivar status: Status of the application. Possible values include: + 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the application. + :vartype status_details: str + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or + ~azure.mgmt.servicefabricmesh.models.HealthState + :ivar unhealthy_evaluation: When the application's health state is not + 'Ok', this additional details from service fabric Health Manager for the + user to know why the application is marked unhealthy. + :vartype unhealthy_evaluation: str + """ + + _validation = { + 'service_names': {'readonly': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'services': {'key': 'services', 'type': '[ServiceResourceDescription]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsDescription'}, + 'debug_params': {'key': 'debugParams', 'type': 'str'}, + 'service_names': {'key': 'serviceNames', 'type': '[str]'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'health_state': {'key': 'healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'unhealthyEvaluation', 'type': 'str'}, + } + + def __init__(self, *, description: str=None, services=None, diagnostics=None, debug_params: str=None, **kwargs) -> None: + super(ApplicationProperties, self).__init__(**kwargs) + self.description = description + self.services = services + self.diagnostics = diagnostics + self.debug_params = debug_params + self.service_names = None + self.status = None + self.status_details = None + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_resource_description.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_resource_description.py new file mode 100644 index 000000000000..93b5ccad1c3a --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_resource_description.py @@ -0,0 +1,113 @@ +# 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 .tracked_resource import TrackedResource + + +class ApplicationResourceDescription(TrackedResource): + """This type describes an application resource. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :ivar provisioning_state: State of the resource. + :vartype provisioning_state: str + :param description: User readable description of the application. + :type description: str + :param services: Describes the services in the application. This property + is used to create or modify services of the application. On get only the + name of the service is returned. The service description can be obtained + by querying for the service resource. + :type services: + list[~azure.mgmt.servicefabricmesh.models.ServiceResourceDescription] + :param diagnostics: Describes the diagnostics definition and usage for an + application resource. + :type diagnostics: + ~azure.mgmt.servicefabricmesh.models.DiagnosticsDescription + :param debug_params: Internal - used by Visual Studio to setup the + debugging session on the local development environment. + :type debug_params: str + :ivar service_names: Names of the services in the application. + :vartype service_names: list[str] + :ivar status: Status of the application. Possible values include: + 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the application. + :vartype status_details: str + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or + ~azure.mgmt.servicefabricmesh.models.HealthState + :ivar unhealthy_evaluation: When the application's health state is not + 'Ok', this additional details from service fabric Health Manager for the + user to know why the application is marked unhealthy. + :vartype unhealthy_evaluation: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'service_names': {'readonly': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'services': {'key': 'properties.services', 'type': '[ServiceResourceDescription]'}, + 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsDescription'}, + 'debug_params': {'key': 'properties.debugParams', 'type': 'str'}, + 'service_names': {'key': 'properties.serviceNames', 'type': '[str]'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationResourceDescription, self).__init__(**kwargs) + self.provisioning_state = None + self.description = kwargs.get('description', None) + self.services = kwargs.get('services', None) + self.diagnostics = kwargs.get('diagnostics', None) + self.debug_params = kwargs.get('debug_params', None) + self.service_names = None + self.status = None + self.status_details = None + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_resource_description_paged.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_resource_description_paged.py new file mode 100644 index 000000000000..cef270543b15 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_resource_description_paged.py @@ -0,0 +1,27 @@ +# 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 msrest.paging import Paged + + +class ApplicationResourceDescriptionPaged(Paged): + """ + A paging container for iterating over a list of :class:`ApplicationResourceDescription ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ApplicationResourceDescription]'} + } + + def __init__(self, *args, **kwargs): + + super(ApplicationResourceDescriptionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_resource_description_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_resource_description_py3.py new file mode 100644 index 000000000000..9c496ceba3d9 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_resource_description_py3.py @@ -0,0 +1,113 @@ +# 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 .tracked_resource_py3 import TrackedResource + + +class ApplicationResourceDescription(TrackedResource): + """This type describes an application resource. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :ivar provisioning_state: State of the resource. + :vartype provisioning_state: str + :param description: User readable description of the application. + :type description: str + :param services: Describes the services in the application. This property + is used to create or modify services of the application. On get only the + name of the service is returned. The service description can be obtained + by querying for the service resource. + :type services: + list[~azure.mgmt.servicefabricmesh.models.ServiceResourceDescription] + :param diagnostics: Describes the diagnostics definition and usage for an + application resource. + :type diagnostics: + ~azure.mgmt.servicefabricmesh.models.DiagnosticsDescription + :param debug_params: Internal - used by Visual Studio to setup the + debugging session on the local development environment. + :type debug_params: str + :ivar service_names: Names of the services in the application. + :vartype service_names: list[str] + :ivar status: Status of the application. Possible values include: + 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the application. + :vartype status_details: str + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or + ~azure.mgmt.servicefabricmesh.models.HealthState + :ivar unhealthy_evaluation: When the application's health state is not + 'Ok', this additional details from service fabric Health Manager for the + user to know why the application is marked unhealthy. + :vartype unhealthy_evaluation: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'service_names': {'readonly': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'services': {'key': 'properties.services', 'type': '[ServiceResourceDescription]'}, + 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsDescription'}, + 'debug_params': {'key': 'properties.debugParams', 'type': 'str'}, + 'service_names': {'key': 'properties.serviceNames', 'type': '[str]'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'}, + } + + def __init__(self, *, location: str, tags=None, description: str=None, services=None, diagnostics=None, debug_params: str=None, **kwargs) -> None: + super(ApplicationResourceDescription, self).__init__(tags=tags, location=location, **kwargs) + self.provisioning_state = None + self.description = description + self.services = services + self.diagnostics = diagnostics + self.debug_params = debug_params + self.service_names = None + self.status = None + self.status_details = None + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume.py new file mode 100644 index 000000000000..652bd18ef173 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume.py @@ -0,0 +1,49 @@ +# 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 .volume_reference import VolumeReference + + +class ApplicationScopedVolume(VolumeReference): + """Describes a volume whose lifetime is scoped to the application's lifetime. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the volume being referenced. + :type name: str + :param read_only: The flag indicating whether the volume is read only. + Default is 'false'. + :type read_only: bool + :param destination_path: Required. The path within the container at which + the volume should be mounted. Only valid path characters are allowed. + :type destination_path: str + :param creation_parameters: Required. Describes parameters for creating + application-scoped volumes. + :type creation_parameters: + ~azure.mgmt.servicefabricmesh.models.ApplicationScopedVolumeCreationParameters + """ + + _validation = { + 'name': {'required': True}, + 'destination_path': {'required': True}, + 'creation_parameters': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'destination_path': {'key': 'destinationPath', 'type': 'str'}, + 'creation_parameters': {'key': 'creationParameters', 'type': 'ApplicationScopedVolumeCreationParameters'}, + } + + def __init__(self, **kwargs): + super(ApplicationScopedVolume, self).__init__(**kwargs) + self.creation_parameters = kwargs.get('creation_parameters', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters.py new file mode 100644 index 000000000000..b55aeb7bfb93 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class ApplicationScopedVolumeCreationParameters(Model): + """Describes parameters for creating application-scoped volumes. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: + ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk + + All required parameters must be populated in order to send to Azure. + + :param description: User readable description of the volume. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'ServiceFabricVolumeDisk': 'ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk'} + } + + def __init__(self, **kwargs): + super(ApplicationScopedVolumeCreationParameters, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.kind = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters_py3.py new file mode 100644 index 000000000000..27c8018f3bde --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters_py3.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class ApplicationScopedVolumeCreationParameters(Model): + """Describes parameters for creating application-scoped volumes. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: + ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk + + All required parameters must be populated in order to send to Azure. + + :param description: User readable description of the volume. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'ServiceFabricVolumeDisk': 'ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk'} + } + + def __init__(self, *, description: str=None, **kwargs) -> None: + super(ApplicationScopedVolumeCreationParameters, self).__init__(**kwargs) + self.description = description + self.kind = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk.py new file mode 100644 index 000000000000..52b8f0a5d868 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk.py @@ -0,0 +1,44 @@ +# 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 .application_scoped_volume_creation_parameters import ApplicationScopedVolumeCreationParameters + + +class ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk(ApplicationScopedVolumeCreationParameters): + """Describes parameters for creating application-scoped volumes provided by + Service Fabric Volume Disks. + + All required parameters must be populated in order to send to Azure. + + :param description: User readable description of the volume. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + :param size_disk: Required. Volume size. Possible values include: 'Small', + 'Medium', 'Large' + :type size_disk: str or ~azure.mgmt.servicefabricmesh.models.SizeTypes + """ + + _validation = { + 'kind': {'required': True}, + 'size_disk': {'required': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'size_disk': {'key': 'sizeDisk', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk, self).__init__(**kwargs) + self.size_disk = kwargs.get('size_disk', None) + self.kind = 'ServiceFabricVolumeDisk' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk_py3.py new file mode 100644 index 000000000000..47bce5419dd3 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk_py3.py @@ -0,0 +1,44 @@ +# 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 .application_scoped_volume_creation_parameters_py3 import ApplicationScopedVolumeCreationParameters + + +class ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk(ApplicationScopedVolumeCreationParameters): + """Describes parameters for creating application-scoped volumes provided by + Service Fabric Volume Disks. + + All required parameters must be populated in order to send to Azure. + + :param description: User readable description of the volume. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + :param size_disk: Required. Volume size. Possible values include: 'Small', + 'Medium', 'Large' + :type size_disk: str or ~azure.mgmt.servicefabricmesh.models.SizeTypes + """ + + _validation = { + 'kind': {'required': True}, + 'size_disk': {'required': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'size_disk': {'key': 'sizeDisk', 'type': 'str'}, + } + + def __init__(self, *, size_disk, description: str=None, **kwargs) -> None: + super(ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk, self).__init__(description=description, **kwargs) + self.size_disk = size_disk + self.kind = 'ServiceFabricVolumeDisk' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_py3.py new file mode 100644 index 000000000000..41b97286945a --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/application_scoped_volume_py3.py @@ -0,0 +1,49 @@ +# 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 .volume_reference_py3 import VolumeReference + + +class ApplicationScopedVolume(VolumeReference): + """Describes a volume whose lifetime is scoped to the application's lifetime. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the volume being referenced. + :type name: str + :param read_only: The flag indicating whether the volume is read only. + Default is 'false'. + :type read_only: bool + :param destination_path: Required. The path within the container at which + the volume should be mounted. Only valid path characters are allowed. + :type destination_path: str + :param creation_parameters: Required. Describes parameters for creating + application-scoped volumes. + :type creation_parameters: + ~azure.mgmt.servicefabricmesh.models.ApplicationScopedVolumeCreationParameters + """ + + _validation = { + 'name': {'required': True}, + 'destination_path': {'required': True}, + 'creation_parameters': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'destination_path': {'key': 'destinationPath', 'type': 'str'}, + 'creation_parameters': {'key': 'creationParameters', 'type': 'ApplicationScopedVolumeCreationParameters'}, + } + + def __init__(self, *, name: str, destination_path: str, creation_parameters, read_only: bool=None, **kwargs) -> None: + super(ApplicationScopedVolume, self).__init__(name=name, read_only=read_only, destination_path=destination_path, **kwargs) + self.creation_parameters = creation_parameters diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_mechanism.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_mechanism.py new file mode 100644 index 000000000000..474bcd9d338b --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_mechanism.py @@ -0,0 +1,42 @@ +# 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 msrest.serialization import Model + + +class AutoScalingMechanism(Model): + """Describes the mechanism for performing auto scaling operation. Derived + classes will describe the actual mechanism. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AddRemoveReplicaScalingMechanism + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AddRemoveReplica': 'AddRemoveReplicaScalingMechanism'} + } + + def __init__(self, **kwargs): + super(AutoScalingMechanism, self).__init__(**kwargs) + self.kind = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_mechanism_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_mechanism_py3.py new file mode 100644 index 000000000000..69129cbaf346 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_mechanism_py3.py @@ -0,0 +1,42 @@ +# 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 msrest.serialization import Model + + +class AutoScalingMechanism(Model): + """Describes the mechanism for performing auto scaling operation. Derived + classes will describe the actual mechanism. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AddRemoveReplicaScalingMechanism + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AddRemoveReplica': 'AddRemoveReplicaScalingMechanism'} + } + + def __init__(self, **kwargs) -> None: + super(AutoScalingMechanism, self).__init__(**kwargs) + self.kind = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_metric.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_metric.py new file mode 100644 index 000000000000..c100d3c82ae3 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_metric.py @@ -0,0 +1,42 @@ +# 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 msrest.serialization import Model + + +class AutoScalingMetric(Model): + """Describes the metric that is used for triggering auto scaling operation. + Derived classes will describe resources or metrics. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AutoScalingResourceMetric + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'Resource': 'AutoScalingResourceMetric'} + } + + def __init__(self, **kwargs): + super(AutoScalingMetric, self).__init__(**kwargs) + self.kind = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_metric_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_metric_py3.py new file mode 100644 index 000000000000..dd68e4e3447c --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_metric_py3.py @@ -0,0 +1,42 @@ +# 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 msrest.serialization import Model + + +class AutoScalingMetric(Model): + """Describes the metric that is used for triggering auto scaling operation. + Derived classes will describe resources or metrics. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AutoScalingResourceMetric + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'Resource': 'AutoScalingResourceMetric'} + } + + def __init__(self, **kwargs) -> None: + super(AutoScalingMetric, self).__init__(**kwargs) + self.kind = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_policy.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_policy.py new file mode 100644 index 000000000000..0d46f0a02f33 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_policy.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class AutoScalingPolicy(Model): + """Describes the auto scaling policy. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the auto scaling policy. + :type name: str + :param trigger: Required. Determines when auto scaling operation will be + invoked. + :type trigger: ~azure.mgmt.servicefabricmesh.models.AutoScalingTrigger + :param mechanism: Required. The mechanism that is used to scale when auto + scaling operation is invoked. + :type mechanism: ~azure.mgmt.servicefabricmesh.models.AutoScalingMechanism + """ + + _validation = { + 'name': {'required': True}, + 'trigger': {'required': True}, + 'mechanism': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'trigger': {'key': 'trigger', 'type': 'AutoScalingTrigger'}, + 'mechanism': {'key': 'mechanism', 'type': 'AutoScalingMechanism'}, + } + + def __init__(self, **kwargs): + super(AutoScalingPolicy, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.trigger = kwargs.get('trigger', None) + self.mechanism = kwargs.get('mechanism', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_policy_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_policy_py3.py new file mode 100644 index 000000000000..e29443bdf57c --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_policy_py3.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class AutoScalingPolicy(Model): + """Describes the auto scaling policy. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the auto scaling policy. + :type name: str + :param trigger: Required. Determines when auto scaling operation will be + invoked. + :type trigger: ~azure.mgmt.servicefabricmesh.models.AutoScalingTrigger + :param mechanism: Required. The mechanism that is used to scale when auto + scaling operation is invoked. + :type mechanism: ~azure.mgmt.servicefabricmesh.models.AutoScalingMechanism + """ + + _validation = { + 'name': {'required': True}, + 'trigger': {'required': True}, + 'mechanism': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'trigger': {'key': 'trigger', 'type': 'AutoScalingTrigger'}, + 'mechanism': {'key': 'mechanism', 'type': 'AutoScalingMechanism'}, + } + + def __init__(self, *, name: str, trigger, mechanism, **kwargs) -> None: + super(AutoScalingPolicy, self).__init__(**kwargs) + self.name = name + self.trigger = trigger + self.mechanism = mechanism diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_resource_metric.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_resource_metric.py new file mode 100644 index 000000000000..41fe8256d857 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_resource_metric.py @@ -0,0 +1,41 @@ +# 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 .auto_scaling_metric import AutoScalingMetric + + +class AutoScalingResourceMetric(AutoScalingMetric): + """Describes the resource that is used for triggering auto scaling. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param name: Required. Name of the resource. Possible values include: + 'cpu', 'memoryInGB' + :type name: str or + ~azure.mgmt.servicefabricmesh.models.AutoScalingResourceMetricName + """ + + _validation = { + 'kind': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AutoScalingResourceMetric, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.kind = 'Resource' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_resource_metric_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_resource_metric_py3.py new file mode 100644 index 000000000000..955985aaa64d --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_resource_metric_py3.py @@ -0,0 +1,41 @@ +# 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 .auto_scaling_metric_py3 import AutoScalingMetric + + +class AutoScalingResourceMetric(AutoScalingMetric): + """Describes the resource that is used for triggering auto scaling. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param name: Required. Name of the resource. Possible values include: + 'cpu', 'memoryInGB' + :type name: str or + ~azure.mgmt.servicefabricmesh.models.AutoScalingResourceMetricName + """ + + _validation = { + 'kind': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, name, **kwargs) -> None: + super(AutoScalingResourceMetric, self).__init__(**kwargs) + self.name = name + self.kind = 'Resource' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_trigger.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_trigger.py new file mode 100644 index 000000000000..b3754545a214 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_trigger.py @@ -0,0 +1,41 @@ +# 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 msrest.serialization import Model + + +class AutoScalingTrigger(Model): + """Describes the trigger for performing auto scaling operation. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AverageLoadScalingTrigger + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AverageLoad': 'AverageLoadScalingTrigger'} + } + + def __init__(self, **kwargs): + super(AutoScalingTrigger, self).__init__(**kwargs) + self.kind = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_trigger_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_trigger_py3.py new file mode 100644 index 000000000000..cbf43355dbd0 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/auto_scaling_trigger_py3.py @@ -0,0 +1,41 @@ +# 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 msrest.serialization import Model + + +class AutoScalingTrigger(Model): + """Describes the trigger for performing auto scaling operation. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AverageLoadScalingTrigger + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AverageLoad': 'AverageLoadScalingTrigger'} + } + + def __init__(self, **kwargs) -> None: + super(AutoScalingTrigger, self).__init__(**kwargs) + self.kind = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/available_operation_display.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/available_operation_display.py new file mode 100644 index 000000000000..a19c06e222c3 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/available_operation_display.py @@ -0,0 +1,40 @@ +# 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 msrest.serialization import Model + + +class AvailableOperationDisplay(Model): + """An operation available at the listed Azure resource provider. + + :param provider: Name of the operation provider. + :type provider: str + :param resource: Name of the resource on which the operation is available. + :type resource: str + :param operation: Name of the available operation. + :type operation: str + :param description: Description of the available operation. + :type description: str + """ + + _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(AvailableOperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/available_operation_display_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/available_operation_display_py3.py new file mode 100644 index 000000000000..214daf78744b --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/available_operation_display_py3.py @@ -0,0 +1,40 @@ +# 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 msrest.serialization import Model + + +class AvailableOperationDisplay(Model): + """An operation available at the listed Azure resource provider. + + :param provider: Name of the operation provider. + :type provider: str + :param resource: Name of the resource on which the operation is available. + :type resource: str + :param operation: Name of the available operation. + :type operation: str + :param description: Description of the available operation. + :type description: str + """ + + _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=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(AvailableOperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/average_load_scaling_trigger.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/average_load_scaling_trigger.py new file mode 100644 index 000000000000..425f73c609cd --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/average_load_scaling_trigger.py @@ -0,0 +1,58 @@ +# 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 .auto_scaling_trigger import AutoScalingTrigger + + +class AverageLoadScalingTrigger(AutoScalingTrigger): + """Describes the average load trigger used for auto scaling. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param metric: Required. Description of the metric that is used for + scaling. + :type metric: ~azure.mgmt.servicefabricmesh.models.AutoScalingMetric + :param lower_load_threshold: Required. Lower load threshold (if average + load is below this threshold, service will scale down). + :type lower_load_threshold: float + :param upper_load_threshold: Required. Upper load threshold (if average + load is above this threshold, service will scale up). + :type upper_load_threshold: float + :param scale_interval_in_seconds: Required. Scale interval that indicates + how often will this trigger be checked. + :type scale_interval_in_seconds: int + """ + + _validation = { + 'kind': {'required': True}, + 'metric': {'required': True}, + 'lower_load_threshold': {'required': True}, + 'upper_load_threshold': {'required': True}, + 'scale_interval_in_seconds': {'required': True, 'minimum': 60}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'metric': {'key': 'metric', 'type': 'AutoScalingMetric'}, + 'lower_load_threshold': {'key': 'lowerLoadThreshold', 'type': 'float'}, + 'upper_load_threshold': {'key': 'upperLoadThreshold', 'type': 'float'}, + 'scale_interval_in_seconds': {'key': 'scaleIntervalInSeconds', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AverageLoadScalingTrigger, self).__init__(**kwargs) + self.metric = kwargs.get('metric', None) + self.lower_load_threshold = kwargs.get('lower_load_threshold', None) + self.upper_load_threshold = kwargs.get('upper_load_threshold', None) + self.scale_interval_in_seconds = kwargs.get('scale_interval_in_seconds', None) + self.kind = 'AverageLoad' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/average_load_scaling_trigger_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/average_load_scaling_trigger_py3.py new file mode 100644 index 000000000000..30afdf622f39 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/average_load_scaling_trigger_py3.py @@ -0,0 +1,58 @@ +# 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 .auto_scaling_trigger_py3 import AutoScalingTrigger + + +class AverageLoadScalingTrigger(AutoScalingTrigger): + """Describes the average load trigger used for auto scaling. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param metric: Required. Description of the metric that is used for + scaling. + :type metric: ~azure.mgmt.servicefabricmesh.models.AutoScalingMetric + :param lower_load_threshold: Required. Lower load threshold (if average + load is below this threshold, service will scale down). + :type lower_load_threshold: float + :param upper_load_threshold: Required. Upper load threshold (if average + load is above this threshold, service will scale up). + :type upper_load_threshold: float + :param scale_interval_in_seconds: Required. Scale interval that indicates + how often will this trigger be checked. + :type scale_interval_in_seconds: int + """ + + _validation = { + 'kind': {'required': True}, + 'metric': {'required': True}, + 'lower_load_threshold': {'required': True}, + 'upper_load_threshold': {'required': True}, + 'scale_interval_in_seconds': {'required': True, 'minimum': 60}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'metric': {'key': 'metric', 'type': 'AutoScalingMetric'}, + 'lower_load_threshold': {'key': 'lowerLoadThreshold', 'type': 'float'}, + 'upper_load_threshold': {'key': 'upperLoadThreshold', 'type': 'float'}, + 'scale_interval_in_seconds': {'key': 'scaleIntervalInSeconds', 'type': 'int'}, + } + + def __init__(self, *, metric, lower_load_threshold: float, upper_load_threshold: float, scale_interval_in_seconds: int, **kwargs) -> None: + super(AverageLoadScalingTrigger, self).__init__(**kwargs) + self.metric = metric + self.lower_load_threshold = lower_load_threshold + self.upper_load_threshold = upper_load_threshold + self.scale_interval_in_seconds = scale_interval_in_seconds + self.kind = 'AverageLoad' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/azure_internal_monitoring_pipeline_sink_description.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/azure_internal_monitoring_pipeline_sink_description.py new file mode 100644 index 000000000000..07ac7ed6db19 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/azure_internal_monitoring_pipeline_sink_description.py @@ -0,0 +1,63 @@ +# 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 .diagnostics_sink_properties import DiagnosticsSinkProperties + + +class AzureInternalMonitoringPipelineSinkDescription(DiagnosticsSinkProperties): + """Diagnostics settings for Geneva. + + All required parameters must be populated in order to send to Azure. + + :param name: Name of the sink. This value is referenced by + DiagnosticsReferenceDescription + :type name: str + :param description: A description of the sink. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + :param account_name: Azure Internal monitoring pipeline account. + :type account_name: str + :param namespace: Azure Internal monitoring pipeline account namespace. + :type namespace: str + :param ma_config_url: Azure Internal monitoring agent configuration. + :type ma_config_url: str + :param fluentd_config_url: Azure Internal monitoring agent fluentd + configuration. + :type fluentd_config_url: object + :param auto_key_config_url: Azure Internal monitoring pipeline autokey + associated with the certificate. + :type auto_key_config_url: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'ma_config_url': {'key': 'maConfigUrl', 'type': 'str'}, + 'fluentd_config_url': {'key': 'fluentdConfigUrl', 'type': 'object'}, + 'auto_key_config_url': {'key': 'autoKeyConfigUrl', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureInternalMonitoringPipelineSinkDescription, self).__init__(**kwargs) + self.account_name = kwargs.get('account_name', None) + self.namespace = kwargs.get('namespace', None) + self.ma_config_url = kwargs.get('ma_config_url', None) + self.fluentd_config_url = kwargs.get('fluentd_config_url', None) + self.auto_key_config_url = kwargs.get('auto_key_config_url', None) + self.kind = 'AzureInternalMonitoringPipeline' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/azure_internal_monitoring_pipeline_sink_description_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/azure_internal_monitoring_pipeline_sink_description_py3.py new file mode 100644 index 000000000000..f4771409e03a --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/azure_internal_monitoring_pipeline_sink_description_py3.py @@ -0,0 +1,63 @@ +# 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 .diagnostics_sink_properties_py3 import DiagnosticsSinkProperties + + +class AzureInternalMonitoringPipelineSinkDescription(DiagnosticsSinkProperties): + """Diagnostics settings for Geneva. + + All required parameters must be populated in order to send to Azure. + + :param name: Name of the sink. This value is referenced by + DiagnosticsReferenceDescription + :type name: str + :param description: A description of the sink. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + :param account_name: Azure Internal monitoring pipeline account. + :type account_name: str + :param namespace: Azure Internal monitoring pipeline account namespace. + :type namespace: str + :param ma_config_url: Azure Internal monitoring agent configuration. + :type ma_config_url: str + :param fluentd_config_url: Azure Internal monitoring agent fluentd + configuration. + :type fluentd_config_url: object + :param auto_key_config_url: Azure Internal monitoring pipeline autokey + associated with the certificate. + :type auto_key_config_url: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'ma_config_url': {'key': 'maConfigUrl', 'type': 'str'}, + 'fluentd_config_url': {'key': 'fluentdConfigUrl', 'type': 'object'}, + 'auto_key_config_url': {'key': 'autoKeyConfigUrl', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, description: str=None, account_name: str=None, namespace: str=None, ma_config_url: str=None, fluentd_config_url=None, auto_key_config_url: str=None, **kwargs) -> None: + super(AzureInternalMonitoringPipelineSinkDescription, self).__init__(name=name, description=description, **kwargs) + self.account_name = account_name + self.namespace = namespace + self.ma_config_url = ma_config_url + self.fluentd_config_url = fluentd_config_url + self.auto_key_config_url = auto_key_config_url + self.kind = 'AzureInternalMonitoringPipeline' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties.py new file mode 100644 index 000000000000..c590dd215580 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties.py @@ -0,0 +1,112 @@ +# 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 msrest.serialization import Model + + +class ContainerCodePackageProperties(Model): + """Describes a container and its runtime properties. + + 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 name: Required. The name of the code package. + :type name: str + :param image: Required. The Container image to use. + :type image: str + :param image_registry_credential: Image registry credential. + :type image_registry_credential: + ~azure.mgmt.servicefabricmesh.models.ImageRegistryCredential + :param entrypoint: Override for the default entry point in the container. + :type entrypoint: str + :param commands: Command array to execute within the container in exec + form. + :type commands: list[str] + :param environment_variables: The environment variables to set in this + container + :type environment_variables: + list[~azure.mgmt.servicefabricmesh.models.EnvironmentVariable] + :param settings: The settings to set in this container. The setting file + path can be fetched from environment variable "Fabric_SettingPath". The + path for Windows container is "C:\\\\secrets". The path for Linux + container is "/var/secrets". + :type settings: list[~azure.mgmt.servicefabricmesh.models.Setting] + :param labels: The labels to set in this container. + :type labels: list[~azure.mgmt.servicefabricmesh.models.ContainerLabel] + :param endpoints: The endpoints exposed by this container. + :type endpoints: + list[~azure.mgmt.servicefabricmesh.models.EndpointProperties] + :param resources: Required. The resources required by this container. + :type resources: ~azure.mgmt.servicefabricmesh.models.ResourceRequirements + :param volume_refs: Volumes to be attached to the container. The lifetime + of these volumes is independent of the application's lifetime. + :type volume_refs: + list[~azure.mgmt.servicefabricmesh.models.VolumeReference] + :param volumes: Volumes to be attached to the container. The lifetime of + these volumes is scoped to the application's lifetime. + :type volumes: + list[~azure.mgmt.servicefabricmesh.models.ApplicationScopedVolume] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.mgmt.servicefabricmesh.models.DiagnosticsRef + :param reliable_collections_refs: A list of ReliableCollection resources + used by this particular code package. Please refer to + ReliablecollectionsRef for more details. + :type reliable_collections_refs: + list[~azure.mgmt.servicefabricmesh.models.ReliableCollectionsRef] + :ivar instance_view: Runtime information of a container instance. + :vartype instance_view: + ~azure.mgmt.servicefabricmesh.models.ContainerInstanceView + """ + + _validation = { + 'name': {'required': True}, + 'image': {'required': True}, + 'resources': {'required': True}, + 'instance_view': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'str'}, + 'image_registry_credential': {'key': 'imageRegistryCredential', 'type': 'ImageRegistryCredential'}, + 'entrypoint': {'key': 'entrypoint', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[str]'}, + 'environment_variables': {'key': 'environmentVariables', 'type': '[EnvironmentVariable]'}, + 'settings': {'key': 'settings', 'type': '[Setting]'}, + 'labels': {'key': 'labels', 'type': '[ContainerLabel]'}, + 'endpoints': {'key': 'endpoints', 'type': '[EndpointProperties]'}, + 'resources': {'key': 'resources', 'type': 'ResourceRequirements'}, + 'volume_refs': {'key': 'volumeRefs', 'type': '[VolumeReference]'}, + 'volumes': {'key': 'volumes', 'type': '[ApplicationScopedVolume]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + 'reliable_collections_refs': {'key': 'reliableCollectionsRefs', 'type': '[ReliableCollectionsRef]'}, + 'instance_view': {'key': 'instanceView', 'type': 'ContainerInstanceView'}, + } + + def __init__(self, **kwargs): + super(ContainerCodePackageProperties, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.image = kwargs.get('image', None) + self.image_registry_credential = kwargs.get('image_registry_credential', None) + self.entrypoint = kwargs.get('entrypoint', None) + self.commands = kwargs.get('commands', None) + self.environment_variables = kwargs.get('environment_variables', None) + self.settings = kwargs.get('settings', None) + self.labels = kwargs.get('labels', None) + self.endpoints = kwargs.get('endpoints', None) + self.resources = kwargs.get('resources', None) + self.volume_refs = kwargs.get('volume_refs', None) + self.volumes = kwargs.get('volumes', None) + self.diagnostics = kwargs.get('diagnostics', None) + self.reliable_collections_refs = kwargs.get('reliable_collections_refs', None) + self.instance_view = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties_py3.py new file mode 100644 index 000000000000..da21e8163aed --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties_py3.py @@ -0,0 +1,112 @@ +# 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 msrest.serialization import Model + + +class ContainerCodePackageProperties(Model): + """Describes a container and its runtime properties. + + 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 name: Required. The name of the code package. + :type name: str + :param image: Required. The Container image to use. + :type image: str + :param image_registry_credential: Image registry credential. + :type image_registry_credential: + ~azure.mgmt.servicefabricmesh.models.ImageRegistryCredential + :param entrypoint: Override for the default entry point in the container. + :type entrypoint: str + :param commands: Command array to execute within the container in exec + form. + :type commands: list[str] + :param environment_variables: The environment variables to set in this + container + :type environment_variables: + list[~azure.mgmt.servicefabricmesh.models.EnvironmentVariable] + :param settings: The settings to set in this container. The setting file + path can be fetched from environment variable "Fabric_SettingPath". The + path for Windows container is "C:\\\\secrets". The path for Linux + container is "/var/secrets". + :type settings: list[~azure.mgmt.servicefabricmesh.models.Setting] + :param labels: The labels to set in this container. + :type labels: list[~azure.mgmt.servicefabricmesh.models.ContainerLabel] + :param endpoints: The endpoints exposed by this container. + :type endpoints: + list[~azure.mgmt.servicefabricmesh.models.EndpointProperties] + :param resources: Required. The resources required by this container. + :type resources: ~azure.mgmt.servicefabricmesh.models.ResourceRequirements + :param volume_refs: Volumes to be attached to the container. The lifetime + of these volumes is independent of the application's lifetime. + :type volume_refs: + list[~azure.mgmt.servicefabricmesh.models.VolumeReference] + :param volumes: Volumes to be attached to the container. The lifetime of + these volumes is scoped to the application's lifetime. + :type volumes: + list[~azure.mgmt.servicefabricmesh.models.ApplicationScopedVolume] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.mgmt.servicefabricmesh.models.DiagnosticsRef + :param reliable_collections_refs: A list of ReliableCollection resources + used by this particular code package. Please refer to + ReliablecollectionsRef for more details. + :type reliable_collections_refs: + list[~azure.mgmt.servicefabricmesh.models.ReliableCollectionsRef] + :ivar instance_view: Runtime information of a container instance. + :vartype instance_view: + ~azure.mgmt.servicefabricmesh.models.ContainerInstanceView + """ + + _validation = { + 'name': {'required': True}, + 'image': {'required': True}, + 'resources': {'required': True}, + 'instance_view': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'str'}, + 'image_registry_credential': {'key': 'imageRegistryCredential', 'type': 'ImageRegistryCredential'}, + 'entrypoint': {'key': 'entrypoint', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[str]'}, + 'environment_variables': {'key': 'environmentVariables', 'type': '[EnvironmentVariable]'}, + 'settings': {'key': 'settings', 'type': '[Setting]'}, + 'labels': {'key': 'labels', 'type': '[ContainerLabel]'}, + 'endpoints': {'key': 'endpoints', 'type': '[EndpointProperties]'}, + 'resources': {'key': 'resources', 'type': 'ResourceRequirements'}, + 'volume_refs': {'key': 'volumeRefs', 'type': '[VolumeReference]'}, + 'volumes': {'key': 'volumes', 'type': '[ApplicationScopedVolume]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + 'reliable_collections_refs': {'key': 'reliableCollectionsRefs', 'type': '[ReliableCollectionsRef]'}, + 'instance_view': {'key': 'instanceView', 'type': 'ContainerInstanceView'}, + } + + def __init__(self, *, name: str, image: str, resources, image_registry_credential=None, entrypoint: str=None, commands=None, environment_variables=None, settings=None, labels=None, endpoints=None, volume_refs=None, volumes=None, diagnostics=None, reliable_collections_refs=None, **kwargs) -> None: + super(ContainerCodePackageProperties, self).__init__(**kwargs) + self.name = name + self.image = image + self.image_registry_credential = image_registry_credential + self.entrypoint = entrypoint + self.commands = commands + self.environment_variables = environment_variables + self.settings = settings + self.labels = labels + self.endpoints = endpoints + self.resources = resources + self.volume_refs = volume_refs + self.volumes = volumes + self.diagnostics = diagnostics + self.reliable_collections_refs = reliable_collections_refs + self.instance_view = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_event.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_event.py new file mode 100644 index 000000000000..36bb437c0be0 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_event.py @@ -0,0 +1,48 @@ +# 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 msrest.serialization import Model + + +class ContainerEvent(Model): + """A container event. + + :param name: The name of the container event. + :type name: str + :param count: The count of the event. + :type count: int + :param first_timestamp: Date/time of the first event. + :type first_timestamp: str + :param last_timestamp: Date/time of the last event. + :type last_timestamp: str + :param message: The event message + :type message: str + :param type: The event type. + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'first_timestamp': {'key': 'firstTimestamp', 'type': 'str'}, + 'last_timestamp': {'key': 'lastTimestamp', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerEvent, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.count = kwargs.get('count', None) + self.first_timestamp = kwargs.get('first_timestamp', None) + self.last_timestamp = kwargs.get('last_timestamp', None) + self.message = kwargs.get('message', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_event_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_event_py3.py new file mode 100644 index 000000000000..4851036a54cc --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_event_py3.py @@ -0,0 +1,48 @@ +# 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 msrest.serialization import Model + + +class ContainerEvent(Model): + """A container event. + + :param name: The name of the container event. + :type name: str + :param count: The count of the event. + :type count: int + :param first_timestamp: Date/time of the first event. + :type first_timestamp: str + :param last_timestamp: Date/time of the last event. + :type last_timestamp: str + :param message: The event message + :type message: str + :param type: The event type. + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'first_timestamp': {'key': 'firstTimestamp', 'type': 'str'}, + 'last_timestamp': {'key': 'lastTimestamp', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, count: int=None, first_timestamp: str=None, last_timestamp: str=None, message: str=None, type: str=None, **kwargs) -> None: + super(ContainerEvent, self).__init__(**kwargs) + self.name = name + self.count = count + self.first_timestamp = first_timestamp + self.last_timestamp = last_timestamp + self.message = message + self.type = type diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_instance_view.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_instance_view.py new file mode 100644 index 000000000000..6ed229dabd92 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_instance_view.py @@ -0,0 +1,41 @@ +# 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 msrest.serialization import Model + + +class ContainerInstanceView(Model): + """Runtime information of a container instance. + + :param restart_count: The number of times the container has been + restarted. + :type restart_count: int + :param current_state: Current container instance state. + :type current_state: ~azure.mgmt.servicefabricmesh.models.ContainerState + :param previous_state: Previous container instance state. + :type previous_state: ~azure.mgmt.servicefabricmesh.models.ContainerState + :param events: The events of this container instance. + :type events: list[~azure.mgmt.servicefabricmesh.models.ContainerEvent] + """ + + _attribute_map = { + 'restart_count': {'key': 'restartCount', 'type': 'int'}, + 'current_state': {'key': 'currentState', 'type': 'ContainerState'}, + 'previous_state': {'key': 'previousState', 'type': 'ContainerState'}, + 'events': {'key': 'events', 'type': '[ContainerEvent]'}, + } + + def __init__(self, **kwargs): + super(ContainerInstanceView, self).__init__(**kwargs) + self.restart_count = kwargs.get('restart_count', None) + self.current_state = kwargs.get('current_state', None) + self.previous_state = kwargs.get('previous_state', None) + self.events = kwargs.get('events', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_instance_view_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_instance_view_py3.py new file mode 100644 index 000000000000..abb2a93f48a9 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_instance_view_py3.py @@ -0,0 +1,41 @@ +# 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 msrest.serialization import Model + + +class ContainerInstanceView(Model): + """Runtime information of a container instance. + + :param restart_count: The number of times the container has been + restarted. + :type restart_count: int + :param current_state: Current container instance state. + :type current_state: ~azure.mgmt.servicefabricmesh.models.ContainerState + :param previous_state: Previous container instance state. + :type previous_state: ~azure.mgmt.servicefabricmesh.models.ContainerState + :param events: The events of this container instance. + :type events: list[~azure.mgmt.servicefabricmesh.models.ContainerEvent] + """ + + _attribute_map = { + 'restart_count': {'key': 'restartCount', 'type': 'int'}, + 'current_state': {'key': 'currentState', 'type': 'ContainerState'}, + 'previous_state': {'key': 'previousState', 'type': 'ContainerState'}, + 'events': {'key': 'events', 'type': '[ContainerEvent]'}, + } + + def __init__(self, *, restart_count: int=None, current_state=None, previous_state=None, events=None, **kwargs) -> None: + super(ContainerInstanceView, self).__init__(**kwargs) + self.restart_count = restart_count + self.current_state = current_state + self.previous_state = previous_state + self.events = events diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_label.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_label.py new file mode 100644 index 000000000000..f474f141d643 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_label.py @@ -0,0 +1,39 @@ +# 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 msrest.serialization import Model + + +class ContainerLabel(Model): + """Describes a container label. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the container label. + :type name: str + :param value: Required. The value of the container label. + :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(ContainerLabel, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_label_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_label_py3.py new file mode 100644 index 000000000000..118326393d68 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_label_py3.py @@ -0,0 +1,39 @@ +# 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 msrest.serialization import Model + + +class ContainerLabel(Model): + """Describes a container label. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the container label. + :type name: str + :param value: Required. The value of the container label. + :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) -> None: + super(ContainerLabel, self).__init__(**kwargs) + self.name = name + self.value = value diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_logs.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_logs.py new file mode 100644 index 000000000000..c228b2c9463d --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_logs.py @@ -0,0 +1,28 @@ +# 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 msrest.serialization import Model + + +class ContainerLogs(Model): + """Container logs. + + :param content: Container logs. + :type content: str + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerLogs, self).__init__(**kwargs) + self.content = kwargs.get('content', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_logs_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_logs_py3.py new file mode 100644 index 000000000000..85b6ea34d807 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_logs_py3.py @@ -0,0 +1,28 @@ +# 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 msrest.serialization import Model + + +class ContainerLogs(Model): + """Container logs. + + :param content: Container logs. + :type content: str + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + } + + def __init__(self, *, content: str=None, **kwargs) -> None: + super(ContainerLogs, self).__init__(**kwargs) + self.content = content diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_state.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_state.py new file mode 100644 index 000000000000..3e2c2bf0f367 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_state.py @@ -0,0 +1,44 @@ +# 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 msrest.serialization import Model + + +class ContainerState(Model): + """The container state. + + :param state: The state of this container + :type state: str + :param start_time: Date/time when the container state started. + :type start_time: datetime + :param exit_code: The container exit code. + :type exit_code: str + :param finish_time: Date/time when the container state finished. + :type finish_time: datetime + :param detail_status: Human-readable status of this state. + :type detail_status: str + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'exit_code': {'key': 'exitCode', 'type': 'str'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'detail_status': {'key': 'detailStatus', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerState, self).__init__(**kwargs) + self.state = kwargs.get('state', None) + self.start_time = kwargs.get('start_time', None) + self.exit_code = kwargs.get('exit_code', None) + self.finish_time = kwargs.get('finish_time', None) + self.detail_status = kwargs.get('detail_status', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_state_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_state_py3.py new file mode 100644 index 000000000000..eb2f51953faf --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_state_py3.py @@ -0,0 +1,44 @@ +# 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 msrest.serialization import Model + + +class ContainerState(Model): + """The container state. + + :param state: The state of this container + :type state: str + :param start_time: Date/time when the container state started. + :type start_time: datetime + :param exit_code: The container exit code. + :type exit_code: str + :param finish_time: Date/time when the container state finished. + :type finish_time: datetime + :param detail_status: Human-readable status of this state. + :type detail_status: str + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'exit_code': {'key': 'exitCode', 'type': 'str'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'detail_status': {'key': 'detailStatus', 'type': 'str'}, + } + + def __init__(self, *, state: str=None, start_time=None, exit_code: str=None, finish_time=None, detail_status: str=None, **kwargs) -> None: + super(ContainerState, self).__init__(**kwargs) + self.state = state + self.start_time = start_time + self.exit_code = exit_code + self.finish_time = finish_time + self.detail_status = detail_status diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_description.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_description.py new file mode 100644 index 000000000000..cc2a0ce77d1f --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_description.py @@ -0,0 +1,38 @@ +# 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 msrest.serialization import Model + + +class DiagnosticsDescription(Model): + """Describes the diagnostics options available. + + :param sinks: List of supported sinks that can be referenced. + :type sinks: + list[~azure.mgmt.servicefabricmesh.models.DiagnosticsSinkProperties] + :param enabled: Status of whether or not sinks are enabled. + :type enabled: bool + :param default_sink_refs: The sinks to be used if diagnostics is enabled. + Sink choices can be overridden at the service and code package level. + :type default_sink_refs: list[str] + """ + + _attribute_map = { + 'sinks': {'key': 'sinks', 'type': '[DiagnosticsSinkProperties]'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'default_sink_refs': {'key': 'defaultSinkRefs', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(DiagnosticsDescription, self).__init__(**kwargs) + self.sinks = kwargs.get('sinks', None) + self.enabled = kwargs.get('enabled', None) + self.default_sink_refs = kwargs.get('default_sink_refs', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_description_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_description_py3.py new file mode 100644 index 000000000000..fd5567662e66 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_description_py3.py @@ -0,0 +1,38 @@ +# 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 msrest.serialization import Model + + +class DiagnosticsDescription(Model): + """Describes the diagnostics options available. + + :param sinks: List of supported sinks that can be referenced. + :type sinks: + list[~azure.mgmt.servicefabricmesh.models.DiagnosticsSinkProperties] + :param enabled: Status of whether or not sinks are enabled. + :type enabled: bool + :param default_sink_refs: The sinks to be used if diagnostics is enabled. + Sink choices can be overridden at the service and code package level. + :type default_sink_refs: list[str] + """ + + _attribute_map = { + 'sinks': {'key': 'sinks', 'type': '[DiagnosticsSinkProperties]'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'default_sink_refs': {'key': 'defaultSinkRefs', 'type': '[str]'}, + } + + def __init__(self, *, sinks=None, enabled: bool=None, default_sink_refs=None, **kwargs) -> None: + super(DiagnosticsDescription, self).__init__(**kwargs) + self.sinks = sinks + self.enabled = enabled + self.default_sink_refs = default_sink_refs diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_ref.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_ref.py new file mode 100644 index 000000000000..3d4c803cac28 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_ref.py @@ -0,0 +1,33 @@ +# 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 msrest.serialization import Model + + +class DiagnosticsRef(Model): + """Reference to sinks in DiagnosticsDescription. + + :param enabled: Status of whether or not sinks are enabled. + :type enabled: bool + :param sink_refs: List of sinks to be used if enabled. References the list + of sinks in DiagnosticsDescription. + :type sink_refs: list[str] + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'sink_refs': {'key': 'sinkRefs', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(DiagnosticsRef, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.sink_refs = kwargs.get('sink_refs', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_ref_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_ref_py3.py new file mode 100644 index 000000000000..f11fbf2b40d2 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_ref_py3.py @@ -0,0 +1,33 @@ +# 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 msrest.serialization import Model + + +class DiagnosticsRef(Model): + """Reference to sinks in DiagnosticsDescription. + + :param enabled: Status of whether or not sinks are enabled. + :type enabled: bool + :param sink_refs: List of sinks to be used if enabled. References the list + of sinks in DiagnosticsDescription. + :type sink_refs: list[str] + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'sink_refs': {'key': 'sinkRefs', 'type': '[str]'}, + } + + def __init__(self, *, enabled: bool=None, sink_refs=None, **kwargs) -> None: + super(DiagnosticsRef, self).__init__(**kwargs) + self.enabled = enabled + self.sink_refs = sink_refs diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_sink_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_sink_properties.py new file mode 100644 index 000000000000..63da00fe00b8 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_sink_properties.py @@ -0,0 +1,50 @@ +# 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 msrest.serialization import Model + + +class DiagnosticsSinkProperties(Model): + """Properties of a DiagnosticsSink. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureInternalMonitoringPipelineSinkDescription + + All required parameters must be populated in order to send to Azure. + + :param name: Name of the sink. This value is referenced by + DiagnosticsReferenceDescription + :type name: str + :param description: A description of the sink. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AzureInternalMonitoringPipeline': 'AzureInternalMonitoringPipelineSinkDescription'} + } + + def __init__(self, **kwargs): + super(DiagnosticsSinkProperties, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.kind = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_sink_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_sink_properties_py3.py new file mode 100644 index 000000000000..123512a45456 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/diagnostics_sink_properties_py3.py @@ -0,0 +1,50 @@ +# 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 msrest.serialization import Model + + +class DiagnosticsSinkProperties(Model): + """Properties of a DiagnosticsSink. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureInternalMonitoringPipelineSinkDescription + + All required parameters must be populated in order to send to Azure. + + :param name: Name of the sink. This value is referenced by + DiagnosticsReferenceDescription + :type name: str + :param description: A description of the sink. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AzureInternalMonitoringPipeline': 'AzureInternalMonitoringPipelineSinkDescription'} + } + + def __init__(self, *, name: str=None, description: str=None, **kwargs) -> None: + super(DiagnosticsSinkProperties, self).__init__(**kwargs) + self.name = name + self.description = description + self.kind = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_properties.py new file mode 100644 index 000000000000..fe53d35ee902 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_properties.py @@ -0,0 +1,38 @@ +# 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 msrest.serialization import Model + + +class EndpointProperties(Model): + """Describes a container endpoint. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the endpoint. + :type name: str + :param port: Port used by the container. + :type port: int + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(EndpointProperties, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.port = kwargs.get('port', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_properties_py3.py new file mode 100644 index 000000000000..d61442506a61 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_properties_py3.py @@ -0,0 +1,38 @@ +# 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 msrest.serialization import Model + + +class EndpointProperties(Model): + """Describes a container endpoint. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the endpoint. + :type name: str + :param port: Port used by the container. + :type port: int + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, *, name: str, port: int=None, **kwargs) -> None: + super(EndpointProperties, self).__init__(**kwargs) + self.name = name + self.port = port diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_ref.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_ref.py new file mode 100644 index 000000000000..3740b8c79fa7 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_ref.py @@ -0,0 +1,28 @@ +# 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 msrest.serialization import Model + + +class EndpointRef(Model): + """Describes a reference to a service endpoint. + + :param name: Name of the endpoint. + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EndpointRef, self).__init__(**kwargs) + self.name = kwargs.get('name', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_ref_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_ref_py3.py new file mode 100644 index 000000000000..28999f87ccaa --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/endpoint_ref_py3.py @@ -0,0 +1,28 @@ +# 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 msrest.serialization import Model + + +class EndpointRef(Model): + """Describes a reference to a service endpoint. + + :param name: Name of the endpoint. + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, **kwargs) -> None: + super(EndpointRef, self).__init__(**kwargs) + self.name = name diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/environment_variable.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/environment_variable.py new file mode 100644 index 000000000000..0e61588e7c86 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/environment_variable.py @@ -0,0 +1,32 @@ +# 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 msrest.serialization import Model + + +class EnvironmentVariable(Model): + """Describes an environment variable for the container. + + :param name: The name of the environment variable. + :type name: str + :param value: The value of the environment variable. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EnvironmentVariable, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/environment_variable_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/environment_variable_py3.py new file mode 100644 index 000000000000..a91fdc50ebbd --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/environment_variable_py3.py @@ -0,0 +1,32 @@ +# 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 msrest.serialization import Model + + +class EnvironmentVariable(Model): + """Describes an environment variable for the container. + + :param name: The name of the environment variable. + :type name: str + :param value: The value of the environment variable. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, value: str=None, **kwargs) -> None: + super(EnvironmentVariable, self).__init__(**kwargs) + self.name = name + self.value = value diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_details_model.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_details_model.py new file mode 100644 index 000000000000..6fe8ce6b3ae9 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_details_model.py @@ -0,0 +1,39 @@ +# 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 msrest.serialization import Model + + +class ErrorDetailsModel(Model): + """Error model details information. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. + :type code: str + :param message: Required. Error message. + :type message: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ErrorDetailsModel, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_details_model_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_details_model_py3.py new file mode 100644 index 000000000000..c0af9aabfe6f --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_details_model_py3.py @@ -0,0 +1,39 @@ +# 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 msrest.serialization import Model + + +class ErrorDetailsModel(Model): + """Error model details information. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. + :type code: str + :param message: Required. Error message. + :type message: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, code: str, message: str, **kwargs) -> None: + super(ErrorDetailsModel, self).__init__(**kwargs) + self.code = code + self.message = message diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_error_model.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_error_model.py new file mode 100644 index 000000000000..ef6b7c95c988 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_error_model.py @@ -0,0 +1,47 @@ +# 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 msrest.serialization import Model + + +class ErrorErrorModel(Model): + """Error model information. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. + :type code: str + :param message: Error message. + :type message: str + :param inner_error: + :type inner_error: str + :param details: List of error message details. + :type details: + list[~azure.mgmt.servicefabricmesh.models.ErrorDetailsModel] + """ + + _validation = { + 'code': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'inner_error': {'key': 'innerError', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetailsModel]'}, + } + + def __init__(self, **kwargs): + super(ErrorErrorModel, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + self.inner_error = kwargs.get('inner_error', None) + self.details = kwargs.get('details', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_error_model_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_error_model_py3.py new file mode 100644 index 000000000000..3e674e74faf6 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_error_model_py3.py @@ -0,0 +1,47 @@ +# 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 msrest.serialization import Model + + +class ErrorErrorModel(Model): + """Error model information. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. + :type code: str + :param message: Error message. + :type message: str + :param inner_error: + :type inner_error: str + :param details: List of error message details. + :type details: + list[~azure.mgmt.servicefabricmesh.models.ErrorDetailsModel] + """ + + _validation = { + 'code': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'inner_error': {'key': 'innerError', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetailsModel]'}, + } + + def __init__(self, *, code: str, message: str=None, inner_error: str=None, details=None, **kwargs) -> None: + super(ErrorErrorModel, self).__init__(**kwargs) + self.code = code + self.message = message + self.inner_error = inner_error + self.details = details diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_model.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_model.py new file mode 100644 index 000000000000..feaa29b1f138 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_model.py @@ -0,0 +1,47 @@ +# 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 msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class ErrorModel(Model): + """The error details. + + All required parameters must be populated in order to send to Azure. + + :param error: Required. Error model information + :type error: ~azure.mgmt.servicefabricmesh.models.ErrorErrorModel + """ + + _validation = { + 'error': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorErrorModel'}, + } + + def __init__(self, **kwargs): + super(ErrorModel, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class ErrorModelException(HttpOperationError): + """Server responsed with exception of type: 'ErrorModel'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorModelException, self).__init__(deserialize, response, 'ErrorModel', *args) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_model_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_model_py3.py new file mode 100644 index 000000000000..7eeba5427f74 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/error_model_py3.py @@ -0,0 +1,47 @@ +# 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 msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class ErrorModel(Model): + """The error details. + + All required parameters must be populated in order to send to Azure. + + :param error: Required. Error model information + :type error: ~azure.mgmt.servicefabricmesh.models.ErrorErrorModel + """ + + _validation = { + 'error': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorErrorModel'}, + } + + def __init__(self, *, error, **kwargs) -> None: + super(ErrorModel, self).__init__(**kwargs) + self.error = error + + +class ErrorModelException(HttpOperationError): + """Server responsed with exception of type: 'ErrorModel'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorModelException, self).__init__(deserialize, response, 'ErrorModel', *args) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_destination.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_destination.py new file mode 100644 index 000000000000..5c2162747085 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_destination.py @@ -0,0 +1,45 @@ +# 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 msrest.serialization import Model + + +class GatewayDestination(Model): + """Describes destination endpoint for routing traffic. + + All required parameters must be populated in order to send to Azure. + + :param application_name: Required. Name of the service fabric Mesh + application. + :type application_name: str + :param service_name: Required. service that contains the endpoint. + :type service_name: str + :param endpoint_name: Required. name of the endpoint in the service. + :type endpoint_name: str + """ + + _validation = { + 'application_name': {'required': True}, + 'service_name': {'required': True}, + 'endpoint_name': {'required': True}, + } + + _attribute_map = { + 'application_name': {'key': 'applicationName', 'type': 'str'}, + 'service_name': {'key': 'serviceName', 'type': 'str'}, + 'endpoint_name': {'key': 'endpointName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GatewayDestination, self).__init__(**kwargs) + self.application_name = kwargs.get('application_name', None) + self.service_name = kwargs.get('service_name', None) + self.endpoint_name = kwargs.get('endpoint_name', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_destination_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_destination_py3.py new file mode 100644 index 000000000000..7819e3ecd02f --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_destination_py3.py @@ -0,0 +1,45 @@ +# 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 msrest.serialization import Model + + +class GatewayDestination(Model): + """Describes destination endpoint for routing traffic. + + All required parameters must be populated in order to send to Azure. + + :param application_name: Required. Name of the service fabric Mesh + application. + :type application_name: str + :param service_name: Required. service that contains the endpoint. + :type service_name: str + :param endpoint_name: Required. name of the endpoint in the service. + :type endpoint_name: str + """ + + _validation = { + 'application_name': {'required': True}, + 'service_name': {'required': True}, + 'endpoint_name': {'required': True}, + } + + _attribute_map = { + 'application_name': {'key': 'applicationName', 'type': 'str'}, + 'service_name': {'key': 'serviceName', 'type': 'str'}, + 'endpoint_name': {'key': 'endpointName', 'type': 'str'}, + } + + def __init__(self, *, application_name: str, service_name: str, endpoint_name: str, **kwargs) -> None: + super(GatewayDestination, self).__init__(**kwargs) + self.application_name = application_name + self.service_name = service_name + self.endpoint_name = endpoint_name diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_properties.py new file mode 100644 index 000000000000..880995a98a03 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_properties.py @@ -0,0 +1,75 @@ +# 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 msrest.serialization import Model + + +class GatewayProperties(Model): + """Describes properties of a gateway resource. + + 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 description: User readable description of the gateway. + :type description: str + :param source_network: Required. Network the gateway should listen on for + requests. + :type source_network: ~azure.mgmt.servicefabricmesh.models.NetworkRef + :param destination_network: Required. Network that the Application is + using. + :type destination_network: ~azure.mgmt.servicefabricmesh.models.NetworkRef + :param tcp: Configuration for tcp connectivity for this gateway. + :type tcp: list[~azure.mgmt.servicefabricmesh.models.TcpConfig] + :param http: Configuration for http connectivity for this gateway. + :type http: list[~azure.mgmt.servicefabricmesh.models.HttpConfig] + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the gateway. + :vartype status_details: str + :ivar ip_address: IP address of the gateway. This is populated in the + response and is ignored for incoming requests. + :vartype ip_address: str + """ + + _validation = { + 'source_network': {'required': True}, + 'destination_network': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'ip_address': {'readonly': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'source_network': {'key': 'sourceNetwork', 'type': 'NetworkRef'}, + 'destination_network': {'key': 'destinationNetwork', 'type': 'NetworkRef'}, + 'tcp': {'key': 'tcp', 'type': '[TcpConfig]'}, + 'http': {'key': 'http', 'type': '[HttpConfig]'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GatewayProperties, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.source_network = kwargs.get('source_network', None) + self.destination_network = kwargs.get('destination_network', None) + self.tcp = kwargs.get('tcp', None) + self.http = kwargs.get('http', None) + self.status = None + self.status_details = None + self.ip_address = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_properties_py3.py new file mode 100644 index 000000000000..092ea364e896 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_properties_py3.py @@ -0,0 +1,75 @@ +# 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 msrest.serialization import Model + + +class GatewayProperties(Model): + """Describes properties of a gateway resource. + + 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 description: User readable description of the gateway. + :type description: str + :param source_network: Required. Network the gateway should listen on for + requests. + :type source_network: ~azure.mgmt.servicefabricmesh.models.NetworkRef + :param destination_network: Required. Network that the Application is + using. + :type destination_network: ~azure.mgmt.servicefabricmesh.models.NetworkRef + :param tcp: Configuration for tcp connectivity for this gateway. + :type tcp: list[~azure.mgmt.servicefabricmesh.models.TcpConfig] + :param http: Configuration for http connectivity for this gateway. + :type http: list[~azure.mgmt.servicefabricmesh.models.HttpConfig] + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the gateway. + :vartype status_details: str + :ivar ip_address: IP address of the gateway. This is populated in the + response and is ignored for incoming requests. + :vartype ip_address: str + """ + + _validation = { + 'source_network': {'required': True}, + 'destination_network': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'ip_address': {'readonly': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'source_network': {'key': 'sourceNetwork', 'type': 'NetworkRef'}, + 'destination_network': {'key': 'destinationNetwork', 'type': 'NetworkRef'}, + 'tcp': {'key': 'tcp', 'type': '[TcpConfig]'}, + 'http': {'key': 'http', 'type': '[HttpConfig]'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + } + + def __init__(self, *, source_network, destination_network, description: str=None, tcp=None, http=None, **kwargs) -> None: + super(GatewayProperties, self).__init__(**kwargs) + self.description = description + self.source_network = source_network + self.destination_network = destination_network + self.tcp = tcp + self.http = http + self.status = None + self.status_details = None + self.ip_address = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_resource_description.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_resource_description.py new file mode 100644 index 000000000000..57642c376092 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_resource_description.py @@ -0,0 +1,101 @@ +# 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 .tracked_resource import TrackedResource + + +class GatewayResourceDescription(TrackedResource): + """This type describes a gateway resource. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :ivar provisioning_state: State of the resource. + :vartype provisioning_state: str + :param description: User readable description of the gateway. + :type description: str + :param source_network: Required. Network the gateway should listen on for + requests. + :type source_network: ~azure.mgmt.servicefabricmesh.models.NetworkRef + :param destination_network: Required. Network that the Application is + using. + :type destination_network: ~azure.mgmt.servicefabricmesh.models.NetworkRef + :param tcp: Configuration for tcp connectivity for this gateway. + :type tcp: list[~azure.mgmt.servicefabricmesh.models.TcpConfig] + :param http: Configuration for http connectivity for this gateway. + :type http: list[~azure.mgmt.servicefabricmesh.models.HttpConfig] + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the gateway. + :vartype status_details: str + :ivar ip_address: IP address of the gateway. This is populated in the + response and is ignored for incoming requests. + :vartype ip_address: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'source_network': {'required': True}, + 'destination_network': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'ip_address': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'source_network': {'key': 'properties.sourceNetwork', 'type': 'NetworkRef'}, + 'destination_network': {'key': 'properties.destinationNetwork', 'type': 'NetworkRef'}, + 'tcp': {'key': 'properties.tcp', 'type': '[TcpConfig]'}, + 'http': {'key': 'properties.http', 'type': '[HttpConfig]'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'ip_address': {'key': 'properties.ipAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GatewayResourceDescription, self).__init__(**kwargs) + self.provisioning_state = None + self.description = kwargs.get('description', None) + self.source_network = kwargs.get('source_network', None) + self.destination_network = kwargs.get('destination_network', None) + self.tcp = kwargs.get('tcp', None) + self.http = kwargs.get('http', None) + self.status = None + self.status_details = None + self.ip_address = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_resource_description_paged.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_resource_description_paged.py new file mode 100644 index 000000000000..16a403478c9b --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_resource_description_paged.py @@ -0,0 +1,27 @@ +# 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 msrest.paging import Paged + + +class GatewayResourceDescriptionPaged(Paged): + """ + A paging container for iterating over a list of :class:`GatewayResourceDescription ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[GatewayResourceDescription]'} + } + + def __init__(self, *args, **kwargs): + + super(GatewayResourceDescriptionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_resource_description_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_resource_description_py3.py new file mode 100644 index 000000000000..c484b1f52322 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/gateway_resource_description_py3.py @@ -0,0 +1,101 @@ +# 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 .tracked_resource_py3 import TrackedResource + + +class GatewayResourceDescription(TrackedResource): + """This type describes a gateway resource. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :ivar provisioning_state: State of the resource. + :vartype provisioning_state: str + :param description: User readable description of the gateway. + :type description: str + :param source_network: Required. Network the gateway should listen on for + requests. + :type source_network: ~azure.mgmt.servicefabricmesh.models.NetworkRef + :param destination_network: Required. Network that the Application is + using. + :type destination_network: ~azure.mgmt.servicefabricmesh.models.NetworkRef + :param tcp: Configuration for tcp connectivity for this gateway. + :type tcp: list[~azure.mgmt.servicefabricmesh.models.TcpConfig] + :param http: Configuration for http connectivity for this gateway. + :type http: list[~azure.mgmt.servicefabricmesh.models.HttpConfig] + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the gateway. + :vartype status_details: str + :ivar ip_address: IP address of the gateway. This is populated in the + response and is ignored for incoming requests. + :vartype ip_address: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'source_network': {'required': True}, + 'destination_network': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'ip_address': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'source_network': {'key': 'properties.sourceNetwork', 'type': 'NetworkRef'}, + 'destination_network': {'key': 'properties.destinationNetwork', 'type': 'NetworkRef'}, + 'tcp': {'key': 'properties.tcp', 'type': '[TcpConfig]'}, + 'http': {'key': 'properties.http', 'type': '[HttpConfig]'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'ip_address': {'key': 'properties.ipAddress', 'type': 'str'}, + } + + def __init__(self, *, location: str, source_network, destination_network, tags=None, description: str=None, tcp=None, http=None, **kwargs) -> None: + super(GatewayResourceDescription, self).__init__(tags=tags, location=location, **kwargs) + self.provisioning_state = None + self.description = description + self.source_network = source_network + self.destination_network = destination_network + self.tcp = tcp + self.http = http + self.status = None + self.status_details = None + self.ip_address = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_config.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_config.py new file mode 100644 index 000000000000..6a1e02549c98 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_config.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class HttpConfig(Model): + """Describes the http configuration for external connectivity for this + network. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. http gateway config name. + :type name: str + :param port: Required. Specifies the port at which the service endpoint + below needs to be exposed. + :type port: int + :param hosts: Required. description for routing. + :type hosts: list[~azure.mgmt.servicefabricmesh.models.HttpHostConfig] + """ + + _validation = { + 'name': {'required': True}, + 'port': {'required': True}, + 'hosts': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + 'hosts': {'key': 'hosts', 'type': '[HttpHostConfig]'}, + } + + def __init__(self, **kwargs): + super(HttpConfig, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.port = kwargs.get('port', None) + self.hosts = kwargs.get('hosts', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_config_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_config_py3.py new file mode 100644 index 000000000000..68f82ebae140 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_config_py3.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class HttpConfig(Model): + """Describes the http configuration for external connectivity for this + network. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. http gateway config name. + :type name: str + :param port: Required. Specifies the port at which the service endpoint + below needs to be exposed. + :type port: int + :param hosts: Required. description for routing. + :type hosts: list[~azure.mgmt.servicefabricmesh.models.HttpHostConfig] + """ + + _validation = { + 'name': {'required': True}, + 'port': {'required': True}, + 'hosts': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + 'hosts': {'key': 'hosts', 'type': '[HttpHostConfig]'}, + } + + def __init__(self, *, name: str, port: int, hosts, **kwargs) -> None: + super(HttpConfig, self).__init__(**kwargs) + self.name = name + self.port = port + self.hosts = hosts diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config.py new file mode 100644 index 000000000000..61f126bbede3 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config.py @@ -0,0 +1,41 @@ +# 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 msrest.serialization import Model + + +class HttpHostConfig(Model): + """Describes the hostname properties for http routing. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. http hostname config name. + :type name: str + :param routes: Required. Route information to use for routing. Routes are + processed in the order they are specified. Specify routes that are more + specific before routes that can hamdle general cases. + :type routes: list[~azure.mgmt.servicefabricmesh.models.HttpRouteConfig] + """ + + _validation = { + 'name': {'required': True}, + 'routes': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'routes': {'key': 'routes', 'type': '[HttpRouteConfig]'}, + } + + def __init__(self, **kwargs): + super(HttpHostConfig, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.routes = kwargs.get('routes', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config_py3.py new file mode 100644 index 000000000000..295a55ac7908 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config_py3.py @@ -0,0 +1,41 @@ +# 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 msrest.serialization import Model + + +class HttpHostConfig(Model): + """Describes the hostname properties for http routing. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. http hostname config name. + :type name: str + :param routes: Required. Route information to use for routing. Routes are + processed in the order they are specified. Specify routes that are more + specific before routes that can hamdle general cases. + :type routes: list[~azure.mgmt.servicefabricmesh.models.HttpRouteConfig] + """ + + _validation = { + 'name': {'required': True}, + 'routes': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'routes': {'key': 'routes', 'type': '[HttpRouteConfig]'}, + } + + def __init__(self, *, name: str, routes, **kwargs) -> None: + super(HttpHostConfig, self).__init__(**kwargs) + self.name = name + self.routes = routes diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_config.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_config.py new file mode 100644 index 000000000000..c3f18ed30c51 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_config.py @@ -0,0 +1,45 @@ +# 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 msrest.serialization import Model + + +class HttpRouteConfig(Model): + """Describes the hostname properties for http routing. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. http route name. + :type name: str + :param match: Required. Describes a rule for http route matching. + :type match: ~azure.mgmt.servicefabricmesh.models.HttpRouteMatchRule + :param destination: Required. Describes destination endpoint for routing + traffic. + :type destination: ~azure.mgmt.servicefabricmesh.models.GatewayDestination + """ + + _validation = { + 'name': {'required': True}, + 'match': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'match': {'key': 'match', 'type': 'HttpRouteMatchRule'}, + 'destination': {'key': 'destination', 'type': 'GatewayDestination'}, + } + + def __init__(self, **kwargs): + super(HttpRouteConfig, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.match = kwargs.get('match', None) + self.destination = kwargs.get('destination', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_config_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_config_py3.py new file mode 100644 index 000000000000..1d32c3aaeb80 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_config_py3.py @@ -0,0 +1,45 @@ +# 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 msrest.serialization import Model + + +class HttpRouteConfig(Model): + """Describes the hostname properties for http routing. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. http route name. + :type name: str + :param match: Required. Describes a rule for http route matching. + :type match: ~azure.mgmt.servicefabricmesh.models.HttpRouteMatchRule + :param destination: Required. Describes destination endpoint for routing + traffic. + :type destination: ~azure.mgmt.servicefabricmesh.models.GatewayDestination + """ + + _validation = { + 'name': {'required': True}, + 'match': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'match': {'key': 'match', 'type': 'HttpRouteMatchRule'}, + 'destination': {'key': 'destination', 'type': 'GatewayDestination'}, + } + + def __init__(self, *, name: str, match, destination, **kwargs) -> None: + super(HttpRouteConfig, self).__init__(**kwargs) + self.name = name + self.match = match + self.destination = destination diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_header.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_header.py new file mode 100644 index 000000000000..4d111019dee8 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_header.py @@ -0,0 +1,42 @@ +# 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 msrest.serialization import Model + + +class HttpRouteMatchHeader(Model): + """Describes header information for http route matching. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of header to match in request. + :type name: str + :param value: Value of header to match in request. + :type value: str + :param type: how to match header value. Possible values include: 'exact' + :type type: str or ~azure.mgmt.servicefabricmesh.models.HeaderMatchType + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(HttpRouteMatchHeader, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_header_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_header_py3.py new file mode 100644 index 000000000000..13dcf761c77b --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_header_py3.py @@ -0,0 +1,42 @@ +# 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 msrest.serialization import Model + + +class HttpRouteMatchHeader(Model): + """Describes header information for http route matching. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of header to match in request. + :type name: str + :param value: Value of header to match in request. + :type value: str + :param type: how to match header value. Possible values include: 'exact' + :type type: str or ~azure.mgmt.servicefabricmesh.models.HeaderMatchType + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, name: str, value: str=None, type=None, **kwargs) -> None: + super(HttpRouteMatchHeader, self).__init__(**kwargs) + self.name = name + self.value = value + self.type = type diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_path.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_path.py new file mode 100644 index 000000000000..fa7b45f88cd7 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_path.py @@ -0,0 +1,48 @@ +# 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 msrest.serialization import Model + + +class HttpRouteMatchPath(Model): + """Path to match for routing. + + 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 value: Required. Uri path to match for request. + :type value: str + :param rewrite: replacement string for matched part of the Uri. + :type rewrite: str + :ivar type: Required. how to match value in the Uri. Default value: + "prefix" . + :vartype type: str + """ + + _validation = { + 'value': {'required': True}, + 'type': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'rewrite': {'key': 'rewrite', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + type = "prefix" + + def __init__(self, **kwargs): + super(HttpRouteMatchPath, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.rewrite = kwargs.get('rewrite', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_path_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_path_py3.py new file mode 100644 index 000000000000..075b226e6ad7 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_path_py3.py @@ -0,0 +1,48 @@ +# 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 msrest.serialization import Model + + +class HttpRouteMatchPath(Model): + """Path to match for routing. + + 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 value: Required. Uri path to match for request. + :type value: str + :param rewrite: replacement string for matched part of the Uri. + :type rewrite: str + :ivar type: Required. how to match value in the Uri. Default value: + "prefix" . + :vartype type: str + """ + + _validation = { + 'value': {'required': True}, + 'type': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'rewrite': {'key': 'rewrite', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + type = "prefix" + + def __init__(self, *, value: str, rewrite: str=None, **kwargs) -> None: + super(HttpRouteMatchPath, self).__init__(**kwargs) + self.value = value + self.rewrite = rewrite diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_rule.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_rule.py new file mode 100644 index 000000000000..75a0539ed07d --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_rule.py @@ -0,0 +1,39 @@ +# 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 msrest.serialization import Model + + +class HttpRouteMatchRule(Model): + """Describes a rule for http route matching. + + All required parameters must be populated in order to send to Azure. + + :param path: Required. Path to match for routing. + :type path: ~azure.mgmt.servicefabricmesh.models.HttpRouteMatchPath + :param headers: headers and their values to match in request. + :type headers: + list[~azure.mgmt.servicefabricmesh.models.HttpRouteMatchHeader] + """ + + _validation = { + 'path': {'required': True}, + } + + _attribute_map = { + 'path': {'key': 'path', 'type': 'HttpRouteMatchPath'}, + 'headers': {'key': 'headers', 'type': '[HttpRouteMatchHeader]'}, + } + + def __init__(self, **kwargs): + super(HttpRouteMatchRule, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.headers = kwargs.get('headers', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_rule_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_rule_py3.py new file mode 100644 index 000000000000..0be85e165621 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_route_match_rule_py3.py @@ -0,0 +1,39 @@ +# 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 msrest.serialization import Model + + +class HttpRouteMatchRule(Model): + """Describes a rule for http route matching. + + All required parameters must be populated in order to send to Azure. + + :param path: Required. Path to match for routing. + :type path: ~azure.mgmt.servicefabricmesh.models.HttpRouteMatchPath + :param headers: headers and their values to match in request. + :type headers: + list[~azure.mgmt.servicefabricmesh.models.HttpRouteMatchHeader] + """ + + _validation = { + 'path': {'required': True}, + } + + _attribute_map = { + 'path': {'key': 'path', 'type': 'HttpRouteMatchPath'}, + 'headers': {'key': 'headers', 'type': '[HttpRouteMatchHeader]'}, + } + + def __init__(self, *, path, headers=None, **kwargs) -> None: + super(HttpRouteMatchRule, self).__init__(**kwargs) + self.path = path + self.headers = headers diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/image_registry_credential.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/image_registry_credential.py new file mode 100644 index 000000000000..95aac323f274 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/image_registry_credential.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class ImageRegistryCredential(Model): + """Image registry credential. + + All required parameters must be populated in order to send to Azure. + + :param server: Required. Docker image registry server, without protocol + such as `http` and `https`. + :type server: str + :param username: Required. The username for the private registry. + :type username: str + :param password: The password for the private registry. The password is + required for create or update operations, however it is not returned in + the get or list operations. + :type password: str + """ + + _validation = { + 'server': {'required': True}, + 'username': {'required': True}, + } + + _attribute_map = { + 'server': {'key': 'server', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ImageRegistryCredential, self).__init__(**kwargs) + self.server = kwargs.get('server', None) + self.username = kwargs.get('username', None) + self.password = kwargs.get('password', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/image_registry_credential_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/image_registry_credential_py3.py new file mode 100644 index 000000000000..8d60c62a43ee --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/image_registry_credential_py3.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class ImageRegistryCredential(Model): + """Image registry credential. + + All required parameters must be populated in order to send to Azure. + + :param server: Required. Docker image registry server, without protocol + such as `http` and `https`. + :type server: str + :param username: Required. The username for the private registry. + :type username: str + :param password: The password for the private registry. The password is + required for create or update operations, however it is not returned in + the get or list operations. + :type password: str + """ + + _validation = { + 'server': {'required': True}, + 'username': {'required': True}, + } + + _attribute_map = { + 'server': {'key': 'server', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__(self, *, server: str, username: str, password: str=None, **kwargs) -> None: + super(ImageRegistryCredential, self).__init__(**kwargs) + self.server = server + self.username = username + self.password = password diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/inlined_value_secret_resource_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/inlined_value_secret_resource_properties.py new file mode 100644 index 000000000000..e197e89f4769 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/inlined_value_secret_resource_properties.py @@ -0,0 +1,64 @@ +# 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 .secret_resource_properties import SecretResourceProperties + + +class InlinedValueSecretResourceProperties(SecretResourceProperties): + """Describes the properties of a secret resource whose value is provided + explicitly as plaintext. The secret resource may have multiple values, each + being uniquely versioned. The secret value of each version is stored + encrypted, and delivered as plaintext into the context of applications + referencing it. + + 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 provisioning_state: State of the resource. + :vartype provisioning_state: str + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the secret. + :type description: str + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the secret. + :vartype status_details: str + :param content_type: The type of the content stored in the secret value. + The value of this property is opaque to Service Fabric. Once set, the + value of this property cannot be changed. + :type content_type: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(InlinedValueSecretResourceProperties, self).__init__(**kwargs) + self.kind = 'inlinedValue' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/inlined_value_secret_resource_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/inlined_value_secret_resource_properties_py3.py new file mode 100644 index 000000000000..ef9559bad214 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/inlined_value_secret_resource_properties_py3.py @@ -0,0 +1,64 @@ +# 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 .secret_resource_properties_py3 import SecretResourceProperties + + +class InlinedValueSecretResourceProperties(SecretResourceProperties): + """Describes the properties of a secret resource whose value is provided + explicitly as plaintext. The secret resource may have multiple values, each + being uniquely versioned. The secret value of each version is stored + encrypted, and delivered as plaintext into the context of applications + referencing it. + + 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 provisioning_state: State of the resource. + :vartype provisioning_state: str + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the secret. + :type description: str + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the secret. + :vartype status_details: str + :param content_type: The type of the content stored in the secret value. + The value of this property is opaque to Service Fabric. Once set, the + value of this property cannot be changed. + :type content_type: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + } + + def __init__(self, *, description: str=None, content_type: str=None, **kwargs) -> None: + super(InlinedValueSecretResourceProperties, self).__init__(description=description, content_type=content_type, **kwargs) + self.kind = 'inlinedValue' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/local_network_resource_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/local_network_resource_properties.py new file mode 100644 index 000000000000..d3e6a19c210b --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/local_network_resource_properties.py @@ -0,0 +1,61 @@ +# 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 .network_resource_properties import NetworkResourceProperties + + +class LocalNetworkResourceProperties(NetworkResourceProperties): + """Information about a Service Fabric container network local to a single + Service Fabric cluster. + + 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 provisioning_state: State of the resource. + :vartype provisioning_state: str + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the network. + :type description: str + :ivar status: Status of the network. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the network. + :vartype status_details: str + :param network_address_prefix: Address space for the local container + network. + :type network_address_prefix: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'network_address_prefix': {'key': 'networkAddressPrefix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LocalNetworkResourceProperties, self).__init__(**kwargs) + self.network_address_prefix = kwargs.get('network_address_prefix', None) + self.kind = 'Local' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/local_network_resource_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/local_network_resource_properties_py3.py new file mode 100644 index 000000000000..3102ad7f45ef --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/local_network_resource_properties_py3.py @@ -0,0 +1,61 @@ +# 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 .network_resource_properties_py3 import NetworkResourceProperties + + +class LocalNetworkResourceProperties(NetworkResourceProperties): + """Information about a Service Fabric container network local to a single + Service Fabric cluster. + + 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 provisioning_state: State of the resource. + :vartype provisioning_state: str + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the network. + :type description: str + :ivar status: Status of the network. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the network. + :vartype status_details: str + :param network_address_prefix: Address space for the local container + network. + :type network_address_prefix: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'network_address_prefix': {'key': 'networkAddressPrefix', 'type': 'str'}, + } + + def __init__(self, *, description: str=None, network_address_prefix: str=None, **kwargs) -> None: + super(LocalNetworkResourceProperties, self).__init__(description=description, **kwargs) + self.network_address_prefix = network_address_prefix + self.kind = 'Local' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/managed_proxy_resource.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/managed_proxy_resource.py new file mode 100644 index 000000000000..b711c090c772 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/managed_proxy_resource.py @@ -0,0 +1,49 @@ +# 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 msrest.serialization import Model + + +class ManagedProxyResource(Model): + """The resource model definition for Azure Resource Manager proxy resource. It + will have everything other than required location and tags. This proxy + resource is explicitly created or updated by including it in the parent + resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified identifier for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :param name: The name of the resource + :type name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + """ + + _validation = { + 'id': {'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(ManagedProxyResource, self).__init__(**kwargs) + self.id = None + self.name = kwargs.get('name', None) + self.type = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/managed_proxy_resource_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/managed_proxy_resource_py3.py new file mode 100644 index 000000000000..bdedaed2145e --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/managed_proxy_resource_py3.py @@ -0,0 +1,49 @@ +# 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 msrest.serialization import Model + + +class ManagedProxyResource(Model): + """The resource model definition for Azure Resource Manager proxy resource. It + will have everything other than required location and tags. This proxy + resource is explicitly created or updated by including it in the parent + resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified identifier for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :param name: The name of the resource + :type name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + """ + + _validation = { + 'id': {'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, *, name: str=None, **kwargs) -> None: + super(ManagedProxyResource, self).__init__(**kwargs) + self.id = None + self.name = name + self.type = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_ref.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_ref.py new file mode 100644 index 000000000000..d1d36f410980 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_ref.py @@ -0,0 +1,34 @@ +# 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 msrest.serialization import Model + + +class NetworkRef(Model): + """Describes a network reference in a service. + + :param name: Name of the network + :type name: str + :param endpoint_refs: A list of endpoints that are exposed on this + network. + :type endpoint_refs: + list[~azure.mgmt.servicefabricmesh.models.EndpointRef] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'endpoint_refs': {'key': 'endpointRefs', 'type': '[EndpointRef]'}, + } + + def __init__(self, **kwargs): + super(NetworkRef, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.endpoint_refs = kwargs.get('endpoint_refs', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_ref_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_ref_py3.py new file mode 100644 index 000000000000..bbfd68bc606c --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_ref_py3.py @@ -0,0 +1,34 @@ +# 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 msrest.serialization import Model + + +class NetworkRef(Model): + """Describes a network reference in a service. + + :param name: Name of the network + :type name: str + :param endpoint_refs: A list of endpoints that are exposed on this + network. + :type endpoint_refs: + list[~azure.mgmt.servicefabricmesh.models.EndpointRef] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'endpoint_refs': {'key': 'endpointRefs', 'type': '[EndpointRef]'}, + } + + def __init__(self, *, name: str=None, endpoint_refs=None, **kwargs) -> None: + super(NetworkRef, self).__init__(**kwargs) + self.name = name + self.endpoint_refs = endpoint_refs diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_description.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_description.py new file mode 100644 index 000000000000..b1ef1bd0cd75 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_description.py @@ -0,0 +1,59 @@ +# 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 .tracked_resource import TrackedResource + + +class NetworkResourceDescription(TrackedResource): + """This type describes a network resource. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param properties: Required. Describes properties of a network resource. + :type properties: + ~azure.mgmt.servicefabricmesh.models.NetworkResourceProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'NetworkResourceProperties'}, + } + + def __init__(self, **kwargs): + super(NetworkResourceDescription, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_description_paged.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_description_paged.py new file mode 100644 index 000000000000..a6206dbec02c --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_description_paged.py @@ -0,0 +1,27 @@ +# 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 msrest.paging import Paged + + +class NetworkResourceDescriptionPaged(Paged): + """ + A paging container for iterating over a list of :class:`NetworkResourceDescription ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[NetworkResourceDescription]'} + } + + def __init__(self, *args, **kwargs): + + super(NetworkResourceDescriptionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_description_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_description_py3.py new file mode 100644 index 000000000000..278703873f27 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_description_py3.py @@ -0,0 +1,59 @@ +# 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 .tracked_resource_py3 import TrackedResource + + +class NetworkResourceDescription(TrackedResource): + """This type describes a network resource. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param properties: Required. Describes properties of a network resource. + :type properties: + ~azure.mgmt.servicefabricmesh.models.NetworkResourceProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'NetworkResourceProperties'}, + } + + def __init__(self, *, location: str, properties, tags=None, **kwargs) -> None: + super(NetworkResourceDescription, self).__init__(tags=tags, location=location, **kwargs) + self.properties = properties diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties.py new file mode 100644 index 000000000000..270bcc60c326 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties.py @@ -0,0 +1,65 @@ +# 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 .network_resource_properties_base import NetworkResourcePropertiesBase + + +class NetworkResourceProperties(NetworkResourcePropertiesBase): + """Describes properties of a network resource. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: LocalNetworkResourceProperties + + 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 provisioning_state: State of the resource. + :vartype provisioning_state: str + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the network. + :type description: str + :ivar status: Status of the network. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the network. + :vartype status_details: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'Local': 'LocalNetworkResourceProperties'} + } + + def __init__(self, **kwargs): + super(NetworkResourceProperties, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.status = None + self.status_details = None + self.kind = 'NetworkResourceProperties' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties_base.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties_base.py new file mode 100644 index 000000000000..bb2df760ee99 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties_base.py @@ -0,0 +1,50 @@ +# 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 .provisioned_resource_properties import ProvisionedResourceProperties + + +class NetworkResourcePropertiesBase(ProvisionedResourceProperties): + """This type describes the properties of a network resource, including its + kind. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: NetworkResourceProperties + + 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 provisioning_state: State of the resource. + :vartype provisioning_state: str + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'NetworkResourceProperties': 'NetworkResourceProperties'} + } + + def __init__(self, **kwargs): + super(NetworkResourcePropertiesBase, self).__init__(**kwargs) + self.kind = None + self.kind = 'NetworkResourcePropertiesBase' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties_base_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties_base_py3.py new file mode 100644 index 000000000000..13eefd8720d4 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties_base_py3.py @@ -0,0 +1,50 @@ +# 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 .provisioned_resource_properties_py3 import ProvisionedResourceProperties + + +class NetworkResourcePropertiesBase(ProvisionedResourceProperties): + """This type describes the properties of a network resource, including its + kind. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: NetworkResourceProperties + + 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 provisioning_state: State of the resource. + :vartype provisioning_state: str + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'NetworkResourceProperties': 'NetworkResourceProperties'} + } + + def __init__(self, **kwargs) -> None: + super(NetworkResourcePropertiesBase, self).__init__(**kwargs) + self.kind = None + self.kind = 'NetworkResourcePropertiesBase' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties_py3.py new file mode 100644 index 000000000000..837cd29d9862 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/network_resource_properties_py3.py @@ -0,0 +1,65 @@ +# 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 .network_resource_properties_base_py3 import NetworkResourcePropertiesBase + + +class NetworkResourceProperties(NetworkResourcePropertiesBase): + """Describes properties of a network resource. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: LocalNetworkResourceProperties + + 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 provisioning_state: State of the resource. + :vartype provisioning_state: str + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the network. + :type description: str + :ivar status: Status of the network. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the network. + :vartype status_details: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'Local': 'LocalNetworkResourceProperties'} + } + + def __init__(self, *, description: str=None, **kwargs) -> None: + super(NetworkResourceProperties, self).__init__(**kwargs) + self.description = description + self.status = None + self.status_details = None + self.kind = 'NetworkResourceProperties' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/operation_result.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/operation_result.py new file mode 100644 index 000000000000..6a189eb5b477 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/operation_result.py @@ -0,0 +1,41 @@ +# 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 msrest.serialization import Model + + +class OperationResult(Model): + """List of operations available at the listed Azure resource provider. + + :param name: The name of the operation. + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.servicefabricmesh.models.AvailableOperationDisplay + :param origin: Origin result + :type origin: str + :param next_link: The URL to use for getting the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'AvailableOperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationResult, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + self.origin = kwargs.get('origin', None) + self.next_link = kwargs.get('next_link', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/operation_result_paged.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/operation_result_paged.py new file mode 100644 index 000000000000..b95761b52fd5 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/operation_result_paged.py @@ -0,0 +1,27 @@ +# 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 msrest.paging import Paged + + +class OperationResultPaged(Paged): + """ + A paging container for iterating over a list of :class:`OperationResult ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[OperationResult]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationResultPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/operation_result_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/operation_result_py3.py new file mode 100644 index 000000000000..d7835928b8cb --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/operation_result_py3.py @@ -0,0 +1,41 @@ +# 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 msrest.serialization import Model + + +class OperationResult(Model): + """List of operations available at the listed Azure resource provider. + + :param name: The name of the operation. + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.servicefabricmesh.models.AvailableOperationDisplay + :param origin: Origin result + :type origin: str + :param next_link: The URL to use for getting the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'AvailableOperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, display=None, origin: str=None, next_link: str=None, **kwargs) -> None: + super(OperationResult, self).__init__(**kwargs) + self.name = name + self.display = display + self.origin = origin + self.next_link = next_link diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/provisioned_resource_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/provisioned_resource_properties.py new file mode 100644 index 000000000000..ca9e697755e1 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/provisioned_resource_properties.py @@ -0,0 +1,35 @@ +# 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 msrest.serialization import Model + + +class ProvisionedResourceProperties(Model): + """Describes common properties of a provisioned resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: State of the resource. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ProvisionedResourceProperties, self).__init__(**kwargs) + self.provisioning_state = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/provisioned_resource_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/provisioned_resource_properties_py3.py new file mode 100644 index 000000000000..cbdd985153d5 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/provisioned_resource_properties_py3.py @@ -0,0 +1,35 @@ +# 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 msrest.serialization import Model + + +class ProvisionedResourceProperties(Model): + """Describes common properties of a provisioned resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: State of the resource. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ProvisionedResourceProperties, self).__init__(**kwargs) + self.provisioning_state = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/proxy_resource.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/proxy_resource.py new file mode 100644 index 000000000000..eb9459d44f16 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/proxy_resource.py @@ -0,0 +1,45 @@ +# 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 .resource import Resource + + +class ProxyResource(Resource): + """The resource model definition for Azure Resource Manager proxy resource. It + will have everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified identifier 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. Ex- + 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) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/proxy_resource_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/proxy_resource_py3.py new file mode 100644 index 000000000000..80c1e4b2b6d2 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/proxy_resource_py3.py @@ -0,0 +1,45 @@ +# 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 .resource_py3 import Resource + + +class ProxyResource(Resource): + """The resource model definition for Azure Resource Manager proxy resource. It + will have everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified identifier 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. Ex- + 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) -> None: + super(ProxyResource, self).__init__(**kwargs) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/reliable_collections_ref.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/reliable_collections_ref.py new file mode 100644 index 000000000000..0bdbaa8515d5 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/reliable_collections_ref.py @@ -0,0 +1,42 @@ +# 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 msrest.serialization import Model + + +class ReliableCollectionsRef(Model): + """Specifying this parameter adds support for reliable collections. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of ReliableCollection resource. Right now it's + not used and you can use any string. + :type name: str + :param do_not_persist_state: False (the default) if ReliableCollections + state is persisted to disk as usual. True if you do not want to persist + state, in which case replication is still enabled and you can use + ReliableCollections as distributed cache. + :type do_not_persist_state: bool + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'do_not_persist_state': {'key': 'doNotPersistState', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(ReliableCollectionsRef, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.do_not_persist_state = kwargs.get('do_not_persist_state', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/reliable_collections_ref_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/reliable_collections_ref_py3.py new file mode 100644 index 000000000000..c517f34c0b8a --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/reliable_collections_ref_py3.py @@ -0,0 +1,42 @@ +# 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 msrest.serialization import Model + + +class ReliableCollectionsRef(Model): + """Specifying this parameter adds support for reliable collections. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of ReliableCollection resource. Right now it's + not used and you can use any string. + :type name: str + :param do_not_persist_state: False (the default) if ReliableCollections + state is persisted to disk as usual. True if you do not want to persist + state, in which case replication is still enabled and you can use + ReliableCollections as distributed cache. + :type do_not_persist_state: bool + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'do_not_persist_state': {'key': 'doNotPersistState', 'type': 'bool'}, + } + + def __init__(self, *, name: str, do_not_persist_state: bool=None, **kwargs) -> None: + super(ReliableCollectionsRef, self).__init__(**kwargs) + self.name = name + self.do_not_persist_state = do_not_persist_state diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource.py new file mode 100644 index 000000000000..24d52c670e3c --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource.py @@ -0,0 +1,47 @@ +# 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 msrest.serialization import Model + + +class Resource(Model): + """The resource model definition for Azure Resource Manager resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified identifier 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. Ex- + 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 diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_limits.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_limits.py new file mode 100644 index 000000000000..9653965c0df6 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_limits.py @@ -0,0 +1,35 @@ +# 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 msrest.serialization import Model + + +class ResourceLimits(Model): + """This type describes the resource limits for a given container. It describes + the most amount of resources a container is allowed to use before being + restarted. + + :param memory_in_gb: The memory limit in GB. + :type memory_in_gb: float + :param cpu: CPU limits in cores. At present, only full cores are + supported. + :type cpu: float + """ + + _attribute_map = { + 'memory_in_gb': {'key': 'memoryInGB', 'type': 'float'}, + 'cpu': {'key': 'cpu', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(ResourceLimits, self).__init__(**kwargs) + self.memory_in_gb = kwargs.get('memory_in_gb', None) + self.cpu = kwargs.get('cpu', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_limits_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_limits_py3.py new file mode 100644 index 000000000000..2817c55a584a --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_limits_py3.py @@ -0,0 +1,35 @@ +# 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 msrest.serialization import Model + + +class ResourceLimits(Model): + """This type describes the resource limits for a given container. It describes + the most amount of resources a container is allowed to use before being + restarted. + + :param memory_in_gb: The memory limit in GB. + :type memory_in_gb: float + :param cpu: CPU limits in cores. At present, only full cores are + supported. + :type cpu: float + """ + + _attribute_map = { + 'memory_in_gb': {'key': 'memoryInGB', 'type': 'float'}, + 'cpu': {'key': 'cpu', 'type': 'float'}, + } + + def __init__(self, *, memory_in_gb: float=None, cpu: float=None, **kwargs) -> None: + super(ResourceLimits, self).__init__(**kwargs) + self.memory_in_gb = memory_in_gb + self.cpu = cpu diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_py3.py new file mode 100644 index 000000000000..004f0b16041d --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_py3.py @@ -0,0 +1,47 @@ +# 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 msrest.serialization import Model + + +class Resource(Model): + """The resource model definition for Azure Resource Manager resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified identifier 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. Ex- + 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) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requests.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requests.py new file mode 100644 index 000000000000..1a1b725acd71 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requests.py @@ -0,0 +1,45 @@ +# 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 msrest.serialization import Model + + +class ResourceRequests(Model): + """This type describes the requested resources for a given container. It + describes the least amount of resources required for the container. A + container can consume more than requested resources up to the specified + limits before being restarted. Currently, the requested resources are + treated as limits. + + All required parameters must be populated in order to send to Azure. + + :param memory_in_gb: Required. The memory request in GB for this + container. + :type memory_in_gb: float + :param cpu: Required. Requested number of CPU cores. At present, only full + cores are supported. + :type cpu: float + """ + + _validation = { + 'memory_in_gb': {'required': True}, + 'cpu': {'required': True}, + } + + _attribute_map = { + 'memory_in_gb': {'key': 'memoryInGB', 'type': 'float'}, + 'cpu': {'key': 'cpu', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(ResourceRequests, self).__init__(**kwargs) + self.memory_in_gb = kwargs.get('memory_in_gb', None) + self.cpu = kwargs.get('cpu', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requests_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requests_py3.py new file mode 100644 index 000000000000..ffa43735a264 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requests_py3.py @@ -0,0 +1,45 @@ +# 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 msrest.serialization import Model + + +class ResourceRequests(Model): + """This type describes the requested resources for a given container. It + describes the least amount of resources required for the container. A + container can consume more than requested resources up to the specified + limits before being restarted. Currently, the requested resources are + treated as limits. + + All required parameters must be populated in order to send to Azure. + + :param memory_in_gb: Required. The memory request in GB for this + container. + :type memory_in_gb: float + :param cpu: Required. Requested number of CPU cores. At present, only full + cores are supported. + :type cpu: float + """ + + _validation = { + 'memory_in_gb': {'required': True}, + 'cpu': {'required': True}, + } + + _attribute_map = { + 'memory_in_gb': {'key': 'memoryInGB', 'type': 'float'}, + 'cpu': {'key': 'cpu', 'type': 'float'}, + } + + def __init__(self, *, memory_in_gb: float, cpu: float, **kwargs) -> None: + super(ResourceRequests, self).__init__(**kwargs) + self.memory_in_gb = memory_in_gb + self.cpu = cpu diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requirements.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requirements.py new file mode 100644 index 000000000000..75e05be2e313 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requirements.py @@ -0,0 +1,40 @@ +# 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 msrest.serialization import Model + + +class ResourceRequirements(Model): + """This type describes the resource requirements for a container or a service. + + All required parameters must be populated in order to send to Azure. + + :param requests: Required. Describes the requested resources for a given + container. + :type requests: ~azure.mgmt.servicefabricmesh.models.ResourceRequests + :param limits: Describes the maximum limits on the resources for a given + container. + :type limits: ~azure.mgmt.servicefabricmesh.models.ResourceLimits + """ + + _validation = { + 'requests': {'required': True}, + } + + _attribute_map = { + 'requests': {'key': 'requests', 'type': 'ResourceRequests'}, + 'limits': {'key': 'limits', 'type': 'ResourceLimits'}, + } + + def __init__(self, **kwargs): + super(ResourceRequirements, self).__init__(**kwargs) + self.requests = kwargs.get('requests', None) + self.limits = kwargs.get('limits', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requirements_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requirements_py3.py new file mode 100644 index 000000000000..ed924f3f0a76 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/resource_requirements_py3.py @@ -0,0 +1,40 @@ +# 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 msrest.serialization import Model + + +class ResourceRequirements(Model): + """This type describes the resource requirements for a container or a service. + + All required parameters must be populated in order to send to Azure. + + :param requests: Required. Describes the requested resources for a given + container. + :type requests: ~azure.mgmt.servicefabricmesh.models.ResourceRequests + :param limits: Describes the maximum limits on the resources for a given + container. + :type limits: ~azure.mgmt.servicefabricmesh.models.ResourceLimits + """ + + _validation = { + 'requests': {'required': True}, + } + + _attribute_map = { + 'requests': {'key': 'requests', 'type': 'ResourceRequests'}, + 'limits': {'key': 'limits', 'type': 'ResourceLimits'}, + } + + def __init__(self, *, requests, limits=None, **kwargs) -> None: + super(ResourceRequirements, self).__init__(**kwargs) + self.requests = requests + self.limits = limits diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_description.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_description.py new file mode 100644 index 000000000000..37e739ead0c2 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_description.py @@ -0,0 +1,60 @@ +# 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 .tracked_resource import TrackedResource + + +class SecretResourceDescription(TrackedResource): + """This type describes a secret resource. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param properties: Required. Describes the properties of a secret + resource. + :type properties: + ~azure.mgmt.servicefabricmesh.models.SecretResourceProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'SecretResourceProperties'}, + } + + def __init__(self, **kwargs): + super(SecretResourceDescription, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_description_paged.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_description_paged.py new file mode 100644 index 000000000000..c08f184e141a --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_description_paged.py @@ -0,0 +1,27 @@ +# 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 msrest.paging import Paged + + +class SecretResourceDescriptionPaged(Paged): + """ + A paging container for iterating over a list of :class:`SecretResourceDescription ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SecretResourceDescription]'} + } + + def __init__(self, *args, **kwargs): + + super(SecretResourceDescriptionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_description_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_description_py3.py new file mode 100644 index 000000000000..83e30b282bec --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_description_py3.py @@ -0,0 +1,60 @@ +# 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 .tracked_resource_py3 import TrackedResource + + +class SecretResourceDescription(TrackedResource): + """This type describes a secret resource. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param properties: Required. Describes the properties of a secret + resource. + :type properties: + ~azure.mgmt.servicefabricmesh.models.SecretResourceProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'SecretResourceProperties'}, + } + + def __init__(self, *, location: str, properties, tags=None, **kwargs) -> None: + super(SecretResourceDescription, self).__init__(tags=tags, location=location, **kwargs) + self.properties = properties diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties.py new file mode 100644 index 000000000000..7329ccdd15c5 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties.py @@ -0,0 +1,71 @@ +# 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 .secret_resource_properties_base import SecretResourcePropertiesBase + + +class SecretResourceProperties(SecretResourcePropertiesBase): + """Describes the properties of a secret resource. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: InlinedValueSecretResourceProperties + + 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 provisioning_state: State of the resource. + :vartype provisioning_state: str + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the secret. + :type description: str + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the secret. + :vartype status_details: str + :param content_type: The type of the content stored in the secret value. + The value of this property is opaque to Service Fabric. Once set, the + value of this property cannot be changed. + :type content_type: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'inlinedValue': 'InlinedValueSecretResourceProperties'} + } + + def __init__(self, **kwargs): + super(SecretResourceProperties, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.status = None + self.status_details = None + self.content_type = kwargs.get('content_type', None) + self.kind = 'SecretResourceProperties' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties_base.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties_base.py new file mode 100644 index 000000000000..eebbfbe4c922 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties_base.py @@ -0,0 +1,50 @@ +# 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 .provisioned_resource_properties import ProvisionedResourceProperties + + +class SecretResourcePropertiesBase(ProvisionedResourceProperties): + """This type describes the properties of a secret resource, including its + kind. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: SecretResourceProperties + + 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 provisioning_state: State of the resource. + :vartype provisioning_state: str + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'SecretResourceProperties': 'SecretResourceProperties'} + } + + def __init__(self, **kwargs): + super(SecretResourcePropertiesBase, self).__init__(**kwargs) + self.kind = None + self.kind = 'SecretResourcePropertiesBase' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties_base_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties_base_py3.py new file mode 100644 index 000000000000..609c4cd2c2fd --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties_base_py3.py @@ -0,0 +1,50 @@ +# 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 .provisioned_resource_properties_py3 import ProvisionedResourceProperties + + +class SecretResourcePropertiesBase(ProvisionedResourceProperties): + """This type describes the properties of a secret resource, including its + kind. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: SecretResourceProperties + + 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 provisioning_state: State of the resource. + :vartype provisioning_state: str + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'SecretResourceProperties': 'SecretResourceProperties'} + } + + def __init__(self, **kwargs) -> None: + super(SecretResourcePropertiesBase, self).__init__(**kwargs) + self.kind = None + self.kind = 'SecretResourcePropertiesBase' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties_py3.py new file mode 100644 index 000000000000..29b3e6357627 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_resource_properties_py3.py @@ -0,0 +1,71 @@ +# 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 .secret_resource_properties_base_py3 import SecretResourcePropertiesBase + + +class SecretResourceProperties(SecretResourcePropertiesBase): + """Describes the properties of a secret resource. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: InlinedValueSecretResourceProperties + + 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 provisioning_state: State of the resource. + :vartype provisioning_state: str + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the secret. + :type description: str + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the secret. + :vartype status_details: str + :param content_type: The type of the content stored in the secret value. + The value of this property is opaque to Service Fabric. Once set, the + value of this property cannot be changed. + :type content_type: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'inlinedValue': 'InlinedValueSecretResourceProperties'} + } + + def __init__(self, *, description: str=None, content_type: str=None, **kwargs) -> None: + super(SecretResourceProperties, self).__init__(**kwargs) + self.description = description + self.status = None + self.status_details = None + self.content_type = content_type + self.kind = 'SecretResourceProperties' diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value.py new file mode 100644 index 000000000000..d7f632582e37 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value.py @@ -0,0 +1,28 @@ +# 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 msrest.serialization import Model + + +class SecretValue(Model): + """This type represents the unencrypted value of the secret. + + :param value: The actual value of the secret. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SecretValue, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_properties.py new file mode 100644 index 000000000000..2d26acf9d5db --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_properties.py @@ -0,0 +1,28 @@ +# 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 msrest.serialization import Model + + +class SecretValueProperties(Model): + """This type describes properties of secret value resource. + + :param value: The actual value of the secret. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SecretValueProperties, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_properties_py3.py new file mode 100644 index 000000000000..4b422eb9a5a7 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_properties_py3.py @@ -0,0 +1,28 @@ +# 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 msrest.serialization import Model + + +class SecretValueProperties(Model): + """This type describes properties of secret value resource. + + :param value: The actual value of the secret. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, value: str=None, **kwargs) -> None: + super(SecretValueProperties, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_py3.py new file mode 100644 index 000000000000..d196402e5fb7 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_py3.py @@ -0,0 +1,28 @@ +# 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 msrest.serialization import Model + + +class SecretValue(Model): + """This type represents the unencrypted value of the secret. + + :param value: The actual value of the secret. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, value: str=None, **kwargs) -> None: + super(SecretValue, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_resource_description.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_resource_description.py new file mode 100644 index 000000000000..27497f4731c2 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_resource_description.py @@ -0,0 +1,63 @@ +# 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 .tracked_resource import TrackedResource + + +class SecretValueResourceDescription(TrackedResource): + """This type describes a value of a secret resource. The name of this resource + is the version identifier corresponding to this secret value. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :ivar provisioning_state: State of the resource. + :vartype provisioning_state: str + :param value: The actual value of the secret. + :type value: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'value': {'key': 'properties.value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SecretValueResourceDescription, self).__init__(**kwargs) + self.provisioning_state = None + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_resource_description_paged.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_resource_description_paged.py new file mode 100644 index 000000000000..a3ad0d5dedcd --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_resource_description_paged.py @@ -0,0 +1,27 @@ +# 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 msrest.paging import Paged + + +class SecretValueResourceDescriptionPaged(Paged): + """ + A paging container for iterating over a list of :class:`SecretValueResourceDescription ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SecretValueResourceDescription]'} + } + + def __init__(self, *args, **kwargs): + + super(SecretValueResourceDescriptionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_resource_description_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_resource_description_py3.py new file mode 100644 index 000000000000..cb75cade243f --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/secret_value_resource_description_py3.py @@ -0,0 +1,63 @@ +# 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 .tracked_resource_py3 import TrackedResource + + +class SecretValueResourceDescription(TrackedResource): + """This type describes a value of a secret resource. The name of this resource + is the version identifier corresponding to this secret value. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :ivar provisioning_state: State of the resource. + :vartype provisioning_state: str + :param value: The actual value of the secret. + :type value: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'value': {'key': 'properties.value', 'type': 'str'}, + } + + def __init__(self, *, location: str, tags=None, value: str=None, **kwargs) -> None: + super(SecretValueResourceDescription, self).__init__(tags=tags, location=location, **kwargs) + self.provisioning_state = None + self.value = value diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_fabric_mesh_management_client_enums.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_fabric_mesh_management_client_enums.py new file mode 100644 index 000000000000..c5251f52f903 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_fabric_mesh_management_client_enums.py @@ -0,0 +1,96 @@ +# 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 + + +class ResourceStatus(str, Enum): + + unknown = "Unknown" #: Indicates the resource status is unknown. The value is zero. + ready = "Ready" #: Indicates the resource is ready. The value is 1. + upgrading = "Upgrading" #: Indicates the resource is upgrading. The value is 2. + creating = "Creating" #: Indicates the resource is being created. The value is 3. + deleting = "Deleting" #: Indicates the resource is being deletd. The value is 4. + failed = "Failed" #: Indicates the resource is not functional due to persistent failures. See statusDetails property for more details. The value is 5. + + +class HealthState(str, Enum): + + invalid = "Invalid" #: Indicates an invalid health state. All Service Fabric enumerations have the invalid type. The value is zero. + ok = "Ok" #: Indicates the health state is okay. The value is 1. + warning = "Warning" #: Indicates the health state is at a warning level. The value is 2. + error = "Error" #: Indicates the health state is at an error level. Error health state should be investigated, as they can impact the correct functionality of the cluster. The value is 3. + unknown = "Unknown" #: Indicates an unknown health status. The value is 65535. + + +class SecretKind(str, Enum): + + inlined_value = "inlinedValue" #: A simple secret resource whose plaintext value is provided by the user. + + +class VolumeProvider(str, Enum): + + sf_azure_file = "SFAzureFile" #: Provides volumes that are backed by Azure Files. + + +class SizeTypes(str, Enum): + + small = "Small" + medium = "Medium" + large = "Large" + + +class ApplicationScopedVolumeKind(str, Enum): + + service_fabric_volume_disk = "ServiceFabricVolumeDisk" #: Provides Service Fabric High Availability Volume Disk + + +class NetworkKind(str, Enum): + + local = "Local" #: Indicates a container network local to a single Service Fabric cluster. The value is 1. + + +class HeaderMatchType(str, Enum): + + exact = "exact" + + +class OperatingSystemType(str, Enum): + + linux = "Linux" #: The required operating system is Linux. + windows = "Windows" #: The required operating system is Windows. + + +class DiagnosticsSinkKind(str, Enum): + + invalid = "Invalid" #: Indicates an invalid sink kind. All Service Fabric enumerations have the invalid type. + azure_internal_monitoring_pipeline = "AzureInternalMonitoringPipeline" #: Diagnostics settings for Geneva. + + +class AutoScalingMechanismKind(str, Enum): + + add_remove_replica = "AddRemoveReplica" #: Indicates that scaling should be performed by adding or removing replicas. + + +class AutoScalingMetricKind(str, Enum): + + resource = "Resource" #: Indicates that the metric is one of resources, like cpu or memory. + + +class AutoScalingResourceMetricName(str, Enum): + + cpu = "cpu" #: Indicates that the resource is CPU cores. + memory_in_gb = "memoryInGB" #: Indicates that the resource is memory in GB. + + +class AutoScalingTriggerKind(str, Enum): + + average_load = "AverageLoad" #: Indicates that scaling should be performed based on average load of all replicas in the service. diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_properties.py new file mode 100644 index 000000000000..d5f812727dd2 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_properties.py @@ -0,0 +1,71 @@ +# 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 msrest.serialization import Model + + +class ServiceProperties(Model): + """Describes properties of a service resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param description: User readable description of the service. + :type description: str + :param replica_count: The number of replicas of the service to create. + Defaults to 1 if not specified. + :type replica_count: int + :param auto_scaling_policies: Auto scaling policies + :type auto_scaling_policies: + list[~azure.mgmt.servicefabricmesh.models.AutoScalingPolicy] + :ivar status: Status of the service. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the service. + :vartype status_details: str + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or + ~azure.mgmt.servicefabricmesh.models.HealthState + :ivar unhealthy_evaluation: When the service's health state is not 'Ok', + this additional details from service fabric Health Manager for the user to + know why the service is marked unhealthy. + :vartype unhealthy_evaluation: str + """ + + _validation = { + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'replica_count': {'key': 'replicaCount', 'type': 'int'}, + 'auto_scaling_policies': {'key': 'autoScalingPolicies', 'type': '[AutoScalingPolicy]'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'health_state': {'key': 'healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'unhealthyEvaluation', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceProperties, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.replica_count = kwargs.get('replica_count', None) + self.auto_scaling_policies = kwargs.get('auto_scaling_policies', None) + self.status = None + self.status_details = None + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_properties_py3.py new file mode 100644 index 000000000000..a73612097183 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_properties_py3.py @@ -0,0 +1,71 @@ +# 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 msrest.serialization import Model + + +class ServiceProperties(Model): + """Describes properties of a service resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param description: User readable description of the service. + :type description: str + :param replica_count: The number of replicas of the service to create. + Defaults to 1 if not specified. + :type replica_count: int + :param auto_scaling_policies: Auto scaling policies + :type auto_scaling_policies: + list[~azure.mgmt.servicefabricmesh.models.AutoScalingPolicy] + :ivar status: Status of the service. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the service. + :vartype status_details: str + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or + ~azure.mgmt.servicefabricmesh.models.HealthState + :ivar unhealthy_evaluation: When the service's health state is not 'Ok', + this additional details from service fabric Health Manager for the user to + know why the service is marked unhealthy. + :vartype unhealthy_evaluation: str + """ + + _validation = { + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'replica_count': {'key': 'replicaCount', 'type': 'int'}, + 'auto_scaling_policies': {'key': 'autoScalingPolicies', 'type': '[AutoScalingPolicy]'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'health_state': {'key': 'healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'unhealthyEvaluation', 'type': 'str'}, + } + + def __init__(self, *, description: str=None, replica_count: int=None, auto_scaling_policies=None, **kwargs) -> None: + super(ServiceProperties, self).__init__(**kwargs) + self.description = description + self.replica_count = replica_count + self.auto_scaling_policies = auto_scaling_policies + self.status = None + self.status_details = None + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_description.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_description.py new file mode 100644 index 000000000000..96a7258bd495 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_description.py @@ -0,0 +1,55 @@ +# 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 .service_replica_properties import ServiceReplicaProperties + + +class ServiceReplicaDescription(ServiceReplicaProperties): + """Describes a replica of a service resource. + + All required parameters must be populated in order to send to Azure. + + :param os_type: Required. The operation system required by the code in + service. Possible values include: 'Linux', 'Windows' + :type os_type: str or + ~azure.mgmt.servicefabricmesh.models.OperatingSystemType + :param code_packages: Required. Describes the set of code packages that + forms the service. A code package describes the container and the + properties for running it. All the code packages are started together on + the same host and share the same context (network, process etc.). + :type code_packages: + list[~azure.mgmt.servicefabricmesh.models.ContainerCodePackageProperties] + :param network_refs: The names of the private networks that this service + needs to be part of. + :type network_refs: list[~azure.mgmt.servicefabricmesh.models.NetworkRef] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.mgmt.servicefabricmesh.models.DiagnosticsRef + :param replica_name: Required. Name of the replica. + :type replica_name: str + """ + + _validation = { + 'os_type': {'required': True}, + 'code_packages': {'required': True}, + 'replica_name': {'required': True}, + } + + _attribute_map = { + 'os_type': {'key': 'osType', 'type': 'str'}, + 'code_packages': {'key': 'codePackages', 'type': '[ContainerCodePackageProperties]'}, + 'network_refs': {'key': 'networkRefs', 'type': '[NetworkRef]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + 'replica_name': {'key': 'replicaName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceReplicaDescription, self).__init__(**kwargs) + self.replica_name = kwargs.get('replica_name', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_description_paged.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_description_paged.py new file mode 100644 index 000000000000..21e8c05cea54 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_description_paged.py @@ -0,0 +1,27 @@ +# 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 msrest.paging import Paged + + +class ServiceReplicaDescriptionPaged(Paged): + """ + A paging container for iterating over a list of :class:`ServiceReplicaDescription ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ServiceReplicaDescription]'} + } + + def __init__(self, *args, **kwargs): + + super(ServiceReplicaDescriptionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_description_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_description_py3.py new file mode 100644 index 000000000000..66ff9b387f69 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_description_py3.py @@ -0,0 +1,55 @@ +# 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 .service_replica_properties_py3 import ServiceReplicaProperties + + +class ServiceReplicaDescription(ServiceReplicaProperties): + """Describes a replica of a service resource. + + All required parameters must be populated in order to send to Azure. + + :param os_type: Required. The operation system required by the code in + service. Possible values include: 'Linux', 'Windows' + :type os_type: str or + ~azure.mgmt.servicefabricmesh.models.OperatingSystemType + :param code_packages: Required. Describes the set of code packages that + forms the service. A code package describes the container and the + properties for running it. All the code packages are started together on + the same host and share the same context (network, process etc.). + :type code_packages: + list[~azure.mgmt.servicefabricmesh.models.ContainerCodePackageProperties] + :param network_refs: The names of the private networks that this service + needs to be part of. + :type network_refs: list[~azure.mgmt.servicefabricmesh.models.NetworkRef] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.mgmt.servicefabricmesh.models.DiagnosticsRef + :param replica_name: Required. Name of the replica. + :type replica_name: str + """ + + _validation = { + 'os_type': {'required': True}, + 'code_packages': {'required': True}, + 'replica_name': {'required': True}, + } + + _attribute_map = { + 'os_type': {'key': 'osType', 'type': 'str'}, + 'code_packages': {'key': 'codePackages', 'type': '[ContainerCodePackageProperties]'}, + 'network_refs': {'key': 'networkRefs', 'type': '[NetworkRef]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + 'replica_name': {'key': 'replicaName', 'type': 'str'}, + } + + def __init__(self, *, os_type, code_packages, replica_name: str, network_refs=None, diagnostics=None, **kwargs) -> None: + super(ServiceReplicaDescription, self).__init__(os_type=os_type, code_packages=code_packages, network_refs=network_refs, diagnostics=diagnostics, **kwargs) + self.replica_name = replica_name diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_properties.py new file mode 100644 index 000000000000..e5e5a3811ba8 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_properties.py @@ -0,0 +1,54 @@ +# 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 msrest.serialization import Model + + +class ServiceReplicaProperties(Model): + """Describes the properties of a service replica. + + All required parameters must be populated in order to send to Azure. + + :param os_type: Required. The operation system required by the code in + service. Possible values include: 'Linux', 'Windows' + :type os_type: str or + ~azure.mgmt.servicefabricmesh.models.OperatingSystemType + :param code_packages: Required. Describes the set of code packages that + forms the service. A code package describes the container and the + properties for running it. All the code packages are started together on + the same host and share the same context (network, process etc.). + :type code_packages: + list[~azure.mgmt.servicefabricmesh.models.ContainerCodePackageProperties] + :param network_refs: The names of the private networks that this service + needs to be part of. + :type network_refs: list[~azure.mgmt.servicefabricmesh.models.NetworkRef] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.mgmt.servicefabricmesh.models.DiagnosticsRef + """ + + _validation = { + 'os_type': {'required': True}, + 'code_packages': {'required': True}, + } + + _attribute_map = { + 'os_type': {'key': 'osType', 'type': 'str'}, + 'code_packages': {'key': 'codePackages', 'type': '[ContainerCodePackageProperties]'}, + 'network_refs': {'key': 'networkRefs', 'type': '[NetworkRef]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + } + + def __init__(self, **kwargs): + super(ServiceReplicaProperties, self).__init__(**kwargs) + self.os_type = kwargs.get('os_type', None) + self.code_packages = kwargs.get('code_packages', None) + self.network_refs = kwargs.get('network_refs', None) + self.diagnostics = kwargs.get('diagnostics', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_properties_py3.py new file mode 100644 index 000000000000..0ce7abcbcca1 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_replica_properties_py3.py @@ -0,0 +1,54 @@ +# 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 msrest.serialization import Model + + +class ServiceReplicaProperties(Model): + """Describes the properties of a service replica. + + All required parameters must be populated in order to send to Azure. + + :param os_type: Required. The operation system required by the code in + service. Possible values include: 'Linux', 'Windows' + :type os_type: str or + ~azure.mgmt.servicefabricmesh.models.OperatingSystemType + :param code_packages: Required. Describes the set of code packages that + forms the service. A code package describes the container and the + properties for running it. All the code packages are started together on + the same host and share the same context (network, process etc.). + :type code_packages: + list[~azure.mgmt.servicefabricmesh.models.ContainerCodePackageProperties] + :param network_refs: The names of the private networks that this service + needs to be part of. + :type network_refs: list[~azure.mgmt.servicefabricmesh.models.NetworkRef] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.mgmt.servicefabricmesh.models.DiagnosticsRef + """ + + _validation = { + 'os_type': {'required': True}, + 'code_packages': {'required': True}, + } + + _attribute_map = { + 'os_type': {'key': 'osType', 'type': 'str'}, + 'code_packages': {'key': 'codePackages', 'type': '[ContainerCodePackageProperties]'}, + 'network_refs': {'key': 'networkRefs', 'type': '[NetworkRef]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + } + + def __init__(self, *, os_type, code_packages, network_refs=None, diagnostics=None, **kwargs) -> None: + super(ServiceReplicaProperties, self).__init__(**kwargs) + self.os_type = os_type + self.code_packages = code_packages + self.network_refs = network_refs + self.diagnostics = diagnostics diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_resource_description.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_resource_description.py new file mode 100644 index 000000000000..a5b1092ab269 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_resource_description.py @@ -0,0 +1,116 @@ +# 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 .managed_proxy_resource import ManagedProxyResource + + +class ServiceResourceDescription(ManagedProxyResource): + """This type describes a service resource. + + 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 identifier for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :param name: The name of the resource + :type name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :ivar provisioning_state: State of the resource. + :vartype provisioning_state: str + :param os_type: Required. The operation system required by the code in + service. Possible values include: 'Linux', 'Windows' + :type os_type: str or + ~azure.mgmt.servicefabricmesh.models.OperatingSystemType + :param code_packages: Required. Describes the set of code packages that + forms the service. A code package describes the container and the + properties for running it. All the code packages are started together on + the same host and share the same context (network, process etc.). + :type code_packages: + list[~azure.mgmt.servicefabricmesh.models.ContainerCodePackageProperties] + :param network_refs: The names of the private networks that this service + needs to be part of. + :type network_refs: list[~azure.mgmt.servicefabricmesh.models.NetworkRef] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.mgmt.servicefabricmesh.models.DiagnosticsRef + :param description: User readable description of the service. + :type description: str + :param replica_count: The number of replicas of the service to create. + Defaults to 1 if not specified. + :type replica_count: int + :param auto_scaling_policies: Auto scaling policies + :type auto_scaling_policies: + list[~azure.mgmt.servicefabricmesh.models.AutoScalingPolicy] + :ivar status: Status of the service. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the service. + :vartype status_details: str + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or + ~azure.mgmt.servicefabricmesh.models.HealthState + :ivar unhealthy_evaluation: When the service's health state is not 'Ok', + this additional details from service fabric Health Manager for the user to + know why the service is marked unhealthy. + :vartype unhealthy_evaluation: str + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'os_type': {'required': True}, + 'code_packages': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'os_type': {'key': 'properties.osType', 'type': 'str'}, + 'code_packages': {'key': 'properties.codePackages', 'type': '[ContainerCodePackageProperties]'}, + 'network_refs': {'key': 'properties.networkRefs', 'type': '[NetworkRef]'}, + 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsRef'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'replica_count': {'key': 'properties.replicaCount', 'type': 'int'}, + 'auto_scaling_policies': {'key': 'properties.autoScalingPolicies', 'type': '[AutoScalingPolicy]'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceResourceDescription, self).__init__(**kwargs) + self.provisioning_state = None + self.os_type = kwargs.get('os_type', None) + self.code_packages = kwargs.get('code_packages', None) + self.network_refs = kwargs.get('network_refs', None) + self.diagnostics = kwargs.get('diagnostics', None) + self.description = kwargs.get('description', None) + self.replica_count = kwargs.get('replica_count', None) + self.auto_scaling_policies = kwargs.get('auto_scaling_policies', None) + self.status = None + self.status_details = None + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_resource_description_paged.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_resource_description_paged.py new file mode 100644 index 000000000000..c0faa1ff3522 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_resource_description_paged.py @@ -0,0 +1,27 @@ +# 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 msrest.paging import Paged + + +class ServiceResourceDescriptionPaged(Paged): + """ + A paging container for iterating over a list of :class:`ServiceResourceDescription ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ServiceResourceDescription]'} + } + + def __init__(self, *args, **kwargs): + + super(ServiceResourceDescriptionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_resource_description_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_resource_description_py3.py new file mode 100644 index 000000000000..75cacc81b425 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_resource_description_py3.py @@ -0,0 +1,116 @@ +# 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 .managed_proxy_resource_py3 import ManagedProxyResource + + +class ServiceResourceDescription(ManagedProxyResource): + """This type describes a service resource. + + 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 identifier for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :param name: The name of the resource + :type name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :ivar provisioning_state: State of the resource. + :vartype provisioning_state: str + :param os_type: Required. The operation system required by the code in + service. Possible values include: 'Linux', 'Windows' + :type os_type: str or + ~azure.mgmt.servicefabricmesh.models.OperatingSystemType + :param code_packages: Required. Describes the set of code packages that + forms the service. A code package describes the container and the + properties for running it. All the code packages are started together on + the same host and share the same context (network, process etc.). + :type code_packages: + list[~azure.mgmt.servicefabricmesh.models.ContainerCodePackageProperties] + :param network_refs: The names of the private networks that this service + needs to be part of. + :type network_refs: list[~azure.mgmt.servicefabricmesh.models.NetworkRef] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.mgmt.servicefabricmesh.models.DiagnosticsRef + :param description: User readable description of the service. + :type description: str + :param replica_count: The number of replicas of the service to create. + Defaults to 1 if not specified. + :type replica_count: int + :param auto_scaling_policies: Auto scaling policies + :type auto_scaling_policies: + list[~azure.mgmt.servicefabricmesh.models.AutoScalingPolicy] + :ivar status: Status of the service. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the service. + :vartype status_details: str + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or + ~azure.mgmt.servicefabricmesh.models.HealthState + :ivar unhealthy_evaluation: When the service's health state is not 'Ok', + this additional details from service fabric Health Manager for the user to + know why the service is marked unhealthy. + :vartype unhealthy_evaluation: str + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'os_type': {'required': True}, + 'code_packages': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'os_type': {'key': 'properties.osType', 'type': 'str'}, + 'code_packages': {'key': 'properties.codePackages', 'type': '[ContainerCodePackageProperties]'}, + 'network_refs': {'key': 'properties.networkRefs', 'type': '[NetworkRef]'}, + 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsRef'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'replica_count': {'key': 'properties.replicaCount', 'type': 'int'}, + 'auto_scaling_policies': {'key': 'properties.autoScalingPolicies', 'type': '[AutoScalingPolicy]'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'}, + } + + def __init__(self, *, os_type, code_packages, name: str=None, network_refs=None, diagnostics=None, description: str=None, replica_count: int=None, auto_scaling_policies=None, **kwargs) -> None: + super(ServiceResourceDescription, self).__init__(name=name, **kwargs) + self.provisioning_state = None + self.os_type = os_type + self.code_packages = code_packages + self.network_refs = network_refs + self.diagnostics = diagnostics + self.description = description + self.replica_count = replica_count + self.auto_scaling_policies = auto_scaling_policies + self.status = None + self.status_details = None + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/setting.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/setting.py new file mode 100644 index 000000000000..5e776e08ed1a --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/setting.py @@ -0,0 +1,34 @@ +# 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 msrest.serialization import Model + + +class Setting(Model): + """Describes a setting for the container. The setting file path can be fetched + from environment variable "Fabric_SettingPath". The path for Windows + container is "C:\\secrets". The path for Linux container is "/var/secrets". + + :param name: The name of the setting. + :type name: str + :param value: The value of the setting. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Setting, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/setting_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/setting_py3.py new file mode 100644 index 000000000000..493e42d157a2 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/setting_py3.py @@ -0,0 +1,34 @@ +# 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 msrest.serialization import Model + + +class Setting(Model): + """Describes a setting for the container. The setting file path can be fetched + from environment variable "Fabric_SettingPath". The path for Windows + container is "C:\\secrets". The path for Linux container is "/var/secrets". + + :param name: The name of the setting. + :type name: str + :param value: The value of the setting. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, value: str=None, **kwargs) -> None: + super(Setting, self).__init__(**kwargs) + self.name = name + self.value = value diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tcp_config.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tcp_config.py new file mode 100644 index 000000000000..e1995b833ea2 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tcp_config.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class TcpConfig(Model): + """Describes the tcp configuration for external connectivity for this network. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. tcp gateway config name. + :type name: str + :param port: Required. Specifies the port at which the service endpoint + below needs to be exposed. + :type port: int + :param destination: Required. Describes destination endpoint for routing + traffic. + :type destination: ~azure.mgmt.servicefabricmesh.models.GatewayDestination + """ + + _validation = { + 'name': {'required': True}, + 'port': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + 'destination': {'key': 'destination', 'type': 'GatewayDestination'}, + } + + def __init__(self, **kwargs): + super(TcpConfig, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.port = kwargs.get('port', None) + self.destination = kwargs.get('destination', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tcp_config_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tcp_config_py3.py new file mode 100644 index 000000000000..609a1626c716 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tcp_config_py3.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class TcpConfig(Model): + """Describes the tcp configuration for external connectivity for this network. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. tcp gateway config name. + :type name: str + :param port: Required. Specifies the port at which the service endpoint + below needs to be exposed. + :type port: int + :param destination: Required. Describes destination endpoint for routing + traffic. + :type destination: ~azure.mgmt.servicefabricmesh.models.GatewayDestination + """ + + _validation = { + 'name': {'required': True}, + 'port': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + 'destination': {'key': 'destination', 'type': 'GatewayDestination'}, + } + + def __init__(self, *, name: str, port: int, destination, **kwargs) -> None: + super(TcpConfig, self).__init__(**kwargs) + self.name = name + self.port = port + self.destination = destination diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tracked_resource.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tracked_resource.py new file mode 100644 index 000000000000..ac59f91c7133 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tracked_resource.py @@ -0,0 +1,56 @@ +# 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 .resource import Resource + + +class TrackedResource(Resource): + """The resource model definition for Azure Resource Manager tracked top-level + resource. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TrackedResource, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.location = kwargs.get('location', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tracked_resource_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tracked_resource_py3.py new file mode 100644 index 000000000000..3862a4cd08f1 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/tracked_resource_py3.py @@ -0,0 +1,56 @@ +# 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 .resource_py3 import Resource + + +class TrackedResource(Resource): + """The resource model definition for Azure Resource Manager tracked top-level + resource. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(TrackedResource, self).__init__(**kwargs) + self.tags = tags + self.location = location diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_properties.py new file mode 100644 index 000000000000..a5e3f5b656cd --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_properties.py @@ -0,0 +1,62 @@ +# 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 msrest.serialization import Model + + +class VolumeProperties(Model): + """Describes properties of a volume resource. + + 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 description: User readable description of the volume. + :type description: str + :ivar status: Status of the volume. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the volume. + :vartype status_details: str + :ivar provider: Required. Provider of the volume. Default value: + "SFAzureFile" . + :vartype provider: str + :param azure_file_parameters: This type describes a volume provided by an + Azure Files file share. + :type azure_file_parameters: + ~azure.mgmt.servicefabricmesh.models.VolumeProviderParametersAzureFile + """ + + _validation = { + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'provider': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'azure_file_parameters': {'key': 'azureFileParameters', 'type': 'VolumeProviderParametersAzureFile'}, + } + + provider = "SFAzureFile" + + def __init__(self, **kwargs): + super(VolumeProperties, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.status = None + self.status_details = None + self.azure_file_parameters = kwargs.get('azure_file_parameters', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_properties_py3.py new file mode 100644 index 000000000000..612e3d89fd35 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_properties_py3.py @@ -0,0 +1,62 @@ +# 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 msrest.serialization import Model + + +class VolumeProperties(Model): + """Describes properties of a volume resource. + + 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 description: User readable description of the volume. + :type description: str + :ivar status: Status of the volume. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the volume. + :vartype status_details: str + :ivar provider: Required. Provider of the volume. Default value: + "SFAzureFile" . + :vartype provider: str + :param azure_file_parameters: This type describes a volume provided by an + Azure Files file share. + :type azure_file_parameters: + ~azure.mgmt.servicefabricmesh.models.VolumeProviderParametersAzureFile + """ + + _validation = { + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'provider': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'azure_file_parameters': {'key': 'azureFileParameters', 'type': 'VolumeProviderParametersAzureFile'}, + } + + provider = "SFAzureFile" + + def __init__(self, *, description: str=None, azure_file_parameters=None, **kwargs) -> None: + super(VolumeProperties, self).__init__(**kwargs) + self.description = description + self.status = None + self.status_details = None + self.azure_file_parameters = azure_file_parameters diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_provider_parameters_azure_file.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_provider_parameters_azure_file.py new file mode 100644 index 000000000000..c10943e94cf4 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_provider_parameters_azure_file.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class VolumeProviderParametersAzureFile(Model): + """This type describes a volume provided by an Azure Files file share. + + All required parameters must be populated in order to send to Azure. + + :param account_name: Required. Name of the Azure storage account for the + File Share. + :type account_name: str + :param account_key: Access key of the Azure storage account for the File + Share. + :type account_key: str + :param share_name: Required. Name of the Azure Files file share that + provides storage for the volume. + :type share_name: str + """ + + _validation = { + 'account_name': {'required': True}, + 'share_name': {'required': True}, + } + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'account_key': {'key': 'accountKey', 'type': 'str'}, + 'share_name': {'key': 'shareName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VolumeProviderParametersAzureFile, self).__init__(**kwargs) + self.account_name = kwargs.get('account_name', None) + self.account_key = kwargs.get('account_key', None) + self.share_name = kwargs.get('share_name', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_provider_parameters_azure_file_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_provider_parameters_azure_file_py3.py new file mode 100644 index 000000000000..c8fea05b1ef8 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_provider_parameters_azure_file_py3.py @@ -0,0 +1,46 @@ +# 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 msrest.serialization import Model + + +class VolumeProviderParametersAzureFile(Model): + """This type describes a volume provided by an Azure Files file share. + + All required parameters must be populated in order to send to Azure. + + :param account_name: Required. Name of the Azure storage account for the + File Share. + :type account_name: str + :param account_key: Access key of the Azure storage account for the File + Share. + :type account_key: str + :param share_name: Required. Name of the Azure Files file share that + provides storage for the volume. + :type share_name: str + """ + + _validation = { + 'account_name': {'required': True}, + 'share_name': {'required': True}, + } + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'account_key': {'key': 'accountKey', 'type': 'str'}, + 'share_name': {'key': 'shareName', 'type': 'str'}, + } + + def __init__(self, *, account_name: str, share_name: str, account_key: str=None, **kwargs) -> None: + super(VolumeProviderParametersAzureFile, self).__init__(**kwargs) + self.account_name = account_name + self.account_key = account_key + self.share_name = share_name diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_reference.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_reference.py new file mode 100644 index 000000000000..5896c0e87923 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_reference.py @@ -0,0 +1,45 @@ +# 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 msrest.serialization import Model + + +class VolumeReference(Model): + """Describes a reference to a volume resource. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the volume being referenced. + :type name: str + :param read_only: The flag indicating whether the volume is read only. + Default is 'false'. + :type read_only: bool + :param destination_path: Required. The path within the container at which + the volume should be mounted. Only valid path characters are allowed. + :type destination_path: str + """ + + _validation = { + 'name': {'required': True}, + 'destination_path': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'destination_path': {'key': 'destinationPath', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VolumeReference, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.read_only = kwargs.get('read_only', None) + self.destination_path = kwargs.get('destination_path', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_reference_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_reference_py3.py new file mode 100644 index 000000000000..78adefae1e39 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_reference_py3.py @@ -0,0 +1,45 @@ +# 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 msrest.serialization import Model + + +class VolumeReference(Model): + """Describes a reference to a volume resource. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the volume being referenced. + :type name: str + :param read_only: The flag indicating whether the volume is read only. + Default is 'false'. + :type read_only: bool + :param destination_path: Required. The path within the container at which + the volume should be mounted. Only valid path characters are allowed. + :type destination_path: str + """ + + _validation = { + 'name': {'required': True}, + 'destination_path': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'destination_path': {'key': 'destinationPath', 'type': 'str'}, + } + + def __init__(self, *, name: str, destination_path: str, read_only: bool=None, **kwargs) -> None: + super(VolumeReference, self).__init__(**kwargs) + self.name = name + self.read_only = read_only + self.destination_path = destination_path diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_resource_description.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_resource_description.py new file mode 100644 index 000000000000..5c4d9413919d --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_resource_description.py @@ -0,0 +1,88 @@ +# 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 .tracked_resource import TrackedResource + + +class VolumeResourceDescription(TrackedResource): + """This type describes a volume resource. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :ivar provisioning_state: State of the resource. + :vartype provisioning_state: str + :param description: User readable description of the volume. + :type description: str + :ivar status: Status of the volume. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the volume. + :vartype status_details: str + :ivar provider: Required. Provider of the volume. Default value: + "SFAzureFile" . + :vartype provider: str + :param azure_file_parameters: This type describes a volume provided by an + Azure Files file share. + :type azure_file_parameters: + ~azure.mgmt.servicefabricmesh.models.VolumeProviderParametersAzureFile + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'provider': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'provider': {'key': 'properties.provider', 'type': 'str'}, + 'azure_file_parameters': {'key': 'properties.azureFileParameters', 'type': 'VolumeProviderParametersAzureFile'}, + } + + provider = "SFAzureFile" + + def __init__(self, **kwargs): + super(VolumeResourceDescription, self).__init__(**kwargs) + self.provisioning_state = None + self.description = kwargs.get('description', None) + self.status = None + self.status_details = None + self.azure_file_parameters = kwargs.get('azure_file_parameters', None) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_resource_description_paged.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_resource_description_paged.py new file mode 100644 index 000000000000..606c2f28f7ee --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_resource_description_paged.py @@ -0,0 +1,27 @@ +# 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 msrest.paging import Paged + + +class VolumeResourceDescriptionPaged(Paged): + """ + A paging container for iterating over a list of :class:`VolumeResourceDescription ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VolumeResourceDescription]'} + } + + def __init__(self, *args, **kwargs): + + super(VolumeResourceDescriptionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_resource_description_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_resource_description_py3.py new file mode 100644 index 000000000000..80f051a61ede --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/volume_resource_description_py3.py @@ -0,0 +1,88 @@ +# 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 .tracked_resource_py3 import TrackedResource + + +class VolumeResourceDescription(TrackedResource): + """This type describes a volume resource. + + 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 identifier 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. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :ivar provisioning_state: State of the resource. + :vartype provisioning_state: str + :param description: User readable description of the volume. + :type description: str + :ivar status: Status of the volume. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.mgmt.servicefabricmesh.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the volume. + :vartype status_details: str + :ivar provider: Required. Provider of the volume. Default value: + "SFAzureFile" . + :vartype provider: str + :param azure_file_parameters: This type describes a volume provided by an + Azure Files file share. + :type azure_file_parameters: + ~azure.mgmt.servicefabricmesh.models.VolumeProviderParametersAzureFile + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'provider': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'provider': {'key': 'properties.provider', 'type': 'str'}, + 'azure_file_parameters': {'key': 'properties.azureFileParameters', 'type': 'VolumeProviderParametersAzureFile'}, + } + + provider = "SFAzureFile" + + def __init__(self, *, location: str, tags=None, description: str=None, azure_file_parameters=None, **kwargs) -> None: + super(VolumeResourceDescription, self).__init__(tags=tags, location=location, **kwargs) + self.provisioning_state = None + self.description = description + self.status = None + self.status_details = None + self.azure_file_parameters = azure_file_parameters diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/__init__.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/__init__.py new file mode 100644 index 000000000000..72eb1e5e55cc --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/__init__.py @@ -0,0 +1,34 @@ +# 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 .operations import Operations +from .secret_operations import SecretOperations +from .secret_value_operations import SecretValueOperations +from .volume_operations import VolumeOperations +from .network_operations import NetworkOperations +from .gateway_operations import GatewayOperations +from .application_operations import ApplicationOperations +from .service_operations import ServiceOperations +from .service_replica_operations import ServiceReplicaOperations +from .code_package_operations import CodePackageOperations + +__all__ = [ + 'Operations', + 'SecretOperations', + 'SecretValueOperations', + 'VolumeOperations', + 'NetworkOperations', + 'GatewayOperations', + 'ApplicationOperations', + 'ServiceOperations', + 'ServiceReplicaOperations', + 'CodePackageOperations', +] diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/application_operations.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/application_operations.py new file mode 100644 index 000000000000..c4e3bbf08c24 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/application_operations.py @@ -0,0 +1,372 @@ +# 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 uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class ApplicationOperations(object): + """ApplicationOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be `2018-09-01-preview`. Constant value: "2018-09-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-09-01-preview" + + self.config = config + + def create( + self, resource_group_name, application_resource_name, application_resource_description, custom_headers=None, raw=False, **operation_config): + """Creates or updates an application resource. + + Creates an application resource with the specified name, description + and properties. If an application resource with the same name exists, + then it is updated with the specified description and properties. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param application_resource_description: Description for creating a + Application resource. + :type application_resource_description: + ~azure.mgmt.servicefabricmesh.models.ApplicationResourceDescription + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ApplicationResourceDescription or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.servicefabricmesh.models.ApplicationResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(application_resource_description, 'ApplicationResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationResourceDescription', response) + if response.status_code == 201: + deserialized = self._deserialize('ApplicationResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}'} + + def get( + self, resource_group_name, application_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the application resource with the given name. + + Gets the information about the application resource with the given + name. The information include the description and other properties of + the application. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ApplicationResourceDescription or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.servicefabricmesh.models.ApplicationResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}'} + + def delete( + self, resource_group_name, application_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the application resource. + + Deletes the application resource identified by the name. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorModelException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the application resources in a given resource group. + + Gets the information about all application resources in a given + resource group. The information include the description and other + properties of the Application. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ApplicationResourceDescription + :rtype: + ~azure.mgmt.servicefabricmesh.models.ApplicationResourceDescriptionPaged[~azure.mgmt.servicefabricmesh.models.ApplicationResourceDescription] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.ApplicationResourceDescriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ApplicationResourceDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications'} + + def list_by_subscription( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the application resources in a given subscription. + + Gets the information about all application resources in a given + resource group. The information include the description and other + properties of the application. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ApplicationResourceDescription + :rtype: + ~azure.mgmt.servicefabricmesh.models.ApplicationResourceDescriptionPaged[~azure.mgmt.servicefabricmesh.models.ApplicationResourceDescription] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.ApplicationResourceDescriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ApplicationResourceDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/applications'} diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/code_package_operations.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/code_package_operations.py new file mode 100644 index 000000000000..8d3a7473d37c --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/code_package_operations.py @@ -0,0 +1,115 @@ +# 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 uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class CodePackageOperations(object): + """CodePackageOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be `2018-09-01-preview`. Constant value: "2018-09-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-09-01-preview" + + self.config = config + + def get_container_logs( + self, resource_group_name, application_resource_name, service_resource_name, replica_name, code_package_name, tail=None, custom_headers=None, raw=False, **operation_config): + """Gets the logs from the container. + + Gets the logs for the container of the specified code package of the + service replica. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param service_resource_name: The identity of the service. + :type service_resource_name: str + :param replica_name: Service Fabric replica name. + :type replica_name: str + :param code_package_name: The name of code package of the service. + :type code_package_name: str + :param tail: Number of lines to show from the end of the logs. Default + is 100. + :type tail: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ContainerLogs or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.servicefabricmesh.models.ContainerLogs or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.get_container_logs.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), + 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True), + 'replicaName': self._serialize.url("replica_name", replica_name, 'str', skip_quote=True), + 'codePackageName': self._serialize.url("code_package_name", code_package_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if tail is not None: + query_parameters['tail'] = self._serialize.query("tail", tail, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ContainerLogs', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_container_logs.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}/services/{serviceResourceName}/replicas/{replicaName}/codePackages/{codePackageName}/logs'} diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/gateway_operations.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/gateway_operations.py new file mode 100644 index 000000000000..41f828eac298 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/gateway_operations.py @@ -0,0 +1,372 @@ +# 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 uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class GatewayOperations(object): + """GatewayOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be `2018-09-01-preview`. Constant value: "2018-09-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-09-01-preview" + + self.config = config + + def create( + self, resource_group_name, gateway_resource_name, gateway_resource_description, custom_headers=None, raw=False, **operation_config): + """Creates or updates a gateway resource. + + Creates a gateway resource with the specified name, description and + properties. If a gateway resource with the same name exists, then it is + updated with the specified description and properties. Use gateway + resources to create a gateway for public connectivity for services + within your application. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param gateway_resource_name: The identity of the gateway. + :type gateway_resource_name: str + :param gateway_resource_description: Description for creating a + Gateway resource. + :type gateway_resource_description: + ~azure.mgmt.servicefabricmesh.models.GatewayResourceDescription + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: GatewayResourceDescription or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.servicefabricmesh.models.GatewayResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayResourceName': self._serialize.url("gateway_resource_name", gateway_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(gateway_resource_description, 'GatewayResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GatewayResourceDescription', response) + if response.status_code == 201: + deserialized = self._deserialize('GatewayResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways/{gatewayResourceName}'} + + def get( + self, resource_group_name, gateway_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the gateway resource with the given name. + + Gets the information about the gateway resource with the given name. + The information include the description and other properties of the + gateway. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param gateway_resource_name: The identity of the gateway. + :type gateway_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: GatewayResourceDescription or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.servicefabricmesh.models.GatewayResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayResourceName': self._serialize.url("gateway_resource_name", gateway_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GatewayResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways/{gatewayResourceName}'} + + def delete( + self, resource_group_name, gateway_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the gateway resource. + + Deletes the gateway resource identified by the name. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param gateway_resource_name: The identity of the gateway. + :type gateway_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayResourceName': self._serialize.url("gateway_resource_name", gateway_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorModelException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways/{gatewayResourceName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the gateway resources in a given resource group. + + Gets the information about all gateway resources in a given resource + group. The information include the description and other properties of + the Gateway. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of GatewayResourceDescription + :rtype: + ~azure.mgmt.servicefabricmesh.models.GatewayResourceDescriptionPaged[~azure.mgmt.servicefabricmesh.models.GatewayResourceDescription] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.GatewayResourceDescriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.GatewayResourceDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/gateways'} + + def list_by_subscription( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the gateway resources in a given subscription. + + Gets the information about all gateway resources in a given resource + group. The information include the description and other properties of + the gateway. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of GatewayResourceDescription + :rtype: + ~azure.mgmt.servicefabricmesh.models.GatewayResourceDescriptionPaged[~azure.mgmt.servicefabricmesh.models.GatewayResourceDescription] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.GatewayResourceDescriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.GatewayResourceDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/gateways'} diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/network_operations.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/network_operations.py new file mode 100644 index 000000000000..fc49e5c5ec99 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/network_operations.py @@ -0,0 +1,370 @@ +# 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 uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class NetworkOperations(object): + """NetworkOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be `2018-09-01-preview`. Constant value: "2018-09-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-09-01-preview" + + self.config = config + + def create( + self, resource_group_name, network_resource_name, network_resource_description, custom_headers=None, raw=False, **operation_config): + """Creates or updates a network resource. + + Creates a network resource with the specified name, description and + properties. If a network resource with the same name exists, then it is + updated with the specified description and properties. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param network_resource_name: The identity of the network. + :type network_resource_name: str + :param network_resource_description: Description for creating a + Network resource. + :type network_resource_description: + ~azure.mgmt.servicefabricmesh.models.NetworkResourceDescription + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkResourceDescription or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.servicefabricmesh.models.NetworkResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkResourceName': self._serialize.url("network_resource_name", network_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(network_resource_description, 'NetworkResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkResourceDescription', response) + if response.status_code == 201: + deserialized = self._deserialize('NetworkResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/networks/{networkResourceName}'} + + def get( + self, resource_group_name, network_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the network resource with the given name. + + Gets the information about the network resource with the given name. + The information include the description and other properties of the + network. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param network_resource_name: The identity of the network. + :type network_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkResourceDescription or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.servicefabricmesh.models.NetworkResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkResourceName': self._serialize.url("network_resource_name", network_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/networks/{networkResourceName}'} + + def delete( + self, resource_group_name, network_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the network resource. + + Deletes the network resource identified by the name. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param network_resource_name: The identity of the network. + :type network_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkResourceName': self._serialize.url("network_resource_name", network_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorModelException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/networks/{networkResourceName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the network resources in a given resource group. + + Gets the information about all network resources in a given resource + group. The information include the description and other properties of + the Network. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkResourceDescription + :rtype: + ~azure.mgmt.servicefabricmesh.models.NetworkResourceDescriptionPaged[~azure.mgmt.servicefabricmesh.models.NetworkResourceDescription] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.NetworkResourceDescriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkResourceDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/networks'} + + def list_by_subscription( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the network resources in a given subscription. + + Gets the information about all network resources in a given resource + group. The information include the description and other properties of + the network. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkResourceDescription + :rtype: + ~azure.mgmt.servicefabricmesh.models.NetworkResourceDescriptionPaged[~azure.mgmt.servicefabricmesh.models.NetworkResourceDescription] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.NetworkResourceDescriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkResourceDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/networks'} diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/operations.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/operations.py new file mode 100644 index 000000000000..57718fc759f8 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/operations.py @@ -0,0 +1,99 @@ +# 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 uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class Operations(object): + """Operations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be `2018-09-01-preview`. Constant value: "2018-09-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-09-01-preview" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all of the available operations. + + Lists all the available operations provided by Service Fabric SeaBreeze + resource provider. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of OperationResult + :rtype: + ~azure.mgmt.servicefabricmesh.models.OperationResultPaged[~azure.mgmt.servicefabricmesh.models.OperationResult] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.OperationResultPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.OperationResultPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.ServiceFabricMesh/operations'} diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/secret_operations.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/secret_operations.py new file mode 100644 index 000000000000..8b1c2c13e7a7 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/secret_operations.py @@ -0,0 +1,367 @@ +# 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 uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class SecretOperations(object): + """SecretOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be `2018-09-01-preview`. Constant value: "2018-09-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-09-01-preview" + + self.config = config + + def create( + self, resource_group_name, secret_resource_name, secret_resource_description, custom_headers=None, raw=False, **operation_config): + """Creates or updates a secret resource. + + Creates a secret resource with the specified name, description and + properties. If a secret resource with the same name exists, then it is + updated with the specified description and properties. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param secret_resource_description: Description for creating a secret + resource. + :type secret_resource_description: + ~azure.mgmt.servicefabricmesh.models.SecretResourceDescription + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SecretResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.servicefabricmesh.models.SecretResourceDescription + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(secret_resource_description, 'SecretResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecretResourceDescription', response) + if response.status_code == 201: + deserialized = self._deserialize('SecretResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}'} + + def get( + self, resource_group_name, secret_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the secret resource with the given name. + + Gets the information about the secret resource with the given name. The + information include the description and other properties of the secret. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SecretResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.servicefabricmesh.models.SecretResourceDescription + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecretResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}'} + + def delete( + self, resource_group_name, secret_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the secret resource. + + Deletes the secret resource identified by the name. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorModelException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the secret resources in a given resource group. + + Gets the information about all secret resources in a given resource + group. The information include the description and other properties of + the Secret. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of SecretResourceDescription + :rtype: + ~azure.mgmt.servicefabricmesh.models.SecretResourceDescriptionPaged[~azure.mgmt.servicefabricmesh.models.SecretResourceDescription] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.SecretResourceDescriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SecretResourceDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets'} + + def list_by_subscription( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the secret resources in a given subscription. + + Gets the information about all secret resources in a given resource + group. The information include the description and other properties of + the secret. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of SecretResourceDescription + :rtype: + ~azure.mgmt.servicefabricmesh.models.SecretResourceDescriptionPaged[~azure.mgmt.servicefabricmesh.models.SecretResourceDescription] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.SecretResourceDescriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SecretResourceDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/secrets'} diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/secret_value_operations.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/secret_value_operations.py new file mode 100644 index 000000000000..1e286fded435 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/secret_value_operations.py @@ -0,0 +1,390 @@ +# 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 uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class SecretValueOperations(object): + """SecretValueOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be `2018-09-01-preview`. Constant value: "2018-09-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-09-01-preview" + + self.config = config + + def create( + self, resource_group_name, secret_resource_name, secret_value_resource_name, secret_value_resource_description, custom_headers=None, raw=False, **operation_config): + """Adds the specified value as a new version of the specified secret + resource. + + Creates a new value of the specified secret resource. The name of the + value is typically the version identifier. Once created the value + cannot be changed. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param secret_value_resource_name: The name of the secret resource + value which is typically the version identifier for the value. + :type secret_value_resource_name: str + :param secret_value_resource_description: Description for creating a + value of a secret resource. + :type secret_value_resource_description: + ~azure.mgmt.servicefabricmesh.models.SecretValueResourceDescription + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SecretValueResourceDescription or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.servicefabricmesh.models.SecretValueResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True), + 'secretValueResourceName': self._serialize.url("secret_value_resource_name", secret_value_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(secret_value_resource_description, 'SecretValueResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecretValueResourceDescription', response) + if response.status_code == 201: + deserialized = self._deserialize('SecretValueResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values/{secretValueResourceName}'} + + def get( + self, resource_group_name, secret_resource_name, secret_value_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified secret value resource. + + Get the information about the specified named secret value resources. + The information does not include the actual value of the secret. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param secret_value_resource_name: The name of the secret resource + value which is typically the version identifier for the value. + :type secret_value_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SecretValueResourceDescription or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.servicefabricmesh.models.SecretValueResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True), + 'secretValueResourceName': self._serialize.url("secret_value_resource_name", secret_value_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecretValueResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values/{secretValueResourceName}'} + + def delete( + self, resource_group_name, secret_resource_name, secret_value_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified value of the named secret resource. + + Deletes the secret value resource identified by the name. The name of + the resource is typically the version associated with that value. + Deletion will fail if the specified value is in use. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param secret_value_resource_name: The name of the secret resource + value which is typically the version identifier for the value. + :type secret_value_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True), + 'secretValueResourceName': self._serialize.url("secret_value_resource_name", secret_value_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorModelException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values/{secretValueResourceName}'} + + def list( + self, resource_group_name, secret_resource_name, custom_headers=None, raw=False, **operation_config): + """List names of all values of the the specified secret resource. + + Gets information about all secret value resources of the specified + secret resource. The information includes the names of the secret value + resources, but not the actual values. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of SecretValueResourceDescription + :rtype: + ~azure.mgmt.servicefabricmesh.models.SecretValueResourceDescriptionPaged[~azure.mgmt.servicefabricmesh.models.SecretValueResourceDescription] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.SecretValueResourceDescriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SecretValueResourceDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values'} + + def list_value( + self, resource_group_name, secret_resource_name, secret_value_resource_name, custom_headers=None, raw=False, **operation_config): + """Lists the specified value of the secret resource. + + Lists the decrypted value of the specified named value of the secret + resource. This is a privileged operation. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param secret_value_resource_name: The name of the secret resource + value which is typically the version identifier for the value. + :type secret_value_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SecretValue or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.servicefabricmesh.models.SecretValue or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.list_value.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True), + 'secretValueResourceName': self._serialize.url("secret_value_resource_name", secret_value_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecretValue', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_value.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets/{secretResourceName}/values/{secretValueResourceName}/list_value'} diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/service_operations.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/service_operations.py new file mode 100644 index 000000000000..0e1f78fcfe60 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/service_operations.py @@ -0,0 +1,179 @@ +# 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 uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class ServiceOperations(object): + """ServiceOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be `2018-09-01-preview`. Constant value: "2018-09-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-09-01-preview" + + self.config = config + + def get( + self, resource_group_name, application_resource_name, service_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the service resource with the given name. + + Gets the information about the service resource with the given name. + The information include the description and other properties of the + service. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param service_resource_name: The identity of the service. + :type service_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ServiceResourceDescription or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.servicefabricmesh.models.ServiceResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), + 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}/services/{serviceResourceName}'} + + def list( + self, resource_group_name, application_resource_name, custom_headers=None, raw=False, **operation_config): + """Lists all the service resources. + + Gets the information about all services of an application resource. The + information include the description and other properties of the + Service. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ServiceResourceDescription + :rtype: + ~azure.mgmt.servicefabricmesh.models.ServiceResourceDescriptionPaged[~azure.mgmt.servicefabricmesh.models.ServiceResourceDescription] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.ServiceResourceDescriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ServiceResourceDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}/services'} diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/service_replica_operations.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/service_replica_operations.py new file mode 100644 index 000000000000..360795088540 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/service_replica_operations.py @@ -0,0 +1,184 @@ +# 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 uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class ServiceReplicaOperations(object): + """ServiceReplicaOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be `2018-09-01-preview`. Constant value: "2018-09-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-09-01-preview" + + self.config = config + + def get( + self, resource_group_name, application_resource_name, service_resource_name, replica_name, custom_headers=None, raw=False, **operation_config): + """Gets the given replica of the service of an application. + + Gets the information about the service replica with the given name. The + information include the description and other properties of the service + replica. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param service_resource_name: The identity of the service. + :type service_resource_name: str + :param replica_name: Service Fabric replica name. + :type replica_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ServiceReplicaDescription or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.servicefabricmesh.models.ServiceReplicaDescription + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), + 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True), + 'replicaName': self._serialize.url("replica_name", replica_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceReplicaDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}/services/{serviceResourceName}/replicas/{replicaName}'} + + def list( + self, resource_group_name, application_resource_name, service_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets replicas of a given service. + + Gets the information about all replicas of a given service of an + application. The information includes the runtime properties of the + replica instance. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param service_resource_name: The identity of the service. + :type service_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ServiceReplicaDescription + :rtype: + ~azure.mgmt.servicefabricmesh.models.ServiceReplicaDescriptionPaged[~azure.mgmt.servicefabricmesh.models.ServiceReplicaDescription] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), + 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.ServiceReplicaDescriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ServiceReplicaDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}/services/{serviceResourceName}/replicas'} diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/volume_operations.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/volume_operations.py new file mode 100644 index 000000000000..d94d5d759dbf --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/volume_operations.py @@ -0,0 +1,367 @@ +# 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 uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class VolumeOperations(object): + """VolumeOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be `2018-09-01-preview`. Constant value: "2018-09-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-09-01-preview" + + self.config = config + + def create( + self, resource_group_name, volume_resource_name, volume_resource_description, custom_headers=None, raw=False, **operation_config): + """Creates or updates a volume resource. + + Creates a volume resource with the specified name, description and + properties. If a volume resource with the same name exists, then it is + updated with the specified description and properties. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param volume_resource_name: The identity of the volume. + :type volume_resource_name: str + :param volume_resource_description: Description for creating a Volume + resource. + :type volume_resource_description: + ~azure.mgmt.servicefabricmesh.models.VolumeResourceDescription + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VolumeResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.servicefabricmesh.models.VolumeResourceDescription + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'volumeResourceName': self._serialize.url("volume_resource_name", volume_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(volume_resource_description, 'VolumeResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VolumeResourceDescription', response) + if response.status_code == 201: + deserialized = self._deserialize('VolumeResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes/{volumeResourceName}'} + + def get( + self, resource_group_name, volume_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the volume resource with the given name. + + Gets the information about the volume resource with the given name. The + information include the description and other properties of the volume. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param volume_resource_name: The identity of the volume. + :type volume_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VolumeResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.servicefabricmesh.models.VolumeResourceDescription + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'volumeResourceName': self._serialize.url("volume_resource_name", volume_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VolumeResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes/{volumeResourceName}'} + + def delete( + self, resource_group_name, volume_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the volume resource. + + Deletes the volume resource identified by the name. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param volume_resource_name: The identity of the volume. + :type volume_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorModelException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'volumeResourceName': self._serialize.url("volume_resource_name", volume_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorModelException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes/{volumeResourceName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the volume resources in a given resource group. + + Gets the information about all volume resources in a given resource + group. The information include the description and other properties of + the Volume. + + :param resource_group_name: Azure resource group name + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VolumeResourceDescription + :rtype: + ~azure.mgmt.servicefabricmesh.models.VolumeResourceDescriptionPaged[~azure.mgmt.servicefabricmesh.models.VolumeResourceDescription] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.VolumeResourceDescriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VolumeResourceDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes'} + + def list_by_subscription( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the volume resources in a given subscription. + + Gets the information about all volume resources in a given resource + group. The information include the description and other properties of + the volume. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VolumeResourceDescription + :rtype: + ~azure.mgmt.servicefabricmesh.models.VolumeResourceDescriptionPaged[~azure.mgmt.servicefabricmesh.models.VolumeResourceDescription] + :raises: + :class:`ErrorModelException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorModelException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.VolumeResourceDescriptionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VolumeResourceDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/volumes'} diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/service_fabric_mesh_management_client.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/service_fabric_mesh_management_client.py new file mode 100644 index 000000000000..eb337b56d2f9 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/service_fabric_mesh_management_client.py @@ -0,0 +1,126 @@ +# 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 msrest.service_client import SDKClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.operations import Operations +from .operations.secret_operations import SecretOperations +from .operations.secret_value_operations import SecretValueOperations +from .operations.volume_operations import VolumeOperations +from .operations.network_operations import NetworkOperations +from .operations.gateway_operations import GatewayOperations +from .operations.application_operations import ApplicationOperations +from .operations.service_operations import ServiceOperations +from .operations.service_replica_operations import ServiceReplicaOperations +from .operations.code_package_operations import CodePackageOperations +from . import models + + +class ServiceFabricMeshManagementClientConfiguration(AzureConfiguration): + """Configuration for ServiceFabricMeshManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The customer subscription identifier + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ServiceFabricMeshManagementClientConfiguration, self).__init__(base_url) + + self.add_user_agent('azure-mgmt-servicefabricmesh/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id + + +class ServiceFabricMeshManagementClient(SDKClient): + """Service Fabric Mesh Management Client + + :ivar config: Configuration for client. + :vartype config: ServiceFabricMeshManagementClientConfiguration + + :ivar operations: Operations operations + :vartype operations: azure.mgmt.servicefabricmesh.operations.Operations + :ivar secret: Secret operations + :vartype secret: azure.mgmt.servicefabricmesh.operations.SecretOperations + :ivar secret_value: SecretValue operations + :vartype secret_value: azure.mgmt.servicefabricmesh.operations.SecretValueOperations + :ivar volume: Volume operations + :vartype volume: azure.mgmt.servicefabricmesh.operations.VolumeOperations + :ivar network: Network operations + :vartype network: azure.mgmt.servicefabricmesh.operations.NetworkOperations + :ivar gateway: Gateway operations + :vartype gateway: azure.mgmt.servicefabricmesh.operations.GatewayOperations + :ivar application: Application operations + :vartype application: azure.mgmt.servicefabricmesh.operations.ApplicationOperations + :ivar service: Service operations + :vartype service: azure.mgmt.servicefabricmesh.operations.ServiceOperations + :ivar service_replica: ServiceReplica operations + :vartype service_replica: azure.mgmt.servicefabricmesh.operations.ServiceReplicaOperations + :ivar code_package: CodePackage operations + :vartype code_package: azure.mgmt.servicefabricmesh.operations.CodePackageOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The customer subscription identifier + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + self.config = ServiceFabricMeshManagementClientConfiguration(credentials, subscription_id, base_url) + super(ServiceFabricMeshManagementClient, self).__init__(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2018-09-01-preview' + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.operations = Operations( + self._client, self.config, self._serialize, self._deserialize) + self.secret = SecretOperations( + self._client, self.config, self._serialize, self._deserialize) + self.secret_value = SecretValueOperations( + self._client, self.config, self._serialize, self._deserialize) + self.volume = VolumeOperations( + self._client, self.config, self._serialize, self._deserialize) + self.network = NetworkOperations( + self._client, self.config, self._serialize, self._deserialize) + self.gateway = GatewayOperations( + self._client, self.config, self._serialize, self._deserialize) + self.application = ApplicationOperations( + self._client, self.config, self._serialize, self._deserialize) + self.service = ServiceOperations( + self._client, self.config, self._serialize, self._deserialize) + self.service_replica = ServiceReplicaOperations( + self._client, self.config, self._serialize, self._deserialize) + self.code_package = CodePackageOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py new file mode 100644 index 000000000000..b8bbafae36fe --- /dev/null +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py @@ -0,0 +1,13 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "2018-09-01-preview" + diff --git a/azure-mgmt-servicefabricmesh/sdk_packaging.toml b/azure-mgmt-servicefabricmesh/sdk_packaging.toml new file mode 100644 index 000000000000..a1b1197bdd19 --- /dev/null +++ b/azure-mgmt-servicefabricmesh/sdk_packaging.toml @@ -0,0 +1,7 @@ +[packaging] +package_name = "azure-mgmt-servicefabricmesh" +package_nspkg = "azure-mgmt-nspkg" +package_pprint_name = "MyService Management" +package_doc_id = "" +is_stable = false +is_arm = true diff --git a/azure-mgmt-servicefabricmesh/setup.cfg b/azure-mgmt-servicefabricmesh/setup.cfg new file mode 100644 index 000000000000..3c6e79cf31da --- /dev/null +++ b/azure-mgmt-servicefabricmesh/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal=1 diff --git a/azure-mgmt-servicefabricmesh/setup.py b/azure-mgmt-servicefabricmesh/setup.py new file mode 100644 index 000000000000..2c661feafbbb --- /dev/null +++ b/azure-mgmt-servicefabricmesh/setup.py @@ -0,0 +1,87 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +#-------------------------------------------------------------------------- + +import re +import os.path +from io import open +from setuptools import find_packages, setup + +# Change the PACKAGE_NAME only to change folder and different name +PACKAGE_NAME = "azure-mgmt-servicefabricmesh" +PACKAGE_PPRINT_NAME = "MyService Management" + +# a-b-c => a/b/c +package_folder_path = PACKAGE_NAME.replace('-', '/') +# a-b-c => a.b.c +namespace_name = PACKAGE_NAME.replace('-', '.') + +# azure v0.x is not compatible with this package +# azure v0.x used to have a __version__ attribute (newer versions don't) +try: + import azure + try: + ver = azure.__version__ + raise Exception( + 'This package is incompatible with azure=={}. '.format(ver) + + 'Uninstall it with "pip uninstall azure".' + ) + except AttributeError: + pass +except ImportError: + pass + +# Version extraction inspired from 'requests' +with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: + version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', + fd.read(), re.MULTILINE).group(1) + +if not version: + raise RuntimeError('Cannot find version information') + +with open('README.rst', encoding='utf-8') as f: + readme = f.read() +with open('HISTORY.rst', encoding='utf-8') as f: + history = f.read() + +setup( + name=PACKAGE_NAME, + version=version, + description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), + long_description=readme + '\n\n' + history, + license='MIT License', + author='Microsoft Corporation', + author_email='azpysdkhelp@microsoft.com', + url='https://github.com/Azure/azure-sdk-for-python', + classifiers=[ + 'Development Status :: 4 - Beta', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'License :: OSI Approved :: MIT License', + ], + zip_safe=False, + packages=find_packages(exclude=[ + 'tests', + # Exclude packages that will be covered by PEP420 or nspkg + 'azure', + 'azure.mgmt', + ]), + install_requires=[ + 'msrest>=0.5.0', + 'msrestazure>=0.4.32,<2.0.0', + 'azure-common~=1.1', + ], + extras_require={ + ":python_version<'3.0'": ['azure-mgmt-nspkg'], + } +) From 68def9d01a6ea922ed738788851021254c999919 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 5 Dec 2018 17:20:55 -0800 Subject: [PATCH 2/9] Generated from 45097e384f4fbb60b8d771ceb1f58a1d8a4defe2 (#4001) typo: servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh - Double word "the" - deletd -> deleted - unecrypted -> unencrypted - hamdle -> handle - ReliableCollectionsRef capitalization --- .../models/container_code_package_properties.py | 2 +- .../models/container_code_package_properties_py3.py | 2 +- .../azure/mgmt/servicefabricmesh/models/http_host_config.py | 2 +- .../azure/mgmt/servicefabricmesh/models/http_host_config_py3.py | 2 +- .../models/service_fabric_mesh_management_client_enums.py | 2 +- .../servicefabricmesh/operations/secret_value_operations.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties.py index c590dd215580..3a809725575f 100644 --- a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties.py +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties.py @@ -60,7 +60,7 @@ class ContainerCodePackageProperties(Model): :type diagnostics: ~azure.mgmt.servicefabricmesh.models.DiagnosticsRef :param reliable_collections_refs: A list of ReliableCollection resources used by this particular code package. Please refer to - ReliablecollectionsRef for more details. + ReliableCollectionsRef for more details. :type reliable_collections_refs: list[~azure.mgmt.servicefabricmesh.models.ReliableCollectionsRef] :ivar instance_view: Runtime information of a container instance. diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties_py3.py index da21e8163aed..4e8e0050d840 100644 --- a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties_py3.py +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/container_code_package_properties_py3.py @@ -60,7 +60,7 @@ class ContainerCodePackageProperties(Model): :type diagnostics: ~azure.mgmt.servicefabricmesh.models.DiagnosticsRef :param reliable_collections_refs: A list of ReliableCollection resources used by this particular code package. Please refer to - ReliablecollectionsRef for more details. + ReliableCollectionsRef for more details. :type reliable_collections_refs: list[~azure.mgmt.servicefabricmesh.models.ReliableCollectionsRef] :ivar instance_view: Runtime information of a container instance. diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config.py index 61f126bbede3..c38a90d5ae4a 100644 --- a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config.py +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config.py @@ -21,7 +21,7 @@ class HttpHostConfig(Model): :type name: str :param routes: Required. Route information to use for routing. Routes are processed in the order they are specified. Specify routes that are more - specific before routes that can hamdle general cases. + specific before routes that can handle general cases. :type routes: list[~azure.mgmt.servicefabricmesh.models.HttpRouteConfig] """ diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config_py3.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config_py3.py index 295a55ac7908..28b220274389 100644 --- a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config_py3.py +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/http_host_config_py3.py @@ -21,7 +21,7 @@ class HttpHostConfig(Model): :type name: str :param routes: Required. Route information to use for routing. Routes are processed in the order they are specified. Specify routes that are more - specific before routes that can hamdle general cases. + specific before routes that can handle general cases. :type routes: list[~azure.mgmt.servicefabricmesh.models.HttpRouteConfig] """ diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_fabric_mesh_management_client_enums.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_fabric_mesh_management_client_enums.py index c5251f52f903..cfcb957d3b9a 100644 --- a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_fabric_mesh_management_client_enums.py +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/models/service_fabric_mesh_management_client_enums.py @@ -18,7 +18,7 @@ class ResourceStatus(str, Enum): ready = "Ready" #: Indicates the resource is ready. The value is 1. upgrading = "Upgrading" #: Indicates the resource is upgrading. The value is 2. creating = "Creating" #: Indicates the resource is being created. The value is 3. - deleting = "Deleting" #: Indicates the resource is being deletd. The value is 4. + deleting = "Deleting" #: Indicates the resource is being deleted. The value is 4. failed = "Failed" #: Indicates the resource is not functional due to persistent failures. See statusDetails property for more details. The value is 5. diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/secret_value_operations.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/secret_value_operations.py index 1e286fded435..2f177babaa3d 100644 --- a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/secret_value_operations.py +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/operations/secret_value_operations.py @@ -250,7 +250,7 @@ def delete( def list( self, resource_group_name, secret_resource_name, custom_headers=None, raw=False, **operation_config): - """List names of all values of the the specified secret resource. + """List names of all values of the specified secret resource. Gets information about all secret value resources of the specified secret resource. The information includes the names of the secret value From 23b27600385c79b40bd1420521182bb7d2dd1bbd Mon Sep 17 00:00:00 2001 From: azuresdkci Date: Fri, 15 Feb 2019 22:09:56 +0000 Subject: [PATCH 3/9] Packaging update of azure-mgmt-servicefabricmesh --- azure-mgmt-servicefabricmesh/README.rst | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/azure-mgmt-servicefabricmesh/README.rst b/azure-mgmt-servicefabricmesh/README.rst index 45de4e6b43dd..d0429ebc7565 100644 --- a/azure-mgmt-servicefabricmesh/README.rst +++ b/azure-mgmt-servicefabricmesh/README.rst @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see For a more complete set of Azure libraries, see the `azure `__ bundle package. -Compatibility -============= - -**IMPORTANT**: If you have an earlier version of the azure package -(version < 1.0), you should uninstall it before installing this package. - -You can check the version using pip: - -.. code:: shell - - pip freeze - -If you see azure==0.11.0 (or any version below 1.0), uninstall it first: - -.. code:: shell - - pip uninstall azure - - Usage ===== From 7cec58d9560badd761e4944f0b85896ecd980c43 Mon Sep 17 00:00:00 2001 From: iscai-msft <43154838+iscai-msft@users.noreply.github.com> Date: Fri, 15 Feb 2019 14:17:29 -0800 Subject: [PATCH 4/9] Update HISTORY.rst --- azure-mgmt-servicefabricmesh/HISTORY.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-mgmt-servicefabricmesh/HISTORY.rst b/azure-mgmt-servicefabricmesh/HISTORY.rst index 8924d5d6c445..2cda4e88a4d0 100644 --- a/azure-mgmt-servicefabricmesh/HISTORY.rst +++ b/azure-mgmt-servicefabricmesh/HISTORY.rst @@ -3,7 +3,7 @@ Release History =============== -0.1.0 (1970-01-01) +0.1.0 (2019-02-15) ++++++++++++++++++ * Initial Release From 8a28e2d0d3c4fe77dde961d8b870521e45ec16e4 Mon Sep 17 00:00:00 2001 From: iscai-msft <43154838+iscai-msft@users.noreply.github.com> Date: Fri, 15 Feb 2019 14:17:53 -0800 Subject: [PATCH 5/9] Update version.py --- .../azure/mgmt/servicefabricmesh/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py index b8bbafae36fe..e0ec669828cb 100644 --- a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "2018-09-01-preview" +VERSION = "0.1.0" From bb9f1e546eef695090d3ef1fca06e25e057f8689 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 15 Feb 2019 22:19:07 +0000 Subject: [PATCH 6/9] Rebuild by https://github.com/Azure/azure-sdk-for-python/pull/3670 --- .../azure/mgmt/servicefabricmesh/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py index e0ec669828cb..b8bbafae36fe 100644 --- a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.0" +VERSION = "2018-09-01-preview" From e66ffe54dae8b045fa1e5821f4d5dd869a3a8137 Mon Sep 17 00:00:00 2001 From: iscai-msft <43154838+iscai-msft@users.noreply.github.com> Date: Fri, 15 Feb 2019 14:20:38 -0800 Subject: [PATCH 7/9] Update version.py --- .../azure/mgmt/servicefabricmesh/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py index b8bbafae36fe..e0ec669828cb 100644 --- a/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py +++ b/azure-mgmt-servicefabricmesh/azure/mgmt/servicefabricmesh/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "2018-09-01-preview" +VERSION = "0.1.0" From ad7af4dc10b9a73a0e313a578ffd1a899ac7a4a2 Mon Sep 17 00:00:00 2001 From: iscai-msft <43154838+iscai-msft@users.noreply.github.com> Date: Fri, 15 Feb 2019 16:11:53 -0800 Subject: [PATCH 8/9] Update sdk_packaging.toml --- azure-mgmt-servicefabricmesh/sdk_packaging.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-mgmt-servicefabricmesh/sdk_packaging.toml b/azure-mgmt-servicefabricmesh/sdk_packaging.toml index a1b1197bdd19..d893b6192fa4 100644 --- a/azure-mgmt-servicefabricmesh/sdk_packaging.toml +++ b/azure-mgmt-servicefabricmesh/sdk_packaging.toml @@ -1,7 +1,7 @@ [packaging] package_name = "azure-mgmt-servicefabricmesh" package_nspkg = "azure-mgmt-nspkg" -package_pprint_name = "MyService Management" +package_pprint_name = "Service Fabric Mesh" package_doc_id = "" is_stable = false is_arm = true From 4e93570cd6399d65cebb46ef72459ff46894ecdc Mon Sep 17 00:00:00 2001 From: azuresdkci Date: Sat, 16 Feb 2019 00:25:24 +0000 Subject: [PATCH 9/9] Packaging update of azure-mgmt-servicefabricmesh --- azure-mgmt-servicefabricmesh/README.rst | 4 ++-- azure-mgmt-servicefabricmesh/setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-mgmt-servicefabricmesh/README.rst b/azure-mgmt-servicefabricmesh/README.rst index d0429ebc7565..96578a1d72c3 100644 --- a/azure-mgmt-servicefabricmesh/README.rst +++ b/azure-mgmt-servicefabricmesh/README.rst @@ -1,7 +1,7 @@ Microsoft Azure SDK for Python ============================== -This is the Microsoft Azure MyService Management Client Library. +This is the Microsoft Azure Service Fabric Mesh Client Library. Azure Resource Manager (ARM) is the next generation of management APIs that replace the old Azure Service Management (ASM). @@ -17,7 +17,7 @@ For a more complete set of Azure libraries, see the `azure `__ on docs.microsoft.com. diff --git a/azure-mgmt-servicefabricmesh/setup.py b/azure-mgmt-servicefabricmesh/setup.py index 2c661feafbbb..2ab4c60cf8c6 100644 --- a/azure-mgmt-servicefabricmesh/setup.py +++ b/azure-mgmt-servicefabricmesh/setup.py @@ -13,7 +13,7 @@ # Change the PACKAGE_NAME only to change folder and different name PACKAGE_NAME = "azure-mgmt-servicefabricmesh" -PACKAGE_PPRINT_NAME = "MyService Management" +PACKAGE_PPRINT_NAME = "Service Fabric Mesh" # a-b-c => a/b/c package_folder_path = PACKAGE_NAME.replace('-', '/')