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