azure_mgmt_api_management 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (578) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_client.rb +7 -6
  3. data/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_client.rb +7 -6
  4. data/lib/2017-03-01/generated/azure_mgmt_api_management.rb +290 -0
  5. data/lib/2017-03-01/generated/azure_mgmt_api_management/api.rb +1141 -0
  6. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_diagnostic.rb +877 -0
  7. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb +647 -0
  8. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_export.rb +134 -0
  9. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issu_attachment.rb +142 -0
  10. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issu_comment.rb +142 -0
  11. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue.rb +508 -0
  12. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_attachment.rb +434 -0
  13. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_attachments.rb +288 -0
  14. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_comment.rb +431 -0
  15. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_comments.rb +288 -0
  16. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issues.rb +279 -0
  17. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb +385 -0
  18. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_operations.rb +222 -0
  19. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_service.rb +1904 -0
  20. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_operation.rb +895 -0
  21. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_operation_policy.rb +637 -0
  22. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_policy.rb +587 -0
  23. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_product.rb +272 -0
  24. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_release.rb +789 -0
  25. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_revisions.rb +280 -0
  26. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_schema.rb +725 -0
  27. data/lib/2017-03-01/generated/azure_mgmt_api_management/api_version_set.rb +867 -0
  28. data/lib/2017-03-01/generated/azure_mgmt_api_management/authorization_server.rb +807 -0
  29. data/lib/2017-03-01/generated/azure_mgmt_api_management/backend.rb +924 -0
  30. data/lib/2017-03-01/generated/azure_mgmt_api_management/certificate.rb +733 -0
  31. data/lib/2017-03-01/generated/azure_mgmt_api_management/delegation_settings.rb +416 -0
  32. data/lib/2017-03-01/generated/azure_mgmt_api_management/diagnostic.rb +815 -0
  33. data/lib/2017-03-01/generated/azure_mgmt_api_management/diagnostic_logger.rb +612 -0
  34. data/lib/2017-03-01/generated/azure_mgmt_api_management/email_template.rb +889 -0
  35. data/lib/2017-03-01/generated/azure_mgmt_api_management/group.rb +832 -0
  36. data/lib/2017-03-01/generated/azure_mgmt_api_management/group_user.rb +655 -0
  37. data/lib/2017-03-01/generated/azure_mgmt_api_management/identity_provider.rb +675 -0
  38. data/lib/2017-03-01/generated/azure_mgmt_api_management/logger.rb +812 -0
  39. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/access_information_contract.rb +80 -0
  40. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +48 -0
  41. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/additional_location.rb +107 -0
  42. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_collection.rb +100 -0
  43. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_contract.rb +260 -0
  44. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb +200 -0
  45. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +271 -0
  46. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +57 -0
  47. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +151 -0
  48. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_export_result.rb +47 -0
  49. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +49 -0
  50. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
  51. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +298 -0
  52. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
  53. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +47 -0
  54. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +73 -0
  55. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
  56. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +81 -0
  57. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +418 -0
  58. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +60 -0
  59. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +77 -0
  60. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +407 -0
  61. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +72 -0
  62. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_release_collection.rb +100 -0
  63. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_release_contract.rb +110 -0
  64. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb +98 -0
  65. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb +172 -0
  66. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +88 -0
  67. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_type.rb +16 -0
  68. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_update_contract.rb +221 -0
  69. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +98 -0
  70. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +133 -0
  71. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_contract_properties.rb +95 -0
  72. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +79 -0
  73. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +106 -0
  74. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/apim_resource.rb +91 -0
  75. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/async_operation_status.rb +18 -0
  76. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +48 -0
  77. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_method.rb +22 -0
  78. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
  79. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +309 -0
  80. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +211 -0
  81. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +309 -0
  82. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
  83. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +131 -0
  84. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_collection.rb +98 -0
  85. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_contract.rb +185 -0
  86. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +124 -0
  87. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_properties.rb +48 -0
  88. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
  89. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
  90. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +78 -0
  91. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +119 -0
  92. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +63 -0
  93. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +158 -0
  94. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +16 -0
  95. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_collection.rb +98 -0
  96. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb +84 -0
  97. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_contract.rb +98 -0
  98. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
  99. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
  100. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb +16 -0
  101. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/confirmation.rb +16 -0
  102. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +107 -0
  103. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
  104. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/content_format.rb +20 -0
  105. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
  106. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +98 -0
  107. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +74 -0
  108. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/email_template_collection.rb +98 -0
  109. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/email_template_contract.rb +147 -0
  110. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +83 -0
  111. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +107 -0
  112. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
  113. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/error_response.rb +79 -0
  114. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
  115. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/grant_type.rb +18 -0
  116. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_collection.rb +98 -0
  117. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_contract.rb +131 -0
  118. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb +88 -0
  119. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_type.rb +17 -0
  120. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb +88 -0
  121. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb +139 -0
  122. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb +71 -0
  123. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/hostname_type.rb +18 -0
  124. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +131 -0
  125. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +191 -0
  126. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb +67 -0
  127. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb +20 -0
  128. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +164 -0
  129. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  130. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  131. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  132. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  133. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  134. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  135. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/key_type.rb +16 -0
  136. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
  137. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_contract.rb +134 -0
  138. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_sampling_contract.rb +160 -0
  139. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_type.rb +16 -0
  140. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb +89 -0
  141. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
  142. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
  143. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/notification_collection.rb +98 -0
  144. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/notification_contract.rb +100 -0
  145. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/notification_name.rb +21 -0
  146. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
  147. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +98 -0
  148. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +122 -0
  149. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
  150. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation.rb +80 -0
  151. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_collection.rb +100 -0
  152. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_contract.rb +185 -0
  153. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
  154. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +114 -0
  155. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_entity_contract.rb +149 -0
  156. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
  157. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb +134 -0
  158. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +69 -0
  159. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb +158 -0
  160. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
  161. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_collection.rb +66 -0
  162. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_contract.rb +73 -0
  163. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
  164. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +83 -0
  165. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +55 -0
  166. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +111 -0
  167. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +73 -0
  168. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +86 -0
  169. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_collection.rb +98 -0
  170. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_contract.rb +167 -0
  171. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +125 -0
  172. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_state.rb +16 -0
  173. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb +140 -0
  174. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/property_collection.rb +98 -0
  175. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/property_contract.rb +130 -0
  176. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb +70 -0
  177. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
  178. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/protocol.rb +16 -0
  179. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
  180. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +104 -0
  181. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
  182. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +57 -0
  183. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +66 -0
  184. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +73 -0
  185. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +66 -0
  186. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +73 -0
  187. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +73 -0
  188. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/region_contract.rb +69 -0
  189. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/region_list_result.rb +77 -0
  190. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +46 -0
  191. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
  192. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/report_record_contract.rb +338 -0
  193. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/representation_contract.rb +106 -0
  194. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
  195. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/request_report_collection.rb +66 -0
  196. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +245 -0
  197. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/resource.rb +71 -0
  198. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/response_contract.rb +99 -0
  199. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/sampling_type.rb +16 -0
  200. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
  201. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/schema_collection.rb +100 -0
  202. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/schema_contract.rb +87 -0
  203. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/sku_type.rb +18 -0
  204. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/state.rb +19 -0
  205. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_collection.rb +98 -0
  206. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_contract.rb +244 -0
  207. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +128 -0
  208. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
  209. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_state.rb +20 -0
  210. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +146 -0
  211. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +47 -0
  212. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_collection.rb +98 -0
  213. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_contract.rb +77 -0
  214. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +50 -0
  215. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb +98 -0
  216. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb +114 -0
  217. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +72 -0
  218. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +98 -0
  219. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +110 -0
  220. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/template_name.rb +28 -0
  221. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
  222. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +68 -0
  223. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
  224. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_collection.rb +98 -0
  225. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_contract.rb +178 -0
  226. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb +154 -0
  227. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +83 -0
  228. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb +77 -0
  229. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
  230. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_state.rb +18 -0
  231. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
  232. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
  233. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb +140 -0
  234. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb +17 -0
  235. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +76 -0
  236. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
  237. data/lib/2017-03-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb +57 -0
  238. data/lib/2017-03-01/generated/azure_mgmt_api_management/module_definition.rb +9 -0
  239. data/lib/2017-03-01/generated/azure_mgmt_api_management/network_status.rb +238 -0
  240. data/lib/2017-03-01/generated/azure_mgmt_api_management/notification.rb +462 -0
  241. data/lib/2017-03-01/generated/azure_mgmt_api_management/notification_recipient_email.rb +472 -0
  242. data/lib/2017-03-01/generated/azure_mgmt_api_management/notification_recipient_user.rb +493 -0
  243. data/lib/2017-03-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb +800 -0
  244. data/lib/2017-03-01/generated/azure_mgmt_api_management/operation_operations.rb +312 -0
  245. data/lib/2017-03-01/generated/azure_mgmt_api_management/policy.rb +438 -0
  246. data/lib/2017-03-01/generated/azure_mgmt_api_management/policy_snippets.rb +126 -0
  247. data/lib/2017-03-01/generated/azure_mgmt_api_management/product.rb +855 -0
  248. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_api.rb +643 -0
  249. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_group.rb +641 -0
  250. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_policy.rb +469 -0
  251. data/lib/2017-03-01/generated/azure_mgmt_api_management/product_subscriptions.rb +312 -0
  252. data/lib/2017-03-01/generated/azure_mgmt_api_management/property.rb +797 -0
  253. data/lib/2017-03-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +262 -0
  254. data/lib/2017-03-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb +261 -0
  255. data/lib/2017-03-01/generated/azure_mgmt_api_management/regions.rb +120 -0
  256. data/lib/2017-03-01/generated/azure_mgmt_api_management/reports.rb +1690 -0
  257. data/lib/2017-03-01/generated/azure_mgmt_api_management/sign_in_settings.rb +416 -0
  258. data/lib/2017-03-01/generated/azure_mgmt_api_management/sign_up_settings.rb +416 -0
  259. data/lib/2017-03-01/generated/azure_mgmt_api_management/subscription.rb +1039 -0
  260. data/lib/2017-03-01/generated/azure_mgmt_api_management/tag.rb +3058 -0
  261. data/lib/2017-03-01/generated/azure_mgmt_api_management/tag_description.rb +774 -0
  262. data/lib/2017-03-01/generated/azure_mgmt_api_management/tag_resource.rb +356 -0
  263. data/lib/2017-03-01/generated/azure_mgmt_api_management/tenant_access.rb +401 -0
  264. data/lib/2017-03-01/generated/azure_mgmt_api_management/tenant_access_git.rb +291 -0
  265. data/lib/2017-03-01/generated/azure_mgmt_api_management/tenant_configuration.rb +607 -0
  266. data/lib/2017-03-01/generated/azure_mgmt_api_management/user.rb +1086 -0
  267. data/lib/2017-03-01/generated/azure_mgmt_api_management/user_group.rb +287 -0
  268. data/lib/2017-03-01/generated/azure_mgmt_api_management/user_identities.rb +130 -0
  269. data/lib/2017-03-01/generated/azure_mgmt_api_management/user_subscription.rb +312 -0
  270. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management.rb +100 -89
  271. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_issue.rb +762 -0
  272. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_issue_attachment.rb +814 -0
  273. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_issue_comment.rb +811 -0
  274. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_management_client.rb +19 -6
  275. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/additional_location.rb +26 -2
  276. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_collection.rb +2 -0
  277. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_contract.rb +28 -0
  278. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_contract_properties.rb +22 -0
  279. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +28 -0
  280. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +28 -0
  281. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +5 -4
  282. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +5 -4
  283. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +5 -4
  284. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_release_collection.rb +2 -0
  285. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_revision_collection.rb +2 -0
  286. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +22 -0
  287. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/api_update_contract.rb +28 -0
  288. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/error_response.rb +4 -4
  289. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/error_response_body.rb +79 -0
  290. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  291. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  292. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  293. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  294. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  295. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  296. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_collection.rb +2 -0
  297. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/operation_result_contract.rb +2 -2
  298. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/policy_content_format.rb +2 -0
  299. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/policy_contract.rb +2 -1
  300. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/schema_collection.rb +2 -0
  301. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/models/state.rb +19 -0
  302. data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/product_api.rb +33 -24
  303. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management.rb +296 -0
  304. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api.rb +1144 -0
  305. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_diagnostic.rb +874 -0
  306. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_export.rb +147 -0
  307. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_issue.rb +762 -0
  308. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_issue_attachment.rb +814 -0
  309. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_issue_comment.rb +811 -0
  310. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb +357 -0
  311. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_operations.rb +222 -0
  312. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_service.rb +1914 -0
  313. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_operation.rb +905 -0
  314. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_operation_policy.rb +639 -0
  315. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_policy.rb +589 -0
  316. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_product.rb +272 -0
  317. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_release.rb +893 -0
  318. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_revisions.rb +280 -0
  319. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_schema.rb +738 -0
  320. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/api_version_set.rb +864 -0
  321. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/authorization_server.rb +819 -0
  322. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/backend.rb +931 -0
  323. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/certificate.rb +730 -0
  324. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/delegation_settings.rb +416 -0
  325. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/diagnostic.rb +812 -0
  326. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/email_template.rb +896 -0
  327. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/group.rb +839 -0
  328. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/group_user.rb +657 -0
  329. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/identity_provider.rb +796 -0
  330. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/logger.rb +819 -0
  331. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/access_information_contract.rb +80 -0
  332. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +48 -0
  333. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/additional_location.rb +131 -0
  334. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/always_log.rb +15 -0
  335. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_collection.rb +100 -0
  336. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_contract.rb +288 -0
  337. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_contract_properties.rb +222 -0
  338. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +313 -0
  339. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +57 -0
  340. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +179 -0
  341. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_export_result.rb +47 -0
  342. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +49 -0
  343. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
  344. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +322 -0
  345. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
  346. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +47 -0
  347. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +73 -0
  348. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
  349. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +81 -0
  350. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +442 -0
  351. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +60 -0
  352. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +77 -0
  353. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +431 -0
  354. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +72 -0
  355. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_release_collection.rb +100 -0
  356. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_release_contract.rb +110 -0
  357. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_collection.rb +100 -0
  358. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb +145 -0
  359. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +88 -0
  360. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +221 -0
  361. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_type.rb +16 -0
  362. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_update_contract.rb +249 -0
  363. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +98 -0
  364. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +133 -0
  365. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb +96 -0
  366. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +78 -0
  367. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +106 -0
  368. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/apim_resource.rb +91 -0
  369. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/async_operation_status.rb +18 -0
  370. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +48 -0
  371. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_method.rb +22 -0
  372. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
  373. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +309 -0
  374. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +211 -0
  375. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +309 -0
  376. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
  377. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +131 -0
  378. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_collection.rb +98 -0
  379. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_contract.rb +185 -0
  380. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +124 -0
  381. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_properties.rb +48 -0
  382. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
  383. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
  384. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +74 -0
  385. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +119 -0
  386. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +63 -0
  387. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +158 -0
  388. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +16 -0
  389. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/body_diagnostic_settings.rb +49 -0
  390. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_collection.rb +98 -0
  391. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_configuration.rb +85 -0
  392. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_contract.rb +98 -0
  393. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
  394. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
  395. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/client_authentication_method.rb +16 -0
  396. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/confirmation.rb +16 -0
  397. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +107 -0
  398. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
  399. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/content_format.rb +20 -0
  400. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
  401. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +98 -0
  402. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +123 -0
  403. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/email_template_collection.rb +98 -0
  404. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/email_template_contract.rb +147 -0
  405. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +83 -0
  406. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +107 -0
  407. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
  408. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/error_response.rb +79 -0
  409. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/error_response_body.rb +79 -0
  410. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/export_format.rb +17 -0
  411. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
  412. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/grant_type.rb +18 -0
  413. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_collection.rb +98 -0
  414. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_contract.rb +131 -0
  415. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_contract_properties.rb +104 -0
  416. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_create_parameters.rb +88 -0
  417. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_type.rb +17 -0
  418. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/group_update_parameters.rb +88 -0
  419. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/hostname_configuration.rb +139 -0
  420. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb +71 -0
  421. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/hostname_type.rb +18 -0
  422. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/http_message_diagnostic.rb +66 -0
  423. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +131 -0
  424. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +191 -0
  425. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_list.rb +99 -0
  426. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_type.rb +20 -0
  427. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +164 -0
  428. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
  429. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
  430. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
  431. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
  432. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
  433. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
  434. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/key_type.rb +16 -0
  435. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
  436. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/logger_contract.rb +133 -0
  437. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/logger_type.rb +16 -0
  438. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/logger_update_contract.rb +89 -0
  439. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
  440. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
  441. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb +61 -0
  442. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/notification_collection.rb +98 -0
  443. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/notification_contract.rb +100 -0
  444. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/notification_name.rb +21 -0
  445. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
  446. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +98 -0
  447. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +122 -0
  448. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
  449. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation.rb +80 -0
  450. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_collection.rb +100 -0
  451. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_contract.rb +185 -0
  452. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
  453. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +114 -0
  454. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
  455. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_result_contract.rb +134 -0
  456. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +69 -0
  457. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb +134 -0
  458. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/operation_update_contract.rb +158 -0
  459. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
  460. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/pipeline_diagnostic_settings.rb +59 -0
  461. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_collection.rb +66 -0
  462. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_content_format.rb +18 -0
  463. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_contract.rb +87 -0
  464. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
  465. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +83 -0
  466. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +55 -0
  467. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +111 -0
  468. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +73 -0
  469. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +86 -0
  470. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_collection.rb +98 -0
  471. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_contract.rb +167 -0
  472. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +125 -0
  473. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_state.rb +16 -0
  474. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb +115 -0
  475. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/product_update_parameters.rb +140 -0
  476. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/property_collection.rb +98 -0
  477. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/property_contract.rb +130 -0
  478. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb +70 -0
  479. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
  480. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/protocol.rb +16 -0
  481. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
  482. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +104 -0
  483. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
  484. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +57 -0
  485. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +66 -0
  486. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +73 -0
  487. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +66 -0
  488. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +73 -0
  489. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +73 -0
  490. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/region_contract.rb +69 -0
  491. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/region_list_result.rb +109 -0
  492. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +46 -0
  493. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
  494. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/report_record_contract.rb +338 -0
  495. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/representation_contract.rb +106 -0
  496. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
  497. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/request_report_collection.rb +66 -0
  498. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +245 -0
  499. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/resource.rb +71 -0
  500. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/response_contract.rb +99 -0
  501. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/sampling_settings.rb +61 -0
  502. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/sampling_type.rb +15 -0
  503. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
  504. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/schema_collection.rb +100 -0
  505. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/schema_contract.rb +87 -0
  506. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/sku_type.rb +18 -0
  507. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/soap_api_type.rb +16 -0
  508. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/state.rb +19 -0
  509. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_collection.rb +98 -0
  510. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_contract.rb +244 -0
  511. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +128 -0
  512. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
  513. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_state.rb +20 -0
  514. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +146 -0
  515. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +47 -0
  516. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_collection.rb +98 -0
  517. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_contract.rb +77 -0
  518. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +50 -0
  519. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_description_collection.rb +98 -0
  520. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_description_contract.rb +114 -0
  521. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +72 -0
  522. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +109 -0
  523. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +86 -0
  524. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb +61 -0
  525. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/template_name.rb +28 -0
  526. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
  527. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +68 -0
  528. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
  529. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_collection.rb +98 -0
  530. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_contract.rb +179 -0
  531. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_create_parameters.rb +154 -0
  532. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +83 -0
  533. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_identity_collection.rb +109 -0
  534. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
  535. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_state.rb +18 -0
  536. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
  537. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
  538. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/user_update_parameters.rb +140 -0
  539. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/versioning_scheme.rb +17 -0
  540. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +76 -0
  541. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
  542. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/x509certificate_name.rb +57 -0
  543. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/module_definition.rb +9 -0
  544. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/network_status.rb +254 -0
  545. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/notification.rb +469 -0
  546. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/notification_recipient_email.rb +474 -0
  547. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/notification_recipient_user.rb +495 -0
  548. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/open_id_connect_provider.rb +807 -0
  549. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/operation_operations.rb +316 -0
  550. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/policy.rb +526 -0
  551. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/policy_snippets.rb +126 -0
  552. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product.rb +862 -0
  553. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_api.rb +654 -0
  554. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_group.rb +643 -0
  555. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_policy.rb +571 -0
  556. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/product_subscriptions.rb +312 -0
  557. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/property.rb +804 -0
  558. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +262 -0
  559. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/quota_by_period_keys.rb +261 -0
  560. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/regions.rb +230 -0
  561. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/reports.rb +1690 -0
  562. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/sign_in_settings.rb +416 -0
  563. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/sign_up_settings.rb +416 -0
  564. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/subscription.rb +1070 -0
  565. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tag.rb +3081 -0
  566. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tag_description.rb +787 -0
  567. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tag_resource.rb +356 -0
  568. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tenant_access.rb +401 -0
  569. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tenant_access_git.rb +291 -0
  570. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/tenant_configuration.rb +607 -0
  571. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user.rb +1099 -0
  572. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user_group.rb +287 -0
  573. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user_identities.rb +242 -0
  574. data/lib/2018-06-01-preview/generated/azure_mgmt_api_management/user_subscription.rb +312 -0
  575. data/lib/azure_mgmt_api_management.rb +4 -2
  576. data/lib/profiles/latest/modules/apimanagement_profile_module.rb +616 -558
  577. data/lib/version.rb +1 -1
  578. metadata +553 -4
