azure_service_fabric 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (624) hide show
  1. checksums.yaml +4 -4
  2. data/lib/6.2.0.9/generated/azure_service_fabric/models/chaos_target_filter.rb +2 -2
  3. data/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb +391 -1
  4. data/lib/6.3.0.9/generated/azure_service_fabric/models/chaos_target_filter.rb +2 -2
  5. data/lib/6.3.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb +411 -1
  6. data/lib/6.4.0.36/generated/azure_service_fabric/mesh_application.rb +8 -0
  7. data/lib/6.4.0.36/generated/azure_service_fabric/mesh_code_package.rb +2 -0
  8. data/lib/6.4.0.36/generated/azure_service_fabric/mesh_gateway.rb +8 -0
  9. data/lib/6.4.0.36/generated/azure_service_fabric/mesh_network.rb +8 -0
  10. data/lib/6.4.0.36/generated/azure_service_fabric/mesh_secret.rb +8 -0
  11. data/lib/6.4.0.36/generated/azure_service_fabric/mesh_secret_value.rb +13 -3
  12. data/lib/6.4.0.36/generated/azure_service_fabric/mesh_service.rb +4 -0
  13. data/lib/6.4.0.36/generated/azure_service_fabric/mesh_service_replica.rb +4 -0
  14. data/lib/6.4.0.36/generated/azure_service_fabric/mesh_volume.rb +8 -0
  15. data/lib/6.4.0.36/generated/azure_service_fabric/models/chaos_target_filter.rb +2 -2
  16. data/lib/6.4.0.36/generated/azure_service_fabric/models/container_code_package_properties.rb +1 -1
  17. data/lib/6.4.0.36/generated/azure_service_fabric/models/epoch.rb +1 -1
  18. data/lib/6.4.0.36/generated/azure_service_fabric/models/fabric_error_error.rb +1 -1
  19. data/lib/6.4.0.36/generated/azure_service_fabric/models/http_host_config.rb +1 -1
  20. data/lib/6.4.0.36/generated/azure_service_fabric/models/partition_backup_configuration_info.rb +1 -1
  21. data/lib/6.4.0.36/generated/azure_service_fabric/models/partition_backup_entity.rb +1 -1
  22. data/lib/6.4.0.36/generated/azure_service_fabric/service_fabric_client_apis.rb +395 -1
  23. data/lib/6.5.0.36/generated/azure_service_fabric.rb +622 -0
  24. data/lib/6.5.0.36/generated/azure_service_fabric/mesh_application.rb +429 -0
  25. data/lib/6.5.0.36/generated/azure_service_fabric/mesh_code_package.rb +143 -0
  26. data/lib/6.5.0.36/generated/azure_service_fabric/mesh_gateway.rb +429 -0
  27. data/lib/6.5.0.36/generated/azure_service_fabric/mesh_network.rb +429 -0
  28. data/lib/6.5.0.36/generated/azure_service_fabric/mesh_secret.rb +429 -0
  29. data/lib/6.5.0.36/generated/azure_service_fabric/mesh_secret_value.rb +566 -0
  30. data/lib/6.5.0.36/generated/azure_service_fabric/mesh_service.rb +226 -0
  31. data/lib/6.5.0.36/generated/azure_service_fabric/mesh_service_replica.rb +237 -0
  32. data/lib/6.5.0.36/generated/azure_service_fabric/mesh_volume.rb +426 -0
  33. data/lib/6.5.0.36/generated/azure_service_fabric/models/aad_metadata.rb +101 -0
  34. data/lib/6.5.0.36/generated/azure_service_fabric/models/aad_metadata_object.rb +60 -0
  35. data/lib/6.5.0.36/generated/azure_service_fabric/models/add_remove_incremental_named_partition_scaling_mechanism.rb +86 -0
  36. data/lib/6.5.0.36/generated/azure_service_fabric/models/add_remove_replica_scaling_mechanism.rb +87 -0
  37. data/lib/6.5.0.36/generated/azure_service_fabric/models/analysis_event_metadata.rb +57 -0
  38. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_backup_configuration_info.rb +89 -0
  39. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_backup_entity.rb +62 -0
  40. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_capacity_description.rb +100 -0
  41. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_container_instance_exited_event.rb +222 -0
  42. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_created_event.rb +123 -0
  43. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_definition_kind.rb +17 -0
  44. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_deleted_event.rb +112 -0
  45. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_description.rb +125 -0
  46. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_event.rb +100 -0
  47. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_health.rb +142 -0
  48. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_health_evaluation.rb +104 -0
  49. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_health_policies.rb +58 -0
  50. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_health_policy.rb +104 -0
  51. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_health_policy_map_item.rb +61 -0
  52. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_health_report_expired_event.rb +189 -0
  53. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_health_state.rb +56 -0
  54. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_health_state_chunk.rb +99 -0
  55. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_health_state_chunk_list.rb +66 -0
  56. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_health_state_filter.rb +177 -0
  57. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_info.rb +150 -0
  58. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_load_info.rb +119 -0
  59. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_metric_description.rb +109 -0
  60. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_name_info.rb +65 -0
  61. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_new_health_report_event.rb +189 -0
  62. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_package_cleanup_policy.rb +18 -0
  63. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_parameter.rb +58 -0
  64. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_process_exited_event.rb +222 -0
  65. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_resource_description.rb +194 -0
  66. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_scoped_volume.rb +75 -0
  67. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_scoped_volume_creation_parameters.rb +58 -0
  68. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk.rb +73 -0
  69. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_scoped_volume_kind.rb +15 -0
  70. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_status.rb +20 -0
  71. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_type_applications_health_evaluation.rb +132 -0
  72. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_type_definition_kind.rb +17 -0
  73. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_type_health_policy_map_item.rb +61 -0
  74. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_type_image_store_path.rb +48 -0
  75. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_type_info.rb +119 -0
  76. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_type_manifest.rb +47 -0
  77. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_type_status.rb +19 -0
  78. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_upgrade_completed_event.rb +123 -0
  79. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_upgrade_description.rb +188 -0
  80. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_upgrade_domain_completed_event.rb +156 -0
  81. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_upgrade_progress_info.rb +273 -0
  82. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_upgrade_rollback_completed_event.rb +134 -0
  83. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_upgrade_rollback_started_event.rb +145 -0
  84. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_upgrade_started_event.rb +156 -0
  85. data/lib/6.5.0.36/generated/azure_service_fabric/models/application_upgrade_update_description.rb +87 -0
  86. data/lib/6.5.0.36/generated/azure_service_fabric/models/applications_health_evaluation.rb +113 -0
  87. data/lib/6.5.0.36/generated/azure_service_fabric/models/auto_scaling_mechanism.rb +47 -0
  88. data/lib/6.5.0.36/generated/azure_service_fabric/models/auto_scaling_mechanism_kind.rb +15 -0
  89. data/lib/6.5.0.36/generated/azure_service_fabric/models/auto_scaling_metric.rb +47 -0
  90. data/lib/6.5.0.36/generated/azure_service_fabric/models/auto_scaling_metric_kind.rb +15 -0
  91. data/lib/6.5.0.36/generated/azure_service_fabric/models/auto_scaling_policy.rb +76 -0
  92. data/lib/6.5.0.36/generated/azure_service_fabric/models/auto_scaling_resource_metric.rb +62 -0
  93. data/lib/6.5.0.36/generated/azure_service_fabric/models/auto_scaling_resource_metric_name.rb +16 -0
  94. data/lib/6.5.0.36/generated/azure_service_fabric/models/auto_scaling_trigger.rb +46 -0
  95. data/lib/6.5.0.36/generated/azure_service_fabric/models/auto_scaling_trigger_kind.rb +15 -0
  96. data/lib/6.5.0.36/generated/azure_service_fabric/models/average_load_scaling_trigger.rb +104 -0
  97. data/lib/6.5.0.36/generated/azure_service_fabric/models/average_partition_load_scaling_trigger.rb +103 -0
  98. data/lib/6.5.0.36/generated/azure_service_fabric/models/average_service_load_scaling_trigger.rb +103 -0
  99. data/lib/6.5.0.36/generated/azure_service_fabric/models/azure_blob_backup_storage_description.rb +83 -0
  100. data/lib/6.5.0.36/generated/azure_service_fabric/models/azure_internal_monitoring_pipeline_sink_description.rb +123 -0
  101. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_configuration_info.rb +85 -0
  102. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_entity.rb +48 -0
  103. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_entity_kind.rb +18 -0
  104. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_info.rb +180 -0
  105. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_partition_description.rb +50 -0
  106. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_policy_description.rb +126 -0
  107. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_policy_scope.rb +18 -0
  108. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_progress_info.rb +119 -0
  109. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_schedule_description.rb +47 -0
  110. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_schedule_frequency_type.rb +17 -0
  111. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_schedule_kind.rb +17 -0
  112. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_state.rb +20 -0
  113. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_storage_description.rb +58 -0
  114. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_storage_kind.rb +17 -0
  115. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_suspension_info.rb +60 -0
  116. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_suspension_scope.rb +18 -0
  117. data/lib/6.5.0.36/generated/azure_service_fabric/models/backup_type.rb +17 -0
  118. data/lib/6.5.0.36/generated/azure_service_fabric/models/basic_retention_policy_description.rb +80 -0
  119. data/lib/6.5.0.36/generated/azure_service_fabric/models/binary_property_value.rb +70 -0
  120. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos.rb +72 -0
  121. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_code_package_restart_scheduled_event.rb +156 -0
  122. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_context.rb +60 -0
  123. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_event.rb +63 -0
  124. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_event_kind.rb +21 -0
  125. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_event_wrapper.rb +49 -0
  126. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_events_segment.rb +73 -0
  127. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_node_restart_scheduled_event.rb +123 -0
  128. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_parameters.rb +202 -0
  129. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_parameters_dictionary_item.rb +60 -0
  130. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_partition_primary_move_scheduled_event.rb +145 -0
  131. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_partition_secondary_move_scheduled_event.rb +157 -0
  132. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_replica_removal_scheduled_event.rb +131 -0
  133. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_replica_restart_scheduled_event.rb +131 -0
  134. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_schedule.rb +103 -0
  135. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_schedule_description.rb +63 -0
  136. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_schedule_job.rb +83 -0
  137. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_schedule_job_active_days_of_week.rb +126 -0
  138. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_schedule_status.rb +19 -0
  139. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_started_event.rb +192 -0
  140. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_status.rb +17 -0
  141. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_stopped_event.rb +93 -0
  142. data/lib/6.5.0.36/generated/azure_service_fabric/models/chaos_target_filter.rb +120 -0
  143. data/lib/6.5.0.36/generated/azure_service_fabric/models/check_exists_property_batch_operation.rb +77 -0
  144. data/lib/6.5.0.36/generated/azure_service_fabric/models/check_sequence_property_batch_operation.rb +79 -0
  145. data/lib/6.5.0.36/generated/azure_service_fabric/models/check_value_property_batch_operation.rb +77 -0
  146. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_configuration.rb +46 -0
  147. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_configuration_upgrade_description.rb +188 -0
  148. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_configuration_upgrade_status_info.rb +82 -0
  149. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_event.rb +82 -0
  150. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_health.rb +131 -0
  151. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_health_chunk.rb +82 -0
  152. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_health_chunk_query_description.rb +123 -0
  153. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_health_policies.rb +77 -0
  154. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_health_policy.rb +144 -0
  155. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_health_report_expired_event.rb +170 -0
  156. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_load_info.rb +79 -0
  157. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_manifest.rb +46 -0
  158. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_new_health_report_event.rb +170 -0
  159. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_completed_event.rb +104 -0
  160. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_description_object.rb +212 -0
  161. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_domain_completed_event.rb +126 -0
  162. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_health_policy_object.rb +79 -0
  163. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_progress_object.rb +240 -0
  164. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_rollback_completed_event.rb +115 -0
  165. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_rollback_started_event.rb +115 -0
  166. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_started_event.rb +137 -0
  167. data/lib/6.5.0.36/generated/azure_service_fabric/models/cluster_version.rb +46 -0
  168. data/lib/6.5.0.36/generated/azure_service_fabric/models/code_package_entry_point.rb +122 -0
  169. data/lib/6.5.0.36/generated/azure_service_fabric/models/code_package_entry_point_statistics.rb +164 -0
  170. data/lib/6.5.0.36/generated/azure_service_fabric/models/compose_deployment_status.rb +22 -0
  171. data/lib/6.5.0.36/generated/azure_service_fabric/models/compose_deployment_status_info.rb +83 -0
  172. data/lib/6.5.0.36/generated/azure_service_fabric/models/compose_deployment_upgrade_description.rb +155 -0
  173. data/lib/6.5.0.36/generated/azure_service_fabric/models/compose_deployment_upgrade_progress_info.rb +306 -0
  174. data/lib/6.5.0.36/generated/azure_service_fabric/models/compose_deployment_upgrade_state.rb +24 -0
  175. data/lib/6.5.0.36/generated/azure_service_fabric/models/container_api_request_body.rb +80 -0
  176. data/lib/6.5.0.36/generated/azure_service_fabric/models/container_api_response.rb +47 -0
  177. data/lib/6.5.0.36/generated/azure_service_fabric/models/container_api_result.rb +79 -0
  178. data/lib/6.5.0.36/generated/azure_service_fabric/models/container_code_package_properties.rb +290 -0
  179. data/lib/6.5.0.36/generated/azure_service_fabric/models/container_event.rb +101 -0
  180. data/lib/6.5.0.36/generated/azure_service_fabric/models/container_instance_event.rb +82 -0
  181. data/lib/6.5.0.36/generated/azure_service_fabric/models/container_instance_view.rb +90 -0
  182. data/lib/6.5.0.36/generated/azure_service_fabric/models/container_label.rb +57 -0
  183. data/lib/6.5.0.36/generated/azure_service_fabric/models/container_logs.rb +46 -0
  184. data/lib/6.5.0.36/generated/azure_service_fabric/models/container_state.rb +90 -0
  185. data/lib/6.5.0.36/generated/azure_service_fabric/models/create_compose_deployment_description.rb +71 -0
  186. data/lib/6.5.0.36/generated/azure_service_fabric/models/create_fabric_dump.rb +16 -0
  187. data/lib/6.5.0.36/generated/azure_service_fabric/models/current_upgrade_domain_progress_info.rb +67 -0
  188. data/lib/6.5.0.36/generated/azure_service_fabric/models/data_loss_mode.rb +17 -0
  189. data/lib/6.5.0.36/generated/azure_service_fabric/models/day_of_week.rb +21 -0
  190. data/lib/6.5.0.36/generated/azure_service_fabric/models/deactivation_intent.rb +17 -0
  191. data/lib/6.5.0.36/generated/azure_service_fabric/models/deactivation_intent_description.rb +48 -0
  192. data/lib/6.5.0.36/generated/azure_service_fabric/models/delete_property_batch_operation.rb +61 -0
  193. data/lib/6.5.0.36/generated/azure_service_fabric/models/delta_nodes_check_health_evaluation.rb +140 -0
  194. data/lib/6.5.0.36/generated/azure_service_fabric/models/deploy_service_package_to_node_description.rb +104 -0
  195. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_application_health.rb +132 -0
  196. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_application_health_evaluation.rb +115 -0
  197. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_application_health_report_expired_event.rb +201 -0
  198. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_application_health_state.rb +68 -0
  199. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_application_health_state_chunk.rb +72 -0
  200. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_application_health_state_chunk_list.rb +59 -0
  201. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_application_health_state_filter.rb +132 -0
  202. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_application_info.rb +141 -0
  203. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_application_new_health_report_event.rb +200 -0
  204. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_application_status.rb +20 -0
  205. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_applications_health_evaluation.rb +117 -0
  206. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_code_package_info.rb +166 -0
  207. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_service_package_health.rb +122 -0
  208. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_service_package_health_evaluation.rb +125 -0
  209. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_service_package_health_report_expired_event.rb +223 -0
  210. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_service_package_health_state.rb +95 -0
  211. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_service_package_health_state_chunk.rb +72 -0
  212. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_service_package_health_state_chunk_list.rb +60 -0
  213. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_service_package_health_state_filter.rb +118 -0
  214. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_service_package_info.rb +89 -0
  215. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_service_package_new_health_report_event.rb +223 -0
  216. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_service_packages_health_evaluation.rb +105 -0
  217. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_service_replica_detail_info.rb +120 -0
  218. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_service_replica_info.rb +163 -0
  219. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_service_type_info.rb +101 -0
  220. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_stateful_service_replica_detail_info.rb +202 -0
  221. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_stateful_service_replica_info.rb +166 -0
  222. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_stateless_service_instance_detail_info.rb +131 -0
  223. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployed_stateless_service_instance_info.rb +138 -0
  224. data/lib/6.5.0.36/generated/azure_service_fabric/models/deployment_status.rb +20 -0
  225. data/lib/6.5.0.36/generated/azure_service_fabric/models/diagnostics_description.rb +89 -0
  226. data/lib/6.5.0.36/generated/azure_service_fabric/models/diagnostics_ref.rb +66 -0
  227. data/lib/6.5.0.36/generated/azure_service_fabric/models/diagnostics_sink_kind.rb +16 -0
  228. data/lib/6.5.0.36/generated/azure_service_fabric/models/diagnostics_sink_properties.rb +69 -0
  229. data/lib/6.5.0.36/generated/azure_service_fabric/models/disable_backup_description.rb +49 -0
  230. data/lib/6.5.0.36/generated/azure_service_fabric/models/double_property_value.rb +61 -0
  231. data/lib/6.5.0.36/generated/azure_service_fabric/models/enable_backup_description.rb +47 -0
  232. data/lib/6.5.0.36/generated/azure_service_fabric/models/endpoint_properties.rb +57 -0
  233. data/lib/6.5.0.36/generated/azure_service_fabric/models/endpoint_ref.rb +46 -0
  234. data/lib/6.5.0.36/generated/azure_service_fabric/models/ensure_availability_safety_check.rb +60 -0
  235. data/lib/6.5.0.36/generated/azure_service_fabric/models/ensure_partition_quorum_safety_check.rb +59 -0
  236. data/lib/6.5.0.36/generated/azure_service_fabric/models/entity_health.rb +108 -0
  237. data/lib/6.5.0.36/generated/azure_service_fabric/models/entity_health_state.rb +49 -0
  238. data/lib/6.5.0.36/generated/azure_service_fabric/models/entity_health_state_chunk.rb +49 -0
  239. data/lib/6.5.0.36/generated/azure_service_fabric/models/entity_health_state_chunk_list.rb +49 -0
  240. data/lib/6.5.0.36/generated/azure_service_fabric/models/entity_kind.rb +23 -0
  241. data/lib/6.5.0.36/generated/azure_service_fabric/models/entity_kind_health_state_count.rb +62 -0
  242. data/lib/6.5.0.36/generated/azure_service_fabric/models/entry_point_status.rb +20 -0
  243. data/lib/6.5.0.36/generated/azure_service_fabric/models/environment_variable.rb +57 -0
  244. data/lib/6.5.0.36/generated/azure_service_fabric/models/epoch.rb +66 -0
  245. data/lib/6.5.0.36/generated/azure_service_fabric/models/event_health_evaluation.rb +96 -0
  246. data/lib/6.5.0.36/generated/azure_service_fabric/models/executing_faults_chaos_event.rb +80 -0
  247. data/lib/6.5.0.36/generated/azure_service_fabric/models/external_store_provision_application_type_description.rb +100 -0
  248. data/lib/6.5.0.36/generated/azure_service_fabric/models/fabric_code_version_info.rb +46 -0
  249. data/lib/6.5.0.36/generated/azure_service_fabric/models/fabric_config_version_info.rb +46 -0
  250. data/lib/6.5.0.36/generated/azure_service_fabric/models/fabric_error.rb +50 -0
  251. data/lib/6.5.0.36/generated/azure_service_fabric/models/fabric_error_codes.rb +98 -0
  252. data/lib/6.5.0.36/generated/azure_service_fabric/models/fabric_error_error.rb +222 -0
  253. data/lib/6.5.0.36/generated/azure_service_fabric/models/fabric_event.rb +151 -0
  254. data/lib/6.5.0.36/generated/azure_service_fabric/models/fabric_event_kind.rb +76 -0
  255. data/lib/6.5.0.36/generated/azure_service_fabric/models/fabric_replica_status.rb +17 -0
  256. data/lib/6.5.0.36/generated/azure_service_fabric/models/failed_property_batch_info.rb +76 -0
  257. data/lib/6.5.0.36/generated/azure_service_fabric/models/failed_upgrade_domain_progress_object.rb +68 -0
  258. data/lib/6.5.0.36/generated/azure_service_fabric/models/failure_action.rb +17 -0
  259. data/lib/6.5.0.36/generated/azure_service_fabric/models/failure_reason.rb +19 -0
  260. data/lib/6.5.0.36/generated/azure_service_fabric/models/failure_upgrade_domain_progress_info.rb +68 -0
  261. data/lib/6.5.0.36/generated/azure_service_fabric/models/file_info.rb +82 -0
  262. data/lib/6.5.0.36/generated/azure_service_fabric/models/file_share_backup_storage_description.rb +115 -0
  263. data/lib/6.5.0.36/generated/azure_service_fabric/models/file_version.rb +71 -0
  264. data/lib/6.5.0.36/generated/azure_service_fabric/models/folder_info.rb +60 -0
  265. data/lib/6.5.0.36/generated/azure_service_fabric/models/folder_size_info.rb +58 -0
  266. data/lib/6.5.0.36/generated/azure_service_fabric/models/frequency_based_backup_schedule_description.rb +64 -0
  267. data/lib/6.5.0.36/generated/azure_service_fabric/models/gateway_destination.rb +68 -0
  268. data/lib/6.5.0.36/generated/azure_service_fabric/models/gateway_resource_description.rb +163 -0
  269. data/lib/6.5.0.36/generated/azure_service_fabric/models/get_backup_by_storage_query_description.rb +110 -0
  270. data/lib/6.5.0.36/generated/azure_service_fabric/models/get_property_batch_operation.rb +76 -0
  271. data/lib/6.5.0.36/generated/azure_service_fabric/models/guid_property_value.rb +61 -0
  272. data/lib/6.5.0.36/generated/azure_service_fabric/models/header_match_type.rb +15 -0
  273. data/lib/6.5.0.36/generated/azure_service_fabric/models/health_evaluation.rb +91 -0
  274. data/lib/6.5.0.36/generated/azure_service_fabric/models/health_evaluation_kind.rb +36 -0
  275. data/lib/6.5.0.36/generated/azure_service_fabric/models/health_evaluation_wrapper.rb +51 -0
  276. data/lib/6.5.0.36/generated/azure_service_fabric/models/health_event.rb +196 -0
  277. data/lib/6.5.0.36/generated/azure_service_fabric/models/health_information.rb +166 -0
  278. data/lib/6.5.0.36/generated/azure_service_fabric/models/health_state.rb +19 -0
  279. data/lib/6.5.0.36/generated/azure_service_fabric/models/health_state_count.rb +81 -0
  280. data/lib/6.5.0.36/generated/azure_service_fabric/models/health_statistics.rb +64 -0
  281. data/lib/6.5.0.36/generated/azure_service_fabric/models/host_isolation_mode.rb +17 -0
  282. data/lib/6.5.0.36/generated/azure_service_fabric/models/host_type.rb +17 -0
  283. data/lib/6.5.0.36/generated/azure_service_fabric/models/http_config.rb +79 -0
  284. data/lib/6.5.0.36/generated/azure_service_fabric/models/http_host_config.rb +68 -0
  285. data/lib/6.5.0.36/generated/azure_service_fabric/models/http_route_config.rb +72 -0
  286. data/lib/6.5.0.36/generated/azure_service_fabric/models/http_route_match_header.rb +69 -0
  287. data/lib/6.5.0.36/generated/azure_service_fabric/models/http_route_match_path.rb +71 -0
  288. data/lib/6.5.0.36/generated/azure_service_fabric/models/http_route_match_rule.rb +69 -0
  289. data/lib/6.5.0.36/generated/azure_service_fabric/models/identity_description.rb +104 -0
  290. data/lib/6.5.0.36/generated/azure_service_fabric/models/identity_item_description.rb +60 -0
  291. data/lib/6.5.0.36/generated/azure_service_fabric/models/image_registry_credential.rb +71 -0
  292. data/lib/6.5.0.36/generated/azure_service_fabric/models/image_store_content.rb +77 -0
  293. data/lib/6.5.0.36/generated/azure_service_fabric/models/image_store_copy_description.rb +95 -0
  294. data/lib/6.5.0.36/generated/azure_service_fabric/models/impact_level.rb +19 -0
  295. data/lib/6.5.0.36/generated/azure_service_fabric/models/inlined_value_secret_resource_properties.rb +88 -0
  296. data/lib/6.5.0.36/generated/azure_service_fabric/models/int64property_value.rb +61 -0
  297. data/lib/6.5.0.36/generated/azure_service_fabric/models/int64range_partition_information.rb +83 -0
  298. data/lib/6.5.0.36/generated/azure_service_fabric/models/invoke_data_loss_result.rb +61 -0
  299. data/lib/6.5.0.36/generated/azure_service_fabric/models/invoke_quorum_loss_result.rb +61 -0
  300. data/lib/6.5.0.36/generated/azure_service_fabric/models/key_value_store_replica_status.rb +111 -0
  301. data/lib/6.5.0.36/generated/azure_service_fabric/models/load_metric_information.rb +340 -0
  302. data/lib/6.5.0.36/generated/azure_service_fabric/models/load_metric_report.rb +82 -0
  303. data/lib/6.5.0.36/generated/azure_service_fabric/models/load_metric_report_info.rb +81 -0
  304. data/lib/6.5.0.36/generated/azure_service_fabric/models/local_network_resource_properties.rb +88 -0
  305. data/lib/6.5.0.36/generated/azure_service_fabric/models/managed_application_identity.rb +57 -0
  306. data/lib/6.5.0.36/generated/azure_service_fabric/models/managed_application_identity_description.rb +67 -0
  307. data/lib/6.5.0.36/generated/azure_service_fabric/models/monitoring_policy_description.rb +124 -0
  308. data/lib/6.5.0.36/generated/azure_service_fabric/models/move_cost.rb +18 -0
  309. data/lib/6.5.0.36/generated/azure_service_fabric/models/name_description.rb +47 -0
  310. data/lib/6.5.0.36/generated/azure_service_fabric/models/named_partition_information.rb +70 -0
  311. data/lib/6.5.0.36/generated/azure_service_fabric/models/named_partition_scheme_description.rb +81 -0
  312. data/lib/6.5.0.36/generated/azure_service_fabric/models/network_kind.rb +15 -0
  313. data/lib/6.5.0.36/generated/azure_service_fabric/models/network_ref.rb +67 -0
  314. data/lib/6.5.0.36/generated/azure_service_fabric/models/network_resource_description.rb +59 -0
  315. data/lib/6.5.0.36/generated/azure_service_fabric/models/network_resource_properties.rb +88 -0
  316. data/lib/6.5.0.36/generated/azure_service_fabric/models/network_resource_properties_base.rb +48 -0
  317. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_aborted_event.rb +178 -0
  318. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_added_to_cluster_event.rb +156 -0
  319. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_closed_event.rb +123 -0
  320. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_deactivate_completed_event.rb +134 -0
  321. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_deactivate_started_event.rb +123 -0
  322. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_deactivation_info.rb +104 -0
  323. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_deactivation_intent.rb +19 -0
  324. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_deactivation_status.rb +18 -0
  325. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_deactivation_task.rb +62 -0
  326. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_deactivation_task_id.rb +59 -0
  327. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_deactivation_task_type.rb +18 -0
  328. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_down_event.rb +112 -0
  329. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_event.rb +93 -0
  330. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_health.rb +98 -0
  331. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_health_evaluation.rb +102 -0
  332. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_health_report_expired_event.rb +189 -0
  333. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_health_state.rb +68 -0
  334. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_health_state_chunk.rb +55 -0
  335. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_health_state_chunk_list.rb +66 -0
  336. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_health_state_filter.rb +93 -0
  337. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_id.rb +47 -0
  338. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_impact.rb +61 -0
  339. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_info.rb +254 -0
  340. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_load_info.rb +69 -0
  341. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_load_metric_information.rb +171 -0
  342. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_new_health_report_event.rb +189 -0
  343. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_open_failed_event.rb +189 -0
  344. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_open_succeeded_event.rb +178 -0
  345. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_removed_from_cluster_event.rb +156 -0
  346. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_repair_impact_description.rb +74 -0
  347. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_repair_target_description.rb +72 -0
  348. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_result.rb +58 -0
  349. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_status.rb +22 -0
  350. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_status_filter.rb +23 -0
  351. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_transition_progress.rb +64 -0
  352. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_transition_result.rb +61 -0
  353. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_transition_type.rb +17 -0
  354. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_up_event.rb +112 -0
  355. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_upgrade_phase.rb +18 -0
  356. data/lib/6.5.0.36/generated/azure_service_fabric/models/node_upgrade_progress_info.rb +79 -0
  357. data/lib/6.5.0.36/generated/azure_service_fabric/models/nodes_health_evaluation.rb +114 -0
  358. data/lib/6.5.0.36/generated/azure_service_fabric/models/operating_system_type.rb +16 -0
  359. data/lib/6.5.0.36/generated/azure_service_fabric/models/operation_state.rb +21 -0
  360. data/lib/6.5.0.36/generated/azure_service_fabric/models/operation_status.rb +74 -0
  361. data/lib/6.5.0.36/generated/azure_service_fabric/models/operation_type.rb +19 -0
  362. data/lib/6.5.0.36/generated/azure_service_fabric/models/package_sharing_policy_info.rb +61 -0
  363. data/lib/6.5.0.36/generated/azure_service_fabric/models/package_sharing_policy_scope.rb +19 -0
  364. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_application_info_list.rb +74 -0
  365. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_application_resource_description_list.rb +74 -0
  366. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_application_type_info_list.rb +75 -0
  367. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_backup_configuration_info_list.rb +77 -0
  368. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_backup_entity_list.rb +76 -0
  369. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_backup_info_list.rb +73 -0
  370. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_backup_policy_description_list.rb +75 -0
  371. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_compose_deployment_status_info_list.rb +75 -0
  372. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_deployed_application_info_list.rb +76 -0
  373. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_gateway_resource_description_list.rb +74 -0
  374. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_network_resource_description_list.rb +74 -0
  375. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_node_info_list.rb +74 -0
  376. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_property_info_list.rb +87 -0
  377. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_replica_info_list.rb +76 -0
  378. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_secret_resource_description_list.rb +74 -0
  379. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_secret_value_resource_description_list.rb +74 -0
  380. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_service_info_list.rb +76 -0
  381. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_service_partition_info_list.rb +77 -0
  382. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_service_replica_description_list.rb +75 -0
  383. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_service_resource_description_list.rb +74 -0
  384. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_sub_name_info_list.rb +86 -0
  385. data/lib/6.5.0.36/generated/azure_service_fabric/models/paged_volume_resource_description_list.rb +74 -0
  386. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_access_status.rb +19 -0
  387. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_analysis_event.rb +102 -0
  388. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_backup_configuration_info.rb +99 -0
  389. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_backup_entity.rb +74 -0
  390. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_data_loss_progress.rb +61 -0
  391. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_event.rb +97 -0
  392. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_health.rb +121 -0
  393. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_health_evaluation.rb +104 -0
  394. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_health_report_expired_event.rb +178 -0
  395. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_health_state.rb +56 -0
  396. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_health_state_chunk.rb +70 -0
  397. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_health_state_chunk_list.rb +59 -0
  398. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_health_state_filter.rb +125 -0
  399. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_information.rb +64 -0
  400. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_instance_count_scale_mechanism.rb +85 -0
  401. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_load_information.rb +93 -0
  402. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_new_health_report_event.rb +178 -0
  403. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_primary_move_analysis_event.rb +154 -0
  404. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_quorum_loss_progress.rb +61 -0
  405. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_reconfigured_event.rb +233 -0
  406. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_restart_progress.rb +61 -0
  407. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_safety_check.rb +62 -0
  408. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_scheme.rb +18 -0
  409. data/lib/6.5.0.36/generated/azure_service_fabric/models/partition_scheme_description.rb +48 -0
  410. data/lib/6.5.0.36/generated/azure_service_fabric/models/partitions_health_evaluation.rb +115 -0
  411. data/lib/6.5.0.36/generated/azure_service_fabric/models/primary_replicator_status.rb +85 -0
  412. data/lib/6.5.0.36/generated/azure_service_fabric/models/property_batch_description_list.rb +59 -0
  413. data/lib/6.5.0.36/generated/azure_service_fabric/models/property_batch_info.rb +47 -0
  414. data/lib/6.5.0.36/generated/azure_service_fabric/models/property_batch_info_kind.rb +17 -0
  415. data/lib/6.5.0.36/generated/azure_service_fabric/models/property_batch_operation.rb +63 -0
  416. data/lib/6.5.0.36/generated/azure_service_fabric/models/property_batch_operation_kind.rb +21 -0
  417. data/lib/6.5.0.36/generated/azure_service_fabric/models/property_description.rb +72 -0
  418. data/lib/6.5.0.36/generated/azure_service_fabric/models/property_info.rb +73 -0
  419. data/lib/6.5.0.36/generated/azure_service_fabric/models/property_metadata.rb +107 -0
  420. data/lib/6.5.0.36/generated/azure_service_fabric/models/property_value.rb +50 -0
  421. data/lib/6.5.0.36/generated/azure_service_fabric/models/property_value_kind.rb +20 -0
  422. data/lib/6.5.0.36/generated/azure_service_fabric/models/provision_application_type_description.rb +85 -0
  423. data/lib/6.5.0.36/generated/azure_service_fabric/models/provision_application_type_description_base.rb +64 -0
  424. data/lib/6.5.0.36/generated/azure_service_fabric/models/provision_application_type_kind.rb +17 -0
  425. data/lib/6.5.0.36/generated/azure_service_fabric/models/provision_fabric_description.rb +57 -0
  426. data/lib/6.5.0.36/generated/azure_service_fabric/models/put_property_batch_operation.rb +86 -0
  427. data/lib/6.5.0.36/generated/azure_service_fabric/models/quorum_loss_mode.rb +17 -0
  428. data/lib/6.5.0.36/generated/azure_service_fabric/models/reconfiguration_information.rb +89 -0
  429. data/lib/6.5.0.36/generated/azure_service_fabric/models/reconfiguration_phase.rb +22 -0
  430. data/lib/6.5.0.36/generated/azure_service_fabric/models/reconfiguration_type.rb +18 -0
  431. data/lib/6.5.0.36/generated/azure_service_fabric/models/registry_credential.rb +70 -0
  432. data/lib/6.5.0.36/generated/azure_service_fabric/models/reliable_collections_ref.rb +61 -0
  433. data/lib/6.5.0.36/generated/azure_service_fabric/models/remote_replicator_acknowledgement_detail.rb +85 -0
  434. data/lib/6.5.0.36/generated/azure_service_fabric/models/remote_replicator_acknowledgement_status.rb +63 -0
  435. data/lib/6.5.0.36/generated/azure_service_fabric/models/remote_replicator_status.rb +139 -0
  436. data/lib/6.5.0.36/generated/azure_service_fabric/models/repair_impact_description_base.rb +49 -0
  437. data/lib/6.5.0.36/generated/azure_service_fabric/models/repair_impact_kind.rb +16 -0
  438. data/lib/6.5.0.36/generated/azure_service_fabric/models/repair_target_description_base.rb +49 -0
  439. data/lib/6.5.0.36/generated/azure_service_fabric/models/repair_target_kind.rb +16 -0
  440. data/lib/6.5.0.36/generated/azure_service_fabric/models/repair_task.rb +290 -0
  441. data/lib/6.5.0.36/generated/azure_service_fabric/models/repair_task_approve_description.rb +63 -0
  442. data/lib/6.5.0.36/generated/azure_service_fabric/models/repair_task_cancel_description.rb +76 -0
  443. data/lib/6.5.0.36/generated/azure_service_fabric/models/repair_task_delete_description.rb +63 -0
  444. data/lib/6.5.0.36/generated/azure_service_fabric/models/repair_task_health_check_state.rb +19 -0
  445. data/lib/6.5.0.36/generated/azure_service_fabric/models/repair_task_history.rb +170 -0
  446. data/lib/6.5.0.36/generated/azure_service_fabric/models/repair_task_update_health_policy_description.rb +91 -0
  447. data/lib/6.5.0.36/generated/azure_service_fabric/models/repair_task_update_info.rb +50 -0
  448. data/lib/6.5.0.36/generated/azure_service_fabric/models/replica_event.rb +114 -0
  449. data/lib/6.5.0.36/generated/azure_service_fabric/models/replica_health.rb +109 -0
  450. data/lib/6.5.0.36/generated/azure_service_fabric/models/replica_health_evaluation.rb +122 -0
  451. data/lib/6.5.0.36/generated/azure_service_fabric/models/replica_health_report_service_kind.rb +16 -0
  452. data/lib/6.5.0.36/generated/azure_service_fabric/models/replica_health_state.rb +64 -0
  453. data/lib/6.5.0.36/generated/azure_service_fabric/models/replica_health_state_chunk.rb +66 -0
  454. data/lib/6.5.0.36/generated/azure_service_fabric/models/replica_health_state_chunk_list.rb +57 -0
  455. data/lib/6.5.0.36/generated/azure_service_fabric/models/replica_health_state_filter.rb +97 -0
  456. data/lib/6.5.0.36/generated/azure_service_fabric/models/replica_info.rb +107 -0
  457. data/lib/6.5.0.36/generated/azure_service_fabric/models/replica_kind.rb +16 -0
  458. data/lib/6.5.0.36/generated/azure_service_fabric/models/replica_role.rb +19 -0
  459. data/lib/6.5.0.36/generated/azure_service_fabric/models/replica_status.rb +20 -0
  460. data/lib/6.5.0.36/generated/azure_service_fabric/models/replica_status_base.rb +46 -0
  461. data/lib/6.5.0.36/generated/azure_service_fabric/models/replicas_health_evaluation.rb +115 -0
  462. data/lib/6.5.0.36/generated/azure_service_fabric/models/replicator_operation_name.rb +24 -0
  463. data/lib/6.5.0.36/generated/azure_service_fabric/models/replicator_queue_status.rb +123 -0
  464. data/lib/6.5.0.36/generated/azure_service_fabric/models/replicator_status.rb +52 -0
  465. data/lib/6.5.0.36/generated/azure_service_fabric/models/resolved_service_endpoint.rb +61 -0
  466. data/lib/6.5.0.36/generated/azure_service_fabric/models/resolved_service_partition.rb +96 -0
  467. data/lib/6.5.0.36/generated/azure_service_fabric/models/resource_limits.rb +60 -0
  468. data/lib/6.5.0.36/generated/azure_service_fabric/models/resource_requests.rb +62 -0
  469. data/lib/6.5.0.36/generated/azure_service_fabric/models/resource_requirements.rb +62 -0
  470. data/lib/6.5.0.36/generated/azure_service_fabric/models/resource_status.rb +20 -0
  471. data/lib/6.5.0.36/generated/azure_service_fabric/models/restart_deployed_code_package_description.rb +97 -0
  472. data/lib/6.5.0.36/generated/azure_service_fabric/models/restart_node_description.rb +65 -0
  473. data/lib/6.5.0.36/generated/azure_service_fabric/models/restart_partition_mode.rb +17 -0
  474. data/lib/6.5.0.36/generated/azure_service_fabric/models/restart_partition_result.rb +61 -0
  475. data/lib/6.5.0.36/generated/azure_service_fabric/models/restore_partition_description.rb +74 -0
  476. data/lib/6.5.0.36/generated/azure_service_fabric/models/restore_progress_info.rb +95 -0
  477. data/lib/6.5.0.36/generated/azure_service_fabric/models/restore_state.rb +20 -0
  478. data/lib/6.5.0.36/generated/azure_service_fabric/models/result_status.rb +20 -0
  479. data/lib/6.5.0.36/generated/azure_service_fabric/models/resume_application_upgrade_description.rb +48 -0
  480. data/lib/6.5.0.36/generated/azure_service_fabric/models/resume_cluster_upgrade_description.rb +46 -0
  481. data/lib/6.5.0.36/generated/azure_service_fabric/models/retention_policy_description.rb +46 -0
  482. data/lib/6.5.0.36/generated/azure_service_fabric/models/retention_policy_type.rb +16 -0
  483. data/lib/6.5.0.36/generated/azure_service_fabric/models/rolling_upgrade_update_description.rb +169 -0
  484. data/lib/6.5.0.36/generated/azure_service_fabric/models/safety_check.rb +55 -0
  485. data/lib/6.5.0.36/generated/azure_service_fabric/models/safety_check_kind.rb +22 -0
  486. data/lib/6.5.0.36/generated/azure_service_fabric/models/safety_check_wrapper.rb +53 -0
  487. data/lib/6.5.0.36/generated/azure_service_fabric/models/scaling_mechanism_description.rb +47 -0
  488. data/lib/6.5.0.36/generated/azure_service_fabric/models/scaling_mechanism_kind.rb +17 -0
  489. data/lib/6.5.0.36/generated/azure_service_fabric/models/scaling_policy_description.rb +65 -0
  490. data/lib/6.5.0.36/generated/azure_service_fabric/models/scaling_trigger_description.rb +47 -0
  491. data/lib/6.5.0.36/generated/azure_service_fabric/models/scaling_trigger_kind.rb +17 -0
  492. data/lib/6.5.0.36/generated/azure_service_fabric/models/secondary_active_replicator_status.rb +101 -0
  493. data/lib/6.5.0.36/generated/azure_service_fabric/models/secondary_idle_replicator_status.rb +101 -0
  494. data/lib/6.5.0.36/generated/azure_service_fabric/models/secondary_replicator_status.rb +131 -0
  495. data/lib/6.5.0.36/generated/azure_service_fabric/models/secret_kind.rb +15 -0
  496. data/lib/6.5.0.36/generated/azure_service_fabric/models/secret_resource_description.rb +59 -0
  497. data/lib/6.5.0.36/generated/azure_service_fabric/models/secret_resource_properties.rb +101 -0
  498. data/lib/6.5.0.36/generated/azure_service_fabric/models/secret_resource_properties_base.rb +48 -0
  499. data/lib/6.5.0.36/generated/azure_service_fabric/models/secret_value.rb +46 -0
  500. data/lib/6.5.0.36/generated/azure_service_fabric/models/secret_value_properties.rb +46 -0
  501. data/lib/6.5.0.36/generated/azure_service_fabric/models/secret_value_resource_description.rb +58 -0
  502. data/lib/6.5.0.36/generated/azure_service_fabric/models/seed_node_safety_check.rb +51 -0
  503. data/lib/6.5.0.36/generated/azure_service_fabric/models/selected_partition.rb +62 -0
  504. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_backup_configuration_info.rb +89 -0
  505. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_backup_entity.rb +62 -0
  506. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_correlation_description.rb +61 -0
  507. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_correlation_scheme.rb +18 -0
  508. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_created_event.rb +204 -0
  509. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_deleted_event.rb +189 -0
  510. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_description.rb +268 -0
  511. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_endpoint_role.rb +18 -0
  512. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_event.rb +100 -0
  513. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_from_template_description.rb +117 -0
  514. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_health.rb +119 -0
  515. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_health_evaluation.rb +104 -0
  516. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_health_report_expired_event.rb +189 -0
  517. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_health_state.rb +56 -0
  518. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_health_state_chunk.rb +71 -0
  519. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_health_state_chunk_list.rb +57 -0
  520. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_health_state_filter.rb +124 -0
  521. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_identity.rb +57 -0
  522. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_info.rb +137 -0
  523. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_kind.rb +17 -0
  524. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_load_metric_description.rb +100 -0
  525. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_load_metric_weight.rb +18 -0
  526. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_name_info.rb +65 -0
  527. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_new_health_report_event.rb +189 -0
  528. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_operation_name.rb +20 -0
  529. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_package_activation_mode.rb +16 -0
  530. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_partition_info.rb +88 -0
  531. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_partition_kind.rb +18 -0
  532. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_partition_status.rb +20 -0
  533. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_invalid_domain_policy_description.rb +65 -0
  534. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_non_partially_place_service_policy_description.rb +53 -0
  535. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_policy_description.rb +51 -0
  536. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_policy_type.rb +20 -0
  537. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_prefer_primary_domain_policy_description.rb +74 -0
  538. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_require_domain_distribution_policy_description.rb +74 -0
  539. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_required_domain_policy_description.rb +65 -0
  540. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_properties.rb +153 -0
  541. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_replica_description.rb +97 -0
  542. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_replica_properties.rb +104 -0
  543. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_resource_description.rb +233 -0
  544. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_status.rb +20 -0
  545. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_type_description.rb +151 -0
  546. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_type_extension_description.rb +57 -0
  547. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_type_health_policy.rb +104 -0
  548. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_type_health_policy_map_item.rb +61 -0
  549. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_type_info.rb +88 -0
  550. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_type_manifest.rb +47 -0
  551. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_type_registration_status.rb +18 -0
  552. data/lib/6.5.0.36/generated/azure_service_fabric/models/service_update_description.rb +202 -0
  553. data/lib/6.5.0.36/generated/azure_service_fabric/models/services_health_evaluation.rb +127 -0
  554. data/lib/6.5.0.36/generated/azure_service_fabric/models/setting.rb +60 -0
  555. data/lib/6.5.0.36/generated/azure_service_fabric/models/singleton_partition_information.rb +60 -0
  556. data/lib/6.5.0.36/generated/azure_service_fabric/models/singleton_partition_scheme_description.rb +51 -0
  557. data/lib/6.5.0.36/generated/azure_service_fabric/models/size_types.rb +17 -0
  558. data/lib/6.5.0.36/generated/azure_service_fabric/models/start_cluster_upgrade_description.rb +196 -0
  559. data/lib/6.5.0.36/generated/azure_service_fabric/models/started_chaos_event.rb +71 -0
  560. data/lib/6.5.0.36/generated/azure_service_fabric/models/state.rb +22 -0
  561. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateful_replica_health_report_expired_event.rb +197 -0
  562. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateful_replica_new_health_report_event.rb +197 -0
  563. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateful_service_description.rb +326 -0
  564. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateful_service_info.rb +117 -0
  565. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateful_service_partition_info.rb +129 -0
  566. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateful_service_replica_health.rb +128 -0
  567. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateful_service_replica_health_state.rb +84 -0
  568. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateful_service_replica_info.rb +122 -0
  569. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateful_service_type_description.rb +141 -0
  570. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateful_service_update_description.rb +208 -0
  571. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateless_replica_health_report_expired_event.rb +186 -0
  572. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateless_replica_new_health_report_event.rb +186 -0
  573. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateless_service_description.rb +225 -0
  574. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateless_service_info.rb +106 -0
  575. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateless_service_instance_health.rb +127 -0
  576. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateless_service_instance_health_state.rb +79 -0
  577. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateless_service_instance_info.rb +108 -0
  578. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateless_service_partition_info.rb +88 -0
  579. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateless_service_type_description.rb +142 -0
  580. data/lib/6.5.0.36/generated/azure_service_fabric/models/stateless_service_update_description.rb +158 -0
  581. data/lib/6.5.0.36/generated/azure_service_fabric/models/stopped_chaos_event.rb +72 -0
  582. data/lib/6.5.0.36/generated/azure_service_fabric/models/string_property_value.rb +61 -0
  583. data/lib/6.5.0.36/generated/azure_service_fabric/models/successful_property_batch_info.rb +75 -0
  584. data/lib/6.5.0.36/generated/azure_service_fabric/models/system_application_health_evaluation.rb +93 -0
  585. data/lib/6.5.0.36/generated/azure_service_fabric/models/tcp_config.rb +72 -0
  586. data/lib/6.5.0.36/generated/azure_service_fabric/models/test_error_chaos_event.rb +76 -0
  587. data/lib/6.5.0.36/generated/azure_service_fabric/models/time_based_backup_schedule_description.rb +105 -0
  588. data/lib/6.5.0.36/generated/azure_service_fabric/models/time_of_day.rb +67 -0
  589. data/lib/6.5.0.36/generated/azure_service_fabric/models/time_range.rb +61 -0
  590. data/lib/6.5.0.36/generated/azure_service_fabric/models/uniform_int64range_partition_scheme_description.rb +89 -0
  591. data/lib/6.5.0.36/generated/azure_service_fabric/models/unplaced_replica_information.rb +77 -0
  592. data/lib/6.5.0.36/generated/azure_service_fabric/models/unprovision_application_type_description_info.rb +65 -0
  593. data/lib/6.5.0.36/generated/azure_service_fabric/models/unprovision_fabric_description.rb +57 -0
  594. data/lib/6.5.0.36/generated/azure_service_fabric/models/update_cluster_upgrade_description.rb +115 -0
  595. data/lib/6.5.0.36/generated/azure_service_fabric/models/upgrade_domain_delta_nodes_check_health_evaluation.rb +154 -0
  596. data/lib/6.5.0.36/generated/azure_service_fabric/models/upgrade_domain_info.rb +58 -0
  597. data/lib/6.5.0.36/generated/azure_service_fabric/models/upgrade_domain_nodes_health_evaluation.rb +127 -0
  598. data/lib/6.5.0.36/generated/azure_service_fabric/models/upgrade_domain_state.rb +18 -0
  599. data/lib/6.5.0.36/generated/azure_service_fabric/models/upgrade_kind.rb +16 -0
  600. data/lib/6.5.0.36/generated/azure_service_fabric/models/upgrade_mode.rb +18 -0
  601. data/lib/6.5.0.36/generated/azure_service_fabric/models/upgrade_orchestration_service_state.rb +47 -0
  602. data/lib/6.5.0.36/generated/azure_service_fabric/models/upgrade_orchestration_service_state_summary.rb +90 -0
  603. data/lib/6.5.0.36/generated/azure_service_fabric/models/upgrade_sort_order.rb +20 -0
  604. data/lib/6.5.0.36/generated/azure_service_fabric/models/upgrade_state.rb +21 -0
  605. data/lib/6.5.0.36/generated/azure_service_fabric/models/upgrade_type.rb +17 -0
  606. data/lib/6.5.0.36/generated/azure_service_fabric/models/upload_chunk_range.rb +59 -0
  607. data/lib/6.5.0.36/generated/azure_service_fabric/models/upload_session.rb +58 -0
  608. data/lib/6.5.0.36/generated/azure_service_fabric/models/upload_session_info.rb +104 -0
  609. data/lib/6.5.0.36/generated/azure_service_fabric/models/validation_failed_chaos_event.rb +73 -0
  610. data/lib/6.5.0.36/generated/azure_service_fabric/models/volume_provider.rb +15 -0
  611. data/lib/6.5.0.36/generated/azure_service_fabric/models/volume_provider_parameters_azure_file.rb +70 -0
  612. data/lib/6.5.0.36/generated/azure_service_fabric/models/volume_reference.rb +70 -0
  613. data/lib/6.5.0.36/generated/azure_service_fabric/models/volume_resource_description.rb +109 -0
  614. data/lib/6.5.0.36/generated/azure_service_fabric/models/wait_for_inbuild_replica_safety_check.rb +62 -0
  615. data/lib/6.5.0.36/generated/azure_service_fabric/models/wait_for_primary_placement_safety_check.rb +59 -0
  616. data/lib/6.5.0.36/generated/azure_service_fabric/models/wait_for_primary_swap_safety_check.rb +60 -0
  617. data/lib/6.5.0.36/generated/azure_service_fabric/models/wait_for_reconfiguration_safety_check.rb +59 -0
  618. data/lib/6.5.0.36/generated/azure_service_fabric/models/waiting_chaos_event.rb +72 -0
  619. data/lib/6.5.0.36/generated/azure_service_fabric/module_definition.rb +8 -0
  620. data/lib/6.5.0.36/generated/azure_service_fabric/service_fabric_client_apis.rb +30912 -0
  621. data/lib/azure_service_fabric.rb +1 -0
  622. data/lib/profiles/latest/modules/servicefabric_profile_module.rb +1384 -1344
  623. data/lib/version.rb +1 -1
  624. metadata +602 -4
