azure_mgmt_api_management 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (578) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_client.rb +7 -6
  3. data/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_client.rb +7 -6
  4. data/lib/2017-03-01/generated/azure_mgmt_api_management.rb +290 -0
  5. data/lib/2017-03-01/generated/azure_mgmt_api_management/api.rb +1141 -0
  6. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_diagnostic.rb +877 -0
  7. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb +647 -0
  8. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_export.rb +134 -0
  9. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issu_attachment.rb +142 -0
  10. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issu_comment.rb +142 -0
  11. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue.rb +508 -0
  12. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_attachment.rb +434 -0
  13. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_attachments.rb +288 -0
  14. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_comment.rb +431 -0
  15. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_comments.rb +288 -0
  16. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issues.rb +279 -0
  17. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb +385 -0
  18. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_operations.rb +222 -0
  19. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_service.rb +1904 -0
  20. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_operation.rb +895 -0
  21. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_operation_policy.rb +637 -0
  22. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_policy.rb +587 -0
  23. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_product.rb +272 -0
  24. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_release.rb +789 -0
  25. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_revisions.rb +280 -0
  26. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_schema.rb +725 -0
  27. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_version_set.rb +867 -0
  28. data/lib/2017-03-01/generated/azure_mgmt_api_management/authorization_server.rb +807 -0
  29. data/lib/2017-03-01/generated/azure_mgmt_api_management/backend.rb +924 -0
  30. data/lib/2017-03-01/generated/azure_mgmt_api_management/certificate.rb +733 -0
  31. data/lib/2017-03-01/generated/azure_mgmt_api_management/delegation_settings.rb +416 -0
  32. data/lib/2017-03-01/generated/azure_mgmt_api_management/diagnostic.rb +815 -0
  33. data/lib/2017-03-01/generated/azure_mgmt_api_management/diagnostic_logger.rb +612 -0
  34. data/lib/2017-03-01/generated/azure_mgmt_api_management/email_template.rb +889 -0
  35. data/lib/2017-03-01/generated/azure_mgmt_api_management/group.rb +832 -0
  36. data/lib/2017-03-01/generated/azure_mgmt_api_management/group_user.rb +655 -0
  37. data/lib/2017-03-01/generated/azure_mgmt_api_management/identity_provider.rb +675 -0
  38. data/lib/2017-03-01/generated/azure_mgmt_api_management/logger.rb +812 -0
  39. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/access_information_contract.rb +80 -0
  40. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +48 -0
  41. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/additional_location.rb +107 -0
  42. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_collection.rb +100 -0
  43. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_contract.rb +260 -0
  44. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb +200 -0
  45. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +271 -0
  46. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +57 -0
  47. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +151 -0
  48. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_export_result.rb +47 -0
  49. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +49 -0
  50. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
  51. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +298 -0
  52. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
  53. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +47 -0
  54. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +73 -0
  55. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
  56. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +81 -0
  57. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +418 -0
  58. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +60 -0
  59. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +77 -0
  60. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +407 -0
  61. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +72 -0
  62. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_release_collection.rb +100 -0
  63. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_release_contract.rb +110 -0
  64. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb +98 -0
  65. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb +172 -0
  66. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +88 -0
  67. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_type.rb +16 -0
  68. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_update_contract.rb +221 -0
  69. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +98 -0
  70. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +133 -0
  71. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_contract_properties.rb +95 -0
  72. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +79 -0
  73. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +106 -0
  74. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/apim_resource.rb +91 -0
  75. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/async_operation_status.rb +18 -0
  76. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +48 -0
  77. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_method.rb +22 -0
  78. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
  79. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +309 -0
  80. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +211 -0
  81. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +309 -0
  82. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
  83. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +131 -0
  84. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_collection.rb +98 -0
  85. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_contract.rb +185 -0
  86. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +124 -0
  87. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_properties.rb +48 -0
  88. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
  89. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
  90. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +78 -0
  91. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +119 -0
  92. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +63 -0
  93. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +158 -0
  94. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +16 -0
  95. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_collection.rb +98 -0
  96. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb +84 -0
  97. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_contract.rb +98 -0
  98. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
  99. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
  100. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb +16 -0
  101. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/confirmation.rb +16 -0
  102. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +107 -0
  103. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
  104. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/content_format.rb +20 -0
  105. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
  106. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +98 -0
  107. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +74 -0
  108. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/email_template_collection.rb +98 -0
  109. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/email_template_contract.rb +147 -0
  110. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +83 -0
  111. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +107 -0
  112. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
  113. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/error_response.rb +79 -0
  114. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
  115. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/grant_type.rb +18 -0
  116. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_collection.rb +98 -0
  117. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_contract.rb +131 -0
  118. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb +88 -0
  119. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_type.rb +17 -0
  120. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb +88 -0
  121. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb +139 -0
  122. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb +71 -0
  123. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/hostname_type.rb +18 -0
  124. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +131 -0
  125. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +191 -0
  126. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb +67 -0
  127. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb +20 -0
  128. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +164 -0
  129. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  130. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  131. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  132. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  133. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  134. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  135. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/key_type.rb +16 -0
  136. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
  137. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_contract.rb +134 -0
  138. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_sampling_contract.rb +160 -0
  139. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_type.rb +16 -0
  140. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb +89 -0
  141. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
  142. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
  143. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/notification_collection.rb +98 -0
  144. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/notification_contract.rb +100 -0
  145. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/notification_name.rb +21 -0
  146. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
  147. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +98 -0
  148. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +122 -0
  149. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
  150. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation.rb +80 -0
  151. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_collection.rb +100 -0
  152. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_contract.rb +185 -0
  153. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
  154. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +114 -0
  155. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_entity_contract.rb +149 -0
  156. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
  157. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb +134 -0
  158. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +69 -0
  159. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb +158 -0
  160. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
  161. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_collection.rb +66 -0
  162. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_contract.rb +73 -0
  163. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
  164. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +83 -0
  165. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +55 -0
  166. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +111 -0
  167. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +73 -0
  168. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +86 -0
  169. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_collection.rb +98 -0
  170. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_contract.rb +167 -0
  171. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +125 -0
  172. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_state.rb +16 -0
  173. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb +140 -0
  174. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/property_collection.rb +98 -0
  175. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/property_contract.rb +130 -0
  176. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb +70 -0
  177. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
  178. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/protocol.rb +16 -0
  179. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
  180. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +104 -0
  181. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
  182. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +57 -0
  183. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +66 -0
  184. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +73 -0
  185. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +66 -0
  186. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +73 -0
  187. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +73 -0
  188. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/region_contract.rb +69 -0
  189. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/region_list_result.rb +77 -0
  190. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +46 -0
  191. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
  192. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/report_record_contract.rb +338 -0
  193. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/representation_contract.rb +106 -0
  194. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
  195. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/request_report_collection.rb +66 -0
  196. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +245 -0
  197. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/resource.rb +71 -0
  198. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/response_contract.rb +99 -0
  199. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/sampling_type.rb +16 -0
  200. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
  201. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/schema_collection.rb +100 -0
  202. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/schema_contract.rb +87 -0
  203. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/sku_type.rb +18 -0
  204. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/state.rb +19 -0
  205. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_collection.rb +98 -0
  206. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_contract.rb +244 -0
  207. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +128 -0
  208. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
  209. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_state.rb +20 -0
  210. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +146 -0
  211. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +47 -0
  212. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_collection.rb +98 -0
  213. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_contract.rb +77 -0
  214. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +50 -0
  215. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb +98 -0
  216. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb +114 -0
  217. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +72 -0
  218. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +98 -0
  219. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +110 -0
  220. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/template_name.rb +28 -0
  221. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
  222. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +68 -0
  223. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
  224. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_collection.rb +98 -0
  225. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_contract.rb +178 -0
  226. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb +154 -0
  227. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +83 -0
  228. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb +77 -0
  229. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
  230. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_state.rb +18 -0
  231. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
  232. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
  233. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb +140 -0
  234. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb +17 -0
  235. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +76 -0
  236. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
  237. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb +57 -0
  238. data/lib/2017-03-01/generated/azure_mgmt_api_management/module_definition.rb +9 -0
  239. data/lib/2017-03-01/generated/azure_mgmt_api_management/network_status.rb +238 -0
  240. data/lib/2017-03-01/generated/azure_mgmt_api_management/notification.rb +462 -0
  241. data/lib/2017-03-01/generated/azure_mgmt_api_management/notification_recipient_email.rb +472 -0
  242. data/lib/2017-03-01/generated/azure_mgmt_api_management/notification_recipient_user.rb +493 -0
  243. data/lib/2017-03-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb +800 -0
  244. data/lib/2017-03-01/generated/azure_mgmt_api_management/operation_operations.rb +312 -0
  245. data/lib/2017-03-01/generated/azure_mgmt_api_management/policy.rb +438 -0
  246. data/lib/2017-03-01/generated/azure_mgmt_api_management/policy_snippets.rb +126 -0
  247. data/lib/2017-03-01/generated/azure_mgmt_api_management/product.rb +855 -0
  248. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_api.rb +643 -0
  249. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_group.rb +641 -0
  250. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_policy.rb +469 -0
  251. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_subscriptions.rb +312 -0
  252. data/lib/2017-03-01/generated/azure_mgmt_api_management/property.rb +797 -0
  253. data/lib/2017-03-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +262 -0
  254. data/lib/2017-03-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb +261 -0
  255. data/lib/2017-03-01/generated/azure_mgmt_api_management/regions.rb +120 -0
  256. data/lib/2017-03-01/generated/azure_mgmt_api_management/reports.rb +1690 -0
  257. data/lib/2017-03-01/generated/azure_mgmt_api_management/sign_in_settings.rb +416 -0
  258. data/lib/2017-03-01/generated/azure_mgmt_api_management/sign_up_settings.rb +416 -0
  259. data/lib/2017-03-01/generated/azure_mgmt_api_management/subscription.rb +1039 -0
  260. data/lib/2017-03-01/generated/azure_mgmt_api_management/tag.rb +3058 -0
  261. data/lib/2017-03-01/generated/azure_mgmt_api_management/tag_description.rb +774 -0
  262. data/lib/2017-03-01/generated/azure_mgmt_api_management/tag_resource.rb +356 -0
  263. data/lib/2017-03-01/generated/azure_mgmt_api_management/tenant_access.rb +401 -0
  264. data/lib/2017-03-01/generated/azure_mgmt_api_management/tenant_access_git.rb +291 -0
  265. data/lib/2017-03-01/generated/azure_mgmt_api_management/tenant_configuration.rb +607 -0
  266. data/lib/2017-03-01/generated/azure_mgmt_api_management/user.rb +1086 -0
  267. data/lib/2017-03-01/generated/azure_mgmt_api_management/user_group.rb +287 -0
  268. data/lib/2017-03-01/generated/azure_mgmt_api_management/user_identities.rb +130 -0
  269. data/lib/2017-03-01/generated/azure_mgmt_api_management/user_subscription.rb +312 -0
  270. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management.rb +100 -89
  271. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_issue.rb +762 -0
  272. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_issue_attachment.rb +814 -0
  273. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_issue_comment.rb +811 -0
  274. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_management_client.rb +19 -6
  275. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/additional_location.rb +26 -2
  276. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_collection.rb +2 -0
  277. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_contract.rb +28 -0
  278. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_contract_properties.rb +22 -0
  279. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +28 -0
  280. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +28 -0
  281. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +5 -4
  282. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +5 -4
  283. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +5 -4
  284. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_release_collection.rb +2 -0
  285. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_revision_collection.rb +2 -0
  286. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +22 -0
  287. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_update_contract.rb +28 -0
  288. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/error_response.rb +4 -4
  289. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/error_response_body.rb +79 -0
  290. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  291. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  292. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  293. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  294. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  295. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  296. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_collection.rb +2 -0
  297. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_result_contract.rb +2 -2
  298. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/policy_content_format.rb +2 -0
  299. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/policy_contract.rb +2 -1
  300. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/schema_collection.rb +2 -0
  301. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/state.rb +19 -0
  302. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/product_api.rb +33 -24
  303. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management.rb +296 -0
  304. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api.rb +1144 -0
  305. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_diagnostic.rb +874 -0
  306. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_export.rb +147 -0
  307. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_issue.rb +762 -0
  308. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_issue_attachment.rb +814 -0
  309. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_issue_comment.rb +811 -0
  310. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb +357 -0
  311. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_operations.rb +222 -0
  312. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_service.rb +1914 -0
  313. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_operation.rb +905 -0
  314. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_operation_policy.rb +639 -0
  315. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_policy.rb +589 -0
  316. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_product.rb +272 -0
  317. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_release.rb +893 -0
  318. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_revisions.rb +280 -0
  319. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_schema.rb +738 -0
  320. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_version_set.rb +864 -0
  321. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/authorization_server.rb +819 -0
  322. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/backend.rb +931 -0
  323. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/certificate.rb +730 -0
  324. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/delegation_settings.rb +416 -0
  325. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/diagnostic.rb +812 -0
  326. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/email_template.rb +896 -0
  327. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/group.rb +839 -0
  328. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/group_user.rb +657 -0
  329. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/identity_provider.rb +796 -0
  330. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/logger.rb +819 -0
  331. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/access_information_contract.rb +80 -0
  332. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +48 -0
  333. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/additional_location.rb +131 -0
  334. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/always_log.rb +15 -0
  335. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_collection.rb +100 -0
  336. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_contract.rb +288 -0
  337. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_contract_properties.rb +222 -0
  338. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +313 -0
  339. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +57 -0
  340. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +179 -0
  341. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_export_result.rb +47 -0
  342. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +49 -0
  343. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
  344. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +322 -0
  345. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
  346. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +47 -0
  347. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +73 -0
  348. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
  349. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +81 -0
  350. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +442 -0
  351. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +60 -0
  352. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +77 -0
  353. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +431 -0
  354. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +72 -0
  355. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_release_collection.rb +100 -0
  356. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_release_contract.rb +110 -0
  357. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_collection.rb +100 -0
  358. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb +145 -0
  359. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +88 -0
  360. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +221 -0
  361. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_type.rb +16 -0
  362. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_update_contract.rb +249 -0
  363. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +98 -0
  364. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +133 -0
  365. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb +96 -0
  366. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +78 -0
  367. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +106 -0
  368. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/apim_resource.rb +91 -0
  369. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/async_operation_status.rb +18 -0
  370. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +48 -0
  371. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_method.rb +22 -0
  372. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
  373. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +309 -0
  374. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +211 -0
  375. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +309 -0
  376. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
  377. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +131 -0
  378. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_collection.rb +98 -0
  379. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_contract.rb +185 -0
  380. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +124 -0
  381. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_properties.rb +48 -0
  382. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
  383. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
  384. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +74 -0
  385. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +119 -0
  386. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +63 -0
  387. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +158 -0
  388. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +16 -0
  389. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/body_diagnostic_settings.rb +49 -0
  390. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_collection.rb +98 -0
  391. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_configuration.rb +85 -0
  392. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_contract.rb +98 -0
  393. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
  394. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
  395. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/client_authentication_method.rb +16 -0
  396. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/confirmation.rb +16 -0
  397. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +107 -0
  398. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
  399. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/content_format.rb +20 -0
  400. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
  401. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +98 -0
  402. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +123 -0
  403. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/email_template_collection.rb +98 -0
  404. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/email_template_contract.rb +147 -0
  405. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +83 -0
  406. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +107 -0
  407. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
  408. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/error_response.rb +79 -0
  409. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/error_response_body.rb +79 -0
  410. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/export_format.rb +17 -0
  411. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
  412. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/grant_type.rb +18 -0
  413. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_collection.rb +98 -0
  414. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_contract.rb +131 -0
  415. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_contract_properties.rb +104 -0
  416. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_create_parameters.rb +88 -0
  417. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_type.rb +17 -0
  418. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_update_parameters.rb +88 -0
  419. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/hostname_configuration.rb +139 -0
  420. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb +71 -0
  421. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/hostname_type.rb +18 -0
  422. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/http_message_diagnostic.rb +66 -0
  423. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +131 -0
  424. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +191 -0
  425. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_list.rb +99 -0
  426. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_type.rb +20 -0
  427. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +164 -0
  428. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  429. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  430. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  431. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  432. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  433. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  434. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/key_type.rb +16 -0
  435. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
  436. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/logger_contract.rb +133 -0
  437. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/logger_type.rb +16 -0
  438. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/logger_update_contract.rb +89 -0
  439. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
  440. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
  441. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb +61 -0
  442. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/notification_collection.rb +98 -0
  443. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/notification_contract.rb +100 -0
  444. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/notification_name.rb +21 -0
  445. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
  446. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +98 -0
  447. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +122 -0
  448. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
  449. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation.rb +80 -0
  450. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_collection.rb +100 -0
  451. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_contract.rb +185 -0
  452. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
  453. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +114 -0
  454. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
  455. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_result_contract.rb +134 -0
  456. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +69 -0
  457. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb +134 -0
  458. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_update_contract.rb +158 -0
  459. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
  460. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/pipeline_diagnostic_settings.rb +59 -0
  461. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_collection.rb +66 -0
  462. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_content_format.rb +18 -0
  463. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_contract.rb +87 -0
  464. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
  465. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +83 -0
  466. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +55 -0
  467. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +111 -0
  468. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +73 -0
  469. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +86 -0
  470. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_collection.rb +98 -0
  471. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_contract.rb +167 -0
  472. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +125 -0
  473. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_state.rb +16 -0
  474. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb +115 -0
  475. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_update_parameters.rb +140 -0
  476. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/property_collection.rb +98 -0
  477. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/property_contract.rb +130 -0
  478. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb +70 -0
  479. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
  480. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/protocol.rb +16 -0
  481. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
  482. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +104 -0
  483. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
  484. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +57 -0
  485. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +66 -0
  486. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +73 -0
  487. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +66 -0
  488. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +73 -0
  489. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +73 -0
  490. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/region_contract.rb +69 -0
  491. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/region_list_result.rb +109 -0
  492. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +46 -0
  493. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
  494. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/report_record_contract.rb +338 -0
  495. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/representation_contract.rb +106 -0
  496. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
  497. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/request_report_collection.rb +66 -0
  498. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +245 -0
  499. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/resource.rb +71 -0
  500. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/response_contract.rb +99 -0
  501. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/sampling_settings.rb +61 -0
  502. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/sampling_type.rb +15 -0
  503. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
  504. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/schema_collection.rb +100 -0
  505. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/schema_contract.rb +87 -0
  506. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/sku_type.rb +18 -0
  507. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/soap_api_type.rb +16 -0
  508. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/state.rb +19 -0
  509. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_collection.rb +98 -0
  510. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_contract.rb +244 -0
  511. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +128 -0
  512. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
  513. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_state.rb +20 -0
  514. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +146 -0
  515. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +47 -0
  516. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_collection.rb +98 -0
  517. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_contract.rb +77 -0
  518. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +50 -0
  519. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_description_collection.rb +98 -0
  520. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_description_contract.rb +114 -0
  521. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +72 -0
  522. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +109 -0
  523. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +86 -0
  524. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb +61 -0
  525. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/template_name.rb +28 -0
  526. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
  527. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +68 -0
  528. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
  529. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_collection.rb +98 -0
  530. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_contract.rb +179 -0
  531. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_create_parameters.rb +154 -0
  532. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +83 -0
  533. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_identity_collection.rb +109 -0
  534. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
  535. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_state.rb +18 -0
  536. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
  537. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
  538. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_update_parameters.rb +140 -0
  539. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/versioning_scheme.rb +17 -0
  540. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +76 -0
  541. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
  542. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/x509certificate_name.rb +57 -0
  543. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/module_definition.rb +9 -0
  544. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/network_status.rb +254 -0
  545. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/notification.rb +469 -0
  546. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/notification_recipient_email.rb +474 -0
  547. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/notification_recipient_user.rb +495 -0
  548. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/open_id_connect_provider.rb +807 -0
  549. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/operation_operations.rb +316 -0
  550. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/policy.rb +526 -0
  551. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/policy_snippets.rb +126 -0
  552. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product.rb +862 -0
  553. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_api.rb +654 -0
  554. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_group.rb +643 -0
  555. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_policy.rb +571 -0
  556. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_subscriptions.rb +312 -0
  557. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/property.rb +804 -0
  558. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +262 -0
  559. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/quota_by_period_keys.rb +261 -0
  560. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/regions.rb +230 -0
  561. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/reports.rb +1690 -0
  562. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/sign_in_settings.rb +416 -0
  563. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/sign_up_settings.rb +416 -0
  564. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/subscription.rb +1070 -0
  565. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tag.rb +3081 -0
  566. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tag_description.rb +787 -0
  567. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tag_resource.rb +356 -0
  568. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tenant_access.rb +401 -0
  569. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tenant_access_git.rb +291 -0
  570. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tenant_configuration.rb +607 -0
  571. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user.rb +1099 -0
  572. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user_group.rb +287 -0
  573. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user_identities.rb +242 -0
  574. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user_subscription.rb +312 -0
  575. data/lib/azure_mgmt_api_management.rb +4 -2
  576. data/lib/profiles/latest/modules/apimanagement_profile_module.rb +616 -558
  577. data/lib/version.rb +1 -1
  578. metadata +553 -4
