azure_mgmt_api_management 0.18.2 → 0.18.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (616) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_client.rb +1 -1
  3. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_base_parameters.rb +1 -1
  4. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb +1 -1
  5. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_contract.rb +1 -1
  6. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_record_contract.rb +2 -2
  7. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_collection.rb +1 -1
  8. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +1 -1
  9. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +1 -1
  10. data/lib/2016-07-07/generated/azure_mgmt_api_management/property.rb +3 -3
  11. data/lib/2016-07-07/generated/azure_mgmt_api_management/reports.rb +4 -4
  12. data/lib/2016-07-07/generated/azure_mgmt_api_management/subscriptions.rb +3 -3
  13. data/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_client.rb +1 -1
  14. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb +1 -1
  15. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +1 -1
  16. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +1 -1
  17. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_contract.rb +1 -1
  18. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_record_contract.rb +3 -3
  19. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +1 -1
  20. data/lib/2016-10-10/generated/azure_mgmt_api_management/property.rb +3 -3
  21. data/lib/2016-10-10/generated/azure_mgmt_api_management/reports.rb +4 -4
  22. data/lib/2016-10-10/generated/azure_mgmt_api_management/subscriptions.rb +3 -3
  23. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb +10 -10
  24. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_attachments.rb +7 -7
  25. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_comments.rb +7 -7
  26. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issues.rb +7 -7
  27. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb +1 -1
  28. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_service.rb +11 -1
  29. data/lib/2017-03-01/generated/azure_mgmt_api_management/diagnostic_logger.rb +10 -10
  30. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +1 -1
  31. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +1 -1
  32. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +1 -1
  33. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +1 -1
  34. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_sampling_contract.rb +1 -1
  35. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/report_record_contract.rb +3 -3
  36. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +1 -1
  37. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +1 -1
  38. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +1 -1
  39. data/lib/2017-03-01/generated/azure_mgmt_api_management/property.rb +3 -3
  40. data/lib/2017-03-01/generated/azure_mgmt_api_management/reports.rb +11 -11
  41. data/lib/2017-03-01/generated/azure_mgmt_api_management/subscription.rb +3 -3
  42. data/lib/2017-03-01/generated/azure_mgmt_api_management/tag_description.rb +3 -3
  43. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_management_client.rb +1 -1
  44. data/lib/2018-01-01/generated/azure_mgmt_api_management.rb +303 -0
  45. data/lib/2018-01-01/generated/azure_mgmt_api_management/api.rb +1144 -0
  46. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic.rb +874 -0
  47. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb +649 -0
  48. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_export.rb +147 -0
  49. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue.rb +887 -0
  50. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_attachment.rb +814 -0
  51. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_comment.rb +811 -0
  52. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_client.rb +369 -0
  53. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_operations.rb +222 -0
  54. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_service.rb +1914 -0
  55. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_service_skus.rb +244 -0
  56. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation.rb +905 -0
  57. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation_policy.rb +639 -0
  58. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_policy.rb +589 -0
  59. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_product.rb +272 -0
  60. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_release.rb +893 -0
  61. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_revisions.rb +280 -0
  62. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_schema.rb +738 -0
  63. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_version_set.rb +864 -0
  64. data/lib/2018-01-01/generated/azure_mgmt_api_management/authorization_server.rb +819 -0
  65. data/lib/2018-01-01/generated/azure_mgmt_api_management/backend.rb +931 -0
  66. data/lib/2018-01-01/generated/azure_mgmt_api_management/certificate.rb +730 -0
  67. data/lib/2018-01-01/generated/azure_mgmt_api_management/delegation_settings.rb +416 -0
  68. data/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic.rb +812 -0
  69. data/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic_logger.rb +614 -0
  70. data/lib/2018-01-01/generated/azure_mgmt_api_management/email_template.rb +896 -0
  71. data/lib/2018-01-01/generated/azure_mgmt_api_management/group.rb +839 -0
  72. data/lib/2018-01-01/generated/azure_mgmt_api_management/group_user.rb +657 -0
  73. data/lib/2018-01-01/generated/azure_mgmt_api_management/identity_provider.rb +796 -0
  74. data/lib/2018-01-01/generated/azure_mgmt_api_management/logger.rb +819 -0
  75. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_contract.rb +80 -0
  76. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +48 -0
  77. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/additional_location.rb +131 -0
  78. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_collection.rb +100 -0
  79. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract.rb +288 -0
  80. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb +222 -0
  81. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +313 -0
  82. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +57 -0
  83. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +179 -0
  84. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_export_result.rb +47 -0
  85. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +49 -0
  86. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
  87. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +322 -0
  88. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
  89. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +47 -0
  90. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +73 -0
  91. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
  92. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +81 -0
  93. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +442 -0
  94. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +60 -0
  95. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +77 -0
  96. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +431 -0
  97. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +72 -0
  98. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_collection.rb +100 -0
  99. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_contract.rb +110 -0
  100. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb +100 -0
  101. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb +145 -0
  102. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +88 -0
  103. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +221 -0
  104. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_type.rb +16 -0
  105. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_update_contract.rb +249 -0
  106. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +98 -0
  107. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +133 -0
  108. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb +96 -0
  109. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +78 -0
  110. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +106 -0
  111. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/apim_resource.rb +91 -0
  112. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/async_operation_status.rb +18 -0
  113. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +75 -0
  114. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_method.rb +22 -0
  115. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
  116. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +309 -0
  117. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +211 -0
  118. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +309 -0
  119. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
  120. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +131 -0
  121. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_collection.rb +98 -0
  122. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_contract.rb +185 -0
  123. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +124 -0
  124. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_properties.rb +48 -0
  125. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
  126. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
  127. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +74 -0
  128. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +119 -0
  129. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +63 -0
  130. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +158 -0
  131. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +16 -0
  132. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_methods.rb +16 -0
  133. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_collection.rb +98 -0
  134. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb +84 -0
  135. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_contract.rb +98 -0
  136. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
  137. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
  138. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb +16 -0
  139. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/confirmation.rb +16 -0
  140. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +107 -0
  141. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
  142. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/content_format.rb +20 -0
  143. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/current_user_identity.rb +47 -0
  144. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
  145. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +98 -0
  146. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +74 -0
  147. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_collection.rb +98 -0
  148. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_contract.rb +147 -0
  149. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +83 -0
  150. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +107 -0
  151. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
  152. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_response.rb +79 -0
  153. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_response_body.rb +79 -0
  154. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/export_format.rb +17 -0
  155. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
  156. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/grant_type.rb +18 -0
  157. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_collection.rb +98 -0
  158. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract.rb +131 -0
  159. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract_properties.rb +104 -0
  160. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb +88 -0
  161. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_type.rb +17 -0
  162. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb +88 -0
  163. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb +138 -0
  164. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb +71 -0
  165. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_type.rb +18 -0
  166. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +131 -0
  167. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +191 -0
  168. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb +99 -0
  169. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb +20 -0
  170. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +164 -0
  171. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  172. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  173. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  174. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  175. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  176. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  177. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_contract_base_properties.rb +70 -0
  178. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_update_contract.rb +103 -0
  179. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/key_type.rb +16 -0
  180. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
  181. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_contract.rb +121 -0
  182. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_type.rb +16 -0
  183. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb +89 -0
  184. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
  185. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
  186. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb +61 -0
  187. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_collection.rb +98 -0
  188. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_contract.rb +100 -0
  189. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_name.rb +21 -0
  190. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
  191. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/open_id_authentication_settings_contract.rb +66 -0
  192. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +98 -0
  193. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +122 -0
  194. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
  195. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation.rb +80 -0
  196. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_collection.rb +100 -0
  197. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_contract.rb +185 -0
  198. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
  199. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +114 -0
  200. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
  201. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb +134 -0
  202. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +69 -0
  203. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb +134 -0
  204. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb +158 -0
  205. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
  206. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_collection.rb +66 -0
  207. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_content_format.rb +18 -0
  208. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_contract.rb +87 -0
  209. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
  210. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +83 -0
  211. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +55 -0
  212. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +111 -0
  213. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +73 -0
  214. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +86 -0
  215. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_collection.rb +98 -0
  216. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_contract.rb +167 -0
  217. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +125 -0
  218. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_state.rb +16 -0
  219. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb +115 -0
  220. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb +140 -0
  221. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_collection.rb +98 -0
  222. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_contract.rb +130 -0
  223. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb +70 -0
  224. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
  225. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/protocol.rb +16 -0
  226. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
  227. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +104 -0
  228. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
  229. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +57 -0
  230. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +66 -0
  231. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +73 -0
  232. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +66 -0
  233. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +73 -0
  234. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +73 -0
  235. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_contract.rb +69 -0
  236. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_list_result.rb +109 -0
  237. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +46 -0
  238. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
  239. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_record_contract.rb +338 -0
  240. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/representation_contract.rb +106 -0
  241. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
  242. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_collection.rb +66 -0
  243. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +245 -0
  244. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource.rb +80 -0
  245. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku.rb +47 -0
  246. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity.rb +85 -0
  247. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity_scale_type.rb +17 -0
  248. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_result.rb +74 -0
  249. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_results.rb +100 -0
  250. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/response_contract.rb +99 -0
  251. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
  252. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_collection.rb +100 -0
  253. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_contract.rb +87 -0
  254. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/sku_type.rb +18 -0
  255. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/soap_api_type.rb +16 -0
  256. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/state.rb +19 -0
  257. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_collection.rb +98 -0
  258. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_contract.rb +244 -0
  259. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +128 -0
  260. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
  261. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_state.rb +20 -0
  262. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +146 -0
  263. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +47 -0
  264. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_collection.rb +98 -0
  265. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_contract.rb +77 -0
  266. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +50 -0
  267. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb +98 -0
  268. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb +114 -0
  269. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +72 -0
  270. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +109 -0
  271. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +86 -0
  272. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb +61 -0
  273. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/template_name.rb +28 -0
  274. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
  275. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +68 -0
  276. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
  277. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_collection.rb +98 -0
  278. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_contract.rb +178 -0
  279. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb +153 -0
  280. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +82 -0
  281. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb +109 -0
  282. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
  283. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_state.rb +18 -0
  284. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
  285. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
  286. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb +139 -0
  287. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb +17 -0
  288. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +76 -0
  289. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
  290. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb +57 -0
  291. data/lib/2018-01-01/generated/azure_mgmt_api_management/module_definition.rb +9 -0
  292. data/lib/2018-01-01/generated/azure_mgmt_api_management/network_status.rb +254 -0
  293. data/lib/2018-01-01/generated/azure_mgmt_api_management/notification.rb +469 -0
  294. data/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_email.rb +474 -0
  295. data/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_user.rb +495 -0
  296. data/lib/2018-01-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb +807 -0
  297. data/lib/2018-01-01/generated/azure_mgmt_api_management/operation_operations.rb +316 -0
  298. data/lib/2018-01-01/generated/azure_mgmt_api_management/policy.rb +526 -0
  299. data/lib/2018-01-01/generated/azure_mgmt_api_management/policy_snippets.rb +126 -0
  300. data/lib/2018-01-01/generated/azure_mgmt_api_management/product.rb +862 -0
  301. data/lib/2018-01-01/generated/azure_mgmt_api_management/product_api.rb +654 -0
  302. data/lib/2018-01-01/generated/azure_mgmt_api_management/product_group.rb +643 -0
  303. data/lib/2018-01-01/generated/azure_mgmt_api_management/product_policy.rb +571 -0
  304. data/lib/2018-01-01/generated/azure_mgmt_api_management/product_subscriptions.rb +312 -0
  305. data/lib/2018-01-01/generated/azure_mgmt_api_management/property.rb +804 -0
  306. data/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +262 -0
  307. data/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb +261 -0
  308. data/lib/2018-01-01/generated/azure_mgmt_api_management/regions.rb +230 -0
  309. data/lib/2018-01-01/generated/azure_mgmt_api_management/reports.rb +1690 -0
  310. data/lib/2018-01-01/generated/azure_mgmt_api_management/sign_in_settings.rb +416 -0
  311. data/lib/2018-01-01/generated/azure_mgmt_api_management/sign_up_settings.rb +416 -0
  312. data/lib/2018-01-01/generated/azure_mgmt_api_management/subscription.rb +1070 -0
  313. data/lib/2018-01-01/generated/azure_mgmt_api_management/tag.rb +3081 -0
  314. data/lib/2018-01-01/generated/azure_mgmt_api_management/tag_description.rb +787 -0
  315. data/lib/2018-01-01/generated/azure_mgmt_api_management/tag_resource.rb +356 -0
  316. data/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access.rb +401 -0
  317. data/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access_git.rb +291 -0
  318. data/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_configuration.rb +607 -0
  319. data/lib/2018-01-01/generated/azure_mgmt_api_management/user.rb +1194 -0
  320. data/lib/2018-01-01/generated/azure_mgmt_api_management/user_group.rb +287 -0
  321. data/lib/2018-01-01/generated/azure_mgmt_api_management/user_identities.rb +242 -0
  322. data/lib/2018-01-01/generated/azure_mgmt_api_management/user_subscription.rb +312 -0
  323. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb +1 -1
  324. data/lib/2019-01-01/generated/azure_mgmt_api_management.rb +313 -0
  325. data/lib/2019-01-01/generated/azure_mgmt_api_management/api.rb +1203 -0
  326. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_diagnostic.rb +878 -0
  327. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_export.rb +147 -0
  328. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_issue.rb +888 -0
  329. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_issue_attachment.rb +811 -0
  330. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_issue_comment.rb +808 -0
  331. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_management_client.rb +373 -0
  332. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_management_operations.rb +222 -0
  333. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_management_service.rb +1665 -0
  334. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_management_service_skus.rb +244 -0
  335. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_operation.rb +921 -0
  336. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_operation_policy.rb +645 -0
  337. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_policy.rb +595 -0
  338. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_product.rb +272 -0
  339. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_release.rb +896 -0
  340. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_revision.rb +272 -0
  341. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_schema.rb +777 -0
  342. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_tag_description.rb +783 -0
  343. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_version_set.rb +808 -0
  344. data/lib/2019-01-01/generated/azure_mgmt_api_management/authorization_server.rb +815 -0
  345. data/lib/2019-01-01/generated/azure_mgmt_api_management/backend.rb +931 -0
  346. data/lib/2019-01-01/generated/azure_mgmt_api_management/cache.rb +795 -0
  347. data/lib/2019-01-01/generated/azure_mgmt_api_management/certificate.rb +718 -0
  348. data/lib/2019-01-01/generated/azure_mgmt_api_management/delegation_settings.rb +423 -0
  349. data/lib/2019-01-01/generated/azure_mgmt_api_management/diagnostic.rb +816 -0
  350. data/lib/2019-01-01/generated/azure_mgmt_api_management/email_template.rb +927 -0
  351. data/lib/2019-01-01/generated/azure_mgmt_api_management/group.rb +827 -0
  352. data/lib/2019-01-01/generated/azure_mgmt_api_management/group_user.rb +633 -0
  353. data/lib/2019-01-01/generated/azure_mgmt_api_management/identity_provider.rb +796 -0
  354. data/lib/2019-01-01/generated/azure_mgmt_api_management/issue.rb +384 -0
  355. data/lib/2019-01-01/generated/azure_mgmt_api_management/logger.rb +826 -0
  356. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/access_information_contract.rb +79 -0
  357. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +46 -0
  358. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/additional_location.rb +131 -0
  359. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/always_log.rb +15 -0
  360. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_collection.rb +100 -0
  361. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_contract.rb +310 -0
  362. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb +240 -0
  363. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +335 -0
  364. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +57 -0
  365. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +190 -0
  366. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_export_result.rb +72 -0
  367. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_export_result_value.rb +47 -0
  368. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +49 -0
  369. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
  370. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +337 -0
  371. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
  372. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +47 -0
  373. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +73 -0
  374. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
  375. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +81 -0
  376. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +457 -0
  377. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +59 -0
  378. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +446 -0
  379. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_release_collection.rb +100 -0
  380. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_release_contract.rb +110 -0
  381. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb +100 -0
  382. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb +145 -0
  383. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +88 -0
  384. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +228 -0
  385. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_type.rb +16 -0
  386. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_update_contract.rb +260 -0
  387. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +98 -0
  388. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +133 -0
  389. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb +107 -0
  390. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +78 -0
  391. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +106 -0
  392. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/apim_resource.rb +91 -0
  393. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/async_operation_status.rb +18 -0
  394. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +75 -0
  395. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_method.rb +22 -0
  396. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
  397. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +309 -0
  398. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +211 -0
  399. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +309 -0
  400. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
  401. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +131 -0
  402. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_collection.rb +98 -0
  403. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_contract.rb +185 -0
  404. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +124 -0
  405. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_properties.rb +48 -0
  406. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
  407. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
  408. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +74 -0
  409. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +119 -0
  410. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +63 -0
  411. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +158 -0
  412. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +16 -0
  413. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_methods.rb +16 -0
  414. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/body_diagnostic_settings.rb +49 -0
  415. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/cache_collection.rb +98 -0
  416. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/cache_contract.rb +105 -0
  417. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/cache_update_parameters.rb +78 -0
  418. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_collection.rb +98 -0
  419. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb +84 -0
  420. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_contract.rb +98 -0
  421. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
  422. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
  423. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb +16 -0
  424. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/confirmation.rb +16 -0
  425. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +107 -0
  426. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
  427. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/content_format.rb +23 -0
  428. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
  429. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +98 -0
  430. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +136 -0
  431. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/email_template_collection.rb +98 -0
  432. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/email_template_contract.rb +147 -0
  433. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +83 -0
  434. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +107 -0
  435. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
  436. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/error_response.rb +79 -0
  437. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/error_response_body.rb +79 -0
  438. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/export_format.rb +18 -0
  439. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/export_result_format.rb +18 -0
  440. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
  441. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/grant_type.rb +18 -0
  442. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_collection.rb +98 -0
  443. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_contract.rb +131 -0
  444. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_contract_properties.rb +104 -0
  445. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb +89 -0
  446. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_type.rb +17 -0
  447. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb +89 -0
  448. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb +137 -0
  449. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/hostname_type.rb +19 -0
  450. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/http_message_diagnostic.rb +66 -0
  451. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +143 -0
  452. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +203 -0
  453. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb +99 -0
  454. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb +20 -0
  455. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +176 -0
  456. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  457. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  458. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  459. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  460. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  461. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  462. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_contract_base_properties.rb +70 -0
  463. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_update_contract.rb +103 -0
  464. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/key_type.rb +16 -0
  465. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
  466. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/logger_contract.rb +133 -0
  467. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/logger_type.rb +16 -0
  468. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb +89 -0
  469. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
  470. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
  471. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb +61 -0
  472. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/notification_collection.rb +98 -0
  473. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/notification_contract.rb +100 -0
  474. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/notification_name.rb +21 -0
  475. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
  476. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/open_id_authentication_settings_contract.rb +66 -0
  477. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +98 -0
  478. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +122 -0
  479. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
  480. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation.rb +80 -0
  481. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_collection.rb +100 -0
  482. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_contract.rb +185 -0
  483. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
  484. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +114 -0
  485. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
  486. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb +134 -0
  487. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +69 -0
  488. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb +134 -0
  489. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb +158 -0
  490. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
  491. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/pipeline_diagnostic_settings.rb +59 -0
  492. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_collection.rb +66 -0
  493. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_content_format.rb +18 -0
  494. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_contract.rb +87 -0
  495. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_export_format.rb +16 -0
  496. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
  497. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +83 -0
  498. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +55 -0
  499. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +111 -0
  500. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +73 -0
  501. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +86 -0
  502. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_collection.rb +98 -0
  503. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_contract.rb +167 -0
  504. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +125 -0
  505. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_state.rb +16 -0
  506. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb +115 -0
  507. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb +140 -0
  508. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/property_collection.rb +98 -0
  509. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/property_contract.rb +130 -0
  510. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb +70 -0
  511. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
  512. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/protocol.rb +16 -0
  513. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
  514. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +104 -0
  515. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
  516. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +57 -0
  517. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +66 -0
  518. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +73 -0
  519. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +66 -0
  520. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +73 -0
  521. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +73 -0
  522. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/region_contract.rb +69 -0
  523. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/region_list_result.rb +109 -0
  524. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +46 -0
  525. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
  526. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/report_record_contract.rb +338 -0
  527. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/representation_contract.rb +106 -0
  528. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
  529. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/request_report_collection.rb +66 -0
  530. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +245 -0
  531. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource.rb +80 -0
  532. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku.rb +47 -0
  533. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity.rb +84 -0
  534. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity_scale_type.rb +17 -0
  535. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku_result.rb +74 -0
  536. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku_results.rb +100 -0
  537. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/response_contract.rb +99 -0
  538. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/sampling_settings.rb +61 -0
  539. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/sampling_type.rb +15 -0
  540. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
  541. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/schema_collection.rb +100 -0
  542. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/schema_contract.rb +90 -0
  543. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/schema_create_or_update_contract.rb +91 -0
  544. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/sku_type.rb +19 -0
  545. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/soap_api_type.rb +16 -0
  546. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/state.rb +19 -0
  547. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_collection.rb +98 -0
  548. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_contract.rb +254 -0
  549. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +139 -0
  550. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
  551. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_state.rb +20 -0
  552. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +158 -0
  553. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +47 -0
  554. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_collection.rb +98 -0
  555. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_contract.rb +77 -0
  556. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +50 -0
  557. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb +98 -0
  558. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb +114 -0
  559. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +72 -0
  560. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +98 -0
  561. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +86 -0
  562. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb +61 -0
  563. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/template_name.rb +28 -0
  564. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
  565. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +68 -0
  566. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
  567. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_collection.rb +98 -0
  568. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_contract.rb +178 -0
  569. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb +153 -0
  570. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +82 -0
  571. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb +109 -0
  572. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
  573. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_state.rb +18 -0
  574. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
  575. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
  576. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb +139 -0
  577. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb +17 -0
  578. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +76 -0
  579. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
  580. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb +57 -0
  581. data/lib/2019-01-01/generated/azure_mgmt_api_management/module_definition.rb +9 -0
  582. data/lib/2019-01-01/generated/azure_mgmt_api_management/network_status.rb +254 -0
  583. data/lib/2019-01-01/generated/azure_mgmt_api_management/notification.rb +469 -0
  584. data/lib/2019-01-01/generated/azure_mgmt_api_management/notification_recipient_email.rb +474 -0
  585. data/lib/2019-01-01/generated/azure_mgmt_api_management/notification_recipient_user.rb +495 -0
  586. data/lib/2019-01-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb +803 -0
  587. data/lib/2019-01-01/generated/azure_mgmt_api_management/operation_operations.rb +304 -0
  588. data/lib/2019-01-01/generated/azure_mgmt_api_management/policy.rb +533 -0
  589. data/lib/2019-01-01/generated/azure_mgmt_api_management/policy_snippet.rb +126 -0
  590. data/lib/2019-01-01/generated/azure_mgmt_api_management/product.rb +1113 -0
  591. data/lib/2019-01-01/generated/azure_mgmt_api_management/product_api.rb +636 -0
  592. data/lib/2019-01-01/generated/azure_mgmt_api_management/product_group.rb +617 -0
  593. data/lib/2019-01-01/generated/azure_mgmt_api_management/product_policy.rb +577 -0
  594. data/lib/2019-01-01/generated/azure_mgmt_api_management/product_subscriptions.rb +304 -0
  595. data/lib/2019-01-01/generated/azure_mgmt_api_management/property.rb +800 -0
  596. data/lib/2019-01-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +262 -0
  597. data/lib/2019-01-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb +261 -0
  598. data/lib/2019-01-01/generated/azure_mgmt_api_management/region.rb +230 -0
  599. data/lib/2019-01-01/generated/azure_mgmt_api_management/reports.rb +2099 -0
  600. data/lib/2019-01-01/generated/azure_mgmt_api_management/sign_in_settings.rb +423 -0
  601. data/lib/2019-01-01/generated/azure_mgmt_api_management/sign_up_settings.rb +423 -0
  602. data/lib/2019-01-01/generated/azure_mgmt_api_management/subscription.rb +1062 -0
  603. data/lib/2019-01-01/generated/azure_mgmt_api_management/tag.rb +2998 -0
  604. data/lib/2019-01-01/generated/azure_mgmt_api_management/tag_resource.rb +316 -0
  605. data/lib/2019-01-01/generated/azure_mgmt_api_management/tenant_access.rb +486 -0
  606. data/lib/2019-01-01/generated/azure_mgmt_api_management/tenant_access_git.rb +291 -0
  607. data/lib/2019-01-01/generated/azure_mgmt_api_management/tenant_configuration.rb +607 -0
  608. data/lib/2019-01-01/generated/azure_mgmt_api_management/user.rb +1079 -0
  609. data/lib/2019-01-01/generated/azure_mgmt_api_management/user_confirmation_password.rb +119 -0
  610. data/lib/2019-01-01/generated/azure_mgmt_api_management/user_group.rb +279 -0
  611. data/lib/2019-01-01/generated/azure_mgmt_api_management/user_identities.rb +242 -0
  612. data/lib/2019-01-01/generated/azure_mgmt_api_management/user_subscription.rb +300 -0
  613. data/lib/azure_mgmt_api_management.rb +2 -0
  614. data/lib/profiles/latest/modules/apimanagement_profile_module.rb +723 -663
  615. data/lib/version.rb +1 -1
  616. metadata +571 -3
