azure_mgmt_api_management 0.18.2 → 0.18.3

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