azure_key_vault 0.17.2 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (376) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01/generated/azure_key_vault/key_vault_client.rb +157 -45
  3. data/lib/2015-06-01/generated/azure_key_vault/models/administrator_details.rb +1 -1
  4. data/lib/2015-06-01/generated/azure_key_vault/models/attributes.rb +4 -4
  5. data/lib/2015-06-01/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
  6. data/lib/2015-06-01/generated/azure_key_vault/models/contact.rb +1 -1
  7. data/lib/2015-06-01/generated/azure_key_vault/models/issuer_attributes.rb +2 -2
  8. data/lib/2015-06-01/generated/azure_key_vault/models/x509certificate_properties.rb +1 -1
  9. data/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb +243 -61
  10. data/lib/2016-10-01/generated/azure_key_vault/models/administrator_details.rb +1 -1
  11. data/lib/2016-10-01/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
  12. data/lib/2016-10-01/generated/azure_key_vault/models/contact.rb +1 -1
  13. data/lib/2016-10-01/generated/azure_key_vault/models/sas_definition_list_result.rb +1 -1
  14. data/lib/2016-10-01/generated/azure_key_vault/models/x509certificate_properties.rb +1 -1
  15. data/lib/7.0-preview/generated/azure_key_vault/key_vault_client.rb +279 -67
  16. data/lib/7.0-preview/generated/azure_key_vault/models/administrator_details.rb +1 -1
  17. data/lib/7.0-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
  18. data/lib/7.0-preview/generated/azure_key_vault/models/contact.rb +1 -1
  19. data/lib/7.0-preview/generated/azure_key_vault/models/issuer_parameters.rb +2 -2
  20. data/lib/7.0-preview/generated/azure_key_vault/models/sas_definition_list_result.rb +1 -1
  21. data/lib/7.0-preview/generated/azure_key_vault/models/x509certificate_properties.rb +1 -1
  22. data/lib/7.0/generated/azure_key_vault/key_vault_client.rb +305 -84
  23. data/lib/7.0/generated/azure_key_vault/models/administrator_details.rb +1 -1
  24. data/lib/7.0/generated/azure_key_vault/models/certificate_attributes.rb +2 -1
  25. data/lib/7.0/generated/azure_key_vault/models/certificate_import_parameters.rb +3 -3
  26. data/lib/7.0/generated/azure_key_vault/models/contact.rb +1 -1
  27. data/lib/7.0/generated/azure_key_vault/models/deletion_recovery_level.rb +3 -0
  28. data/lib/7.0/generated/azure_key_vault/models/issuer_parameters.rb +2 -2
  29. data/lib/7.0/generated/azure_key_vault/models/key_attributes.rb +2 -1
  30. data/lib/7.0/generated/azure_key_vault/models/sas_definition_attributes.rb +2 -1
  31. data/lib/7.0/generated/azure_key_vault/models/sas_definition_list_result.rb +1 -1
  32. data/lib/7.0/generated/azure_key_vault/models/secret_attributes.rb +2 -1
  33. data/lib/7.0/generated/azure_key_vault/models/storage_account_attributes.rb +2 -1
  34. data/lib/7.0/generated/azure_key_vault/models/x509certificate_properties.rb +1 -1
  35. data/lib/7.1-preview/generated/azure_key_vault.rb +125 -0
  36. data/lib/7.1-preview/generated/azure_key_vault/key_vault_client.rb +12662 -0
  37. data/lib/7.1-preview/generated/azure_key_vault/models/action.rb +48 -0
  38. data/lib/7.1-preview/generated/azure_key_vault/models/action_type.rb +16 -0
  39. data/lib/7.1-preview/generated/azure_key_vault/models/administrator_details.rb +79 -0
  40. data/lib/7.1-preview/generated/azure_key_vault/models/attributes.rb +92 -0
  41. data/lib/7.1-preview/generated/azure_key_vault/models/backup_certificate_result.rb +47 -0
  42. data/lib/7.1-preview/generated/azure_key_vault/models/backup_key_result.rb +47 -0
  43. data/lib/7.1-preview/generated/azure_key_vault/models/backup_secret_result.rb +47 -0
  44. data/lib/7.1-preview/generated/azure_key_vault/models/backup_storage_result.rb +47 -0
  45. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_attributes.rb +109 -0
  46. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_bundle.rb +151 -0
  47. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_create_parameters.rb +80 -0
  48. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +104 -0
  49. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_issuer_item.rb +57 -0
  50. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_issuer_list_result.rb +102 -0
  51. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_issuer_set_parameters.rb +83 -0
  52. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_issuer_update_parameters.rb +83 -0
  53. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_item.rb +89 -0
  54. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_list_result.rb +102 -0
  55. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_merge_parameters.rb +88 -0
  56. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_operation.rb +142 -0
  57. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_operation_update_parameter.rb +47 -0
  58. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_policy.rb +131 -0
  59. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_restore_parameters.rb +46 -0
  60. data/lib/7.1-preview/generated/azure_key_vault/models/certificate_update_parameters.rb +80 -0
  61. data/lib/7.1-preview/generated/azure_key_vault/models/contact.rb +68 -0
  62. data/lib/7.1-preview/generated/azure_key_vault/models/contacts.rb +67 -0
  63. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_certificate_bundle.rb +159 -0
  64. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_certificate_item.rb +113 -0
  65. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_certificate_list_result.rb +102 -0
  66. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_key_bundle.rb +115 -0
  67. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_key_item.rb +114 -0
  68. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_key_list_result.rb +102 -0
  69. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_sas_definition_bundle.rb +145 -0
  70. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_sas_definition_item.rb +118 -0
  71. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb +103 -0
  72. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_secret_bundle.rb +139 -0
  73. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_secret_item.rb +121 -0
  74. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_secret_list_result.rb +102 -0
  75. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_storage_account_item.rb +118 -0
  76. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_storage_bundle.rb +146 -0
  77. data/lib/7.1-preview/generated/azure_key_vault/models/deleted_storage_list_result.rb +103 -0
  78. data/lib/7.1-preview/generated/azure_key_vault/models/deletion_recovery_level.rb +21 -0
  79. data/lib/7.1-preview/generated/azure_key_vault/models/error.rb +72 -0
  80. data/lib/7.1-preview/generated/azure_key_vault/models/issuer_attributes.rb +70 -0
  81. data/lib/7.1-preview/generated/azure_key_vault/models/issuer_bundle.rb +95 -0
  82. data/lib/7.1-preview/generated/azure_key_vault/models/issuer_credentials.rb +57 -0
  83. data/lib/7.1-preview/generated/azure_key_vault/models/issuer_parameters.rb +71 -0
  84. data/lib/7.1-preview/generated/azure_key_vault/models/json_web_key.rb +223 -0
  85. data/lib/7.1-preview/generated/azure_key_vault/models/json_web_key_curve_name.rb +18 -0
  86. data/lib/7.1-preview/generated/azure_key_vault/models/json_web_key_encryption_algorithm.rb +17 -0
  87. data/lib/7.1-preview/generated/azure_key_vault/models/json_web_key_operation.rb +21 -0
  88. data/lib/7.1-preview/generated/azure_key_vault/models/json_web_key_signature_algorithm.rb +25 -0
  89. data/lib/7.1-preview/generated/azure_key_vault/models/json_web_key_type.rb +19 -0
  90. data/lib/7.1-preview/generated/azure_key_vault/models/key_attributes.rb +109 -0
  91. data/lib/7.1-preview/generated/azure_key_vault/models/key_bundle.rb +92 -0
  92. data/lib/7.1-preview/generated/azure_key_vault/models/key_create_parameters.rb +127 -0
  93. data/lib/7.1-preview/generated/azure_key_vault/models/key_import_parameters.rb +91 -0
  94. data/lib/7.1-preview/generated/azure_key_vault/models/key_item.rb +91 -0
  95. data/lib/7.1-preview/generated/azure_key_vault/models/key_list_result.rb +101 -0
  96. data/lib/7.1-preview/generated/azure_key_vault/models/key_operation_result.rb +59 -0
  97. data/lib/7.1-preview/generated/azure_key_vault/models/key_operations_parameters.rb +61 -0
  98. data/lib/7.1-preview/generated/azure_key_vault/models/key_properties.rb +96 -0
  99. data/lib/7.1-preview/generated/azure_key_vault/models/key_restore_parameters.rb +46 -0
  100. data/lib/7.1-preview/generated/azure_key_vault/models/key_sign_parameters.rb +64 -0
  101. data/lib/7.1-preview/generated/azure_key_vault/models/key_update_parameters.rb +87 -0
  102. data/lib/7.1-preview/generated/azure_key_vault/models/key_usage_type.rb +23 -0
  103. data/lib/7.1-preview/generated/azure_key_vault/models/key_vault_error.rb +48 -0
  104. data/lib/7.1-preview/generated/azure_key_vault/models/key_verify_parameters.rb +75 -0
  105. data/lib/7.1-preview/generated/azure_key_vault/models/key_verify_result.rb +47 -0
  106. data/lib/7.1-preview/generated/azure_key_vault/models/lifetime_action.rb +60 -0
  107. data/lib/7.1-preview/generated/azure_key_vault/models/organization_details.rb +67 -0
  108. data/lib/7.1-preview/generated/azure_key_vault/models/pending_certificate_signing_request_result.rb +48 -0
  109. data/lib/7.1-preview/generated/azure_key_vault/models/sas_definition_attributes.rb +102 -0
  110. data/lib/7.1-preview/generated/azure_key_vault/models/sas_definition_bundle.rb +134 -0
  111. data/lib/7.1-preview/generated/azure_key_vault/models/sas_definition_create_parameters.rb +104 -0
  112. data/lib/7.1-preview/generated/azure_key_vault/models/sas_definition_item.rb +94 -0
  113. data/lib/7.1-preview/generated/azure_key_vault/models/sas_definition_list_result.rb +102 -0
  114. data/lib/7.1-preview/generated/azure_key_vault/models/sas_definition_update_parameters.rb +104 -0
  115. data/lib/7.1-preview/generated/azure_key_vault/models/sas_token_type.rb +16 -0
  116. data/lib/7.1-preview/generated/azure_key_vault/models/secret_attributes.rb +109 -0
  117. data/lib/7.1-preview/generated/azure_key_vault/models/secret_bundle.rb +127 -0
  118. data/lib/7.1-preview/generated/azure_key_vault/models/secret_item.rb +103 -0
  119. data/lib/7.1-preview/generated/azure_key_vault/models/secret_list_result.rb +101 -0
  120. data/lib/7.1-preview/generated/azure_key_vault/models/secret_properties.rb +46 -0
  121. data/lib/7.1-preview/generated/azure_key_vault/models/secret_restore_parameters.rb +46 -0
  122. data/lib/7.1-preview/generated/azure_key_vault/models/secret_set_parameters.rb +89 -0
  123. data/lib/7.1-preview/generated/azure_key_vault/models/secret_update_parameters.rb +78 -0
  124. data/lib/7.1-preview/generated/azure_key_vault/models/storage_account_attributes.rb +102 -0
  125. data/lib/7.1-preview/generated/azure_key_vault/models/storage_account_create_parameters.rb +114 -0
  126. data/lib/7.1-preview/generated/azure_key_vault/models/storage_account_item.rb +94 -0
  127. data/lib/7.1-preview/generated/azure_key_vault/models/storage_account_regenerte_key_parameters.rb +46 -0
  128. data/lib/7.1-preview/generated/azure_key_vault/models/storage_account_update_parameters.rb +103 -0
  129. data/lib/7.1-preview/generated/azure_key_vault/models/storage_bundle.rb +132 -0
  130. data/lib/7.1-preview/generated/azure_key_vault/models/storage_list_result.rb +102 -0
  131. data/lib/7.1-preview/generated/azure_key_vault/models/storage_restore_parameters.rb +46 -0
  132. data/lib/7.1-preview/generated/azure_key_vault/models/subject_alternative_names.rb +92 -0
  133. data/lib/7.1-preview/generated/azure_key_vault/models/trigger.rb +65 -0
  134. data/lib/7.1-preview/generated/azure_key_vault/models/x509certificate_properties.rb +111 -0
  135. data/lib/7.1-preview/generated/azure_key_vault/module_definition.rb +8 -0
  136. data/lib/7.1/generated/azure_key_vault.rb +125 -0
  137. data/lib/7.1/generated/azure_key_vault/key_vault_client.rb +12659 -0
  138. data/lib/7.1/generated/azure_key_vault/models/action.rb +48 -0
  139. data/lib/7.1/generated/azure_key_vault/models/action_type.rb +16 -0
  140. data/lib/7.1/generated/azure_key_vault/models/administrator_details.rb +79 -0
  141. data/lib/7.1/generated/azure_key_vault/models/attributes.rb +92 -0
  142. data/lib/7.1/generated/azure_key_vault/models/backup_certificate_result.rb +47 -0
  143. data/lib/7.1/generated/azure_key_vault/models/backup_key_result.rb +47 -0
  144. data/lib/7.1/generated/azure_key_vault/models/backup_secret_result.rb +47 -0
  145. data/lib/7.1/generated/azure_key_vault/models/backup_storage_result.rb +47 -0
  146. data/lib/7.1/generated/azure_key_vault/models/certificate_attributes.rb +109 -0
  147. data/lib/7.1/generated/azure_key_vault/models/certificate_bundle.rb +151 -0
  148. data/lib/7.1/generated/azure_key_vault/models/certificate_create_parameters.rb +80 -0
  149. data/lib/7.1/generated/azure_key_vault/models/certificate_import_parameters.rb +104 -0
  150. data/lib/7.1/generated/azure_key_vault/models/certificate_issuer_item.rb +57 -0
  151. data/lib/7.1/generated/azure_key_vault/models/certificate_issuer_list_result.rb +102 -0
  152. data/lib/7.1/generated/azure_key_vault/models/certificate_issuer_set_parameters.rb +83 -0
  153. data/lib/7.1/generated/azure_key_vault/models/certificate_issuer_update_parameters.rb +83 -0
  154. data/lib/7.1/generated/azure_key_vault/models/certificate_item.rb +89 -0
  155. data/lib/7.1/generated/azure_key_vault/models/certificate_list_result.rb +102 -0
  156. data/lib/7.1/generated/azure_key_vault/models/certificate_merge_parameters.rb +88 -0
  157. data/lib/7.1/generated/azure_key_vault/models/certificate_operation.rb +142 -0
  158. data/lib/7.1/generated/azure_key_vault/models/certificate_operation_update_parameter.rb +47 -0
  159. data/lib/7.1/generated/azure_key_vault/models/certificate_policy.rb +131 -0
  160. data/lib/7.1/generated/azure_key_vault/models/certificate_restore_parameters.rb +46 -0
  161. data/lib/7.1/generated/azure_key_vault/models/certificate_update_parameters.rb +80 -0
  162. data/lib/7.1/generated/azure_key_vault/models/contact.rb +68 -0
  163. data/lib/7.1/generated/azure_key_vault/models/contacts.rb +67 -0
  164. data/lib/7.1/generated/azure_key_vault/models/deleted_certificate_bundle.rb +159 -0
  165. data/lib/7.1/generated/azure_key_vault/models/deleted_certificate_item.rb +113 -0
  166. data/lib/7.1/generated/azure_key_vault/models/deleted_certificate_list_result.rb +102 -0
  167. data/lib/7.1/generated/azure_key_vault/models/deleted_key_bundle.rb +115 -0
  168. data/lib/7.1/generated/azure_key_vault/models/deleted_key_item.rb +114 -0
  169. data/lib/7.1/generated/azure_key_vault/models/deleted_key_list_result.rb +102 -0
  170. data/lib/7.1/generated/azure_key_vault/models/deleted_sas_definition_bundle.rb +145 -0
  171. data/lib/7.1/generated/azure_key_vault/models/deleted_sas_definition_item.rb +118 -0
  172. data/lib/7.1/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb +103 -0
  173. data/lib/7.1/generated/azure_key_vault/models/deleted_secret_bundle.rb +139 -0
  174. data/lib/7.1/generated/azure_key_vault/models/deleted_secret_item.rb +121 -0
  175. data/lib/7.1/generated/azure_key_vault/models/deleted_secret_list_result.rb +102 -0
  176. data/lib/7.1/generated/azure_key_vault/models/deleted_storage_account_item.rb +118 -0
  177. data/lib/7.1/generated/azure_key_vault/models/deleted_storage_bundle.rb +146 -0
  178. data/lib/7.1/generated/azure_key_vault/models/deleted_storage_list_result.rb +103 -0
  179. data/lib/7.1/generated/azure_key_vault/models/deletion_recovery_level.rb +21 -0
  180. data/lib/7.1/generated/azure_key_vault/models/error.rb +72 -0
  181. data/lib/7.1/generated/azure_key_vault/models/issuer_attributes.rb +70 -0
  182. data/lib/7.1/generated/azure_key_vault/models/issuer_bundle.rb +95 -0
  183. data/lib/7.1/generated/azure_key_vault/models/issuer_credentials.rb +57 -0
  184. data/lib/7.1/generated/azure_key_vault/models/issuer_parameters.rb +71 -0
  185. data/lib/7.1/generated/azure_key_vault/models/json_web_key.rb +223 -0
  186. data/lib/7.1/generated/azure_key_vault/models/json_web_key_curve_name.rb +18 -0
  187. data/lib/7.1/generated/azure_key_vault/models/json_web_key_encryption_algorithm.rb +17 -0
  188. data/lib/7.1/generated/azure_key_vault/models/json_web_key_operation.rb +21 -0
  189. data/lib/7.1/generated/azure_key_vault/models/json_web_key_signature_algorithm.rb +25 -0
  190. data/lib/7.1/generated/azure_key_vault/models/json_web_key_type.rb +19 -0
  191. data/lib/7.1/generated/azure_key_vault/models/key_attributes.rb +109 -0
  192. data/lib/7.1/generated/azure_key_vault/models/key_bundle.rb +92 -0
  193. data/lib/7.1/generated/azure_key_vault/models/key_create_parameters.rb +127 -0
  194. data/lib/7.1/generated/azure_key_vault/models/key_import_parameters.rb +91 -0
  195. data/lib/7.1/generated/azure_key_vault/models/key_item.rb +91 -0
  196. data/lib/7.1/generated/azure_key_vault/models/key_list_result.rb +101 -0
  197. data/lib/7.1/generated/azure_key_vault/models/key_operation_result.rb +59 -0
  198. data/lib/7.1/generated/azure_key_vault/models/key_operations_parameters.rb +61 -0
  199. data/lib/7.1/generated/azure_key_vault/models/key_properties.rb +96 -0
  200. data/lib/7.1/generated/azure_key_vault/models/key_restore_parameters.rb +46 -0
  201. data/lib/7.1/generated/azure_key_vault/models/key_sign_parameters.rb +64 -0
  202. data/lib/7.1/generated/azure_key_vault/models/key_update_parameters.rb +87 -0
  203. data/lib/7.1/generated/azure_key_vault/models/key_usage_type.rb +23 -0
  204. data/lib/7.1/generated/azure_key_vault/models/key_vault_error.rb +48 -0
  205. data/lib/7.1/generated/azure_key_vault/models/key_verify_parameters.rb +75 -0
  206. data/lib/7.1/generated/azure_key_vault/models/key_verify_result.rb +47 -0
  207. data/lib/7.1/generated/azure_key_vault/models/lifetime_action.rb +60 -0
  208. data/lib/7.1/generated/azure_key_vault/models/organization_details.rb +67 -0
  209. data/lib/7.1/generated/azure_key_vault/models/pending_certificate_signing_request_result.rb +48 -0
  210. data/lib/7.1/generated/azure_key_vault/models/sas_definition_attributes.rb +102 -0
  211. data/lib/7.1/generated/azure_key_vault/models/sas_definition_bundle.rb +134 -0
  212. data/lib/7.1/generated/azure_key_vault/models/sas_definition_create_parameters.rb +104 -0
  213. data/lib/7.1/generated/azure_key_vault/models/sas_definition_item.rb +94 -0
  214. data/lib/7.1/generated/azure_key_vault/models/sas_definition_list_result.rb +102 -0
  215. data/lib/7.1/generated/azure_key_vault/models/sas_definition_update_parameters.rb +104 -0
  216. data/lib/7.1/generated/azure_key_vault/models/sas_token_type.rb +16 -0
  217. data/lib/7.1/generated/azure_key_vault/models/secret_attributes.rb +109 -0
  218. data/lib/7.1/generated/azure_key_vault/models/secret_bundle.rb +127 -0
  219. data/lib/7.1/generated/azure_key_vault/models/secret_item.rb +103 -0
  220. data/lib/7.1/generated/azure_key_vault/models/secret_list_result.rb +101 -0
  221. data/lib/7.1/generated/azure_key_vault/models/secret_properties.rb +46 -0
  222. data/lib/7.1/generated/azure_key_vault/models/secret_restore_parameters.rb +46 -0
  223. data/lib/7.1/generated/azure_key_vault/models/secret_set_parameters.rb +89 -0
  224. data/lib/7.1/generated/azure_key_vault/models/secret_update_parameters.rb +78 -0
  225. data/lib/7.1/generated/azure_key_vault/models/storage_account_attributes.rb +102 -0
  226. data/lib/7.1/generated/azure_key_vault/models/storage_account_create_parameters.rb +114 -0
  227. data/lib/7.1/generated/azure_key_vault/models/storage_account_item.rb +94 -0
  228. data/lib/7.1/generated/azure_key_vault/models/storage_account_regenerte_key_parameters.rb +46 -0
  229. data/lib/7.1/generated/azure_key_vault/models/storage_account_update_parameters.rb +103 -0
  230. data/lib/7.1/generated/azure_key_vault/models/storage_bundle.rb +132 -0
  231. data/lib/7.1/generated/azure_key_vault/models/storage_list_result.rb +102 -0
  232. data/lib/7.1/generated/azure_key_vault/models/storage_restore_parameters.rb +46 -0
  233. data/lib/7.1/generated/azure_key_vault/models/subject_alternative_names.rb +92 -0
  234. data/lib/7.1/generated/azure_key_vault/models/trigger.rb +65 -0
  235. data/lib/7.1/generated/azure_key_vault/models/x509certificate_properties.rb +111 -0
  236. data/lib/7.1/generated/azure_key_vault/module_definition.rb +8 -0
  237. data/lib/7.2-preview/generated/azure_key_vault.rb +157 -0
  238. data/lib/7.2-preview/generated/azure_key_vault/hsmsecurity_domain.rb +619 -0
  239. data/lib/7.2-preview/generated/azure_key_vault/key_vault_client.rb +13656 -0
  240. data/lib/7.2-preview/generated/azure_key_vault/models/action.rb +48 -0
  241. data/lib/7.2-preview/generated/azure_key_vault/models/action_type.rb +16 -0
  242. data/lib/7.2-preview/generated/azure_key_vault/models/administrator_details.rb +79 -0
  243. data/lib/7.2-preview/generated/azure_key_vault/models/attributes.rb +92 -0
  244. data/lib/7.2-preview/generated/azure_key_vault/models/backup_certificate_result.rb +47 -0
  245. data/lib/7.2-preview/generated/azure_key_vault/models/backup_key_result.rb +47 -0
  246. data/lib/7.2-preview/generated/azure_key_vault/models/backup_secret_result.rb +47 -0
  247. data/lib/7.2-preview/generated/azure_key_vault/models/backup_storage_result.rb +47 -0
  248. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_attributes.rb +109 -0
  249. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_bundle.rb +151 -0
  250. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_create_parameters.rb +80 -0
  251. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +104 -0
  252. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_info_object.rb +80 -0
  253. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_issuer_item.rb +57 -0
  254. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_issuer_list_result.rb +102 -0
  255. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_issuer_set_parameters.rb +83 -0
  256. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_issuer_update_parameters.rb +83 -0
  257. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_item.rb +89 -0
  258. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_list_result.rb +102 -0
  259. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_merge_parameters.rb +88 -0
  260. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_operation.rb +142 -0
  261. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_operation_update_parameter.rb +47 -0
  262. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_policy.rb +131 -0
  263. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_restore_parameters.rb +46 -0
  264. data/lib/7.2-preview/generated/azure_key_vault/models/certificate_update_parameters.rb +80 -0
  265. data/lib/7.2-preview/generated/azure_key_vault/models/contact.rb +68 -0
  266. data/lib/7.2-preview/generated/azure_key_vault/models/contacts.rb +67 -0
  267. data/lib/7.2-preview/generated/azure_key_vault/models/data_action.rb +43 -0
  268. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_certificate_bundle.rb +159 -0
  269. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_certificate_item.rb +113 -0
  270. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_certificate_list_result.rb +102 -0
  271. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_key_bundle.rb +115 -0
  272. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_key_item.rb +114 -0
  273. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_key_list_result.rb +102 -0
  274. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_sas_definition_bundle.rb +145 -0
  275. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_sas_definition_item.rb +118 -0
  276. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb +103 -0
  277. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_secret_bundle.rb +139 -0
  278. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_secret_item.rb +121 -0
  279. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_secret_list_result.rb +102 -0
  280. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_storage_account_item.rb +118 -0
  281. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_storage_bundle.rb +146 -0
  282. data/lib/7.2-preview/generated/azure_key_vault/models/deleted_storage_list_result.rb +103 -0
  283. data/lib/7.2-preview/generated/azure_key_vault/models/deletion_recovery_level.rb +21 -0
  284. data/lib/7.2-preview/generated/azure_key_vault/models/error.rb +72 -0
  285. data/lib/7.2-preview/generated/azure_key_vault/models/full_backup_operation.rb +115 -0
  286. data/lib/7.2-preview/generated/azure_key_vault/models/issuer_attributes.rb +70 -0
  287. data/lib/7.2-preview/generated/azure_key_vault/models/issuer_bundle.rb +95 -0
  288. data/lib/7.2-preview/generated/azure_key_vault/models/issuer_credentials.rb +57 -0
  289. data/lib/7.2-preview/generated/azure_key_vault/models/issuer_parameters.rb +71 -0
  290. data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key.rb +224 -0
  291. data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key_curve_name.rb +18 -0
  292. data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key_encryption_algorithm.rb +29 -0
  293. data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key_operation.rb +21 -0
  294. data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key_signature_algorithm.rb +25 -0
  295. data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key_type.rb +20 -0
  296. data/lib/7.2-preview/generated/azure_key_vault/models/key_attributes.rb +109 -0
  297. data/lib/7.2-preview/generated/azure_key_vault/models/key_bundle.rb +92 -0
  298. data/lib/7.2-preview/generated/azure_key_vault/models/key_create_parameters.rb +138 -0
  299. data/lib/7.2-preview/generated/azure_key_vault/models/key_import_parameters.rb +91 -0
  300. data/lib/7.2-preview/generated/azure_key_vault/models/key_item.rb +91 -0
  301. data/lib/7.2-preview/generated/azure_key_vault/models/key_list_result.rb +101 -0
  302. data/lib/7.2-preview/generated/azure_key_vault/models/key_operation_result.rb +95 -0
  303. data/lib/7.2-preview/generated/azure_key_vault/models/key_operations_parameters.rb +98 -0
  304. data/lib/7.2-preview/generated/azure_key_vault/models/key_properties.rb +85 -0
  305. data/lib/7.2-preview/generated/azure_key_vault/models/key_restore_parameters.rb +46 -0
  306. data/lib/7.2-preview/generated/azure_key_vault/models/key_sign_parameters.rb +64 -0
  307. data/lib/7.2-preview/generated/azure_key_vault/models/key_update_parameters.rb +87 -0
  308. data/lib/7.2-preview/generated/azure_key_vault/models/key_usage_type.rb +23 -0
  309. data/lib/7.2-preview/generated/azure_key_vault/models/key_vault_error.rb +48 -0
  310. data/lib/7.2-preview/generated/azure_key_vault/models/key_verify_parameters.rb +75 -0
  311. data/lib/7.2-preview/generated/azure_key_vault/models/key_verify_result.rb +47 -0
  312. data/lib/7.2-preview/generated/azure_key_vault/models/lifetime_action.rb +60 -0
  313. data/lib/7.2-preview/generated/azure_key_vault/models/operation_status.rb +17 -0
  314. data/lib/7.2-preview/generated/azure_key_vault/models/organization_details.rb +67 -0
  315. data/lib/7.2-preview/generated/azure_key_vault/models/pending_certificate_signing_request_result.rb +48 -0
  316. data/lib/7.2-preview/generated/azure_key_vault/models/permission.rb +115 -0
  317. data/lib/7.2-preview/generated/azure_key_vault/models/restore_operation.rb +103 -0
  318. data/lib/7.2-preview/generated/azure_key_vault/models/restore_operation_parameters.rb +61 -0
  319. data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment.rb +83 -0
  320. data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment_create_parameters.rb +47 -0
  321. data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment_filter.rb +46 -0
  322. data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment_list_result.rb +98 -0
  323. data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment_properties.rb +59 -0
  324. data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment_properties_with_scope.rb +68 -0
  325. data/lib/7.2-preview/generated/azure_key_vault/models/role_definition.rb +145 -0
  326. data/lib/7.2-preview/generated/azure_key_vault/models/role_definition_create_parameters.rb +47 -0
  327. data/lib/7.2-preview/generated/azure_key_vault/models/role_definition_filter.rb +46 -0
  328. data/lib/7.2-preview/generated/azure_key_vault/models/role_definition_list_result.rb +98 -0
  329. data/lib/7.2-preview/generated/azure_key_vault/models/role_definition_properties.rb +108 -0
  330. data/lib/7.2-preview/generated/azure_key_vault/models/role_definition_type.rb +15 -0
  331. data/lib/7.2-preview/generated/azure_key_vault/models/role_scope.rb +16 -0
  332. data/lib/7.2-preview/generated/azure_key_vault/models/role_type.rb +16 -0
  333. data/lib/7.2-preview/generated/azure_key_vault/models/sas_definition_attributes.rb +102 -0
  334. data/lib/7.2-preview/generated/azure_key_vault/models/sas_definition_bundle.rb +134 -0
  335. data/lib/7.2-preview/generated/azure_key_vault/models/sas_definition_create_parameters.rb +104 -0
  336. data/lib/7.2-preview/generated/azure_key_vault/models/sas_definition_item.rb +94 -0
  337. data/lib/7.2-preview/generated/azure_key_vault/models/sas_definition_list_result.rb +102 -0
  338. data/lib/7.2-preview/generated/azure_key_vault/models/sas_definition_update_parameters.rb +104 -0
  339. data/lib/7.2-preview/generated/azure_key_vault/models/sas_token_type.rb +16 -0
  340. data/lib/7.2-preview/generated/azure_key_vault/models/sastoken_parameter.rb +59 -0
  341. data/lib/7.2-preview/generated/azure_key_vault/models/secret_attributes.rb +109 -0
  342. data/lib/7.2-preview/generated/azure_key_vault/models/secret_bundle.rb +127 -0
  343. data/lib/7.2-preview/generated/azure_key_vault/models/secret_item.rb +103 -0
  344. data/lib/7.2-preview/generated/azure_key_vault/models/secret_list_result.rb +101 -0
  345. data/lib/7.2-preview/generated/azure_key_vault/models/secret_properties.rb +46 -0
  346. data/lib/7.2-preview/generated/azure_key_vault/models/secret_restore_parameters.rb +46 -0
  347. data/lib/7.2-preview/generated/azure_key_vault/models/secret_set_parameters.rb +89 -0
  348. data/lib/7.2-preview/generated/azure_key_vault/models/secret_update_parameters.rb +78 -0
  349. data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_certificate_item.rb +49 -0
  350. data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_json_web_key.rb +165 -0
  351. data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_object.rb +46 -0
  352. data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_operation_status.rb +60 -0
  353. data/lib/7.2-preview/generated/azure_key_vault/models/selective_key_restore_operation.rb +103 -0
  354. data/lib/7.2-preview/generated/azure_key_vault/models/selective_key_restore_operation_parameters.rb +61 -0
  355. data/lib/7.2-preview/generated/azure_key_vault/models/storage_account_attributes.rb +102 -0
  356. data/lib/7.2-preview/generated/azure_key_vault/models/storage_account_create_parameters.rb +114 -0
  357. data/lib/7.2-preview/generated/azure_key_vault/models/storage_account_item.rb +94 -0
  358. data/lib/7.2-preview/generated/azure_key_vault/models/storage_account_regenerte_key_parameters.rb +46 -0
  359. data/lib/7.2-preview/generated/azure_key_vault/models/storage_account_update_parameters.rb +103 -0
  360. data/lib/7.2-preview/generated/azure_key_vault/models/storage_bundle.rb +132 -0
  361. data/lib/7.2-preview/generated/azure_key_vault/models/storage_list_result.rb +102 -0
  362. data/lib/7.2-preview/generated/azure_key_vault/models/storage_restore_parameters.rb +46 -0
  363. data/lib/7.2-preview/generated/azure_key_vault/models/subject_alternative_names.rb +92 -0
  364. data/lib/7.2-preview/generated/azure_key_vault/models/transfer_key.rb +62 -0
  365. data/lib/7.2-preview/generated/azure_key_vault/models/trigger.rb +65 -0
  366. data/lib/7.2-preview/generated/azure_key_vault/models/x509certificate_properties.rb +111 -0
  367. data/lib/7.2-preview/generated/azure_key_vault/module_definition.rb +8 -0
  368. data/lib/7.2-preview/generated/azure_key_vault/role_assignments.rb +578 -0
  369. data/lib/7.2-preview/generated/azure_key_vault/role_definitions.rb +579 -0
  370. data/lib/azure_key_vault.rb +6 -2
  371. data/lib/profiles/latest/modules/keyvault_profile_module.rb +393 -271
  372. data/lib/profiles/v2019_03_01_hybrid/keyvault_module_definition.rb +8 -0
  373. data/lib/profiles/v2019_03_01_hybrid/keyvault_v2019_03_01_hybrid_profile_client.rb +38 -0
  374. data/lib/profiles/v2019_03_01_hybrid/modules/keyvault_profile_module.rb +405 -0
  375. data/lib/version.rb +1 -1
  376. metadata +343 -5
