azure_mgmt_api_management 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (578) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_client.rb +7 -6
  3. data/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_client.rb +7 -6
  4. data/lib/2017-03-01/generated/azure_mgmt_api_management.rb +290 -0
  5. data/lib/2017-03-01/generated/azure_mgmt_api_management/api.rb +1141 -0
  6. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_diagnostic.rb +877 -0
  7. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb +647 -0
  8. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_export.rb +134 -0
  9. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issu_attachment.rb +142 -0
  10. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issu_comment.rb +142 -0
  11. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue.rb +508 -0
  12. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_attachment.rb +434 -0
  13. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_attachments.rb +288 -0
  14. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_comment.rb +431 -0
  15. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_comments.rb +288 -0
  16. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issues.rb +279 -0
  17. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb +385 -0
  18. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_operations.rb +222 -0
  19. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_service.rb +1904 -0
  20. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_operation.rb +895 -0
  21. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_operation_policy.rb +637 -0
  22. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_policy.rb +587 -0
  23. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_product.rb +272 -0
  24. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_release.rb +789 -0
  25. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_revisions.rb +280 -0
  26. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_schema.rb +725 -0
  27. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_version_set.rb +867 -0
  28. data/lib/2017-03-01/generated/azure_mgmt_api_management/authorization_server.rb +807 -0
  29. data/lib/2017-03-01/generated/azure_mgmt_api_management/backend.rb +924 -0
  30. data/lib/2017-03-01/generated/azure_mgmt_api_management/certificate.rb +733 -0
  31. data/lib/2017-03-01/generated/azure_mgmt_api_management/delegation_settings.rb +416 -0
  32. data/lib/2017-03-01/generated/azure_mgmt_api_management/diagnostic.rb +815 -0
  33. data/lib/2017-03-01/generated/azure_mgmt_api_management/diagnostic_logger.rb +612 -0
  34. data/lib/2017-03-01/generated/azure_mgmt_api_management/email_template.rb +889 -0
  35. data/lib/2017-03-01/generated/azure_mgmt_api_management/group.rb +832 -0
  36. data/lib/2017-03-01/generated/azure_mgmt_api_management/group_user.rb +655 -0
  37. data/lib/2017-03-01/generated/azure_mgmt_api_management/identity_provider.rb +675 -0
  38. data/lib/2017-03-01/generated/azure_mgmt_api_management/logger.rb +812 -0
  39. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/access_information_contract.rb +80 -0
  40. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +48 -0
  41. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/additional_location.rb +107 -0
  42. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_collection.rb +100 -0
  43. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_contract.rb +260 -0
  44. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb +200 -0
  45. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +271 -0
  46. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +57 -0
  47. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +151 -0
  48. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_export_result.rb +47 -0
  49. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +49 -0
  50. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
  51. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +298 -0
  52. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
  53. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +47 -0
  54. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +73 -0
  55. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
  56. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +81 -0
  57. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +418 -0
  58. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +60 -0
  59. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +77 -0
  60. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +407 -0
  61. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +72 -0
  62. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_release_collection.rb +100 -0
  63. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_release_contract.rb +110 -0
  64. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb +98 -0
  65. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb +172 -0
  66. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +88 -0
  67. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_type.rb +16 -0
  68. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_update_contract.rb +221 -0
  69. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +98 -0
  70. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +133 -0
  71. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_contract_properties.rb +95 -0
  72. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +79 -0
  73. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +106 -0
  74. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/apim_resource.rb +91 -0
  75. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/async_operation_status.rb +18 -0
  76. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +48 -0
  77. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_method.rb +22 -0
  78. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
  79. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +309 -0
  80. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +211 -0
  81. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +309 -0
  82. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
  83. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +131 -0
  84. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_collection.rb +98 -0
  85. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_contract.rb +185 -0
  86. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +124 -0
  87. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_properties.rb +48 -0
  88. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
  89. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
  90. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +78 -0
  91. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +119 -0
  92. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +63 -0
  93. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +158 -0
  94. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +16 -0
  95. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_collection.rb +98 -0
  96. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb +84 -0
  97. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_contract.rb +98 -0
  98. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
  99. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
  100. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb +16 -0
  101. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/confirmation.rb +16 -0
  102. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +107 -0
  103. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
  104. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/content_format.rb +20 -0
  105. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
  106. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +98 -0
  107. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +74 -0
  108. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/email_template_collection.rb +98 -0
  109. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/email_template_contract.rb +147 -0
  110. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +83 -0
  111. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +107 -0
  112. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
  113. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/error_response.rb +79 -0
  114. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
  115. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/grant_type.rb +18 -0
  116. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_collection.rb +98 -0
  117. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_contract.rb +131 -0
  118. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb +88 -0
  119. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_type.rb +17 -0
  120. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb +88 -0
  121. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb +139 -0
  122. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb +71 -0
  123. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/hostname_type.rb +18 -0
  124. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +131 -0
  125. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +191 -0
  126. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb +67 -0
  127. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb +20 -0
  128. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +164 -0
  129. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  130. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  131. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  132. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  133. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  134. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  135. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/key_type.rb +16 -0
  136. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
  137. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_contract.rb +134 -0
  138. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_sampling_contract.rb +160 -0
  139. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_type.rb +16 -0
  140. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb +89 -0
  141. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
  142. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
  143. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/notification_collection.rb +98 -0
  144. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/notification_contract.rb +100 -0
  145. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/notification_name.rb +21 -0
  146. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
  147. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +98 -0
  148. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +122 -0
  149. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
  150. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation.rb +80 -0
  151. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_collection.rb +100 -0
  152. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_contract.rb +185 -0
  153. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
  154. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +114 -0
  155. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_entity_contract.rb +149 -0
  156. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
  157. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb +134 -0
  158. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +69 -0
  159. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb +158 -0
  160. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
  161. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_collection.rb +66 -0
  162. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_contract.rb +73 -0
  163. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
  164. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +83 -0
  165. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +55 -0
  166. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +111 -0
  167. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +73 -0
  168. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +86 -0
  169. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_collection.rb +98 -0
  170. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_contract.rb +167 -0
  171. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +125 -0
  172. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_state.rb +16 -0
  173. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb +140 -0
  174. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/property_collection.rb +98 -0
  175. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/property_contract.rb +130 -0
  176. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb +70 -0
  177. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
  178. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/protocol.rb +16 -0
  179. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
  180. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +104 -0
  181. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
  182. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +57 -0
  183. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +66 -0
  184. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +73 -0
  185. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +66 -0
  186. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +73 -0
  187. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +73 -0
  188. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/region_contract.rb +69 -0
  189. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/region_list_result.rb +77 -0
  190. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +46 -0
  191. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
  192. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/report_record_contract.rb +338 -0
  193. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/representation_contract.rb +106 -0
  194. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
  195. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/request_report_collection.rb +66 -0
  196. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +245 -0
  197. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/resource.rb +71 -0
  198. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/response_contract.rb +99 -0
  199. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/sampling_type.rb +16 -0
  200. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
  201. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/schema_collection.rb +100 -0
  202. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/schema_contract.rb +87 -0
  203. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/sku_type.rb +18 -0
  204. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/state.rb +19 -0
  205. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_collection.rb +98 -0
  206. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_contract.rb +244 -0
  207. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +128 -0
  208. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
  209. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_state.rb +20 -0
  210. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +146 -0
  211. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +47 -0
  212. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_collection.rb +98 -0
  213. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_contract.rb +77 -0
  214. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +50 -0
  215. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb +98 -0
  216. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb +114 -0
  217. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +72 -0
  218. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +98 -0
  219. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +110 -0
  220. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/template_name.rb +28 -0
  221. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
  222. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +68 -0
  223. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
  224. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_collection.rb +98 -0
  225. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_contract.rb +178 -0
  226. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb +154 -0
  227. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +83 -0
  228. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb +77 -0
  229. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
  230. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_state.rb +18 -0
  231. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
  232. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
  233. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb +140 -0
  234. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb +17 -0
  235. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +76 -0
  236. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
  237. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb +57 -0
  238. data/lib/2017-03-01/generated/azure_mgmt_api_management/module_definition.rb +9 -0
  239. data/lib/2017-03-01/generated/azure_mgmt_api_management/network_status.rb +238 -0
  240. data/lib/2017-03-01/generated/azure_mgmt_api_management/notification.rb +462 -0
  241. data/lib/2017-03-01/generated/azure_mgmt_api_management/notification_recipient_email.rb +472 -0
  242. data/lib/2017-03-01/generated/azure_mgmt_api_management/notification_recipient_user.rb +493 -0
  243. data/lib/2017-03-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb +800 -0
  244. data/lib/2017-03-01/generated/azure_mgmt_api_management/operation_operations.rb +312 -0
  245. data/lib/2017-03-01/generated/azure_mgmt_api_management/policy.rb +438 -0
  246. data/lib/2017-03-01/generated/azure_mgmt_api_management/policy_snippets.rb +126 -0
  247. data/lib/2017-03-01/generated/azure_mgmt_api_management/product.rb +855 -0
  248. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_api.rb +643 -0
  249. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_group.rb +641 -0
  250. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_policy.rb +469 -0
  251. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_subscriptions.rb +312 -0
  252. data/lib/2017-03-01/generated/azure_mgmt_api_management/property.rb +797 -0
  253. data/lib/2017-03-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +262 -0
  254. data/lib/2017-03-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb +261 -0
  255. data/lib/2017-03-01/generated/azure_mgmt_api_management/regions.rb +120 -0
  256. data/lib/2017-03-01/generated/azure_mgmt_api_management/reports.rb +1690 -0
  257. data/lib/2017-03-01/generated/azure_mgmt_api_management/sign_in_settings.rb +416 -0
  258. data/lib/2017-03-01/generated/azure_mgmt_api_management/sign_up_settings.rb +416 -0
  259. data/lib/2017-03-01/generated/azure_mgmt_api_management/subscription.rb +1039 -0
  260. data/lib/2017-03-01/generated/azure_mgmt_api_management/tag.rb +3058 -0
  261. data/lib/2017-03-01/generated/azure_mgmt_api_management/tag_description.rb +774 -0
  262. data/lib/2017-03-01/generated/azure_mgmt_api_management/tag_resource.rb +356 -0
  263. data/lib/2017-03-01/generated/azure_mgmt_api_management/tenant_access.rb +401 -0
  264. data/lib/2017-03-01/generated/azure_mgmt_api_management/tenant_access_git.rb +291 -0
  265. data/lib/2017-03-01/generated/azure_mgmt_api_management/tenant_configuration.rb +607 -0
  266. data/lib/2017-03-01/generated/azure_mgmt_api_management/user.rb +1086 -0
  267. data/lib/2017-03-01/generated/azure_mgmt_api_management/user_group.rb +287 -0
  268. data/lib/2017-03-01/generated/azure_mgmt_api_management/user_identities.rb +130 -0
  269. data/lib/2017-03-01/generated/azure_mgmt_api_management/user_subscription.rb +312 -0
  270. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management.rb +100 -89
  271. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_issue.rb +762 -0
  272. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_issue_attachment.rb +814 -0
  273. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_issue_comment.rb +811 -0
  274. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_management_client.rb +19 -6
  275. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/additional_location.rb +26 -2
  276. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_collection.rb +2 -0
  277. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_contract.rb +28 -0
  278. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_contract_properties.rb +22 -0
  279. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +28 -0
  280. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +28 -0
  281. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +5 -4
  282. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +5 -4
  283. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +5 -4
  284. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_release_collection.rb +2 -0
  285. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_revision_collection.rb +2 -0
  286. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +22 -0
  287. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_update_contract.rb +28 -0
  288. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/error_response.rb +4 -4
  289. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/error_response_body.rb +79 -0
  290. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  291. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  292. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  293. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  294. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  295. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  296. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_collection.rb +2 -0
  297. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_result_contract.rb +2 -2
  298. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/policy_content_format.rb +2 -0
  299. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/policy_contract.rb +2 -1
  300. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/schema_collection.rb +2 -0
  301. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/state.rb +19 -0
  302. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/product_api.rb +33 -24
  303. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management.rb +296 -0
  304. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api.rb +1144 -0
  305. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_diagnostic.rb +874 -0
  306. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_export.rb +147 -0
  307. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_issue.rb +762 -0
  308. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_issue_attachment.rb +814 -0
  309. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_issue_comment.rb +811 -0
  310. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb +357 -0
  311. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_operations.rb +222 -0
  312. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_service.rb +1914 -0
  313. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_operation.rb +905 -0
  314. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_operation_policy.rb +639 -0
  315. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_policy.rb +589 -0
  316. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_product.rb +272 -0
  317. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_release.rb +893 -0
  318. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_revisions.rb +280 -0
  319. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_schema.rb +738 -0
  320. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_version_set.rb +864 -0
  321. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/authorization_server.rb +819 -0
  322. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/backend.rb +931 -0
  323. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/certificate.rb +730 -0
  324. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/delegation_settings.rb +416 -0
  325. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/diagnostic.rb +812 -0
  326. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/email_template.rb +896 -0
  327. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/group.rb +839 -0
  328. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/group_user.rb +657 -0
  329. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/identity_provider.rb +796 -0
  330. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/logger.rb +819 -0
  331. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/access_information_contract.rb +80 -0
  332. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +48 -0
  333. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/additional_location.rb +131 -0
  334. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/always_log.rb +15 -0
  335. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_collection.rb +100 -0
  336. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_contract.rb +288 -0
  337. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_contract_properties.rb +222 -0
  338. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +313 -0
  339. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +57 -0
  340. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +179 -0
  341. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_export_result.rb +47 -0
  342. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +49 -0
  343. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
  344. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +322 -0
  345. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
  346. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +47 -0
  347. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +73 -0
  348. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
  349. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +81 -0
  350. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +442 -0
  351. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +60 -0
  352. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +77 -0
  353. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +431 -0
  354. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +72 -0
  355. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_release_collection.rb +100 -0
  356. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_release_contract.rb +110 -0
  357. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_collection.rb +100 -0
  358. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb +145 -0
  359. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +88 -0
  360. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +221 -0
  361. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_type.rb +16 -0
  362. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_update_contract.rb +249 -0
  363. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +98 -0
  364. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +133 -0
  365. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb +96 -0
  366. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +78 -0
  367. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +106 -0
  368. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/apim_resource.rb +91 -0
  369. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/async_operation_status.rb +18 -0
  370. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +48 -0
  371. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_method.rb +22 -0
  372. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
  373. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +309 -0
  374. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +211 -0
  375. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +309 -0
  376. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
  377. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +131 -0
  378. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_collection.rb +98 -0
  379. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_contract.rb +185 -0
  380. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +124 -0
  381. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_properties.rb +48 -0
  382. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
  383. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
  384. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +74 -0
  385. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +119 -0
  386. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +63 -0
  387. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +158 -0
  388. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +16 -0
  389. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/body_diagnostic_settings.rb +49 -0
  390. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_collection.rb +98 -0
  391. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_configuration.rb +85 -0
  392. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_contract.rb +98 -0
  393. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
  394. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
  395. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/client_authentication_method.rb +16 -0
  396. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/confirmation.rb +16 -0
  397. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +107 -0
  398. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
  399. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/content_format.rb +20 -0
  400. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
  401. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +98 -0
  402. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +123 -0
  403. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/email_template_collection.rb +98 -0
  404. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/email_template_contract.rb +147 -0
  405. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +83 -0
  406. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +107 -0
  407. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
  408. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/error_response.rb +79 -0
  409. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/error_response_body.rb +79 -0
  410. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/export_format.rb +17 -0
  411. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
  412. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/grant_type.rb +18 -0
  413. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_collection.rb +98 -0
  414. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_contract.rb +131 -0
  415. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_contract_properties.rb +104 -0
  416. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_create_parameters.rb +88 -0
  417. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_type.rb +17 -0
  418. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_update_parameters.rb +88 -0
  419. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/hostname_configuration.rb +139 -0
  420. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb +71 -0
  421. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/hostname_type.rb +18 -0
  422. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/http_message_diagnostic.rb +66 -0
  423. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +131 -0
  424. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +191 -0
  425. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_list.rb +99 -0
  426. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_type.rb +20 -0
  427. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +164 -0
  428. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  429. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  430. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  431. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  432. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  433. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  434. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/key_type.rb +16 -0
  435. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
  436. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/logger_contract.rb +133 -0
  437. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/logger_type.rb +16 -0
  438. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/logger_update_contract.rb +89 -0
  439. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
  440. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
  441. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb +61 -0
  442. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/notification_collection.rb +98 -0
  443. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/notification_contract.rb +100 -0
  444. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/notification_name.rb +21 -0
  445. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
  446. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +98 -0
  447. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +122 -0
  448. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
  449. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation.rb +80 -0
  450. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_collection.rb +100 -0
  451. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_contract.rb +185 -0
  452. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
  453. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +114 -0
  454. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
  455. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_result_contract.rb +134 -0
  456. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +69 -0
  457. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb +134 -0
  458. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_update_contract.rb +158 -0
  459. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
  460. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/pipeline_diagnostic_settings.rb +59 -0
  461. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_collection.rb +66 -0
  462. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_content_format.rb +18 -0
  463. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_contract.rb +87 -0
  464. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
  465. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +83 -0
  466. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +55 -0
  467. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +111 -0
  468. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +73 -0
  469. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +86 -0
  470. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_collection.rb +98 -0
  471. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_contract.rb +167 -0
  472. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +125 -0
  473. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_state.rb +16 -0
  474. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb +115 -0
  475. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_update_parameters.rb +140 -0
  476. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/property_collection.rb +98 -0
  477. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/property_contract.rb +130 -0
  478. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb +70 -0
  479. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
  480. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/protocol.rb +16 -0
  481. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
  482. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +104 -0
  483. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
  484. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +57 -0
  485. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +66 -0
  486. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +73 -0
  487. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +66 -0
  488. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +73 -0
  489. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +73 -0
  490. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/region_contract.rb +69 -0
  491. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/region_list_result.rb +109 -0
  492. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +46 -0
  493. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
  494. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/report_record_contract.rb +338 -0
  495. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/representation_contract.rb +106 -0
  496. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
  497. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/request_report_collection.rb +66 -0
  498. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +245 -0
  499. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/resource.rb +71 -0
  500. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/response_contract.rb +99 -0
  501. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/sampling_settings.rb +61 -0
  502. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/sampling_type.rb +15 -0
  503. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
  504. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/schema_collection.rb +100 -0
  505. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/schema_contract.rb +87 -0
  506. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/sku_type.rb +18 -0
  507. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/soap_api_type.rb +16 -0
  508. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/state.rb +19 -0
  509. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_collection.rb +98 -0
  510. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_contract.rb +244 -0
  511. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +128 -0
  512. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
  513. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_state.rb +20 -0
  514. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +146 -0
  515. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +47 -0
  516. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_collection.rb +98 -0
  517. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_contract.rb +77 -0
  518. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +50 -0
  519. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_description_collection.rb +98 -0
  520. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_description_contract.rb +114 -0
  521. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +72 -0
  522. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +109 -0
  523. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +86 -0
  524. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb +61 -0
  525. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/template_name.rb +28 -0
  526. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
  527. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +68 -0
  528. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
  529. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_collection.rb +98 -0
  530. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_contract.rb +179 -0
  531. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_create_parameters.rb +154 -0
  532. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +83 -0
  533. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_identity_collection.rb +109 -0
  534. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
  535. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_state.rb +18 -0
  536. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
  537. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
  538. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_update_parameters.rb +140 -0
  539. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/versioning_scheme.rb +17 -0
  540. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +76 -0
  541. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
  542. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/x509certificate_name.rb +57 -0
  543. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/module_definition.rb +9 -0
  544. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/network_status.rb +254 -0
  545. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/notification.rb +469 -0
  546. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/notification_recipient_email.rb +474 -0
  547. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/notification_recipient_user.rb +495 -0
  548. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/open_id_connect_provider.rb +807 -0
  549. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/operation_operations.rb +316 -0
  550. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/policy.rb +526 -0
  551. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/policy_snippets.rb +126 -0
  552. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product.rb +862 -0
  553. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_api.rb +654 -0
  554. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_group.rb +643 -0
  555. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_policy.rb +571 -0
  556. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_subscriptions.rb +312 -0
  557. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/property.rb +804 -0
  558. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +262 -0
  559. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/quota_by_period_keys.rb +261 -0
  560. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/regions.rb +230 -0
  561. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/reports.rb +1690 -0
  562. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/sign_in_settings.rb +416 -0
  563. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/sign_up_settings.rb +416 -0
  564. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/subscription.rb +1070 -0
  565. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tag.rb +3081 -0
  566. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tag_description.rb +787 -0
  567. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tag_resource.rb +356 -0
  568. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tenant_access.rb +401 -0
  569. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tenant_access_git.rb +291 -0
  570. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tenant_configuration.rb +607 -0
  571. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user.rb +1099 -0
  572. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user_group.rb +287 -0
  573. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user_identities.rb +242 -0
  574. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user_subscription.rb +312 -0
  575. data/lib/azure_mgmt_api_management.rb +4 -2
  576. data/lib/profiles/latest/modules/apimanagement_profile_module.rb +616 -558
  577. data/lib/version.rb +1 -1
  578. metadata +553 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edea37de2dced07a6a961ca65f84059be5c414c4