@@ -0,0 +1,230 @@
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::V2018_06_01_preview
7
+ #
8
+ # ApiManagement Client
9
+ #
10
+ class Regions
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Regions 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 azure regions in which the service exists.
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 custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [Array<RegionContract>] operation results.
33
+ #
34
+ def list_by_service(resource_group_name, service_name, custom_headers:nil)
35
+ first_page = list_by_service_as_lazy(resource_group_name, service_name, custom_headers:custom_headers)
36
+ first_page.get_all_items
37
+ end
38
+
39
+ #
40
+ # Lists all azure regions in which the service exists.
41
+ #
42
+ # @param resource_group_name [String] The name of the resource group.
43
+ # @param service_name [String] The name of the API Management service.
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
+ #
49
+ def list_by_service_with_http_info(resource_group_name, service_name, custom_headers:nil)
50
+ list_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value!
51
+ end
52
+
53
+ #
54
+ # Lists all azure regions in which the service exists.
55
+ #
56
+ # @param resource_group_name [String] The name of the resource group.
57
+ # @param service_name [String] The name of the API Management service.
58
+ # @param [Hash{String => String}] A hash of custom headers that will be added
59
+ # to the HTTP request.
60
+ #
61
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
+ #
63
+ def list_by_service_async(resource_group_name, service_name, custom_headers:nil)
64
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
65
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
66
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
67
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
68
+ 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?
69
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
70
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
71
+
72
+
73
+ request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
+
76
+ # Set Headers
77
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
78
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
79
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions'
80
+
81
+ request_url = @base_url || @client.base_url
82
+
83
+ options = {
84
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
85
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
86
+ query_params: {'api-version' => @client.api_version},
87
+ headers: request_headers.merge(custom_headers || {}),
88
+ base_url: request_url
89
+ }
90
+ promise = @client.make_request_async(:get, path_template, options)
91
+
92
+ promise = promise.then do |result|
93
+ http_response = result.response
94
+ status_code = http_response.status
95
+ response_content = http_response.body
96
+ unless status_code == 200
97
+ error_model = JSON.load(response_content)
98
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
99
+ end
100
+
101
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
102
+ # Deserialize Response
103
+ if status_code == 200
104
+ begin
105
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
106
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegionListResult.mapper()
107
+ result.body = @client.deserialize(result_mapper, parsed_response)
108
+ rescue Exception => e
109
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
110
+ end
111
+ end
112
+
113
+ result
114
+ end
115
+
116
+ promise.execute
117
+ end
118
+
119
+ #
120
+ # Lists all azure regions in which the service exists.
121
+ #
122
+ # @param next_page_link [String] The NextLink from the previous successful call
123
+ # to List operation.
124
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
125
+ # will be added to the HTTP request.
126
+ #
127
+ # @return [RegionListResult] operation results.
128
+ #
129
+ def list_by_service_next(next_page_link, custom_headers:nil)
130
+ response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
131
+ response.body unless response.nil?
132
+ end
133
+
134
+ #
135
+ # Lists all azure regions in which the service exists.
136
+ #
137
+ # @param next_page_link [String] The NextLink from the previous successful call
138
+ # to List operation.
139
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
140
+ # will be added to the HTTP request.
141
+ #
142
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
143
+ #
144
+ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil)
145
+ list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
146
+ end
147
+
148
+ #
149
+ # Lists all azure regions in which the service exists.
150
+ #
151
+ # @param next_page_link [String] The NextLink from the previous successful call
152
+ # to List operation.
153
+ # @param [Hash{String => String}] A hash of custom headers that will be added
154
+ # to the HTTP request.
155
+ #
156
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
157
+ #
158
+ def list_by_service_next_async(next_page_link, custom_headers:nil)
159
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
160
+
161
+
162
+ request_headers = {}
163
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
164
+
165
+ # Set Headers
166
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
167
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
168
+ path_template = '{nextLink}'
169
+
170
+ request_url = @base_url || @client.base_url
171
+
172
+ options = {
173
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
174
+ skip_encoding_path_params: {'nextLink' => next_page_link},
175
+ headers: request_headers.merge(custom_headers || {}),
176
+ base_url: request_url
177
+ }
178
+ promise = @client.make_request_async(:get, path_template, options)
179
+
180
+ promise = promise.then do |result|
181
+ http_response = result.response
182
+ status_code = http_response.status
183
+ response_content = http_response.body
184
+ unless status_code == 200
185
+ error_model = JSON.load(response_content)
186
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
187
+ end
188
+
189
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
190
+ # Deserialize Response
191
+ if status_code == 200
192
+ begin
193
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
194
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegionListResult.mapper()
195
+ result.body = @client.deserialize(result_mapper, parsed_response)
196
+ rescue Exception => e
197
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
198
+ end
199
+ end
200
+
201
+ result
202
+ end
203
+
204
+ promise.execute
205
+ end
206
+
207
+ #
208
+ # Lists all azure regions in which the service exists.
209
+ #
210
+ # @param resource_group_name [String] The name of the resource group.
211
+ # @param service_name [String] The name of the API Management service.
212
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
213
+ # will be added to the HTTP request.
214
+ #
215
+ # @return [RegionListResult] which provide lazy access to pages of the
216
+ # response.
217
+ #
218
+ def list_by_service_as_lazy(resource_group_name, service_name, custom_headers:nil)
219
+ response = list_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value!
220
+ unless response.nil?
221
+ page = response.body
222
+ page.next_method = Proc.new do |next_page_link|
223
+ list_by_service_next_async(next_page_link, custom_headers:custom_headers)
224
+ end
225
+ page
226
+ end
227
+ end
228
+
229
+ end
230
+ end
@@ -0,0 +1,1690 @@
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::V2018_06_01_preview
7
+ #
8
+ # ApiManagement Client
9
+ #
10
+ class Reports
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Reports 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 report records by API.
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] The filter to apply on the operation.
30
+ # @param top [Integer] Number of records to return.
31
+ # @param skip [Integer] Number of records to skip.
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ # @return [Array<ReportRecordContract>] operation results.
36
+ #
37
+ def list_by_api(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
38
+ first_page = list_by_api_as_lazy(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers)
39
+ first_page.get_all_items
40
+ end
41
+
42
+ #
43
+ # Lists report records by API.
44
+ #
45
+ # @param resource_group_name [String] The name of the resource group.
46
+ # @param service_name [String] The name of the API Management service.
47
+ # @param filter [String] The filter to apply on the operation.
48
+ # @param top [Integer] Number of records to return.
49
+ # @param skip [Integer] Number of records to skip.
50
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
51
+ # will be added to the HTTP request.
52
+ #
53
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
+ #
55
+ def list_by_api_with_http_info(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
56
+ list_by_api_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
57
+ end
58
+
59
+ #
60
+ # Lists report records by API.
61
+ #
62
+ # @param resource_group_name [String] The name of the resource group.
63
+ # @param service_name [String] The name of the API Management service.
64
+ # @param filter [String] The filter to apply on the operation.
65
+ # @param top [Integer] Number of records to return.
66
+ # @param skip [Integer] Number of records to skip.
67
+ # @param [Hash{String => String}] A hash of custom headers that will be added
68
+ # to the HTTP request.
69
+ #
70
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
+ #
72
+ def list_by_api_async(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
73
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
74
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
75
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
76
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
77
+ 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?
78
+ fail ArgumentError, 'filter is nil' if filter.nil?
79
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
80
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
81
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
82
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
83
+
84
+
85
+ request_headers = {}
86
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
87
+
88
+ # Set Headers
89
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
90
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
91
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi'
92
+
93
+ request_url = @base_url || @client.base_url
94
+
95
+ options = {
96
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
97
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
98
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
99
+ headers: request_headers.merge(custom_headers || {}),
100
+ base_url: request_url
101
+ }
102
+ promise = @client.make_request_async(:get, path_template, options)
103
+
104
+ promise = promise.then do |result|
105
+ http_response = result.response
106
+ status_code = http_response.status
107
+ response_content = http_response.body
108
+ unless status_code == 200
109
+ error_model = JSON.load(response_content)
110
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
111
+ end
112
+
113
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
114
+ # Deserialize Response
115
+ if status_code == 200
116
+ begin
117
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
118
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
119
+ result.body = @client.deserialize(result_mapper, parsed_response)
120
+ rescue Exception => e
121
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
122
+ end
123
+ end
124
+
125
+ result
126
+ end
127
+
128
+ promise.execute
129
+ end
130
+
131
+ #
132
+ # Lists report records by User.
133
+ #
134
+ # @param resource_group_name [String] The name of the resource group.
135
+ # @param service_name [String] The name of the API Management service.
136
+ # @param filter [String] The filter to apply on the operation.
137
+ # @param top [Integer] Number of records to return.
138
+ # @param skip [Integer] Number of records to skip.
139
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
140
+ # will be added to the HTTP request.
141
+ #
142
+ # @return [Array<ReportRecordContract>] operation results.
143
+ #
144
+ def list_by_user(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
145
+ first_page = list_by_user_as_lazy(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers)
146
+ first_page.get_all_items
147
+ end
148
+
149
+ #
150
+ # Lists report records by User.
151
+ #
152
+ # @param resource_group_name [String] The name of the resource group.
153
+ # @param service_name [String] The name of the API Management service.
154
+ # @param filter [String] The filter to apply on the operation.
155
+ # @param top [Integer] Number of records to return.
156
+ # @param skip [Integer] Number of records to skip.
157
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
158
+ # will be added to the HTTP request.
159
+ #
160
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
161
+ #
162
+ def list_by_user_with_http_info(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
163
+ list_by_user_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
164
+ end
165
+
166
+ #
167
+ # Lists report records by User.
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 filter [String] The filter to apply on the operation.
172
+ # @param top [Integer] Number of records to return.
173
+ # @param skip [Integer] Number of records to skip.
174
+ # @param [Hash{String => String}] A hash of custom headers that will be added
175
+ # to the HTTP request.
176
+ #
177
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
178
+ #
179
+ def list_by_user_async(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
180
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
181
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
182
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
183
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
184
+ 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?
185
+ fail ArgumentError, 'filter is nil' if filter.nil?
186
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
187
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
188
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
189
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
190
+
191
+
192
+ request_headers = {}
193
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
194
+
195
+ # Set Headers
196
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
197
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
198
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser'
199
+
200
+ request_url = @base_url || @client.base_url
201
+
202
+ options = {
203
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
204
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
205
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
206
+ headers: request_headers.merge(custom_headers || {}),
207
+ base_url: request_url
208
+ }
209
+ promise = @client.make_request_async(:get, path_template, options)
210
+
211
+ promise = promise.then do |result|
212
+ http_response = result.response
213
+ status_code = http_response.status
214
+ response_content = http_response.body
215
+ unless status_code == 200
216
+ error_model = JSON.load(response_content)
217
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
218
+ end
219
+
220
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
221
+ # Deserialize Response
222
+ if status_code == 200
223
+ begin
224
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
225
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
226
+ result.body = @client.deserialize(result_mapper, parsed_response)
227
+ rescue Exception => e
228
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
229
+ end
230
+ end
231
+
232
+ result
233
+ end
234
+
235
+ promise.execute
236
+ end
237
+
238
+ #
239
+ # Lists report records by API Operations.
240
+ #
241
+ # @param resource_group_name [String] The name of the resource group.
242
+ # @param service_name [String] The name of the API Management service.
243
+ # @param filter [String] The filter to apply on the operation.
244
+ # @param top [Integer] Number of records to return.
245
+ # @param skip [Integer] Number of records to skip.
246
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
247
+ # will be added to the HTTP request.
248
+ #
249
+ # @return [Array<ReportRecordContract>] operation results.
250
+ #
251
+ def list_by_operation(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
252
+ first_page = list_by_operation_as_lazy(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers)
253
+ first_page.get_all_items
254
+ end
255
+
256
+ #
257
+ # Lists report records by API Operations.
258
+ #
259
+ # @param resource_group_name [String] The name of the resource group.
260
+ # @param service_name [String] The name of the API Management service.
261
+ # @param filter [String] The filter to apply on the operation.
262
+ # @param top [Integer] Number of records to return.
263
+ # @param skip [Integer] Number of records to skip.
264
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
265
+ # will be added to the HTTP request.
266
+ #
267
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
268
+ #
269
+ def list_by_operation_with_http_info(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
270
+ list_by_operation_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
271
+ end
272
+
273
+ #
274
+ # Lists report records by API Operations.
275
+ #
276
+ # @param resource_group_name [String] The name of the resource group.
277
+ # @param service_name [String] The name of the API Management service.
278
+ # @param filter [String] The filter to apply on the operation.
279
+ # @param top [Integer] Number of records to return.
280
+ # @param skip [Integer] Number of records to skip.
281
+ # @param [Hash{String => String}] A hash of custom headers that will be added
282
+ # to the HTTP request.
283
+ #
284
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
285
+ #
286
+ def list_by_operation_async(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
287
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
288
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
289
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
290
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
291
+ 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?
292
+ fail ArgumentError, 'filter is nil' if filter.nil?
293
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
294
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
295
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
296
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
297
+
298
+
299
+ request_headers = {}
300
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
301
+
302
+ # Set Headers
303
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
304
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
305
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation'
306
+
307
+ request_url = @base_url || @client.base_url
308
+
309
+ options = {
310
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
311
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
312
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
313
+ headers: request_headers.merge(custom_headers || {}),
314
+ base_url: request_url
315
+ }
316
+ promise = @client.make_request_async(:get, path_template, options)
317
+
318
+ promise = promise.then do |result|
319
+ http_response = result.response
320
+ status_code = http_response.status
321
+ response_content = http_response.body
322
+ unless status_code == 200
323
+ error_model = JSON.load(response_content)
324
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
325
+ end
326
+
327
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
328
+ # Deserialize Response
329
+ if status_code == 200
330
+ begin
331
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
332
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
333
+ result.body = @client.deserialize(result_mapper, parsed_response)
334
+ rescue Exception => e
335
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
336
+ end
337
+ end
338
+
339
+ result
340
+ end
341
+
342
+ promise.execute
343
+ end
344
+
345
+ #
346
+ # Lists report records by Product.
347
+ #
348
+ # @param resource_group_name [String] The name of the resource group.
349
+ # @param service_name [String] The name of the API Management service.
350
+ # @param filter [String] The filter to apply on the operation.
351
+ # @param top [Integer] Number of records to return.
352
+ # @param skip [Integer] Number of records to skip.
353
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
354
+ # will be added to the HTTP request.
355
+ #
356
+ # @return [Array<ReportRecordContract>] operation results.
357
+ #
358
+ def list_by_product(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
359
+ first_page = list_by_product_as_lazy(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers)
360
+ first_page.get_all_items
361
+ end
362
+
363
+ #
364
+ # Lists report records by Product.
365
+ #
366
+ # @param resource_group_name [String] The name of the resource group.
367
+ # @param service_name [String] The name of the API Management service.
368
+ # @param filter [String] The filter to apply on the operation.
369
+ # @param top [Integer] Number of records to return.
370
+ # @param skip [Integer] Number of records to skip.
371
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
372
+ # will be added to the HTTP request.
373
+ #
374
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
375
+ #
376
+ def list_by_product_with_http_info(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
377
+ list_by_product_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
378
+ end
379
+
380
+ #
381
+ # Lists report records by Product.
382
+ #
383
+ # @param resource_group_name [String] The name of the resource group.
384
+ # @param service_name [String] The name of the API Management service.
385
+ # @param filter [String] The filter to apply on the operation.
386
+ # @param top [Integer] Number of records to return.
387
+ # @param skip [Integer] Number of records to skip.
388
+ # @param [Hash{String => String}] A hash of custom headers that will be added
389
+ # to the HTTP request.
390
+ #
391
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
392
+ #
393
+ def list_by_product_async(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
394
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
395
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
396
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
397
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
398
+ 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?
399
+ fail ArgumentError, 'filter is nil' if filter.nil?
400
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
401
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
402
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
403
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
404
+
405
+
406
+ request_headers = {}
407
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
408
+
409
+ # Set Headers
410
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
411
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
412
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct'
413
+
414
+ request_url = @base_url || @client.base_url
415
+
416
+ options = {
417
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
418
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
419
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
420
+ headers: request_headers.merge(custom_headers || {}),
421
+ base_url: request_url
422
+ }
423
+ promise = @client.make_request_async(:get, path_template, options)
424
+
425
+ promise = promise.then do |result|
426
+ http_response = result.response
427
+ status_code = http_response.status
428
+ response_content = http_response.body
429
+ unless status_code == 200
430
+ error_model = JSON.load(response_content)
431
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
432
+ end
433
+
434
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
435
+ # Deserialize Response
436
+ if status_code == 200
437
+ begin
438
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
439
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
440
+ result.body = @client.deserialize(result_mapper, parsed_response)
441
+ rescue Exception => e
442
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
443
+ end
444
+ end
445
+
446
+ result
447
+ end
448
+
449
+ promise.execute
450
+ end
451
+
452
+ #
453
+ # Lists report records by GeoGraphy.
454
+ #
455
+ # @param resource_group_name [String] The name of the resource group.
456
+ # @param service_name [String] The name of the API Management service.
457
+ # @param filter [String] The filter to apply on the operation.
458
+ # @param top [Integer] Number of records to return.
459
+ # @param skip [Integer] Number of records to skip.
460
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
461
+ # will be added to the HTTP request.
462
+ #
463
+ # @return [Array<ReportRecordContract>] operation results.
464
+ #
465
+ def list_by_geo(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
466
+ first_page = list_by_geo_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
467
+ first_page.get_all_items
468
+ end
469
+
470
+ #
471
+ # Lists report records by GeoGraphy.
472
+ #
473
+ # @param resource_group_name [String] The name of the resource group.
474
+ # @param service_name [String] The name of the API Management service.
475
+ # @param filter [String] The filter to apply on the operation.
476
+ # @param top [Integer] Number of records to return.
477
+ # @param skip [Integer] Number of records to skip.
478
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
479
+ # will be added to the HTTP request.
480
+ #
481
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
482
+ #
483
+ def list_by_geo_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
484
+ list_by_geo_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
485
+ end
486
+
487
+ #
488
+ # Lists report records by GeoGraphy.
489
+ #
490
+ # @param resource_group_name [String] The name of the resource group.
491
+ # @param service_name [String] The name of the API Management service.
492
+ # @param filter [String] The filter to apply on the operation.
493
+ # @param top [Integer] Number of records to return.
494
+ # @param skip [Integer] Number of records to skip.
495
+ # @param [Hash{String => String}] A hash of custom headers that will be added
496
+ # to the HTTP request.
497
+ #
498
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
499
+ #
500
+ def list_by_geo_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
501
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
502
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
503
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
504
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
505
+ 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?
506
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
507
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
508
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
509
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
510
+
511
+
512
+ request_headers = {}
513
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
514
+
515
+ # Set Headers
516
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
517
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
518
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo'
519
+
520
+ request_url = @base_url || @client.base_url
521
+
522
+ options = {
523
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
524
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
525
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
526
+ headers: request_headers.merge(custom_headers || {}),
527
+ base_url: request_url
528
+ }
529
+ promise = @client.make_request_async(:get, path_template, options)
530
+
531
+ promise = promise.then do |result|
532
+ http_response = result.response
533
+ status_code = http_response.status
534
+ response_content = http_response.body
535
+ unless status_code == 200
536
+ error_model = JSON.load(response_content)
537
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
538
+ end
539
+
540
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
541
+ # Deserialize Response
542
+ if status_code == 200
543
+ begin
544
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
545
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
546
+ result.body = @client.deserialize(result_mapper, parsed_response)
547
+ rescue Exception => e
548
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
549
+ end
550
+ end
551
+
552
+ result
553
+ end
554
+
555
+ promise.execute
556
+ end
557
+
558
+ #
559
+ # Lists report records by subscription.
560
+ #
561
+ # @param resource_group_name [String] The name of the resource group.
562
+ # @param service_name [String] The name of the API Management service.
563
+ # @param filter [String] The filter to apply on the operation.
564
+ # @param top [Integer] Number of records to return.
565
+ # @param skip [Integer] Number of records to skip.
566
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
567
+ # will be added to the HTTP request.
568
+ #
569
+ # @return [Array<ReportRecordContract>] operation results.
570
+ #
571
+ def list_by_subscription(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
572
+ first_page = list_by_subscription_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
573
+ first_page.get_all_items
574
+ end
575
+
576
+ #
577
+ # Lists report records by subscription.
578
+ #
579
+ # @param resource_group_name [String] The name of the resource group.
580
+ # @param service_name [String] The name of the API Management service.
581
+ # @param filter [String] The filter to apply on the operation.
582
+ # @param top [Integer] Number of records to return.
583
+ # @param skip [Integer] Number of records to skip.
584
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
585
+ # will be added to the HTTP request.
586
+ #
587
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
588
+ #
589
+ def list_by_subscription_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
590
+ list_by_subscription_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
591
+ end
592
+
593
+ #
594
+ # Lists report records by subscription.
595
+ #
596
+ # @param resource_group_name [String] The name of the resource group.
597
+ # @param service_name [String] The name of the API Management service.
598
+ # @param filter [String] The filter to apply on the operation.
599
+ # @param top [Integer] Number of records to return.
600
+ # @param skip [Integer] Number of records to skip.
601
+ # @param [Hash{String => String}] A hash of custom headers that will be added
602
+ # to the HTTP request.
603
+ #
604
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
605
+ #
606
+ def list_by_subscription_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
607
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
608
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
609
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
610
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
611
+ 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?
612
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
613
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
614
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
615
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
616
+
617
+
618
+ request_headers = {}
619
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
620
+
621
+ # Set Headers
622
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
623
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
624
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription'
625
+
626
+ request_url = @base_url || @client.base_url
627
+
628
+ options = {
629
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
630
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
631
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
632
+ headers: request_headers.merge(custom_headers || {}),
633
+ base_url: request_url
634
+ }
635
+ promise = @client.make_request_async(:get, path_template, options)
636
+
637
+ promise = promise.then do |result|
638
+ http_response = result.response
639
+ status_code = http_response.status
640
+ response_content = http_response.body
641
+ unless status_code == 200
642
+ error_model = JSON.load(response_content)
643
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
644
+ end
645
+
646
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
647
+ # Deserialize Response
648
+ if status_code == 200
649
+ begin
650
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
651
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
652
+ result.body = @client.deserialize(result_mapper, parsed_response)
653
+ rescue Exception => e
654
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
655
+ end
656
+ end
657
+
658
+ result
659
+ end
660
+
661
+ promise.execute
662
+ end
663
+
664
+ #
665
+ # Lists report records by Time.
666
+ #
667
+ # @param resource_group_name [String] The name of the resource group.
668
+ # @param service_name [String] The name of the API Management service.
669
+ # @param interval [Duration] By time interval. Interval must be multiple of 15
670
+ # minutes and may not be zero. The value should be in ISO 8601 format
671
+ # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
672
+ # convert TimeSpan to a valid interval string: XmlConvert.ToString(new
673
+ # TimeSpan(hours, minutes, secconds))
674
+ # @param filter [String] The filter to apply on the operation.
675
+ # @param top [Integer] Number of records to return.
676
+ # @param skip [Integer] Number of records to skip.
677
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
678
+ # will be added to the HTTP request.
679
+ #
680
+ # @return [Array<ReportRecordContract>] operation results.
681
+ #
682
+ def list_by_time(resource_group_name, service_name, interval, filter:nil, top:nil, skip:nil, custom_headers:nil)
683
+ first_page = list_by_time_as_lazy(resource_group_name, service_name, interval, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
684
+ first_page.get_all_items
685
+ end
686
+
687
+ #
688
+ # Lists report records by Time.
689
+ #
690
+ # @param resource_group_name [String] The name of the resource group.
691
+ # @param service_name [String] The name of the API Management service.
692
+ # @param interval [Duration] By time interval. Interval must be multiple of 15
693
+ # minutes and may not be zero. The value should be in ISO 8601 format
694
+ # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
695
+ # convert TimeSpan to a valid interval string: XmlConvert.ToString(new
696
+ # TimeSpan(hours, minutes, secconds))
697
+ # @param filter [String] The filter to apply on the operation.
698
+ # @param top [Integer] Number of records to return.
699
+ # @param skip [Integer] Number of records to skip.
700
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
701
+ # will be added to the HTTP request.
702
+ #
703
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
704
+ #
705
+ def list_by_time_with_http_info(resource_group_name, service_name, interval, filter:nil, top:nil, skip:nil, custom_headers:nil)
706
+ list_by_time_async(resource_group_name, service_name, interval, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
707
+ end
708
+
709
+ #
710
+ # Lists report records by Time.
711
+ #
712
+ # @param resource_group_name [String] The name of the resource group.
713
+ # @param service_name [String] The name of the API Management service.
714
+ # @param interval [Duration] By time interval. Interval must be multiple of 15
715
+ # minutes and may not be zero. The value should be in ISO 8601 format
716
+ # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
717
+ # convert TimeSpan to a valid interval string: XmlConvert.ToString(new
718
+ # TimeSpan(hours, minutes, secconds))
719
+ # @param filter [String] The filter to apply on the operation.
720
+ # @param top [Integer] Number of records to return.
721
+ # @param skip [Integer] Number of records to skip.
722
+ # @param [Hash{String => String}] A hash of custom headers that will be added
723
+ # to the HTTP request.
724
+ #
725
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
726
+ #
727
+ def list_by_time_async(resource_group_name, service_name, interval, filter:nil, top:nil, skip:nil, custom_headers:nil)
728
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
729
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
730
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
731
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
732
+ 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?
733
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
734
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
735
+ fail ArgumentError, 'interval is nil' if interval.nil?
736
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
737
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
738
+
739
+
740
+ request_headers = {}
741
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
742
+
743
+ # Set Headers
744
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
745
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
746
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime'
747
+
748
+ request_url = @base_url || @client.base_url
749
+
750
+ options = {
751
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
752
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
753
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'interval' => interval,'api-version' => @client.api_version},
754
+ headers: request_headers.merge(custom_headers || {}),
755
+ base_url: request_url
756
+ }
757
+ promise = @client.make_request_async(:get, path_template, options)
758
+
759
+ promise = promise.then do |result|
760
+ http_response = result.response
761
+ status_code = http_response.status
762
+ response_content = http_response.body
763
+ unless status_code == 200
764
+ error_model = JSON.load(response_content)
765
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
766
+ end
767
+
768
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
769
+ # Deserialize Response
770
+ if status_code == 200
771
+ begin
772
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
773
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
774
+ result.body = @client.deserialize(result_mapper, parsed_response)
775
+ rescue Exception => e
776
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
777
+ end
778
+ end
779
+
780
+ result
781
+ end
782
+
783
+ promise.execute
784
+ end
785
+
786
+ #
787
+ # Lists report records by Request.
788
+ #
789
+ # @param resource_group_name [String] The name of the resource group.
790
+ # @param service_name [String] The name of the API Management service.
791
+ # @param filter [String] The filter to apply on the operation.
792
+ # @param top [Integer] Number of records to return.
793
+ # @param skip [Integer] Number of records to skip.
794
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
795
+ # will be added to the HTTP request.
796
+ #
797
+ # @return [RequestReportCollection] operation results.
798
+ #
799
+ def list_by_request(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
800
+ response = list_by_request_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
801
+ response.body unless response.nil?
802
+ end
803
+
804
+ #
805
+ # Lists report records by Request.
806
+ #
807
+ # @param resource_group_name [String] The name of the resource group.
808
+ # @param service_name [String] The name of the API Management service.
809
+ # @param filter [String] The filter to apply on the operation.
810
+ # @param top [Integer] Number of records to return.
811
+ # @param skip [Integer] Number of records to skip.
812
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
813
+ # will be added to the HTTP request.
814
+ #
815
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
816
+ #
817
+ def list_by_request_with_http_info(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
818
+ list_by_request_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
819
+ end
820
+
821
+ #
822
+ # Lists report records by Request.
823
+ #
824
+ # @param resource_group_name [String] The name of the resource group.
825
+ # @param service_name [String] The name of the API Management service.
826
+ # @param filter [String] The filter to apply on the operation.
827
+ # @param top [Integer] Number of records to return.
828
+ # @param skip [Integer] Number of records to skip.
829
+ # @param [Hash{String => String}] A hash of custom headers that will be added
830
+ # to the HTTP request.
831
+ #
832
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
833
+ #
834
+ def list_by_request_async(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
835
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
836
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
837
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
838
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
839
+ 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?
840
+ fail ArgumentError, 'filter is nil' if filter.nil?
841
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
842
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
843
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
844
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
845
+
846
+
847
+ request_headers = {}
848
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
849
+
850
+ # Set Headers
851
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
852
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
853
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest'
854
+
855
+ request_url = @base_url || @client.base_url
856
+
857
+ options = {
858
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
859
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
860
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
861
+ headers: request_headers.merge(custom_headers || {}),
862
+ base_url: request_url
863
+ }
864
+ promise = @client.make_request_async(:get, path_template, options)
865
+
866
+ promise = promise.then do |result|
867
+ http_response = result.response
868
+ status_code = http_response.status
869
+ response_content = http_response.body
870
+ unless status_code == 200
871
+ error_model = JSON.load(response_content)
872
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
873
+ end
874
+
875
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
876
+ # Deserialize Response
877
+ if status_code == 200
878
+ begin
879
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
880
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportCollection.mapper()
881
+ result.body = @client.deserialize(result_mapper, parsed_response)
882
+ rescue Exception => e
883
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
884
+ end
885
+ end
886
+
887
+ result
888
+ end
889
+
890
+ promise.execute
891
+ end
892
+
893
+ #
894
+ # Lists report records by API.
895
+ #
896
+ # @param next_page_link [String] The NextLink from the previous successful call
897
+ # to List operation.
898
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
899
+ # will be added to the HTTP request.
900
+ #
901
+ # @return [ReportCollection] operation results.
902
+ #
903
+ def list_by_api_next(next_page_link, custom_headers:nil)
904
+ response = list_by_api_next_async(next_page_link, custom_headers:custom_headers).value!
905
+ response.body unless response.nil?
906
+ end
907
+
908
+ #
909
+ # Lists report records by API.
910
+ #
911
+ # @param next_page_link [String] The NextLink from the previous successful call
912
+ # to List operation.
913
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
914
+ # will be added to the HTTP request.
915
+ #
916
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
917
+ #
918
+ def list_by_api_next_with_http_info(next_page_link, custom_headers:nil)
919
+ list_by_api_next_async(next_page_link, custom_headers:custom_headers).value!
920
+ end
921
+
922
+ #
923
+ # Lists report records by API.
924
+ #
925
+ # @param next_page_link [String] The NextLink from the previous successful call
926
+ # to List operation.
927
+ # @param [Hash{String => String}] A hash of custom headers that will be added
928
+ # to the HTTP request.
929
+ #
930
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
931
+ #
932
+ def list_by_api_next_async(next_page_link, custom_headers:nil)
933
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
934
+
935
+
936
+ request_headers = {}
937
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
938
+
939
+ # Set Headers
940
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
941
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
942
+ path_template = '{nextLink}'
943
+
944
+ request_url = @base_url || @client.base_url
945
+
946
+ options = {
947
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
948
+ skip_encoding_path_params: {'nextLink' => next_page_link},
949
+ headers: request_headers.merge(custom_headers || {}),
950
+ base_url: request_url
951
+ }
952
+ promise = @client.make_request_async(:get, path_template, options)
953
+
954
+ promise = promise.then do |result|
955
+ http_response = result.response
956
+ status_code = http_response.status
957
+ response_content = http_response.body
958
+ unless status_code == 200
959
+ error_model = JSON.load(response_content)
960
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
961
+ end
962
+
963
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
964
+ # Deserialize Response
965
+ if status_code == 200
966
+ begin
967
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
968
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
969
+ result.body = @client.deserialize(result_mapper, parsed_response)
970
+ rescue Exception => e
971
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
972
+ end
973
+ end
974
+
975
+ result
976
+ end
977
+
978
+ promise.execute
979
+ end
980
+
981
+ #
982
+ # Lists report records by User.
983
+ #
984
+ # @param next_page_link [String] The NextLink from the previous successful call
985
+ # to List operation.
986
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
987
+ # will be added to the HTTP request.
988
+ #
989
+ # @return [ReportCollection] operation results.
990
+ #
991
+ def list_by_user_next(next_page_link, custom_headers:nil)
992
+ response = list_by_user_next_async(next_page_link, custom_headers:custom_headers).value!
993
+ response.body unless response.nil?
994
+ end
995
+
996
+ #
997
+ # Lists report records by User.
998
+ #
999
+ # @param next_page_link [String] The NextLink from the previous successful call
1000
+ # to List operation.
1001
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1002
+ # will be added to the HTTP request.
1003
+ #
1004
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1005
+ #
1006
+ def list_by_user_next_with_http_info(next_page_link, custom_headers:nil)
1007
+ list_by_user_next_async(next_page_link, custom_headers:custom_headers).value!
1008
+ end
1009
+
1010
+ #
1011
+ # Lists report records by User.
1012
+ #
1013
+ # @param next_page_link [String] The NextLink from the previous successful call
1014
+ # to List operation.
1015
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1016
+ # to the HTTP request.
1017
+ #
1018
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1019
+ #
1020
+ def list_by_user_next_async(next_page_link, custom_headers:nil)
1021
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1022
+
1023
+
1024
+ request_headers = {}
1025
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1026
+
1027
+ # Set Headers
1028
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1029
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1030
+ path_template = '{nextLink}'
1031
+
1032
+ request_url = @base_url || @client.base_url
1033
+
1034
+ options = {
1035
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1036
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1037
+ headers: request_headers.merge(custom_headers || {}),
1038
+ base_url: request_url
1039
+ }
1040
+ promise = @client.make_request_async(:get, path_template, options)
1041
+
1042
+ promise = promise.then do |result|
1043
+ http_response = result.response
1044
+ status_code = http_response.status
1045
+ response_content = http_response.body
1046
+ unless status_code == 200
1047
+ error_model = JSON.load(response_content)
1048
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1049
+ end
1050
+
1051
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1052
+ # Deserialize Response
1053
+ if status_code == 200
1054
+ begin
1055
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1056
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
1057
+ result.body = @client.deserialize(result_mapper, parsed_response)
1058
+ rescue Exception => e
1059
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1060
+ end
1061
+ end
1062
+
1063
+ result
1064
+ end
1065
+
1066
+ promise.execute
1067
+ end
1068
+
1069
+ #
1070
+ # Lists report records by API Operations.
1071
+ #
1072
+ # @param next_page_link [String] The NextLink from the previous successful call
1073
+ # to List operation.
1074
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1075
+ # will be added to the HTTP request.
1076
+ #
1077
+ # @return [ReportCollection] operation results.
1078
+ #
1079
+ def list_by_operation_next(next_page_link, custom_headers:nil)
1080
+ response = list_by_operation_next_async(next_page_link, custom_headers:custom_headers).value!
1081
+ response.body unless response.nil?
1082
+ end
1083
+
1084
+ #
1085
+ # Lists report records by API Operations.
1086
+ #
1087
+ # @param next_page_link [String] The NextLink from the previous successful call
1088
+ # to List operation.
1089
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1090
+ # will be added to the HTTP request.
1091
+ #
1092
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1093
+ #
1094
+ def list_by_operation_next_with_http_info(next_page_link, custom_headers:nil)
1095
+ list_by_operation_next_async(next_page_link, custom_headers:custom_headers).value!
1096
+ end
1097
+
1098
+ #
1099
+ # Lists report records by API Operations.
1100
+ #
1101
+ # @param next_page_link [String] The NextLink from the previous successful call
1102
+ # to List operation.
1103
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1104
+ # to the HTTP request.
1105
+ #
1106
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1107
+ #
1108
+ def list_by_operation_next_async(next_page_link, custom_headers:nil)
1109
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1110
+
1111
+
1112
+ request_headers = {}
1113
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1114
+
1115
+ # Set Headers
1116
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1117
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1118
+ path_template = '{nextLink}'
1119
+
1120
+ request_url = @base_url || @client.base_url
1121
+
1122
+ options = {
1123
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1124
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1125
+ headers: request_headers.merge(custom_headers || {}),
1126
+ base_url: request_url
1127
+ }
1128
+ promise = @client.make_request_async(:get, path_template, options)
1129
+
1130
+ promise = promise.then do |result|
1131
+ http_response = result.response
1132
+ status_code = http_response.status
1133
+ response_content = http_response.body
1134
+ unless status_code == 200
1135
+ error_model = JSON.load(response_content)
1136
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1137
+ end
1138
+
1139
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1140
+ # Deserialize Response
1141
+ if status_code == 200
1142
+ begin
1143
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1144
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
1145
+ result.body = @client.deserialize(result_mapper, parsed_response)
1146
+ rescue Exception => e
1147
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1148
+ end
1149
+ end
1150
+
1151
+ result
1152
+ end
1153
+
1154
+ promise.execute
1155
+ end
1156
+
1157
+ #
1158
+ # Lists report records by Product.
1159
+ #
1160
+ # @param next_page_link [String] The NextLink from the previous successful call
1161
+ # to List operation.
1162
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1163
+ # will be added to the HTTP request.
1164
+ #
1165
+ # @return [ReportCollection] operation results.
1166
+ #
1167
+ def list_by_product_next(next_page_link, custom_headers:nil)
1168
+ response = list_by_product_next_async(next_page_link, custom_headers:custom_headers).value!
1169
+ response.body unless response.nil?
1170
+ end
1171
+
1172
+ #
1173
+ # Lists report records by Product.
1174
+ #
1175
+ # @param next_page_link [String] The NextLink from the previous successful call
1176
+ # to List operation.
1177
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1178
+ # will be added to the HTTP request.
1179
+ #
1180
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1181
+ #
1182
+ def list_by_product_next_with_http_info(next_page_link, custom_headers:nil)
1183
+ list_by_product_next_async(next_page_link, custom_headers:custom_headers).value!
1184
+ end
1185
+
1186
+ #
1187
+ # Lists report records by Product.
1188
+ #
1189
+ # @param next_page_link [String] The NextLink from the previous successful call
1190
+ # to List operation.
1191
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1192
+ # to the HTTP request.
1193
+ #
1194
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1195
+ #
1196
+ def list_by_product_next_async(next_page_link, custom_headers:nil)
1197
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1198
+
1199
+
1200
+ request_headers = {}
1201
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1202
+
1203
+ # Set Headers
1204
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1205
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1206
+ path_template = '{nextLink}'
1207
+
1208
+ request_url = @base_url || @client.base_url
1209
+
1210
+ options = {
1211
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1212
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1213
+ headers: request_headers.merge(custom_headers || {}),
1214
+ base_url: request_url
1215
+ }
1216
+ promise = @client.make_request_async(:get, path_template, options)
1217
+
1218
+ promise = promise.then do |result|
1219
+ http_response = result.response
1220
+ status_code = http_response.status
1221
+ response_content = http_response.body
1222
+ unless status_code == 200
1223
+ error_model = JSON.load(response_content)
1224
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1225
+ end
1226
+
1227
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1228
+ # Deserialize Response
1229
+ if status_code == 200
1230
+ begin
1231
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1232
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
1233
+ result.body = @client.deserialize(result_mapper, parsed_response)
1234
+ rescue Exception => e
1235
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1236
+ end
1237
+ end
1238
+
1239
+ result
1240
+ end
1241
+
1242
+ promise.execute
1243
+ end
1244
+
1245
+ #
1246
+ # Lists report records by GeoGraphy.
1247
+ #
1248
+ # @param next_page_link [String] The NextLink from the previous successful call
1249
+ # to List operation.
1250
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1251
+ # will be added to the HTTP request.
1252
+ #
1253
+ # @return [ReportCollection] operation results.
1254
+ #
1255
+ def list_by_geo_next(next_page_link, custom_headers:nil)
1256
+ response = list_by_geo_next_async(next_page_link, custom_headers:custom_headers).value!
1257
+ response.body unless response.nil?
1258
+ end
1259
+
1260
+ #
1261
+ # Lists report records by GeoGraphy.
1262
+ #
1263
+ # @param next_page_link [String] The NextLink from the previous successful call
1264
+ # to List operation.
1265
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1266
+ # will be added to the HTTP request.
1267
+ #
1268
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1269
+ #
1270
+ def list_by_geo_next_with_http_info(next_page_link, custom_headers:nil)
1271
+ list_by_geo_next_async(next_page_link, custom_headers:custom_headers).value!
1272
+ end
1273
+
1274
+ #
1275
+ # Lists report records by GeoGraphy.
1276
+ #
1277
+ # @param next_page_link [String] The NextLink from the previous successful call
1278
+ # to List operation.
1279
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1280
+ # to the HTTP request.
1281
+ #
1282
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1283
+ #
1284
+ def list_by_geo_next_async(next_page_link, custom_headers:nil)
1285
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1286
+
1287
+
1288
+ request_headers = {}
1289
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1290
+
1291
+ # Set Headers
1292
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1293
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1294
+ path_template = '{nextLink}'
1295
+
1296
+ request_url = @base_url || @client.base_url
1297
+
1298
+ options = {
1299
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1300
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1301
+ headers: request_headers.merge(custom_headers || {}),
1302
+ base_url: request_url
1303
+ }
1304
+ promise = @client.make_request_async(:get, path_template, options)
1305
+
1306
+ promise = promise.then do |result|
1307
+ http_response = result.response
1308
+ status_code = http_response.status
1309
+ response_content = http_response.body
1310
+ unless status_code == 200
1311
+ error_model = JSON.load(response_content)
1312
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1313
+ end
1314
+
1315
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1316
+ # Deserialize Response
1317
+ if status_code == 200
1318
+ begin
1319
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1320
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
1321
+ result.body = @client.deserialize(result_mapper, parsed_response)
1322
+ rescue Exception => e
1323
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1324
+ end
1325
+ end
1326
+
1327
+ result
1328
+ end
1329
+
1330
+ promise.execute
1331
+ end
1332
+
1333
+ #
1334
+ # Lists report records by subscription.
1335
+ #
1336
+ # @param next_page_link [String] The NextLink from the previous successful call
1337
+ # to List operation.
1338
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1339
+ # will be added to the HTTP request.
1340
+ #
1341
+ # @return [ReportCollection] operation results.
1342
+ #
1343
+ def list_by_subscription_next(next_page_link, custom_headers:nil)
1344
+ response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1345
+ response.body unless response.nil?
1346
+ end
1347
+
1348
+ #
1349
+ # Lists report records by subscription.
1350
+ #
1351
+ # @param next_page_link [String] The NextLink from the previous successful call
1352
+ # to List operation.
1353
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1354
+ # will be added to the HTTP request.
1355
+ #
1356
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1357
+ #
1358
+ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
1359
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1360
+ end
1361
+
1362
+ #
1363
+ # Lists report records by subscription.
1364
+ #
1365
+ # @param next_page_link [String] The NextLink from the previous successful call
1366
+ # to List operation.
1367
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1368
+ # to the HTTP request.
1369
+ #
1370
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1371
+ #
1372
+ def list_by_subscription_next_async(next_page_link, custom_headers:nil)
1373
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1374
+
1375
+
1376
+ request_headers = {}
1377
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1378
+
1379
+ # Set Headers
1380
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1381
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1382
+ path_template = '{nextLink}'
1383
+
1384
+ request_url = @base_url || @client.base_url
1385
+
1386
+ options = {
1387
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1388
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1389
+ headers: request_headers.merge(custom_headers || {}),
1390
+ base_url: request_url
1391
+ }
1392
+ promise = @client.make_request_async(:get, path_template, options)
1393
+
1394
+ promise = promise.then do |result|
1395
+ http_response = result.response
1396
+ status_code = http_response.status
1397
+ response_content = http_response.body
1398
+ unless status_code == 200
1399
+ error_model = JSON.load(response_content)
1400
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1401
+ end
1402
+
1403
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1404
+ # Deserialize Response
1405
+ if status_code == 200
1406
+ begin
1407
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1408
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
1409
+ result.body = @client.deserialize(result_mapper, parsed_response)
1410
+ rescue Exception => e
1411
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1412
+ end
1413
+ end
1414
+
1415
+ result
1416
+ end
1417
+
1418
+ promise.execute
1419
+ end
1420
+
1421
+ #
1422
+ # Lists report records by Time.
1423
+ #
1424
+ # @param next_page_link [String] The NextLink from the previous successful call
1425
+ # to List operation.
1426
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1427
+ # will be added to the HTTP request.
1428
+ #
1429
+ # @return [ReportCollection] operation results.
1430
+ #
1431
+ def list_by_time_next(next_page_link, custom_headers:nil)
1432
+ response = list_by_time_next_async(next_page_link, custom_headers:custom_headers).value!
1433
+ response.body unless response.nil?
1434
+ end
1435
+
1436
+ #
1437
+ # Lists report records by Time.
1438
+ #
1439
+ # @param next_page_link [String] The NextLink from the previous successful call
1440
+ # to List operation.
1441
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1442
+ # will be added to the HTTP request.
1443
+ #
1444
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1445
+ #
1446
+ def list_by_time_next_with_http_info(next_page_link, custom_headers:nil)
1447
+ list_by_time_next_async(next_page_link, custom_headers:custom_headers).value!
1448
+ end
1449
+
1450
+ #
1451
+ # Lists report records by Time.
1452
+ #
1453
+ # @param next_page_link [String] The NextLink from the previous successful call
1454
+ # to List operation.
1455
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1456
+ # to the HTTP request.
1457
+ #
1458
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1459
+ #
1460
+ def list_by_time_next_async(next_page_link, custom_headers:nil)
1461
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1462
+
1463
+
1464
+ request_headers = {}
1465
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1466
+
1467
+ # Set Headers
1468
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1469
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1470
+ path_template = '{nextLink}'
1471
+
1472
+ request_url = @base_url || @client.base_url
1473
+
1474
+ options = {
1475
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1476
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1477
+ headers: request_headers.merge(custom_headers || {}),
1478
+ base_url: request_url
1479
+ }
1480
+ promise = @client.make_request_async(:get, path_template, options)
1481
+
1482
+ promise = promise.then do |result|
1483
+ http_response = result.response
1484
+ status_code = http_response.status
1485
+ response_content = http_response.body
1486
+ unless status_code == 200
1487
+ error_model = JSON.load(response_content)
1488
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1489
+ end
1490
+
1491
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1492
+ # Deserialize Response
1493
+ if status_code == 200
1494
+ begin
1495
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1496
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection.mapper()
1497
+ result.body = @client.deserialize(result_mapper, parsed_response)
1498
+ rescue Exception => e
1499
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1500
+ end
1501
+ end
1502
+
1503
+ result
1504
+ end
1505
+
1506
+ promise.execute
1507
+ end
1508
+
1509
+ #
1510
+ # Lists report records by API.
1511
+ #
1512
+ # @param resource_group_name [String] The name of the resource group.
1513
+ # @param service_name [String] The name of the API Management service.
1514
+ # @param filter [String] The filter to apply on the operation.
1515
+ # @param top [Integer] Number of records to return.
1516
+ # @param skip [Integer] Number of records to skip.
1517
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1518
+ # will be added to the HTTP request.
1519
+ #
1520
+ # @return [ReportCollection] which provide lazy access to pages of the
1521
+ # response.
1522
+ #
1523
+ def list_by_api_as_lazy(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
1524
+ response = list_by_api_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
1525
+ unless response.nil?
1526
+ page = response.body
1527
+ page.next_method = Proc.new do |next_page_link|
1528
+ list_by_api_next_async(next_page_link, custom_headers:custom_headers)
1529
+ end
1530
+ page
1531
+ end
1532
+ end
1533
+
1534
+ #
1535
+ # Lists report records by User.
1536
+ #
1537
+ # @param resource_group_name [String] The name of the resource group.
1538
+ # @param service_name [String] The name of the API Management service.
1539
+ # @param filter [String] The filter to apply on the operation.
1540
+ # @param top [Integer] Number of records to return.
1541
+ # @param skip [Integer] Number of records to skip.
1542
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1543
+ # will be added to the HTTP request.
1544
+ #
1545
+ # @return [ReportCollection] which provide lazy access to pages of the
1546
+ # response.
1547
+ #
1548
+ def list_by_user_as_lazy(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
1549
+ response = list_by_user_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
1550
+ unless response.nil?
1551
+ page = response.body
1552
+ page.next_method = Proc.new do |next_page_link|
1553
+ list_by_user_next_async(next_page_link, custom_headers:custom_headers)
1554
+ end
1555
+ page
1556
+ end
1557
+ end
1558
+
1559
+ #
1560
+ # Lists report records by API Operations.
1561
+ #
1562
+ # @param resource_group_name [String] The name of the resource group.
1563
+ # @param service_name [String] The name of the API Management service.
1564
+ # @param filter [String] The filter to apply on the operation.
1565
+ # @param top [Integer] Number of records to return.
1566
+ # @param skip [Integer] Number of records to skip.
1567
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1568
+ # will be added to the HTTP request.
1569
+ #
1570
+ # @return [ReportCollection] which provide lazy access to pages of the
1571
+ # response.
1572
+ #
1573
+ def list_by_operation_as_lazy(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
1574
+ response = list_by_operation_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
1575
+ unless response.nil?
1576
+ page = response.body
1577
+ page.next_method = Proc.new do |next_page_link|
1578
+ list_by_operation_next_async(next_page_link, custom_headers:custom_headers)
1579
+ end
1580
+ page
1581
+ end
1582
+ end
1583
+
1584
+ #
1585
+ # Lists report records by Product.
1586
+ #
1587
+ # @param resource_group_name [String] The name of the resource group.
1588
+ # @param service_name [String] The name of the API Management service.
1589
+ # @param filter [String] The filter to apply on the operation.
1590
+ # @param top [Integer] Number of records to return.
1591
+ # @param skip [Integer] Number of records to skip.
1592
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1593
+ # will be added to the HTTP request.
1594
+ #
1595
+ # @return [ReportCollection] which provide lazy access to pages of the
1596
+ # response.
1597
+ #
1598
+ def list_by_product_as_lazy(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
1599
+ response = list_by_product_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
1600
+ unless response.nil?
1601
+ page = response.body
1602
+ page.next_method = Proc.new do |next_page_link|
1603
+ list_by_product_next_async(next_page_link, custom_headers:custom_headers)
1604
+ end
1605
+ page
1606
+ end
1607
+ end
1608
+
1609
+ #
1610
+ # Lists report records by GeoGraphy.
1611
+ #
1612
+ # @param resource_group_name [String] The name of the resource group.
1613
+ # @param service_name [String] The name of the API Management service.
1614
+ # @param filter [String] The filter to apply on the operation.
1615
+ # @param top [Integer] Number of records to return.
1616
+ # @param skip [Integer] Number of records to skip.
1617
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1618
+ # will be added to the HTTP request.
1619
+ #
1620
+ # @return [ReportCollection] which provide lazy access to pages of the
1621
+ # response.
1622
+ #
1623
+ def list_by_geo_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
1624
+ response = list_by_geo_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
1625
+ unless response.nil?
1626
+ page = response.body
1627
+ page.next_method = Proc.new do |next_page_link|
1628
+ list_by_geo_next_async(next_page_link, custom_headers:custom_headers)
1629
+ end
1630
+ page
1631
+ end
1632
+ end
1633
+
1634
+ #
1635
+ # Lists report records by subscription.
1636
+ #
1637
+ # @param resource_group_name [String] The name of the resource group.
1638
+ # @param service_name [String] The name of the API Management service.
1639
+ # @param filter [String] The filter to apply on the operation.
1640
+ # @param top [Integer] Number of records to return.
1641
+ # @param skip [Integer] Number of records to skip.
1642
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1643
+ # will be added to the HTTP request.
1644
+ #
1645
+ # @return [ReportCollection] which provide lazy access to pages of the
1646
+ # response.
1647
+ #
1648
+ def list_by_subscription_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
1649
+ response = list_by_subscription_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
1650
+ unless response.nil?
1651
+ page = response.body
1652
+ page.next_method = Proc.new do |next_page_link|
1653
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
1654
+ end
1655
+ page
1656
+ end
1657
+ end
1658
+
1659
+ #
1660
+ # Lists report records by Time.
1661
+ #
1662
+ # @param resource_group_name [String] The name of the resource group.
1663
+ # @param service_name [String] The name of the API Management service.
1664
+ # @param interval [Duration] By time interval. Interval must be multiple of 15
1665
+ # minutes and may not be zero. The value should be in ISO 8601 format
1666
+ # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
1667
+ # convert TimeSpan to a valid interval string: XmlConvert.ToString(new
1668
+ # TimeSpan(hours, minutes, secconds))
1669
+ # @param filter [String] The filter to apply on the operation.
1670
+ # @param top [Integer] Number of records to return.
1671
+ # @param skip [Integer] Number of records to skip.
1672
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1673
+ # will be added to the HTTP request.
1674
+ #
1675
+ # @return [ReportCollection] which provide lazy access to pages of the
1676
+ # response.
1677
+ #
1678
+ def list_by_time_as_lazy(resource_group_name, service_name, interval, filter:nil, top:nil, skip:nil, custom_headers:nil)
1679
+ response = list_by_time_async(resource_group_name, service_name, interval, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
1680
+ unless response.nil?
1681
+ page = response.body
1682
+ page.next_method = Proc.new do |next_page_link|
1683
+ list_by_time_next_async(next_page_link, custom_headers:custom_headers)
1684
+ end
1685
+ page
1686
+ end
1687
+ end
1688
+
1689
+ end
1690
+ end