azure_mgmt_api_management 0.18.1 → 0.19.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1515) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_client.rb +1 -1
  3. data/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_services.rb +30 -0
  4. data/lib/2016-07-07/generated/azure_mgmt_api_management/api_operations.rb +12 -0
  5. data/lib/2016-07-07/generated/azure_mgmt_api_management/api_products.rb +4 -0
  6. data/lib/2016-07-07/generated/azure_mgmt_api_management/apis.rb +14 -0
  7. data/lib/2016-07-07/generated/azure_mgmt_api_management/authorization_servers.rb +12 -0
  8. data/lib/2016-07-07/generated/azure_mgmt_api_management/backends.rb +12 -0
  9. data/lib/2016-07-07/generated/azure_mgmt_api_management/certificates.rb +10 -0
  10. data/lib/2016-07-07/generated/azure_mgmt_api_management/group_users.rb +8 -0
  11. data/lib/2016-07-07/generated/azure_mgmt_api_management/groups.rb +12 -0
  12. data/lib/2016-07-07/generated/azure_mgmt_api_management/identity_providers.rb +10 -0
  13. data/lib/2016-07-07/generated/azure_mgmt_api_management/loggers.rb +12 -0
  14. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_collection.rb +1 -1
  15. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_base_parameters.rb +1 -1
  16. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +1 -1
  17. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb +1 -1
  18. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +1 -1
  19. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_collection.rb +1 -1
  20. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_collection.rb +1 -1
  21. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_collection.rb +1 -1
  22. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_contract.rb +1 -1
  23. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_collection.rb +1 -1
  24. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +1 -1
  25. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_collection.rb +1 -1
  26. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_collection.rb +1 -1
  27. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_collection.rb +1 -1
  28. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_collection.rb +1 -1
  29. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_record_contract.rb +2 -2
  30. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_collection.rb +2 -2
  31. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +1 -1
  32. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_collection.rb +1 -1
  33. data/lib/2016-07-07/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +1 -1
  34. data/lib/2016-07-07/generated/azure_mgmt_api_management/open_id_connect_providers.rb +12 -0
  35. data/lib/2016-07-07/generated/azure_mgmt_api_management/policy_snippets.rb +2 -0
  36. data/lib/2016-07-07/generated/azure_mgmt_api_management/product_apis.rb +8 -0
  37. data/lib/2016-07-07/generated/azure_mgmt_api_management/product_groups.rb +8 -0
  38. data/lib/2016-07-07/generated/azure_mgmt_api_management/product_subscriptions.rb +4 -0
  39. data/lib/2016-07-07/generated/azure_mgmt_api_management/products.rb +12 -0
  40. data/lib/2016-07-07/generated/azure_mgmt_api_management/property.rb +15 -3
  41. data/lib/2016-07-07/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +4 -0
  42. data/lib/2016-07-07/generated/azure_mgmt_api_management/quota_by_period_keys.rb +4 -0
  43. data/lib/2016-07-07/generated/azure_mgmt_api_management/regions.rb +2 -0
  44. data/lib/2016-07-07/generated/azure_mgmt_api_management/reports.rb +8 -4
  45. data/lib/2016-07-07/generated/azure_mgmt_api_management/subscriptions.rb +19 -3
  46. data/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_access.rb +8 -0
  47. data/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_access_git.rb +6 -0
  48. data/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_configuration.rb +6 -0
  49. data/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_configuration_sync_state.rb +2 -0
  50. data/lib/2016-07-07/generated/azure_mgmt_api_management/user_groups.rb +4 -0
  51. data/lib/2016-07-07/generated/azure_mgmt_api_management/user_identities.rb +2 -0
  52. data/lib/2016-07-07/generated/azure_mgmt_api_management/user_subscriptions.rb +4 -0
  53. data/lib/2016-07-07/generated/azure_mgmt_api_management/users.rb +14 -0
  54. data/lib/2016-10-10/generated/azure_mgmt_api_management/api_export.rb +2 -0
  55. data/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_client.rb +1 -1
  56. data/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_operations.rb +4 -0
  57. data/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_services.rb +32 -0
  58. data/lib/2016-10-10/generated/azure_mgmt_api_management/api_operations.rb +12 -0
  59. data/lib/2016-10-10/generated/azure_mgmt_api_management/api_operations_policy.rb +6 -0
  60. data/lib/2016-10-10/generated/azure_mgmt_api_management/api_policy.rb +6 -0
  61. data/lib/2016-10-10/generated/azure_mgmt_api_management/api_products.rb +4 -0
  62. data/lib/2016-10-10/generated/azure_mgmt_api_management/apis.rb +12 -0
  63. data/lib/2016-10-10/generated/azure_mgmt_api_management/authorization_servers.rb +12 -0
  64. data/lib/2016-10-10/generated/azure_mgmt_api_management/backends.rb +12 -0
  65. data/lib/2016-10-10/generated/azure_mgmt_api_management/certificates.rb +10 -0
  66. data/lib/2016-10-10/generated/azure_mgmt_api_management/group_users.rb +8 -0
  67. data/lib/2016-10-10/generated/azure_mgmt_api_management/groups.rb +12 -0
  68. data/lib/2016-10-10/generated/azure_mgmt_api_management/identity_providers.rb +10 -0
  69. data/lib/2016-10-10/generated/azure_mgmt_api_management/loggers.rb +12 -0
  70. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_collection.rb +1 -1
  71. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +1 -1
  72. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb +1 -1
  73. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +1 -1
  74. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +1 -1
  75. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +1 -1
  76. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_collection.rb +1 -1
  77. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_collection.rb +1 -1
  78. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_collection.rb +1 -1
  79. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_contract.rb +1 -1
  80. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_collection.rb +1 -1
  81. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +1 -1
  82. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_collection.rb +1 -1
  83. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_list_result.rb +1 -1
  84. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_collection.rb +1 -1
  85. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_collection.rb +1 -1
  86. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_collection.rb +1 -1
  87. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_record_contract.rb +3 -3
  88. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_collection.rb +1 -1
  89. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +1 -1
  90. data/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_collection.rb +1 -1
  91. data/lib/2016-10-10/generated/azure_mgmt_api_management/network_status.rb +2 -0
  92. data/lib/2016-10-10/generated/azure_mgmt_api_management/open_id_connect_providers.rb +12 -0
  93. data/lib/2016-10-10/generated/azure_mgmt_api_management/policy_snippets.rb +2 -0
  94. data/lib/2016-10-10/generated/azure_mgmt_api_management/product_apis.rb +8 -0
  95. data/lib/2016-10-10/generated/azure_mgmt_api_management/product_groups.rb +8 -0
  96. data/lib/2016-10-10/generated/azure_mgmt_api_management/product_policy.rb +6 -0
  97. data/lib/2016-10-10/generated/azure_mgmt_api_management/product_subscriptions.rb +4 -0
  98. data/lib/2016-10-10/generated/azure_mgmt_api_management/products.rb +12 -0
  99. data/lib/2016-10-10/generated/azure_mgmt_api_management/properties.rb +4 -0
  100. data/lib/2016-10-10/generated/azure_mgmt_api_management/property.rb +11 -3
  101. data/lib/2016-10-10/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +4 -0
  102. data/lib/2016-10-10/generated/azure_mgmt_api_management/quota_by_period_keys.rb +4 -0
  103. data/lib/2016-10-10/generated/azure_mgmt_api_management/regions.rb +2 -0
  104. data/lib/2016-10-10/generated/azure_mgmt_api_management/reports.rb +8 -4
  105. data/lib/2016-10-10/generated/azure_mgmt_api_management/subscriptions.rb +19 -3
  106. data/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_access.rb +8 -0
  107. data/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_access_git.rb +6 -0
  108. data/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_configuration.rb +6 -0
  109. data/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_configuration_sync_state.rb +2 -0
  110. data/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_policy.rb +6 -0
  111. data/lib/2016-10-10/generated/azure_mgmt_api_management/user_groups.rb +4 -0
  112. data/lib/2016-10-10/generated/azure_mgmt_api_management/user_identities.rb +2 -0
  113. data/lib/2016-10-10/generated/azure_mgmt_api_management/user_subscriptions.rb +4 -0
  114. data/lib/2016-10-10/generated/azure_mgmt_api_management/users.rb +16 -0
  115. data/lib/2017-03-01/generated/azure_mgmt_api_management/api.rb +18 -0
  116. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_diagnostic.rb +14 -0
  117. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb +20 -10
  118. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_export.rb +2 -0
  119. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issu_attachment.rb +2 -0
  120. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issu_comment.rb +2 -0
  121. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue.rb +8 -0
  122. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_attachment.rb +6 -0
  123. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_attachments.rb +11 -7
  124. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_comment.rb +6 -0
  125. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_comments.rb +11 -7
  126. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issues.rb +11 -7
  127. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb +1 -1
  128. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_operations.rb +4 -0
  129. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_service.rb +41 -1
  130. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_operation.rb +14 -0
  131. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_operation_policy.rb +10 -0
  132. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_policy.rb +10 -0
  133. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_product.rb +4 -0
  134. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_release.rb +12 -0
  135. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_revisions.rb +4 -0
  136. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_schema.rb +12 -0
  137. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_version_set.rb +14 -0
  138. data/lib/2017-03-01/generated/azure_mgmt_api_management/authorization_server.rb +14 -0
  139. data/lib/2017-03-01/generated/azure_mgmt_api_management/backend.rb +16 -0
  140. data/lib/2017-03-01/generated/azure_mgmt_api_management/certificate.rb +12 -0
  141. data/lib/2017-03-01/generated/azure_mgmt_api_management/delegation_settings.rb +8 -0
  142. data/lib/2017-03-01/generated/azure_mgmt_api_management/diagnostic.rb +14 -0
  143. data/lib/2017-03-01/generated/azure_mgmt_api_management/diagnostic_logger.rb +20 -10
  144. data/lib/2017-03-01/generated/azure_mgmt_api_management/email_template.rb +14 -0
  145. data/lib/2017-03-01/generated/azure_mgmt_api_management/group.rb +14 -0
  146. data/lib/2017-03-01/generated/azure_mgmt_api_management/group_user.rb +10 -0
  147. data/lib/2017-03-01/generated/azure_mgmt_api_management/identity_provider.rb +12 -0
  148. data/lib/2017-03-01/generated/azure_mgmt_api_management/logger.rb +14 -0
  149. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_collection.rb +1 -1
  150. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +1 -1
  151. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +1 -1
  152. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +1 -1
  153. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +1 -1
  154. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_release_collection.rb +1 -1
  155. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb +1 -1
  156. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +1 -1
  157. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +1 -1
  158. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_collection.rb +1 -1
  159. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +1 -1
  160. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_collection.rb +1 -1
  161. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +1 -1
  162. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/email_template_collection.rb +1 -1
  163. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_collection.rb +1 -1
  164. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +1 -1
  165. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_collection.rb +1 -1
  166. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +1 -1
  167. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_collection.rb +1 -1
  168. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_sampling_contract.rb +1 -1
  169. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/notification_collection.rb +1 -1
  170. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +1 -1
  171. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_collection.rb +1 -1
  172. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_list_result.rb +1 -1
  173. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_collection.rb +1 -1
  174. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/property_collection.rb +1 -1
  175. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/report_collection.rb +1 -1
  176. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/report_record_contract.rb +3 -3
  177. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +1 -1
  178. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/schema_collection.rb +1 -1
  179. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_collection.rb +1 -1
  180. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +1 -1
  181. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_collection.rb +1 -1
  182. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb +1 -1
  183. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +1 -1
  184. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +1 -1
  185. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_collection.rb +1 -1
  186. data/lib/2017-03-01/generated/azure_mgmt_api_management/network_status.rb +4 -0
  187. data/lib/2017-03-01/generated/azure_mgmt_api_management/notification.rb +8 -0
  188. data/lib/2017-03-01/generated/azure_mgmt_api_management/notification_recipient_email.rb +8 -0
  189. data/lib/2017-03-01/generated/azure_mgmt_api_management/notification_recipient_user.rb +8 -0
  190. data/lib/2017-03-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb +14 -0
  191. data/lib/2017-03-01/generated/azure_mgmt_api_management/operation_operations.rb +4 -0
  192. data/lib/2017-03-01/generated/azure_mgmt_api_management/policy.rb +8 -0
  193. data/lib/2017-03-01/generated/azure_mgmt_api_management/policy_snippets.rb +2 -0
  194. data/lib/2017-03-01/generated/azure_mgmt_api_management/product.rb +14 -0
  195. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_api.rb +10 -0
  196. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_group.rb +10 -0
  197. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_policy.rb +8 -0
  198. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_subscriptions.rb +4 -0
  199. data/lib/2017-03-01/generated/azure_mgmt_api_management/property.rb +17 -3
  200. data/lib/2017-03-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +4 -0
  201. data/lib/2017-03-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb +4 -0
  202. data/lib/2017-03-01/generated/azure_mgmt_api_management/regions.rb +2 -0
  203. data/lib/2017-03-01/generated/azure_mgmt_api_management/reports.rb +41 -11
  204. data/lib/2017-03-01/generated/azure_mgmt_api_management/sign_in_settings.rb +8 -0
  205. data/lib/2017-03-01/generated/azure_mgmt_api_management/sign_up_settings.rb +8 -0
  206. data/lib/2017-03-01/generated/azure_mgmt_api_management/subscription.rb +21 -3
  207. data/lib/2017-03-01/generated/azure_mgmt_api_management/tag.rb +50 -0
  208. data/lib/2017-03-01/generated/azure_mgmt_api_management/tag_description.rb +15 -3
  209. data/lib/2017-03-01/generated/azure_mgmt_api_management/tag_resource.rb +4 -0
  210. data/lib/2017-03-01/generated/azure_mgmt_api_management/tenant_access.rb +8 -0
  211. data/lib/2017-03-01/generated/azure_mgmt_api_management/tenant_access_git.rb +6 -0
  212. data/lib/2017-03-01/generated/azure_mgmt_api_management/tenant_configuration.rb +8 -0
  213. data/lib/2017-03-01/generated/azure_mgmt_api_management/user.rb +18 -0
  214. data/lib/2017-03-01/generated/azure_mgmt_api_management/user_group.rb +4 -0
  215. data/lib/2017-03-01/generated/azure_mgmt_api_management/user_identities.rb +2 -0
  216. data/lib/2017-03-01/generated/azure_mgmt_api_management/user_subscription.rb +4 -0
  217. data/lib/2018-01-01/generated/azure_mgmt_api_management.rb +303 -0
  218. data/lib/2018-01-01/generated/azure_mgmt_api_management/api.rb +1162 -0
  219. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic.rb +888 -0
  220. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb +659 -0
  221. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_export.rb +149 -0
  222. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue.rb +901 -0
  223. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_attachment.rb +826 -0
  224. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_comment.rb +823 -0
  225. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_client.rb +369 -0
  226. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_operations.rb +226 -0
  227. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_service.rb +1944 -0
  228. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_service_skus.rb +248 -0
  229. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation.rb +919 -0
  230. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation_policy.rb +649 -0
  231. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_policy.rb +599 -0
  232. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_product.rb +276 -0
  233. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_release.rb +907 -0
  234. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_revisions.rb +284 -0
  235. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_schema.rb +750 -0
  236. data/lib/2018-01-01/generated/azure_mgmt_api_management/api_version_set.rb +878 -0
  237. data/lib/2018-01-01/generated/azure_mgmt_api_management/authorization_server.rb +833 -0
  238. data/lib/2018-01-01/generated/azure_mgmt_api_management/backend.rb +947 -0
  239. data/lib/2018-01-01/generated/azure_mgmt_api_management/certificate.rb +742 -0
  240. data/lib/2018-01-01/generated/azure_mgmt_api_management/delegation_settings.rb +424 -0
  241. data/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic.rb +826 -0
  242. data/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic_logger.rb +624 -0
  243. data/lib/2018-01-01/generated/azure_mgmt_api_management/email_template.rb +910 -0
  244. data/lib/2018-01-01/generated/azure_mgmt_api_management/group.rb +853 -0
  245. data/lib/2018-01-01/generated/azure_mgmt_api_management/group_user.rb +667 -0
  246. data/lib/2018-01-01/generated/azure_mgmt_api_management/identity_provider.rb +810 -0
  247. data/lib/2018-01-01/generated/azure_mgmt_api_management/logger.rb +833 -0
  248. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_contract.rb +80 -0
  249. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +48 -0
  250. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/additional_location.rb +131 -0
  251. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_collection.rb +100 -0
  252. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract.rb +288 -0
  253. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb +222 -0
  254. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +313 -0
  255. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +57 -0
  256. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +179 -0
  257. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_export_result.rb +47 -0
  258. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +49 -0
  259. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
  260. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +322 -0
  261. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
  262. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +47 -0
  263. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +73 -0
  264. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
  265. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +81 -0
  266. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +442 -0
  267. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +60 -0
  268. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +77 -0
  269. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +431 -0
  270. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +72 -0
  271. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_collection.rb +100 -0
  272. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_contract.rb +110 -0
  273. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb +100 -0
  274. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb +145 -0
  275. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +88 -0
  276. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +221 -0
  277. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_type.rb +16 -0
  278. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_update_contract.rb +249 -0
  279. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +98 -0
  280. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +133 -0
  281. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb +96 -0
  282. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +78 -0
  283. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +106 -0
  284. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/apim_resource.rb +91 -0
  285. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/async_operation_status.rb +18 -0
  286. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +75 -0
  287. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_method.rb +22 -0
  288. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
  289. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +309 -0
  290. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +211 -0
  291. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +309 -0
  292. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
  293. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +131 -0
  294. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_collection.rb +98 -0
  295. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_contract.rb +185 -0
  296. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +124 -0
  297. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_properties.rb +48 -0
  298. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
  299. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
  300. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +74 -0
  301. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +119 -0
  302. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +63 -0
  303. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +158 -0
  304. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +16 -0
  305. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_methods.rb +16 -0
  306. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_collection.rb +98 -0
  307. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb +84 -0
  308. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_contract.rb +98 -0
  309. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
  310. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
  311. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb +16 -0
  312. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/confirmation.rb +16 -0
  313. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +107 -0
  314. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
  315. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/content_format.rb +20 -0
  316. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/current_user_identity.rb +47 -0
  317. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
  318. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +98 -0
  319. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +74 -0
  320. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_collection.rb +98 -0
  321. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_contract.rb +147 -0
  322. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +83 -0
  323. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +107 -0
  324. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
  325. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_response.rb +79 -0
  326. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_response_body.rb +79 -0
  327. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/export_format.rb +17 -0
  328. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
  329. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/grant_type.rb +18 -0
  330. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_collection.rb +98 -0
  331. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract.rb +131 -0
  332. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract_properties.rb +104 -0
  333. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb +88 -0
  334. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_type.rb +17 -0
  335. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb +88 -0
  336. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb +138 -0
  337. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb +71 -0
  338. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_type.rb +18 -0
  339. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +131 -0
  340. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +191 -0
  341. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb +99 -0
  342. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb +20 -0
  343. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +164 -0
  344. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  345. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  346. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  347. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  348. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  349. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  350. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_contract_base_properties.rb +70 -0
  351. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_update_contract.rb +103 -0
  352. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/key_type.rb +16 -0
  353. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
  354. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_contract.rb +121 -0
  355. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_type.rb +16 -0
  356. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb +89 -0
  357. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
  358. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
  359. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb +61 -0
  360. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_collection.rb +98 -0
  361. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_contract.rb +100 -0
  362. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_name.rb +21 -0
  363. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
  364. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/open_id_authentication_settings_contract.rb +66 -0
  365. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +98 -0
  366. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +122 -0
  367. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
  368. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation.rb +80 -0
  369. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_collection.rb +100 -0
  370. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_contract.rb +185 -0
  371. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
  372. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +114 -0
  373. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
  374. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb +134 -0
  375. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +69 -0
  376. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb +134 -0
  377. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb +158 -0
  378. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
  379. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_collection.rb +66 -0
  380. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_content_format.rb +18 -0
  381. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_contract.rb +87 -0
  382. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
  383. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +83 -0
  384. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +55 -0
  385. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +111 -0
  386. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +73 -0
  387. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +86 -0
  388. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_collection.rb +98 -0
  389. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_contract.rb +167 -0
  390. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +125 -0
  391. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_state.rb +16 -0
  392. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb +115 -0
  393. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb +140 -0
  394. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_collection.rb +98 -0
  395. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_contract.rb +130 -0
  396. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb +70 -0
  397. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
  398. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/protocol.rb +16 -0
  399. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
  400. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +104 -0
  401. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
  402. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +57 -0
  403. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +66 -0
  404. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +73 -0
  405. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +66 -0
  406. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +73 -0
  407. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +73 -0
  408. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_contract.rb +69 -0
  409. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_list_result.rb +109 -0
  410. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +46 -0
  411. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
  412. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_record_contract.rb +338 -0
  413. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/representation_contract.rb +106 -0
  414. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
  415. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_collection.rb +66 -0
  416. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +245 -0
  417. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource.rb +80 -0
  418. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku.rb +47 -0
  419. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity.rb +85 -0
  420. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity_scale_type.rb +17 -0
  421. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_result.rb +74 -0
  422. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_results.rb +100 -0
  423. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/response_contract.rb +99 -0
  424. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
  425. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_collection.rb +100 -0
  426. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_contract.rb +87 -0
  427. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/sku_type.rb +18 -0
  428. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/soap_api_type.rb +16 -0
  429. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/state.rb +19 -0
  430. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_collection.rb +98 -0
  431. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_contract.rb +244 -0
  432. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +128 -0
  433. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
  434. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_state.rb +20 -0
  435. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +146 -0
  436. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +47 -0
  437. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_collection.rb +98 -0
  438. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_contract.rb +77 -0
  439. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +50 -0
  440. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb +98 -0
  441. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb +114 -0
  442. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +72 -0
  443. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +109 -0
  444. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +86 -0
  445. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb +61 -0
  446. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/template_name.rb +28 -0
  447. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
  448. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +68 -0
  449. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
  450. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_collection.rb +98 -0
  451. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_contract.rb +178 -0
  452. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb +153 -0
  453. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +82 -0
  454. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb +109 -0
  455. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
  456. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_state.rb +18 -0
  457. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
  458. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
  459. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb +139 -0
  460. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb +17 -0
  461. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +76 -0
  462. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
  463. data/lib/2018-01-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb +57 -0
  464. data/lib/2018-01-01/generated/azure_mgmt_api_management/module_definition.rb +9 -0
  465. data/lib/2018-01-01/generated/azure_mgmt_api_management/network_status.rb +258 -0
  466. data/lib/2018-01-01/generated/azure_mgmt_api_management/notification.rb +477 -0
  467. data/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_email.rb +482 -0
  468. data/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_user.rb +503 -0
  469. data/lib/2018-01-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb +821 -0
  470. data/lib/2018-01-01/generated/azure_mgmt_api_management/operation_operations.rb +320 -0
  471. data/lib/2018-01-01/generated/azure_mgmt_api_management/policy.rb +536 -0
  472. data/lib/2018-01-01/generated/azure_mgmt_api_management/policy_snippets.rb +128 -0
  473. data/lib/2018-01-01/generated/azure_mgmt_api_management/product.rb +876 -0
  474. data/lib/2018-01-01/generated/azure_mgmt_api_management/product_api.rb +664 -0
  475. data/lib/2018-01-01/generated/azure_mgmt_api_management/product_group.rb +653 -0
  476. data/lib/2018-01-01/generated/azure_mgmt_api_management/product_policy.rb +581 -0
  477. data/lib/2018-01-01/generated/azure_mgmt_api_management/product_subscriptions.rb +316 -0
  478. data/lib/2018-01-01/generated/azure_mgmt_api_management/property.rb +818 -0
  479. data/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +266 -0
  480. data/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb +265 -0
  481. data/lib/2018-01-01/generated/azure_mgmt_api_management/regions.rb +234 -0
  482. data/lib/2018-01-01/generated/azure_mgmt_api_management/reports.rb +1720 -0
  483. data/lib/2018-01-01/generated/azure_mgmt_api_management/sign_in_settings.rb +424 -0
  484. data/lib/2018-01-01/generated/azure_mgmt_api_management/sign_up_settings.rb +424 -0
  485. data/lib/2018-01-01/generated/azure_mgmt_api_management/subscription.rb +1088 -0
  486. data/lib/2018-01-01/generated/azure_mgmt_api_management/tag.rb +3131 -0
  487. data/lib/2018-01-01/generated/azure_mgmt_api_management/tag_description.rb +799 -0
  488. data/lib/2018-01-01/generated/azure_mgmt_api_management/tag_resource.rb +360 -0
  489. data/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access.rb +409 -0
  490. data/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access_git.rb +297 -0
  491. data/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_configuration.rb +615 -0
  492. data/lib/2018-01-01/generated/azure_mgmt_api_management/user.rb +1214 -0
  493. data/lib/2018-01-01/generated/azure_mgmt_api_management/user_group.rb +291 -0
  494. data/lib/2018-01-01/generated/azure_mgmt_api_management/user_identities.rb +246 -0
  495. data/lib/2018-01-01/generated/azure_mgmt_api_management/user_subscription.rb +316 -0
  496. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management.rb +161 -144
  497. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api.rb +296 -207
  498. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_diagnostic.rb +40 -18
  499. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_export.rb +5 -3
  500. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_issue.rb +214 -62
  501. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_issue_attachment.rb +62 -45
  502. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_issue_comment.rb +62 -45
  503. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb +41 -25
  504. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_operations.rb +4 -0
  505. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_service.rb +139 -56
  506. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_service_skus.rb +248 -0
  507. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_operation.rb +75 -29
  508. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_operation_policy.rb +16 -6
  509. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_policy.rb +10 -0
  510. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_product.rb +33 -21
  511. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_release.rb +83 -58
  512. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_revisions.rb +9 -5
  513. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_schema.rb +74 -18
  514. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_version_set.rb +60 -94
  515. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/authorization_server.rb +53 -35
  516. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/backend.rb +154 -130
  517. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/cache.rb +809 -0
  518. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/certificate.rb +60 -48
  519. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/delegation_settings.rb +24 -9
  520. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/diagnostic.rb +34 -12
  521. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/email_template.rb +48 -10
  522. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/group.rb +66 -52
  523. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/group_user.rb +126 -128
  524. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/identity_provider.rb +20 -6
  525. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/issue.rb +410 -0
  526. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/logger.rb +127 -94
  527. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_collection.rb +1 -1
  528. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_contract.rb +12 -0
  529. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_contract_properties.rb +8 -0
  530. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +13 -1
  531. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +12 -0
  532. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +1 -1
  533. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +1 -1
  534. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +1 -1
  535. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +1 -1
  536. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +1 -1
  537. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_release_collection.rb +1 -1
  538. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_collection.rb +1 -1
  539. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +8 -0
  540. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_update_contract.rb +12 -0
  541. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +1 -1
  542. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +27 -0
  543. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +1 -1
  544. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_collection.rb +1 -1
  545. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +1 -1
  546. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +1 -1
  547. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/bearer_token_sending_methods.rb +16 -0
  548. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/cache_collection.rb +98 -0
  549. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/cache_contract.rb +105 -0
  550. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/cache_update_parameters.rb +78 -0
  551. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_collection.rb +1 -1
  552. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_configuration.rb +1 -2
  553. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/content_format.rb +3 -0
  554. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/current_user_identity.rb +47 -0
  555. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +1 -1
  556. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +15 -2
  557. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/email_template_collection.rb +1 -1
  558. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/export_format.rb +1 -0
  559. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_collection.rb +1 -1
  560. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_contract.rb +1 -1
  561. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_contract_properties.rb +1 -1
  562. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_create_parameters.rb +3 -2
  563. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_update_parameters.rb +3 -2
  564. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/hostname_configuration.rb +0 -1
  565. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +12 -0
  566. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +12 -0
  567. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_list.rb +1 -1
  568. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +12 -0
  569. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +1 -1
  570. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_collection.rb +1 -1
  571. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +1 -1
  572. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_contract.rb +27 -27
  573. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_contract_base_properties.rb +70 -0
  574. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_update_contract.rb +103 -0
  575. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/logger_collection.rb +1 -1
  576. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/notification_collection.rb +1 -1
  577. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/open_id_authentication_settings_contract.rb +66 -0
  578. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +1 -1
  579. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_collection.rb +1 -1
  580. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_list_result.rb +1 -1
  581. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/pipeline_diagnostic_settings.rb +1 -1
  582. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_collection.rb +1 -1
  583. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/property_collection.rb +1 -1
  584. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/region_list_result.rb +1 -1
  585. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/report_collection.rb +1 -1
  586. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/report_record_contract.rb +3 -3
  587. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +1 -1
  588. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/resource_sku.rb +47 -0
  589. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/resource_sku_capacity.rb +84 -0
  590. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/resource_sku_capacity_scale_type.rb +17 -0
  591. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/resource_sku_result.rb +74 -0
  592. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/resource_sku_results.rb +100 -0
  593. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/schema_collection.rb +1 -1
  594. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/sku_type.rb +1 -0
  595. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_collection.rb +1 -1
  596. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_contract.rb +22 -12
  597. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +21 -10
  598. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +20 -8
  599. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_collection.rb +1 -1
  600. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_description_collection.rb +1 -1
  601. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +1 -12
  602. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_collection.rb +1 -1
  603. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_contract.rb +0 -1
  604. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_create_parameters.rb +0 -1
  605. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +0 -1
  606. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_identity_collection.rb +1 -1
  607. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_update_parameters.rb +0 -1
  608. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/network_status.rb +4 -0
  609. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/notification.rb +13 -5
  610. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/notification_recipient_email.rb +10 -4
  611. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/notification_recipient_user.rb +52 -46
  612. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/open_id_connect_provider.rb +55 -37
  613. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/operation_operations.rb +76 -64
  614. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/policy.rb +29 -18
  615. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/policy_snippets.rb +3 -1
  616. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product.rb +366 -69
  617. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_api.rb +64 -60
  618. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_group.rb +54 -58
  619. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_policy.rb +29 -19
  620. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_subscriptions.rb +86 -62
  621. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/property.rb +65 -43
  622. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +6 -2
  623. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/quota_by_period_keys.rb +6 -2
  624. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/region.rb +234 -0
  625. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/reports.rb +41 -11
  626. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/sign_in_settings.rb +24 -9
  627. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/sign_up_settings.rb +24 -9
  628. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/subscription.rb +115 -77
  629. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tag.rb +715 -716
  630. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tag_description.rb +50 -34
  631. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tag_resource.rb +106 -114
  632. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tenant_access.rb +105 -10
  633. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tenant_access_git.rb +6 -0
  634. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tenant_configuration.rb +8 -0
  635. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user.rb +192 -174
  636. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user_confirmation_password.rb +121 -0
  637. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user_group.rb +57 -49
  638. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user_identities.rb +28 -24
  639. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user_subscription.rb +93 -77
  640. data/lib/2019-01-01/generated/azure_mgmt_api_management.rb +313 -0
  641. data/lib/2019-01-01/generated/azure_mgmt_api_management/api.rb +1221 -0
  642. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_diagnostic.rb +886 -0
  643. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_export.rb +149 -0
  644. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_issue.rb +896 -0
  645. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_issue_attachment.rb +818 -0
  646. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_issue_comment.rb +815 -0
  647. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_management_client.rb +373 -0
  648. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_management_operations.rb +226 -0
  649. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_management_service.rb +1691 -0
  650. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_management_service_skus.rb +248 -0
  651. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_operation.rb +930 -0
  652. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_operation_policy.rb +650 -0
  653. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_policy.rb +605 -0
  654. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_product.rb +275 -0
  655. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_release.rb +904 -0
  656. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_revision.rb +275 -0
  657. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_schema.rb +789 -0
  658. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_tag_description.rb +795 -0
  659. data/lib/2019-01-01/generated/azure_mgmt_api_management/api_version_set.rb +822 -0
  660. data/lib/2019-01-01/generated/azure_mgmt_api_management/authorization_server.rb +829 -0
  661. data/lib/2019-01-01/generated/azure_mgmt_api_management/backend.rb +941 -0
  662. data/lib/2019-01-01/generated/azure_mgmt_api_management/cache.rb +809 -0
  663. data/lib/2019-01-01/generated/azure_mgmt_api_management/certificate.rb +730 -0
  664. data/lib/2019-01-01/generated/azure_mgmt_api_management/delegation_settings.rb +431 -0
  665. data/lib/2019-01-01/generated/azure_mgmt_api_management/diagnostic.rb +830 -0
  666. data/lib/2019-01-01/generated/azure_mgmt_api_management/email_template.rb +941 -0
  667. data/lib/2019-01-01/generated/azure_mgmt_api_management/group.rb +836 -0
  668. data/lib/2019-01-01/generated/azure_mgmt_api_management/group_user.rb +636 -0
  669. data/lib/2019-01-01/generated/azure_mgmt_api_management/identity_provider.rb +810 -0
  670. data/lib/2019-01-01/generated/azure_mgmt_api_management/issue.rb +390 -0
  671. data/lib/2019-01-01/generated/azure_mgmt_api_management/logger.rb +840 -0
  672. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/access_information_contract.rb +79 -0
  673. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +46 -0
  674. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/additional_location.rb +131 -0
  675. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/always_log.rb +15 -0
  676. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_collection.rb +100 -0
  677. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_contract.rb +310 -0
  678. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb +240 -0
  679. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +335 -0
  680. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +57 -0
  681. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +190 -0
  682. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_export_result.rb +72 -0
  683. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_export_result_value.rb +47 -0
  684. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +49 -0
  685. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
  686. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +361 -0
  687. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
  688. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +47 -0
  689. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +73 -0
  690. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
  691. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +81 -0
  692. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +481 -0
  693. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +59 -0
  694. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +470 -0
  695. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_release_collection.rb +100 -0
  696. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_release_contract.rb +110 -0
  697. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb +100 -0
  698. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb +145 -0
  699. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +88 -0
  700. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +228 -0
  701. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_type.rb +16 -0
  702. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_update_contract.rb +260 -0
  703. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +98 -0
  704. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +133 -0
  705. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb +107 -0
  706. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +78 -0
  707. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +106 -0
  708. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/apim_resource.rb +91 -0
  709. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/async_operation_status.rb +18 -0
  710. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +75 -0
  711. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_method.rb +22 -0
  712. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
  713. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +309 -0
  714. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +211 -0
  715. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +309 -0
  716. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
  717. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +131 -0
  718. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_collection.rb +98 -0
  719. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_contract.rb +185 -0
  720. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +124 -0
  721. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_properties.rb +48 -0
  722. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
  723. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
  724. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +74 -0
  725. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +119 -0
  726. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +63 -0
  727. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +158 -0
  728. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +16 -0
  729. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_methods.rb +16 -0
  730. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/body_diagnostic_settings.rb +49 -0
  731. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/cache_collection.rb +98 -0
  732. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/cache_contract.rb +105 -0
  733. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/cache_update_parameters.rb +78 -0
  734. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_collection.rb +98 -0
  735. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb +84 -0
  736. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_contract.rb +98 -0
  737. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
  738. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
  739. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb +16 -0
  740. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/confirmation.rb +16 -0
  741. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +107 -0
  742. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
  743. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/content_format.rb +23 -0
  744. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
  745. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +98 -0
  746. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +136 -0
  747. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/email_template_collection.rb +98 -0
  748. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/email_template_contract.rb +147 -0
  749. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +83 -0
  750. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +107 -0
  751. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
  752. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/error_response.rb +79 -0
  753. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/error_response_body.rb +79 -0
  754. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/export_format.rb +18 -0
  755. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/export_result_format.rb +18 -0
  756. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
  757. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/grant_type.rb +18 -0
  758. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_collection.rb +98 -0
  759. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_contract.rb +131 -0
  760. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_contract_properties.rb +104 -0
  761. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb +89 -0
  762. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_type.rb +17 -0
  763. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb +89 -0
  764. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb +137 -0
  765. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/hostname_type.rb +19 -0
  766. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/http_message_diagnostic.rb +66 -0
  767. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +143 -0
  768. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +203 -0
  769. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb +99 -0
  770. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb +20 -0
  771. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +176 -0
  772. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  773. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  774. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  775. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  776. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  777. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  778. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_contract_base_properties.rb +70 -0
  779. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_update_contract.rb +103 -0
  780. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/key_type.rb +16 -0
  781. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
  782. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/logger_contract.rb +133 -0
  783. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/logger_type.rb +16 -0
  784. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb +89 -0
  785. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
  786. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
  787. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb +61 -0
  788. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/notification_collection.rb +98 -0
  789. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/notification_contract.rb +100 -0
  790. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/notification_name.rb +21 -0
  791. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
  792. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/open_id_authentication_settings_contract.rb +66 -0
  793. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +98 -0
  794. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +122 -0
  795. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
  796. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation.rb +80 -0
  797. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_collection.rb +100 -0
  798. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_contract.rb +185 -0
  799. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
  800. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +114 -0
  801. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
  802. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb +134 -0
  803. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +69 -0
  804. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb +134 -0
  805. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb +158 -0
  806. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
  807. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/pipeline_diagnostic_settings.rb +59 -0
  808. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_collection.rb +66 -0
  809. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_content_format.rb +18 -0
  810. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_contract.rb +87 -0
  811. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_export_format.rb +16 -0
  812. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
  813. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +83 -0
  814. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +55 -0
  815. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +111 -0
  816. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +73 -0
  817. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +86 -0
  818. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_collection.rb +98 -0
  819. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_contract.rb +167 -0
  820. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +125 -0
  821. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_state.rb +16 -0
  822. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb +115 -0
  823. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb +140 -0
  824. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/property_collection.rb +98 -0
  825. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/property_contract.rb +130 -0
  826. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb +70 -0
  827. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
  828. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/protocol.rb +16 -0
  829. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
  830. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +104 -0
  831. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
  832. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +57 -0
  833. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +66 -0
  834. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +73 -0
  835. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +66 -0
  836. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +73 -0
  837. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +73 -0
  838. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/region_contract.rb +69 -0
  839. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/region_list_result.rb +109 -0
  840. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +46 -0
  841. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
  842. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/report_record_contract.rb +338 -0
  843. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/representation_contract.rb +106 -0
  844. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
  845. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/request_report_collection.rb +66 -0
  846. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +245 -0
  847. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource.rb +80 -0
  848. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku.rb +47 -0
  849. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity.rb +84 -0
  850. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity_scale_type.rb +17 -0
  851. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku_result.rb +74 -0
  852. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku_results.rb +100 -0
  853. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/response_contract.rb +99 -0
  854. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/sampling_settings.rb +61 -0
  855. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/sampling_type.rb +15 -0
  856. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
  857. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/schema_collection.rb +100 -0
  858. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/schema_contract.rb +90 -0
  859. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/schema_create_or_update_contract.rb +91 -0
  860. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/sku_type.rb +19 -0
  861. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/soap_api_type.rb +16 -0
  862. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/state.rb +19 -0
  863. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_collection.rb +98 -0
  864. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_contract.rb +254 -0
  865. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +139 -0
  866. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
  867. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_state.rb +20 -0
  868. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +158 -0
  869. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +47 -0
  870. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_collection.rb +98 -0
  871. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_contract.rb +77 -0
  872. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +50 -0
  873. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb +98 -0
  874. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb +114 -0
  875. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +72 -0
  876. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +98 -0
  877. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +86 -0
  878. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb +61 -0
  879. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/template_name.rb +28 -0
  880. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
  881. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +68 -0
  882. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
  883. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_collection.rb +98 -0
  884. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_contract.rb +178 -0
  885. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb +153 -0
  886. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +82 -0
  887. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb +109 -0
  888. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
  889. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_state.rb +18 -0
  890. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
  891. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
  892. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb +139 -0
  893. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb +17 -0
  894. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +76 -0
  895. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
  896. data/lib/2019-01-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb +57 -0
  897. data/lib/2019-01-01/generated/azure_mgmt_api_management/module_definition.rb +9 -0
  898. data/lib/2019-01-01/generated/azure_mgmt_api_management/network_status.rb +258 -0
  899. data/lib/2019-01-01/generated/azure_mgmt_api_management/notification.rb +477 -0
  900. data/lib/2019-01-01/generated/azure_mgmt_api_management/notification_recipient_email.rb +482 -0
  901. data/lib/2019-01-01/generated/azure_mgmt_api_management/notification_recipient_user.rb +500 -0
  902. data/lib/2019-01-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb +817 -0
  903. data/lib/2019-01-01/generated/azure_mgmt_api_management/operation_operations.rb +308 -0
  904. data/lib/2019-01-01/generated/azure_mgmt_api_management/policy.rb +543 -0
  905. data/lib/2019-01-01/generated/azure_mgmt_api_management/policy_snippet.rb +128 -0
  906. data/lib/2019-01-01/generated/azure_mgmt_api_management/product.rb +1126 -0
  907. data/lib/2019-01-01/generated/azure_mgmt_api_management/product_api.rb +642 -0
  908. data/lib/2019-01-01/generated/azure_mgmt_api_management/product_group.rb +620 -0
  909. data/lib/2019-01-01/generated/azure_mgmt_api_management/product_policy.rb +582 -0
  910. data/lib/2019-01-01/generated/azure_mgmt_api_management/product_subscriptions.rb +307 -0
  911. data/lib/2019-01-01/generated/azure_mgmt_api_management/property.rb +814 -0
  912. data/lib/2019-01-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +266 -0
  913. data/lib/2019-01-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb +265 -0
  914. data/lib/2019-01-01/generated/azure_mgmt_api_management/region.rb +234 -0
  915. data/lib/2019-01-01/generated/azure_mgmt_api_management/reports.rb +2129 -0
  916. data/lib/2019-01-01/generated/azure_mgmt_api_management/sign_in_settings.rb +431 -0
  917. data/lib/2019-01-01/generated/azure_mgmt_api_management/sign_up_settings.rb +431 -0
  918. data/lib/2019-01-01/generated/azure_mgmt_api_management/subscription.rb +1080 -0
  919. data/lib/2019-01-01/generated/azure_mgmt_api_management/tag.rb +3038 -0
  920. data/lib/2019-01-01/generated/azure_mgmt_api_management/tag_resource.rb +320 -0
  921. data/lib/2019-01-01/generated/azure_mgmt_api_management/tenant_access.rb +496 -0
  922. data/lib/2019-01-01/generated/azure_mgmt_api_management/tenant_access_git.rb +297 -0
  923. data/lib/2019-01-01/generated/azure_mgmt_api_management/tenant_configuration.rb +615 -0
  924. data/lib/2019-01-01/generated/azure_mgmt_api_management/user.rb +1090 -0
  925. data/lib/2019-01-01/generated/azure_mgmt_api_management/user_confirmation_password.rb +120 -0
  926. data/lib/2019-01-01/generated/azure_mgmt_api_management/user_group.rb +282 -0
  927. data/lib/2019-01-01/generated/azure_mgmt_api_management/user_identities.rb +245 -0
  928. data/lib/2019-01-01/generated/azure_mgmt_api_management/user_subscription.rb +303 -0
  929. data/lib/2019-12-01/generated/azure_mgmt_api_management.rb +338 -0
  930. data/lib/2019-12-01/generated/azure_mgmt_api_management/api.rb +1221 -0
  931. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_diagnostic.rb +886 -0
  932. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_export.rb +149 -0
  933. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_issue.rb +896 -0
  934. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_issue_attachment.rb +818 -0
  935. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_issue_comment.rb +815 -0
  936. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_management_client.rb +385 -0
  937. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_management_operations.rb +226 -0
  938. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_management_service.rb +1691 -0
  939. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_management_service_skus.rb +248 -0
  940. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_operation.rb +930 -0
  941. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_operation_policy.rb +650 -0
  942. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_policy.rb +605 -0
  943. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_product.rb +275 -0
  944. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_release.rb +904 -0
  945. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_revision.rb +275 -0
  946. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_schema.rb +844 -0
  947. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_tag_description.rb +795 -0
  948. data/lib/2019-12-01/generated/azure_mgmt_api_management/api_version_set.rb +822 -0
  949. data/lib/2019-12-01/generated/azure_mgmt_api_management/authorization_server.rb +933 -0
  950. data/lib/2019-12-01/generated/azure_mgmt_api_management/backend.rb +941 -0
  951. data/lib/2019-12-01/generated/azure_mgmt_api_management/cache.rb +809 -0
  952. data/lib/2019-12-01/generated/azure_mgmt_api_management/certificate.rb +730 -0
  953. data/lib/2019-12-01/generated/azure_mgmt_api_management/delegation_settings.rb +528 -0
  954. data/lib/2019-12-01/generated/azure_mgmt_api_management/diagnostic.rb +830 -0
  955. data/lib/2019-12-01/generated/azure_mgmt_api_management/email_template.rb +941 -0
  956. data/lib/2019-12-01/generated/azure_mgmt_api_management/gateway.rb +1134 -0
  957. data/lib/2019-12-01/generated/azure_mgmt_api_management/gateway_api.rb +600 -0
  958. data/lib/2019-12-01/generated/azure_mgmt_api_management/gateway_hostname_configuration.rb +720 -0
  959. data/lib/2019-12-01/generated/azure_mgmt_api_management/group.rb +836 -0
  960. data/lib/2019-12-01/generated/azure_mgmt_api_management/group_user.rb +636 -0
  961. data/lib/2019-12-01/generated/azure_mgmt_api_management/identity_provider.rb +917 -0
  962. data/lib/2019-12-01/generated/azure_mgmt_api_management/issue.rb +390 -0
  963. data/lib/2019-12-01/generated/azure_mgmt_api_management/logger.rb +840 -0
  964. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/access_information_contract.rb +81 -0
  965. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +46 -0
  966. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/additional_location.rb +145 -0
  967. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/always_log.rb +15 -0
  968. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_collection.rb +100 -0
  969. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_contract.rb +310 -0
  970. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb +240 -0
  971. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +336 -0
  972. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +57 -0
  973. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +190 -0
  974. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_export_result.rb +72 -0
  975. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_export_result_value.rb +47 -0
  976. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +49 -0
  977. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
  978. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +404 -0
  979. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
  980. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +47 -0
  981. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +99 -0
  982. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
  983. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +81 -0
  984. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +524 -0
  985. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +59 -0
  986. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +513 -0
  987. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_release_collection.rb +100 -0
  988. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_release_contract.rb +110 -0
  989. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb +100 -0
  990. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb +145 -0
  991. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +88 -0
  992. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +228 -0
  993. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_type.rb +16 -0
  994. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_update_contract.rb +260 -0
  995. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_version_constraint.rb +47 -0
  996. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +98 -0
  997. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +133 -0
  998. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb +107 -0
  999. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +78 -0
  1000. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +106 -0
  1001. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/apim_identity_type.rb +18 -0
  1002. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/apim_resource.rb +91 -0
  1003. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/app_type.rb +15 -0
  1004. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/association_contract.rb +75 -0
  1005. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/async_operation_status.rb +18 -0
  1006. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +61 -0
  1007. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/authorization_method.rb +22 -0
  1008. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
  1009. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +310 -0
  1010. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +199 -0
  1011. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +310 -0
  1012. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
  1013. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +131 -0
  1014. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/backend_collection.rb +98 -0
  1015. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/backend_contract.rb +185 -0
  1016. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +124 -0
  1017. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/backend_properties.rb +48 -0
  1018. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
  1019. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
  1020. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +74 -0
  1021. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +119 -0
  1022. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +63 -0
  1023. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +158 -0
  1024. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +16 -0
  1025. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/bearer_token_sending_methods.rb +16 -0
  1026. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/body_diagnostic_settings.rb +49 -0
  1027. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/cache_collection.rb +98 -0
  1028. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/cache_contract.rb +105 -0
  1029. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/cache_update_parameters.rb +78 -0
  1030. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/certificate_collection.rb +98 -0
  1031. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb +84 -0
  1032. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/certificate_contract.rb +98 -0
  1033. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
  1034. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
  1035. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb +16 -0
  1036. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/client_secret_contract.rb +47 -0
  1037. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/confirmation.rb +16 -0
  1038. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +107 -0
  1039. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
  1040. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/content_format.rb +24 -0
  1041. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
  1042. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +98 -0
  1043. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +160 -0
  1044. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/email_template_collection.rb +98 -0
  1045. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/email_template_contract.rb +147 -0
  1046. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +83 -0
  1047. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +107 -0
  1048. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
  1049. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/error_response.rb +79 -0
  1050. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/error_response_body.rb +79 -0
  1051. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/export_format.rb +19 -0
  1052. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/export_result_format.rb +18 -0
  1053. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/gateway_collection.rb +100 -0
  1054. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/gateway_contract.rb +88 -0
  1055. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/gateway_hostname_configuration_collection.rb +102 -0
  1056. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/gateway_hostname_configuration_contract.rb +98 -0
  1057. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/gateway_key_regeneration_request_contract.rb +48 -0
  1058. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/gateway_keys_contract.rb +57 -0
  1059. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/gateway_token_contract.rb +47 -0
  1060. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/gateway_token_request_contract.rb +64 -0
  1061. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
  1062. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/grant_type.rb +18 -0
  1063. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/group_collection.rb +98 -0
  1064. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/group_contract.rb +131 -0
  1065. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/group_contract_properties.rb +104 -0
  1066. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb +89 -0
  1067. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/group_type.rb +17 -0
  1068. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb +89 -0
  1069. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb +137 -0
  1070. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/hostname_type.rb +19 -0
  1071. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/http_correlation_protocol.rb +17 -0
  1072. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/http_message_diagnostic.rb +66 -0
  1073. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +155 -0
  1074. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +216 -0
  1075. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/identity_provider_create_contract.rb +216 -0
  1076. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb +99 -0
  1077. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb +20 -0
  1078. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +188 -0
  1079. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  1080. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  1081. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  1082. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  1083. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  1084. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  1085. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/issue_contract_base_properties.rb +70 -0
  1086. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/issue_update_contract.rb +103 -0
  1087. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/key_type.rb +16 -0
  1088. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
  1089. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/logger_contract.rb +133 -0
  1090. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/logger_type.rb +16 -0
  1091. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb +89 -0
  1092. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
  1093. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/named_value_collection.rb +98 -0
  1094. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/named_value_contract.rb +132 -0
  1095. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/named_value_create_contract.rb +132 -0
  1096. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/named_value_entity_base_parameters.rb +70 -0
  1097. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/named_value_update_parameters.rb +103 -0
  1098. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
  1099. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb +61 -0
  1100. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/notification_collection.rb +98 -0
  1101. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/notification_contract.rb +100 -0
  1102. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/notification_name.rb +21 -0
  1103. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
  1104. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/open_id_authentication_settings_contract.rb +66 -0
  1105. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +98 -0
  1106. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +122 -0
  1107. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
  1108. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/operation.rb +80 -0
  1109. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/operation_collection.rb +100 -0
  1110. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/operation_contract.rb +185 -0
  1111. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
  1112. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +114 -0
  1113. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
  1114. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb +134 -0
  1115. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +69 -0
  1116. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb +134 -0
  1117. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb +158 -0
  1118. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
  1119. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/pipeline_diagnostic_settings.rb +59 -0
  1120. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/policy_collection.rb +66 -0
  1121. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/policy_content_format.rb +18 -0
  1122. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/policy_contract.rb +87 -0
  1123. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/policy_description_collection.rb +67 -0
  1124. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/policy_description_contract.rb +86 -0
  1125. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/policy_export_format.rb +16 -0
  1126. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
  1127. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +111 -0
  1128. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/portal_setting_validation_key_contract.rb +47 -0
  1129. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +73 -0
  1130. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +86 -0
  1131. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/product_collection.rb +98 -0
  1132. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/product_contract.rb +167 -0
  1133. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +125 -0
  1134. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/product_state.rb +16 -0
  1135. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb +115 -0
  1136. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb +140 -0
  1137. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/property_value_contract.rb +46 -0
  1138. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/protocol.rb +16 -0
  1139. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/provisioning_state.rb +15 -0
  1140. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
  1141. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +104 -0
  1142. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
  1143. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +57 -0
  1144. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +66 -0
  1145. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +73 -0
  1146. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +66 -0
  1147. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +73 -0
  1148. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +73 -0
  1149. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/region_contract.rb +69 -0
  1150. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/region_list_result.rb +109 -0
  1151. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +46 -0
  1152. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
  1153. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/report_record_contract.rb +338 -0
  1154. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/representation_contract.rb +106 -0
  1155. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
  1156. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/request_report_collection.rb +66 -0
  1157. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +245 -0
  1158. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/resource.rb +80 -0
  1159. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/resource_location_data_contract.rb +93 -0
  1160. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/resource_sku.rb +47 -0
  1161. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/resource_sku_capacity.rb +84 -0
  1162. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/resource_sku_capacity_scale_type.rb +17 -0
  1163. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/resource_sku_result.rb +74 -0
  1164. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/resource_sku_results.rb +100 -0
  1165. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/response_contract.rb +99 -0
  1166. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/sampling_settings.rb +61 -0
  1167. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/sampling_type.rb +15 -0
  1168. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
  1169. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/schema_collection.rb +100 -0
  1170. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/schema_contract.rb +103 -0
  1171. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/sku_type.rb +19 -0
  1172. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/soap_api_type.rb +16 -0
  1173. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/state.rb +19 -0
  1174. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/subscription_collection.rb +98 -0
  1175. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/subscription_contract.rb +258 -0
  1176. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +139 -0
  1177. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
  1178. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/subscription_keys_contract.rb +65 -0
  1179. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/subscription_state.rb +20 -0
  1180. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +158 -0
  1181. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +47 -0
  1182. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/tag_collection.rb +98 -0
  1183. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/tag_contract.rb +77 -0
  1184. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +50 -0
  1185. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb +98 -0
  1186. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb +125 -0
  1187. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +72 -0
  1188. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +98 -0
  1189. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +86 -0
  1190. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb +61 -0
  1191. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/template_name.rb +28 -0
  1192. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
  1193. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +68 -0
  1194. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
  1195. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/user_collection.rb +98 -0
  1196. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/user_contract.rb +178 -0
  1197. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb +166 -0
  1198. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +82 -0
  1199. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb +109 -0
  1200. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
  1201. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/user_identity_properties.rb +58 -0
  1202. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/user_state.rb +18 -0
  1203. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
  1204. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
  1205. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb +139 -0
  1206. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/verbosity.rb +17 -0
  1207. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb +17 -0
  1208. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +76 -0
  1209. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
  1210. data/lib/2019-12-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb +57 -0
  1211. data/lib/2019-12-01/generated/azure_mgmt_api_management/module_definition.rb +9 -0
  1212. data/lib/2019-12-01/generated/azure_mgmt_api_management/named_value.rb +1030 -0
  1213. data/lib/2019-12-01/generated/azure_mgmt_api_management/network_status.rb +258 -0
  1214. data/lib/2019-12-01/generated/azure_mgmt_api_management/notification.rb +477 -0
  1215. data/lib/2019-12-01/generated/azure_mgmt_api_management/notification_recipient_email.rb +482 -0
  1216. data/lib/2019-12-01/generated/azure_mgmt_api_management/notification_recipient_user.rb +500 -0
  1217. data/lib/2019-12-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb +920 -0
  1218. data/lib/2019-12-01/generated/azure_mgmt_api_management/operation_operations.rb +308 -0
  1219. data/lib/2019-12-01/generated/azure_mgmt_api_management/policy.rb +543 -0
  1220. data/lib/2019-12-01/generated/azure_mgmt_api_management/policy_description.rb +128 -0
  1221. data/lib/2019-12-01/generated/azure_mgmt_api_management/product.rb +1126 -0
  1222. data/lib/2019-12-01/generated/azure_mgmt_api_management/product_api.rb +642 -0
  1223. data/lib/2019-12-01/generated/azure_mgmt_api_management/product_group.rb +620 -0
  1224. data/lib/2019-12-01/generated/azure_mgmt_api_management/product_policy.rb +582 -0
  1225. data/lib/2019-12-01/generated/azure_mgmt_api_management/product_subscriptions.rb +307 -0
  1226. data/lib/2019-12-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +266 -0
  1227. data/lib/2019-12-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb +265 -0
  1228. data/lib/2019-12-01/generated/azure_mgmt_api_management/region.rb +234 -0
  1229. data/lib/2019-12-01/generated/azure_mgmt_api_management/reports.rb +2129 -0
  1230. data/lib/2019-12-01/generated/azure_mgmt_api_management/sign_in_settings.rb +431 -0
  1231. data/lib/2019-12-01/generated/azure_mgmt_api_management/sign_up_settings.rb +431 -0
  1232. data/lib/2019-12-01/generated/azure_mgmt_api_management/subscription.rb +1186 -0
  1233. data/lib/2019-12-01/generated/azure_mgmt_api_management/tag.rb +3038 -0
  1234. data/lib/2019-12-01/generated/azure_mgmt_api_management/tag_resource.rb +320 -0
  1235. data/lib/2019-12-01/generated/azure_mgmt_api_management/tenant_access.rb +594 -0
  1236. data/lib/2019-12-01/generated/azure_mgmt_api_management/tenant_access_git.rb +395 -0
  1237. data/lib/2019-12-01/generated/azure_mgmt_api_management/tenant_configuration.rb +615 -0
  1238. data/lib/2019-12-01/generated/azure_mgmt_api_management/user.rb +1090 -0
  1239. data/lib/2019-12-01/generated/azure_mgmt_api_management/user_confirmation_password.rb +120 -0
  1240. data/lib/2019-12-01/generated/azure_mgmt_api_management/user_group.rb +282 -0
  1241. data/lib/2019-12-01/generated/azure_mgmt_api_management/user_identities.rb +245 -0
  1242. data/lib/2019-12-01/generated/azure_mgmt_api_management/user_subscription.rb +303 -0
  1243. data/lib/azure_mgmt_api_management.rb +4 -2
  1244. data/lib/profiles/latest/modules/apimanagement_profile_module.rb +806 -652
  1245. data/lib/version.rb +1 -1
  1246. metadata +905 -274
  1247. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management.rb +0 -292
  1248. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api.rb +0 -1144
  1249. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_diagnostic.rb +0 -874
  1250. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_diagnostic_logger.rb +0 -649
  1251. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_export.rb +0 -147
  1252. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_issue.rb +0 -762
  1253. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_issue_attachment.rb +0 -814
  1254. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_issue_comment.rb +0 -811
  1255. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_management_client.rb +0 -365
  1256. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_management_operations.rb +0 -222
  1257. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_management_service.rb +0 -1914
  1258. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_operation.rb +0 -905
  1259. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_operation_policy.rb +0 -639
  1260. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_policy.rb +0 -589
  1261. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_product.rb +0 -272
  1262. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_release.rb +0 -893
  1263. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_revisions.rb +0 -280
  1264. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_schema.rb +0 -738
  1265. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_version_set.rb +0 -864
  1266. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/authorization_server.rb +0 -819
  1267. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/backend.rb +0 -931
  1268. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/certificate.rb +0 -730
  1269. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/delegation_settings.rb +0 -416
  1270. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/diagnostic.rb +0 -812
  1271. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/diagnostic_logger.rb +0 -614
  1272. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/email_template.rb +0 -896
  1273. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/group.rb +0 -839
  1274. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/group_user.rb +0 -657
  1275. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/identity_provider.rb +0 -796
  1276. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/logger.rb +0 -819
  1277. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/access_information_contract.rb +0 -80
  1278. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +0 -48
  1279. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/additional_location.rb +0 -131
  1280. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_collection.rb +0 -100
  1281. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_contract.rb +0 -288
  1282. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_contract_properties.rb +0 -222
  1283. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +0 -313
  1284. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +0 -57
  1285. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +0 -179
  1286. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_export_result.rb +0 -47
  1287. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +0 -49
  1288. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +0 -84
  1289. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +0 -322
  1290. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +0 -47
  1291. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +0 -47
  1292. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +0 -73
  1293. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +0 -100
  1294. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +0 -81
  1295. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +0 -442
  1296. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +0 -60
  1297. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +0 -77
  1298. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +0 -431
  1299. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +0 -72
  1300. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_release_collection.rb +0 -100
  1301. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_release_contract.rb +0 -110
  1302. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_revision_collection.rb +0 -100
  1303. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb +0 -145
  1304. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +0 -88
  1305. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +0 -221
  1306. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_type.rb +0 -16
  1307. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_update_contract.rb +0 -249
  1308. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +0 -98
  1309. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +0 -133
  1310. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb +0 -96
  1311. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +0 -78
  1312. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +0 -106
  1313. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/apim_resource.rb +0 -91
  1314. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/async_operation_status.rb +0 -18
  1315. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +0 -48
  1316. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/authorization_method.rb +0 -22
  1317. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +0 -109
  1318. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +0 -309
  1319. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +0 -211
  1320. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +0 -309
  1321. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +0 -65
  1322. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +0 -131
  1323. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/backend_collection.rb +0 -98
  1324. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/backend_contract.rb +0 -185
  1325. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +0 -124
  1326. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/backend_properties.rb +0 -48
  1327. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/backend_protocol.rb +0 -16
  1328. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +0 -74
  1329. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +0 -74
  1330. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +0 -119
  1331. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +0 -63
  1332. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +0 -158
  1333. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +0 -16
  1334. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/certificate_collection.rb +0 -98
  1335. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/certificate_configuration.rb +0 -85
  1336. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/certificate_contract.rb +0 -98
  1337. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +0 -58
  1338. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/certificate_information.rb +0 -70
  1339. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/client_authentication_method.rb +0 -16
  1340. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/confirmation.rb +0 -16
  1341. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +0 -107
  1342. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +0 -17
  1343. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/content_format.rb +0 -20
  1344. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +0 -59
  1345. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +0 -98
  1346. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +0 -74
  1347. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/email_template_collection.rb +0 -98
  1348. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/email_template_contract.rb +0 -147
  1349. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +0 -83
  1350. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +0 -107
  1351. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/error_field_contract.rb +0 -68
  1352. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/error_response.rb +0 -79
  1353. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/error_response_body.rb +0 -79
  1354. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/export_format.rb +0 -17
  1355. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +0 -46
  1356. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/grant_type.rb +0 -18
  1357. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/group_collection.rb +0 -98
  1358. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/group_contract.rb +0 -131
  1359. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/group_contract_properties.rb +0 -104
  1360. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/group_create_parameters.rb +0 -88
  1361. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/group_type.rb +0 -17
  1362. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/group_update_parameters.rb +0 -88
  1363. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/hostname_configuration.rb +0 -139
  1364. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb +0 -71
  1365. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/hostname_type.rb +0 -18
  1366. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +0 -131
  1367. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +0 -191
  1368. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/identity_provider_list.rb +0 -99
  1369. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/identity_provider_type.rb +0 -20
  1370. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +0 -164
  1371. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +0 -100
  1372. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +0 -97
  1373. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_collection.rb +0 -100
  1374. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +0 -100
  1375. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +0 -96
  1376. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_contract.rb +0 -130
  1377. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/key_type.rb +0 -16
  1378. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/logger_collection.rb +0 -109
  1379. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/logger_contract.rb +0 -121
  1380. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/logger_type.rb +0 -16
  1381. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/logger_update_contract.rb +0 -89
  1382. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/name_availability_reason.rb +0 -17
  1383. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/network_status_contract.rb +0 -75
  1384. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb +0 -61
  1385. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/notification_collection.rb +0 -98
  1386. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/notification_contract.rb +0 -100
  1387. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/notification_name.rb +0 -21
  1388. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +0 -57
  1389. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +0 -98
  1390. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +0 -122
  1391. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +0 -95
  1392. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation.rb +0 -80
  1393. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_collection.rb +0 -100
  1394. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_contract.rb +0 -185
  1395. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_display.rb +0 -80
  1396. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +0 -114
  1397. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_list_result.rb +0 -101
  1398. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_result_contract.rb +0 -134
  1399. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +0 -69
  1400. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb +0 -134
  1401. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_update_contract.rb +0 -158
  1402. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/parameter_contract.rb +0 -109
  1403. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/policy_collection.rb +0 -66
  1404. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/policy_content_format.rb +0 -18
  1405. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/policy_contract.rb +0 -87
  1406. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +0 -19
  1407. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +0 -83
  1408. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +0 -55
  1409. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +0 -111
  1410. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +0 -73
  1411. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +0 -86
  1412. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/product_collection.rb +0 -98
  1413. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/product_contract.rb +0 -167
  1414. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +0 -125
  1415. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/product_state.rb +0 -16
  1416. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb +0 -115
  1417. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/product_update_parameters.rb +0 -140
  1418. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/property_collection.rb +0 -98
  1419. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/property_contract.rb +0 -130
  1420. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb +0 -70
  1421. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/property_update_parameters.rb +0 -103
  1422. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/protocol.rb +0 -16
  1423. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +0 -77
  1424. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +0 -104
  1425. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +0 -57
  1426. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +0 -57
  1427. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +0 -66
  1428. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +0 -73
  1429. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +0 -66
  1430. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +0 -73
  1431. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +0 -73
  1432. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/region_contract.rb +0 -69
  1433. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/region_list_result.rb +0 -109
  1434. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +0 -46
  1435. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/report_collection.rb +0 -109
  1436. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/report_record_contract.rb +0 -338
  1437. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/representation_contract.rb +0 -106
  1438. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/request_contract.rb +0 -109
  1439. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/request_report_collection.rb +0 -66
  1440. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +0 -245
  1441. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/resource.rb +0 -80
  1442. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/response_contract.rb +0 -99
  1443. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +0 -60
  1444. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/schema_collection.rb +0 -100
  1445. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/schema_contract.rb +0 -87
  1446. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/sku_type.rb +0 -18
  1447. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/soap_api_type.rb +0 -16
  1448. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/state.rb +0 -19
  1449. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/subscription_collection.rb +0 -98
  1450. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/subscription_contract.rb +0 -244
  1451. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +0 -128
  1452. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +0 -57
  1453. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/subscription_state.rb +0 -20
  1454. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +0 -146
  1455. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +0 -47
  1456. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/tag_collection.rb +0 -98
  1457. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/tag_contract.rb +0 -77
  1458. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +0 -50
  1459. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/tag_description_collection.rb +0 -98
  1460. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/tag_description_contract.rb +0 -114
  1461. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +0 -72
  1462. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +0 -109
  1463. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +0 -86
  1464. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb +0 -61
  1465. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/template_name.rb +0 -28
  1466. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +0 -121
  1467. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +0 -68
  1468. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +0 -57
  1469. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/user_collection.rb +0 -98
  1470. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/user_contract.rb +0 -179
  1471. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/user_create_parameters.rb +0 -154
  1472. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +0 -83
  1473. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/user_identity_collection.rb +0 -109
  1474. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/user_identity_contract.rb +0 -57
  1475. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/user_state.rb +0 -18
  1476. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/user_token_parameters.rb +0 -64
  1477. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/user_token_result.rb +0 -46
  1478. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/user_update_parameters.rb +0 -140
  1479. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/versioning_scheme.rb +0 -17
  1480. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +0 -76
  1481. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/virtual_network_type.rb +0 -17
  1482. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/x509certificate_name.rb +0 -57
  1483. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/module_definition.rb +0 -9
  1484. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/network_status.rb +0 -254
  1485. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/notification.rb +0 -469
  1486. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/notification_recipient_email.rb +0 -474
  1487. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/notification_recipient_user.rb +0 -495
  1488. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/open_id_connect_provider.rb +0 -807
  1489. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/operation_operations.rb +0 -316
  1490. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/policy.rb +0 -526
  1491. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/policy_snippets.rb +0 -126
  1492. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/product.rb +0 -862
  1493. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/product_api.rb +0 -654
  1494. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/product_group.rb +0 -643
  1495. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/product_policy.rb +0 -571
  1496. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/product_subscriptions.rb +0 -312
  1497. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/property.rb +0 -804
  1498. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +0 -262
  1499. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/quota_by_period_keys.rb +0 -261
  1500. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/regions.rb +0 -230
  1501. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/reports.rb +0 -1690
  1502. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/sign_in_settings.rb +0 -416
  1503. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/sign_up_settings.rb +0 -416
  1504. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/subscription.rb +0 -1070
  1505. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/tag.rb +0 -3081
  1506. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/tag_description.rb +0 -787
  1507. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/tag_resource.rb +0 -356
  1508. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/tenant_access.rb +0 -401
  1509. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/tenant_access_git.rb +0 -291
  1510. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/tenant_configuration.rb +0 -607
  1511. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/user.rb +0 -1099
  1512. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/user_group.rb +0 -287
  1513. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/user_identities.rb +0 -242
  1514. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/user_subscription.rb +0 -312
  1515. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/regions.rb +0 -230
