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,1194 @@
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::V2018_01_01
7
+ #
8
+ # ApiManagement Client
9
+ #
10
+ class User
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the User 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
+ # Returns calling user identity information.
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 custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [CurrentUserIdentity] operation results.
33
+ #
34
+ def get_identity(resource_group_name, service_name, custom_headers:nil)
35
+ response = get_identity_async(resource_group_name, service_name, custom_headers:custom_headers).value!
36
+ response.body unless response.nil?
37
+ end
38
+
39
+ #
40
+ # Returns calling user identity information.
41
+ #
42
+ # @param resource_group_name [String] The name of the resource group.
43
+ # @param service_name [String] The name of the API Management service.
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
+ #
49
+ def get_identity_with_http_info(resource_group_name, service_name, custom_headers:nil)
50
+ get_identity_async(resource_group_name, service_name, custom_headers:custom_headers).value!
51
+ end
52
+
53
+ #
54
+ # Returns calling user identity information.
55
+ #
56
+ # @param resource_group_name [String] The name of the resource group.
57
+ # @param service_name [String] The name of the API Management service.
58
+ # @param [Hash{String => String}] A hash of custom headers that will be added
59
+ # to the HTTP request.
60
+ #
61
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
+ #
63
+ def get_identity_async(resource_group_name, service_name, custom_headers:nil)
64
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
65
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
66
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
67
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
68
+ 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?
69
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
70
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
71
+
72
+
73
+ request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
+
76
+ # Set Headers
77
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
78
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
79
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identity'
80
+
81
+ request_url = @base_url || @client.base_url
82
+
83
+ options = {
84
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
85
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
86
+ query_params: {'api-version' => @client.api_version},
87
+ headers: request_headers.merge(custom_headers || {}),
88
+ base_url: request_url
89
+ }
90
+ promise = @client.make_request_async(:get, path_template, options)
91
+
92
+ promise = promise.then do |result|
93
+ http_response = result.response
94
+ status_code = http_response.status
95
+ response_content = http_response.body
96
+ unless status_code == 200
97
+ error_model = JSON.load(response_content)
98
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
99
+ end
100
+
101
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
102
+ # Deserialize Response
103
+ if status_code == 200
104
+ begin
105
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
106
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::CurrentUserIdentity.mapper()
107
+ result.body = @client.deserialize(result_mapper, parsed_response)
108
+ rescue Exception => e
109
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
110
+ end
111
+ end
112
+
113
+ result
114
+ end
115
+
116
+ promise.execute
117
+ end
118
+
119
+ #
120
+ # Lists a collection of registered users in the specified service instance.
121
+ #
122
+ # @param resource_group_name [String] The name of the resource group.
123
+ # @param service_name [String] The name of the API Management service.
124
+ # @param filter [String] | Field | Supported operators |
125
+ # Supported functions |
126
+ # |------------------|------------------------|-----------------------------------|
127
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains,
128
+ # startswith, endswith |
129
+ # | firstName | ge, le, eq, ne, gt, lt | substringof, contains,
130
+ # startswith, endswith |
131
+ # | lastName | ge, le, eq, ne, gt, lt | substringof, contains,
132
+ # startswith, endswith |
133
+ # | email | ge, le, eq, ne, gt, lt | substringof, contains,
134
+ # startswith, endswith |
135
+ # | state | eq | N/A
136
+ # |
137
+ # | registrationDate | ge, le, eq, ne, gt, lt | N/A
138
+ # |
139
+ # | note | ge, le, eq, ne, gt, lt | substringof, contains,
140
+ # startswith, endswith |
141
+ # @param top [Integer] Number of records to return.
142
+ # @param skip [Integer] Number of records to skip.
143
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
144
+ # will be added to the HTTP request.
145
+ #
146
+ # @return [Array<UserContract>] operation results.
147
+ #
148
+ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
149
+ first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
150
+ first_page.get_all_items
151
+ end
152
+
153
+ #
154
+ # Lists a collection of registered users in the specified service instance.
155
+ #
156
+ # @param resource_group_name [String] The name of the resource group.
157
+ # @param service_name [String] The name of the API Management service.
158
+ # @param filter [String] | Field | Supported operators |
159
+ # Supported functions |
160
+ # |------------------|------------------------|-----------------------------------|
161
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains,
162
+ # startswith, endswith |
163
+ # | firstName | ge, le, eq, ne, gt, lt | substringof, contains,
164
+ # startswith, endswith |
165
+ # | lastName | ge, le, eq, ne, gt, lt | substringof, contains,
166
+ # startswith, endswith |
167
+ # | email | ge, le, eq, ne, gt, lt | substringof, contains,
168
+ # startswith, endswith |
169
+ # | state | eq | N/A
170
+ # |
171
+ # | registrationDate | ge, le, eq, ne, gt, lt | N/A
172
+ # |
173
+ # | note | ge, le, eq, ne, gt, lt | substringof, contains,
174
+ # startswith, endswith |
175
+ # @param top [Integer] Number of records to return.
176
+ # @param skip [Integer] Number of records to skip.
177
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
178
+ # will be added to the HTTP request.
179
+ #
180
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
181
+ #
182
+ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
183
+ list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
184
+ end
185
+
186
+ #
187
+ # Lists a collection of registered users in the specified service instance.
188
+ #
189
+ # @param resource_group_name [String] The name of the resource group.
190
+ # @param service_name [String] The name of the API Management service.
191
+ # @param filter [String] | Field | Supported operators |
192
+ # Supported functions |
193
+ # |------------------|------------------------|-----------------------------------|
194
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains,
195
+ # startswith, endswith |
196
+ # | firstName | ge, le, eq, ne, gt, lt | substringof, contains,
197
+ # startswith, endswith |
198
+ # | lastName | ge, le, eq, ne, gt, lt | substringof, contains,
199
+ # startswith, endswith |
200
+ # | email | ge, le, eq, ne, gt, lt | substringof, contains,
201
+ # startswith, endswith |
202
+ # | state | eq | N/A
203
+ # |
204
+ # | registrationDate | ge, le, eq, ne, gt, lt | N/A
205
+ # |
206
+ # | note | ge, le, eq, ne, gt, lt | substringof, contains,
207
+ # startswith, endswith |
208
+ # @param top [Integer] Number of records to return.
209
+ # @param skip [Integer] Number of records to skip.
210
+ # @param [Hash{String => String}] A hash of custom headers that will be added
211
+ # to the HTTP request.
212
+ #
213
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
214
+ #
215
+ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
216
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
217
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
218
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
219
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
220
+ 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?
221
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
222
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
223
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
224
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
225
+
226
+
227
+ request_headers = {}
228
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
229
+
230
+ # Set Headers
231
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
232
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
233
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users'
234
+
235
+ request_url = @base_url || @client.base_url
236
+
237
+ options = {
238
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
239
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
240
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
241
+ headers: request_headers.merge(custom_headers || {}),
242
+ base_url: request_url
243
+ }
244
+ promise = @client.make_request_async(:get, path_template, options)
245
+
246
+ promise = promise.then do |result|
247
+ http_response = result.response
248
+ status_code = http_response.status
249
+ response_content = http_response.body
250
+ unless status_code == 200
251
+ error_model = JSON.load(response_content)
252
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
253
+ end
254
+
255
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
256
+ # Deserialize Response
257
+ if status_code == 200
258
+ begin
259
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
260
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::UserCollection.mapper()
261
+ result.body = @client.deserialize(result_mapper, parsed_response)
262
+ rescue Exception => e
263
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
264
+ end
265
+ end
266
+
267
+ result
268
+ end
269
+
270
+ promise.execute
271
+ end
272
+
273
+ #
274
+ # Gets the entity state (Etag) version of the user specified by its identifier.
275
+ #
276
+ # @param resource_group_name [String] The name of the resource group.
277
+ # @param service_name [String] The name of the API Management service.
278
+ # @param uid [String] User identifier. Must be unique in the current API
279
+ # Management service instance.
280
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
281
+ # will be added to the HTTP request.
282
+ #
283
+ #
284
+ def get_entity_tag(resource_group_name, service_name, uid, custom_headers:nil)
285
+ response = get_entity_tag_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value!
286
+ nil
287
+ end
288
+
289
+ #
290
+ # Gets the entity state (Etag) version of the user specified by its identifier.
291
+ #
292
+ # @param resource_group_name [String] The name of the resource group.
293
+ # @param service_name [String] The name of the API Management service.
294
+ # @param uid [String] User identifier. Must be unique in the current API
295
+ # Management service instance.
296
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
297
+ # will be added to the HTTP request.
298
+ #
299
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
300
+ #
301
+ def get_entity_tag_with_http_info(resource_group_name, service_name, uid, custom_headers:nil)
302
+ get_entity_tag_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value!
303
+ end
304
+
305
+ #
306
+ # Gets the entity state (Etag) version of the user specified by its identifier.
307
+ #
308
+ # @param resource_group_name [String] The name of the resource group.
309
+ # @param service_name [String] The name of the API Management service.
310
+ # @param uid [String] User identifier. Must be unique in the current API
311
+ # Management service instance.
312
+ # @param [Hash{String => String}] A hash of custom headers that will be added
313
+ # to the HTTP request.
314
+ #
315
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
316
+ #
317
+ def get_entity_tag_async(resource_group_name, service_name, uid, custom_headers:nil)
318
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
319
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
320
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
321
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
322
+ 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?
323
+ fail ArgumentError, 'uid is nil' if uid.nil?
324
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '80'" if !uid.nil? && uid.length > 80
325
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1
326
+ fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !uid.nil? && uid.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
327
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
328
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
329
+
330
+
331
+ request_headers = {}
332
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
333
+
334
+ # Set Headers
335
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
336
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
337
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}'
338
+
339
+ request_url = @base_url || @client.base_url
340
+
341
+ options = {
342
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
343
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id},
344
+ query_params: {'api-version' => @client.api_version},
345
+ headers: request_headers.merge(custom_headers || {}),
346
+ base_url: request_url
347
+ }
348
+ promise = @client.make_request_async(:head, path_template, options)
349
+
350
+ promise = promise.then do |result|
351
+ http_response = result.response
352
+ status_code = http_response.status
353
+ response_content = http_response.body
354
+ unless status_code == 200
355
+ error_model = JSON.load(response_content)
356
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
357
+ end
358
+
359
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
360
+
361
+ result
362
+ end
363
+
364
+ promise.execute
365
+ end
366
+
367
+ #
368
+ # Gets the details of the user specified by its identifier.
369
+ #
370
+ # @param resource_group_name [String] The name of the resource group.
371
+ # @param service_name [String] The name of the API Management service.
372
+ # @param uid [String] User identifier. Must be unique in the current API
373
+ # Management service instance.
374
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
375
+ # will be added to the HTTP request.
376
+ #
377
+ # @return [UserContract] operation results.
378
+ #
379
+ def get(resource_group_name, service_name, uid, custom_headers:nil)
380
+ response = get_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value!
381
+ response.body unless response.nil?
382
+ end
383
+
384
+ #
385
+ # Gets the details of the user specified by its identifier.
386
+ #
387
+ # @param resource_group_name [String] The name of the resource group.
388
+ # @param service_name [String] The name of the API Management service.
389
+ # @param uid [String] User identifier. Must be unique in the current API
390
+ # Management service instance.
391
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
392
+ # will be added to the HTTP request.
393
+ #
394
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
395
+ #
396
+ def get_with_http_info(resource_group_name, service_name, uid, custom_headers:nil)
397
+ get_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value!
398
+ end
399
+
400
+ #
401
+ # Gets the details of the user specified by its identifier.
402
+ #
403
+ # @param resource_group_name [String] The name of the resource group.
404
+ # @param service_name [String] The name of the API Management service.
405
+ # @param uid [String] User identifier. Must be unique in the current API
406
+ # Management service instance.
407
+ # @param [Hash{String => String}] A hash of custom headers that will be added
408
+ # to the HTTP request.
409
+ #
410
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
411
+ #
412
+ def get_async(resource_group_name, service_name, uid, custom_headers:nil)
413
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
414
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
415
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
416
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
417
+ 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?
418
+ fail ArgumentError, 'uid is nil' if uid.nil?
419
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '80'" if !uid.nil? && uid.length > 80
420
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1
421
+ fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !uid.nil? && uid.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
422
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
423
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
424
+
425
+
426
+ request_headers = {}
427
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
428
+
429
+ # Set Headers
430
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
431
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
432
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}'
433
+
434
+ request_url = @base_url || @client.base_url
435
+
436
+ options = {
437
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
438
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id},
439
+ query_params: {'api-version' => @client.api_version},
440
+ headers: request_headers.merge(custom_headers || {}),
441
+ base_url: request_url
442
+ }
443
+ promise = @client.make_request_async(:get, path_template, options)
444
+
445
+ promise = promise.then do |result|
446
+ http_response = result.response
447
+ status_code = http_response.status
448
+ response_content = http_response.body
449
+ unless status_code == 200
450
+ error_model = JSON.load(response_content)
451
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
452
+ end
453
+
454
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
455
+ # Deserialize Response
456
+ if status_code == 200
457
+ begin
458
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
459
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::UserContract.mapper()
460
+ result.body = @client.deserialize(result_mapper, parsed_response)
461
+ rescue Exception => e
462
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
463
+ end
464
+ end
465
+
466
+ result
467
+ end
468
+
469
+ promise.execute
470
+ end
471
+
472
+ #
473
+ # Creates or Updates a user.
474
+ #
475
+ # @param resource_group_name [String] The name of the resource group.
476
+ # @param service_name [String] The name of the API Management service.
477
+ # @param uid [String] User identifier. Must be unique in the current API
478
+ # Management service instance.
479
+ # @param parameters [UserCreateParameters] Create or update parameters.
480
+ # @param if_match [String] ETag of the Entity. Not required when creating an
481
+ # entity, but required when updating an entity.
482
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
483
+ # will be added to the HTTP request.
484
+ #
485
+ # @return [UserContract] operation results.
486
+ #
487
+ def create_or_update(resource_group_name, service_name, uid, parameters, if_match:nil, custom_headers:nil)
488
+ response = create_or_update_async(resource_group_name, service_name, uid, parameters, if_match:if_match, custom_headers:custom_headers).value!
489
+ response.body unless response.nil?
490
+ end
491
+
492
+ #
493
+ # Creates or Updates a user.
494
+ #
495
+ # @param resource_group_name [String] The name of the resource group.
496
+ # @param service_name [String] The name of the API Management service.
497
+ # @param uid [String] User identifier. Must be unique in the current API
498
+ # Management service instance.
499
+ # @param parameters [UserCreateParameters] Create or update parameters.
500
+ # @param if_match [String] ETag of the Entity. Not required when creating an
501
+ # entity, but required when updating an entity.
502
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
503
+ # will be added to the HTTP request.
504
+ #
505
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
506
+ #
507
+ def create_or_update_with_http_info(resource_group_name, service_name, uid, parameters, if_match:nil, custom_headers:nil)
508
+ create_or_update_async(resource_group_name, service_name, uid, parameters, if_match:if_match, custom_headers:custom_headers).value!
509
+ end
510
+
511
+ #
512
+ # Creates or Updates a user.
513
+ #
514
+ # @param resource_group_name [String] The name of the resource group.
515
+ # @param service_name [String] The name of the API Management service.
516
+ # @param uid [String] User identifier. Must be unique in the current API
517
+ # Management service instance.
518
+ # @param parameters [UserCreateParameters] Create or update parameters.
519
+ # @param if_match [String] ETag of the Entity. Not required when creating an
520
+ # entity, but required when updating an entity.
521
+ # @param [Hash{String => String}] A hash of custom headers that will be added
522
+ # to the HTTP request.
523
+ #
524
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
525
+ #
526
+ def create_or_update_async(resource_group_name, service_name, uid, parameters, if_match:nil, custom_headers:nil)
527
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
528
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
529
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
530
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
531
+ 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?
532
+ fail ArgumentError, 'uid is nil' if uid.nil?
533
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '80'" if !uid.nil? && uid.length > 80
534
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1
535
+ fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !uid.nil? && uid.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
536
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
537
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
538
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
539
+
540
+
541
+ request_headers = {}
542
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
543
+
544
+ # Set Headers
545
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
546
+ request_headers['If-Match'] = if_match unless if_match.nil?
547
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
548
+
549
+ # Serialize Request
550
+ request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::UserCreateParameters.mapper()
551
+ request_content = @client.serialize(request_mapper, parameters)
552
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
553
+
554
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}'
555
+
556
+ request_url = @base_url || @client.base_url
557
+
558
+ options = {
559
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
560
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id},
561
+ query_params: {'api-version' => @client.api_version},
562
+ body: request_content,
563
+ headers: request_headers.merge(custom_headers || {}),
564
+ base_url: request_url
565
+ }
566
+ promise = @client.make_request_async(:put, path_template, options)
567
+
568
+ promise = promise.then do |result|
569
+ http_response = result.response
570
+ status_code = http_response.status
571
+ response_content = http_response.body
572
+ unless status_code == 201 || status_code == 200
573
+ error_model = JSON.load(response_content)
574
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
575
+ end
576
+
577
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
578
+ # Deserialize Response
579
+ if status_code == 201
580
+ begin
581
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
582
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::UserContract.mapper()
583
+ result.body = @client.deserialize(result_mapper, parsed_response)
584
+ rescue Exception => e
585
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
586
+ end
587
+ end
588
+ # Deserialize Response
589
+ if status_code == 200
590
+ begin
591
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
592
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::UserContract.mapper()
593
+ result.body = @client.deserialize(result_mapper, parsed_response)
594
+ rescue Exception => e
595
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
596
+ end
597
+ end
598
+
599
+ result
600
+ end
601
+
602
+ promise.execute
603
+ end
604
+
605
+ #
606
+ # Updates the details of the user specified by its identifier.
607
+ #
608
+ # @param resource_group_name [String] The name of the resource group.
609
+ # @param service_name [String] The name of the API Management service.
610
+ # @param uid [String] User identifier. Must be unique in the current API
611
+ # Management service instance.
612
+ # @param parameters [UserUpdateParameters] Update parameters.
613
+ # @param if_match [String] ETag of the Entity. ETag should match the current
614
+ # entity state from the header response of the GET request or it should be *
615
+ # for unconditional update.
616
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
617
+ # will be added to the HTTP request.
618
+ #
619
+ #
620
+ def update(resource_group_name, service_name, uid, parameters, if_match, custom_headers:nil)
621
+ response = update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers:custom_headers).value!
622
+ nil
623
+ end
624
+
625
+ #
626
+ # Updates the details of the user specified by its identifier.
627
+ #
628
+ # @param resource_group_name [String] The name of the resource group.
629
+ # @param service_name [String] The name of the API Management service.
630
+ # @param uid [String] User identifier. Must be unique in the current API
631
+ # Management service instance.
632
+ # @param parameters [UserUpdateParameters] Update parameters.
633
+ # @param if_match [String] ETag of the Entity. ETag should match the current
634
+ # entity state from the header response of the GET request or it should be *
635
+ # for unconditional update.
636
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
637
+ # will be added to the HTTP request.
638
+ #
639
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
640
+ #
641
+ def update_with_http_info(resource_group_name, service_name, uid, parameters, if_match, custom_headers:nil)
642
+ update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers:custom_headers).value!
643
+ end
644
+
645
+ #
646
+ # Updates the details of the user specified by its identifier.
647
+ #
648
+ # @param resource_group_name [String] The name of the resource group.
649
+ # @param service_name [String] The name of the API Management service.
650
+ # @param uid [String] User identifier. Must be unique in the current API
651
+ # Management service instance.
652
+ # @param parameters [UserUpdateParameters] Update parameters.
653
+ # @param if_match [String] ETag of the Entity. ETag should match the current
654
+ # entity state from the header response of the GET request or it should be *
655
+ # for unconditional update.
656
+ # @param [Hash{String => String}] A hash of custom headers that will be added
657
+ # to the HTTP request.
658
+ #
659
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
660
+ #
661
+ def update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers:nil)
662
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
663
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
664
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
665
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
666
+ 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?
667
+ fail ArgumentError, 'uid is nil' if uid.nil?
668
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '80'" if !uid.nil? && uid.length > 80
669
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1
670
+ fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !uid.nil? && uid.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
671
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
672
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
673
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
674
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
675
+
676
+
677
+ request_headers = {}
678
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
679
+
680
+ # Set Headers
681
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
682
+ request_headers['If-Match'] = if_match unless if_match.nil?
683
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
684
+
685
+ # Serialize Request
686
+ request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::UserUpdateParameters.mapper()
687
+ request_content = @client.serialize(request_mapper, parameters)
688
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
689
+
690
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}'
691
+
692
+ request_url = @base_url || @client.base_url
693
+
694
+ options = {
695
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
696
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id},
697
+ query_params: {'api-version' => @client.api_version},
698
+ body: request_content,
699
+ headers: request_headers.merge(custom_headers || {}),
700
+ base_url: request_url
701
+ }
702
+ promise = @client.make_request_async(:patch, path_template, options)
703
+
704
+ promise = promise.then do |result|
705
+ http_response = result.response
706
+ status_code = http_response.status
707
+ response_content = http_response.body
708
+ unless status_code == 204
709
+ error_model = JSON.load(response_content)
710
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
711
+ end
712
+
713
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
714
+
715
+ result
716
+ end
717
+
718
+ promise.execute
719
+ end
720
+
721
+ #
722
+ # Deletes specific user.
723
+ #
724
+ # @param resource_group_name [String] The name of the resource group.
725
+ # @param service_name [String] The name of the API Management service.
726
+ # @param uid [String] User identifier. Must be unique in the current API
727
+ # Management service instance.
728
+ # @param if_match [String] ETag of the Entity. ETag should match the current
729
+ # entity state from the header response of the GET request or it should be *
730
+ # for unconditional update.
731
+ # @param delete_subscriptions [Boolean] Whether to delete user's subscription
732
+ # or not.
733
+ # @param notify [Boolean] Send an Account Closed Email notification to the
734
+ # User.
735
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
736
+ # will be added to the HTTP request.
737
+ #
738
+ #
739
+ def delete(resource_group_name, service_name, uid, if_match, delete_subscriptions:nil, notify:nil, custom_headers:nil)
740
+ response = delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions:delete_subscriptions, notify:notify, custom_headers:custom_headers).value!
741
+ nil
742
+ end
743
+
744
+ #
745
+ # Deletes specific user.
746
+ #
747
+ # @param resource_group_name [String] The name of the resource group.
748
+ # @param service_name [String] The name of the API Management service.
749
+ # @param uid [String] User identifier. Must be unique in the current API
750
+ # Management service instance.
751
+ # @param if_match [String] ETag of the Entity. ETag should match the current
752
+ # entity state from the header response of the GET request or it should be *
753
+ # for unconditional update.
754
+ # @param delete_subscriptions [Boolean] Whether to delete user's subscription
755
+ # or not.
756
+ # @param notify [Boolean] Send an Account Closed Email notification to the
757
+ # User.
758
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
759
+ # will be added to the HTTP request.
760
+ #
761
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
762
+ #
763
+ def delete_with_http_info(resource_group_name, service_name, uid, if_match, delete_subscriptions:nil, notify:nil, custom_headers:nil)
764
+ delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions:delete_subscriptions, notify:notify, custom_headers:custom_headers).value!
765
+ end
766
+
767
+ #
768
+ # Deletes specific user.
769
+ #
770
+ # @param resource_group_name [String] The name of the resource group.
771
+ # @param service_name [String] The name of the API Management service.
772
+ # @param uid [String] User identifier. Must be unique in the current API
773
+ # Management service instance.
774
+ # @param if_match [String] ETag of the Entity. ETag should match the current
775
+ # entity state from the header response of the GET request or it should be *
776
+ # for unconditional update.
777
+ # @param delete_subscriptions [Boolean] Whether to delete user's subscription
778
+ # or not.
779
+ # @param notify [Boolean] Send an Account Closed Email notification to the
780
+ # User.
781
+ # @param [Hash{String => String}] A hash of custom headers that will be added
782
+ # to the HTTP request.
783
+ #
784
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
785
+ #
786
+ def delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions:nil, notify:nil, custom_headers:nil)
787
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
788
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
789
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
790
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
791
+ 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?
792
+ fail ArgumentError, 'uid is nil' if uid.nil?
793
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '80'" if !uid.nil? && uid.length > 80
794
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1
795
+ fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !uid.nil? && uid.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
796
+ fail ArgumentError, 'if_match is nil' if if_match.nil?
797
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
798
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
799
+
800
+
801
+ request_headers = {}
802
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
803
+
804
+ # Set Headers
805
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
806
+ request_headers['If-Match'] = if_match unless if_match.nil?
807
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
808
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}'
809
+
810
+ request_url = @base_url || @client.base_url
811
+
812
+ options = {
813
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
814
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id},
815
+ query_params: {'deleteSubscriptions' => delete_subscriptions,'notify' => notify,'api-version' => @client.api_version},
816
+ headers: request_headers.merge(custom_headers || {}),
817
+ base_url: request_url
818
+ }
819
+ promise = @client.make_request_async(:delete, path_template, options)
820
+
821
+ promise = promise.then do |result|
822
+ http_response = result.response
823
+ status_code = http_response.status
824
+ response_content = http_response.body
825
+ unless status_code == 200 || status_code == 204
826
+ error_model = JSON.load(response_content)
827
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
828
+ end
829
+
830
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
831
+
832
+ result
833
+ end
834
+
835
+ promise.execute
836
+ end
837
+
838
+ #
839
+ # Retrieves a redirection URL containing an authentication token for signing a
840
+ # given user into the developer portal.
841
+ #
842
+ # @param resource_group_name [String] The name of the resource group.
843
+ # @param service_name [String] The name of the API Management service.
844
+ # @param uid [String] User identifier. Must be unique in the current API
845
+ # Management service instance.
846
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
847
+ # will be added to the HTTP request.
848
+ #
849
+ # @return [GenerateSsoUrlResult] operation results.
850
+ #
851
+ def generate_sso_url(resource_group_name, service_name, uid, custom_headers:nil)
852
+ response = generate_sso_url_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value!
853
+ response.body unless response.nil?
854
+ end
855
+
856
+ #
857
+ # Retrieves a redirection URL containing an authentication token for signing a
858
+ # given user into the developer portal.
859
+ #
860
+ # @param resource_group_name [String] The name of the resource group.
861
+ # @param service_name [String] The name of the API Management service.
862
+ # @param uid [String] User identifier. Must be unique in the current API
863
+ # Management service instance.
864
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
865
+ # will be added to the HTTP request.
866
+ #
867
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
868
+ #
869
+ def generate_sso_url_with_http_info(resource_group_name, service_name, uid, custom_headers:nil)
870
+ generate_sso_url_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value!
871
+ end
872
+
873
+ #
874
+ # Retrieves a redirection URL containing an authentication token for signing a
875
+ # given user into the developer portal.
876
+ #
877
+ # @param resource_group_name [String] The name of the resource group.
878
+ # @param service_name [String] The name of the API Management service.
879
+ # @param uid [String] User identifier. Must be unique in the current API
880
+ # Management service instance.
881
+ # @param [Hash{String => String}] A hash of custom headers that will be added
882
+ # to the HTTP request.
883
+ #
884
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
885
+ #
886
+ def generate_sso_url_async(resource_group_name, service_name, uid, custom_headers:nil)
887
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
888
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
889
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
890
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
891
+ 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?
892
+ fail ArgumentError, 'uid is nil' if uid.nil?
893
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '80'" if !uid.nil? && uid.length > 80
894
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1
895
+ fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !uid.nil? && uid.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
896
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
897
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
898
+
899
+
900
+ request_headers = {}
901
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
902
+
903
+ # Set Headers
904
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
905
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
906
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/generateSsoUrl'
907
+
908
+ request_url = @base_url || @client.base_url
909
+
910
+ options = {
911
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
912
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id},
913
+ query_params: {'api-version' => @client.api_version},
914
+ headers: request_headers.merge(custom_headers || {}),
915
+ base_url: request_url
916
+ }
917
+ promise = @client.make_request_async(:post, path_template, options)
918
+
919
+ promise = promise.then do |result|
920
+ http_response = result.response
921
+ status_code = http_response.status
922
+ response_content = http_response.body
923
+ unless status_code == 200
924
+ error_model = JSON.load(response_content)
925
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
926
+ end
927
+
928
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
929
+ # Deserialize Response
930
+ if status_code == 200
931
+ begin
932
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
933
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::GenerateSsoUrlResult.mapper()
934
+ result.body = @client.deserialize(result_mapper, parsed_response)
935
+ rescue Exception => e
936
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
937
+ end
938
+ end
939
+
940
+ result
941
+ end
942
+
943
+ promise.execute
944
+ end
945
+
946
+ #
947
+ # Gets the Shared Access Authorization Token for the User.
948
+ #
949
+ # @param resource_group_name [String] The name of the resource group.
950
+ # @param service_name [String] The name of the API Management service.
951
+ # @param uid [String] User identifier. Must be unique in the current API
952
+ # Management service instance.
953
+ # @param parameters [UserTokenParameters] Create Authorization Token
954
+ # parameters.
955
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
956
+ # will be added to the HTTP request.
957
+ #
958
+ # @return [UserTokenResult] operation results.
959
+ #
960
+ def get_shared_access_token(resource_group_name, service_name, uid, parameters, custom_headers:nil)
961
+ response = get_shared_access_token_async(resource_group_name, service_name, uid, parameters, custom_headers:custom_headers).value!
962
+ response.body unless response.nil?
963
+ end
964
+
965
+ #
966
+ # Gets the Shared Access Authorization Token for the User.
967
+ #
968
+ # @param resource_group_name [String] The name of the resource group.
969
+ # @param service_name [String] The name of the API Management service.
970
+ # @param uid [String] User identifier. Must be unique in the current API
971
+ # Management service instance.
972
+ # @param parameters [UserTokenParameters] Create Authorization Token
973
+ # parameters.
974
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
975
+ # will be added to the HTTP request.
976
+ #
977
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
978
+ #
979
+ def get_shared_access_token_with_http_info(resource_group_name, service_name, uid, parameters, custom_headers:nil)
980
+ get_shared_access_token_async(resource_group_name, service_name, uid, parameters, custom_headers:custom_headers).value!
981
+ end
982
+
983
+ #
984
+ # Gets the Shared Access Authorization Token for the User.
985
+ #
986
+ # @param resource_group_name [String] The name of the resource group.
987
+ # @param service_name [String] The name of the API Management service.
988
+ # @param uid [String] User identifier. Must be unique in the current API
989
+ # Management service instance.
990
+ # @param parameters [UserTokenParameters] Create Authorization Token
991
+ # parameters.
992
+ # @param [Hash{String => String}] A hash of custom headers that will be added
993
+ # to the HTTP request.
994
+ #
995
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
996
+ #
997
+ def get_shared_access_token_async(resource_group_name, service_name, uid, parameters, custom_headers:nil)
998
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
999
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
1000
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
1001
+ fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
1002
+ 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?
1003
+ fail ArgumentError, 'uid is nil' if uid.nil?
1004
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '80'" if !uid.nil? && uid.length > 80
1005
+ fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1
1006
+ fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !uid.nil? && uid.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
1007
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1008
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1009
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1010
+
1011
+
1012
+ request_headers = {}
1013
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1014
+
1015
+ # Set Headers
1016
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1017
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1018
+
1019
+ # Serialize Request
1020
+ request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::UserTokenParameters.mapper()
1021
+ request_content = @client.serialize(request_mapper, parameters)
1022
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1023
+
1024
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/token'
1025
+
1026
+ request_url = @base_url || @client.base_url
1027
+
1028
+ options = {
1029
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1030
+ path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id},
1031
+ query_params: {'api-version' => @client.api_version},
1032
+ body: request_content,
1033
+ headers: request_headers.merge(custom_headers || {}),
1034
+ base_url: request_url
1035
+ }
1036
+ promise = @client.make_request_async(:post, path_template, options)
1037
+
1038
+ promise = promise.then do |result|
1039
+ http_response = result.response
1040
+ status_code = http_response.status
1041
+ response_content = http_response.body
1042
+ unless status_code == 200
1043
+ error_model = JSON.load(response_content)
1044
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1045
+ end
1046
+
1047
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1048
+ # Deserialize Response
1049
+ if status_code == 200
1050
+ begin
1051
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1052
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::UserTokenResult.mapper()
1053
+ result.body = @client.deserialize(result_mapper, parsed_response)
1054
+ rescue Exception => e
1055
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1056
+ end
1057
+ end
1058
+
1059
+ result
1060
+ end
1061
+
1062
+ promise.execute
1063
+ end
1064
+
1065
+ #
1066
+ # Lists a collection of registered users in the specified service instance.
1067
+ #
1068
+ # @param next_page_link [String] The NextLink from the previous successful call
1069
+ # to List operation.
1070
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1071
+ # will be added to the HTTP request.
1072
+ #
1073
+ # @return [UserCollection] operation results.
1074
+ #
1075
+ def list_by_service_next(next_page_link, custom_headers:nil)
1076
+ response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
1077
+ response.body unless response.nil?
1078
+ end
1079
+
1080
+ #
1081
+ # Lists a collection of registered users in the specified service instance.
1082
+ #
1083
+ # @param next_page_link [String] The NextLink from the previous successful call
1084
+ # to List operation.
1085
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1086
+ # will be added to the HTTP request.
1087
+ #
1088
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1089
+ #
1090
+ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil)
1091
+ list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
1092
+ end
1093
+
1094
+ #
1095
+ # Lists a collection of registered users in the specified service instance.
1096
+ #
1097
+ # @param next_page_link [String] The NextLink from the previous successful call
1098
+ # to List operation.
1099
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1100
+ # to the HTTP request.
1101
+ #
1102
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1103
+ #
1104
+ def list_by_service_next_async(next_page_link, custom_headers:nil)
1105
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1106
+
1107
+
1108
+ request_headers = {}
1109
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1110
+
1111
+ # Set Headers
1112
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1113
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1114
+ path_template = '{nextLink}'
1115
+
1116
+ request_url = @base_url || @client.base_url
1117
+
1118
+ options = {
1119
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1120
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1121
+ headers: request_headers.merge(custom_headers || {}),
1122
+ base_url: request_url
1123
+ }
1124
+ promise = @client.make_request_async(:get, path_template, options)
1125
+
1126
+ promise = promise.then do |result|
1127
+ http_response = result.response
1128
+ status_code = http_response.status
1129
+ response_content = http_response.body
1130
+ unless status_code == 200
1131
+ error_model = JSON.load(response_content)
1132
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1133
+ end
1134
+
1135
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1136
+ # Deserialize Response
1137
+ if status_code == 200
1138
+ begin
1139
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1140
+ result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::UserCollection.mapper()
1141
+ result.body = @client.deserialize(result_mapper, parsed_response)
1142
+ rescue Exception => e
1143
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1144
+ end
1145
+ end
1146
+
1147
+ result
1148
+ end
1149
+
1150
+ promise.execute
1151
+ end
1152
+
1153
+ #
1154
+ # Lists a collection of registered users in the specified service instance.
1155
+ #
1156
+ # @param resource_group_name [String] The name of the resource group.
1157
+ # @param service_name [String] The name of the API Management service.
1158
+ # @param filter [String] | Field | Supported operators |
1159
+ # Supported functions |
1160
+ # |------------------|------------------------|-----------------------------------|
1161
+ # | id | ge, le, eq, ne, gt, lt | substringof, contains,
1162
+ # startswith, endswith |
1163
+ # | firstName | ge, le, eq, ne, gt, lt | substringof, contains,
1164
+ # startswith, endswith |
1165
+ # | lastName | ge, le, eq, ne, gt, lt | substringof, contains,
1166
+ # startswith, endswith |
1167
+ # | email | ge, le, eq, ne, gt, lt | substringof, contains,
1168
+ # startswith, endswith |
1169
+ # | state | eq | N/A
1170
+ # |
1171
+ # | registrationDate | ge, le, eq, ne, gt, lt | N/A
1172
+ # |
1173
+ # | note | ge, le, eq, ne, gt, lt | substringof, contains,
1174
+ # startswith, endswith |
1175
+ # @param top [Integer] Number of records to return.
1176
+ # @param skip [Integer] Number of records to skip.
1177
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1178
+ # will be added to the HTTP request.
1179
+ #
1180
+ # @return [UserCollection] which provide lazy access to pages of the response.
1181
+ #
1182
+ def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
1183
+ response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
1184
+ unless response.nil?
1185
+ page = response.body
1186
+ page.next_method = Proc.new do |next_page_link|
1187
+ list_by_service_next_async(next_page_link, custom_headers:custom_headers)
1188
+ end
1189
+ page
1190
+ end
1191
+ end
1192
+
1193
+ end
1194
+ end