@@ -0,0 +1,8 @@
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 end
7
+ module Azure::KeyVault end
8
+ module Azure::KeyVault::V7_1 end
@@ -0,0 +1,157 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '7.2-preview/generated/azure_key_vault/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::KeyVault::V7_2_preview
23
+ autoload :RoleDefinitions, '7.2-preview/generated/azure_key_vault/role_definitions.rb'
24
+ autoload :RoleAssignments, '7.2-preview/generated/azure_key_vault/role_assignments.rb'
25
+ autoload :HSMSecurityDomain, '7.2-preview/generated/azure_key_vault/hsmsecurity_domain.rb'
26
+ autoload :KeyVaultClient, '7.2-preview/generated/azure_key_vault/key_vault_client.rb'
27
+
28
+ module Models
29
+ autoload :BackupKeyResult, '7.2-preview/generated/azure_key_vault/models/backup_key_result.rb'
30
+ autoload :RoleAssignmentFilter, '7.2-preview/generated/azure_key_vault/models/role_assignment_filter.rb'
31
+ autoload :CertificateItem, '7.2-preview/generated/azure_key_vault/models/certificate_item.rb'
32
+ autoload :RoleAssignmentPropertiesWithScope, '7.2-preview/generated/azure_key_vault/models/role_assignment_properties_with_scope.rb'
33
+ autoload :KeyProperties, '7.2-preview/generated/azure_key_vault/models/key_properties.rb'
34
+ autoload :RoleAssignment, '7.2-preview/generated/azure_key_vault/models/role_assignment.rb'
35
+ autoload :SubjectAlternativeNames, '7.2-preview/generated/azure_key_vault/models/subject_alternative_names.rb'
36
+ autoload :RoleAssignmentListResult, '7.2-preview/generated/azure_key_vault/models/role_assignment_list_result.rb'
37
+ autoload :Trigger, '7.2-preview/generated/azure_key_vault/models/trigger.rb'
38
+ autoload :RoleAssignmentProperties, '7.2-preview/generated/azure_key_vault/models/role_assignment_properties.rb'
39
+ autoload :LifetimeAction, '7.2-preview/generated/azure_key_vault/models/lifetime_action.rb'
40
+ autoload :Permission, '7.2-preview/generated/azure_key_vault/models/permission.rb'
41
+ autoload :CertificatePolicy, '7.2-preview/generated/azure_key_vault/models/certificate_policy.rb'
42
+ autoload :RoleDefinitionProperties, '7.2-preview/generated/azure_key_vault/models/role_definition_properties.rb'
43
+ autoload :CertificateIssuerItem, '7.2-preview/generated/azure_key_vault/models/certificate_issuer_item.rb'
44
+ autoload :SecretProperties, '7.2-preview/generated/azure_key_vault/models/secret_properties.rb'
45
+ autoload :Error, '7.2-preview/generated/azure_key_vault/models/error.rb'
46
+ autoload :X509CertificateProperties, '7.2-preview/generated/azure_key_vault/models/x509certificate_properties.rb'
47
+ autoload :IssuerCredentials, '7.2-preview/generated/azure_key_vault/models/issuer_credentials.rb'
48
+ autoload :Action, '7.2-preview/generated/azure_key_vault/models/action.rb'
49
+ autoload :OrganizationDetails, '7.2-preview/generated/azure_key_vault/models/organization_details.rb'
50
+ autoload :IssuerParameters, '7.2-preview/generated/azure_key_vault/models/issuer_parameters.rb'
51
+ autoload :IssuerBundle, '7.2-preview/generated/azure_key_vault/models/issuer_bundle.rb'
52
+ autoload :CertificateBundle, '7.2-preview/generated/azure_key_vault/models/certificate_bundle.rb'
53
+ autoload :Contacts, '7.2-preview/generated/azure_key_vault/models/contacts.rb'
54
+ autoload :CertificateInfoObject, '7.2-preview/generated/azure_key_vault/models/certificate_info_object.rb'
55
+ autoload :CertificateImportParameters, '7.2-preview/generated/azure_key_vault/models/certificate_import_parameters.rb'
56
+ autoload :RoleDefinitionCreateParameters, '7.2-preview/generated/azure_key_vault/models/role_definition_create_parameters.rb'
57
+ autoload :CertificateMergeParameters, '7.2-preview/generated/azure_key_vault/models/certificate_merge_parameters.rb'
58
+ autoload :RoleAssignmentCreateParameters, '7.2-preview/generated/azure_key_vault/models/role_assignment_create_parameters.rb'
59
+ autoload :CertificateIssuerUpdateParameters, '7.2-preview/generated/azure_key_vault/models/certificate_issuer_update_parameters.rb'
60
+ autoload :RoleDefinitionFilter, '7.2-preview/generated/azure_key_vault/models/role_definition_filter.rb'
61
+ autoload :CertificateListResult, '7.2-preview/generated/azure_key_vault/models/certificate_list_result.rb'
62
+ autoload :RoleDefinition, '7.2-preview/generated/azure_key_vault/models/role_definition.rb'
63
+ autoload :CertificateIssuerListResult, '7.2-preview/generated/azure_key_vault/models/certificate_issuer_list_result.rb'
64
+ autoload :RoleDefinitionListResult, '7.2-preview/generated/azure_key_vault/models/role_definition_list_result.rb'
65
+ autoload :CertificateRestoreParameters, '7.2-preview/generated/azure_key_vault/models/certificate_restore_parameters.rb'
66
+ autoload :SecurityDomainCertificateItem, '7.2-preview/generated/azure_key_vault/models/security_domain_certificate_item.rb'
67
+ autoload :Attributes, '7.2-preview/generated/azure_key_vault/models/attributes.rb'
68
+ autoload :SecretBundle, '7.2-preview/generated/azure_key_vault/models/secret_bundle.rb'
69
+ autoload :JsonWebKey, '7.2-preview/generated/azure_key_vault/models/json_web_key.rb'
70
+ autoload :SecretItem, '7.2-preview/generated/azure_key_vault/models/secret_item.rb'
71
+ autoload :KeyBundle, '7.2-preview/generated/azure_key_vault/models/key_bundle.rb'
72
+ autoload :SecurityDomainJsonWebKey, '7.2-preview/generated/azure_key_vault/models/security_domain_json_web_key.rb'
73
+ autoload :SecurityDomainObject, '7.2-preview/generated/azure_key_vault/models/security_domain_object.rb'
74
+ autoload :RestoreOperation, '7.2-preview/generated/azure_key_vault/models/restore_operation.rb'
75
+ autoload :KeyCreateParameters, '7.2-preview/generated/azure_key_vault/models/key_create_parameters.rb'
76
+ autoload :SecretRestoreParameters, '7.2-preview/generated/azure_key_vault/models/secret_restore_parameters.rb'
77
+ autoload :KeyOperationsParameters, '7.2-preview/generated/azure_key_vault/models/key_operations_parameters.rb'
78
+ autoload :SecretSetParameters, '7.2-preview/generated/azure_key_vault/models/secret_set_parameters.rb'
79
+ autoload :KeyVerifyParameters, '7.2-preview/generated/azure_key_vault/models/key_verify_parameters.rb'
80
+ autoload :SecretUpdateParameters, '7.2-preview/generated/azure_key_vault/models/secret_update_parameters.rb'
81
+ autoload :KeyRestoreParameters, '7.2-preview/generated/azure_key_vault/models/key_restore_parameters.rb'
82
+ autoload :SecretListResult, '7.2-preview/generated/azure_key_vault/models/secret_list_result.rb'
83
+ autoload :KeyVerifyResult, '7.2-preview/generated/azure_key_vault/models/key_verify_result.rb'
84
+ autoload :DeletedSecretListResult, '7.2-preview/generated/azure_key_vault/models/deleted_secret_list_result.rb'
85
+ autoload :DeletedKeyListResult, '7.2-preview/generated/azure_key_vault/models/deleted_key_list_result.rb'
86
+ autoload :BackupSecretResult, '7.2-preview/generated/azure_key_vault/models/backup_secret_result.rb'
87
+ autoload :StorageRestoreParameters, '7.2-preview/generated/azure_key_vault/models/storage_restore_parameters.rb'
88
+ autoload :AdministratorDetails, '7.2-preview/generated/azure_key_vault/models/administrator_details.rb'
89
+ autoload :StorageAccountAttributes, '7.2-preview/generated/azure_key_vault/models/storage_account_attributes.rb'
90
+ autoload :Contact, '7.2-preview/generated/azure_key_vault/models/contact.rb'
91
+ autoload :StorageBundle, '7.2-preview/generated/azure_key_vault/models/storage_bundle.rb'
92
+ autoload :CertificateUpdateParameters, '7.2-preview/generated/azure_key_vault/models/certificate_update_parameters.rb'
93
+ autoload :FullBackupOperation, '7.2-preview/generated/azure_key_vault/models/full_backup_operation.rb'
94
+ autoload :CertificateOperationUpdateParameter, '7.2-preview/generated/azure_key_vault/models/certificate_operation_update_parameter.rb'
95
+ autoload :StorageAccountCreateParameters, '7.2-preview/generated/azure_key_vault/models/storage_account_create_parameters.rb'
96
+ autoload :PendingCertificateSigningRequestResult, '7.2-preview/generated/azure_key_vault/models/pending_certificate_signing_request_result.rb'
97
+ autoload :StorageAccountUpdateParameters, '7.2-preview/generated/azure_key_vault/models/storage_account_update_parameters.rb'
98
+ autoload :KeyVaultError, '7.2-preview/generated/azure_key_vault/models/key_vault_error.rb'
99
+ autoload :StorageAccountRegenerteKeyParameters, '7.2-preview/generated/azure_key_vault/models/storage_account_regenerte_key_parameters.rb'
100
+ autoload :KeyItem, '7.2-preview/generated/azure_key_vault/models/key_item.rb'
101
+ autoload :StorageAccountItem, '7.2-preview/generated/azure_key_vault/models/storage_account_item.rb'
102
+ autoload :KeyImportParameters, '7.2-preview/generated/azure_key_vault/models/key_import_parameters.rb'
103
+ autoload :SelectiveKeyRestoreOperation, '7.2-preview/generated/azure_key_vault/models/selective_key_restore_operation.rb'
104
+ autoload :KeyUpdateParameters, '7.2-preview/generated/azure_key_vault/models/key_update_parameters.rb'
105
+ autoload :StorageListResult, '7.2-preview/generated/azure_key_vault/models/storage_list_result.rb'
106
+ autoload :KeyListResult, '7.2-preview/generated/azure_key_vault/models/key_list_result.rb'
107
+ autoload :DeletedStorageListResult, '7.2-preview/generated/azure_key_vault/models/deleted_storage_list_result.rb'
108
+ autoload :CertificateOperation, '7.2-preview/generated/azure_key_vault/models/certificate_operation.rb'
109
+ autoload :SasDefinitionAttributes, '7.2-preview/generated/azure_key_vault/models/sas_definition_attributes.rb'
110
+ autoload :CertificateCreateParameters, '7.2-preview/generated/azure_key_vault/models/certificate_create_parameters.rb'
111
+ autoload :SasDefinitionBundle, '7.2-preview/generated/azure_key_vault/models/sas_definition_bundle.rb'
112
+ autoload :DeletedCertificateListResult, '7.2-preview/generated/azure_key_vault/models/deleted_certificate_list_result.rb'
113
+ autoload :SelectiveKeyRestoreOperationParameters, '7.2-preview/generated/azure_key_vault/models/selective_key_restore_operation_parameters.rb'
114
+ autoload :SecurityDomainOperationStatus, '7.2-preview/generated/azure_key_vault/models/security_domain_operation_status.rb'
115
+ autoload :SasDefinitionItem, '7.2-preview/generated/azure_key_vault/models/sas_definition_item.rb'
116
+ autoload :KeySignParameters, '7.2-preview/generated/azure_key_vault/models/key_sign_parameters.rb'
117
+ autoload :RestoreOperationParameters, '7.2-preview/generated/azure_key_vault/models/restore_operation_parameters.rb'
118
+ autoload :SASTokenParameter, '7.2-preview/generated/azure_key_vault/models/sastoken_parameter.rb'
119
+ autoload :IssuerAttributes, '7.2-preview/generated/azure_key_vault/models/issuer_attributes.rb'
120
+ autoload :SasDefinitionListResult, '7.2-preview/generated/azure_key_vault/models/sas_definition_list_result.rb'
121
+ autoload :BackupCertificateResult, '7.2-preview/generated/azure_key_vault/models/backup_certificate_result.rb'
122
+ autoload :DeletedSasDefinitionListResult, '7.2-preview/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb'
123
+ autoload :KeyOperationResult, '7.2-preview/generated/azure_key_vault/models/key_operation_result.rb'
124
+ autoload :SasDefinitionCreateParameters, '7.2-preview/generated/azure_key_vault/models/sas_definition_create_parameters.rb'
125
+ autoload :TransferKey, '7.2-preview/generated/azure_key_vault/models/transfer_key.rb'
126
+ autoload :SasDefinitionUpdateParameters, '7.2-preview/generated/azure_key_vault/models/sas_definition_update_parameters.rb'
127
+ autoload :CertificateIssuerSetParameters, '7.2-preview/generated/azure_key_vault/models/certificate_issuer_set_parameters.rb'
128
+ autoload :BackupStorageResult, '7.2-preview/generated/azure_key_vault/models/backup_storage_result.rb'
129
+ autoload :CertificateAttributes, '7.2-preview/generated/azure_key_vault/models/certificate_attributes.rb'
130
+ autoload :DeletedCertificateBundle, '7.2-preview/generated/azure_key_vault/models/deleted_certificate_bundle.rb'
131
+ autoload :DeletedCertificateItem, '7.2-preview/generated/azure_key_vault/models/deleted_certificate_item.rb'
132
+ autoload :KeyAttributes, '7.2-preview/generated/azure_key_vault/models/key_attributes.rb'
133
+ autoload :DeletedKeyBundle, '7.2-preview/generated/azure_key_vault/models/deleted_key_bundle.rb'
134
+ autoload :DeletedKeyItem, '7.2-preview/generated/azure_key_vault/models/deleted_key_item.rb'
135
+ autoload :SecretAttributes, '7.2-preview/generated/azure_key_vault/models/secret_attributes.rb'
136
+ autoload :DeletedSecretBundle, '7.2-preview/generated/azure_key_vault/models/deleted_secret_bundle.rb'
137
+ autoload :DeletedSecretItem, '7.2-preview/generated/azure_key_vault/models/deleted_secret_item.rb'
138
+ autoload :DeletedStorageBundle, '7.2-preview/generated/azure_key_vault/models/deleted_storage_bundle.rb'
139
+ autoload :DeletedStorageAccountItem, '7.2-preview/generated/azure_key_vault/models/deleted_storage_account_item.rb'
140
+ autoload :DeletedSasDefinitionBundle, '7.2-preview/generated/azure_key_vault/models/deleted_sas_definition_bundle.rb'
141
+ autoload :DeletedSasDefinitionItem, '7.2-preview/generated/azure_key_vault/models/deleted_sas_definition_item.rb'
142
+ autoload :DeletionRecoveryLevel, '7.2-preview/generated/azure_key_vault/models/deletion_recovery_level.rb'
143
+ autoload :JsonWebKeyType, '7.2-preview/generated/azure_key_vault/models/json_web_key_type.rb'
144
+ autoload :JsonWebKeyCurveName, '7.2-preview/generated/azure_key_vault/models/json_web_key_curve_name.rb'
145
+ autoload :KeyUsageType, '7.2-preview/generated/azure_key_vault/models/key_usage_type.rb'
146
+ autoload :ActionType, '7.2-preview/generated/azure_key_vault/models/action_type.rb'
147
+ autoload :JsonWebKeyOperation, '7.2-preview/generated/azure_key_vault/models/json_web_key_operation.rb'
148
+ autoload :JsonWebKeyEncryptionAlgorithm, '7.2-preview/generated/azure_key_vault/models/json_web_key_encryption_algorithm.rb'
149
+ autoload :JsonWebKeySignatureAlgorithm, '7.2-preview/generated/azure_key_vault/models/json_web_key_signature_algorithm.rb'
150
+ autoload :RoleScope, '7.2-preview/generated/azure_key_vault/models/role_scope.rb'
151
+ autoload :RoleType, '7.2-preview/generated/azure_key_vault/models/role_type.rb'
152
+ autoload :DataAction, '7.2-preview/generated/azure_key_vault/models/data_action.rb'
153
+ autoload :RoleDefinitionType, '7.2-preview/generated/azure_key_vault/models/role_definition_type.rb'
154
+ autoload :SasTokenType, '7.2-preview/generated/azure_key_vault/models/sas_token_type.rb'
155
+ autoload :OperationStatus, '7.2-preview/generated/azure_key_vault/models/operation_status.rb'
156
+ end
157
+ end
@@ -0,0 +1,619 @@
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::KeyVault::V7_2_preview
7
+ #
8
+ # The key vault client performs cryptographic key operations and vault
9
+ # operations against the Key Vault service.
10
+ #
11
+ class HSMSecurityDomain
12
+ include MsRestAzure
13
+
14
+ #
15
+ # Creates and initializes a new instance of the HSMSecurityDomain class.
16
+ # @param client service class for accessing basic functionality.
17
+ #
18
+ def initialize(client)
19
+ @client = client
20
+ end
21
+
22
+ # @return [KeyVaultClient] reference to the KeyVaultClient
23
+ attr_reader :client
24
+
25
+ #
26
+ # Retrieves the Security Domain download operation status
27
+ #
28
+ # @param vault_base_url [String] The vault name, for example
29
+ # https://myvault.vault.azure.net.
30
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
+ # will be added to the HTTP request.
32
+ #
33
+ # @return [SecurityDomainOperationStatus] operation results.
34
+ #
35
+ def download_pending(vault_base_url, custom_headers:nil)
36
+ response = download_pending_async(vault_base_url, custom_headers:custom_headers).value!
37
+ response.body unless response.nil?
38
+ end
39
+
40
+ #
41
+ # Retrieves the Security Domain download operation status
42
+ #
43
+ # @param vault_base_url [String] The vault name, for example
44
+ # https://myvault.vault.azure.net.
45
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
46
+ # will be added to the HTTP request.
47
+ #
48
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
49
+ #
50
+ def download_pending_with_http_info(vault_base_url, custom_headers:nil)
51
+ download_pending_async(vault_base_url, custom_headers:custom_headers).value!
52
+ end
53
+
54
+ #
55
+ # Retrieves the Security Domain download operation status
56
+ #
57
+ # @param vault_base_url [String] The vault name, for example
58
+ # https://myvault.vault.azure.net.
59
+ # @param [Hash{String => String}] A hash of custom headers that will be added
60
+ # to the HTTP request.
61
+ #
62
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
63
+ #
64
+ def download_pending_async(vault_base_url, custom_headers:nil)
65
+ fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
66
+
67
+
68
+ request_headers = {}
69
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
70
+
71
+ # Set Headers
72
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
73
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
74
+ path_template = 'securitydomain/download/pending'
75
+
76
+ request_url = @base_url || @client.base_url
77
+ request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
78
+
79
+ options = {
80
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
81
+ headers: request_headers.merge(custom_headers || {}),
82
+ base_url: request_url
83
+ }
84
+ promise = @client.make_request_async(:get, path_template, options)
85
+
86
+ promise = promise.then do |result|
87
+ http_response = result.response
88
+ status_code = http_response.status
89
+ response_content = http_response.body
90
+ unless status_code == 200
91
+ error_model = JSON.load(response_content)
92
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
93
+ end
94
+
95
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
96
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
97
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
98
+ # Deserialize Response
99
+ if status_code == 200
100
+ begin
101
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
102
+ result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainOperationStatus.mapper()
103
+ result.body = @client.deserialize(result_mapper, parsed_response)
104
+ rescue Exception => e
105
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
106
+ end
107
+ end
108
+
109
+ result
110
+ end
111
+
112
+ promise.execute
113
+ end
114
+
115
+ #
116
+ # Retrieves the Security Domain from the managed HSM. Calling this endpoint can
117
+ # be used to activate a provisioned managed HSM resource.
118
+ #
119
+ # @param vault_base_url [String] The vault name, for example
120
+ # https://myvault.vault.azure.net.
121
+ # @param certificate_info_object [CertificateInfoObject] The Security Domain
122
+ # download operation requires customer to provide N certificates (minimum 3 and
123
+ # maximum 10) containing a public key in JWK format.
124
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
125
+ # will be added to the HTTP request.
126
+ #
127
+ # @return [SecurityDomainObject] operation results.
128
+ #
129
+ def download(vault_base_url, certificate_info_object, custom_headers:nil)
130
+ response = download_async(vault_base_url, certificate_info_object, custom_headers:custom_headers).value!
131
+ response.body unless response.nil?
132
+ end
133
+
134
+ #
135
+ # @param vault_base_url [String] The vault name, for example
136
+ # https://myvault.vault.azure.net.
137
+ # @param certificate_info_object [CertificateInfoObject] The Security Domain
138
+ # download operation requires customer to provide N certificates (minimum 3 and
139
+ # maximum 10) containing a public key in JWK format.
140
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
141
+ # will be added to the HTTP request.
142
+ #
143
+ # @return [Concurrent::Promise] promise which provides async access to http
144
+ # response.
145
+ #
146
+ def download_async(vault_base_url, certificate_info_object, custom_headers:nil)
147
+ # Send request
148
+ promise = begin_download_async(vault_base_url, certificate_info_object, custom_headers:custom_headers)
149
+
150
+ promise = promise.then do |response|
151
+ # Defining deserialization method.
152
+ deserialize_method = lambda do |parsed_response|
153
+ result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainObject.mapper()
154
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
155
+ end
156
+
157
+ # Waiting for response.
158
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::AZURE_ASYNC_OPERATION)
159
+ end
160
+
161
+ promise
162
+ end
163
+
164
+ #
165
+ # Retrieve Security Domain transfer key
166
+ #
167
+ # @param vault_base_url [String] The vault name, for example
168
+ # https://myvault.vault.azure.net.
169
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
170
+ # will be added to the HTTP request.
171
+ #
172
+ # @return [TransferKey] operation results.
173
+ #
174
+ def transfer_key_method(vault_base_url, custom_headers:nil)
175
+ response = transfer_key_method_async(vault_base_url, custom_headers:custom_headers).value!
176
+ response.body unless response.nil?
177
+ end
178
+
179
+ #
180
+ # Retrieve Security Domain transfer key
181
+ #
182
+ # @param vault_base_url [String] The vault name, for example
183
+ # https://myvault.vault.azure.net.
184
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
185
+ # will be added to the HTTP request.
186
+ #
187
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
188
+ #
189
+ def transfer_key_method_with_http_info(vault_base_url, custom_headers:nil)
190
+ transfer_key_method_async(vault_base_url, custom_headers:custom_headers).value!
191
+ end
192
+
193
+ #
194
+ # Retrieve Security Domain transfer key
195
+ #
196
+ # @param vault_base_url [String] The vault name, for example
197
+ # https://myvault.vault.azure.net.
198
+ # @param [Hash{String => String}] A hash of custom headers that will be added
199
+ # to the HTTP request.
200
+ #
201
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
202
+ #
203
+ def transfer_key_method_async(vault_base_url, custom_headers:nil)
204
+ fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
205
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
206
+
207
+
208
+ request_headers = {}
209
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
210
+
211
+ # Set Headers
212
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
213
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
214
+ path_template = 'securitydomain/upload'
215
+
216
+ request_url = @base_url || @client.base_url
217
+ request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
218
+
219
+ options = {
220
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
221
+ query_params: {'api-version' => @client.api_version},
222
+ headers: request_headers.merge(custom_headers || {}),
223
+ base_url: request_url
224
+ }
225
+ promise = @client.make_request_async(:get, path_template, options)
226
+
227
+ promise = promise.then do |result|
228
+ http_response = result.response
229
+ status_code = http_response.status
230
+ response_content = http_response.body
231
+ unless status_code == 200
232
+ error_model = JSON.load(response_content)
233
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
234
+ end
235
+
236
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
237
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
238
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
239
+ # Deserialize Response
240
+ if status_code == 200
241
+ begin
242
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
243
+ result_mapper = Azure::KeyVault::V7_2_preview::Models::TransferKey.mapper()
244
+ result.body = @client.deserialize(result_mapper, parsed_response)
245
+ rescue Exception => e
246
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
247
+ end
248
+ end
249
+
250
+ result
251
+ end
252
+
253
+ promise.execute
254
+ end
255
+
256
+ #
257
+ # Restore the provided Security Domain.
258
+ #
259
+ # @param vault_base_url [String] The vault name, for example
260
+ # https://myvault.vault.azure.net.
261
+ # @param security_domain [SecurityDomainObject] The Security Domain to be
262
+ # restored.
263
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
264
+ # will be added to the HTTP request.
265
+ #
266
+ # @return [SecurityDomainOperationStatus] operation results.
267
+ #
268
+ def upload(vault_base_url, security_domain, custom_headers:nil)
269
+ response = upload_async(vault_base_url, security_domain, custom_headers:custom_headers).value!
270
+ response.body unless response.nil?
271
+ end
272
+
273
+ #
274
+ # @param vault_base_url [String] The vault name, for example
275
+ # https://myvault.vault.azure.net.
276
+ # @param security_domain [SecurityDomainObject] The Security Domain to be
277
+ # restored.
278
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
279
+ # will be added to the HTTP request.
280
+ #
281
+ # @return [Concurrent::Promise] promise which provides async access to http
282
+ # response.
283
+ #
284
+ def upload_async(vault_base_url, security_domain, custom_headers:nil)
285
+ # Send request
286
+ promise = begin_upload_async(vault_base_url, security_domain, custom_headers:custom_headers)
287
+
288
+ promise = promise.then do |response|
289
+ # Defining deserialization method.
290
+ deserialize_method = lambda do |parsed_response|
291
+ result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainOperationStatus.mapper()
292
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
293
+ end
294
+
295
+ # Waiting for response.
296
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::AZURE_ASYNC_OPERATION)
297
+ end
298
+
299
+ promise
300
+ end
301
+
302
+ #
303
+ # Get Security Domain upload operation status
304
+ #
305
+ # @param vault_base_url [String] The vault name, for example
306
+ # https://myvault.vault.azure.net.
307
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
308
+ # will be added to the HTTP request.
309
+ #
310
+ # @return [SecurityDomainOperationStatus] operation results.
311
+ #
312
+ def upload_pending(vault_base_url, custom_headers:nil)
313
+ response = upload_pending_async(vault_base_url, custom_headers:custom_headers).value!
314
+ response.body unless response.nil?
315
+ end
316
+
317
+ #
318
+ # Get Security Domain upload operation status
319
+ #
320
+ # @param vault_base_url [String] The vault name, for example
321
+ # https://myvault.vault.azure.net.
322
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
323
+ # will be added to the HTTP request.
324
+ #
325
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
326
+ #
327
+ def upload_pending_with_http_info(vault_base_url, custom_headers:nil)
328
+ upload_pending_async(vault_base_url, custom_headers:custom_headers).value!
329
+ end
330
+
331
+ #
332
+ # Get Security Domain upload operation status
333
+ #
334
+ # @param vault_base_url [String] The vault name, for example
335
+ # https://myvault.vault.azure.net.
336
+ # @param [Hash{String => String}] A hash of custom headers that will be added
337
+ # to the HTTP request.
338
+ #
339
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
340
+ #
341
+ def upload_pending_async(vault_base_url, custom_headers:nil)
342
+ fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
343
+
344
+
345
+ request_headers = {}
346
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
347
+
348
+ # Set Headers
349
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
350
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
351
+ path_template = 'securitydomain/upload/pending'
352
+
353
+ request_url = @base_url || @client.base_url
354
+ request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
355
+
356
+ options = {
357
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
358
+ headers: request_headers.merge(custom_headers || {}),
359
+ base_url: request_url
360
+ }
361
+ promise = @client.make_request_async(:get, path_template, options)
362
+
363
+ promise = promise.then do |result|
364
+ http_response = result.response
365
+ status_code = http_response.status
366
+ response_content = http_response.body
367
+ unless status_code == 200
368
+ error_model = JSON.load(response_content)
369
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
370
+ end
371
+
372
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
373
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
374
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
375
+ # Deserialize Response
376
+ if status_code == 200
377
+ begin
378
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
379
+ result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainOperationStatus.mapper()
380
+ result.body = @client.deserialize(result_mapper, parsed_response)
381
+ rescue Exception => e
382
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
383
+ end
384
+ end
385
+
386
+ result
387
+ end
388
+
389
+ promise.execute
390
+ end
391
+
392
+ #
393
+ # Retrieves the Security Domain from the managed HSM. Calling this endpoint can
394
+ # be used to activate a provisioned managed HSM resource.
395
+ #
396
+ # @param vault_base_url [String] The vault name, for example
397
+ # https://myvault.vault.azure.net.
398
+ # @param certificate_info_object [CertificateInfoObject] The Security Domain
399
+ # download operation requires customer to provide N certificates (minimum 3 and
400
+ # maximum 10) containing a public key in JWK format.
401
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
402
+ # will be added to the HTTP request.
403
+ #
404
+ # @return [SecurityDomainObject] operation results.
405
+ #
406
+ def begin_download(vault_base_url, certificate_info_object, custom_headers:nil)
407
+ response = begin_download_async(vault_base_url, certificate_info_object, custom_headers:custom_headers).value!
408
+ response.body unless response.nil?
409
+ end
410
+
411
+ #
412
+ # Retrieves the Security Domain from the managed HSM. Calling this endpoint can
413
+ # be used to activate a provisioned managed HSM resource.
414
+ #
415
+ # @param vault_base_url [String] The vault name, for example
416
+ # https://myvault.vault.azure.net.
417
+ # @param certificate_info_object [CertificateInfoObject] The Security Domain
418
+ # download operation requires customer to provide N certificates (minimum 3 and
419
+ # maximum 10) containing a public key in JWK format.
420
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
421
+ # will be added to the HTTP request.
422
+ #
423
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
424
+ #
425
+ def begin_download_with_http_info(vault_base_url, certificate_info_object, custom_headers:nil)
426
+ begin_download_async(vault_base_url, certificate_info_object, custom_headers:custom_headers).value!
427
+ end
428
+
429
+ #
430
+ # Retrieves the Security Domain from the managed HSM. Calling this endpoint can
431
+ # be used to activate a provisioned managed HSM resource.
432
+ #
433
+ # @param vault_base_url [String] The vault name, for example
434
+ # https://myvault.vault.azure.net.
435
+ # @param certificate_info_object [CertificateInfoObject] The Security Domain
436
+ # download operation requires customer to provide N certificates (minimum 3 and
437
+ # maximum 10) containing a public key in JWK format.
438
+ # @param [Hash{String => String}] A hash of custom headers that will be added
439
+ # to the HTTP request.
440
+ #
441
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
442
+ #
443
+ def begin_download_async(vault_base_url, certificate_info_object, custom_headers:nil)
444
+ fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
445
+ fail ArgumentError, 'certificate_info_object is nil' if certificate_info_object.nil?
446
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
447
+
448
+
449
+ request_headers = {}
450
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
451
+
452
+ # Set Headers
453
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
454
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
455
+
456
+ # Serialize Request
457
+ request_mapper = Azure::KeyVault::V7_2_preview::Models::CertificateInfoObject.mapper()
458
+ request_content = @client.serialize(request_mapper, certificate_info_object)
459
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
460
+
461
+ path_template = 'securitydomain/download'
462
+
463
+ request_url = @base_url || @client.base_url
464
+ request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
465
+
466
+ options = {
467
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
468
+ query_params: {'api-version' => @client.api_version},
469
+ body: request_content,
470
+ headers: request_headers.merge(custom_headers || {}),
471
+ base_url: request_url
472
+ }
473
+ promise = @client.make_request_async(:post, path_template, options)
474
+
475
+ promise = promise.then do |result|
476
+ http_response = result.response
477
+ status_code = http_response.status
478
+ response_content = http_response.body
479
+ unless status_code == 202 || status_code == 200
480
+ error_model = JSON.load(response_content)
481
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
482
+ end
483
+
484
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
485
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
486
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
487
+ # Deserialize Response
488
+ if status_code == 202
489
+ begin
490
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
491
+ result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainObject.mapper()
492
+ result.body = @client.deserialize(result_mapper, parsed_response)
493
+ rescue Exception => e
494
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
495
+ end
496
+ end
497
+ # Deserialize Response
498
+ if status_code == 200
499
+ begin
500
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
501
+ result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainObject.mapper()
502
+ result.body = @client.deserialize(result_mapper, parsed_response)
503
+ rescue Exception => e
504
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
505
+ end
506
+ end
507
+
508
+ result
509
+ end
510
+
511
+ promise.execute
512
+ end
513
+
514
+ #
515
+ # Restore the provided Security Domain.
516
+ #
517
+ # @param vault_base_url [String] The vault name, for example
518
+ # https://myvault.vault.azure.net.
519
+ # @param security_domain [SecurityDomainObject] The Security Domain to be
520
+ # restored.
521
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
522
+ # will be added to the HTTP request.
523
+ #
524
+ # @return [SecurityDomainOperationStatus] operation results.
525
+ #
526
+ def begin_upload(vault_base_url, security_domain, custom_headers:nil)
527
+ response = begin_upload_async(vault_base_url, security_domain, custom_headers:custom_headers).value!
528
+ response.body unless response.nil?
529
+ end
530
+
531
+ #
532
+ # Restore the provided Security Domain.
533
+ #
534
+ # @param vault_base_url [String] The vault name, for example
535
+ # https://myvault.vault.azure.net.
536
+ # @param security_domain [SecurityDomainObject] The Security Domain to be
537
+ # restored.
538
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
539
+ # will be added to the HTTP request.
540
+ #
541
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
542
+ #
543
+ def begin_upload_with_http_info(vault_base_url, security_domain, custom_headers:nil)
544
+ begin_upload_async(vault_base_url, security_domain, custom_headers:custom_headers).value!
545
+ end
546
+
547
+ #
548
+ # Restore the provided Security Domain.
549
+ #
550
+ # @param vault_base_url [String] The vault name, for example
551
+ # https://myvault.vault.azure.net.
552
+ # @param security_domain [SecurityDomainObject] The Security Domain to be
553
+ # restored.
554
+ # @param [Hash{String => String}] A hash of custom headers that will be added
555
+ # to the HTTP request.
556
+ #
557
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
558
+ #
559
+ def begin_upload_async(vault_base_url, security_domain, custom_headers:nil)
560
+ fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
561
+ fail ArgumentError, 'security_domain is nil' if security_domain.nil?
562
+
563
+
564
+ request_headers = {}
565
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
566
+
567
+ # Set Headers
568
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
569
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
570
+
571
+ # Serialize Request
572
+ request_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainObject.mapper()
573
+ request_content = @client.serialize(request_mapper, security_domain)
574
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
575
+
576
+ path_template = 'securitydomain/upload'
577
+
578
+ request_url = @base_url || @client.base_url
579
+ request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
580
+
581
+ options = {
582
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
583
+ body: request_content,
584
+ headers: request_headers.merge(custom_headers || {}),
585
+ base_url: request_url
586
+ }
587
+ promise = @client.make_request_async(:post, path_template, options)
588
+
589
+ promise = promise.then do |result|
590
+ http_response = result.response
591
+ status_code = http_response.status
592
+ response_content = http_response.body
593
+ unless status_code == 202 || status_code == 204
594
+ error_model = JSON.load(response_content)
595
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
596
+ end
597
+
598
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
599
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
600
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
601
+ # Deserialize Response
602
+ if status_code == 202
603
+ begin
604
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
605
+ result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainOperationStatus.mapper()
606
+ result.body = @client.deserialize(result_mapper, parsed_response)
607
+ rescue Exception => e
608
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
609
+ end
610
+ end
611
+
612
+ result
613
+ end
614
+
615
+ promise.execute
616
+ end
617
+
618
+ end
619
+ end