4
- data.tar.gz: a1ea37e46c7d1fcd4f1fcc7b9478b998c2c5b875
3
+ metadata.gz: 3ef7109c63819f6ff33da04fcf7cad386d05c68c
4
+ data.tar.gz: 1a41a2b459927ac37c0293631a176c80d5a0d4f8
5
5
  SHA512:
6
- metadata.gz: 2f941cac89d3ae566965bd2292817fe8644a8645d3834c8c05001d7fc4bc7ac0b924931fb9cfc29c0b361cf655e42929f03ba1c116f3c141dc73e159a2796822
7
- data.tar.gz: 43702feb81c4b2966fa6e6740b848b25dc2de91c07073458480b5bacfa6a83216561dba2ea290eea0c0f7e67eee1f2436444fc89a183b3e19da8bb39fc6660fa
6
+ metadata.gz: d7ae84e0408a9b2d80820e20749aa365238974f025e629a36f4373f47f12985b656a11cd0b334f9534405e7245f10390def8eafcc2097a4b80550a03e5ffc4a5
7
+ data.tar.gz: 064d6da28aac2dcc3dafb3760be95cf00aa58049fef25c6ced917b84af9043e992606ffc116f390ef1eafea79c134c16b996d1de7c0a112c515528faa78ca2ef
@@ -25,15 +25,16 @@ module Azure::ApiManagement::Mgmt::V2016_07_07
25
25
  # @return [String] Version of the API to be used with the client request.