@@ -0,0 +1,1203 @@
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::V2019_01_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 | Usage | Supported
30
+ # operators | Supported functions
31
+ # |</br>|-------------|-------------|-------------|-------------|</br>| name |
32
+ # filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith
33
+ # | </br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof,
34
+ # contains, startswith, endswith | </br>| description | filter | ge, le, eq,
35
+ # ne, gt, lt | substringof, contains, startswith, endswith | </br>| serviceUrl
36
+ # | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
37
+ # endswith | </br>| path | filter | ge, le, eq, ne, gt, lt | substringof,
38
+ # contains, startswith, endswith | </br>
39
+ # @param top [Integer] Number of records to return.
40
+ # @param skip [Integer] Number of records to skip.
41
+ # @param tags [String] Include tags in the response.
42
+ # @param expand_api_version_set [Boolean] Include full ApiVersionSet resource
43
+ # in response
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [Array<ApiContract>] operation results.
48
+ #
49
+ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, tags:nil, expand_api_version_set:nil, custom_headers:nil)
50
+ first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, tags:tags, expand_api_version_set:expand_api_version_set, custom_headers:custom_headers)
51
+ first_page.get_all_items
52
+ end
53
+
54
+ #
55
+ # Lists all APIs of the API Management service instance.
56
+ #
57
+ # @param resource_group_name [String] The name of the resource group.
58
+ # @param service_name [String] The name of the API Management service.
59
+ # @param filter [String] | Field | Usage | Supported
60
+ # operators | Supported functions
61
+ # |</br>|-------------|-------------|-------------|-------------|</br>| name |
62
+ # filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith
63
+ # | </br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof,
64
+ # contains, startswith, endswith | </br>| description | filter | ge, le, eq,
65
+ # ne, gt, lt | substringof, contains, startswith, endswith | </br>| serviceUrl
66
+ # | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
67
+ # endswith | </br>| path | filter | ge, le, eq, ne, gt, lt | substringof,
68
+ # contains, startswith, endswith | </br>
69
+ # @param top [Integer] Number of records to return.
70
+ # @param skip [Integer] Number of records to skip.
71
+ # @param tags [String] Include tags in the response.
72
+ # @param expand_api_version_set [Boolean] Include full ApiVersionSet resource
73
+ # in response
74
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
75
+ # will be added to the HTTP request.
76
+ #
77
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
78
+ #
79
+ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, tags:nil, expand_api_version_set:nil, custom_headers:nil)
80
+ list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, tags:tags, expand_api_version_set:expand_api_version_set, custom_headers:custom_headers).value!
81
+ end
82
+
83
+ #
84
+ # Lists all APIs of the API Management service instance.
85
+ #
86
+ # @param resource_group_name [String] The name of the resource group.
87
+ # @param service_name [String] The name of the API Management service.
88
+ # @param filter [String] | Field | Usage | Supported
89
+ # operators | Supported functions
90
+ # |</br>|-------------|-------------|-------------|-------------|</br>| name |
91
+ # filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith
92
+ # | </br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof,
93
+ # contains, startswith, endswith | </br>| description | filter | ge, le, eq,
94
+ # ne, gt, lt | substringof, contains, startswith, endswith | </br>| serviceUrl
95
+ # | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
96
+ # endswith | </br>| path | filter | ge, le, eq, ne, gt, lt | substringof,
97
+ # contains, startswith, endswith | </br>
98
+ # @param top [Integer] Number of records to return.
99
+ # @param skip [Integer] Number of records to skip.
100
+ # @param tags [String] Include tags in the response.
101
+ # @param expand_api_version_set [Boolean] Include full ApiVersionSet resource
102
+ # in response
103
+ # @param [Hash{String => String}] A hash of custom headers that will be added
104
+ # to the HTTP request.
105
+ #
106
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
107
+ #
108
+ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, tags:nil, expand_api_version_set:nil, custom_headers:nil)
109
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
110
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
111
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
112
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
113
+ 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?
114
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
115
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
116
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
117
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
118
+
119
+
120
+ request_headers = {}
121
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
122
+
123
+ # Set Headers
124
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
125
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
126
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis'
127
+
128
+ request_url = @base_url || @client.base_url
129
+
130
+ options = {
131
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
132
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
133
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'tags' => tags,'expandApiVersionSet' => expand_api_version_set,'api-version' => @client.api_version},
134
+ headers: request_headers.merge(custom_headers || {}),
135
+ base_url: request_url
136
+ }
137
+ promise = @client.make_request_async(:get, path_template, options)
138
+
139
+ promise = promise.then do |result|
140
+ http_response = result.response
141
+ status_code = http_response.status
142
+ response_content = http_response.body
143
+ unless status_code == 200
144
+ error_model = JSON.load(response_content)
145
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
146
+ end
147
+
148
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
149
+ # Deserialize Response
150
+ if status_code == 200
151
+ begin
152
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
153
+ result_mapper = Azure::ApiManagement::Mgmt::V2019_01_01::Models::ApiCollection.mapper()
154
+ result.body = @client.deserialize(result_mapper, parsed_response)
155
+ rescue Exception => e
156
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
157
+ end
158
+ end
159
+
160
+ result
161
+ end
162
+
163
+ promise.execute
164
+ end
165
+
166
+ #
167
+ # Gets the entity state (Etag) version of the API specified by its identifier.
168
+ #
169
+ # @param resource_group_name [String] The name of the resource group.
170
+ # @param service_name [String] The name of the API Management service.
171
+ # @param api_id [String] API revision identifier. Must be unique in the current
172
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
173
+ # where n is the revision number.
174
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
175
+ # will be added to the HTTP request.
176
+ #
177
+ #
178
+ def get_entity_tag(resource_group_name, service_name, api_id, custom_headers:nil)
179
+ response = get_entity_tag_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value!
180
+ nil
181
+ end
182
+
183
+ #
184
+ # Gets the entity state (Etag) version of the API specified by its identifier.
185
+ #
186
+ # @param resource_group_name [String] The name of the resource group.
187
+ # @param service_name [String] The name of the API Management service.
188
+ # @param api_id [String] API revision identifier. Must be unique in the current
189
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
190
+ # where n is the revision number.
191
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
192
+ # will be added to the HTTP request.
193
+ #
194
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
195
+ #
196
+ def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, custom_headers:nil)
197
+ get_entity_tag_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value!
198
+ end
199
+
200
+ #
201
+ # Gets the entity state (Etag) version of the API specified by its identifier.
202
+ #
203
+ # @param resource_group_name [String] The name of the resource group.
204
+ # @param service_name [String] The name of the API Management service.
205
+ # @param api_id [String] API revision identifier. Must be unique in the current
206
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
207
+ # where n is the revision number.
208
+ # @param [Hash{String => String}] A hash of custom headers that will be added
209
+ # to the HTTP request.
210
+ #
211
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
212
+ #
213
+ def get_entity_tag_async(resource_group_name, service_name, api_id, custom_headers:nil)
214
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
215
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
216
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
217
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
218
+ 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?
219
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
220
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
221
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
222
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
223
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
224
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
225
+
226
+
227
+ request_headers = {}
228
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
229
+
230
+ # Set Headers
231
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
232
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
233
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}'
234
+
235
+ request_url = @base_url || @client.base_url
236
+
237
+ options = {
238
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
239
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id},
240
+ query_params: {'api-version' => @client.api_version},
241
+ headers: request_headers.merge(custom_headers || {}),
242
+ base_url: request_url
243
+ }
244
+ promise = @client.make_request_async(:head, path_template, options)
245
+
246
+ promise = promise.then do |result|
247
+ http_response = result.response
248
+ status_code = http_response.status
249
+ response_content = http_response.body
250
+ unless status_code == 200
251
+ error_model = JSON.load(response_content)
252
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
253
+ end
254
+
255
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
256
+
257
+ result
258
+ end
259
+
260
+ promise.execute
261
+ end
262
+
263
+ #
264
+ # Gets the details of the API specified by its identifier.
265
+ #
266
+ # @param resource_group_name [String] The name of the resource group.
267
+ # @param service_name [String] The name of the API Management service.
268
+ # @param api_id [String] API revision identifier. Must be unique in the current
269
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
270
+ # where n is the revision number.
271
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
272
+ # will be added to the HTTP request.
273
+ #
274
+ # @return [ApiContract] operation results.
275
+ #
276
+ def get(resource_group_name, service_name, api_id, custom_headers:nil)
277
+ response = get_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value!
278
+ response.body unless response.nil?
279
+ end
280
+
281
+ #
282
+ # Gets the details of the API specified by its identifier.
283
+ #
284
+ # @param resource_group_name [String] The name of the resource group.
285
+ # @param service_name [String] The name of the API Management service.
286
+ # @param api_id [String] API revision identifier. Must be unique in the current
287
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
288
+ # where n is the revision number.
289
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
290
+ # will be added to the HTTP request.
291
+ #
292
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
293
+ #
294
+ def get_with_http_info(resource_group_name, service_name, api_id, custom_headers:nil)
295
+ get_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value!
296
+ end
297
+
298
+ #
299
+ # Gets the details of the API specified by its identifier.
300
+ #
301
+ # @param resource_group_name [String] The name of the resource group.
302
+ # @param service_name [String] The name of the API Management service.
303
+ # @param api_id [String] API revision identifier. Must be unique in the current
304
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
305
+ # where n is the revision number.
306
+ # @param [Hash{String => String}] A hash of custom headers that will be added
307
+ # to the HTTP request.
308
+ #
309
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
310
+ #
311
+ def get_async(resource_group_name, service_name, api_id, custom_headers:nil)
312
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
313
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
314
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
315
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
316
+ 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?
317
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
318
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
319
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
320
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
321
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
322
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
323
+
324
+
325
+ request_headers = {}
326
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
327
+
328
+ # Set Headers
329
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
330
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
331
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}'
332
+
333
+ request_url = @base_url || @client.base_url
334
+
335
+ options = {
336
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
337
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id},
338
+ query_params: {'api-version' => @client.api_version},
339
+ headers: request_headers.merge(custom_headers || {}),
340
+ base_url: request_url
341
+ }
342
+ promise = @client.make_request_async(:get, path_template, options)
343
+
344
+ promise = promise.then do |result|
345
+ http_response = result.response
346
+ status_code = http_response.status
347
+ response_content = http_response.body
348
+ unless status_code == 200
349
+ error_model = JSON.load(response_content)
350
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
351
+ end
352
+
353
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
354
+ # Deserialize Response
355
+ if status_code == 200
356
+ begin
357
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
358
+ result_mapper = Azure::ApiManagement::Mgmt::V2019_01_01::Models::ApiContract.mapper()
359
+ result.body = @client.deserialize(result_mapper, parsed_response)
360
+ rescue Exception => e
361
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
362
+ end
363
+ end
364
+
365
+ result
366
+ end
367
+
368
+ promise.execute
369
+ end
370
+
371
+ #
372
+ # Creates new or updates existing specified API of the API Management service
373
+ # instance.
374
+ #
375
+ # @param resource_group_name [String] The name of the resource group.
376
+ # @param service_name [String] The name of the API Management service.
377
+ # @param api_id [String] API revision identifier. Must be unique in the current
378
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
379
+ # where n is the revision number.
380
+ # @param parameters [ApiCreateOrUpdateParameter] Create or update parameters.
381
+ # @param if_match [String] ETag of the Entity. Not required when creating an
382
+ # entity, but required when updating an entity.
383
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
384
+ # will be added to the HTTP request.
385
+ #
386
+ # @return [ApiContract] operation results.
387
+ #
388
+ def create_or_update(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil)
389
+ response = create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:if_match, custom_headers:custom_headers).value!
390
+ response.body unless response.nil?
391
+ end
392
+
393
+ #
394
+ # @param resource_group_name [String] The name of the resource group.
395
+ # @param service_name [String] The name of the API Management service.
396
+ # @param api_id [String] API revision identifier. Must be unique in the current
397
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
398
+ # where n is the revision number.
399
+ # @param parameters [ApiCreateOrUpdateParameter] Create or update parameters.
400
+ # @param if_match [String] ETag of the Entity. Not required when creating an
401
+ # entity, but required when updating an entity.
402
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
403
+ # will be added to the HTTP request.
404
+ #
405
+ # @return [Concurrent::Promise] promise which provides async access to http
406
+ # response.
407
+ #
408
+ def create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil)
409
+ # Send request
410
+ promise = begin_create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:if_match, custom_headers:custom_headers)
411
+
412
+ promise = promise.then do |response|
413
+ # Defining deserialization method.
414
+ deserialize_method = lambda do |parsed_response|
415
+ result_mapper = Azure::ApiManagement::Mgmt::V2019_01_01::Models::ApiContract.mapper()
416
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
417
+ end
418
+
419
+ # Waiting for response.
420
+ @client.get_long_running_operation_result(response, deserialize_method)
421
+ end
422
+
423
+ promise
424
+ end
425
+
426
+ #
427
+ # Updates the specified API of the API Management service instance.
428
+ #
429
+ # @param resource_group_name [String] The name of the resource group.
430
+ # @param service_name [String] The name of the API Management service.
431
+ # @param api_id [String] API revision identifier. Must be unique in the current
432
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
433
+ # where n is the revision number.
434
+ # @param parameters [ApiUpdateContract] API Update Contract parameters.
435
+ # @param if_match [String] ETag of the Entity. ETag should match the current
436
+ # entity state from the header response of the GET request or it should be *
437
+ # for unconditional update.
438
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
439
+ # will be added to the HTTP request.
440
+ #
441
+ #
442
+ def update(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil)
443
+ response = update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:custom_headers).value!
444
+ nil
445
+ end
446
+
447
+ #
448
+ # Updates the specified API of the API Management service instance.
449
+ #
450
+ # @param resource_group_name [String] The name of the resource group.
451
+ # @param service_name [String] The name of the API Management service.
452
+ # @param api_id [String] API revision identifier. Must be unique in the current
453
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
454
+ # where n is the revision number.
455
+ # @param parameters [ApiUpdateContract] API Update Contract parameters.
456
+ # @param if_match [String] ETag of the Entity. ETag should match the current
457
+ # entity state from the header response of the GET request or it should be *
458
+ # for unconditional update.
459
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
460
+ # will be added to the HTTP request.
461
+ #
462
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
463
+ #
464
+ def update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil)
465
+ update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:custom_headers).value!
466
+ end
467
+
468
+ #
469
+ # Updates the specified API of the API Management service instance.
470
+ #
471
+ # @param resource_group_name [String] The name of the resource group.
472
+ # @param service_name [String] The name of the API Management service.
473
+ # @param api_id [String] API revision identifier. Must be unique in the current
474
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
475
+ # where n is the revision number.
476
+ # @param parameters [ApiUpdateContract] API Update Contract parameters.
477
+ # @param if_match [String] ETag of the Entity. ETag should match the current
478
+ # entity state from the header response of the GET request or it should be *
479
+ # for unconditional update.
480
+ # @param [Hash{String => String}] A hash of custom headers that will be added
481
+ # to the HTTP request.
482
+ #
483
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
484
+ #
485
+ def update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil)
486
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
487
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
488
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
489
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
490
+ 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?
491
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
492
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
493
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
494
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
495
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
496
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
497
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
498
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
499
+
500
+
501
+ request_headers = {}
502
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
503
+
504
+ # Set Headers
505
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
506
+ request_headers['If-Match'] = if_match unless if_match.nil?
507
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
508
+
509
+ # Serialize Request
510
+ request_mapper = Azure::ApiManagement::Mgmt::V2019_01_01::Models::ApiUpdateContract.mapper()
511
+ request_content = @client.serialize(request_mapper, parameters)
512
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
513
+
514
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}'
515
+
516
+ request_url = @base_url || @client.base_url
517
+
518
+ options = {
519
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
520
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id},
521
+ query_params: {'api-version' => @client.api_version},
522
+ body: request_content,
523
+ headers: request_headers.merge(custom_headers || {}),
524
+ base_url: request_url
525
+ }
526
+ promise = @client.make_request_async(:patch, path_template, options)
527
+
528
+ promise = promise.then do |result|
529
+ http_response = result.response
530
+ status_code = http_response.status
531
+ response_content = http_response.body
532
+ unless status_code == 204
533
+ error_model = JSON.load(response_content)
534
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
535
+ end
536
+
537
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
538
+
539
+ result
540
+ end
541
+
542
+ promise.execute
543
+ end
544
+
545
+ #
546
+ # Deletes the specified API of the API Management service instance.
547
+ #
548
+ # @param resource_group_name [String] The name of the resource group.
549
+ # @param service_name [String] The name of the API Management service.
550
+ # @param api_id [String] API revision identifier. Must be unique in the current
551
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
552
+ # where n is the revision number.
553
+ # @param if_match [String] ETag of the Entity. ETag should match the current
554
+ # entity state from the header response of the GET request or it should be *
555
+ # for unconditional update.
556
+ # @param delete_revisions [Boolean] Delete all revisions of the Api.
557
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
558
+ # will be added to the HTTP request.
559
+ #
560
+ #
561
+ def delete(resource_group_name, service_name, api_id, if_match, delete_revisions:nil, custom_headers:nil)
562
+ response = delete_async(resource_group_name, service_name, api_id, if_match, delete_revisions:delete_revisions, custom_headers:custom_headers).value!
563
+ nil
564
+ end
565
+
566
+ #
567
+ # Deletes the specified API of the API Management service instance.
568
+ #
569
+ # @param resource_group_name [String] The name of the resource group.
570
+ # @param service_name [String] The name of the API Management service.
571
+ # @param api_id [String] API revision identifier. Must be unique in the current
572
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
573
+ # where n is the revision number.
574
+ # @param if_match [String] ETag of the Entity. ETag should match the current
575
+ # entity state from the header response of the GET request or it should be *
576
+ # for unconditional update.
577
+ # @param delete_revisions [Boolean] Delete all revisions of the Api.
578
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
579
+ # will be added to the HTTP request.
580
+ #
581
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
582
+ #
583
+ def delete_with_http_info(resource_group_name, service_name, api_id, if_match, delete_revisions:nil, custom_headers:nil)
584
+ delete_async(resource_group_name, service_name, api_id, if_match, delete_revisions:delete_revisions, custom_headers:custom_headers).value!
585
+ end
586
+
587
+ #
588
+ # Deletes the specified API of the API Management service instance.
589
+ #
590
+ # @param resource_group_name [String] The name of the resource group.
591
+ # @param service_name [String] The name of the API Management service.
592
+ # @param api_id [String] API revision identifier. Must be unique in the current
593
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
594
+ # where n is the revision number.
595
+ # @param if_match [String] ETag of the Entity. ETag should match the current
596
+ # entity state from the header response of the GET request or it should be *
597
+ # for unconditional update.
598
+ # @param delete_revisions [Boolean] Delete all revisions of the Api.
599
+ # @param [Hash{String => String}] A hash of custom headers that will be added
600
+ # to the HTTP request.
601
+ #
602
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
603
+ #
604
+ def delete_async(resource_group_name, service_name, api_id, if_match, delete_revisions:nil, custom_headers:nil)
605
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
606
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
607
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
608
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
609
+ 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?
610
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
611
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
612
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
613
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
614
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
615
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
616
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
617
+
618
+
619
+ request_headers = {}
620
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
621
+
622
+ # Set Headers
623
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
624
+ request_headers['If-Match'] = if_match unless if_match.nil?
625
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
626
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}'
627
+
628
+ request_url = @base_url || @client.base_url
629
+
630
+ options = {
631
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
632
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id},
633
+ query_params: {'deleteRevisions' => delete_revisions,'api-version' => @client.api_version},
634
+ headers: request_headers.merge(custom_headers || {}),
635
+ base_url: request_url
636
+ }
637
+ promise = @client.make_request_async(:delete, path_template, options)
638
+
639
+ promise = promise.then do |result|
640
+ http_response = result.response
641
+ status_code = http_response.status
642
+ response_content = http_response.body
643
+ unless status_code == 200 || status_code == 204
644
+ error_model = JSON.load(response_content)
645
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
646
+ end
647
+
648
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
649
+
650
+ result
651
+ end
652
+
653
+ promise.execute
654
+ end
655
+
656
+ #
657
+ # Lists a collection of apis associated with tags.
658
+ #
659
+ # @param resource_group_name [String] The name of the resource group.
660
+ # @param service_name [String] The name of the API Management service.
661
+ # @param filter [String] | Field | Supported operators | Supported
662
+ # functions |
663
+ # |-------------|------------------------|-----------------------------------|
664
+ #
665
+ # |name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith|
666
+ # |displayName | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
667
+ # endswith|
668
+ # |apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
669
+ # endswith|
670
+ # |path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith|
671
+ # |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
672
+ # endswith|
673
+ # |serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
674
+ # endswith|
675
+ # |isCurrent | eq | |
676
+ #
677
+ # @param top [Integer] Number of records to return.
678
+ # @param skip [Integer] Number of records to skip.
679
+ # @param include_not_tagged_apis [Boolean] Include not tagged APIs.
680
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
681
+ # will be added to the HTTP request.
682
+ #
683
+ # @return [Array<TagResourceContract>] operation results.
684
+ #
685
+ def list_by_tags(resource_group_name, service_name, filter:nil, top:nil, skip:nil, include_not_tagged_apis:nil, custom_headers:nil)
686
+ first_page = list_by_tags_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, include_not_tagged_apis:include_not_tagged_apis, custom_headers:custom_headers)
687
+ first_page.get_all_items
688
+ end
689
+
690
+ #
691
+ # Lists a collection of apis associated with tags.
692
+ #
693
+ # @param resource_group_name [String] The name of the resource group.
694
+ # @param service_name [String] The name of the API Management service.
695
+ # @param filter [String] | Field | Supported operators | Supported
696
+ # functions |
697
+ # |-------------|------------------------|-----------------------------------|
698
+ #
699
+ # |name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith|
700
+ # |displayName | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
701
+ # endswith|
702
+ # |apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
703
+ # endswith|
704
+ # |path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith|
705
+ # |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
706
+ # endswith|
707
+ # |serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
708
+ # endswith|
709
+ # |isCurrent | eq | |
710
+ #
711
+ # @param top [Integer] Number of records to return.
712
+ # @param skip [Integer] Number of records to skip.
713
+ # @param include_not_tagged_apis [Boolean] Include not tagged APIs.
714
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
715
+ # will be added to the HTTP request.
716
+ #
717
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
718
+ #
719
+ def list_by_tags_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, include_not_tagged_apis:nil, custom_headers:nil)
720
+ list_by_tags_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, include_not_tagged_apis:include_not_tagged_apis, custom_headers:custom_headers).value!
721
+ end
722
+
723
+ #
724
+ # Lists a collection of apis associated with tags.
725
+ #
726
+ # @param resource_group_name [String] The name of the resource group.
727
+ # @param service_name [String] The name of the API Management service.
728
+ # @param filter [String] | Field | Supported operators | Supported
729
+ # functions |
730
+ # |-------------|------------------------|-----------------------------------|
731
+ #
732
+ # |name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith|
733
+ # |displayName | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
734
+ # endswith|
735
+ # |apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
736
+ # endswith|
737
+ # |path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith|
738
+ # |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
739
+ # endswith|
740
+ # |serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
741
+ # endswith|
742
+ # |isCurrent | eq | |
743
+ #
744
+ # @param top [Integer] Number of records to return.
745
+ # @param skip [Integer] Number of records to skip.
746
+ # @param include_not_tagged_apis [Boolean] Include not tagged APIs.
747
+ # @param [Hash{String => String}] A hash of custom headers that will be added
748
+ # to the HTTP request.
749
+ #
750
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
751
+ #
752
+ def list_by_tags_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, include_not_tagged_apis:nil, custom_headers:nil)
753
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
754
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
755
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
756
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
757
+ 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?
758
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
759
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
760
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
761
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
762
+
763
+
764
+ request_headers = {}
765
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
766
+
767
+ # Set Headers
768
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
769
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
770
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags'
771
+
772
+ request_url = @base_url || @client.base_url
773
+
774
+ options = {
775
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
776
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
777
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'includeNotTaggedApis' => include_not_tagged_apis,'api-version' => @client.api_version},
778
+ headers: request_headers.merge(custom_headers || {}),
779
+ base_url: request_url
780
+ }
781
+ promise = @client.make_request_async(:get, path_template, options)
782
+
783
+ promise = promise.then do |result|
784
+ http_response = result.response
785
+ status_code = http_response.status
786
+ response_content = http_response.body
787
+ unless status_code == 200
788
+ error_model = JSON.load(response_content)
789
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
790
+ end
791
+
792
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
793
+ # Deserialize Response
794
+ if status_code == 200
795
+ begin
796
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
797
+ result_mapper = Azure::ApiManagement::Mgmt::V2019_01_01::Models::TagResourceCollection.mapper()
798
+ result.body = @client.deserialize(result_mapper, parsed_response)
799
+ rescue Exception => e
800
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
801
+ end
802
+ end
803
+
804
+ result
805
+ end
806
+
807
+ promise.execute
808
+ end
809
+
810
+ #
811
+ # Creates new or updates existing specified API of the API Management service
812
+ # instance.
813
+ #
814
+ # @param resource_group_name [String] The name of the resource group.
815
+ # @param service_name [String] The name of the API Management service.
816
+ # @param api_id [String] API revision identifier. Must be unique in the current
817
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
818
+ # where n is the revision number.
819
+ # @param parameters [ApiCreateOrUpdateParameter] Create or update parameters.
820
+ # @param if_match [String] ETag of the Entity. Not required when creating an
821
+ # entity, but required when updating an entity.
822
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
823
+ # will be added to the HTTP request.
824
+ #
825
+ # @return [ApiContract] operation results.
826
+ #
827
+ def begin_create_or_update(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil)
828
+ response = begin_create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:if_match, custom_headers:custom_headers).value!
829
+ response.body unless response.nil?
830
+ end
831
+
832
+ #
833
+ # Creates new or updates existing specified API of the API Management service
834
+ # instance.
835
+ #
836
+ # @param resource_group_name [String] The name of the resource group.
837
+ # @param service_name [String] The name of the API Management service.
838
+ # @param api_id [String] API revision identifier. Must be unique in the current
839
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
840
+ # where n is the revision number.
841
+ # @param parameters [ApiCreateOrUpdateParameter] Create or update parameters.
842
+ # @param if_match [String] ETag of the Entity. Not required when creating an
843
+ # entity, but required when updating an entity.
844
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
845
+ # will be added to the HTTP request.
846
+ #
847
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
848
+ #
849
+ def begin_create_or_update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil)
850
+ begin_create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:if_match, custom_headers:custom_headers).value!
851
+ end
852
+
853
+ #
854
+ # Creates new or updates existing specified API of the API Management service
855
+ # instance.
856
+ #
857
+ # @param resource_group_name [String] The name of the resource group.
858
+ # @param service_name [String] The name of the API Management service.
859
+ # @param api_id [String] API revision identifier. Must be unique in the current
860
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
861
+ # where n is the revision number.
862
+ # @param parameters [ApiCreateOrUpdateParameter] Create or update parameters.
863
+ # @param if_match [String] ETag of the Entity. Not required when creating an
864
+ # entity, but required when updating an entity.
865
+ # @param [Hash{String => String}] A hash of custom headers that will be added
866
+ # to the HTTP request.
867
+ #
868
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
869
+ #
870
+ def begin_create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil)
871
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
872
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
873
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
874
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
875
+ 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?
876
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
877
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
878
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
879
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
880
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
881
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
882
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
883
+
884
+
885
+ request_headers = {}
886
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
887
+
888
+ # Set Headers
889
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
890
+ request_headers['If-Match'] = if_match unless if_match.nil?
891
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
892
+
893
+ # Serialize Request
894
+ request_mapper = Azure::ApiManagement::Mgmt::V2019_01_01::Models::ApiCreateOrUpdateParameter.mapper()
895
+ request_content = @client.serialize(request_mapper, parameters)
896
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
897
+
898
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}'
899
+
900
+ request_url = @base_url || @client.base_url
901
+
902
+ options = {
903
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
904
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id},
905
+ query_params: {'api-version' => @client.api_version},
906
+ body: request_content,
907
+ headers: request_headers.merge(custom_headers || {}),
908
+ base_url: request_url
909
+ }
910
+ promise = @client.make_request_async(:put, path_template, options)
911
+
912
+ promise = promise.then do |result|
913
+ http_response = result.response
914
+ status_code = http_response.status
915
+ response_content = http_response.body
916
+ unless status_code == 201 || status_code == 202 || status_code == 200
917
+ error_model = JSON.load(response_content)
918
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
919
+ end
920
+
921
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
922
+ # Deserialize Response
923
+ if status_code == 201
924
+ begin
925
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
926
+ result_mapper = Azure::ApiManagement::Mgmt::V2019_01_01::Models::ApiContract.mapper()
927
+ result.body = @client.deserialize(result_mapper, parsed_response)
928
+ rescue Exception => e
929
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
930
+ end
931
+ end
932
+ # Deserialize Response
933
+ if status_code == 200
934
+ begin
935
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
936
+ result_mapper = Azure::ApiManagement::Mgmt::V2019_01_01::Models::ApiContract.mapper()
937
+ result.body = @client.deserialize(result_mapper, parsed_response)
938
+ rescue Exception => e
939
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
940
+ end
941
+ end
942
+
943
+ result
944
+ end
945
+
946
+ promise.execute
947
+ end
948
+
949
+ #
950
+ # Lists all APIs of the API Management service instance.
951
+ #
952
+ # @param next_page_link [String] The NextLink from the previous successful call
953
+ # to List operation.
954
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
955
+ # will be added to the HTTP request.
956
+ #
957
+ # @return [ApiCollection] operation results.
958
+ #
959
+ def list_by_service_next(next_page_link, custom_headers:nil)
960
+ response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
961
+ response.body unless response.nil?
962
+ end
963
+
964
+ #
965
+ # Lists all APIs of the API Management service instance.
966
+ #
967
+ # @param next_page_link [String] The NextLink from the previous successful call
968
+ # to List operation.
969
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
970
+ # will be added to the HTTP request.
971
+ #
972
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
973
+ #
974
+ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil)
975
+ list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
976
+ end
977
+
978
+ #
979
+ # Lists all APIs of the API Management service instance.
980
+ #
981
+ # @param next_page_link [String] The NextLink from the previous successful call
982
+ # to List operation.
983
+ # @param [Hash{String => String}] A hash of custom headers that will be added
984
+ # to the HTTP request.
985
+ #
986
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
987
+ #
988
+ def list_by_service_next_async(next_page_link, custom_headers:nil)
989
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
990
+
991
+
992
+ request_headers = {}
993
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
994
+
995
+ # Set Headers
996
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
997
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
998
+ path_template = '{nextLink}'
999
+
1000
+ request_url = @base_url || @client.base_url
1001
+
1002
+ options = {
1003
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1004
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1005
+ headers: request_headers.merge(custom_headers || {}),
1006
+ base_url: request_url
1007
+ }
1008
+ promise = @client.make_request_async(:get, path_template, options)
1009
+
1010
+ promise = promise.then do |result|
1011
+ http_response = result.response
1012
+ status_code = http_response.status
1013
+ response_content = http_response.body
1014
+ unless status_code == 200
1015
+ error_model = JSON.load(response_content)
1016
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1017
+ end
1018
+
1019
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1020
+ # Deserialize Response
1021
+ if status_code == 200
1022
+ begin
1023
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1024
+ result_mapper = Azure::ApiManagement::Mgmt::V2019_01_01::Models::ApiCollection.mapper()
1025
+ result.body = @client.deserialize(result_mapper, parsed_response)
1026
+ rescue Exception => e
1027
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1028
+ end
1029
+ end
1030
+
1031
+ result
1032
+ end
1033
+
1034
+ promise.execute
1035
+ end
1036
+
1037
+ #
1038
+ # Lists a collection of apis associated with tags.
1039
+ #
1040
+ # @param next_page_link [String] The NextLink from the previous successful call
1041
+ # to List operation.
1042
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1043
+ # will be added to the HTTP request.
1044
+ #
1045
+ # @return [TagResourceCollection] operation results.
1046
+ #
1047
+ def list_by_tags_next(next_page_link, custom_headers:nil)
1048
+ response = list_by_tags_next_async(next_page_link, custom_headers:custom_headers).value!
1049
+ response.body unless response.nil?
1050
+ end
1051
+
1052
+ #
1053
+ # Lists a collection of apis associated with tags.
1054
+ #
1055
+ # @param next_page_link [String] The NextLink from the previous successful call
1056
+ # to List operation.
1057
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1058
+ # will be added to the HTTP request.
1059
+ #
1060
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1061
+ #
1062
+ def list_by_tags_next_with_http_info(next_page_link, custom_headers:nil)
1063
+ list_by_tags_next_async(next_page_link, custom_headers:custom_headers).value!
1064
+ end
1065
+
1066
+ #
1067
+ # Lists a collection of apis associated with tags.
1068
+ #
1069
+ # @param next_page_link [String] The NextLink from the previous successful call
1070
+ # to List operation.
1071
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1072
+ # to the HTTP request.
1073
+ #
1074
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1075
+ #
1076
+ def list_by_tags_next_async(next_page_link, custom_headers:nil)
1077
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1078
+
1079
+
1080
+ request_headers = {}
1081
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1082
+
1083
+ # Set Headers
1084
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1085
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1086
+ path_template = '{nextLink}'
1087
+
1088
+ request_url = @base_url || @client.base_url
1089
+
1090
+ options = {
1091
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1092
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1093
+ headers: request_headers.merge(custom_headers || {}),
1094
+ base_url: request_url
1095
+ }
1096
+ promise = @client.make_request_async(:get, path_template, options)
1097
+
1098
+ promise = promise.then do |result|
1099
+ http_response = result.response
1100
+ status_code = http_response.status
1101
+ response_content = http_response.body
1102
+ unless status_code == 200
1103
+ error_model = JSON.load(response_content)
1104
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1105
+ end
1106
+
1107
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1108
+ # Deserialize Response
1109
+ if status_code == 200
1110
+ begin
1111
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1112
+ result_mapper = Azure::ApiManagement::Mgmt::V2019_01_01::Models::TagResourceCollection.mapper()
1113
+ result.body = @client.deserialize(result_mapper, parsed_response)
1114
+ rescue Exception => e
1115
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1116
+ end
1117
+ end
1118
+
1119
+ result
1120
+ end
1121
+
1122
+ promise.execute
1123
+ end
1124
+
1125
+ #
1126
+ # Lists all APIs of the API Management service instance.
1127
+ #
1128
+ # @param resource_group_name [String] The name of the resource group.
1129
+ # @param service_name [String] The name of the API Management service.
1130
+ # @param filter [String] | Field | Usage | Supported
1131
+ # operators | Supported functions
1132
+ # |</br>|-------------|-------------|-------------|-------------|</br>| name |
1133
+ # filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith
1134
+ # | </br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof,
1135
+ # contains, startswith, endswith | </br>| description | filter | ge, le, eq,
1136
+ # ne, gt, lt | substringof, contains, startswith, endswith | </br>| serviceUrl
1137
+ # | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1138
+ # endswith | </br>| path | filter | ge, le, eq, ne, gt, lt | substringof,
1139
+ # contains, startswith, endswith | </br>
1140
+ # @param top [Integer] Number of records to return.
1141
+ # @param skip [Integer] Number of records to skip.
1142
+ # @param tags [String] Include tags in the response.
1143
+ # @param expand_api_version_set [Boolean] Include full ApiVersionSet resource
1144
+ # in response
1145
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1146
+ # will be added to the HTTP request.
1147
+ #
1148
+ # @return [ApiCollection] which provide lazy access to pages of the response.
1149
+ #
1150
+ def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, tags:nil, expand_api_version_set:nil, custom_headers:nil)
1151
+ response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, tags:tags, expand_api_version_set:expand_api_version_set, custom_headers:custom_headers).value!
1152
+ unless response.nil?
1153
+ page = response.body
1154
+ page.next_method = Proc.new do |next_page_link|
1155
+ list_by_service_next_async(next_page_link, custom_headers:custom_headers)
1156
+ end
1157
+ page
1158
+ end
1159
+ end
1160
+
1161
+ #
1162
+ # Lists a collection of apis associated with tags.
1163
+ #
1164
+ # @param resource_group_name [String] The name of the resource group.
1165
+ # @param service_name [String] The name of the API Management service.
1166
+ # @param filter [String] | Field | Supported operators | Supported
1167
+ # functions |
1168
+ # |-------------|------------------------|-----------------------------------|
1169
+ #
1170
+ # |name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith|
1171
+ # |displayName | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1172
+ # endswith|
1173
+ # |apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1174
+ # endswith|
1175
+ # |path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith|
1176
+ # |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1177
+ # endswith|
1178
+ # |serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1179
+ # endswith|
1180
+ # |isCurrent | eq | |
1181
+ #
1182
+ # @param top [Integer] Number of records to return.
1183
+ # @param skip [Integer] Number of records to skip.
1184
+ # @param include_not_tagged_apis [Boolean] Include not tagged APIs.
1185
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1186
+ # will be added to the HTTP request.
1187
+ #
1188
+ # @return [TagResourceCollection] which provide lazy access to pages of the
1189
+ # response.
1190
+ #
1191
+ def list_by_tags_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, include_not_tagged_apis:nil, custom_headers:nil)
1192
+ response = list_by_tags_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, include_not_tagged_apis:include_not_tagged_apis, custom_headers:custom_headers).value!
1193
+ unless response.nil?
1194
+ page = response.body
1195
+ page.next_method = Proc.new do |next_page_link|
1196
+ list_by_tags_next_async(next_page_link, custom_headers:custom_headers)
1197
+ end
1198
+ page
1199
+ end
1200
+ end
1201
+
1202
+ end
1203
+ end