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