@@ -0,0 +1,3131 @@
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_01_01
7
+ #
8
+ # ApiManagement Client
9
+ #
10
+ class Tag
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Tag 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 tags defined within a service instance.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param service_name [String] The name of the API Management service.
29
+ # @param filter [String] | Field | Supported operators | Supported
30
+ # functions |
31
+ # |-------------|------------------------|---------------------------------------------|
32
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
33
+ # endswith |
34
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
35
+ # endswith |
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<TagContract>] 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 tags defined within a 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
54
+ # functions |
55
+ # |-------------|------------------------|---------------------------------------------|
56
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
57
+ # endswith |
58
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
59
+ # endswith |
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 tags defined within a 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
77
+ # functions |
78
+ # |-------------|------------------------|---------------------------------------------|
79
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
80
+ # endswith |
81
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
82
+ # endswith |
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}/tags'
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 MsRestAzure::AzureOperationError.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
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
132
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
133
+ # Deserialize Response
134
+ if status_code == 200
135
+ begin
136
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
137
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagCollection.mapper()
138
+ result.body = @client.deserialize(result_mapper, parsed_response)
139
+ rescue Exception => e
140
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
141
+ end
142
+ end
143
+
144
+ result
145
+ end
146
+
147
+ promise.execute
148
+ end
149
+
150
+ #
151
+ # Gets the entity state version of the tag specified by its identifier.
152
+ #
153
+ # @param resource_group_name [String] The name of the resource group.
154
+ # @param service_name [String] The name of the API Management service.
155
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
156
+ # Management service instance.
157
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
158
+ # will be added to the HTTP request.
159
+ #
160
+ #
161
+ def get_entity_state(resource_group_name, service_name, tag_id, custom_headers:nil)
162
+ response = get_entity_state_async(resource_group_name, service_name, tag_id, custom_headers:custom_headers).value!
163
+ nil
164
+ end
165
+
166
+ #
167
+ # Gets the entity state version of the tag specified by its identifier.
168
+ #
169
+ # @param resource_group_name [String] The name of the resource group.
170
+ # @param service_name [String] The name of the API Management service.
171
+ # @param tag_id [String] Tag identifier. Must be unique in the current 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_state_with_http_info(resource_group_name, service_name, tag_id, custom_headers:nil)
179
+ get_entity_state_async(resource_group_name, service_name, tag_id, custom_headers:custom_headers).value!
180
+ end
181
+
182
+ #
183
+ # Gets the entity state version of the tag specified by its identifier.
184
+ #
185
+ # @param resource_group_name [String] The name of the resource group.
186
+ # @param service_name [String] The name of the API Management service.
187
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
188
+ # Management service instance.
189
+ # @param [Hash{String => String}] A hash of custom headers that will be added
190
+ # to the HTTP request.
191
+ #
192
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
193
+ #
194
+ def get_entity_state_async(resource_group_name, service_name, tag_id, custom_headers:nil)
195
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
196
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
197
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
198
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
199
+ 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?
200
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
201
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
202
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
203
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.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}/tags/{tagId}'
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,'tagId' => tag_id,'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
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
238
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
239
+
240
+ result
241
+ end
242
+
243
+ promise.execute
244
+ end
245
+
246
+ #
247
+ # Gets the details of the tag specified by its identifier.
248
+ #
249
+ # @param resource_group_name [String] The name of the resource group.
250
+ # @param service_name [String] The name of the API Management service.
251
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
252
+ # Management service instance.
253
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
254
+ # will be added to the HTTP request.
255
+ #
256
+ # @return [TagContract] operation results.
257
+ #
258
+ def get(resource_group_name, service_name, tag_id, custom_headers:nil)
259
+ response = get_async(resource_group_name, service_name, tag_id, custom_headers:custom_headers).value!
260
+ response.body unless response.nil?
261
+ end
262
+
263
+ #
264
+ # Gets the details of the tag specified by its identifier.
265
+ #
266
+ # @param resource_group_name [String] The name of the resource group.
267
+ # @param service_name [String] The name of the API Management service.
268
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
269
+ # Management service instance.
270
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
271
+ # will be added to the HTTP request.
272
+ #
273
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
274
+ #
275
+ def get_with_http_info(resource_group_name, service_name, tag_id, custom_headers:nil)
276
+ get_async(resource_group_name, service_name, tag_id, custom_headers:custom_headers).value!
277
+ end
278
+
279
+ #
280
+ # Gets the details of the tag specified by its identifier.
281
+ #
282
+ # @param resource_group_name [String] The name of the resource group.
283
+ # @param service_name [String] The name of the API Management service.
284
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
285
+ # Management service instance.
286
+ # @param [Hash{String => String}] A hash of custom headers that will be added
287
+ # to the HTTP request.
288
+ #
289
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
290
+ #
291
+ def get_async(resource_group_name, service_name, tag_id, custom_headers:nil)
292
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
293
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
294
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
295
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
296
+ 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?
297
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
298
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
299
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
300
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
301
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
302
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
303
+
304
+
305
+ request_headers = {}
306
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
307
+
308
+ # Set Headers
309
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
310
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
311
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}'
312
+
313
+ request_url = @base_url || @client.base_url
314
+
315
+ options = {
316
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
317
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
318
+ query_params: {'api-version' => @client.api_version},
319
+ headers: request_headers.merge(custom_headers || {}),
320
+ base_url: request_url
321
+ }
322
+ promise = @client.make_request_async(:get, path_template, options)
323
+
324
+ promise = promise.then do |result|
325
+ http_response = result.response
326
+ status_code = http_response.status
327
+ response_content = http_response.body
328
+ unless status_code == 200
329
+ error_model = JSON.load(response_content)
330
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
331
+ end
332
+
333
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
334
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
335
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
336
+ # Deserialize Response
337
+ if status_code == 200
338
+ begin
339
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
340
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagContract.mapper()
341
+ result.body = @client.deserialize(result_mapper, parsed_response)
342
+ rescue Exception => e
343
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
344
+ end
345
+ end
346
+
347
+ result
348
+ end
349
+
350
+ promise.execute
351
+ end
352
+
353
+ #
354
+ # Creates a tag.
355
+ #
356
+ # @param resource_group_name [String] The name of the resource group.
357
+ # @param service_name [String] The name of the API Management service.
358
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
359
+ # Management service instance.
360
+ # @param parameters [TagCreateUpdateParameters] Create parameters.
361
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
362
+ # will be added to the HTTP request.
363
+ #
364
+ # @return [TagContract] operation results.
365
+ #
366
+ def create_or_update(resource_group_name, service_name, tag_id, parameters, custom_headers:nil)
367
+ response = create_or_update_async(resource_group_name, service_name, tag_id, parameters, custom_headers:custom_headers).value!
368
+ response.body unless response.nil?
369
+ end
370
+
371
+ #
372
+ # Creates a tag.
373
+ #
374
+ # @param resource_group_name [String] The name of the resource group.
375
+ # @param service_name [String] The name of the API Management service.
376
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
377
+ # Management service instance.
378
+ # @param parameters [TagCreateUpdateParameters] Create parameters.
379
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
380
+ # will be added to the HTTP request.
381
+ #
382
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
383
+ #
384
+ def create_or_update_with_http_info(resource_group_name, service_name, tag_id, parameters, custom_headers:nil)
385
+ create_or_update_async(resource_group_name, service_name, tag_id, parameters, custom_headers:custom_headers).value!
386
+ end
387
+
388
+ #
389
+ # Creates a tag.
390
+ #
391
+ # @param resource_group_name [String] The name of the resource group.
392
+ # @param service_name [String] The name of the API Management service.
393
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
394
+ # Management service instance.
395
+ # @param parameters [TagCreateUpdateParameters] Create parameters.
396
+ # @param [Hash{String => String}] A hash of custom headers that will be added
397
+ # to the HTTP request.
398
+ #
399
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
400
+ #
401
+ def create_or_update_async(resource_group_name, service_name, tag_id, parameters, custom_headers:nil)
402
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
403
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
404
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
405
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
406
+ 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?
407
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
408
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
409
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
410
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.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['accept-language'] = @client.accept_language unless @client.accept_language.nil?
422
+
423
+ # Serialize Request
424
+ request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagCreateUpdateParameters.mapper()
425
+ request_content = @client.serialize(request_mapper, parameters)
426
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
427
+
428
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}'
429
+
430
+ request_url = @base_url || @client.base_url
431
+
432
+ options = {
433
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
434
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
435
+ query_params: {'api-version' => @client.api_version},
436
+ body: request_content,
437
+ headers: request_headers.merge(custom_headers || {}),
438
+ base_url: request_url
439
+ }
440
+ promise = @client.make_request_async(:put, path_template, options)
441
+
442
+ promise = promise.then do |result|
443
+ http_response = result.response
444
+ status_code = http_response.status
445
+ response_content = http_response.body
446
+ unless status_code == 201 || status_code == 200
447
+ error_model = JSON.load(response_content)
448
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
449
+ end
450
+
451
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
452
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
453
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
454
+ # Deserialize Response
455
+ if status_code == 201
456
+ begin
457
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
458
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagContract.mapper()
459
+ result.body = @client.deserialize(result_mapper, parsed_response)
460
+ rescue Exception => e
461
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
462
+ end
463
+ end
464
+ # Deserialize Response
465
+ if status_code == 200
466
+ begin
467
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
468
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagContract.mapper()
469
+ result.body = @client.deserialize(result_mapper, parsed_response)
470
+ rescue Exception => e
471
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
472
+ end
473
+ end
474
+
475
+ result
476
+ end
477
+
478
+ promise.execute
479
+ end
480
+
481
+ #
482
+ # Updates the details of the tag specified by its identifier.
483
+ #
484
+ # @param resource_group_name [String] The name of the resource group.
485
+ # @param service_name [String] The name of the API Management service.
486
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
487
+ # Management service instance.
488
+ # @param parameters [TagCreateUpdateParameters] Update parameters.
489
+ # @param if_match [String] ETag of the Entity. ETag should match the current
490
+ # entity state from the header response of the GET request or it should be *
491
+ # for unconditional update.
492
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
493
+ # will be added to the HTTP request.
494
+ #
495
+ #
496
+ def update(resource_group_name, service_name, tag_id, parameters, if_match, custom_headers:nil)
497
+ response = update_async(resource_group_name, service_name, tag_id, parameters, if_match, custom_headers:custom_headers).value!
498
+ nil
499
+ end
500
+
501
+ #
502
+ # Updates the details of the tag specified by its identifier.
503
+ #
504
+ # @param resource_group_name [String] The name of the resource group.
505
+ # @param service_name [String] The name of the API Management service.
506
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
507
+ # Management service instance.
508
+ # @param parameters [TagCreateUpdateParameters] Update parameters.
509
+ # @param if_match [String] ETag of the Entity. ETag should match the current
510
+ # entity state from the header response of the GET request or it should be *
511
+ # for unconditional update.
512
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
513
+ # will be added to the HTTP request.
514
+ #
515
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
516
+ #
517
+ def update_with_http_info(resource_group_name, service_name, tag_id, parameters, if_match, custom_headers:nil)
518
+ update_async(resource_group_name, service_name, tag_id, parameters, if_match, custom_headers:custom_headers).value!
519
+ end
520
+
521
+ #
522
+ # Updates the details of the tag specified by its identifier.
523
+ #
524
+ # @param resource_group_name [String] The name of the resource group.
525
+ # @param service_name [String] The name of the API Management service.
526
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
527
+ # Management service instance.
528
+ # @param parameters [TagCreateUpdateParameters] Update parameters.
529
+ # @param if_match [String] ETag of the Entity. ETag should match the current
530
+ # entity state from the header response of the GET request or it should be *
531
+ # for unconditional update.
532
+ # @param [Hash{String => String}] A hash of custom headers that will be added
533
+ # to the HTTP request.
534
+ #
535
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
536
+ #
537
+ def update_async(resource_group_name, service_name, tag_id, parameters, if_match, custom_headers:nil)
538
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
539
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
540
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
541
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
542
+ 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?
543
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
544
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
545
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
546
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
547
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
548
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
549
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
550
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
551
+
552
+
553
+ request_headers = {}
554
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
555
+
556
+ # Set Headers
557
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
558
+ request_headers['If-Match'] = if_match unless if_match.nil?
559
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
560
+
561
+ # Serialize Request
562
+ request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagCreateUpdateParameters.mapper()
563
+ request_content = @client.serialize(request_mapper, parameters)
564
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
565
+
566
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}'
567
+
568
+ request_url = @base_url || @client.base_url
569
+
570
+ options = {
571
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
572
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
573
+ query_params: {'api-version' => @client.api_version},
574
+ body: request_content,
575
+ headers: request_headers.merge(custom_headers || {}),
576
+ base_url: request_url
577
+ }
578
+ promise = @client.make_request_async(:patch, path_template, options)
579
+
580
+ promise = promise.then do |result|
581
+ http_response = result.response
582
+ status_code = http_response.status
583
+ response_content = http_response.body
584
+ unless status_code == 204
585
+ error_model = JSON.load(response_content)
586
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
587
+ end
588
+
589
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
590
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
591
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
592
+
593
+ result
594
+ end
595
+
596
+ promise.execute
597
+ end
598
+
599
+ #
600
+ # Deletes specific tag of the API Management service instance.
601
+ #
602
+ # @param resource_group_name [String] The name of the resource group.
603
+ # @param service_name [String] The name of the API Management service.
604
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
605
+ # Management service instance.
606
+ # @param if_match [String] ETag of the Entity. ETag should match the current
607
+ # entity state from the header response of the GET request or it should be *
608
+ # for unconditional update.
609
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
610
+ # will be added to the HTTP request.
611
+ #
612
+ #
613
+ def delete(resource_group_name, service_name, tag_id, if_match, custom_headers:nil)
614
+ response = delete_async(resource_group_name, service_name, tag_id, if_match, custom_headers:custom_headers).value!
615
+ nil
616
+ end
617
+
618
+ #
619
+ # Deletes specific tag of the API Management service instance.
620
+ #
621
+ # @param resource_group_name [String] The name of the resource group.
622
+ # @param service_name [String] The name of the API Management service.
623
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
624
+ # Management service instance.
625
+ # @param if_match [String] ETag of the Entity. ETag should match the current
626
+ # entity state from the header response of the GET request or it should be *
627
+ # for unconditional update.
628
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
629
+ # will be added to the HTTP request.
630
+ #
631
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
632
+ #
633
+ def delete_with_http_info(resource_group_name, service_name, tag_id, if_match, custom_headers:nil)
634
+ delete_async(resource_group_name, service_name, tag_id, if_match, custom_headers:custom_headers).value!
635
+ end
636
+
637
+ #
638
+ # Deletes specific tag of the API Management service instance.
639
+ #
640
+ # @param resource_group_name [String] The name of the resource group.
641
+ # @param service_name [String] The name of the API Management service.
642
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
643
+ # Management service instance.
644
+ # @param if_match [String] ETag of the Entity. ETag should match the current
645
+ # entity state from the header response of the GET request or it should be *
646
+ # for unconditional update.
647
+ # @param [Hash{String => String}] A hash of custom headers that will be added
648
+ # to the HTTP request.
649
+ #
650
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
651
+ #
652
+ def delete_async(resource_group_name, service_name, tag_id, if_match, custom_headers:nil)
653
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
654
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
655
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
656
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
657
+ 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?
658
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
659
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
660
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
661
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
662
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
663
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
664
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
665
+
666
+
667
+ request_headers = {}
668
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
669
+
670
+ # Set Headers
671
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
672
+ request_headers['If-Match'] = if_match unless if_match.nil?
673
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
674
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}'
675
+
676
+ request_url = @base_url || @client.base_url
677
+
678
+ options = {
679
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
680
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
681
+ query_params: {'api-version' => @client.api_version},
682
+ headers: request_headers.merge(custom_headers || {}),
683
+ base_url: request_url
684
+ }
685
+ promise = @client.make_request_async(:delete, path_template, options)
686
+
687
+ promise = promise.then do |result|
688
+ http_response = result.response
689
+ status_code = http_response.status
690
+ response_content = http_response.body
691
+ unless status_code == 200 || status_code == 204
692
+ error_model = JSON.load(response_content)
693
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
694
+ end
695
+
696
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
697
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
698
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
699
+
700
+ result
701
+ end
702
+
703
+ promise.execute
704
+ end
705
+
706
+ #
707
+ # Lists all Tags associated with the API.
708
+ #
709
+ # @param resource_group_name [String] The name of the resource group.
710
+ # @param service_name [String] The name of the API Management service.
711
+ # @param api_id [String] API revision identifier. Must be unique in the current
712
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
713
+ # where n is the revision number.
714
+ # @param filter [String] | Field | Supported operators | Supported
715
+ # functions |
716
+ # |-------------|------------------------|---------------------------------------------|
717
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
718
+ # endswith |
719
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
720
+ # endswith |
721
+ # @param top [Integer] Number of records to return.
722
+ # @param skip [Integer] Number of records to skip.
723
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
724
+ # will be added to the HTTP request.
725
+ #
726
+ # @return [Array<TagContract>] operation results.
727
+ #
728
+ def list_by_api(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
729
+ first_page = list_by_api_as_lazy(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
730
+ first_page.get_all_items
731
+ end
732
+
733
+ #
734
+ # Lists all Tags associated with the API.
735
+ #
736
+ # @param resource_group_name [String] The name of the resource group.
737
+ # @param service_name [String] The name of the API Management service.
738
+ # @param api_id [String] API revision identifier. Must be unique in the current
739
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
740
+ # where n is the revision number.
741
+ # @param filter [String] | Field | Supported operators | Supported
742
+ # functions |
743
+ # |-------------|------------------------|---------------------------------------------|
744
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
745
+ # endswith |
746
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
747
+ # endswith |
748
+ # @param top [Integer] Number of records to return.
749
+ # @param skip [Integer] Number of records to skip.
750
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
751
+ # will be added to the HTTP request.
752
+ #
753
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
754
+ #
755
+ def list_by_api_with_http_info(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
756
+ list_by_api_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
757
+ end
758
+
759
+ #
760
+ # Lists all Tags associated with the API.
761
+ #
762
+ # @param resource_group_name [String] The name of the resource group.
763
+ # @param service_name [String] The name of the API Management service.
764
+ # @param api_id [String] API revision identifier. Must be unique in the current
765
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
766
+ # where n is the revision number.
767
+ # @param filter [String] | Field | Supported operators | Supported
768
+ # functions |
769
+ # |-------------|------------------------|---------------------------------------------|
770
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
771
+ # endswith |
772
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
773
+ # endswith |
774
+ # @param top [Integer] Number of records to return.
775
+ # @param skip [Integer] Number of records to skip.
776
+ # @param [Hash{String => String}] A hash of custom headers that will be added
777
+ # to the HTTP request.
778
+ #
779
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
780
+ #
781
+ def list_by_api_async(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
782
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
783
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
784
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
785
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
786
+ 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?
787
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
788
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
789
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
790
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
791
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
792
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
793
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
794
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
795
+
796
+
797
+ request_headers = {}
798
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
799
+
800
+ # Set Headers
801
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
802
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
803
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags'
804
+
805
+ request_url = @base_url || @client.base_url
806
+
807
+ options = {
808
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
809
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id},
810
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
811
+ headers: request_headers.merge(custom_headers || {}),
812
+ base_url: request_url
813
+ }
814
+ promise = @client.make_request_async(:get, path_template, options)
815
+
816
+ promise = promise.then do |result|
817
+ http_response = result.response
818
+ status_code = http_response.status
819
+ response_content = http_response.body
820
+ unless status_code == 200
821
+ error_model = JSON.load(response_content)
822
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
823
+ end
824
+
825
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
826
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
827
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
828
+ # Deserialize Response
829
+ if status_code == 200
830
+ begin
831
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
832
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagCollection.mapper()
833
+ result.body = @client.deserialize(result_mapper, parsed_response)
834
+ rescue Exception => e
835
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
836
+ end
837
+ end
838
+
839
+ result
840
+ end
841
+
842
+ promise.execute
843
+ end
844
+
845
+ #
846
+ # Gets the entity state version of the tag specified by its identifier.
847
+ #
848
+ # @param resource_group_name [String] The name of the resource group.
849
+ # @param service_name [String] The name of the API Management service.
850
+ # @param api_id [String] API revision identifier. Must be unique in the current
851
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
852
+ # where n is the revision number.
853
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
854
+ # Management service instance.
855
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
856
+ # will be added to the HTTP request.
857
+ #
858
+ #
859
+ def get_entity_state_by_api(resource_group_name, service_name, api_id, tag_id, custom_headers:nil)
860
+ response = get_entity_state_by_api_async(resource_group_name, service_name, api_id, tag_id, custom_headers:custom_headers).value!
861
+ nil
862
+ end
863
+
864
+ #
865
+ # Gets the entity state version of the tag specified by its identifier.
866
+ #
867
+ # @param resource_group_name [String] The name of the resource group.
868
+ # @param service_name [String] The name of the API Management service.
869
+ # @param api_id [String] API revision identifier. Must be unique in the current
870
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
871
+ # where n is the revision number.
872
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
873
+ # Management service instance.
874
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
875
+ # will be added to the HTTP request.
876
+ #
877
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
878
+ #
879
+ def get_entity_state_by_api_with_http_info(resource_group_name, service_name, api_id, tag_id, custom_headers:nil)
880
+ get_entity_state_by_api_async(resource_group_name, service_name, api_id, tag_id, custom_headers:custom_headers).value!
881
+ end
882
+
883
+ #
884
+ # Gets the entity state version of the tag specified by its identifier.
885
+ #
886
+ # @param resource_group_name [String] The name of the resource group.
887
+ # @param service_name [String] The name of the API Management service.
888
+ # @param api_id [String] API revision identifier. Must be unique in the current
889
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
890
+ # where n is the revision number.
891
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
892
+ # Management service instance.
893
+ # @param [Hash{String => String}] A hash of custom headers that will be added
894
+ # to the HTTP request.
895
+ #
896
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
897
+ #
898
+ def get_entity_state_by_api_async(resource_group_name, service_name, api_id, tag_id, custom_headers:nil)
899
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
900
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
901
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
902
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
903
+ 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?
904
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
905
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
906
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
907
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
908
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
909
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
910
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
911
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
912
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
913
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
914
+
915
+
916
+ request_headers = {}
917
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
918
+
919
+ # Set Headers
920
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
921
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
922
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}'
923
+
924
+ request_url = @base_url || @client.base_url
925
+
926
+ options = {
927
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
928
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
929
+ query_params: {'api-version' => @client.api_version},
930
+ headers: request_headers.merge(custom_headers || {}),
931
+ base_url: request_url
932
+ }
933
+ promise = @client.make_request_async(:head, path_template, options)
934
+
935
+ promise = promise.then do |result|
936
+ http_response = result.response
937
+ status_code = http_response.status
938
+ response_content = http_response.body
939
+ unless status_code == 200
940
+ error_model = JSON.load(response_content)
941
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
942
+ end
943
+
944
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
945
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
946
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
947
+
948
+ result
949
+ end
950
+
951
+ promise.execute
952
+ end
953
+
954
+ #
955
+ # Get tag associated with the API.
956
+ #
957
+ # @param resource_group_name [String] The name of the resource group.
958
+ # @param service_name [String] The name of the API Management service.
959
+ # @param api_id [String] API revision identifier. Must be unique in the current
960
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
961
+ # where n is the revision number.
962
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
963
+ # Management service instance.
964
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
965
+ # will be added to the HTTP request.
966
+ #
967
+ # @return [TagContract] operation results.
968
+ #
969
+ def get_by_api(resource_group_name, service_name, api_id, tag_id, custom_headers:nil)
970
+ response = get_by_api_async(resource_group_name, service_name, api_id, tag_id, custom_headers:custom_headers).value!
971
+ response.body unless response.nil?
972
+ end
973
+
974
+ #
975
+ # Get tag associated with the API.
976
+ #
977
+ # @param resource_group_name [String] The name of the resource group.
978
+ # @param service_name [String] The name of the API Management service.
979
+ # @param api_id [String] API revision identifier. Must be unique in the current
980
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
981
+ # where n is the revision number.
982
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
983
+ # Management service instance.
984
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
985
+ # will be added to the HTTP request.
986
+ #
987
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
988
+ #
989
+ def get_by_api_with_http_info(resource_group_name, service_name, api_id, tag_id, custom_headers:nil)
990
+ get_by_api_async(resource_group_name, service_name, api_id, tag_id, custom_headers:custom_headers).value!
991
+ end
992
+
993
+ #
994
+ # Get tag associated with the API.
995
+ #
996
+ # @param resource_group_name [String] The name of the resource group.
997
+ # @param service_name [String] The name of the API Management service.
998
+ # @param api_id [String] API revision identifier. Must be unique in the current
999
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1000
+ # where n is the revision number.
1001
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1002
+ # Management service instance.
1003
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1004
+ # to the HTTP request.
1005
+ #
1006
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1007
+ #
1008
+ def get_by_api_async(resource_group_name, service_name, api_id, tag_id, custom_headers:nil)
1009
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1010
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1011
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
1012
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
1013
+ 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?
1014
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
1015
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
1016
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
1017
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
1018
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
1019
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
1020
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
1021
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
1022
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1023
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1024
+
1025
+
1026
+ request_headers = {}
1027
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1028
+
1029
+ # Set Headers
1030
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1031
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1032
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}'
1033
+
1034
+ request_url = @base_url || @client.base_url
1035
+
1036
+ options = {
1037
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1038
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
1039
+ query_params: {'api-version' => @client.api_version},
1040
+ headers: request_headers.merge(custom_headers || {}),
1041
+ base_url: request_url
1042
+ }
1043
+ promise = @client.make_request_async(:get, path_template, options)
1044
+
1045
+ promise = promise.then do |result|
1046
+ http_response = result.response
1047
+ status_code = http_response.status
1048
+ response_content = http_response.body
1049
+ unless status_code == 200
1050
+ error_model = JSON.load(response_content)
1051
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1052
+ end
1053
+
1054
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1055
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1056
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1057
+ # Deserialize Response
1058
+ if status_code == 200
1059
+ begin
1060
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1061
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagContract.mapper()
1062
+ result.body = @client.deserialize(result_mapper, parsed_response)
1063
+ rescue Exception => e
1064
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1065
+ end
1066
+ end
1067
+
1068
+ result
1069
+ end
1070
+
1071
+ promise.execute
1072
+ end
1073
+
1074
+ #
1075
+ # Assign tag to the Api.
1076
+ #
1077
+ # @param resource_group_name [String] The name of the resource group.
1078
+ # @param service_name [String] The name of the API Management service.
1079
+ # @param api_id [String] API revision identifier. Must be unique in the current
1080
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1081
+ # where n is the revision number.
1082
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1083
+ # Management service instance.
1084
+ # @param if_match [String] ETag of the Entity. Not required when creating an
1085
+ # entity, but required when updating an entity.
1086
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1087
+ # will be added to the HTTP request.
1088
+ #
1089
+ # @return [TagContract] operation results.
1090
+ #
1091
+ def assign_to_api(resource_group_name, service_name, api_id, tag_id, if_match:nil, custom_headers:nil)
1092
+ response = assign_to_api_async(resource_group_name, service_name, api_id, tag_id, if_match:if_match, custom_headers:custom_headers).value!
1093
+ response.body unless response.nil?
1094
+ end
1095
+
1096
+ #
1097
+ # Assign tag to the Api.
1098
+ #
1099
+ # @param resource_group_name [String] The name of the resource group.
1100
+ # @param service_name [String] The name of the API Management service.
1101
+ # @param api_id [String] API revision identifier. Must be unique in the current
1102
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1103
+ # where n is the revision number.
1104
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1105
+ # Management service instance.
1106
+ # @param if_match [String] ETag of the Entity. Not required when creating an
1107
+ # entity, but required when updating an entity.
1108
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1109
+ # will be added to the HTTP request.
1110
+ #
1111
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1112
+ #
1113
+ def assign_to_api_with_http_info(resource_group_name, service_name, api_id, tag_id, if_match:nil, custom_headers:nil)
1114
+ assign_to_api_async(resource_group_name, service_name, api_id, tag_id, if_match:if_match, custom_headers:custom_headers).value!
1115
+ end
1116
+
1117
+ #
1118
+ # Assign tag to the Api.
1119
+ #
1120
+ # @param resource_group_name [String] The name of the resource group.
1121
+ # @param service_name [String] The name of the API Management service.
1122
+ # @param api_id [String] API revision identifier. Must be unique in the current
1123
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1124
+ # where n is the revision number.
1125
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1126
+ # Management service instance.
1127
+ # @param if_match [String] ETag of the Entity. Not required when creating an
1128
+ # entity, but required when updating an entity.
1129
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1130
+ # to the HTTP request.
1131
+ #
1132
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1133
+ #
1134
+ def assign_to_api_async(resource_group_name, service_name, api_id, tag_id, if_match:nil, custom_headers:nil)
1135
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1136
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1137
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
1138
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
1139
+ 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?
1140
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
1141
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
1142
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
1143
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
1144
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
1145
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
1146
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
1147
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
1148
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1149
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1150
+
1151
+
1152
+ request_headers = {}
1153
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1154
+
1155
+ # Set Headers
1156
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1157
+ request_headers['If-Match'] = if_match unless if_match.nil?
1158
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1159
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}'
1160
+
1161
+ request_url = @base_url || @client.base_url
1162
+
1163
+ options = {
1164
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1165
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
1166
+ query_params: {'api-version' => @client.api_version},
1167
+ headers: request_headers.merge(custom_headers || {}),
1168
+ base_url: request_url
1169
+ }
1170
+ promise = @client.make_request_async(:put, path_template, options)
1171
+
1172
+ promise = promise.then do |result|
1173
+ http_response = result.response
1174
+ status_code = http_response.status
1175
+ response_content = http_response.body
1176
+ unless status_code == 201 || status_code == 200
1177
+ error_model = JSON.load(response_content)
1178
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1179
+ end
1180
+
1181
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1182
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1183
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1184
+ # Deserialize Response
1185
+ if status_code == 201
1186
+ begin
1187
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1188
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagContract.mapper()
1189
+ result.body = @client.deserialize(result_mapper, parsed_response)
1190
+ rescue Exception => e
1191
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1192
+ end
1193
+ end
1194
+ # Deserialize Response
1195
+ if status_code == 200
1196
+ begin
1197
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1198
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagContract.mapper()
1199
+ result.body = @client.deserialize(result_mapper, parsed_response)
1200
+ rescue Exception => e
1201
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1202
+ end
1203
+ end
1204
+
1205
+ result
1206
+ end
1207
+
1208
+ promise.execute
1209
+ end
1210
+
1211
+ #
1212
+ # Detach the tag from the Api.
1213
+ #
1214
+ # @param resource_group_name [String] The name of the resource group.
1215
+ # @param service_name [String] The name of the API Management service.
1216
+ # @param api_id [String] API revision identifier. Must be unique in the current
1217
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1218
+ # where n is the revision number.
1219
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1220
+ # Management service instance.
1221
+ # @param if_match [String] ETag of the Entity. ETag should match the current
1222
+ # entity state from the header response of the GET request or it should be *
1223
+ # for unconditional update.
1224
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1225
+ # will be added to the HTTP request.
1226
+ #
1227
+ #
1228
+ def detach_from_api(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers:nil)
1229
+ response = detach_from_api_async(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers:custom_headers).value!
1230
+ nil
1231
+ end
1232
+
1233
+ #
1234
+ # Detach the tag from the Api.
1235
+ #
1236
+ # @param resource_group_name [String] The name of the resource group.
1237
+ # @param service_name [String] The name of the API Management service.
1238
+ # @param api_id [String] API revision identifier. Must be unique in the current
1239
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1240
+ # where n is the revision number.
1241
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1242
+ # Management service instance.
1243
+ # @param if_match [String] ETag of the Entity. ETag should match the current
1244
+ # entity state from the header response of the GET request or it should be *
1245
+ # for unconditional update.
1246
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1247
+ # will be added to the HTTP request.
1248
+ #
1249
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1250
+ #
1251
+ def detach_from_api_with_http_info(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers:nil)
1252
+ detach_from_api_async(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers:custom_headers).value!
1253
+ end
1254
+
1255
+ #
1256
+ # Detach the tag from the Api.
1257
+ #
1258
+ # @param resource_group_name [String] The name of the resource group.
1259
+ # @param service_name [String] The name of the API Management service.
1260
+ # @param api_id [String] API revision identifier. Must be unique in the current
1261
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1262
+ # where n is the revision number.
1263
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1264
+ # Management service instance.
1265
+ # @param if_match [String] ETag of the Entity. ETag should match the current
1266
+ # entity state from the header response of the GET request or it should be *
1267
+ # for unconditional update.
1268
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1269
+ # to the HTTP request.
1270
+ #
1271
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1272
+ #
1273
+ def detach_from_api_async(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers:nil)
1274
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1275
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1276
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
1277
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
1278
+ 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?
1279
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
1280
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
1281
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
1282
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
1283
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
1284
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
1285
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
1286
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
1287
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
1288
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1289
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1290
+
1291
+
1292
+ request_headers = {}
1293
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1294
+
1295
+ # Set Headers
1296
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1297
+ request_headers['If-Match'] = if_match unless if_match.nil?
1298
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1299
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}'
1300
+
1301
+ request_url = @base_url || @client.base_url
1302
+
1303
+ options = {
1304
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1305
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
1306
+ query_params: {'api-version' => @client.api_version},
1307
+ headers: request_headers.merge(custom_headers || {}),
1308
+ base_url: request_url
1309
+ }
1310
+ promise = @client.make_request_async(:delete, path_template, options)
1311
+
1312
+ promise = promise.then do |result|
1313
+ http_response = result.response
1314
+ status_code = http_response.status
1315
+ response_content = http_response.body
1316
+ unless status_code == 200 || status_code == 204
1317
+ error_model = JSON.load(response_content)
1318
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1319
+ end
1320
+
1321
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1322
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1323
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1324
+
1325
+ result
1326
+ end
1327
+
1328
+ promise.execute
1329
+ end
1330
+
1331
+ #
1332
+ # Lists all Tags associated with the Operation.
1333
+ #
1334
+ # @param resource_group_name [String] The name of the resource group.
1335
+ # @param service_name [String] The name of the API Management service.
1336
+ # @param api_id [String] API revision identifier. Must be unique in the current
1337
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1338
+ # where n is the revision number.
1339
+ # @param operation_id [String] Operation identifier within an API. Must be
1340
+ # unique in the current API Management service instance.
1341
+ # @param filter [String] | Field | Supported operators | Supported
1342
+ # functions |
1343
+ # |-------------|------------------------|---------------------------------------------|
1344
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1345
+ # endswith |
1346
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1347
+ # endswith |
1348
+ # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1349
+ # endswith |
1350
+ # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1351
+ # endswith |
1352
+ # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1353
+ # endswith |
1354
+ # @param top [Integer] Number of records to return.
1355
+ # @param skip [Integer] Number of records to skip.
1356
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1357
+ # will be added to the HTTP request.
1358
+ #
1359
+ # @return [Array<TagContract>] operation results.
1360
+ #
1361
+ def list_by_operation(resource_group_name, service_name, api_id, operation_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
1362
+ first_page = list_by_operation_as_lazy(resource_group_name, service_name, api_id, operation_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
1363
+ first_page.get_all_items
1364
+ end
1365
+
1366
+ #
1367
+ # Lists all Tags associated with the Operation.
1368
+ #
1369
+ # @param resource_group_name [String] The name of the resource group.
1370
+ # @param service_name [String] The name of the API Management service.
1371
+ # @param api_id [String] API revision identifier. Must be unique in the current
1372
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1373
+ # where n is the revision number.
1374
+ # @param operation_id [String] Operation identifier within an API. Must be
1375
+ # unique in the current API Management service instance.
1376
+ # @param filter [String] | Field | Supported operators | Supported
1377
+ # functions |
1378
+ # |-------------|------------------------|---------------------------------------------|
1379
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1380
+ # endswith |
1381
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1382
+ # endswith |
1383
+ # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1384
+ # endswith |
1385
+ # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1386
+ # endswith |
1387
+ # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1388
+ # endswith |
1389
+ # @param top [Integer] Number of records to return.
1390
+ # @param skip [Integer] Number of records to skip.
1391
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1392
+ # will be added to the HTTP request.
1393
+ #
1394
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1395
+ #
1396
+ def list_by_operation_with_http_info(resource_group_name, service_name, api_id, operation_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
1397
+ list_by_operation_async(resource_group_name, service_name, api_id, operation_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
1398
+ end
1399
+
1400
+ #
1401
+ # Lists all Tags associated with the Operation.
1402
+ #
1403
+ # @param resource_group_name [String] The name of the resource group.
1404
+ # @param service_name [String] The name of the API Management service.
1405
+ # @param api_id [String] API revision identifier. Must be unique in the current
1406
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1407
+ # where n is the revision number.
1408
+ # @param operation_id [String] Operation identifier within an API. Must be
1409
+ # unique in the current API Management service instance.
1410
+ # @param filter [String] | Field | Supported operators | Supported
1411
+ # functions |
1412
+ # |-------------|------------------------|---------------------------------------------|
1413
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1414
+ # endswith |
1415
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1416
+ # endswith |
1417
+ # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1418
+ # endswith |
1419
+ # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1420
+ # endswith |
1421
+ # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
1422
+ # endswith |
1423
+ # @param top [Integer] Number of records to return.
1424
+ # @param skip [Integer] Number of records to skip.
1425
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1426
+ # to the HTTP request.
1427
+ #
1428
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1429
+ #
1430
+ def list_by_operation_async(resource_group_name, service_name, api_id, operation_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
1431
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1432
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1433
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
1434
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
1435
+ 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?
1436
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
1437
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
1438
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
1439
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
1440
+ fail ArgumentError, 'operation_id is nil' if operation_id.nil?
1441
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '80'" if !operation_id.nil? && operation_id.length > 80
1442
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
1443
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !operation_id.nil? && operation_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
1444
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
1445
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
1446
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1447
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1448
+
1449
+
1450
+ request_headers = {}
1451
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1452
+
1453
+ # Set Headers
1454
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1455
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1456
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags'
1457
+
1458
+ request_url = @base_url || @client.base_url
1459
+
1460
+ options = {
1461
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1462
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
1463
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
1464
+ headers: request_headers.merge(custom_headers || {}),
1465
+ base_url: request_url
1466
+ }
1467
+ promise = @client.make_request_async(:get, path_template, options)
1468
+
1469
+ promise = promise.then do |result|
1470
+ http_response = result.response
1471
+ status_code = http_response.status
1472
+ response_content = http_response.body
1473
+ unless status_code == 200
1474
+ error_model = JSON.load(response_content)
1475
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1476
+ end
1477
+
1478
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1479
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1480
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1481
+ # Deserialize Response
1482
+ if status_code == 200
1483
+ begin
1484
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1485
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagCollection.mapper()
1486
+ result.body = @client.deserialize(result_mapper, parsed_response)
1487
+ rescue Exception => e
1488
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1489
+ end
1490
+ end
1491
+
1492
+ result
1493
+ end
1494
+
1495
+ promise.execute
1496
+ end
1497
+
1498
+ #
1499
+ # Gets the entity state version of the tag specified by its identifier.
1500
+ #
1501
+ # @param resource_group_name [String] The name of the resource group.
1502
+ # @param service_name [String] The name of the API Management service.
1503
+ # @param api_id [String] API revision identifier. Must be unique in the current
1504
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1505
+ # where n is the revision number.
1506
+ # @param operation_id [String] Operation identifier within an API. Must be
1507
+ # unique in the current API Management service instance.
1508
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1509
+ # Management service instance.
1510
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1511
+ # will be added to the HTTP request.
1512
+ #
1513
+ #
1514
+ def get_entity_state_by_operation(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers:nil)
1515
+ response = get_entity_state_by_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers:custom_headers).value!
1516
+ nil
1517
+ end
1518
+
1519
+ #
1520
+ # Gets the entity state version of the tag specified by its identifier.
1521
+ #
1522
+ # @param resource_group_name [String] The name of the resource group.
1523
+ # @param service_name [String] The name of the API Management service.
1524
+ # @param api_id [String] API revision identifier. Must be unique in the current
1525
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1526
+ # where n is the revision number.
1527
+ # @param operation_id [String] Operation identifier within an API. Must be
1528
+ # unique in the current API Management service instance.
1529
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1530
+ # Management service instance.
1531
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1532
+ # will be added to the HTTP request.
1533
+ #
1534
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1535
+ #
1536
+ def get_entity_state_by_operation_with_http_info(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers:nil)
1537
+ get_entity_state_by_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers:custom_headers).value!
1538
+ end
1539
+
1540
+ #
1541
+ # Gets the entity state version of the tag specified by its identifier.
1542
+ #
1543
+ # @param resource_group_name [String] The name of the resource group.
1544
+ # @param service_name [String] The name of the API Management service.
1545
+ # @param api_id [String] API revision identifier. Must be unique in the current
1546
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1547
+ # where n is the revision number.
1548
+ # @param operation_id [String] Operation identifier within an API. Must be
1549
+ # unique in the current API Management service instance.
1550
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1551
+ # Management service instance.
1552
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1553
+ # to the HTTP request.
1554
+ #
1555
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1556
+ #
1557
+ def get_entity_state_by_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers:nil)
1558
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1559
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1560
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
1561
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
1562
+ 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?
1563
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
1564
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
1565
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
1566
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
1567
+ fail ArgumentError, 'operation_id is nil' if operation_id.nil?
1568
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '80'" if !operation_id.nil? && operation_id.length > 80
1569
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
1570
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !operation_id.nil? && operation_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
1571
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
1572
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
1573
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
1574
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
1575
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1576
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1577
+
1578
+
1579
+ request_headers = {}
1580
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1581
+
1582
+ # Set Headers
1583
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1584
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1585
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}'
1586
+
1587
+ request_url = @base_url || @client.base_url
1588
+
1589
+ options = {
1590
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1591
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
1592
+ query_params: {'api-version' => @client.api_version},
1593
+ headers: request_headers.merge(custom_headers || {}),
1594
+ base_url: request_url
1595
+ }
1596
+ promise = @client.make_request_async(:head, path_template, options)
1597
+
1598
+ promise = promise.then do |result|
1599
+ http_response = result.response
1600
+ status_code = http_response.status
1601
+ response_content = http_response.body
1602
+ unless status_code == 200
1603
+ error_model = JSON.load(response_content)
1604
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1605
+ end
1606
+
1607
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1608
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1609
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1610
+
1611
+ result
1612
+ end
1613
+
1614
+ promise.execute
1615
+ end
1616
+
1617
+ #
1618
+ # Get tag associated with the Operation.
1619
+ #
1620
+ # @param resource_group_name [String] The name of the resource group.
1621
+ # @param service_name [String] The name of the API Management service.
1622
+ # @param api_id [String] API revision identifier. Must be unique in the current
1623
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1624
+ # where n is the revision number.
1625
+ # @param operation_id [String] Operation identifier within an API. Must be
1626
+ # unique in the current API Management service instance.
1627
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1628
+ # Management service instance.
1629
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1630
+ # will be added to the HTTP request.
1631
+ #
1632
+ # @return [TagContract] operation results.
1633
+ #
1634
+ def get_by_operation(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers:nil)
1635
+ response = get_by_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers:custom_headers).value!
1636
+ response.body unless response.nil?
1637
+ end
1638
+
1639
+ #
1640
+ # Get tag associated with the Operation.
1641
+ #
1642
+ # @param resource_group_name [String] The name of the resource group.
1643
+ # @param service_name [String] The name of the API Management service.
1644
+ # @param api_id [String] API revision identifier. Must be unique in the current
1645
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1646
+ # where n is the revision number.
1647
+ # @param operation_id [String] Operation identifier within an API. Must be
1648
+ # unique in the current API Management service instance.
1649
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1650
+ # Management service instance.
1651
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1652
+ # will be added to the HTTP request.
1653
+ #
1654
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1655
+ #
1656
+ def get_by_operation_with_http_info(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers:nil)
1657
+ get_by_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers:custom_headers).value!
1658
+ end
1659
+
1660
+ #
1661
+ # Get tag associated with the Operation.
1662
+ #
1663
+ # @param resource_group_name [String] The name of the resource group.
1664
+ # @param service_name [String] The name of the API Management service.
1665
+ # @param api_id [String] API revision identifier. Must be unique in the current
1666
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1667
+ # where n is the revision number.
1668
+ # @param operation_id [String] Operation identifier within an API. Must be
1669
+ # unique in the current API Management service instance.
1670
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1671
+ # Management service instance.
1672
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1673
+ # to the HTTP request.
1674
+ #
1675
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1676
+ #
1677
+ def get_by_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers:nil)
1678
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1679
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1680
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
1681
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
1682
+ 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?
1683
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
1684
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
1685
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
1686
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
1687
+ fail ArgumentError, 'operation_id is nil' if operation_id.nil?
1688
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '80'" if !operation_id.nil? && operation_id.length > 80
1689
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
1690
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !operation_id.nil? && operation_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
1691
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
1692
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
1693
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
1694
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
1695
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1696
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1697
+
1698
+
1699
+ request_headers = {}
1700
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1701
+
1702
+ # Set Headers
1703
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1704
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1705
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}'
1706
+
1707
+ request_url = @base_url || @client.base_url
1708
+
1709
+ options = {
1710
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1711
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
1712
+ query_params: {'api-version' => @client.api_version},
1713
+ headers: request_headers.merge(custom_headers || {}),
1714
+ base_url: request_url
1715
+ }
1716
+ promise = @client.make_request_async(:get, path_template, options)
1717
+
1718
+ promise = promise.then do |result|
1719
+ http_response = result.response
1720
+ status_code = http_response.status
1721
+ response_content = http_response.body
1722
+ unless status_code == 200
1723
+ error_model = JSON.load(response_content)
1724
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1725
+ end
1726
+
1727
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1728
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1729
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1730
+ # Deserialize Response
1731
+ if status_code == 200
1732
+ begin
1733
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1734
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagContract.mapper()
1735
+ result.body = @client.deserialize(result_mapper, parsed_response)
1736
+ rescue Exception => e
1737
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1738
+ end
1739
+ end
1740
+
1741
+ result
1742
+ end
1743
+
1744
+ promise.execute
1745
+ end
1746
+
1747
+ #
1748
+ # Assign tag to the Operation.
1749
+ #
1750
+ # @param resource_group_name [String] The name of the resource group.
1751
+ # @param service_name [String] The name of the API Management service.
1752
+ # @param api_id [String] API revision identifier. Must be unique in the current
1753
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1754
+ # where n is the revision number.
1755
+ # @param operation_id [String] Operation identifier within an API. Must be
1756
+ # unique in the current API Management service instance.
1757
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1758
+ # Management service instance.
1759
+ # @param if_match [String] ETag of the Entity. Not required when creating an
1760
+ # entity, but required when updating an entity.
1761
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1762
+ # will be added to the HTTP request.
1763
+ #
1764
+ # @return [TagContract] operation results.
1765
+ #
1766
+ def assign_to_operation(resource_group_name, service_name, api_id, operation_id, tag_id, if_match:nil, custom_headers:nil)
1767
+ response = assign_to_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match:if_match, custom_headers:custom_headers).value!
1768
+ response.body unless response.nil?
1769
+ end
1770
+
1771
+ #
1772
+ # Assign tag to the Operation.
1773
+ #
1774
+ # @param resource_group_name [String] The name of the resource group.
1775
+ # @param service_name [String] The name of the API Management service.
1776
+ # @param api_id [String] API revision identifier. Must be unique in the current
1777
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1778
+ # where n is the revision number.
1779
+ # @param operation_id [String] Operation identifier within an API. Must be
1780
+ # unique in the current API Management service instance.
1781
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1782
+ # Management service instance.
1783
+ # @param if_match [String] ETag of the Entity. Not required when creating an
1784
+ # entity, but required when updating an entity.
1785
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1786
+ # will be added to the HTTP request.
1787
+ #
1788
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1789
+ #
1790
+ def assign_to_operation_with_http_info(resource_group_name, service_name, api_id, operation_id, tag_id, if_match:nil, custom_headers:nil)
1791
+ assign_to_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match:if_match, custom_headers:custom_headers).value!
1792
+ end
1793
+
1794
+ #
1795
+ # Assign tag to the Operation.
1796
+ #
1797
+ # @param resource_group_name [String] The name of the resource group.
1798
+ # @param service_name [String] The name of the API Management service.
1799
+ # @param api_id [String] API revision identifier. Must be unique in the current
1800
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1801
+ # where n is the revision number.
1802
+ # @param operation_id [String] Operation identifier within an API. Must be
1803
+ # unique in the current API Management service instance.
1804
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1805
+ # Management service instance.
1806
+ # @param if_match [String] ETag of the Entity. Not required when creating an
1807
+ # entity, but required when updating an entity.
1808
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1809
+ # to the HTTP request.
1810
+ #
1811
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1812
+ #
1813
+ def assign_to_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match:nil, custom_headers:nil)
1814
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1815
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1816
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
1817
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
1818
+ 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?
1819
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
1820
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
1821
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
1822
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
1823
+ fail ArgumentError, 'operation_id is nil' if operation_id.nil?
1824
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '80'" if !operation_id.nil? && operation_id.length > 80
1825
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
1826
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !operation_id.nil? && operation_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
1827
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
1828
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
1829
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
1830
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
1831
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1832
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1833
+
1834
+
1835
+ request_headers = {}
1836
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1837
+
1838
+ # Set Headers
1839
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1840
+ request_headers['If-Match'] = if_match unless if_match.nil?
1841
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1842
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}'
1843
+
1844
+ request_url = @base_url || @client.base_url
1845
+
1846
+ options = {
1847
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1848
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
1849
+ query_params: {'api-version' => @client.api_version},
1850
+ headers: request_headers.merge(custom_headers || {}),
1851
+ base_url: request_url
1852
+ }
1853
+ promise = @client.make_request_async(:put, path_template, options)
1854
+
1855
+ promise = promise.then do |result|
1856
+ http_response = result.response
1857
+ status_code = http_response.status
1858
+ response_content = http_response.body
1859
+ unless status_code == 201 || status_code == 200
1860
+ error_model = JSON.load(response_content)
1861
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1862
+ end
1863
+
1864
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1865
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1866
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1867
+ # Deserialize Response
1868
+ if status_code == 201
1869
+ begin
1870
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1871
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagContract.mapper()
1872
+ result.body = @client.deserialize(result_mapper, parsed_response)
1873
+ rescue Exception => e
1874
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1875
+ end
1876
+ end
1877
+ # Deserialize Response
1878
+ if status_code == 200
1879
+ begin
1880
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1881
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagContract.mapper()
1882
+ result.body = @client.deserialize(result_mapper, parsed_response)
1883
+ rescue Exception => e
1884
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1885
+ end
1886
+ end
1887
+
1888
+ result
1889
+ end
1890
+
1891
+ promise.execute
1892
+ end
1893
+
1894
+ #
1895
+ # Detach the tag from the Operation.
1896
+ #
1897
+ # @param resource_group_name [String] The name of the resource group.
1898
+ # @param service_name [String] The name of the API Management service.
1899
+ # @param api_id [String] API revision identifier. Must be unique in the current
1900
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1901
+ # where n is the revision number.
1902
+ # @param operation_id [String] Operation identifier within an API. Must be
1903
+ # unique in the current API Management service instance.
1904
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1905
+ # Management service instance.
1906
+ # @param if_match [String] ETag of the Entity. ETag should match the current
1907
+ # entity state from the header response of the GET request or it should be *
1908
+ # for unconditional update.
1909
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1910
+ # will be added to the HTTP request.
1911
+ #
1912
+ #
1913
+ def detach_from_operation(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers:nil)
1914
+ response = detach_from_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers:custom_headers).value!
1915
+ nil
1916
+ end
1917
+
1918
+ #
1919
+ # Detach the tag from the Operation.
1920
+ #
1921
+ # @param resource_group_name [String] The name of the resource group.
1922
+ # @param service_name [String] The name of the API Management service.
1923
+ # @param api_id [String] API revision identifier. Must be unique in the current
1924
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1925
+ # where n is the revision number.
1926
+ # @param operation_id [String] Operation identifier within an API. Must be
1927
+ # unique in the current API Management service instance.
1928
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1929
+ # Management service instance.
1930
+ # @param if_match [String] ETag of the Entity. ETag should match the current
1931
+ # entity state from the header response of the GET request or it should be *
1932
+ # for unconditional update.
1933
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1934
+ # will be added to the HTTP request.
1935
+ #
1936
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1937
+ #
1938
+ def detach_from_operation_with_http_info(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers:nil)
1939
+ detach_from_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers:custom_headers).value!
1940
+ end
1941
+
1942
+ #
1943
+ # Detach the tag from the Operation.
1944
+ #
1945
+ # @param resource_group_name [String] The name of the resource group.
1946
+ # @param service_name [String] The name of the API Management service.
1947
+ # @param api_id [String] API revision identifier. Must be unique in the current
1948
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
1949
+ # where n is the revision number.
1950
+ # @param operation_id [String] Operation identifier within an API. Must be
1951
+ # unique in the current API Management service instance.
1952
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
1953
+ # Management service instance.
1954
+ # @param if_match [String] ETag of the Entity. ETag should match the current
1955
+ # entity state from the header response of the GET request or it should be *
1956
+ # for unconditional update.
1957
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1958
+ # to the HTTP request.
1959
+ #
1960
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1961
+ #
1962
+ def detach_from_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers:nil)
1963
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1964
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1965
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
1966
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
1967
+ 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?
1968
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
1969
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
1970
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
1971
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
1972
+ fail ArgumentError, 'operation_id is nil' if operation_id.nil?
1973
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '80'" if !operation_id.nil? && operation_id.length > 80
1974
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
1975
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !operation_id.nil? && operation_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
1976
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
1977
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
1978
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
1979
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
1980
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
1981
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1982
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1983
+
1984
+
1985
+ request_headers = {}
1986
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1987
+
1988
+ # Set Headers
1989
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1990
+ request_headers['If-Match'] = if_match unless if_match.nil?
1991
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1992
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}'
1993
+
1994
+ request_url = @base_url || @client.base_url
1995
+
1996
+ options = {
1997
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1998
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
1999
+ query_params: {'api-version' => @client.api_version},
2000
+ headers: request_headers.merge(custom_headers || {}),
2001
+ base_url: request_url
2002
+ }
2003
+ promise = @client.make_request_async(:delete, path_template, options)
2004
+
2005
+ promise = promise.then do |result|
2006
+ http_response = result.response
2007
+ status_code = http_response.status
2008
+ response_content = http_response.body
2009
+ unless status_code == 200 || status_code == 204
2010
+ error_model = JSON.load(response_content)
2011
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2012
+ end
2013
+
2014
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2015
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2016
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2017
+
2018
+ result
2019
+ end
2020
+
2021
+ promise.execute
2022
+ end
2023
+
2024
+ #
2025
+ # Lists all Tags associated with the Product.
2026
+ #
2027
+ # @param resource_group_name [String] The name of the resource group.
2028
+ # @param service_name [String] The name of the API Management service.
2029
+ # @param product_id [String] Product identifier. Must be unique in the current
2030
+ # API Management service instance.
2031
+ # @param filter [String] | Field | Supported operators | Supported
2032
+ # functions |
2033
+ # |-------------|------------------------|---------------------------------------------|
2034
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
2035
+ # endswith |
2036
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
2037
+ # endswith |
2038
+ # @param top [Integer] Number of records to return.
2039
+ # @param skip [Integer] Number of records to skip.
2040
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2041
+ # will be added to the HTTP request.
2042
+ #
2043
+ # @return [Array<TagContract>] operation results.
2044
+ #
2045
+ def list_by_product(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
2046
+ first_page = list_by_product_as_lazy(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
2047
+ first_page.get_all_items
2048
+ end
2049
+
2050
+ #
2051
+ # Lists all Tags associated with the Product.
2052
+ #
2053
+ # @param resource_group_name [String] The name of the resource group.
2054
+ # @param service_name [String] The name of the API Management service.
2055
+ # @param product_id [String] Product identifier. Must be unique in the current
2056
+ # API Management service instance.
2057
+ # @param filter [String] | Field | Supported operators | Supported
2058
+ # functions |
2059
+ # |-------------|------------------------|---------------------------------------------|
2060
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
2061
+ # endswith |
2062
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
2063
+ # endswith |
2064
+ # @param top [Integer] Number of records to return.
2065
+ # @param skip [Integer] Number of records to skip.
2066
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2067
+ # will be added to the HTTP request.
2068
+ #
2069
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2070
+ #
2071
+ def list_by_product_with_http_info(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
2072
+ list_by_product_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
2073
+ end
2074
+
2075
+ #
2076
+ # Lists all Tags associated with the Product.
2077
+ #
2078
+ # @param resource_group_name [String] The name of the resource group.
2079
+ # @param service_name [String] The name of the API Management service.
2080
+ # @param product_id [String] Product identifier. Must be unique in the current
2081
+ # API Management service instance.
2082
+ # @param filter [String] | Field | Supported operators | Supported
2083
+ # functions |
2084
+ # |-------------|------------------------|---------------------------------------------|
2085
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
2086
+ # endswith |
2087
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
2088
+ # endswith |
2089
+ # @param top [Integer] Number of records to return.
2090
+ # @param skip [Integer] Number of records to skip.
2091
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2092
+ # to the HTTP request.
2093
+ #
2094
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2095
+ #
2096
+ def list_by_product_async(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
2097
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2098
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
2099
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
2100
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
2101
+ 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?
2102
+ fail ArgumentError, 'product_id is nil' if product_id.nil?
2103
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '80'" if !product_id.nil? && product_id.length > 80
2104
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1
2105
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !product_id.nil? && product_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
2106
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
2107
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
2108
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2109
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2110
+
2111
+
2112
+ request_headers = {}
2113
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2114
+
2115
+ # Set Headers
2116
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2117
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2118
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags'
2119
+
2120
+ request_url = @base_url || @client.base_url
2121
+
2122
+ options = {
2123
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2124
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'subscriptionId' => @client.subscription_id},
2125
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
2126
+ headers: request_headers.merge(custom_headers || {}),
2127
+ base_url: request_url
2128
+ }
2129
+ promise = @client.make_request_async(:get, path_template, options)
2130
+
2131
+ promise = promise.then do |result|
2132
+ http_response = result.response
2133
+ status_code = http_response.status
2134
+ response_content = http_response.body
2135
+ unless status_code == 200
2136
+ error_model = JSON.load(response_content)
2137
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2138
+ end
2139
+
2140
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2141
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2142
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2143
+ # Deserialize Response
2144
+ if status_code == 200
2145
+ begin
2146
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2147
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagCollection.mapper()
2148
+ result.body = @client.deserialize(result_mapper, parsed_response)
2149
+ rescue Exception => e
2150
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2151
+ end
2152
+ end
2153
+
2154
+ result
2155
+ end
2156
+
2157
+ promise.execute
2158
+ end
2159
+
2160
+ #
2161
+ # Gets the entity state version of the tag specified by its identifier.
2162
+ #
2163
+ # @param resource_group_name [String] The name of the resource group.
2164
+ # @param service_name [String] The name of the API Management service.
2165
+ # @param product_id [String] Product identifier. Must be unique in the current
2166
+ # API Management service instance.
2167
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
2168
+ # Management service instance.
2169
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2170
+ # will be added to the HTTP request.
2171
+ #
2172
+ #
2173
+ def get_entity_state_by_product(resource_group_name, service_name, product_id, tag_id, custom_headers:nil)
2174
+ response = get_entity_state_by_product_async(resource_group_name, service_name, product_id, tag_id, custom_headers:custom_headers).value!
2175
+ nil
2176
+ end
2177
+
2178
+ #
2179
+ # Gets the entity state version of the tag specified by its identifier.
2180
+ #
2181
+ # @param resource_group_name [String] The name of the resource group.
2182
+ # @param service_name [String] The name of the API Management service.
2183
+ # @param product_id [String] Product identifier. Must be unique in the current
2184
+ # API Management service instance.
2185
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
2186
+ # Management service instance.
2187
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2188
+ # will be added to the HTTP request.
2189
+ #
2190
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2191
+ #
2192
+ def get_entity_state_by_product_with_http_info(resource_group_name, service_name, product_id, tag_id, custom_headers:nil)
2193
+ get_entity_state_by_product_async(resource_group_name, service_name, product_id, tag_id, custom_headers:custom_headers).value!
2194
+ end
2195
+
2196
+ #
2197
+ # Gets the entity state version of the tag specified by its identifier.
2198
+ #
2199
+ # @param resource_group_name [String] The name of the resource group.
2200
+ # @param service_name [String] The name of the API Management service.
2201
+ # @param product_id [String] Product identifier. Must be unique in the current
2202
+ # API Management service instance.
2203
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
2204
+ # Management service instance.
2205
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2206
+ # to the HTTP request.
2207
+ #
2208
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2209
+ #
2210
+ def get_entity_state_by_product_async(resource_group_name, service_name, product_id, tag_id, custom_headers:nil)
2211
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2212
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
2213
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
2214
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
2215
+ 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?
2216
+ fail ArgumentError, 'product_id is nil' if product_id.nil?
2217
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '80'" if !product_id.nil? && product_id.length > 80
2218
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1
2219
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !product_id.nil? && product_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
2220
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
2221
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
2222
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
2223
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
2224
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2225
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2226
+
2227
+
2228
+ request_headers = {}
2229
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2230
+
2231
+ # Set Headers
2232
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2233
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2234
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}'
2235
+
2236
+ request_url = @base_url || @client.base_url
2237
+
2238
+ options = {
2239
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2240
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
2241
+ query_params: {'api-version' => @client.api_version},
2242
+ headers: request_headers.merge(custom_headers || {}),
2243
+ base_url: request_url
2244
+ }
2245
+ promise = @client.make_request_async(:head, path_template, options)
2246
+
2247
+ promise = promise.then do |result|
2248
+ http_response = result.response
2249
+ status_code = http_response.status
2250
+ response_content = http_response.body
2251
+ unless status_code == 200
2252
+ error_model = JSON.load(response_content)
2253
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2254
+ end
2255
+
2256
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2257
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2258
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2259
+
2260
+ result
2261
+ end
2262
+
2263
+ promise.execute
2264
+ end
2265
+
2266
+ #
2267
+ # Get tag associated with the Product.
2268
+ #
2269
+ # @param resource_group_name [String] The name of the resource group.
2270
+ # @param service_name [String] The name of the API Management service.
2271
+ # @param product_id [String] Product identifier. Must be unique in the current
2272
+ # API Management service instance.
2273
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
2274
+ # Management service instance.
2275
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2276
+ # will be added to the HTTP request.
2277
+ #
2278
+ # @return [TagContract] operation results.
2279
+ #
2280
+ def get_by_product(resource_group_name, service_name, product_id, tag_id, custom_headers:nil)
2281
+ response = get_by_product_async(resource_group_name, service_name, product_id, tag_id, custom_headers:custom_headers).value!
2282
+ response.body unless response.nil?
2283
+ end
2284
+
2285
+ #
2286
+ # Get tag associated with the Product.
2287
+ #
2288
+ # @param resource_group_name [String] The name of the resource group.
2289
+ # @param service_name [String] The name of the API Management service.
2290
+ # @param product_id [String] Product identifier. Must be unique in the current
2291
+ # API Management service instance.
2292
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
2293
+ # Management service instance.
2294
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2295
+ # will be added to the HTTP request.
2296
+ #
2297
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2298
+ #
2299
+ def get_by_product_with_http_info(resource_group_name, service_name, product_id, tag_id, custom_headers:nil)
2300
+ get_by_product_async(resource_group_name, service_name, product_id, tag_id, custom_headers:custom_headers).value!
2301
+ end
2302
+
2303
+ #
2304
+ # Get tag associated with the Product.
2305
+ #
2306
+ # @param resource_group_name [String] The name of the resource group.
2307
+ # @param service_name [String] The name of the API Management service.
2308
+ # @param product_id [String] Product identifier. Must be unique in the current
2309
+ # API Management service instance.
2310
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
2311
+ # Management service instance.
2312
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2313
+ # to the HTTP request.
2314
+ #
2315
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2316
+ #
2317
+ def get_by_product_async(resource_group_name, service_name, product_id, tag_id, custom_headers:nil)
2318
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2319
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
2320
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
2321
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
2322
+ 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?
2323
+ fail ArgumentError, 'product_id is nil' if product_id.nil?
2324
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '80'" if !product_id.nil? && product_id.length > 80
2325
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1
2326
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !product_id.nil? && product_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
2327
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
2328
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
2329
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
2330
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
2331
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2332
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2333
+
2334
+
2335
+ request_headers = {}
2336
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2337
+
2338
+ # Set Headers
2339
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2340
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2341
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}'
2342
+
2343
+ request_url = @base_url || @client.base_url
2344
+
2345
+ options = {
2346
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2347
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
2348
+ query_params: {'api-version' => @client.api_version},
2349
+ headers: request_headers.merge(custom_headers || {}),
2350
+ base_url: request_url
2351
+ }
2352
+ promise = @client.make_request_async(:get, path_template, options)
2353
+
2354
+ promise = promise.then do |result|
2355
+ http_response = result.response
2356
+ status_code = http_response.status
2357
+ response_content = http_response.body
2358
+ unless status_code == 200
2359
+ error_model = JSON.load(response_content)
2360
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2361
+ end
2362
+
2363
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2364
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2365
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2366
+ # Deserialize Response
2367
+ if status_code == 200
2368
+ begin
2369
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2370
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagContract.mapper()
2371
+ result.body = @client.deserialize(result_mapper, parsed_response)
2372
+ rescue Exception => e
2373
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2374
+ end
2375
+ end
2376
+
2377
+ result
2378
+ end
2379
+
2380
+ promise.execute
2381
+ end
2382
+
2383
+ #
2384
+ # Assign tag to the Product.
2385
+ #
2386
+ # @param resource_group_name [String] The name of the resource group.
2387
+ # @param service_name [String] The name of the API Management service.
2388
+ # @param product_id [String] Product identifier. Must be unique in the current
2389
+ # API Management service instance.
2390
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
2391
+ # Management service instance.
2392
+ # @param if_match [String] ETag of the Entity. Not required when creating an
2393
+ # entity, but required when updating an entity.
2394
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2395
+ # will be added to the HTTP request.
2396
+ #
2397
+ # @return [TagContract] operation results.
2398
+ #
2399
+ def assign_to_product(resource_group_name, service_name, product_id, tag_id, if_match:nil, custom_headers:nil)
2400
+ response = assign_to_product_async(resource_group_name, service_name, product_id, tag_id, if_match:if_match, custom_headers:custom_headers).value!
2401
+ response.body unless response.nil?
2402
+ end
2403
+
2404
+ #
2405
+ # Assign tag to the Product.
2406
+ #
2407
+ # @param resource_group_name [String] The name of the resource group.
2408
+ # @param service_name [String] The name of the API Management service.
2409
+ # @param product_id [String] Product identifier. Must be unique in the current
2410
+ # API Management service instance.
2411
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
2412
+ # Management service instance.
2413
+ # @param if_match [String] ETag of the Entity. Not required when creating an
2414
+ # entity, but required when updating an entity.
2415
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2416
+ # will be added to the HTTP request.
2417
+ #
2418
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2419
+ #
2420
+ def assign_to_product_with_http_info(resource_group_name, service_name, product_id, tag_id, if_match:nil, custom_headers:nil)
2421
+ assign_to_product_async(resource_group_name, service_name, product_id, tag_id, if_match:if_match, custom_headers:custom_headers).value!
2422
+ end
2423
+
2424
+ #
2425
+ # Assign tag to the Product.
2426
+ #
2427
+ # @param resource_group_name [String] The name of the resource group.
2428
+ # @param service_name [String] The name of the API Management service.
2429
+ # @param product_id [String] Product identifier. Must be unique in the current
2430
+ # API Management service instance.
2431
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
2432
+ # Management service instance.
2433
+ # @param if_match [String] ETag of the Entity. Not required when creating an
2434
+ # entity, but required when updating an entity.
2435
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2436
+ # to the HTTP request.
2437
+ #
2438
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2439
+ #
2440
+ def assign_to_product_async(resource_group_name, service_name, product_id, tag_id, if_match:nil, custom_headers:nil)
2441
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2442
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
2443
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
2444
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
2445
+ 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?
2446
+ fail ArgumentError, 'product_id is nil' if product_id.nil?
2447
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '80'" if !product_id.nil? && product_id.length > 80
2448
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1
2449
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !product_id.nil? && product_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
2450
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
2451
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
2452
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
2453
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
2454
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2455
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2456
+
2457
+
2458
+ request_headers = {}
2459
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2460
+
2461
+ # Set Headers
2462
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2463
+ request_headers['If-Match'] = if_match unless if_match.nil?
2464
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2465
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}'
2466
+
2467
+ request_url = @base_url || @client.base_url
2468
+
2469
+ options = {
2470
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2471
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
2472
+ query_params: {'api-version' => @client.api_version},
2473
+ headers: request_headers.merge(custom_headers || {}),
2474
+ base_url: request_url
2475
+ }
2476
+ promise = @client.make_request_async(:put, path_template, options)
2477
+
2478
+ promise = promise.then do |result|
2479
+ http_response = result.response
2480
+ status_code = http_response.status
2481
+ response_content = http_response.body
2482
+ unless status_code == 201 || status_code == 200
2483
+ error_model = JSON.load(response_content)
2484
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2485
+ end
2486
+
2487
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2488
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2489
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2490
+ # Deserialize Response
2491
+ if status_code == 201
2492
+ begin
2493
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2494
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagContract.mapper()
2495
+ result.body = @client.deserialize(result_mapper, parsed_response)
2496
+ rescue Exception => e
2497
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2498
+ end
2499
+ end
2500
+ # Deserialize Response
2501
+ if status_code == 200
2502
+ begin
2503
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2504
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagContract.mapper()
2505
+ result.body = @client.deserialize(result_mapper, parsed_response)
2506
+ rescue Exception => e
2507
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2508
+ end
2509
+ end
2510
+
2511
+ result
2512
+ end
2513
+
2514
+ promise.execute
2515
+ end
2516
+
2517
+ #
2518
+ # Detach the tag from the Product.
2519
+ #
2520
+ # @param resource_group_name [String] The name of the resource group.
2521
+ # @param service_name [String] The name of the API Management service.
2522
+ # @param product_id [String] Product identifier. Must be unique in the current
2523
+ # API Management service instance.
2524
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
2525
+ # Management service instance.
2526
+ # @param if_match [String] ETag of the Entity. ETag should match the current
2527
+ # entity state from the header response of the GET request or it should be *
2528
+ # for unconditional update.
2529
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2530
+ # will be added to the HTTP request.
2531
+ #
2532
+ #
2533
+ def detach_from_product(resource_group_name, service_name, product_id, tag_id, if_match, custom_headers:nil)
2534
+ response = detach_from_product_async(resource_group_name, service_name, product_id, tag_id, if_match, custom_headers:custom_headers).value!
2535
+ nil
2536
+ end
2537
+
2538
+ #
2539
+ # Detach the tag from the Product.
2540
+ #
2541
+ # @param resource_group_name [String] The name of the resource group.
2542
+ # @param service_name [String] The name of the API Management service.
2543
+ # @param product_id [String] Product identifier. Must be unique in the current
2544
+ # API Management service instance.
2545
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
2546
+ # Management service instance.
2547
+ # @param if_match [String] ETag of the Entity. ETag should match the current
2548
+ # entity state from the header response of the GET request or it should be *
2549
+ # for unconditional update.
2550
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2551
+ # will be added to the HTTP request.
2552
+ #
2553
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2554
+ #
2555
+ def detach_from_product_with_http_info(resource_group_name, service_name, product_id, tag_id, if_match, custom_headers:nil)
2556
+ detach_from_product_async(resource_group_name, service_name, product_id, tag_id, if_match, custom_headers:custom_headers).value!
2557
+ end
2558
+
2559
+ #
2560
+ # Detach the tag from the Product.
2561
+ #
2562
+ # @param resource_group_name [String] The name of the resource group.
2563
+ # @param service_name [String] The name of the API Management service.
2564
+ # @param product_id [String] Product identifier. Must be unique in the current
2565
+ # API Management service instance.
2566
+ # @param tag_id [String] Tag identifier. Must be unique in the current API
2567
+ # Management service instance.
2568
+ # @param if_match [String] ETag of the Entity. ETag should match the current
2569
+ # entity state from the header response of the GET request or it should be *
2570
+ # for unconditional update.
2571
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2572
+ # to the HTTP request.
2573
+ #
2574
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2575
+ #
2576
+ def detach_from_product_async(resource_group_name, service_name, product_id, tag_id, if_match, custom_headers:nil)
2577
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2578
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
2579
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
2580
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
2581
+ 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?
2582
+ fail ArgumentError, 'product_id is nil' if product_id.nil?
2583
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '80'" if !product_id.nil? && product_id.length > 80
2584
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1
2585
+ fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !product_id.nil? && product_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
2586
+ fail ArgumentError, 'tag_id is nil' if tag_id.nil?
2587
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MaxLength': '80'" if !tag_id.nil? && tag_id.length > 80
2588
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'MinLength': '1'" if !tag_id.nil? && tag_id.length < 1
2589
+ fail ArgumentError, "'tag_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !tag_id.nil? && tag_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
2590
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
2591
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2592
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2593
+
2594
+
2595
+ request_headers = {}
2596
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2597
+
2598
+ # Set Headers
2599
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2600
+ request_headers['If-Match'] = if_match unless if_match.nil?
2601
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2602
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}'
2603
+
2604
+ request_url = @base_url || @client.base_url
2605
+
2606
+ options = {
2607
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2608
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id},
2609
+ query_params: {'api-version' => @client.api_version},
2610
+ headers: request_headers.merge(custom_headers || {}),
2611
+ base_url: request_url
2612
+ }
2613
+ promise = @client.make_request_async(:delete, path_template, options)
2614
+
2615
+ promise = promise.then do |result|
2616
+ http_response = result.response
2617
+ status_code = http_response.status
2618
+ response_content = http_response.body
2619
+ unless status_code == 200 || status_code == 204
2620
+ error_model = JSON.load(response_content)
2621
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2622
+ end
2623
+
2624
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2625
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2626
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2627
+
2628
+ result
2629
+ end
2630
+
2631
+ promise.execute
2632
+ end
2633
+
2634
+ #
2635
+ # Lists a collection of tags defined within a service instance.
2636
+ #
2637
+ # @param next_page_link [String] The NextLink from the previous successful call
2638
+ # to List operation.
2639
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2640
+ # will be added to the HTTP request.
2641
+ #
2642
+ # @return [TagCollection] operation results.
2643
+ #
2644
+ def list_by_service_next(next_page_link, custom_headers:nil)
2645
+ response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
2646
+ response.body unless response.nil?
2647
+ end
2648
+
2649
+ #
2650
+ # Lists a collection of tags defined within a service instance.
2651
+ #
2652
+ # @param next_page_link [String] The NextLink from the previous successful call
2653
+ # to List operation.
2654
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2655
+ # will be added to the HTTP request.
2656
+ #
2657
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2658
+ #
2659
+ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil)
2660
+ list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
2661
+ end
2662
+
2663
+ #
2664
+ # Lists a collection of tags defined within a service instance.
2665
+ #
2666
+ # @param next_page_link [String] The NextLink from the previous successful call
2667
+ # to List operation.
2668
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2669
+ # to the HTTP request.
2670
+ #
2671
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2672
+ #
2673
+ def list_by_service_next_async(next_page_link, custom_headers:nil)
2674
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2675
+
2676
+
2677
+ request_headers = {}
2678
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2679
+
2680
+ # Set Headers
2681
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2682
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2683
+ path_template = '{nextLink}'
2684
+
2685
+ request_url = @base_url || @client.base_url
2686
+
2687
+ options = {
2688
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2689
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2690
+ headers: request_headers.merge(custom_headers || {}),
2691
+ base_url: request_url
2692
+ }
2693
+ promise = @client.make_request_async(:get, path_template, options)
2694
+
2695
+ promise = promise.then do |result|
2696
+ http_response = result.response
2697
+ status_code = http_response.status
2698
+ response_content = http_response.body
2699
+ unless status_code == 200
2700
+ error_model = JSON.load(response_content)
2701
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2702
+ end
2703
+
2704
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2705
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2706
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2707
+ # Deserialize Response
2708
+ if status_code == 200
2709
+ begin
2710
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2711
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagCollection.mapper()
2712
+ result.body = @client.deserialize(result_mapper, parsed_response)
2713
+ rescue Exception => e
2714
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2715
+ end
2716
+ end
2717
+
2718
+ result
2719
+ end
2720
+
2721
+ promise.execute
2722
+ end
2723
+
2724
+ #
2725
+ # Lists all Tags associated with the API.
2726
+ #
2727
+ # @param next_page_link [String] The NextLink from the previous successful call
2728
+ # to List operation.
2729
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2730
+ # will be added to the HTTP request.
2731
+ #
2732
+ # @return [TagCollection] operation results.
2733
+ #
2734
+ def list_by_api_next(next_page_link, custom_headers:nil)
2735
+ response = list_by_api_next_async(next_page_link, custom_headers:custom_headers).value!
2736
+ response.body unless response.nil?
2737
+ end
2738
+
2739
+ #
2740
+ # Lists all Tags associated with the API.
2741
+ #
2742
+ # @param next_page_link [String] The NextLink from the previous successful call
2743
+ # to List operation.
2744
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2745
+ # will be added to the HTTP request.
2746
+ #
2747
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2748
+ #
2749
+ def list_by_api_next_with_http_info(next_page_link, custom_headers:nil)
2750
+ list_by_api_next_async(next_page_link, custom_headers:custom_headers).value!
2751
+ end
2752
+
2753
+ #
2754
+ # Lists all Tags associated with the API.
2755
+ #
2756
+ # @param next_page_link [String] The NextLink from the previous successful call
2757
+ # to List operation.
2758
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2759
+ # to the HTTP request.
2760
+ #
2761
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2762
+ #
2763
+ def list_by_api_next_async(next_page_link, custom_headers:nil)
2764
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2765
+
2766
+
2767
+ request_headers = {}
2768
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2769
+
2770
+ # Set Headers
2771
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2772
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2773
+ path_template = '{nextLink}'
2774
+
2775
+ request_url = @base_url || @client.base_url
2776
+
2777
+ options = {
2778
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2779
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2780
+ headers: request_headers.merge(custom_headers || {}),
2781
+ base_url: request_url
2782
+ }
2783
+ promise = @client.make_request_async(:get, path_template, options)
2784
+
2785
+ promise = promise.then do |result|
2786
+ http_response = result.response
2787
+ status_code = http_response.status
2788
+ response_content = http_response.body
2789
+ unless status_code == 200
2790
+ error_model = JSON.load(response_content)
2791
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2792
+ end
2793
+
2794
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2795
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2796
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2797
+ # Deserialize Response
2798
+ if status_code == 200
2799
+ begin
2800
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2801
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagCollection.mapper()
2802
+ result.body = @client.deserialize(result_mapper, parsed_response)
2803
+ rescue Exception => e
2804
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2805
+ end
2806
+ end
2807
+
2808
+ result
2809
+ end
2810
+
2811
+ promise.execute
2812
+ end
2813
+
2814
+ #
2815
+ # Lists all Tags associated with the Operation.
2816
+ #
2817
+ # @param next_page_link [String] The NextLink from the previous successful call
2818
+ # to List operation.
2819
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2820
+ # will be added to the HTTP request.
2821
+ #
2822
+ # @return [TagCollection] operation results.
2823
+ #
2824
+ def list_by_operation_next(next_page_link, custom_headers:nil)
2825
+ response = list_by_operation_next_async(next_page_link, custom_headers:custom_headers).value!
2826
+ response.body unless response.nil?
2827
+ end
2828
+
2829
+ #
2830
+ # Lists all Tags associated with the Operation.
2831
+ #
2832
+ # @param next_page_link [String] The NextLink from the previous successful call
2833
+ # to List operation.
2834
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2835
+ # will be added to the HTTP request.
2836
+ #
2837
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2838
+ #
2839
+ def list_by_operation_next_with_http_info(next_page_link, custom_headers:nil)
2840
+ list_by_operation_next_async(next_page_link, custom_headers:custom_headers).value!
2841
+ end
2842
+
2843
+ #
2844
+ # Lists all Tags associated with the Operation.
2845
+ #
2846
+ # @param next_page_link [String] The NextLink from the previous successful call
2847
+ # to List operation.
2848
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2849
+ # to the HTTP request.
2850
+ #
2851
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2852
+ #
2853
+ def list_by_operation_next_async(next_page_link, custom_headers:nil)
2854
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2855
+
2856
+
2857
+ request_headers = {}
2858
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2859
+
2860
+ # Set Headers
2861
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2862
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2863
+ path_template = '{nextLink}'
2864
+
2865
+ request_url = @base_url || @client.base_url
2866
+
2867
+ options = {
2868
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2869
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2870
+ headers: request_headers.merge(custom_headers || {}),
2871
+ base_url: request_url
2872
+ }
2873
+ promise = @client.make_request_async(:get, path_template, options)
2874
+
2875
+ promise = promise.then do |result|
2876
+ http_response = result.response
2877
+ status_code = http_response.status
2878
+ response_content = http_response.body
2879
+ unless status_code == 200
2880
+ error_model = JSON.load(response_content)
2881
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2882
+ end
2883
+
2884
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2885
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2886
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2887
+ # Deserialize Response
2888
+ if status_code == 200
2889
+ begin
2890
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2891
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagCollection.mapper()
2892
+ result.body = @client.deserialize(result_mapper, parsed_response)
2893
+ rescue Exception => e
2894
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2895
+ end
2896
+ end
2897
+
2898
+ result
2899
+ end
2900
+
2901
+ promise.execute
2902
+ end
2903
+
2904
+ #
2905
+ # Lists all Tags associated with the Product.
2906
+ #
2907
+ # @param next_page_link [String] The NextLink from the previous successful call
2908
+ # to List operation.
2909
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2910
+ # will be added to the HTTP request.
2911
+ #
2912
+ # @return [TagCollection] operation results.
2913
+ #
2914
+ def list_by_product_next(next_page_link, custom_headers:nil)
2915
+ response = list_by_product_next_async(next_page_link, custom_headers:custom_headers).value!
2916
+ response.body unless response.nil?
2917
+ end
2918
+
2919
+ #
2920
+ # Lists all Tags associated with the Product.
2921
+ #
2922
+ # @param next_page_link [String] The NextLink from the previous successful call
2923
+ # to List operation.
2924
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2925
+ # will be added to the HTTP request.
2926
+ #
2927
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2928
+ #
2929
+ def list_by_product_next_with_http_info(next_page_link, custom_headers:nil)
2930
+ list_by_product_next_async(next_page_link, custom_headers:custom_headers).value!
2931
+ end
2932
+
2933
+ #
2934
+ # Lists all Tags associated with the Product.
2935
+ #
2936
+ # @param next_page_link [String] The NextLink from the previous successful call
2937
+ # to List operation.
2938
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2939
+ # to the HTTP request.
2940
+ #
2941
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2942
+ #
2943
+ def list_by_product_next_async(next_page_link, custom_headers:nil)
2944
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2945
+
2946
+
2947
+ request_headers = {}
2948
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2949
+
2950
+ # Set Headers
2951
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2952
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2953
+ path_template = '{nextLink}'
2954
+
2955
+ request_url = @base_url || @client.base_url
2956
+
2957
+ options = {
2958
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2959
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2960
+ headers: request_headers.merge(custom_headers || {}),
2961
+ base_url: request_url
2962
+ }
2963
+ promise = @client.make_request_async(:get, path_template, options)
2964
+
2965
+ promise = promise.then do |result|
2966
+ http_response = result.response
2967
+ status_code = http_response.status
2968
+ response_content = http_response.body
2969
+ unless status_code == 200
2970
+ error_model = JSON.load(response_content)
2971
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2972
+ end
2973
+
2974
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2975
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2976
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2977
+ # Deserialize Response
2978
+ if status_code == 200
2979
+ begin
2980
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2981
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::TagCollection.mapper()
2982
+ result.body = @client.deserialize(result_mapper, parsed_response)
2983
+ rescue Exception => e
2984
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2985
+ end
2986
+ end
2987
+
2988
+ result
2989
+ end
2990
+
2991
+ promise.execute
2992
+ end
2993
+
2994
+ #
2995
+ # Lists a collection of tags defined within a service instance.
2996
+ #
2997
+ # @param resource_group_name [String] The name of the resource group.
2998
+ # @param service_name [String] The name of the API Management service.
2999
+ # @param filter [String] | Field | Supported operators | Supported
3000
+ # functions |
3001
+ # |-------------|------------------------|---------------------------------------------|
3002
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
3003
+ # endswith |
3004
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
3005
+ # endswith |
3006
+ # @param top [Integer] Number of records to return.
3007
+ # @param skip [Integer] Number of records to skip.
3008
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3009
+ # will be added to the HTTP request.
3010
+ #
3011
+ # @return [TagCollection] which provide lazy access to pages of the response.
3012
+ #
3013
+ def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
3014
+ response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
3015
+ unless response.nil?
3016
+ page = response.body
3017
+ page.next_method = Proc.new do |next_page_link|
3018
+ list_by_service_next_async(next_page_link, custom_headers:custom_headers)
3019
+ end
3020
+ page
3021
+ end
3022
+ end
3023
+
3024
+ #
3025
+ # Lists all Tags associated with the API.
3026
+ #
3027
+ # @param resource_group_name [String] The name of the resource group.
3028
+ # @param service_name [String] The name of the API Management service.
3029
+ # @param api_id [String] API revision identifier. Must be unique in the current
3030
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
3031
+ # where n is the revision number.
3032
+ # @param filter [String] | Field | Supported operators | Supported
3033
+ # functions |
3034
+ # |-------------|------------------------|---------------------------------------------|
3035
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
3036
+ # endswith |
3037
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
3038
+ # endswith |
3039
+ # @param top [Integer] Number of records to return.
3040
+ # @param skip [Integer] Number of records to skip.
3041
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3042
+ # will be added to the HTTP request.
3043
+ #
3044
+ # @return [TagCollection] which provide lazy access to pages of the response.
3045
+ #
3046
+ def list_by_api_as_lazy(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
3047
+ response = list_by_api_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
3048
+ unless response.nil?
3049
+ page = response.body
3050
+ page.next_method = Proc.new do |next_page_link|
3051
+ list_by_api_next_async(next_page_link, custom_headers:custom_headers)
3052
+ end
3053
+ page
3054
+ end
3055
+ end
3056
+
3057
+ #
3058
+ # Lists all Tags associated with the Operation.
3059
+ #
3060
+ # @param resource_group_name [String] The name of the resource group.
3061
+ # @param service_name [String] The name of the API Management service.
3062
+ # @param api_id [String] API revision identifier. Must be unique in the current
3063
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
3064
+ # where n is the revision number.
3065
+ # @param operation_id [String] Operation identifier within an API. Must be
3066
+ # unique in the current API Management service instance.
3067
+ # @param filter [String] | Field | Supported operators | Supported
3068
+ # functions |
3069
+ # |-------------|------------------------|---------------------------------------------|
3070
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
3071
+ # endswith |
3072
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
3073
+ # endswith |
3074
+ # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
3075
+ # endswith |
3076
+ # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
3077
+ # endswith |
3078
+ # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
3079
+ # endswith |
3080
+ # @param top [Integer] Number of records to return.
3081
+ # @param skip [Integer] Number of records to skip.
3082
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3083
+ # will be added to the HTTP request.
3084
+ #
3085
+ # @return [TagCollection] which provide lazy access to pages of the response.
3086
+ #
3087
+ def list_by_operation_as_lazy(resource_group_name, service_name, api_id, operation_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
3088
+ response = list_by_operation_async(resource_group_name, service_name, api_id, operation_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
3089
+ unless response.nil?
3090
+ page = response.body
3091
+ page.next_method = Proc.new do |next_page_link|
3092
+ list_by_operation_next_async(next_page_link, custom_headers:custom_headers)
3093
+ end
3094
+ page
3095
+ end
3096
+ end
3097
+
3098
+ #
3099
+ # Lists all Tags associated with the Product.
3100
+ #
3101
+ # @param resource_group_name [String] The name of the resource group.
3102
+ # @param service_name [String] The name of the API Management service.
3103
+ # @param product_id [String] Product identifier. Must be unique in the current
3104
+ # API Management service instance.
3105
+ # @param filter [String] | Field | Supported operators | Supported
3106
+ # functions |
3107
+ # |-------------|------------------------|---------------------------------------------|
3108
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
3109
+ # endswith |
3110
+ # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
3111
+ # endswith |
3112
+ # @param top [Integer] Number of records to return.
3113
+ # @param skip [Integer] Number of records to skip.
3114
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3115
+ # will be added to the HTTP request.
3116
+ #
3117
+ # @return [TagCollection] which provide lazy access to pages of the response.
3118
+ #
3119
+ def list_by_product_as_lazy(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
3120
+ response = list_by_product_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
3121
+ unless response.nil?
3122
+ page = response.body
3123
+ page.next_method = Proc.new do |next_page_link|
3124
+ list_by_product_next_async(next_page_link, custom_headers:custom_headers)
3125
+ end
3126
+ page
3127
+ end
3128
+ end
3129
+
3130
+ end
3131
+ end