azure_mgmt_api_management 0.18.4 → 0.19.0

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