26
26
  attr_reader :api_version
27
27
 
28
- # @return [String] Gets or sets the preferred language for the response.
28
+ # @return [String] The preferred language for the response.
29
29
  attr_accessor :accept_language
30
30
 
31
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
32
- # Running Operations. Default value is 30.
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
33
  attr_accessor :long_running_operation_retry_timeout
34
34
 
35
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
36
- # is generated and included in each request. Default is true.
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
37
38
  attr_accessor :generate_client_request_id
38
39
 
39
40
  # @return [Apis] apis
@@ -245,7 +246,7 @@ module Azure::ApiManagement::Mgmt::V2016_07_07
245
246
  #
246
247
  def add_telemetry
247
248
  sdk_information = 'azure_mgmt_api_management'
248
- sdk_information = "#{sdk_information}/0.17.0"
249
+ sdk_information = "#{sdk_information}/0.18.0"
249
250
  add_user_agent_information(sdk_information)
250
251
  end
251
252
  end
@@ -25,15 +25,16 @@ module Azure::ApiManagement::Mgmt::V2016_10_10
25
25
  # for every service call.
26
26
  attr_accessor :subscription_id
27
27
 
28
- # @return [String] Gets or sets the preferred language for the response.
28
+ # @return [String] The preferred language for the response.
29
29
  attr_accessor :accept_language
30
30
 
31
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
32
- # Running Operations. Default value is 30.
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
33
  attr_accessor :long_running_operation_retry_timeout
34
34
 
35
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
36
- # is generated and included in each request. Default is true.
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
37
38
  attr_accessor :generate_client_request_id
38
39
 
39
40
  # @return [PolicySnippets] policy_snippets
@@ -277,7 +278,7 @@ module Azure::ApiManagement::Mgmt::V2016_10_10
277
278
  #
278
279
  def add_telemetry
279
280
  sdk_information = 'azure_mgmt_api_management'
280
- sdk_information = "#{sdk_information}/0.17.0"
281
+ sdk_information = "#{sdk_information}/0.18.0"
281
282
  add_user_agent_information(sdk_information)
282
283
  end
283
284
  end
