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,819 @@
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 Logger
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Logger 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 a collection of loggers in the specified service instance.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param service_name [String] The name of the API Management service.
29
+ # @param filter [String] | Field | Supported operators | Supported functions
30
+ # |
31
+ # |-------|------------------------|---------------------------------------------|
32
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
33
+ # endswith |
34
+ # | type | eq |
35
+ # |
36
+ # @param top [Integer] Number of records to return.
37
+ # @param skip [Integer] Number of records to skip.
38
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
39
+ # will be added to the HTTP request.
40
+ #
41
+ # @return [Array<LoggerContract>] operation results.
42
+ #
43
+ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
44
+ first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
45
+ first_page.get_all_items
46
+ end
47
+
48
+ #
49
+ # Lists a collection of loggers in the specified service instance.
50
+ #
51
+ # @param resource_group_name [String] The name of the resource group.
52
+ # @param service_name [String] The name of the API Management service.
53
+ # @param filter [String] | Field | Supported operators | Supported functions
54
+ # |
55
+ # |-------|------------------------|---------------------------------------------|
56
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
57
+ # endswith |
58
+ # | type | eq |
59
+ # |
60
+ # @param top [Integer] Number of records to return.
61
+ # @param skip [Integer] Number of records to skip.
62
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
63
+ # will be added to the HTTP request.
64
+ #
65
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
66
+ #
67
+ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
68
+ list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
69
+ end
70
+
71
+ #
72
+ # Lists a collection of loggers in the specified service instance.
73
+ #
74
+ # @param resource_group_name [String] The name of the resource group.
75
+ # @param service_name [String] The name of the API Management service.
76
+ # @param filter [String] | Field | Supported operators | Supported functions
77
+ # |
78
+ # |-------|------------------------|---------------------------------------------|
79
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
80
+ # endswith |
81
+ # | type | eq |
82
+ # |
83
+ # @param top [Integer] Number of records to return.
84
+ # @param skip [Integer] Number of records to skip.
85
+ # @param [Hash{String => String}] A hash of custom headers that will be added
86
+ # to the HTTP request.
87
+ #
88
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
89
+ #
90
+ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
91
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
92
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
93
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
94
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
95
+ 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?
96
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
97
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
98
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
99
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
100
+
101
+
102
+ request_headers = {}
103
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
104
+
105
+ # Set Headers
106
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
107
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
108
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers'
109
+
110
+ request_url = @base_url || @client.base_url
111
+
112
+ options = {
113
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
114
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
115
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
116
+ headers: request_headers.merge(custom_headers || {}),
117
+ base_url: request_url
118
+ }
119
+ promise = @client.make_request_async(:get, path_template, options)
120
+
121
+ promise = promise.then do |result|
122
+ http_response = result.response
123
+ status_code = http_response.status
124
+ response_content = http_response.body
125
+ unless status_code == 200
126
+ error_model = JSON.load(response_content)
127
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
128
+ end
129
+
130
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
131
+ # Deserialize Response
132
+ if status_code == 200
133
+ begin
134
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
135
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerCollection.mapper()
136
+ result.body = @client.deserialize(result_mapper, parsed_response)
137
+ rescue Exception => e
138
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
139
+ end
140
+ end
141
+
142
+ result
143
+ end
144
+
145
+ promise.execute
146
+ end
147
+
148
+ #
149
+ # Gets the entity state (Etag) version of the logger specified by its
150
+ # identifier.
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 loggerid [String] Logger identifier. Must be unique in the API
155
+ # Management service instance.
156
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
157
+ # will be added to the HTTP request.
158
+ #
159
+ #
160
+ def get_entity_tag(resource_group_name, service_name, loggerid, custom_headers:nil)
161
+ response = get_entity_tag_async(resource_group_name, service_name, loggerid, custom_headers:custom_headers).value!
162
+ nil
163
+ end
164
+
165
+ #
166
+ # Gets the entity state (Etag) version of the logger specified by its
167
+ # identifier.
168
+ #
169
+ # @param resource_group_name [String] The name of the resource group.
170
+ # @param service_name [String] The name of the API Management service.
171
+ # @param loggerid [String] Logger identifier. Must be unique in the API
172
+ # Management service instance.
173
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
174
+ # will be added to the HTTP request.
175
+ #
176
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
177
+ #
178
+ def get_entity_tag_with_http_info(resource_group_name, service_name, loggerid, custom_headers:nil)
179
+ get_entity_tag_async(resource_group_name, service_name, loggerid, custom_headers:custom_headers).value!
180
+ end
181
+
182
+ #
183
+ # Gets the entity state (Etag) version of the logger specified by its
184
+ # identifier.
185
+ #
186
+ # @param resource_group_name [String] The name of the resource group.
187
+ # @param service_name [String] The name of the API Management service.
188
+ # @param loggerid [String] Logger identifier. Must be unique in the API
189
+ # Management service instance.
190
+ # @param [Hash{String => String}] A hash of custom headers that will be added
191
+ # to the HTTP request.
192
+ #
193
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
194
+ #
195
+ def get_entity_tag_async(resource_group_name, service_name, loggerid, custom_headers:nil)
196
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
197
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
198
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
199
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
200
+ 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?
201
+ fail ArgumentError, 'loggerid is nil' if loggerid.nil?
202
+ fail ArgumentError, "'loggerid' should satisfy the constraint - 'MaxLength': '80'" if !loggerid.nil? && loggerid.length > 80
203
+ fail ArgumentError, "'loggerid' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !loggerid.nil? && loggerid.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
204
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
205
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
206
+
207
+
208
+ request_headers = {}
209
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
210
+
211
+ # Set Headers
212
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
213
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
214
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}'
215
+
216
+ request_url = @base_url || @client.base_url
217
+
218
+ options = {
219
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
220
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id},
221
+ query_params: {'api-version' => @client.api_version},
222
+ headers: request_headers.merge(custom_headers || {}),
223
+ base_url: request_url
224
+ }
225
+ promise = @client.make_request_async(:head, path_template, options)
226
+
227
+ promise = promise.then do |result|
228
+ http_response = result.response
229
+ status_code = http_response.status
230
+ response_content = http_response.body
231
+ unless status_code == 200
232
+ error_model = JSON.load(response_content)
233
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
234
+ end
235
+
236
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
237
+
238
+ result
239
+ end
240
+
241
+ promise.execute
242
+ end
243
+
244
+ #
245
+ # Gets the details of the logger specified by its identifier.
246
+ #
247
+ # @param resource_group_name [String] The name of the resource group.
248
+ # @param service_name [String] The name of the API Management service.
249
+ # @param loggerid [String] Logger identifier. Must be unique in the API
250
+ # Management service instance.
251
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
252
+ # will be added to the HTTP request.
253
+ #
254
+ # @return [LoggerContract] operation results.
255
+ #
256
+ def get(resource_group_name, service_name, loggerid, custom_headers:nil)
257
+ response = get_async(resource_group_name, service_name, loggerid, custom_headers:custom_headers).value!
258
+ response.body unless response.nil?
259
+ end
260
+
261
+ #
262
+ # Gets the details of the logger specified by its identifier.
263
+ #
264
+ # @param resource_group_name [String] The name of the resource group.
265
+ # @param service_name [String] The name of the API Management service.
266
+ # @param loggerid [String] Logger identifier. Must be unique in the API
267
+ # Management service instance.
268
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
269
+ # will be added to the HTTP request.
270
+ #
271
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
272
+ #
273
+ def get_with_http_info(resource_group_name, service_name, loggerid, custom_headers:nil)
274
+ get_async(resource_group_name, service_name, loggerid, custom_headers:custom_headers).value!
275
+ end
276
+
277
+ #
278
+ # Gets the details of the logger specified by its identifier.
279
+ #
280
+ # @param resource_group_name [String] The name of the resource group.
281
+ # @param service_name [String] The name of the API Management service.
282
+ # @param loggerid [String] Logger identifier. Must be unique in the API
283
+ # Management service instance.
284
+ # @param [Hash{String => String}] A hash of custom headers that will be added
285
+ # to the HTTP request.
286
+ #
287
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
288
+ #
289
+ def get_async(resource_group_name, service_name, loggerid, custom_headers:nil)
290
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
291
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
292
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
293
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
294
+ 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?
295
+ fail ArgumentError, 'loggerid is nil' if loggerid.nil?
296
+ fail ArgumentError, "'loggerid' should satisfy the constraint - 'MaxLength': '80'" if !loggerid.nil? && loggerid.length > 80
297
+ fail ArgumentError, "'loggerid' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !loggerid.nil? && loggerid.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
298
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
299
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
300
+
301
+
302
+ request_headers = {}
303
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
304
+
305
+ # Set Headers
306
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
307
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
308
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}'
309
+
310
+ request_url = @base_url || @client.base_url
311
+
312
+ options = {
313
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
314
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id},
315
+ query_params: {'api-version' => @client.api_version},
316
+ headers: request_headers.merge(custom_headers || {}),
317
+ base_url: request_url
318
+ }
319
+ promise = @client.make_request_async(:get, path_template, options)
320
+
321
+ promise = promise.then do |result|
322
+ http_response = result.response
323
+ status_code = http_response.status
324
+ response_content = http_response.body
325
+ unless status_code == 200
326
+ error_model = JSON.load(response_content)
327
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
328
+ end
329
+
330
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
331
+ # Deserialize Response
332
+ if status_code == 200
333
+ begin
334
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
335
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerContract.mapper()
336
+ result.body = @client.deserialize(result_mapper, parsed_response)
337
+ rescue Exception => e
338
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
339
+ end
340
+ end
341
+
342
+ result
343
+ end
344
+
345
+ promise.execute
346
+ end
347
+
348
+ #
349
+ # Creates or Updates a logger.
350
+ #
351
+ # @param resource_group_name [String] The name of the resource group.
352
+ # @param service_name [String] The name of the API Management service.
353
+ # @param loggerid [String] Logger identifier. Must be unique in the API
354
+ # Management service instance.
355
+ # @param parameters [LoggerContract] Create parameters.
356
+ # @param if_match [String] ETag of the Entity. Not required when creating an
357
+ # entity, but required when updating an entity.
358
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
359
+ # will be added to the HTTP request.
360
+ #
361
+ # @return [LoggerContract] operation results.
362
+ #
363
+ def create_or_update(resource_group_name, service_name, loggerid, parameters, if_match:nil, custom_headers:nil)
364
+ response = create_or_update_async(resource_group_name, service_name, loggerid, parameters, if_match:if_match, custom_headers:custom_headers).value!
365
+ response.body unless response.nil?
366
+ end
367
+
368
+ #
369
+ # Creates or Updates a logger.
370
+ #
371
+ # @param resource_group_name [String] The name of the resource group.
372
+ # @param service_name [String] The name of the API Management service.
373
+ # @param loggerid [String] Logger identifier. Must be unique in the API
374
+ # Management service instance.
375
+ # @param parameters [LoggerContract] Create parameters.
376
+ # @param if_match [String] ETag of the Entity. Not required when creating an
377
+ # entity, but required when updating an entity.
378
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
379
+ # will be added to the HTTP request.
380
+ #
381
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
382
+ #
383
+ def create_or_update_with_http_info(resource_group_name, service_name, loggerid, parameters, if_match:nil, custom_headers:nil)
384
+ create_or_update_async(resource_group_name, service_name, loggerid, parameters, if_match:if_match, custom_headers:custom_headers).value!
385
+ end
386
+
387
+ #
388
+ # Creates or Updates a logger.
389
+ #
390
+ # @param resource_group_name [String] The name of the resource group.
391
+ # @param service_name [String] The name of the API Management service.
392
+ # @param loggerid [String] Logger identifier. Must be unique in the API
393
+ # Management service instance.
394
+ # @param parameters [LoggerContract] Create parameters.
395
+ # @param if_match [String] ETag of the Entity. Not required when creating an
396
+ # entity, but required when updating an entity.
397
+ # @param [Hash{String => String}] A hash of custom headers that will be added
398
+ # to the HTTP request.
399
+ #
400
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
401
+ #
402
+ def create_or_update_async(resource_group_name, service_name, loggerid, parameters, if_match:nil, custom_headers:nil)
403
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
404
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
405
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
406
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
407
+ 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?
408
+ fail ArgumentError, 'loggerid is nil' if loggerid.nil?
409
+ fail ArgumentError, "'loggerid' should satisfy the constraint - 'MaxLength': '80'" if !loggerid.nil? && loggerid.length > 80
410
+ fail ArgumentError, "'loggerid' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !loggerid.nil? && loggerid.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
411
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
412
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
413
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
414
+
415
+
416
+ request_headers = {}
417
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
418
+
419
+ # Set Headers
420
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
421
+ request_headers['If-Match'] = if_match unless if_match.nil?
422
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
423
+
424
+ # Serialize Request
425
+ request_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerContract.mapper()
426
+ request_content = @client.serialize(request_mapper, parameters)
427
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
428
+
429
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}'
430
+
431
+ request_url = @base_url || @client.base_url
432
+
433
+ options = {
434
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
435
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id},
436
+ query_params: {'api-version' => @client.api_version},
437
+ body: request_content,
438
+ headers: request_headers.merge(custom_headers || {}),
439
+ base_url: request_url
440
+ }
441
+ promise = @client.make_request_async(:put, path_template, options)
442
+
443
+ promise = promise.then do |result|
444
+ http_response = result.response
445
+ status_code = http_response.status
446
+ response_content = http_response.body
447
+ unless status_code == 201 || status_code == 200
448
+ error_model = JSON.load(response_content)
449
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
450
+ end
451
+
452
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
453
+ # Deserialize Response
454
+ if status_code == 201
455
+ begin
456
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
457
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerContract.mapper()
458
+ result.body = @client.deserialize(result_mapper, parsed_response)
459
+ rescue Exception => e
460
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
461
+ end
462
+ end
463
+ # Deserialize Response
464
+ if status_code == 200
465
+ begin
466
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
467
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerContract.mapper()
468
+ result.body = @client.deserialize(result_mapper, parsed_response)
469
+ rescue Exception => e
470
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
471
+ end
472
+ end
473
+
474
+ result
475
+ end
476
+
477
+ promise.execute
478
+ end
479
+
480
+ #
481
+ # Updates an existing logger.
482
+ #
483
+ # @param resource_group_name [String] The name of the resource group.
484
+ # @param service_name [String] The name of the API Management service.
485
+ # @param loggerid [String] Logger identifier. Must be unique in the API
486
+ # Management service instance.
487
+ # @param parameters [LoggerUpdateContract] Update parameters.
488
+ # @param if_match [String] ETag of the Entity. ETag should match the current
489
+ # entity state from the header response of the GET request or it should be *
490
+ # for unconditional update.
491
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
492
+ # will be added to the HTTP request.
493
+ #
494
+ #
495
+ def update(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:nil)
496
+ response = update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:custom_headers).value!
497
+ nil
498
+ end
499
+
500
+ #
501
+ # Updates an existing logger.
502
+ #
503
+ # @param resource_group_name [String] The name of the resource group.
504
+ # @param service_name [String] The name of the API Management service.
505
+ # @param loggerid [String] Logger identifier. Must be unique in the API
506
+ # Management service instance.
507
+ # @param parameters [LoggerUpdateContract] Update parameters.
508
+ # @param if_match [String] ETag of the Entity. ETag should match the current
509
+ # entity state from the header response of the GET request or it should be *
510
+ # for unconditional update.
511
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
512
+ # will be added to the HTTP request.
513
+ #
514
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
515
+ #
516
+ def update_with_http_info(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:nil)
517
+ update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:custom_headers).value!
518
+ end
519
+
520
+ #
521
+ # Updates an existing logger.
522
+ #
523
+ # @param resource_group_name [String] The name of the resource group.
524
+ # @param service_name [String] The name of the API Management service.
525
+ # @param loggerid [String] Logger identifier. Must be unique in the API
526
+ # Management service instance.
527
+ # @param parameters [LoggerUpdateContract] Update parameters.
528
+ # @param if_match [String] ETag of the Entity. ETag should match the current
529
+ # entity state from the header response of the GET request or it should be *
530
+ # for unconditional update.
531
+ # @param [Hash{String => String}] A hash of custom headers that will be added
532
+ # to the HTTP request.
533
+ #
534
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
535
+ #
536
+ def update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:nil)
537
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
538
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
539
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
540
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
541
+ 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?
542
+ fail ArgumentError, 'loggerid is nil' if loggerid.nil?
543
+ fail ArgumentError, "'loggerid' should satisfy the constraint - 'MaxLength': '80'" if !loggerid.nil? && loggerid.length > 80
544
+ fail ArgumentError, "'loggerid' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !loggerid.nil? && loggerid.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
545
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
546
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
547
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
548
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
549
+
550
+
551
+ request_headers = {}
552
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
553
+
554
+ # Set Headers
555
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
556
+ request_headers['If-Match'] = if_match unless if_match.nil?
557
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
558
+
559
+ # Serialize Request
560
+ request_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerUpdateContract.mapper()
561
+ request_content = @client.serialize(request_mapper, parameters)
562
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
563
+
564
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}'
565
+
566
+ request_url = @base_url || @client.base_url
567
+
568
+ options = {
569
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
570
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id},
571
+ query_params: {'api-version' => @client.api_version},
572
+ body: request_content,
573
+ headers: request_headers.merge(custom_headers || {}),
574
+ base_url: request_url
575
+ }
576
+ promise = @client.make_request_async(:patch, path_template, options)
577
+
578
+ promise = promise.then do |result|
579
+ http_response = result.response
580
+ status_code = http_response.status
581
+ response_content = http_response.body
582
+ unless status_code == 204
583
+ error_model = JSON.load(response_content)
584
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
585
+ end
586
+
587
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
588
+
589
+ result
590
+ end
591
+
592
+ promise.execute
593
+ end
594
+
595
+ #
596
+ # Deletes the specified logger.
597
+ #
598
+ # @param resource_group_name [String] The name of the resource group.
599
+ # @param service_name [String] The name of the API Management service.
600
+ # @param loggerid [String] Logger identifier. Must be unique in the API
601
+ # Management service instance.
602
+ # @param if_match [String] ETag of the Entity. ETag should match the current
603
+ # entity state from the header response of the GET request or it should be *
604
+ # for unconditional update.
605
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
606
+ # will be added to the HTTP request.
607
+ #
608
+ #
609
+ def delete(resource_group_name, service_name, loggerid, if_match, custom_headers:nil)
610
+ response = delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers:custom_headers).value!
611
+ nil
612
+ end
613
+
614
+ #
615
+ # Deletes the specified logger.
616
+ #
617
+ # @param resource_group_name [String] The name of the resource group.
618
+ # @param service_name [String] The name of the API Management service.
619
+ # @param loggerid [String] Logger identifier. Must be unique in the API
620
+ # Management service instance.
621
+ # @param if_match [String] ETag of the Entity. ETag should match the current
622
+ # entity state from the header response of the GET request or it should be *
623
+ # for unconditional update.
624
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
625
+ # will be added to the HTTP request.
626
+ #
627
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
628
+ #
629
+ def delete_with_http_info(resource_group_name, service_name, loggerid, if_match, custom_headers:nil)
630
+ delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers:custom_headers).value!
631
+ end
632
+
633
+ #
634
+ # Deletes the specified logger.
635
+ #
636
+ # @param resource_group_name [String] The name of the resource group.
637
+ # @param service_name [String] The name of the API Management service.
638
+ # @param loggerid [String] Logger identifier. Must be unique in the API
639
+ # Management service instance.
640
+ # @param if_match [String] ETag of the Entity. ETag should match the current
641
+ # entity state from the header response of the GET request or it should be *
642
+ # for unconditional update.
643
+ # @param [Hash{String => String}] A hash of custom headers that will be added
644
+ # to the HTTP request.
645
+ #
646
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
647
+ #
648
+ def delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers:nil)
649
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
650
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
651
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
652
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
653
+ 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?
654
+ fail ArgumentError, 'loggerid is nil' if loggerid.nil?
655
+ fail ArgumentError, "'loggerid' should satisfy the constraint - 'MaxLength': '80'" if !loggerid.nil? && loggerid.length > 80
656
+ fail ArgumentError, "'loggerid' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !loggerid.nil? && loggerid.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
657
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
658
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
659
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
660
+
661
+
662
+ request_headers = {}
663
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
664
+
665
+ # Set Headers
666
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
667
+ request_headers['If-Match'] = if_match unless if_match.nil?
668
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
669
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}'
670
+
671
+ request_url = @base_url || @client.base_url
672
+
673
+ options = {
674
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
675
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id},
676
+ query_params: {'api-version' => @client.api_version},
677
+ headers: request_headers.merge(custom_headers || {}),
678
+ base_url: request_url
679
+ }
680
+ promise = @client.make_request_async(:delete, path_template, options)
681
+
682
+ promise = promise.then do |result|
683
+ http_response = result.response
684
+ status_code = http_response.status
685
+ response_content = http_response.body
686
+ unless status_code == 200 || status_code == 204
687
+ error_model = JSON.load(response_content)
688
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
689
+ end
690
+
691
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
692
+
693
+ result
694
+ end
695
+
696
+ promise.execute
697
+ end
698
+
699
+ #
700
+ # Lists a collection of loggers in the specified service instance.
701
+ #
702
+ # @param next_page_link [String] The NextLink from the previous successful call
703
+ # to List operation.
704
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
705
+ # will be added to the HTTP request.
706
+ #
707
+ # @return [LoggerCollection] operation results.
708
+ #
709
+ def list_by_service_next(next_page_link, custom_headers:nil)
710
+ response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
711
+ response.body unless response.nil?
712
+ end
713
+
714
+ #
715
+ # Lists a collection of loggers in the specified service instance.
716
+ #
717
+ # @param next_page_link [String] The NextLink from the previous successful call
718
+ # to List operation.
719
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
720
+ # will be added to the HTTP request.
721
+ #
722
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
723
+ #
724
+ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil)
725
+ list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
726
+ end
727
+
728
+ #
729
+ # Lists a collection of loggers in the specified service instance.
730
+ #
731
+ # @param next_page_link [String] The NextLink from the previous successful call
732
+ # to List operation.
733
+ # @param [Hash{String => String}] A hash of custom headers that will be added
734
+ # to the HTTP request.
735
+ #
736
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
737
+ #
738
+ def list_by_service_next_async(next_page_link, custom_headers:nil)
739
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
740
+
741
+
742
+ request_headers = {}
743
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
744
+
745
+ # Set Headers
746
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
747
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
748
+ path_template = '{nextLink}'
749
+
750
+ request_url = @base_url || @client.base_url
751
+
752
+ options = {
753
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
754
+ skip_encoding_path_params: {'nextLink' => next_page_link},
755
+ headers: request_headers.merge(custom_headers || {}),
756
+ base_url: request_url
757
+ }
758
+ promise = @client.make_request_async(:get, path_template, options)
759
+
760
+ promise = promise.then do |result|
761
+ http_response = result.response
762
+ status_code = http_response.status
763
+ response_content = http_response.body
764
+ unless status_code == 200
765
+ error_model = JSON.load(response_content)
766
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
767
+ end
768
+
769
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
770
+ # Deserialize Response
771
+ if status_code == 200
772
+ begin
773
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
774
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerCollection.mapper()
775
+ result.body = @client.deserialize(result_mapper, parsed_response)
776
+ rescue Exception => e
777
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
778
+ end
779
+ end
780
+
781
+ result
782
+ end
783
+
784
+ promise.execute
785
+ end
786
+
787
+ #
788
+ # Lists a collection of loggers in the specified service instance.
789
+ #
790
+ # @param resource_group_name [String] The name of the resource group.
791
+ # @param service_name [String] The name of the API Management service.
792
+ # @param filter [String] | Field | Supported operators | Supported functions
793
+ # |
794
+ # |-------|------------------------|---------------------------------------------|
795
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
796
+ # endswith |
797
+ # | type | eq |
798
+ # |
799
+ # @param top [Integer] Number of records to return.
800
+ # @param skip [Integer] Number of records to skip.
801
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
802
+ # will be added to the HTTP request.
803
+ #
804
+ # @return [LoggerCollection] which provide lazy access to pages of the
805
+ # response.
806
+ #
807
+ def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
808
+ response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
809
+ unless response.nil?
810
+ page = response.body
811
+ page.next_method = Proc.new do |next_page_link|
812
+ list_by_service_next_async(next_page_link, custom_headers:custom_headers)
813
+ end
814
+ page
815
+ end
816
+ end
817
+
818
+ end
819
+ end