@@ -0,0 +1,429 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ServiceFabric::V6_5_0_36
7
+ #
8
+ # Service Fabric REST Client APIs allows management of Service Fabric
9
+ # clusters, applications and services.
10
+ #
11
+ class MeshGateway
12
+ include MsRestAzure
13
+
14
+ #
15
+ # Creates and initializes a new instance of the MeshGateway class.
16
+ # @param client service class for accessing basic functionality.
17
+ #
18
+ def initialize(client)
19
+ @client = client
20
+ end
21
+
22
+ # @return [ServiceFabricClientAPIs] reference to the ServiceFabricClientAPIs
23
+ attr_reader :client
24
+
25
+ #
26
+ # Creates or updates a Gateway resource.
27
+ #
28
+ # Creates a Gateway resource with the specified name, description and
29
+ # properties. If Gateway resource with the same name exists, then it is updated
30
+ # with the specified description and properties. Use Gateway resource to
31
+ # provide public connectivity to application services.
32
+ #
33
+ # @param gateway_resource_name [String] The identity of the gateway.
34
+ # @param gateway_resource_description [GatewayResourceDescription] Description
35
+ # for creating a Gateway resource.
36
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
37
+ # will be added to the HTTP request.
38
+ #
39
+ # @return [GatewayResourceDescription] operation results.
40
+ #
41
+ def create_or_update(gateway_resource_name, gateway_resource_description, custom_headers:nil)
42
+ response = create_or_update_async(gateway_resource_name, gateway_resource_description, custom_headers:custom_headers).value!
43
+ response.body unless response.nil?
44
+ end
45
+
46
+ #
47
+ # Creates or updates a Gateway resource.
48
+ #
49
+ # Creates a Gateway resource with the specified name, description and
50
+ # properties. If Gateway resource with the same name exists, then it is updated
51
+ # with the specified description and properties. Use Gateway resource to
52
+ # provide public connectivity to application services.
53
+ #
54
+ # @param gateway_resource_name [String] The identity of the gateway.
55
+ # @param gateway_resource_description [GatewayResourceDescription] Description
56
+ # for creating a Gateway resource.
57
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
58
+ # will be added to the HTTP request.
59
+ #
60
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
61
+ #
62
+ def create_or_update_with_http_info(gateway_resource_name, gateway_resource_description, custom_headers:nil)
63
+ create_or_update_async(gateway_resource_name, gateway_resource_description, custom_headers:custom_headers).value!
64
+ end
65
+
66
+ #
67
+ # Creates or updates a Gateway resource.
68
+ #
69
+ # Creates a Gateway resource with the specified name, description and
70
+ # properties. If Gateway resource with the same name exists, then it is updated
71
+ # with the specified description and properties. Use Gateway resource to
72
+ # provide public connectivity to application services.
73
+ #
74
+ # @param gateway_resource_name [String] The identity of the gateway.
75
+ # @param gateway_resource_description [GatewayResourceDescription] Description
76
+ # for creating a Gateway resource.
77
+ # @param [Hash{String => String}] A hash of custom headers that will be added
78
+ # to the HTTP request.
79
+ #
80
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
81
+ #
82
+ def create_or_update_async(gateway_resource_name, gateway_resource_description, custom_headers:nil)
83
+ api_version = '6.4-preview'
84
+ fail ArgumentError, 'gateway_resource_name is nil' if gateway_resource_name.nil?
85
+ fail ArgumentError, 'gateway_resource_description is nil' if gateway_resource_description.nil?
86
+
87
+
88
+ request_headers = {}
89
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
90
+
91
+ # Set Headers
92
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
93
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
94
+
95
+ # Serialize Request
96
+ request_mapper = Azure::ServiceFabric::V6_5_0_36::Models::GatewayResourceDescription.mapper()
97
+ request_content = @client.serialize(request_mapper, gateway_resource_description)
98
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
99
+
100
+ path_template = 'Resources/Gateways/{gatewayResourceName}'
101
+
102
+ request_url = @base_url || @client.base_url
103
+
104
+ options = {
105
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
106
+ skip_encoding_path_params: {'gatewayResourceName' => gateway_resource_name},
107
+ query_params: {'api-version' => api_version},
108
+ body: request_content,
109
+ headers: request_headers.merge(custom_headers || {}),
110
+ base_url: request_url
111
+ }
112
+ promise = @client.make_request_async(:put, path_template, options)
113
+
114
+ promise = promise.then do |result|
115
+ http_response = result.response
116
+ status_code = http_response.status
117
+ response_content = http_response.body
118
+ unless status_code == 200 || status_code == 201 || status_code == 202
119
+ error_model = JSON.load(response_content)
120
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
121
+ end
122
+
123
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
124
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
125
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
126
+ # Deserialize Response
127
+ if status_code == 200
128
+ begin
129
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
130
+ result_mapper = Azure::ServiceFabric::V6_5_0_36::Models::GatewayResourceDescription.mapper()
131
+ result.body = @client.deserialize(result_mapper, parsed_response)
132
+ rescue Exception => e
133
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
134
+ end
135
+ end
136
+ # Deserialize Response
137
+ if status_code == 201
138
+ begin
139
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
140
+ result_mapper = Azure::ServiceFabric::V6_5_0_36::Models::GatewayResourceDescription.mapper()
141
+ result.body = @client.deserialize(result_mapper, parsed_response)
142
+ rescue Exception => e
143
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
144
+ end
145
+ end
146
+
147
+ result
148
+ end
149
+
150
+ promise.execute
151
+ end
152
+
153
+ #
154
+ # Gets the Gateway resource with the given name.
155
+ #
156
+ # Gets the information about the Gateway resource with the given name. The
157
+ # information include the description and other properties of the Gateway.
158
+ #
159
+ # @param gateway_resource_name [String] The identity of the gateway.
160
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
161
+ # will be added to the HTTP request.
162
+ #
163
+ # @return [GatewayResourceDescription] operation results.
164
+ #
165
+ def get(gateway_resource_name, custom_headers:nil)
166
+ response = get_async(gateway_resource_name, custom_headers:custom_headers).value!
167
+ response.body unless response.nil?
168
+ end
169
+
170
+ #
171
+ # Gets the Gateway resource with the given name.
172
+ #
173
+ # Gets the information about the Gateway resource with the given name. The
174
+ # information include the description and other properties of the Gateway.
175
+ #
176
+ # @param gateway_resource_name [String] The identity of the gateway.
177
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
178
+ # will be added to the HTTP request.
179
+ #
180
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
181
+ #
182
+ def get_with_http_info(gateway_resource_name, custom_headers:nil)
183
+ get_async(gateway_resource_name, custom_headers:custom_headers).value!
184
+ end
185
+
186
+ #
187
+ # Gets the Gateway resource with the given name.
188
+ #
189
+ # Gets the information about the Gateway resource with the given name. The
190
+ # information include the description and other properties of the Gateway.
191
+ #
192
+ # @param gateway_resource_name [String] The identity of the gateway.
193
+ # @param [Hash{String => String}] A hash of custom headers that will be added
194
+ # to the HTTP request.
195
+ #
196
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
197
+ #
198
+ def get_async(gateway_resource_name, custom_headers:nil)
199
+ api_version = '6.4-preview'
200
+ fail ArgumentError, 'gateway_resource_name is nil' if gateway_resource_name.nil?
201
+
202
+
203
+ request_headers = {}
204
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
205
+
206
+ # Set Headers
207
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
208
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
209
+ path_template = 'Resources/Gateways/{gatewayResourceName}'
210
+
211
+ request_url = @base_url || @client.base_url
212
+
213
+ options = {
214
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
215
+ skip_encoding_path_params: {'gatewayResourceName' => gateway_resource_name},
216
+ query_params: {'api-version' => api_version},
217
+ headers: request_headers.merge(custom_headers || {}),
218
+ base_url: request_url
219
+ }
220
+ promise = @client.make_request_async(:get, path_template, options)
221
+
222
+ promise = promise.then do |result|
223
+ http_response = result.response
224
+ status_code = http_response.status
225
+ response_content = http_response.body
226
+ unless status_code == 200
227
+ error_model = JSON.load(response_content)
228
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
229
+ end
230
+
231
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
232
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
233
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
234
+ # Deserialize Response
235
+ if status_code == 200
236
+ begin
237
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
238
+ result_mapper = Azure::ServiceFabric::V6_5_0_36::Models::GatewayResourceDescription.mapper()
239
+ result.body = @client.deserialize(result_mapper, parsed_response)
240
+ rescue Exception => e
241
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
242
+ end
243
+ end
244
+
245
+ result
246
+ end
247
+
248
+ promise.execute
249
+ end
250
+
251
+ #
252
+ # Deletes the Gateway resource.
253
+ #
254
+ # Deletes the Gateway resource identified by the name.
255
+ #
256
+ # @param gateway_resource_name [String] The identity of the gateway.
257
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
258
+ # will be added to the HTTP request.
259
+ #
260
+ #
261
+ def delete(gateway_resource_name, custom_headers:nil)
262
+ response = delete_async(gateway_resource_name, custom_headers:custom_headers).value!
263
+ nil
264
+ end
265
+
266
+ #
267
+ # Deletes the Gateway resource.
268
+ #
269
+ # Deletes the Gateway resource identified by the name.
270
+ #
271
+ # @param gateway_resource_name [String] The identity of the gateway.
272
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
273
+ # will be added to the HTTP request.
274
+ #
275
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
276
+ #
277
+ def delete_with_http_info(gateway_resource_name, custom_headers:nil)
278
+ delete_async(gateway_resource_name, custom_headers:custom_headers).value!
279
+ end
280
+
281
+ #
282
+ # Deletes the Gateway resource.
283
+ #
284
+ # Deletes the Gateway resource identified by the name.
285
+ #
286
+ # @param gateway_resource_name [String] The identity of the gateway.
287
+ # @param [Hash{String => String}] A hash of custom headers that will be added
288
+ # to the HTTP request.
289
+ #
290
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
291
+ #
292
+ def delete_async(gateway_resource_name, custom_headers:nil)
293
+ api_version = '6.4-preview'
294
+ fail ArgumentError, 'gateway_resource_name is nil' if gateway_resource_name.nil?
295
+
296
+
297
+ request_headers = {}
298
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
299
+
300
+ # Set Headers
301
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
302
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
303
+ path_template = 'Resources/Gateways/{gatewayResourceName}'
304
+
305
+ request_url = @base_url || @client.base_url
306
+
307
+ options = {
308
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
309
+ skip_encoding_path_params: {'gatewayResourceName' => gateway_resource_name},
310
+ query_params: {'api-version' => api_version},
311
+ headers: request_headers.merge(custom_headers || {}),
312
+ base_url: request_url
313
+ }
314
+ promise = @client.make_request_async(:delete, path_template, options)
315
+
316
+ promise = promise.then do |result|
317
+ http_response = result.response
318
+ status_code = http_response.status
319
+ response_content = http_response.body
320
+ unless status_code == 200 || status_code == 202 || status_code == 204
321
+ error_model = JSON.load(response_content)
322
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
323
+ end
324
+
325
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
326
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
327
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
328
+
329
+ result
330
+ end
331
+
332
+ promise.execute
333
+ end
334
+
335
+ #
336
+ # Lists all the gateway resources.
337
+ #
338
+ # Gets the information about all gateway resources in a given resource group.
339
+ # The information include the description and other properties of the Gateway.
340
+ #
341
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
342
+ # will be added to the HTTP request.
343
+ #
344
+ # @return [PagedGatewayResourceDescriptionList] operation results.
345
+ #
346
+ def list(custom_headers:nil)
347
+ response = list_async(custom_headers:custom_headers).value!
348
+ response.body unless response.nil?
349
+ end
350
+
351
+ #
352
+ # Lists all the gateway resources.
353
+ #
354
+ # Gets the information about all gateway resources in a given resource group.
355
+ # The information include the description and other properties of the Gateway.
356
+ #
357
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
358
+ # will be added to the HTTP request.
359
+ #
360
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
361
+ #
362
+ def list_with_http_info(custom_headers:nil)
363
+ list_async(custom_headers:custom_headers).value!
364
+ end
365
+
366
+ #
367
+ # Lists all the gateway resources.
368
+ #
369
+ # Gets the information about all gateway resources in a given resource group.
370
+ # The information include the description and other properties of the Gateway.
371
+ #
372
+ # @param [Hash{String => String}] A hash of custom headers that will be added
373
+ # to the HTTP request.
374
+ #
375
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
376
+ #
377
+ def list_async(custom_headers:nil)
378
+ api_version = '6.4-preview'
379
+
380
+
381
+ request_headers = {}
382
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
383
+
384
+ # Set Headers
385
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
386
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
387
+ path_template = 'Resources/Gateways'
388
+
389
+ request_url = @base_url || @client.base_url
390
+
391
+ options = {
392
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
393
+ query_params: {'api-version' => api_version},
394
+ headers: request_headers.merge(custom_headers || {}),
395
+ base_url: request_url
396
+ }
397
+ promise = @client.make_request_async(:get, path_template, options)
398
+
399
+ promise = promise.then do |result|
400
+ http_response = result.response
401
+ status_code = http_response.status
402
+ response_content = http_response.body
403
+ unless status_code == 200
404
+ error_model = JSON.load(response_content)
405
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
406
+ end
407
+
408
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
409
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
410
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
411
+ # Deserialize Response
412
+ if status_code == 200
413
+ begin
414
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
415
+ result_mapper = Azure::ServiceFabric::V6_5_0_36::Models::PagedGatewayResourceDescriptionList.mapper()
416
+ result.body = @client.deserialize(result_mapper, parsed_response)
417
+ rescue Exception => e
418
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
419
+ end
420
+ end
421
+
422
+ result
423
+ end
424
+
425
+ promise.execute
426
+ end
427
+
428
+ end
429
+ end
@@ -0,0 +1,429 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ServiceFabric::V6_5_0_36
7
+ #
8
+ # Service Fabric REST Client APIs allows management of Service Fabric
9
+ # clusters, applications and services.
10
+ #
11
+ class MeshNetwork
12
+ include MsRestAzure
13
+
14
+ #
15
+ # Creates and initializes a new instance of the MeshNetwork class.
16
+ # @param client service class for accessing basic functionality.
17
+ #
18
+ def initialize(client)
19
+ @client = client
20
+ end
21
+
22
+ # @return [ServiceFabricClientAPIs] reference to the ServiceFabricClientAPIs
23
+ attr_reader :client
24
+
25
+ #
26
+ # Creates or updates a Network resource.
27
+ #
28
+ # Creates a Network resource with the specified name, description and
29
+ # properties. If Network resource with the same name exists, then it is updated
30
+ # with the specified description and properties. Network resource provides
31
+ # connectivity between application services.
32
+ #
33
+ # @param network_resource_name [String] The identity of the network.
34
+ # @param network_resource_description [NetworkResourceDescription] Description
35
+ # for creating a Network resource.
36
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
37
+ # will be added to the HTTP request.
38
+ #
39
+ # @return [NetworkResourceDescription] operation results.
40
+ #
41
+ def create_or_update(network_resource_name, network_resource_description, custom_headers:nil)
42
+ response = create_or_update_async(network_resource_name, network_resource_description, custom_headers:custom_headers).value!
43
+ response.body unless response.nil?
44
+ end
45
+
46
+ #
47
+ # Creates or updates a Network resource.
48
+ #
49
+ # Creates a Network resource with the specified name, description and
50
+ # properties. If Network resource with the same name exists, then it is updated
51
+ # with the specified description and properties. Network resource provides
52
+ # connectivity between application services.
53
+ #
54
+ # @param network_resource_name [String] The identity of the network.
55
+ # @param network_resource_description [NetworkResourceDescription] Description
56
+ # for creating a Network resource.
57
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
58
+ # will be added to the HTTP request.
59
+ #
60
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
61
+ #
62
+ def create_or_update_with_http_info(network_resource_name, network_resource_description, custom_headers:nil)
63
+ create_or_update_async(network_resource_name, network_resource_description, custom_headers:custom_headers).value!
64
+ end
65
+
66
+ #
67
+ # Creates or updates a Network resource.
68
+ #
69
+ # Creates a Network resource with the specified name, description and
70
+ # properties. If Network resource with the same name exists, then it is updated
71
+ # with the specified description and properties. Network resource provides
72
+ # connectivity between application services.
73
+ #
74
+ # @param network_resource_name [String] The identity of the network.
75
+ # @param network_resource_description [NetworkResourceDescription] Description
76
+ # for creating a Network resource.
77
+ # @param [Hash{String => String}] A hash of custom headers that will be added
78
+ # to the HTTP request.
79
+ #
80
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
81
+ #
82
+ def create_or_update_async(network_resource_name, network_resource_description, custom_headers:nil)
83
+ api_version = '6.4-preview'
84
+ fail ArgumentError, 'network_resource_name is nil' if network_resource_name.nil?
85
+ fail ArgumentError, 'network_resource_description is nil' if network_resource_description.nil?
86
+
87
+
88
+ request_headers = {}
89
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
90
+
91
+ # Set Headers
92
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
93
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
94
+
95
+ # Serialize Request
96
+ request_mapper = Azure::ServiceFabric::V6_5_0_36::Models::NetworkResourceDescription.mapper()
97
+ request_content = @client.serialize(request_mapper, network_resource_description)
98
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
99
+
100
+ path_template = 'Resources/Networks/{networkResourceName}'
101
+
102
+ request_url = @base_url || @client.base_url
103
+
104
+ options = {
105
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
106
+ skip_encoding_path_params: {'networkResourceName' => network_resource_name},
107
+ query_params: {'api-version' => api_version},
108
+ body: request_content,
109
+ headers: request_headers.merge(custom_headers || {}),
110
+ base_url: request_url
111
+ }
112
+ promise = @client.make_request_async(:put, path_template, options)
113
+
114
+ promise = promise.then do |result|
115
+ http_response = result.response
116
+ status_code = http_response.status
117
+ response_content = http_response.body
118
+ unless status_code == 200 || status_code == 201 || status_code == 202
119
+ error_model = JSON.load(response_content)
120
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
121
+ end
122
+
123
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
124
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
125
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
126
+ # Deserialize Response
127
+ if status_code == 200
128
+ begin
129
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
130
+ result_mapper = Azure::ServiceFabric::V6_5_0_36::Models::NetworkResourceDescription.mapper()
131
+ result.body = @client.deserialize(result_mapper, parsed_response)
132
+ rescue Exception => e
133
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
134
+ end
135
+ end
136
+ # Deserialize Response
137
+ if status_code == 201
138
+ begin
139
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
140
+ result_mapper = Azure::ServiceFabric::V6_5_0_36::Models::NetworkResourceDescription.mapper()
141
+ result.body = @client.deserialize(result_mapper, parsed_response)
142
+ rescue Exception => e
143
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
144
+ end
145
+ end
146
+
147
+ result
148
+ end
149
+
150
+ promise.execute
151
+ end
152
+
153
+ #
154
+ # Gets the Network resource with the given name.
155
+ #
156
+ # Gets the information about the Network resource with the given name. The
157
+ # information include the description and other properties of the Network.
158
+ #
159
+ # @param network_resource_name [String] The identity of the network.
160
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
161
+ # will be added to the HTTP request.
162
+ #
163
+ # @return [NetworkResourceDescription] operation results.
164
+ #
165
+ def get(network_resource_name, custom_headers:nil)
166
+ response = get_async(network_resource_name, custom_headers:custom_headers).value!
167
+ response.body unless response.nil?
168
+ end
169
+
170
+ #
171
+ # Gets the Network resource with the given name.
172
+ #
173
+ # Gets the information about the Network resource with the given name. The
174
+ # information include the description and other properties of the Network.
175
+ #
176
+ # @param network_resource_name [String] The identity of the network.
177
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
178
+ # will be added to the HTTP request.
179
+ #
180
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
181
+ #
182
+ def get_with_http_info(network_resource_name, custom_headers:nil)
183
+ get_async(network_resource_name, custom_headers:custom_headers).value!
184
+ end
185
+
186
+ #
187
+ # Gets the Network resource with the given name.
188
+ #
189
+ # Gets the information about the Network resource with the given name. The
190
+ # information include the description and other properties of the Network.
191
+ #
192
+ # @param network_resource_name [String] The identity of the network.
193
+ # @param [Hash{String => String}] A hash of custom headers that will be added
194
+ # to the HTTP request.
195
+ #
196
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
197
+ #
198
+ def get_async(network_resource_name, custom_headers:nil)
199
+ api_version = '6.4-preview'
200
+ fail ArgumentError, 'network_resource_name is nil' if network_resource_name.nil?
201
+
202
+
203
+ request_headers = {}
204
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
205
+
206
+ # Set Headers
207
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
208
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
209
+ path_template = 'Resources/Networks/{networkResourceName}'
210
+
211
+ request_url = @base_url || @client.base_url
212
+
213
+ options = {
214
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
215
+ skip_encoding_path_params: {'networkResourceName' => network_resource_name},
216
+ query_params: {'api-version' => api_version},
217
+ headers: request_headers.merge(custom_headers || {}),
218
+ base_url: request_url
219
+ }
220
+ promise = @client.make_request_async(:get, path_template, options)
221
+
222
+ promise = promise.then do |result|
223
+ http_response = result.response
224
+ status_code = http_response.status
225
+ response_content = http_response.body
226
+ unless status_code == 200
227
+ error_model = JSON.load(response_content)
228
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
229
+ end
230
+
231
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
232
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
233
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
234
+ # Deserialize Response
235
+ if status_code == 200
236
+ begin
237
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
238
+ result_mapper = Azure::ServiceFabric::V6_5_0_36::Models::NetworkResourceDescription.mapper()
239
+ result.body = @client.deserialize(result_mapper, parsed_response)
240
+ rescue Exception => e
241
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
242
+ end
243
+ end
244
+
245
+ result
246
+ end
247
+
248
+ promise.execute
249
+ end
250
+
251
+ #
252
+ # Deletes the Network resource.
253
+ #
254
+ # Deletes the Network resource identified by the name.
255
+ #
256
+ # @param network_resource_name [String] The identity of the network.
257
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
258
+ # will be added to the HTTP request.
259
+ #
260
+ #
261
+ def delete(network_resource_name, custom_headers:nil)
262
+ response = delete_async(network_resource_name, custom_headers:custom_headers).value!
263
+ nil
264
+ end
265
+
266
+ #
267
+ # Deletes the Network resource.
268
+ #
269
+ # Deletes the Network resource identified by the name.
270
+ #
271
+ # @param network_resource_name [String] The identity of the network.
272
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
273
+ # will be added to the HTTP request.
274
+ #
275
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
276
+ #
277
+ def delete_with_http_info(network_resource_name, custom_headers:nil)
278
+ delete_async(network_resource_name, custom_headers:custom_headers).value!
279
+ end
280
+
281
+ #
282
+ # Deletes the Network resource.
283
+ #
284
+ # Deletes the Network resource identified by the name.
285
+ #
286
+ # @param network_resource_name [String] The identity of the network.
287
+ # @param [Hash{String => String}] A hash of custom headers that will be added
288
+ # to the HTTP request.
289
+ #
290
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
291
+ #
292
+ def delete_async(network_resource_name, custom_headers:nil)
293
+ api_version = '6.4-preview'
294
+ fail ArgumentError, 'network_resource_name is nil' if network_resource_name.nil?
295
+
296
+
297
+ request_headers = {}
298
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
299
+
300
+ # Set Headers
301
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
302
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
303
+ path_template = 'Resources/Networks/{networkResourceName}'
304
+
305
+ request_url = @base_url || @client.base_url
306
+
307
+ options = {
308
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
309
+ skip_encoding_path_params: {'networkResourceName' => network_resource_name},
310
+ query_params: {'api-version' => api_version},
311
+ headers: request_headers.merge(custom_headers || {}),
312
+ base_url: request_url
313
+ }
314
+ promise = @client.make_request_async(:delete, path_template, options)
315
+
316
+ promise = promise.then do |result|
317
+ http_response = result.response
318
+ status_code = http_response.status
319
+ response_content = http_response.body
320
+ unless status_code == 200 || status_code == 202 || status_code == 204
321
+ error_model = JSON.load(response_content)
322
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
323
+ end
324
+
325
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
326
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
327
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
328
+
329
+ result
330
+ end
331
+
332
+ promise.execute
333
+ end
334
+
335
+ #
336
+ # Lists all the network resources.
337
+ #
338
+ # Gets the information about all network resources in a given resource group.
339
+ # The information include the description and other properties of the Network.
340
+ #
341
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
342
+ # will be added to the HTTP request.
343
+ #
344
+ # @return [PagedNetworkResourceDescriptionList] operation results.
345
+ #
346
+ def list(custom_headers:nil)
347
+ response = list_async(custom_headers:custom_headers).value!
348
+ response.body unless response.nil?
349
+ end
350
+
351
+ #
352
+ # Lists all the network resources.
353
+ #
354
+ # Gets the information about all network resources in a given resource group.
355
+ # The information include the description and other properties of the Network.
356
+ #
357
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
358
+ # will be added to the HTTP request.
359
+ #
360
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
361
+ #
362
+ def list_with_http_info(custom_headers:nil)
363
+ list_async(custom_headers:custom_headers).value!
364
+ end
365
+
366
+ #
367
+ # Lists all the network resources.
368
+ #
369
+ # Gets the information about all network resources in a given resource group.
370
+ # The information include the description and other properties of the Network.
371
+ #
372
+ # @param [Hash{String => String}] A hash of custom headers that will be added
373
+ # to the HTTP request.
374
+ #
375
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
376
+ #
377
+ def list_async(custom_headers:nil)
378
+ api_version = '6.4-preview'
379
+
380
+
381
+ request_headers = {}
382
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
383
+
384
+ # Set Headers
385
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
386
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
387
+ path_template = 'Resources/Networks'
388
+
389
+ request_url = @base_url || @client.base_url
390
+
391
+ options = {
392
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
393
+ query_params: {'api-version' => api_version},
394
+ headers: request_headers.merge(custom_headers || {}),
395
+ base_url: request_url
396
+ }
397
+ promise = @client.make_request_async(:get, path_template, options)
398
+
399
+ promise = promise.then do |result|
400
+ http_response = result.response
401
+ status_code = http_response.status
402
+ response_content = http_response.body
403
+ unless status_code == 200
404
+ error_model = JSON.load(response_content)
405
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
406
+ end
407
+
408
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
409
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
410
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
411
+ # Deserialize Response
412
+ if status_code == 200
413
+ begin
414
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
415
+ result_mapper = Azure::ServiceFabric::V6_5_0_36::Models::PagedNetworkResourceDescriptionList.mapper()
416
+ result.body = @client.deserialize(result_mapper, parsed_response)
417
+ rescue Exception => e
418
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
419
+ end
420
+ end
421
+
422
+ result
423
+ end
424
+
425
+ promise.execute
426
+ end
427
+
428
+ end
429
+ end