@@ -0,0 +1,290 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2017-03-01/generated/azure_mgmt_api_management/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ApiManagement::Mgmt::V2017_03_01
23
+ autoload :Policy, '2017-03-01/generated/azure_mgmt_api_management/policy.rb'
24
+ autoload :PolicySnippets, '2017-03-01/generated/azure_mgmt_api_management/policy_snippets.rb'
25
+ autoload :Regions, '2017-03-01/generated/azure_mgmt_api_management/regions.rb'
26
+ autoload :Api, '2017-03-01/generated/azure_mgmt_api_management/api.rb'
27
+ autoload :ApiRevisions, '2017-03-01/generated/azure_mgmt_api_management/api_revisions.rb'
28
+ autoload :ApiRelease, '2017-03-01/generated/azure_mgmt_api_management/api_release.rb'
29
+ autoload :ApiOperation, '2017-03-01/generated/azure_mgmt_api_management/api_operation.rb'
30
+ autoload :ApiOperationPolicy, '2017-03-01/generated/azure_mgmt_api_management/api_operation_policy.rb'
31
+ autoload :ApiProduct, '2017-03-01/generated/azure_mgmt_api_management/api_product.rb'
32
+ autoload :ApiPolicy, '2017-03-01/generated/azure_mgmt_api_management/api_policy.rb'
33
+ autoload :ApiSchema, '2017-03-01/generated/azure_mgmt_api_management/api_schema.rb'
34
+ autoload :ApiDiagnostic, '2017-03-01/generated/azure_mgmt_api_management/api_diagnostic.rb'
35
+ autoload :ApiDiagnosticLogger, '2017-03-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb'
36
+ autoload :ApiIssues, '2017-03-01/generated/azure_mgmt_api_management/api_issues.rb'
37
+ autoload :ApiIssue, '2017-03-01/generated/azure_mgmt_api_management/api_issue.rb'
38
+ autoload :ApiIssueComments, '2017-03-01/generated/azure_mgmt_api_management/api_issue_comments.rb'
39
+ autoload :ApiIssuComment, '2017-03-01/generated/azure_mgmt_api_management/api_issu_comment.rb'
40
+ autoload :ApiIssueComment, '2017-03-01/generated/azure_mgmt_api_management/api_issue_comment.rb'
41
+ autoload :ApiIssueAttachments, '2017-03-01/generated/azure_mgmt_api_management/api_issue_attachments.rb'
42
+ autoload :ApiIssuAttachment, '2017-03-01/generated/azure_mgmt_api_management/api_issu_attachment.rb'
43
+ autoload :ApiIssueAttachment, '2017-03-01/generated/azure_mgmt_api_management/api_issue_attachment.rb'
44
+ autoload :AuthorizationServer, '2017-03-01/generated/azure_mgmt_api_management/authorization_server.rb'
45
+ autoload :Backend, '2017-03-01/generated/azure_mgmt_api_management/backend.rb'
46
+ autoload :Certificate, '2017-03-01/generated/azure_mgmt_api_management/certificate.rb'
47
+ autoload :ApiManagementOperations, '2017-03-01/generated/azure_mgmt_api_management/api_management_operations.rb'
48
+ autoload :ApiManagementService, '2017-03-01/generated/azure_mgmt_api_management/api_management_service.rb'
49
+ autoload :Diagnostic, '2017-03-01/generated/azure_mgmt_api_management/diagnostic.rb'
50
+ autoload :DiagnosticLogger, '2017-03-01/generated/azure_mgmt_api_management/diagnostic_logger.rb'
51
+ autoload :EmailTemplate, '2017-03-01/generated/azure_mgmt_api_management/email_template.rb'
52
+ autoload :Group, '2017-03-01/generated/azure_mgmt_api_management/group.rb'
53
+ autoload :GroupUser, '2017-03-01/generated/azure_mgmt_api_management/group_user.rb'
54
+ autoload :IdentityProvider, '2017-03-01/generated/azure_mgmt_api_management/identity_provider.rb'
55
+ autoload :Logger, '2017-03-01/generated/azure_mgmt_api_management/logger.rb'
56
+ autoload :Notification, '2017-03-01/generated/azure_mgmt_api_management/notification.rb'
57
+ autoload :NotificationRecipientUser, '2017-03-01/generated/azure_mgmt_api_management/notification_recipient_user.rb'
58
+ autoload :NotificationRecipientEmail, '2017-03-01/generated/azure_mgmt_api_management/notification_recipient_email.rb'
59
+ autoload :NetworkStatus, '2017-03-01/generated/azure_mgmt_api_management/network_status.rb'
60
+ autoload :OpenIdConnectProvider, '2017-03-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb'
61
+ autoload :SignInSettings, '2017-03-01/generated/azure_mgmt_api_management/sign_in_settings.rb'
62
+ autoload :SignUpSettings, '2017-03-01/generated/azure_mgmt_api_management/sign_up_settings.rb'
63
+ autoload :DelegationSettings, '2017-03-01/generated/azure_mgmt_api_management/delegation_settings.rb'
64
+ autoload :Product, '2017-03-01/generated/azure_mgmt_api_management/product.rb'
65
+ autoload :ProductApi, '2017-03-01/generated/azure_mgmt_api_management/product_api.rb'
66
+ autoload :ProductGroup, '2017-03-01/generated/azure_mgmt_api_management/product_group.rb'
67
+ autoload :ProductSubscriptions, '2017-03-01/generated/azure_mgmt_api_management/product_subscriptions.rb'
68
+ autoload :ProductPolicy, '2017-03-01/generated/azure_mgmt_api_management/product_policy.rb'
69
+ autoload :Property, '2017-03-01/generated/azure_mgmt_api_management/property.rb'
70
+ autoload :QuotaByCounterKeys, '2017-03-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb'
71
+ autoload :QuotaByPeriodKeys, '2017-03-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb'
72
+ autoload :Reports, '2017-03-01/generated/azure_mgmt_api_management/reports.rb'
73
+ autoload :Subscription, '2017-03-01/generated/azure_mgmt_api_management/subscription.rb'
74
+ autoload :TagResource, '2017-03-01/generated/azure_mgmt_api_management/tag_resource.rb'
75
+ autoload :Tag, '2017-03-01/generated/azure_mgmt_api_management/tag.rb'
76
+ autoload :TagDescription, '2017-03-01/generated/azure_mgmt_api_management/tag_description.rb'
77
+ autoload :OperationOperations, '2017-03-01/generated/azure_mgmt_api_management/operation_operations.rb'
78
+ autoload :TenantAccess, '2017-03-01/generated/azure_mgmt_api_management/tenant_access.rb'
79
+ autoload :TenantAccessGit, '2017-03-01/generated/azure_mgmt_api_management/tenant_access_git.rb'
80
+ autoload :TenantConfiguration, '2017-03-01/generated/azure_mgmt_api_management/tenant_configuration.rb'
81
+ autoload :User, '2017-03-01/generated/azure_mgmt_api_management/user.rb'
82
+ autoload :UserGroup, '2017-03-01/generated/azure_mgmt_api_management/user_group.rb'
83
+ autoload :UserSubscription, '2017-03-01/generated/azure_mgmt_api_management/user_subscription.rb'
84
+ autoload :UserIdentities, '2017-03-01/generated/azure_mgmt_api_management/user_identities.rb'
85
+ autoload :ApiVersionSet, '2017-03-01/generated/azure_mgmt_api_management/api_version_set.rb'
86
+ autoload :ApiExport, '2017-03-01/generated/azure_mgmt_api_management/api_export.rb'
87
+ autoload :ApiManagementClient, '2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb'
88
+
89
+ module Models
90
+ autoload :CertificateConfiguration, '2017-03-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb'
91
+ autoload :HostnameConfiguration, '2017-03-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb'
92
+ autoload :ErrorResponse, '2017-03-01/generated/azure_mgmt_api_management/models/error_response.rb'
93
+ autoload :VirtualNetworkConfiguration, '2017-03-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb'
94
+ autoload :PolicyCollection, '2017-03-01/generated/azure_mgmt_api_management/models/policy_collection.rb'
95
+ autoload :ApiManagementServiceSkuProperties, '2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb'
96
+ autoload :PolicySnippetsCollection, '2017-03-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb'
97
+ autoload :AdditionalLocation, '2017-03-01/generated/azure_mgmt_api_management/models/additional_location.rb'
98
+ autoload :RegionListResult, '2017-03-01/generated/azure_mgmt_api_management/models/region_list_result.rb'
99
+ autoload :ApiManagementServiceBackupRestoreParameters, '2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb'
100
+ autoload :ApiExportResult, '2017-03-01/generated/azure_mgmt_api_management/models/api_export_result.rb'
101
+ autoload :ApiManagementServiceBaseProperties, '2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb'
102
+ autoload :SubscriptionCollection, '2017-03-01/generated/azure_mgmt_api_management/models/subscription_collection.rb'
103
+ autoload :TagDescriptionCreateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb'
104
+ autoload :CertificateCollection, '2017-03-01/generated/azure_mgmt_api_management/models/certificate_collection.rb'
105
+ autoload :ApiCollection, '2017-03-01/generated/azure_mgmt_api_management/models/api_collection.rb'
106
+ autoload :CertificateCreateOrUpdateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb'
107
+ autoload :ApiCreateOrUpdateParameter, '2017-03-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb'
108
+ autoload :CertificateInformation, '2017-03-01/generated/azure_mgmt_api_management/models/certificate_information.rb'
109
+ autoload :OAuth2AuthenticationSettingsContract, '2017-03-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb'
110
+ autoload :ErrorFieldContract, '2017-03-01/generated/azure_mgmt_api_management/models/error_field_contract.rb'
111
+ autoload :SubscriptionKeyParameterNamesContract, '2017-03-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb'
112
+ autoload :ApiEntityBaseContract, '2017-03-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb'
113
+ autoload :AccessInformationContract, '2017-03-01/generated/azure_mgmt_api_management/models/access_information_contract.rb'
114
+ autoload :ProductUpdateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb'
115
+ autoload :ApiRevisionInfoContract, '2017-03-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb'
116
+ autoload :PolicySnippetContract, '2017-03-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb'
117
+ autoload :ApiReleaseCollection, '2017-03-01/generated/azure_mgmt_api_management/models/api_release_collection.rb'
118
+ autoload :RegionContract, '2017-03-01/generated/azure_mgmt_api_management/models/region_contract.rb'
119
+ autoload :OperationCollection, '2017-03-01/generated/azure_mgmt_api_management/models/operation_collection.rb'
120
+ autoload :Resource, '2017-03-01/generated/azure_mgmt_api_management/models/resource.rb'
121
+ autoload :RepresentationContract, '2017-03-01/generated/azure_mgmt_api_management/models/representation_contract.rb'
122
+ autoload :OperationResultLogItemContract, '2017-03-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb'
123
+ autoload :ResponseContract, '2017-03-01/generated/azure_mgmt_api_management/models/response_contract.rb'
124
+ autoload :DeployConfigurationParameters, '2017-03-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb'
125
+ autoload :OperationUpdateContract, '2017-03-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb'
126
+ autoload :ApiManagementServiceIdentity, '2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb'
127
+ autoload :SchemaCollection, '2017-03-01/generated/azure_mgmt_api_management/models/schema_collection.rb'
128
+ autoload :IssueCollection, '2017-03-01/generated/azure_mgmt_api_management/models/issue_collection.rb'
129
+ autoload :ApimResource, '2017-03-01/generated/azure_mgmt_api_management/models/apim_resource.rb'
130
+ autoload :IssueCommentCollection, '2017-03-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb'
131
+ autoload :ApiVersionSetUpdateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb'
132
+ autoload :IssueAttachmentCollection, '2017-03-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb'
133
+ autoload :ApiManagementServiceListResult, '2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb'
134
+ autoload :LoggerSamplingContract, '2017-03-01/generated/azure_mgmt_api_management/models/logger_sampling_contract.rb'
135
+ autoload :ApiManagementServiceGetSsoTokenResult, '2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb'
136
+ autoload :LoggerCollection, '2017-03-01/generated/azure_mgmt_api_management/models/logger_collection.rb'
137
+ autoload :ApiManagementServiceCheckNameAvailabilityParameters, '2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb'
138
+ autoload :DiagnosticCollection, '2017-03-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb'
139
+ autoload :ApiManagementServiceNameAvailabilityResult, '2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb'
140
+ autoload :QuotaCounterValueContract, '2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb'
141
+ autoload :ApiManagementServiceApplyNetworkConfigurationParameters, '2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb'
142
+ autoload :QuotaCounterContract, '2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb'
143
+ autoload :ApiManagementServiceUploadCertificateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb'
144
+ autoload :TagResourceCollection, '2017-03-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb'
145
+ autoload :HostnameConfigurationOld, '2017-03-01/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb'
146
+ autoload :PropertyEntityBaseParameters, '2017-03-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb'
147
+ autoload :ApiManagementServiceUpdateHostnameParameters, '2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb'
148
+ autoload :PropertyUpdateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb'
149
+ autoload :OperationDisplay, '2017-03-01/generated/azure_mgmt_api_management/models/operation_display.rb'
150
+ autoload :AuthorizationServerContractBaseProperties, '2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb'
151
+ autoload :Operation, '2017-03-01/generated/azure_mgmt_api_management/models/operation.rb'
152
+ autoload :X509CertificateName, '2017-03-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb'
153
+ autoload :OperationListResult, '2017-03-01/generated/azure_mgmt_api_management/models/operation_list_result.rb'
154
+ autoload :BackendProperties, '2017-03-01/generated/azure_mgmt_api_management/models/backend_properties.rb'
155
+ autoload :EmailTemplateParametersContractProperties, '2017-03-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb'
156
+ autoload :BackendProxyContract, '2017-03-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb'
157
+ autoload :ApiVersionSetCollection, '2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb'
158
+ autoload :BackendBaseParameters, '2017-03-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb'
159
+ autoload :EmailTemplateCollection, '2017-03-01/generated/azure_mgmt_api_management/models/email_template_collection.rb'
160
+ autoload :BackendCollection, '2017-03-01/generated/azure_mgmt_api_management/models/backend_collection.rb'
161
+ autoload :EmailTemplateUpdateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb'
162
+ autoload :AccessInformationUpdateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb'
163
+ autoload :UserUpdateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb'
164
+ autoload :ApiCreateOrUpdatePropertiesWsdlSelector, '2017-03-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb'
165
+ autoload :GroupCollection, '2017-03-01/generated/azure_mgmt_api_management/models/group_collection.rb'
166
+ autoload :AuthenticationSettingsContract, '2017-03-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb'
167
+ autoload :GroupCreateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb'
168
+ autoload :TagCreateUpdateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb'
169
+ autoload :GroupUpdateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb'
170
+ autoload :ParameterContract, '2017-03-01/generated/azure_mgmt_api_management/models/parameter_contract.rb'
171
+ autoload :UserIdentityContract, '2017-03-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb'
172
+ autoload :OperationEntityBaseContract, '2017-03-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb'
173
+ autoload :UserEntityBaseParameters, '2017-03-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb'
174
+ autoload :SubscriptionCreateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb'
175
+ autoload :UserTokenResult, '2017-03-01/generated/azure_mgmt_api_management/models/user_token_result.rb'
176
+ autoload :RequestReportRecordContract, '2017-03-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb'
177
+ autoload :UserCollection, '2017-03-01/generated/azure_mgmt_api_management/models/user_collection.rb'
178
+ autoload :ReportCollection, '2017-03-01/generated/azure_mgmt_api_management/models/report_collection.rb'
179
+ autoload :UserTokenParameters, '2017-03-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb'
180
+ autoload :ProductEntityBaseParameters, '2017-03-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb'
181
+ autoload :IdentityProviderList, '2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb'
182
+ autoload :QuotaCounterValueContractProperties, '2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb'
183
+ autoload :IdentityProviderUpdateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb'
184
+ autoload :AuthorizationServerCollection, '2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb'
185
+ autoload :IdentityProviderBaseParameters, '2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb'
186
+ autoload :BackendAuthorizationHeaderCredentials, '2017-03-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb'
187
+ autoload :LoggerUpdateContract, '2017-03-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb'
188
+ autoload :BackendCredentialsContract, '2017-03-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb'
189
+ autoload :RecipientsContractProperties, '2017-03-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb'
190
+ autoload :PropertyCollection, '2017-03-01/generated/azure_mgmt_api_management/models/property_collection.rb'
191
+ autoload :UserIdentityCollection, '2017-03-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb'
192
+ autoload :TagDescriptionCollection, '2017-03-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb'
193
+ autoload :NotificationCollection, '2017-03-01/generated/azure_mgmt_api_management/models/notification_collection.rb'
194
+ autoload :ApiRevisionCollection, '2017-03-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb'
195
+ autoload :UserCreateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb'
196
+ autoload :RequestContract, '2017-03-01/generated/azure_mgmt_api_management/models/request_contract.rb'
197
+ autoload :RecipientUserCollection, '2017-03-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb'
198
+ autoload :RequestReportCollection, '2017-03-01/generated/azure_mgmt_api_management/models/request_report_collection.rb'
199
+ autoload :GenerateSsoUrlResult, '2017-03-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb'
200
+ autoload :ReportRecordContract, '2017-03-01/generated/azure_mgmt_api_management/models/report_record_contract.rb'
201
+ autoload :RecipientEmailCollection, '2017-03-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb'
202
+ autoload :ProductCollection, '2017-03-01/generated/azure_mgmt_api_management/models/product_collection.rb'
203
+ autoload :ConnectivityStatusContract, '2017-03-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb'
204
+ autoload :BackendServiceFabricClusterProperties, '2017-03-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb'
205
+ autoload :NetworkStatusContract, '2017-03-01/generated/azure_mgmt_api_management/models/network_status_contract.rb'
206
+ autoload :BackendUpdateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb'
207
+ autoload :TenantConfigurationSyncStateContract, '2017-03-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb'
208
+ autoload :TagCollection, '2017-03-01/generated/azure_mgmt_api_management/models/tag_collection.rb'
209
+ autoload :OpenIdConnectProviderCollection, '2017-03-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb'
210
+ autoload :ApiVersionSetEntityBase, '2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb'
211
+ autoload :OpenidConnectProviderUpdateContract, '2017-03-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb'
212
+ autoload :TokenBodyParameterContract, '2017-03-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb'
213
+ autoload :SaveConfigurationParameter, '2017-03-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb'
214
+ autoload :ApiUpdateContract, '2017-03-01/generated/azure_mgmt_api_management/models/api_update_contract.rb'
215
+ autoload :TermsOfServiceProperties, '2017-03-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb'
216
+ autoload :QuotaCounterCollection, '2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb'
217
+ autoload :OperationResultContract, '2017-03-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb'
218
+ autoload :SubscriptionUpdateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb'
219
+ autoload :SubscriptionsDelegationSettingsProperties, '2017-03-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb'
220
+ autoload :BackendTlsProperties, '2017-03-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb'
221
+ autoload :RegistrationDelegationSettingsProperties, '2017-03-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb'
222
+ autoload :PolicyContract, '2017-03-01/generated/azure_mgmt_api_management/models/policy_contract.rb'
223
+ autoload :ApiVersionSetContractProperties, '2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_contract_properties.rb'
224
+ autoload :ApiVersionSetContract, '2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb'
225
+ autoload :ApiContractProperties, '2017-03-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb'
226
+ autoload :ApiContract, '2017-03-01/generated/azure_mgmt_api_management/models/api_contract.rb'
227
+ autoload :ApiRevisionContract, '2017-03-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb'
228
+ autoload :ApiReleaseContract, '2017-03-01/generated/azure_mgmt_api_management/models/api_release_contract.rb'
229
+ autoload :OperationContract, '2017-03-01/generated/azure_mgmt_api_management/models/operation_contract.rb'
230
+ autoload :SchemaContract, '2017-03-01/generated/azure_mgmt_api_management/models/schema_contract.rb'
231
+ autoload :IssueContract, '2017-03-01/generated/azure_mgmt_api_management/models/issue_contract.rb'
232
+ autoload :IssueCommentContract, '2017-03-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb'
233
+ autoload :IssueAttachmentContract, '2017-03-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb'
234
+ autoload :LoggerContract, '2017-03-01/generated/azure_mgmt_api_management/models/logger_contract.rb'
235
+ autoload :DiagnosticContract, '2017-03-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb'
236
+ autoload :ProductContract, '2017-03-01/generated/azure_mgmt_api_management/models/product_contract.rb'
237
+ autoload :OperationEntityContract, '2017-03-01/generated/azure_mgmt_api_management/models/operation_entity_contract.rb'
238
+ autoload :TagContract, '2017-03-01/generated/azure_mgmt_api_management/models/tag_contract.rb'
239
+ autoload :TagResourceContract, '2017-03-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb'
240
+ autoload :AuthorizationServerContract, '2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb'
241
+ autoload :AuthorizationServerUpdateContract, '2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb'
242
+ autoload :BackendContract, '2017-03-01/generated/azure_mgmt_api_management/models/backend_contract.rb'
243
+ autoload :BackendReconnectContract, '2017-03-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb'
244
+ autoload :CertificateContract, '2017-03-01/generated/azure_mgmt_api_management/models/certificate_contract.rb'
245
+ autoload :ApiManagementServiceResource, '2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb'
246
+ autoload :ApiManagementServiceUpdateParameters, '2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb'
247
+ autoload :EmailTemplateContract, '2017-03-01/generated/azure_mgmt_api_management/models/email_template_contract.rb'
248
+ autoload :GroupContract, '2017-03-01/generated/azure_mgmt_api_management/models/group_contract.rb'
249
+ autoload :UserContract, '2017-03-01/generated/azure_mgmt_api_management/models/user_contract.rb'
250
+ autoload :IdentityProviderContract, '2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb'
251
+ autoload :NotificationContract, '2017-03-01/generated/azure_mgmt_api_management/models/notification_contract.rb'
252
+ autoload :RecipientUserContract, '2017-03-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb'
253
+ autoload :RecipientEmailContract, '2017-03-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb'
254
+ autoload :OpenidConnectProviderContract, '2017-03-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb'
255
+ autoload :PortalSigninSettings, '2017-03-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb'
256
+ autoload :PortalSignupSettings, '2017-03-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb'
257
+ autoload :PortalDelegationSettings, '2017-03-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb'
258
+ autoload :SubscriptionContract, '2017-03-01/generated/azure_mgmt_api_management/models/subscription_contract.rb'
259
+ autoload :PropertyContract, '2017-03-01/generated/azure_mgmt_api_management/models/property_contract.rb'
260
+ autoload :TagDescriptionContract, '2017-03-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb'
261
+ autoload :Protocol, '2017-03-01/generated/azure_mgmt_api_management/models/protocol.rb'
262
+ autoload :VersioningScheme, '2017-03-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb'
263
+ autoload :ContentFormat, '2017-03-01/generated/azure_mgmt_api_management/models/content_format.rb'
264
+ autoload :ApiType, '2017-03-01/generated/azure_mgmt_api_management/models/api_type.rb'
265
+ autoload :State, '2017-03-01/generated/azure_mgmt_api_management/models/state.rb'
266
+ autoload :SamplingType, '2017-03-01/generated/azure_mgmt_api_management/models/sampling_type.rb'
267
+ autoload :LoggerType, '2017-03-01/generated/azure_mgmt_api_management/models/logger_type.rb'
268
+ autoload :ProductState, '2017-03-01/generated/azure_mgmt_api_management/models/product_state.rb'
269
+ autoload :GrantType, '2017-03-01/generated/azure_mgmt_api_management/models/grant_type.rb'
270
+ autoload :AuthorizationMethod, '2017-03-01/generated/azure_mgmt_api_management/models/authorization_method.rb'
271
+ autoload :ClientAuthenticationMethod, '2017-03-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb'
272
+ autoload :BearerTokenSendingMethod, '2017-03-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb'
273
+ autoload :BackendProtocol, '2017-03-01/generated/azure_mgmt_api_management/models/backend_protocol.rb'
274
+ autoload :HostnameType, '2017-03-01/generated/azure_mgmt_api_management/models/hostname_type.rb'
275
+ autoload :SkuType, '2017-03-01/generated/azure_mgmt_api_management/models/sku_type.rb'
276
+ autoload :VirtualNetworkType, '2017-03-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb'
277
+ autoload :NameAvailabilityReason, '2017-03-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb'
278
+ autoload :GroupType, '2017-03-01/generated/azure_mgmt_api_management/models/group_type.rb'
279
+ autoload :Confirmation, '2017-03-01/generated/azure_mgmt_api_management/models/confirmation.rb'
280
+ autoload :UserState, '2017-03-01/generated/azure_mgmt_api_management/models/user_state.rb'
281
+ autoload :IdentityProviderType, '2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb'
282
+ autoload :ConnectivityStatusType, '2017-03-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb'
283
+ autoload :SubscriptionState, '2017-03-01/generated/azure_mgmt_api_management/models/subscription_state.rb'
284
+ autoload :AsyncOperationStatus, '2017-03-01/generated/azure_mgmt_api_management/models/async_operation_status.rb'
285
+ autoload :KeyType, '2017-03-01/generated/azure_mgmt_api_management/models/key_type.rb'
286
+ autoload :TemplateName, '2017-03-01/generated/azure_mgmt_api_management/models/template_name.rb'
287
+ autoload :NotificationName, '2017-03-01/generated/azure_mgmt_api_management/models/notification_name.rb'
288
+ autoload :PolicyScopeContract, '2017-03-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb'
289
+ end
290
+ end
@@ -0,0 +1,1141 @@
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::ApiManagement::Mgmt::V2017_03_01
7
+ #
8
+ # ApiManagement Client
9
+ #
10
+ class Api
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Api class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ApiManagementClient] reference to the ApiManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists all APIs of the API Management service instance.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param service_name [String] The name of the API Management service.
29
+ # @param filter [String] | Field | Supported operators | Supported
30
+ # functions |
31
+ # |-------------|------------------------|-----------------------------------|
32
+ # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
33
+ # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
34
+ # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
35
+ # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
36
+ # | path | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
37
+ # @param top [Integer] Number of records to return.
38
+ # @param skip [Integer] Number of records to skip.
39
+ # @param expand_api_version_set [Boolean] Include full ApiVersionSet resource
40
+ # in response
41
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
42
+ # will be added to the HTTP request.
43
+ #
44
+ # @return [Array<ApiContract>] operation results.
45
+ #
46
+ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, expand_api_version_set:false, custom_headers:nil)
47
+ first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, expand_api_version_set:expand_api_version_set, custom_headers:custom_headers)
48
+ first_page.get_all_items
49
+ end
50
+
51
+ #
52
+ # Lists all APIs of the API Management service instance.
53
+ #
54
+ # @param resource_group_name [String] The name of the resource group.
55
+ # @param service_name [String] The name of the API Management service.
56
+ # @param filter [String] | Field | Supported operators | Supported
57
+ # functions |
58
+ # |-------------|------------------------|-----------------------------------|
59
+ # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
60
+ # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
61
+ # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
62
+ # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
63
+ # | path | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
64
+ # @param top [Integer] Number of records to return.
65
+ # @param skip [Integer] Number of records to skip.
66
+ # @param expand_api_version_set [Boolean] Include full ApiVersionSet resource
67
+ # in response
68
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
69
+ # will be added to the HTTP request.
70
+ #
71
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
72
+ #
73
+ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, expand_api_version_set:false, custom_headers:nil)
74
+ list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, expand_api_version_set:expand_api_version_set, custom_headers:custom_headers).value!
75
+ end
76
+
77
+ #
78
+ # Lists all APIs of the API Management service instance.
79
+ #
80
+ # @param resource_group_name [String] The name of the resource group.
81
+ # @param service_name [String] The name of the API Management service.
82
+ # @param filter [String] | Field | Supported operators | Supported
83
+ # functions |
84
+ # |-------------|------------------------|-----------------------------------|
85
+ # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
86
+ # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
87
+ # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
88
+ # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
89
+ # | path | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
90
+ # @param top [Integer] Number of records to return.
91
+ # @param skip [Integer] Number of records to skip.
92
+ # @param expand_api_version_set [Boolean] Include full ApiVersionSet resource
93
+ # in response
94
+ # @param [Hash{String => String}] A hash of custom headers that will be added
95
+ # to the HTTP request.
96
+ #
97
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
98
+ #
99
+ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, expand_api_version_set:false, custom_headers:nil)
100
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
101
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
102
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
103
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
104
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
105
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
106
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
107
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
108
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
109
+
110
+
111
+ request_headers = {}
112
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
113
+
114
+ # Set Headers
115
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
116
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
117
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis'
118
+
119
+ request_url = @base_url || @client.base_url
120
+
121
+ options = {
122
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
123
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
124
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version,'expandApiVersionSet' => expand_api_version_set},
125
+ headers: request_headers.merge(custom_headers || {}),
126
+ base_url: request_url
127
+ }
128
+ promise = @client.make_request_async(:get, path_template, options)
129
+
130
+ promise = promise.then do |result|
131
+ http_response = result.response
132
+ status_code = http_response.status
133
+ response_content = http_response.body
134
+ unless status_code == 200
135
+ error_model = JSON.load(response_content)
136
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
137
+ end
138
+
139
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
140
+ # Deserialize Response
141
+ if status_code == 200
142
+ begin
143
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
144
+ result_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::ApiCollection.mapper()
145
+ result.body = @client.deserialize(result_mapper, parsed_response)
146
+ rescue Exception => e
147
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
148
+ end
149
+ end
150
+
151
+ result
152
+ end
153
+
154
+ promise.execute
155
+ end
156
+
157
+ #
158
+ # Gets the entity state (Etag) version of the API specified by its identifier.
159
+ #
160
+ # @param resource_group_name [String] The name of the resource group.
161
+ # @param service_name [String] The name of the API Management service.
162
+ # @param api_id [String] API identifier. Must be unique in the current API
163
+ # Management service instance.
164
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
165
+ # will be added to the HTTP request.
166
+ #
167
+ #
168
+ def get_entity_tag(resource_group_name, service_name, api_id, custom_headers:nil)
169
+ response = get_entity_tag_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value!
170
+ nil
171
+ end
172
+
173
+ #
174
+ # Gets the entity state (Etag) version of the API specified by its identifier.
175
+ #
176
+ # @param resource_group_name [String] The name of the resource group.
177
+ # @param service_name [String] The name of the API Management service.
178
+ # @param api_id [String] API identifier. Must be unique in the current API
179
+ # Management service instance.
180
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
181
+ # will be added to the HTTP request.
182
+ #
183
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
184
+ #
185
+ def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, custom_headers:nil)
186
+ get_entity_tag_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value!
187
+ end
188
+
189
+ #
190
+ # Gets the entity state (Etag) version of the API specified by its identifier.
191
+ #
192
+ # @param resource_group_name [String] The name of the resource group.
193
+ # @param service_name [String] The name of the API Management service.
194
+ # @param api_id [String] API identifier. Must be unique in the current API
195
+ # Management service instance.
196
+ # @param [Hash{String => String}] A hash of custom headers that will be added
197
+ # to the HTTP request.
198
+ #
199
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
200
+ #
201
+ def get_entity_tag_async(resource_group_name, service_name, api_id, custom_headers:nil)
202
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
203
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
204
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
205
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
206
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
207
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
208
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
209
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
210
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
211
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
212
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
213
+
214
+
215
+ request_headers = {}
216
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
217
+
218
+ # Set Headers
219
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
220
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
221
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}'
222
+
223
+ request_url = @base_url || @client.base_url
224
+
225
+ options = {
226
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
227
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id},
228
+ query_params: {'api-version' => @client.api_version},
229
+ headers: request_headers.merge(custom_headers || {}),
230
+ base_url: request_url
231
+ }
232
+ promise = @client.make_request_async(:head, path_template, options)
233
+
234
+ promise = promise.then do |result|
235
+ http_response = result.response
236
+ status_code = http_response.status
237
+ response_content = http_response.body
238
+ unless status_code == 200
239
+ error_model = JSON.load(response_content)
240
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
241
+ end
242
+
243
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
244
+
245
+ result
246
+ end
247
+
248
+ promise.execute
249
+ end
250
+
251
+ #
252
+ # Gets the details of the API specified by its identifier.
253
+ #
254
+ # @param resource_group_name [String] The name of the resource group.
255
+ # @param service_name [String] The name of the API Management service.
256
+ # @param api_id [String] API revision identifier. Must be unique in the current
257
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
258
+ # where n is the revision number.
259
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
260
+ # will be added to the HTTP request.
261
+ #
262
+ # @return [ApiContract] operation results.
263
+ #
264
+ def get(resource_group_name, service_name, api_id, custom_headers:nil)
265
+ response = get_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value!
266
+ response.body unless response.nil?
267
+ end
268
+
269
+ #
270
+ # Gets the details of the API specified by its identifier.
271
+ #
272
+ # @param resource_group_name [String] The name of the resource group.
273
+ # @param service_name [String] The name of the API Management service.
274
+ # @param api_id [String] API revision identifier. Must be unique in the current
275
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
276
+ # where n is the revision number.
277
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
278
+ # will be added to the HTTP request.
279
+ #
280
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
281
+ #
282
+ def get_with_http_info(resource_group_name, service_name, api_id, custom_headers:nil)
283
+ get_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value!
284
+ end
285
+
286
+ #
287
+ # Gets the details of the API specified by its identifier.
288
+ #
289
+ # @param resource_group_name [String] The name of the resource group.
290
+ # @param service_name [String] The name of the API Management service.
291
+ # @param api_id [String] API revision identifier. Must be unique in the current
292
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
293
+ # where n is the revision number.
294
+ # @param [Hash{String => String}] A hash of custom headers that will be added
295
+ # to the HTTP request.
296
+ #
297
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
298
+ #
299
+ def get_async(resource_group_name, service_name, api_id, custom_headers:nil)
300
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
301
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
302
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
303
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
304
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
305
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
306
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
307
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
308
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
309
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
310
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
311
+
312
+
313
+ request_headers = {}
314
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
315
+
316
+ # Set Headers
317
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
318
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
319
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}'
320
+
321
+ request_url = @base_url || @client.base_url
322
+
323
+ options = {
324
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
325
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id},
326
+ query_params: {'api-version' => @client.api_version},
327
+ headers: request_headers.merge(custom_headers || {}),
328
+ base_url: request_url
329
+ }
330
+ promise = @client.make_request_async(:get, path_template, options)
331
+
332
+ promise = promise.then do |result|
333
+ http_response = result.response
334
+ status_code = http_response.status
335
+ response_content = http_response.body
336
+ unless status_code == 200
337
+ error_model = JSON.load(response_content)
338
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
339
+ end
340
+
341
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
342
+ # Deserialize Response
343
+ if status_code == 200
344
+ begin
345
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
346
+ result_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::ApiContract.mapper()
347
+ result.body = @client.deserialize(result_mapper, parsed_response)
348
+ rescue Exception => e
349
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
350
+ end
351
+ end
352
+
353
+ result
354
+ end
355
+
356
+ promise.execute
357
+ end
358
+
359
+ #
360
+ # Creates new or updates existing specified API of the API Management service
361
+ # instance.
362
+ #
363
+ # @param resource_group_name [String] The name of the resource group.
364
+ # @param service_name [String] The name of the API Management service.
365
+ # @param api_id [String] API revision identifier. Must be unique in the current
366
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
367
+ # where n is the revision number.
368
+ # @param parameters [ApiCreateOrUpdateParameter] Create or update parameters.
369
+ # @param if_match [String] ETag of the Api Entity. For Create Api Etag should
370
+ # not be specified. For Update Etag should match the existing Entity or it can
371
+ # be * for unconditional update.
372
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
373
+ # will be added to the HTTP request.
374
+ #
375
+ # @return [ApiContract] operation results.
376
+ #
377
+ def create_or_update(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil)
378
+ response = create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:if_match, custom_headers:custom_headers).value!
379
+ response.body unless response.nil?
380
+ end
381
+
382
+ #
383
+ # Creates new or updates existing specified API of the API Management service
384
+ # instance.
385
+ #
386
+ # @param resource_group_name [String] The name of the resource group.
387
+ # @param service_name [String] The name of the API Management service.
388
+ # @param api_id [String] API revision identifier. Must be unique in the current
389
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
390
+ # where n is the revision number.
391
+ # @param parameters [ApiCreateOrUpdateParameter] Create or update parameters.
392
+ # @param if_match [String] ETag of the Api Entity. For Create Api Etag should
393
+ # not be specified. For Update Etag should match the existing Entity or it can
394
+ # be * for unconditional update.
395
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
396
+ # will be added to the HTTP request.
397
+ #
398
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
399
+ #
400
+ def create_or_update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil)
401
+ create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:if_match, custom_headers:custom_headers).value!
402
+ end
403
+
404
+ #
405
+ # Creates new or updates existing specified API of the API Management service
406
+ # instance.
407
+ #
408
+ # @param resource_group_name [String] The name of the resource group.
409
+ # @param service_name [String] The name of the API Management service.
410
+ # @param api_id [String] API revision identifier. Must be unique in the current
411
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
412
+ # where n is the revision number.
413
+ # @param parameters [ApiCreateOrUpdateParameter] Create or update parameters.
414
+ # @param if_match [String] ETag of the Api Entity. For Create Api Etag should
415
+ # not be specified. For Update Etag should match the existing Entity or it can
416
+ # be * for unconditional update.
417
+ # @param [Hash{String => String}] A hash of custom headers that will be added
418
+ # to the HTTP request.
419
+ #
420
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
421
+ #
422
+ def create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil)
423
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
424
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
425
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
426
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
427
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
428
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
429
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
430
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
431
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
432
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
433
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
434
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
435
+
436
+
437
+ request_headers = {}
438
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
439
+
440
+ # Set Headers
441
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
442
+ request_headers['If-Match'] = if_match unless if_match.nil?
443
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
444
+
445
+ # Serialize Request
446
+ request_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::ApiCreateOrUpdateParameter.mapper()
447
+ request_content = @client.serialize(request_mapper, parameters)
448
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
449
+
450
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}'
451
+
452
+ request_url = @base_url || @client.base_url
453
+
454
+ options = {
455
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
456
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id},
457
+ query_params: {'api-version' => @client.api_version},
458
+ body: request_content,
459
+ headers: request_headers.merge(custom_headers || {}),
460
+ base_url: request_url
461
+ }
462
+ promise = @client.make_request_async(:put, path_template, options)
463
+
464
+ promise = promise.then do |result|
465
+ http_response = result.response
466
+ status_code = http_response.status
467
+ response_content = http_response.body
468
+ unless status_code == 201 || status_code == 200
469
+ error_model = JSON.load(response_content)
470
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
471
+ end
472
+
473
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
474
+ # Deserialize Response
475
+ if status_code == 201
476
+ begin
477
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
478
+ result_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::ApiContract.mapper()
479
+ result.body = @client.deserialize(result_mapper, parsed_response)
480
+ rescue Exception => e
481
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
482
+ end
483
+ end
484
+ # Deserialize Response
485
+ if status_code == 200
486
+ begin
487
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
488
+ result_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::ApiContract.mapper()
489
+ result.body = @client.deserialize(result_mapper, parsed_response)
490
+ rescue Exception => e
491
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
492
+ end
493
+ end
494
+
495
+ result
496
+ end
497
+
498
+ promise.execute
499
+ end
500
+
501
+ #
502
+ # Updates the specified API of the API Management service instance.
503
+ #
504
+ # @param resource_group_name [String] The name of the resource group.
505
+ # @param service_name [String] The name of the API Management service.
506
+ # @param api_id [String] API revision identifier. Must be unique in the current
507
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
508
+ # where n is the revision number.
509
+ # @param parameters [ApiUpdateContract] API Update Contract parameters.
510
+ # @param if_match [String] ETag of the API entity. ETag should match the
511
+ # current entity state in the header response of the GET request or it should
512
+ # be * for unconditional update.
513
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
514
+ # will be added to the HTTP request.
515
+ #
516
+ #
517
+ def update(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil)
518
+ response = update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:custom_headers).value!
519
+ nil
520
+ end
521
+
522
+ #
523
+ # Updates the specified API of the API Management service instance.
524
+ #
525
+ # @param resource_group_name [String] The name of the resource group.
526
+ # @param service_name [String] The name of the API Management service.
527
+ # @param api_id [String] API revision identifier. Must be unique in the current
528
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
529
+ # where n is the revision number.
530
+ # @param parameters [ApiUpdateContract] API Update Contract parameters.
531
+ # @param if_match [String] ETag of the API entity. ETag should match the
532
+ # current entity state in the header response of the GET request or it should
533
+ # be * for unconditional update.
534
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
535
+ # will be added to the HTTP request.
536
+ #
537
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
538
+ #
539
+ def update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil)
540
+ update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:custom_headers).value!
541
+ end
542
+
543
+ #
544
+ # Updates the specified API of the API Management service instance.
545
+ #
546
+ # @param resource_group_name [String] The name of the resource group.
547
+ # @param service_name [String] The name of the API Management service.
548
+ # @param api_id [String] API revision identifier. Must be unique in the current
549
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
550
+ # where n is the revision number.
551
+ # @param parameters [ApiUpdateContract] API Update Contract parameters.
552
+ # @param if_match [String] ETag of the API entity. ETag should match the
553
+ # current entity state in the header response of the GET request or it should
554
+ # be * for unconditional update.
555
+ # @param [Hash{String => String}] A hash of custom headers that will be added
556
+ # to the HTTP request.
557
+ #
558
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
559
+ #
560
+ def update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil)
561
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
562
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
563
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
564
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
565
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
566
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
567
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
568
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
569
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
570
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
571
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
572
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
573
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
574
+
575
+
576
+ request_headers = {}
577
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
578
+
579
+ # Set Headers
580
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
581
+ request_headers['If-Match'] = if_match unless if_match.nil?
582
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
583
+
584
+ # Serialize Request
585
+ request_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::ApiUpdateContract.mapper()
586
+ request_content = @client.serialize(request_mapper, parameters)
587
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
588
+
589
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}'
590
+
591
+ request_url = @base_url || @client.base_url
592
+
593
+ options = {
594
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
595
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id},
596
+ query_params: {'api-version' => @client.api_version},
597
+ body: request_content,
598
+ headers: request_headers.merge(custom_headers || {}),
599
+ base_url: request_url
600
+ }
601
+ promise = @client.make_request_async(:patch, path_template, options)
602
+
603
+ promise = promise.then do |result|
604
+ http_response = result.response
605
+ status_code = http_response.status
606
+ response_content = http_response.body
607
+ unless status_code == 204
608
+ error_model = JSON.load(response_content)
609
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
610
+ end
611
+
612
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
613
+
614
+ result
615
+ end
616
+
617
+ promise.execute
618
+ end
619
+
620
+ #
621
+ # Deletes the specified API of the API Management service instance.
622
+ #
623
+ # @param resource_group_name [String] The name of the resource group.
624
+ # @param service_name [String] The name of the API Management service.
625
+ # @param api_id [String] API revision identifier. Must be unique in the current
626
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
627
+ # where n is the revision number.
628
+ # @param if_match [String] ETag of the API Entity. ETag should match the
629
+ # current entity state from the header response of the GET request or it should
630
+ # be * for unconditional update.
631
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
632
+ # will be added to the HTTP request.
633
+ #
634
+ #
635
+ def delete(resource_group_name, service_name, api_id, if_match, custom_headers:nil)
636
+ response = delete_async(resource_group_name, service_name, api_id, if_match, custom_headers:custom_headers).value!
637
+ nil
638
+ end
639
+
640
+ #
641
+ # Deletes the specified API of the API Management service instance.
642
+ #
643
+ # @param resource_group_name [String] The name of the resource group.
644
+ # @param service_name [String] The name of the API Management service.
645
+ # @param api_id [String] API revision identifier. Must be unique in the current
646
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
647
+ # where n is the revision number.
648
+ # @param if_match [String] ETag of the API Entity. ETag should match the
649
+ # current entity state from the header response of the GET request or it should
650
+ # be * for unconditional update.
651
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
652
+ # will be added to the HTTP request.
653
+ #
654
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
655
+ #
656
+ def delete_with_http_info(resource_group_name, service_name, api_id, if_match, custom_headers:nil)
657
+ delete_async(resource_group_name, service_name, api_id, if_match, custom_headers:custom_headers).value!
658
+ end
659
+
660
+ #
661
+ # Deletes the specified API of the API Management service instance.
662
+ #
663
+ # @param resource_group_name [String] The name of the resource group.
664
+ # @param service_name [String] The name of the API Management service.
665
+ # @param api_id [String] API revision identifier. Must be unique in the current
666
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
667
+ # where n is the revision number.
668
+ # @param if_match [String] ETag of the API Entity. ETag should match the
669
+ # current entity state from the header response of the GET request or it should
670
+ # be * for unconditional update.
671
+ # @param [Hash{String => String}] A hash of custom headers that will be added
672
+ # to the HTTP request.
673
+ #
674
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
675
+ #
676
+ def delete_async(resource_group_name, service_name, api_id, if_match, custom_headers:nil)
677
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
678
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
679
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
680
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
681
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
682
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
683
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
684
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
685
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
686
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
687
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
688
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
689
+
690
+
691
+ request_headers = {}
692
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
693
+
694
+ # Set Headers
695
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
696
+ request_headers['If-Match'] = if_match unless if_match.nil?
697
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
698
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}'
699
+
700
+ request_url = @base_url || @client.base_url
701
+
702
+ options = {
703
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
704
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id},
705
+ query_params: {'api-version' => @client.api_version},
706
+ headers: request_headers.merge(custom_headers || {}),
707
+ base_url: request_url
708
+ }
709
+ promise = @client.make_request_async(:delete, path_template, options)
710
+
711
+ promise = promise.then do |result|
712
+ http_response = result.response
713
+ status_code = http_response.status
714
+ response_content = http_response.body
715
+ unless status_code == 204
716
+ error_model = JSON.load(response_content)
717
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
718
+ end
719
+
720
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
721
+
722
+ result
723
+ end
724
+
725
+ promise.execute
726
+ end
727
+
728
+ #
729
+ # Lists a collection of apis associated with tags.
730
+ #
731
+ # @param resource_group_name [String] The name of the resource group.
732
+ # @param service_name [String] The name of the API Management service.
733
+ # @param filter [String] | Field | Supported operators | Supported
734
+ # functions |
735
+ # |-------------|------------------------|---------------------------------------------|
736
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
737
+ # endswith |
738
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
739
+ # endswith |
740
+ # | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
741
+ # endswith |
742
+ # | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
743
+ # endswith |
744
+ # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
745
+ # endswith |
746
+ # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
747
+ # endswith |
748
+ # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
749
+ # endswith |
750
+ # | isCurrent | eq | substringof, contains, startswith,
751
+ # endswith |
752
+ # @param top [Integer] Number of records to return.
753
+ # @param skip [Integer] Number of records to skip.
754
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
755
+ # will be added to the HTTP request.
756
+ #
757
+ # @return [Array<TagResourceContract>] operation results.
758
+ #
759
+ def list_by_tags(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
760
+ first_page = list_by_tags_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
761
+ first_page.get_all_items
762
+ end
763
+
764
+ #
765
+ # Lists a collection of apis associated with tags.
766
+ #
767
+ # @param resource_group_name [String] The name of the resource group.
768
+ # @param service_name [String] The name of the API Management service.
769
+ # @param filter [String] | Field | Supported operators | Supported
770
+ # functions |
771
+ # |-------------|------------------------|---------------------------------------------|
772
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
773
+ # endswith |
774
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
775
+ # endswith |
776
+ # | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
777
+ # endswith |
778
+ # | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
779
+ # endswith |
780
+ # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
781
+ # endswith |
782
+ # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
783
+ # endswith |
784
+ # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
785
+ # endswith |
786
+ # | isCurrent | eq | substringof, contains, startswith,
787
+ # endswith |
788
+ # @param top [Integer] Number of records to return.
789
+ # @param skip [Integer] Number of records to skip.
790
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
791
+ # will be added to the HTTP request.
792
+ #
793
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
794
+ #
795
+ def list_by_tags_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
796
+ list_by_tags_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
797
+ end
798
+
799
+ #
800
+ # Lists a collection of apis associated with tags.
801
+ #
802
+ # @param resource_group_name [String] The name of the resource group.
803
+ # @param service_name [String] The name of the API Management service.
804
+ # @param filter [String] | Field | Supported operators | Supported
805
+ # functions |
806
+ # |-------------|------------------------|---------------------------------------------|
807
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
808
+ # endswith |
809
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
810
+ # endswith |
811
+ # | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
812
+ # endswith |
813
+ # | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
814
+ # endswith |
815
+ # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
816
+ # endswith |
817
+ # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
818
+ # endswith |
819
+ # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
820
+ # endswith |
821
+ # | isCurrent | eq | substringof, contains, startswith,
822
+ # endswith |
823
+ # @param top [Integer] Number of records to return.
824
+ # @param skip [Integer] Number of records to skip.
825
+ # @param [Hash{String => String}] A hash of custom headers that will be added
826
+ # to the HTTP request.
827
+ #
828
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
829
+ #
830
+ def list_by_tags_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
831
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
832
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
833
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
834
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
835
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
836
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
837
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
838
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
839
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
840
+
841
+
842
+ request_headers = {}
843
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
844
+
845
+ # Set Headers
846
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
847
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
848
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags'
849
+
850
+ request_url = @base_url || @client.base_url
851
+
852
+ options = {
853
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
854
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
855
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
856
+ headers: request_headers.merge(custom_headers || {}),
857
+ base_url: request_url
858
+ }
859
+ promise = @client.make_request_async(:get, path_template, options)
860
+
861
+ promise = promise.then do |result|
862
+ http_response = result.response
863
+ status_code = http_response.status
864
+ response_content = http_response.body
865
+ unless status_code == 200
866
+ error_model = JSON.load(response_content)
867
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
868
+ end
869
+
870
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
871
+ # Deserialize Response
872
+ if status_code == 200
873
+ begin
874
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
875
+ result_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::TagResourceCollection.mapper()
876
+ result.body = @client.deserialize(result_mapper, parsed_response)
877
+ rescue Exception => e
878
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
879
+ end
880
+ end
881
+
882
+ result
883
+ end
884
+
885
+ promise.execute
886
+ end
887
+
888
+ #
889
+ # Lists all APIs of the API Management service instance.
890
+ #
891
+ # @param next_page_link [String] The NextLink from the previous successful call
892
+ # to List operation.
893
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
894
+ # will be added to the HTTP request.
895
+ #
896
+ # @return [ApiCollection] operation results.
897
+ #
898
+ def list_by_service_next(next_page_link, custom_headers:nil)
899
+ response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
900
+ response.body unless response.nil?
901
+ end
902
+
903
+ #
904
+ # Lists all APIs of the API Management service instance.
905
+ #
906
+ # @param next_page_link [String] The NextLink from the previous successful call
907
+ # to List operation.
908
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
909
+ # will be added to the HTTP request.
910
+ #
911
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
912
+ #
913
+ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil)
914
+ list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
915
+ end
916
+
917
+ #
918
+ # Lists all APIs of the API Management service instance.
919
+ #
920
+ # @param next_page_link [String] The NextLink from the previous successful call
921
+ # to List operation.
922
+ # @param [Hash{String => String}] A hash of custom headers that will be added
923
+ # to the HTTP request.
924
+ #
925
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
926
+ #
927
+ def list_by_service_next_async(next_page_link, custom_headers:nil)
928
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
929
+
930
+
931
+ request_headers = {}
932
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
933
+
934
+ # Set Headers
935
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
936
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
937
+ path_template = '{nextLink}'
938
+
939
+ request_url = @base_url || @client.base_url
940
+
941
+ options = {
942
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
943
+ skip_encoding_path_params: {'nextLink' => next_page_link},
944
+ headers: request_headers.merge(custom_headers || {}),
945
+ base_url: request_url
946
+ }
947
+ promise = @client.make_request_async(:get, path_template, options)
948
+
949
+ promise = promise.then do |result|
950
+ http_response = result.response
951
+ status_code = http_response.status
952
+ response_content = http_response.body
953
+ unless status_code == 200
954
+ error_model = JSON.load(response_content)
955
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
956
+ end
957
+
958
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
959
+ # Deserialize Response
960
+ if status_code == 200
961
+ begin
962
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
963
+ result_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::ApiCollection.mapper()
964
+ result.body = @client.deserialize(result_mapper, parsed_response)
965
+ rescue Exception => e
966
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
967
+ end
968
+ end
969
+
970
+ result
971
+ end
972
+
973
+ promise.execute
974
+ end
975
+
976
+ #
977
+ # Lists a collection of apis associated with tags.
978
+ #
979
+ # @param next_page_link [String] The NextLink from the previous successful call
980
+ # to List operation.
981
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
982
+ # will be added to the HTTP request.
983
+ #
984
+ # @return [TagResourceCollection] operation results.
985
+ #
986
+ def list_by_tags_next(next_page_link, custom_headers:nil)
987
+ response = list_by_tags_next_async(next_page_link, custom_headers:custom_headers).value!
988
+ response.body unless response.nil?
989
+ end
990
+
991
+ #
992
+ # Lists a collection of apis associated with tags.
993
+ #
994
+ # @param next_page_link [String] The NextLink from the previous successful call
995
+ # to List operation.
996
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
997
+ # will be added to the HTTP request.
998
+ #
999
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1000
+ #
1001
+ def list_by_tags_next_with_http_info(next_page_link, custom_headers:nil)
1002
+ list_by_tags_next_async(next_page_link, custom_headers:custom_headers).value!
1003
+ end
1004
+
1005
+ #
1006
+ # Lists a collection of apis associated with tags.
1007
+ #
1008
+ # @param next_page_link [String] The NextLink from the previous successful call
1009
+ # to List operation.
1010
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1011
+ # to the HTTP request.
1012
+ #
1013
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1014
+ #
1015
+ def list_by_tags_next_async(next_page_link, custom_headers:nil)
1016
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1017
+
1018
+
1019
+ request_headers = {}
1020
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1021
+
1022
+ # Set Headers
1023
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1024
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1025
+ path_template = '{nextLink}'
1026
+
1027
+ request_url = @base_url || @client.base_url
1028
+
1029
+ options = {
1030
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1031
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1032
+ headers: request_headers.merge(custom_headers || {}),
1033
+ base_url: request_url
1034
+ }
1035
+ promise = @client.make_request_async(:get, path_template, options)
1036
+
1037
+ promise = promise.then do |result|
1038
+ http_response = result.response
1039
+ status_code = http_response.status
1040
+ response_content = http_response.body
1041
+ unless status_code == 200
1042
+ error_model = JSON.load(response_content)
1043
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1044
+ end
1045
+
1046
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1047
+ # Deserialize Response
1048
+ if status_code == 200
1049
+ begin
1050
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1051
+ result_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::TagResourceCollection.mapper()
1052
+ result.body = @client.deserialize(result_mapper, parsed_response)
1053
+ rescue Exception => e
1054
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1055
+ end
1056
+ end
1057
+
1058
+ result
1059
+ end
1060
+
1061
+ promise.execute
1062
+ end
1063
+
1064
+ #
1065
+ # Lists all APIs of the API Management service instance.
1066
+ #
1067
+ # @param resource_group_name [String] The name of the resource group.
1068
+ # @param service_name [String] The name of the API Management service.
1069
+ # @param filter [String] | Field | Supported operators | Supported
1070
+ # functions |
1071
+ # |-------------|------------------------|-----------------------------------|
1072
+ # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
1073
+ # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
1074
+ # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
1075
+ # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
1076
+ # | path | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
1077
+ # @param top [Integer] Number of records to return.
1078
+ # @param skip [Integer] Number of records to skip.
1079
+ # @param expand_api_version_set [Boolean] Include full ApiVersionSet resource
1080
+ # in response
1081
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1082
+ # will be added to the HTTP request.
1083
+ #
1084
+ # @return [ApiCollection] which provide lazy access to pages of the response.
1085
+ #
1086
+ def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, expand_api_version_set:false, custom_headers:nil)
1087
+ response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, expand_api_version_set:expand_api_version_set, custom_headers:custom_headers).value!
1088
+ unless response.nil?
1089
+ page = response.body
1090
+ page.next_method = Proc.new do |next_page_link|
1091
+ list_by_service_next_async(next_page_link, custom_headers:custom_headers)
1092
+ end
1093
+ page
1094
+ end
1095
+ end
1096
+
1097
+ #
1098
+ # Lists a collection of apis associated with tags.
1099
+ #
1100
+ # @param resource_group_name [String] The name of the resource group.
1101
+ # @param service_name [String] The name of the API Management service.
1102
+ # @param filter [String] | Field | Supported operators | Supported
1103
+ # functions |
1104
+ # |-------------|------------------------|---------------------------------------------|
1105
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1106
+ # endswith |
1107
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1108
+ # endswith |
1109
+ # | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1110
+ # endswith |
1111
+ # | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1112
+ # endswith |
1113
+ # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1114
+ # endswith |
1115
+ # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1116
+ # endswith |
1117
+ # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1118
+ # endswith |
1119
+ # | isCurrent | eq | substringof, contains, startswith,
1120
+ # endswith |
1121
+ # @param top [Integer] Number of records to return.
1122
+ # @param skip [Integer] Number of records to skip.
1123
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1124
+ # will be added to the HTTP request.
1125
+ #
1126
+ # @return [TagResourceCollection] which provide lazy access to pages of the
1127
+ # response.
1128
+ #
1129
+ def list_by_tags_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
1130
+ response = list_by_tags_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
1131
+ unless response.nil?
1132
+ page = response.body
1133
+ page.next_method = Proc.new do |next_page_link|
1134
+ list_by_tags_next_async(next_page_link, custom_headers:custom_headers)
1135
+ end
1136
+ page
1137
+ end
1138
+ end
1139
+
1140
+ end
1141
+ end