@@ -0,0 +1,895 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ApiManagement::Mgmt::V2017_03_01
7
+ #
8
+ # ApiManagement Client
9
+ #
10
+ class ApiOperation
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ApiOperation class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ApiManagementClient] reference to the ApiManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists a collection of the operations for the specified API.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param service_name [String] The name of the API Management service.
29
+ # @param api_id [String] API revision identifier. Must be unique in the current
30
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
31
+ # where n is the revision number.
32
+ # @param filter [String] | Field | Supported operators | Supported
33
+ # functions |
34
+ # |-------------|------------------------|-----------------------------------|
35
+ # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
36
+ # | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
37
+ # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
38
+ # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
39
+ # @param top [Integer] Number of records to return.
40
+ # @param skip [Integer] Number of records to skip.
41
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
42
+ # will be added to the HTTP request.
43
+ #
44
+ # @return [Array<OperationContract>] operation results.
45
+ #
46
+ def list_by_api(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
47
+ first_page = list_by_api_as_lazy(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
48
+ first_page.get_all_items
49
+ end
50
+
51
+ #
52
+ # Lists a collection of the operations for the specified API.
53
+ #
54
+ # @param resource_group_name [String] The name of the resource group.
55
+ # @param service_name [String] The name of the API Management service.
56
+ # @param api_id [String] API revision identifier. Must be unique in the current
57
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
58
+ # where n is the revision number.
59
+ # @param filter [String] | Field | Supported operators | Supported
60
+ # functions |
61
+ # |-------------|------------------------|-----------------------------------|
62
+ # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
63
+ # | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
64
+ # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
65
+ # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
66
+ # @param top [Integer] Number of records to return.
67
+ # @param skip [Integer] Number of records to skip.
68
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
69
+ # will be added to the HTTP request.
70
+ #
71
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
72
+ #
73
+ def list_by_api_with_http_info(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
74
+ list_by_api_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
75
+ end
76
+
77
+ #
78
+ # Lists a collection of the operations for the specified API.
79
+ #
80
+ # @param resource_group_name [String] The name of the resource group.
81
+ # @param service_name [String] The name of the API Management service.
82
+ # @param api_id [String] API revision identifier. Must be unique in the current
83
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
84
+ # where n is the revision number.
85
+ # @param filter [String] | Field | Supported operators | Supported
86
+ # functions |
87
+ # |-------------|------------------------|-----------------------------------|
88
+ # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
89
+ # | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
90
+ # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
91
+ # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
92
+ # @param top [Integer] Number of records to return.
93
+ # @param skip [Integer] Number of records to skip.
94
+ # @param [Hash{String => String}] A hash of custom headers that will be added
95
+ # to the HTTP request.
96
+ #
97
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
98
+ #
99
+ def list_by_api_async(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
100
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
101
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
102
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
103
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
104
+ 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?
105
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
106
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
107
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
108
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
109
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
110
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
111
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
112
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
113
+
114
+
115
+ request_headers = {}
116
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
117
+
118
+ # Set Headers
119
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
120
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
121
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations'
122
+
123
+ request_url = @base_url || @client.base_url
124
+
125
+ options = {
126
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
127
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id},
128
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
129
+ headers: request_headers.merge(custom_headers || {}),
130
+ base_url: request_url
131
+ }
132
+ promise = @client.make_request_async(:get, path_template, options)
133
+
134
+ promise = promise.then do |result|
135
+ http_response = result.response
136
+ status_code = http_response.status
137
+ response_content = http_response.body
138
+ unless status_code == 200
139
+ error_model = JSON.load(response_content)
140
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
141
+ end
142
+
143
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
144
+ # Deserialize Response
145
+ if status_code == 200
146
+ begin
147
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
148
+ result_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::OperationCollection.mapper()
149
+ result.body = @client.deserialize(result_mapper, parsed_response)
150
+ rescue Exception => e
151
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
152
+ end
153
+ end
154
+
155
+ result
156
+ end
157
+
158
+ promise.execute
159
+ end
160
+
161
+ #
162
+ # Gets the entity state (Etag) version of the API operation specified by its
163
+ # identifier.
164
+ #
165
+ # @param resource_group_name [String] The name of the resource group.
166
+ # @param service_name [String] The name of the API Management service.
167
+ # @param api_id [String] API identifier. Must be unique in the current API
168
+ # Management service instance.
169
+ # @param operation_id [String] Operation identifier within an API. Must be
170
+ # unique in the current API Management service instance.
171
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
172
+ # will be added to the HTTP request.
173
+ #
174
+ #
175
+ def get_entity_tag(resource_group_name, service_name, api_id, operation_id, custom_headers:nil)
176
+ response = get_entity_tag_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value!
177
+ nil
178
+ end
179
+
180
+ #
181
+ # Gets the entity state (Etag) version of the API operation specified by its
182
+ # identifier.
183
+ #
184
+ # @param resource_group_name [String] The name of the resource group.
185
+ # @param service_name [String] The name of the API Management service.
186
+ # @param api_id [String] API identifier. Must be unique in the current API
187
+ # Management service instance.
188
+ # @param operation_id [String] Operation identifier within an API. Must be
189
+ # unique in the current API Management service instance.
190
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
191
+ # will be added to the HTTP request.
192
+ #
193
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
194
+ #
195
+ def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers:nil)
196
+ get_entity_tag_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value!
197
+ end
198
+
199
+ #
200
+ # Gets the entity state (Etag) version of the API operation specified by its
201
+ # identifier.
202
+ #
203
+ # @param resource_group_name [String] The name of the resource group.
204
+ # @param service_name [String] The name of the API Management service.
205
+ # @param api_id [String] API identifier. Must be unique in the current API
206
+ # Management service instance.
207
+ # @param operation_id [String] Operation identifier within an API. Must be
208
+ # unique in the current API Management service instance.
209
+ # @param [Hash{String => String}] A hash of custom headers that will be added
210
+ # to the HTTP request.
211
+ #
212
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
213
+ #
214
+ def get_entity_tag_async(resource_group_name, service_name, api_id, operation_id, custom_headers:nil)
215
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
216
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
217
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
218
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
219
+ 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?
220
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
221
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
222
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
223
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
224
+ fail ArgumentError, 'operation_id is nil' if operation_id.nil?
225
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256
226
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
227
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
228
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
229
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
230
+
231
+
232
+ request_headers = {}
233
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
234
+
235
+ # Set Headers
236
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
237
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
238
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'
239
+
240
+ request_url = @base_url || @client.base_url
241
+
242
+ options = {
243
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
244
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
245
+ query_params: {'api-version' => @client.api_version},
246
+ headers: request_headers.merge(custom_headers || {}),
247
+ base_url: request_url
248
+ }
249
+ promise = @client.make_request_async(:head, path_template, options)
250
+
251
+ promise = promise.then do |result|
252
+ http_response = result.response
253
+ status_code = http_response.status
254
+ response_content = http_response.body
255
+ unless status_code == 200
256
+ error_model = JSON.load(response_content)
257
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
258
+ end
259
+
260
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
261
+
262
+ result
263
+ end
264
+
265
+ promise.execute
266
+ end
267
+
268
+ #
269
+ # Gets the details of the API Operation specified by its identifier.
270
+ #
271
+ # @param resource_group_name [String] The name of the resource group.
272
+ # @param service_name [String] The name of the API Management service.
273
+ # @param api_id [String] API revision identifier. Must be unique in the current
274
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
275
+ # where n is the revision number.
276
+ # @param operation_id [String] Operation identifier within an API. Must be
277
+ # unique in the current API Management service instance.
278
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
279
+ # will be added to the HTTP request.
280
+ #
281
+ # @return [OperationContract] operation results.
282
+ #
283
+ def get(resource_group_name, service_name, api_id, operation_id, custom_headers:nil)
284
+ response = get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value!
285
+ response.body unless response.nil?
286
+ end
287
+
288
+ #
289
+ # Gets the details of the API Operation specified by its identifier.
290
+ #
291
+ # @param resource_group_name [String] The name of the resource group.
292
+ # @param service_name [String] The name of the API Management service.
293
+ # @param api_id [String] API revision identifier. Must be unique in the current
294
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
295
+ # where n is the revision number.
296
+ # @param operation_id [String] Operation identifier within an API. Must be
297
+ # unique in the current API Management service instance.
298
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
299
+ # will be added to the HTTP request.
300
+ #
301
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
302
+ #
303
+ def get_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers:nil)
304
+ get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value!
305
+ end
306
+
307
+ #
308
+ # Gets the details of the API Operation specified by its identifier.
309
+ #
310
+ # @param resource_group_name [String] The name of the resource group.
311
+ # @param service_name [String] The name of the API Management service.
312
+ # @param api_id [String] API revision identifier. Must be unique in the current
313
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
314
+ # where n is the revision number.
315
+ # @param operation_id [String] Operation identifier within an API. Must be
316
+ # unique in the current API Management service instance.
317
+ # @param [Hash{String => String}] A hash of custom headers that will be added
318
+ # to the HTTP request.
319
+ #
320
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
321
+ #
322
+ def get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:nil)
323
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
324
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
325
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
326
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
327
+ 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?
328
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
329
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
330
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
331
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
332
+ fail ArgumentError, 'operation_id is nil' if operation_id.nil?
333
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256
334
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
335
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
336
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
337
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
338
+
339
+
340
+ request_headers = {}
341
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
342
+
343
+ # Set Headers
344
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
345
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
346
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'
347
+
348
+ request_url = @base_url || @client.base_url
349
+
350
+ options = {
351
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
352
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
353
+ query_params: {'api-version' => @client.api_version},
354
+ headers: request_headers.merge(custom_headers || {}),
355
+ base_url: request_url
356
+ }
357
+ promise = @client.make_request_async(:get, path_template, options)
358
+
359
+ promise = promise.then do |result|
360
+ http_response = result.response
361
+ status_code = http_response.status
362
+ response_content = http_response.body
363
+ unless status_code == 200
364
+ error_model = JSON.load(response_content)
365
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
366
+ end
367
+
368
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
369
+ # Deserialize Response
370
+ if status_code == 200
371
+ begin
372
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
373
+ result_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::OperationContract.mapper()
374
+ result.body = @client.deserialize(result_mapper, parsed_response)
375
+ rescue Exception => e
376
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
377
+ end
378
+ end
379
+
380
+ result
381
+ end
382
+
383
+ promise.execute
384
+ end
385
+
386
+ #
387
+ # Creates a new operation in the API or updates an existing one.
388
+ #
389
+ # @param resource_group_name [String] The name of the resource group.
390
+ # @param service_name [String] The name of the API Management service.
391
+ # @param api_id [String] API revision identifier. Must be unique in the current
392
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
393
+ # where n is the revision number.
394
+ # @param operation_id [String] Operation identifier within an API. Must be
395
+ # unique in the current API Management service instance.
396
+ # @param parameters [OperationContract] Create parameters.
397
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
398
+ # will be added to the HTTP request.
399
+ #
400
+ # @return [OperationContract] operation results.
401
+ #
402
+ def create_or_update(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:nil)
403
+ response = create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:custom_headers).value!
404
+ response.body unless response.nil?
405
+ end
406
+
407
+ #
408
+ # Creates a new operation in the API or updates an existing one.
409
+ #
410
+ # @param resource_group_name [String] The name of the resource group.
411
+ # @param service_name [String] The name of the API Management service.
412
+ # @param api_id [String] API revision identifier. Must be unique in the current
413
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
414
+ # where n is the revision number.
415
+ # @param operation_id [String] Operation identifier within an API. Must be
416
+ # unique in the current API Management service instance.
417
+ # @param parameters [OperationContract] Create parameters.
418
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
419
+ # will be added to the HTTP request.
420
+ #
421
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
422
+ #
423
+ def create_or_update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:nil)
424
+ create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:custom_headers).value!
425
+ end
426
+
427
+ #
428
+ # Creates a new operation in the API or updates an existing one.
429
+ #
430
+ # @param resource_group_name [String] The name of the resource group.
431
+ # @param service_name [String] The name of the API Management service.
432
+ # @param api_id [String] API revision identifier. Must be unique in the current
433
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
434
+ # where n is the revision number.
435
+ # @param operation_id [String] Operation identifier within an API. Must be
436
+ # unique in the current API Management service instance.
437
+ # @param parameters [OperationContract] Create parameters.
438
+ # @param [Hash{String => String}] A hash of custom headers that will be added
439
+ # to the HTTP request.
440
+ #
441
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
442
+ #
443
+ def create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:nil)
444
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
445
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
446
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
447
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
448
+ 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?
449
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
450
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
451
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
452
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
453
+ fail ArgumentError, 'operation_id is nil' if operation_id.nil?
454
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256
455
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
456
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
457
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
458
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
459
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
460
+
461
+
462
+ request_headers = {}
463
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
464
+
465
+ # Set Headers
466
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
467
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
468
+
469
+ # Serialize Request
470
+ request_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::OperationContract.mapper()
471
+ request_content = @client.serialize(request_mapper, parameters)
472
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
473
+
474
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'
475
+
476
+ request_url = @base_url || @client.base_url
477
+
478
+ options = {
479
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
480
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
481
+ query_params: {'api-version' => @client.api_version},
482
+ body: request_content,
483
+ headers: request_headers.merge(custom_headers || {}),
484
+ base_url: request_url
485
+ }
486
+ promise = @client.make_request_async(:put, path_template, options)
487
+
488
+ promise = promise.then do |result|
489
+ http_response = result.response
490
+ status_code = http_response.status
491
+ response_content = http_response.body
492
+ unless status_code == 201 || status_code == 200
493
+ error_model = JSON.load(response_content)
494
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
495
+ end
496
+
497
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
498
+ # Deserialize Response
499
+ if status_code == 201
500
+ begin
501
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
502
+ result_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::OperationContract.mapper()
503
+ result.body = @client.deserialize(result_mapper, parsed_response)
504
+ rescue Exception => e
505
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
506
+ end
507
+ end
508
+ # Deserialize Response
509
+ if status_code == 200
510
+ begin
511
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
512
+ result_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::OperationContract.mapper()
513
+ result.body = @client.deserialize(result_mapper, parsed_response)
514
+ rescue Exception => e
515
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
516
+ end
517
+ end
518
+
519
+ result
520
+ end
521
+
522
+ promise.execute
523
+ end
524
+
525
+ #
526
+ # Updates the details of the operation in the API specified by its identifier.
527
+ #
528
+ # @param resource_group_name [String] The name of the resource group.
529
+ # @param service_name [String] The name of the API Management service.
530
+ # @param api_id [String] API revision identifier. Must be unique in the current
531
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
532
+ # where n is the revision number.
533
+ # @param operation_id [String] Operation identifier within an API. Must be
534
+ # unique in the current API Management service instance.
535
+ # @param parameters [OperationUpdateContract] API Operation Update parameters.
536
+ # @param if_match [String] ETag of the API Operation Entity. ETag should match
537
+ # the current entity state from the header response of the GET request or it
538
+ # should be * for unconditional update.
539
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
540
+ # will be added to the HTTP request.
541
+ #
542
+ #
543
+ def update(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil)
544
+ response = update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:custom_headers).value!
545
+ nil
546
+ end
547
+
548
+ #
549
+ # Updates the details of the operation in the API specified by its identifier.
550
+ #
551
+ # @param resource_group_name [String] The name of the resource group.
552
+ # @param service_name [String] The name of the API Management service.
553
+ # @param api_id [String] API revision identifier. Must be unique in the current
554
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
555
+ # where n is the revision number.
556
+ # @param operation_id [String] Operation identifier within an API. Must be
557
+ # unique in the current API Management service instance.
558
+ # @param parameters [OperationUpdateContract] API Operation Update parameters.
559
+ # @param if_match [String] ETag of the API Operation Entity. ETag should match
560
+ # the current entity state from the header response of the GET request or it
561
+ # should be * for unconditional update.
562
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
563
+ # will be added to the HTTP request.
564
+ #
565
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
566
+ #
567
+ def update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil)
568
+ update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:custom_headers).value!
569
+ end
570
+
571
+ #
572
+ # Updates the details of the operation in the API specified by its identifier.
573
+ #
574
+ # @param resource_group_name [String] The name of the resource group.
575
+ # @param service_name [String] The name of the API Management service.
576
+ # @param api_id [String] API revision identifier. Must be unique in the current
577
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
578
+ # where n is the revision number.
579
+ # @param operation_id [String] Operation identifier within an API. Must be
580
+ # unique in the current API Management service instance.
581
+ # @param parameters [OperationUpdateContract] API Operation Update parameters.
582
+ # @param if_match [String] ETag of the API Operation Entity. ETag should match
583
+ # the current entity state from the header response of the GET request or it
584
+ # should be * for unconditional update.
585
+ # @param [Hash{String => String}] A hash of custom headers that will be added
586
+ # to the HTTP request.
587
+ #
588
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
589
+ #
590
+ def update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil)
591
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
592
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
593
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
594
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
595
+ 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?
596
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
597
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
598
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
599
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
600
+ fail ArgumentError, 'operation_id is nil' if operation_id.nil?
601
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256
602
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
603
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
604
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
605
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
606
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
607
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
608
+
609
+
610
+ request_headers = {}
611
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
612
+
613
+ # Set Headers
614
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
615
+ request_headers['If-Match'] = if_match unless if_match.nil?
616
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
617
+
618
+ # Serialize Request
619
+ request_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::OperationUpdateContract.mapper()
620
+ request_content = @client.serialize(request_mapper, parameters)
621
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
622
+
623
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'
624
+
625
+ request_url = @base_url || @client.base_url
626
+
627
+ options = {
628
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
629
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
630
+ query_params: {'api-version' => @client.api_version},
631
+ body: request_content,
632
+ headers: request_headers.merge(custom_headers || {}),
633
+ base_url: request_url
634
+ }
635
+ promise = @client.make_request_async(:patch, path_template, options)
636
+
637
+ promise = promise.then do |result|
638
+ http_response = result.response
639
+ status_code = http_response.status
640
+ response_content = http_response.body
641
+ unless status_code == 204
642
+ error_model = JSON.load(response_content)
643
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
644
+ end
645
+
646
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
647
+
648
+ result
649
+ end
650
+
651
+ promise.execute
652
+ end
653
+
654
+ #
655
+ # Deletes the specified operation in the API.
656
+ #
657
+ # @param resource_group_name [String] The name of the resource group.
658
+ # @param service_name [String] The name of the API Management service.
659
+ # @param api_id [String] API revision identifier. Must be unique in the current
660
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
661
+ # where n is the revision number.
662
+ # @param operation_id [String] Operation identifier within an API. Must be
663
+ # unique in the current API Management service instance.
664
+ # @param if_match [String] ETag of the API Operation Entity. ETag should match
665
+ # the current entity state from the header response of the GET request or it
666
+ # should be * for unconditional update.
667
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
668
+ # will be added to the HTTP request.
669
+ #
670
+ #
671
+ def delete(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil)
672
+ response = delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:custom_headers).value!
673
+ nil
674
+ end
675
+
676
+ #
677
+ # Deletes the specified operation in the API.
678
+ #
679
+ # @param resource_group_name [String] The name of the resource group.
680
+ # @param service_name [String] The name of the API Management service.
681
+ # @param api_id [String] API revision identifier. Must be unique in the current
682
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
683
+ # where n is the revision number.
684
+ # @param operation_id [String] Operation identifier within an API. Must be
685
+ # unique in the current API Management service instance.
686
+ # @param if_match [String] ETag of the API Operation Entity. ETag should match
687
+ # the current entity state from the header response of the GET request or it
688
+ # should be * for unconditional update.
689
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
690
+ # will be added to the HTTP request.
691
+ #
692
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
693
+ #
694
+ def delete_with_http_info(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil)
695
+ delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:custom_headers).value!
696
+ end
697
+
698
+ #
699
+ # Deletes the specified operation in the API.
700
+ #
701
+ # @param resource_group_name [String] The name of the resource group.
702
+ # @param service_name [String] The name of the API Management service.
703
+ # @param api_id [String] API revision identifier. Must be unique in the current
704
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
705
+ # where n is the revision number.
706
+ # @param operation_id [String] Operation identifier within an API. Must be
707
+ # unique in the current API Management service instance.
708
+ # @param if_match [String] ETag of the API Operation Entity. ETag should match
709
+ # the current entity state from the header response of the GET request or it
710
+ # should be * for unconditional update.
711
+ # @param [Hash{String => String}] A hash of custom headers that will be added
712
+ # to the HTTP request.
713
+ #
714
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
715
+ #
716
+ def delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil)
717
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
718
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
719
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
720
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
721
+ 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?
722
+ fail ArgumentError, 'api_id is nil' if api_id.nil?
723
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
724
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
725
+ fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
726
+ fail ArgumentError, 'operation_id is nil' if operation_id.nil?
727
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256
728
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
729
+ fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
730
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
731
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
732
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
733
+
734
+
735
+ request_headers = {}
736
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
737
+
738
+ # Set Headers
739
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
740
+ request_headers['If-Match'] = if_match unless if_match.nil?
741
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
742
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'
743
+
744
+ request_url = @base_url || @client.base_url
745
+
746
+ options = {
747
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
748
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
749
+ query_params: {'api-version' => @client.api_version},
750
+ headers: request_headers.merge(custom_headers || {}),
751
+ base_url: request_url
752
+ }
753
+ promise = @client.make_request_async(:delete, path_template, options)
754
+
755
+ promise = promise.then do |result|
756
+ http_response = result.response
757
+ status_code = http_response.status
758
+ response_content = http_response.body
759
+ unless status_code == 204
760
+ error_model = JSON.load(response_content)
761
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
762
+ end
763
+
764
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
765
+
766
+ result
767
+ end
768
+
769
+ promise.execute
770
+ end
771
+
772
+ #
773
+ # Lists a collection of the operations for the specified API.
774
+ #
775
+ # @param next_page_link [String] The NextLink from the previous successful call
776
+ # to List operation.
777
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
778
+ # will be added to the HTTP request.
779
+ #
780
+ # @return [OperationCollection] operation results.
781
+ #
782
+ def list_by_api_next(next_page_link, custom_headers:nil)
783
+ response = list_by_api_next_async(next_page_link, custom_headers:custom_headers).value!
784
+ response.body unless response.nil?
785
+ end
786
+
787
+ #
788
+ # Lists a collection of the operations for the specified API.
789
+ #
790
+ # @param next_page_link [String] The NextLink from the previous successful call
791
+ # to List operation.
792
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
793
+ # will be added to the HTTP request.
794
+ #
795
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
796
+ #
797
+ def list_by_api_next_with_http_info(next_page_link, custom_headers:nil)
798
+ list_by_api_next_async(next_page_link, custom_headers:custom_headers).value!
799
+ end
800
+
801
+ #
802
+ # Lists a collection of the operations for the specified API.
803
+ #
804
+ # @param next_page_link [String] The NextLink from the previous successful call
805
+ # to List operation.
806
+ # @param [Hash{String => String}] A hash of custom headers that will be added
807
+ # to the HTTP request.
808
+ #
809
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
810
+ #
811
+ def list_by_api_next_async(next_page_link, custom_headers:nil)
812
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
813
+
814
+
815
+ request_headers = {}
816
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
817
+
818
+ # Set Headers
819
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
820
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
821
+ path_template = '{nextLink}'
822
+
823
+ request_url = @base_url || @client.base_url
824
+
825
+ options = {
826
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
827
+ skip_encoding_path_params: {'nextLink' => next_page_link},
828
+ headers: request_headers.merge(custom_headers || {}),
829
+ base_url: request_url
830
+ }
831
+ promise = @client.make_request_async(:get, path_template, options)
832
+
833
+ promise = promise.then do |result|
834
+ http_response = result.response
835
+ status_code = http_response.status
836
+ response_content = http_response.body
837
+ unless status_code == 200
838
+ error_model = JSON.load(response_content)
839
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
840
+ end
841
+
842
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
843
+ # Deserialize Response
844
+ if status_code == 200
845
+ begin
846
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
847
+ result_mapper = Azure::ApiManagement::Mgmt::V2017_03_01::Models::OperationCollection.mapper()
848
+ result.body = @client.deserialize(result_mapper, parsed_response)
849
+ rescue Exception => e
850
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
851
+ end
852
+ end
853
+
854
+ result
855
+ end
856
+
857
+ promise.execute
858
+ end
859
+
860
+ #
861
+ # Lists a collection of the operations for the specified API.
862
+ #
863
+ # @param resource_group_name [String] The name of the resource group.
864
+ # @param service_name [String] The name of the API Management service.
865
+ # @param api_id [String] API revision identifier. Must be unique in the current
866
+ # API Management service instance. Non-current revision has ;rev=n as a suffix
867
+ # where n is the revision number.
868
+ # @param filter [String] | Field | Supported operators | Supported
869
+ # functions |
870
+ # |-------------|------------------------|-----------------------------------|
871
+ # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
872
+ # | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
873
+ # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
874
+ # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
875
+ # @param top [Integer] Number of records to return.
876
+ # @param skip [Integer] Number of records to skip.
877
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
878
+ # will be added to the HTTP request.
879
+ #
880
+ # @return [OperationCollection] which provide lazy access to pages of the
881
+ # response.
882
+ #
883
+ def list_by_api_as_lazy(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
884
+ response = list_by_api_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
885
+ unless response.nil?
886
+ page = response.body
887
+ page.next_method = Proc.new do |next_page_link|
888
+ list_by_api_next_async(next_page_link, custom_headers:custom_headers)
889
+ end
890
+ page
891
+ end
892
+ end
893
+
894
+ end
895
+ end