azure_mgmt_container_registry 0.17.2 → 0.18.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (312) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  3. data/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/models/registry_list_result.rb +1 -1
  4. data/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/registries.rb +22 -0
  5. data/lib/2017-03-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  6. data/lib/2017-03-01/generated/azure_mgmt_container_registry/models/operation_list_result.rb +1 -1
  7. data/lib/2017-03-01/generated/azure_mgmt_container_registry/models/registry_list_result.rb +1 -1
  8. data/lib/2017-03-01/generated/azure_mgmt_container_registry/operations.rb +4 -0
  9. data/lib/2017-03-01/generated/azure_mgmt_container_registry/registries.rb +22 -0
  10. data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  11. data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/event_list_result.rb +1 -1
  12. data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/operation_list_result.rb +1 -1
  13. data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/registry_list_result.rb +1 -1
  14. data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/replication_list_result.rb +1 -1
  15. data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/webhook_list_result.rb +1 -1
  16. data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/operations.rb +4 -0
  17. data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/registries.rb +24 -0
  18. data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/replications.rb +12 -0
  19. data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb +20 -0
  20. data/lib/2017-10-01/generated/azure_mgmt_container_registry.rb +15 -13
  21. data/lib/2017-10-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  22. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/action.rb +15 -0
  23. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/event_list_result.rb +1 -1
  24. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/iprule.rb +60 -0
  25. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/network_rule_set.rb +20 -0
  26. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/operation_list_result.rb +1 -1
  27. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/registry_list_result.rb +1 -1
  28. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/replication_list_result.rb +1 -1
  29. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/target.rb +22 -0
  30. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/virtual_network_rule.rb +16 -3
  31. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/webhook_action.rb +2 -0
  32. data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/webhook_list_result.rb +1 -1
  33. data/lib/2017-10-01/generated/azure_mgmt_container_registry/operations.rb +4 -0
  34. data/lib/2017-10-01/generated/azure_mgmt_container_registry/registries.rb +30 -0
  35. data/lib/2017-10-01/generated/azure_mgmt_container_registry/replications.rb +12 -0
  36. data/lib/2017-10-01/generated/azure_mgmt_container_registry/webhooks.rb +20 -0
  37. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/build_steps.rb +16 -0
  38. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/build_tasks.rb +14 -0
  39. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/builds.rb +12 -0
  40. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  41. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_argument_list.rb +1 -1
  42. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_list_result.rb +1 -1
  43. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_list.rb +1 -1
  44. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_list_result.rb +1 -1
  45. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/registries.rb +4 -0
  46. data/lib/2018-09-01/generated/azure_mgmt_container_registry.rb +25 -19
  47. data/lib/2018-09-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  48. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger.rb +2 -1
  49. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger_update_parameters.rb +2 -1
  50. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/credentials.rb +74 -0
  51. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/custom_registry_credentials.rb +63 -0
  52. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_request.rb +25 -0
  53. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_step.rb +12 -0
  54. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb +12 -0
  55. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_run_request.rb +13 -0
  56. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/file_task_run_request.rb +13 -0
  57. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run.rb +58 -13
  58. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_list_result.rb +1 -1
  59. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/secret_object.rb +63 -0
  60. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/secret_object_type.rb +15 -0
  61. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_registry_credentials.rb +52 -0
  62. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_registry_login_mode.rb +16 -0
  63. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger.rb +2 -1
  64. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_update_parameters.rb +2 -1
  65. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task.rb +13 -0
  66. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_list_result.rb +1 -1
  67. data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_update_parameters.rb +13 -0
  68. data/lib/2018-09-01/generated/azure_mgmt_container_registry/registries.rb +4 -0
  69. data/lib/2018-09-01/generated/azure_mgmt_container_registry/runs.rb +12 -0
  70. data/lib/2018-09-01/generated/azure_mgmt_container_registry/tasks.rb +14 -0
  71. data/lib/2019-04-01/generated/azure_mgmt_container_registry.rb +98 -0
  72. data/lib/2019-04-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +139 -0
  73. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/agent_properties.rb +47 -0
  74. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/architecture.rb +17 -0
  75. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/argument.rb +70 -0
  76. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/auth_info.rb +92 -0
  77. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/auth_info_update_parameters.rb +92 -0
  78. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/base_image_dependency.rb +91 -0
  79. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/base_image_dependency_type.rb +16 -0
  80. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/base_image_trigger.rb +71 -0
  81. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/base_image_trigger_type.rb +16 -0
  82. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/base_image_trigger_update_parameters.rb +71 -0
  83. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/credentials.rb +74 -0
  84. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/custom_registry_credentials.rb +82 -0
  85. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/docker_build_request.rb +218 -0
  86. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/docker_build_step.rb +175 -0
  87. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb +154 -0
  88. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/encoded_task_run_request.rb +172 -0
  89. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/encoded_task_step.rb +129 -0
  90. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/encoded_task_step_update_parameters.rb +111 -0
  91. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/file_task_run_request.rb +172 -0
  92. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/file_task_step.rb +129 -0
  93. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/file_task_step_update_parameters.rb +111 -0
  94. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/identity_properties.rb +95 -0
  95. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/image_descriptor.rb +79 -0
  96. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/image_update_trigger.rb +78 -0
  97. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/os.rb +16 -0
  98. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/platform_properties.rb +71 -0
  99. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/platform_update_parameters.rb +71 -0
  100. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
  101. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/proxy_resource.rb +72 -0
  102. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/resource.rb +111 -0
  103. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/resource_identity_type.rb +18 -0
  104. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run.rb +309 -0
  105. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_filter.rb +129 -0
  106. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_get_log_result.rb +47 -0
  107. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_list_result.rb +99 -0
  108. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_request.rb +62 -0
  109. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_status.rb +22 -0
  110. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_type.rb +18 -0
  111. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/run_update_parameters.rb +47 -0
  112. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/secret_object.rb +63 -0
  113. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/secret_object_type.rb +16 -0
  114. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/set_value.rb +71 -0
  115. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_control_type.rb +16 -0
  116. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_properties.rb +83 -0
  117. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_registry_credentials.rb +52 -0
  118. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_registry_login_mode.rb +16 -0
  119. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_trigger.rb +92 -0
  120. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_trigger_descriptor.rb +112 -0
  121. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_trigger_event.rb +16 -0
  122. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_trigger_update_parameters.rb +92 -0
  123. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_update_parameters.rb +83 -0
  124. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/source_upload_definition.rb +58 -0
  125. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb +218 -0
  126. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_list_result.rb +99 -0
  127. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_run_request.rb +91 -0
  128. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_status.rb +16 -0
  129. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_step_properties.rb +94 -0
  130. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_step_update_parameters.rb +72 -0
  131. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_update_parameters.rb +155 -0
  132. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/timer_trigger.rb +70 -0
  133. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/timer_trigger_descriptor.rb +58 -0
  134. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/timer_trigger_update_parameters.rb +70 -0
  135. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/token_type.rb +16 -0
  136. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/trigger_properties.rb +89 -0
  137. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/trigger_status.rb +16 -0
  138. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/trigger_update_parameters.rb +90 -0
  139. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/user_identity_properties.rb +58 -0
  140. data/lib/2019-04-01/generated/azure_mgmt_container_registry/models/variant.rb +17 -0
  141. data/lib/2019-04-01/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
  142. data/lib/2019-04-01/generated/azure_mgmt_container_registry/registries.rb +293 -0
  143. data/lib/2019-04-01/generated/azure_mgmt_container_registry/runs.rb +778 -0
  144. data/lib/2019-04-01/generated/azure_mgmt_container_registry/tasks.rb +952 -0
  145. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry.rb +46 -0
  146. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +139 -0
  147. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/generate_credentials_parameters.rb +75 -0
  148. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/generate_credentials_result.rb +67 -0
  149. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
  150. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/proxy_resource.rb +72 -0
  151. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/scope_map.rb +133 -0
  152. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/scope_map_list_result.rb +101 -0
  153. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/scope_map_update_parameters.rb +68 -0
  154. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/status.rb +16 -0
  155. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token.rb +137 -0
  156. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_certificate.rb +81 -0
  157. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_certificate_name.rb +16 -0
  158. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_credentials_properties.rb +76 -0
  159. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_list_result.rb +101 -0
  160. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_password.rb +82 -0
  161. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_password_name.rb +16 -0
  162. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_update_parameters.rb +72 -0
  163. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
  164. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/registries.rb +188 -0
  165. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/scope_maps.rb +850 -0
  166. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/tokens.rb +844 -0
  167. data/lib/2019-05-01/generated/azure_mgmt_container_registry.rb +90 -0
  168. data/lib/2019-05-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +143 -0
  169. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/action.rb +15 -0
  170. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/actor.rb +48 -0
  171. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/callback_config.rb +66 -0
  172. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/default_action.rb +16 -0
  173. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/event.rb +69 -0
  174. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/event_content.rb +120 -0
  175. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/event_info.rb +46 -0
  176. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/event_list_result.rb +101 -0
  177. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/event_request_message.rb +101 -0
  178. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/event_response_message.rb +99 -0
  179. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_image_parameters.rb +104 -0
  180. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_mode.rb +16 -0
  181. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_source.rb +89 -0
  182. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_source_credentials.rb +59 -0
  183. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/iprule.rb +60 -0
  184. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/network_rule_set.rb +89 -0
  185. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/operation_definition.rb +84 -0
  186. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/operation_display_definition.rb +80 -0
  187. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/operation_list_result.rb +101 -0
  188. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/operation_metric_specification_definition.rb +101 -0
  189. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/operation_service_specification_definition.rb +56 -0
  190. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/password_name.rb +16 -0
  191. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/policies.rb +74 -0
  192. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/policy_status.rb +16 -0
  193. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
  194. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/quarantine_policy.rb +47 -0
  195. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/regenerate_credential_parameters.rb +49 -0
  196. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry.rb +202 -0
  197. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_list_credentials_result.rb +67 -0
  198. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_list_result.rb +101 -0
  199. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_name_check_request.rb +66 -0
  200. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_name_status.rb +71 -0
  201. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_password.rb +59 -0
  202. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_update_parameters.rb +102 -0
  203. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_usage.rb +80 -0
  204. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_usage_list_result.rb +56 -0
  205. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/registry_usage_unit.rb +16 -0
  206. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/replication.rb +114 -0
  207. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/replication_list_result.rb +101 -0
  208. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/replication_update_parameters.rb +54 -0
  209. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/request.rb +93 -0
  210. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/resource.rb +111 -0
  211. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/retention_policy.rb +71 -0
  212. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/sku.rb +61 -0
  213. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/sku_name.rb +18 -0
  214. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/sku_tier.rb +18 -0
  215. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/source.rb +61 -0
  216. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/status.rb +73 -0
  217. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/storage_account_properties.rb +47 -0
  218. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/target.rb +137 -0
  219. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/trust_policy.rb +59 -0
  220. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/trust_policy_type.rb +15 -0
  221. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/virtual_network_rule.rb +60 -0
  222. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/webhook.rb +146 -0
  223. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/webhook_action.rb +19 -0
  224. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/webhook_create_parameters.rb +143 -0
  225. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/webhook_list_result.rb +101 -0
  226. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/webhook_status.rb +16 -0
  227. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/webhook_update_parameters.rb +131 -0
  228. data/lib/2019-05-01/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
  229. data/lib/2019-05-01/generated/azure_mgmt_container_registry/operations.rb +219 -0
  230. data/lib/2019-05-01/generated/azure_mgmt_container_registry/registries.rb +1580 -0
  231. data/lib/2019-05-01/generated/azure_mgmt_container_registry/replications.rb +845 -0
  232. data/lib/2019-05-01/generated/azure_mgmt_container_registry/webhooks.rb +1287 -0
  233. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry.rb +100 -0
  234. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +139 -0
  235. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/agent_properties.rb +47 -0
  236. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/architecture.rb +19 -0
  237. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/argument.rb +70 -0
  238. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/auth_info.rb +92 -0
  239. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/auth_info_update_parameters.rb +92 -0
  240. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/base_image_dependency.rb +91 -0
  241. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/base_image_dependency_type.rb +16 -0
  242. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/base_image_trigger.rb +94 -0
  243. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/base_image_trigger_type.rb +16 -0
  244. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/base_image_trigger_update_parameters.rb +94 -0
  245. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/credentials.rb +74 -0
  246. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/custom_registry_credentials.rb +82 -0
  247. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_request.rb +218 -0
  248. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.rb +175 -0
  249. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb +154 -0
  250. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/encoded_task_run_request.rb +172 -0
  251. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/encoded_task_step.rb +129 -0
  252. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/encoded_task_step_update_parameters.rb +111 -0
  253. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/file_task_run_request.rb +172 -0
  254. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/file_task_step.rb +129 -0
  255. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/file_task_step_update_parameters.rb +111 -0
  256. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/identity_properties.rb +95 -0
  257. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/image_descriptor.rb +79 -0
  258. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/image_update_trigger.rb +78 -0
  259. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/os.rb +16 -0
  260. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/override_task_step_properties.rb +125 -0
  261. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/platform_properties.rb +71 -0
  262. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/platform_update_parameters.rb +71 -0
  263. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
  264. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/proxy_resource.rb +72 -0
  265. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/resource.rb +111 -0
  266. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/resource_identity_type.rb +18 -0
  267. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run.rb +320 -0
  268. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_filter.rb +129 -0
  269. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_get_log_result.rb +47 -0
  270. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_list_result.rb +99 -0
  271. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_request.rb +62 -0
  272. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_status.rb +22 -0
  273. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_type.rb +18 -0
  274. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_update_parameters.rb +47 -0
  275. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/secret_object.rb +63 -0
  276. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/secret_object_type.rb +16 -0
  277. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/set_value.rb +71 -0
  278. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_control_type.rb +16 -0
  279. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_properties.rb +83 -0
  280. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_registry_credentials.rb +52 -0
  281. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_registry_login_mode.rb +16 -0
  282. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_trigger.rb +92 -0
  283. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_trigger_descriptor.rb +112 -0
  284. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_trigger_event.rb +16 -0
  285. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_trigger_update_parameters.rb +92 -0
  286. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_update_parameters.rb +83 -0
  287. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_upload_definition.rb +58 -0
  288. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task.rb +218 -0
  289. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_list_result.rb +99 -0
  290. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_run_request.rb +84 -0
  291. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_status.rb +16 -0
  292. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_step_properties.rb +94 -0
  293. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_step_update_parameters.rb +72 -0
  294. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_update_parameters.rb +155 -0
  295. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/timer_trigger.rb +70 -0
  296. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/timer_trigger_descriptor.rb +58 -0
  297. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/timer_trigger_update_parameters.rb +70 -0
  298. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/token_type.rb +16 -0
  299. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/trigger_properties.rb +89 -0
  300. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/trigger_status.rb +16 -0
  301. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/trigger_update_parameters.rb +90 -0
  302. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/update_trigger_payload_type.rb +16 -0
  303. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/user_identity_properties.rb +58 -0
  304. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/variant.rb +17 -0
  305. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
  306. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/registries.rb +293 -0
  307. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/runs.rb +778 -0
  308. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/tasks.rb +952 -0
  309. data/lib/azure_mgmt_container_registry.rb +4 -0
  310. data/lib/profiles/latest/modules/containerregistry_profile_module.rb +348 -280
  311. data/lib/version.rb +1 -1
  312. metadata +251 -5
@@ -0,0 +1,101 @@
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::ContainerRegistry::Mgmt::V2019_05_01_preview
7
+ module Models
8
+ #
9
+ # The result of a request to list tokens for a container registry.
10
+ #
11
+ class TokenListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<Token>] The list of tokens. Since this list may be
17
+ # incomplete, the nextLink field should be used to request the next list
18
+ # of tokens.
19
+ attr_accessor :value
20
+
21
+ # @return [String] The URI that can be used to request the next list of
22
+ # tokens.
23
+ attr_accessor :next_link
24
+
25
+ # return [Proc] with next page method call.
26
+ attr_accessor :next_method
27
+
28
+ #
29
+ # Gets the rest of the items for the request, enabling auto-pagination.
30
+ #
31
+ # @return [Array<Token>] operation results.
32
+ #
33
+ def get_all_items
34
+ items = @value
35
+ page = self
36
+ while page.next_link != nil && !page.next_link.strip.empty? do
37
+ page = page.get_next_page
38
+ items.concat(page.value)
39
+ end
40
+ items
41
+ end
42
+
43
+ #
44
+ # Gets the next page of results.
45
+ #
46
+ # @return [TokenListResult] with next page content.
47
+ #
48
+ def get_next_page
49
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
50
+ unless response.nil?
51
+ @next_link = response.body.next_link
52
+ @value = response.body.value
53
+ self
54
+ end
55
+ end
56
+
57
+ #
58
+ # Mapper for TokenListResult class as Ruby Hash.
59
+ # This will be used for serialization/deserialization.
60
+ #
61
+ def self.mapper()
62
+ {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'TokenListResult',
66
+ type: {
67
+ name: 'Composite',
68
+ class_name: 'TokenListResult',
69
+ model_properties: {
70
+ value: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'value',
74
+ type: {
75
+ name: 'Sequence',
76
+ element: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'TokenElementType',
80
+ type: {
81
+ name: 'Composite',
82
+ class_name: 'Token'
83
+ }
84
+ }
85
+ }
86
+ },
87
+ next_link: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'nextLink',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,82 @@
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::ContainerRegistry::Mgmt::V2019_05_01_preview
7
+ module Models
8
+ #
9
+ # The password that will be used for authenticating the token of a
10
+ # container registry.
11
+ #
12
+ class TokenPassword
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [DateTime] The password created datetime of the password.
17
+ attr_accessor :creation_time
18
+
19
+ # @return [DateTime] The expiry datetime of the password.
20
+ attr_accessor :expiry
21
+
22
+ # @return [TokenPasswordName] The password name "password" or
23
+ # "password2". Possible values include: 'password1', 'password2'
24
+ attr_accessor :name
25
+
26
+ # @return [String] The password value.
27
+ attr_accessor :value
28
+
29
+
30
+ #
31
+ # Mapper for TokenPassword class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'TokenPassword',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'TokenPassword',
42
+ model_properties: {
43
+ creation_time: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'creationTime',
47
+ type: {
48
+ name: 'DateTime'
49
+ }
50
+ },
51
+ expiry: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'expiry',
55
+ type: {
56
+ name: 'DateTime'
57
+ }
58
+ },
59
+ name: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'name',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ value: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,16 @@
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::ContainerRegistry::Mgmt::V2019_05_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for TokenPasswordName
10
+ #
11
+ module TokenPasswordName
12
+ Password1 = "password1"
13
+ Password2 = "password2"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,72 @@
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::ContainerRegistry::Mgmt::V2019_05_01_preview
7
+ module Models
8
+ #
9
+ # The parameters for updating a token.
10
+ #
11
+ class TokenUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The resource ID of the scope map to which the token
16
+ # will be associated with.
17
+ attr_accessor :scope_map_id
18
+
19
+ # @return [Status] The status of the token example enabled or disabled.
20
+ # Possible values include: 'enabled', 'disabled'
21
+ attr_accessor :status
22
+
23
+ # @return [TokenCredentialsProperties] The credentials that can be used
24
+ # for authenticating the token.
25
+ attr_accessor :credentials
26
+
27
+
28
+ #
29
+ # Mapper for TokenUpdateParameters class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'TokenUpdateParameters',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'TokenUpdateParameters',
40
+ model_properties: {
41
+ scope_map_id: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'properties.scopeMapId',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ status: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'properties.status',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ credentials: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'properties.credentials',
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'TokenCredentialsProperties'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,9 @@
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::ContainerRegistry end
8
+ module Azure::ContainerRegistry::Mgmt end
9
+ module Azure::ContainerRegistry::Mgmt::V2019_05_01_preview end
@@ -0,0 +1,188 @@
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::ContainerRegistry::Mgmt::V2019_05_01_preview
7
+ #
8
+ # Registries
9
+ #
10
+ class Registries
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Registries class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ContainerRegistryManagementClient] reference to the ContainerRegistryManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Generate keys for a token of a specified container registry.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group to which
28
+ # the container registry belongs.
29
+ # @param registry_name [String] The name of the container registry.
30
+ # @param generate_credentials_parameters [GenerateCredentialsParameters] The
31
+ # parameters for generating credentials.
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ # @return [GenerateCredentialsResult] operation results.
36
+ #
37
+ def generate_credentials(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:nil)
38
+ response = generate_credentials_async(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:custom_headers).value!
39
+ response.body unless response.nil?
40
+ end
41
+
42
+ #
43
+ # @param resource_group_name [String] The name of the resource group to which
44
+ # the container registry belongs.
45
+ # @param registry_name [String] The name of the container registry.
46
+ # @param generate_credentials_parameters [GenerateCredentialsParameters] The
47
+ # parameters for generating credentials.
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [Concurrent::Promise] promise which provides async access to http
52
+ # response.
53
+ #
54
+ def generate_credentials_async(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:nil)
55
+ # Send request
56
+ promise = begin_generate_credentials_async(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:custom_headers)
57
+
58
+ promise = promise.then do |response|
59
+ # Defining deserialization method.
60
+ deserialize_method = lambda do |parsed_response|
61
+ result_mapper = Azure::ContainerRegistry::Mgmt::V2019_05_01_preview::Models::GenerateCredentialsResult.mapper()
62
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
63
+ end
64
+
65
+ # Waiting for response.
66
+ @client.get_long_running_operation_result(response, deserialize_method)
67
+ end
68
+
69
+ promise
70
+ end
71
+
72
+ #
73
+ # Generate keys for a token of a specified container registry.
74
+ #
75
+ # @param resource_group_name [String] The name of the resource group to which
76
+ # the container registry belongs.
77
+ # @param registry_name [String] The name of the container registry.
78
+ # @param generate_credentials_parameters [GenerateCredentialsParameters] The
79
+ # parameters for generating credentials.
80
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
81
+ # will be added to the HTTP request.
82
+ #
83
+ # @return [GenerateCredentialsResult] operation results.
84
+ #
85
+ def begin_generate_credentials(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:nil)
86
+ response = begin_generate_credentials_async(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:custom_headers).value!
87
+ response.body unless response.nil?
88
+ end
89
+
90
+ #
91
+ # Generate keys for a token of a specified container registry.
92
+ #
93
+ # @param resource_group_name [String] The name of the resource group to which
94
+ # the container registry belongs.
95
+ # @param registry_name [String] The name of the container registry.
96
+ # @param generate_credentials_parameters [GenerateCredentialsParameters] The
97
+ # parameters for generating credentials.
98
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
99
+ # will be added to the HTTP request.
100
+ #
101
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
102
+ #
103
+ def begin_generate_credentials_with_http_info(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:nil)
104
+ begin_generate_credentials_async(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:custom_headers).value!
105
+ end
106
+
107
+ #
108
+ # Generate keys for a token of a specified container registry.
109
+ #
110
+ # @param resource_group_name [String] The name of the resource group to which
111
+ # the container registry belongs.
112
+ # @param registry_name [String] The name of the container registry.
113
+ # @param generate_credentials_parameters [GenerateCredentialsParameters] The
114
+ # parameters for generating credentials.
115
+ # @param [Hash{String => String}] A hash of custom headers that will be added
116
+ # to the HTTP request.
117
+ #
118
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
119
+ #
120
+ def begin_generate_credentials_async(resource_group_name, registry_name, generate_credentials_parameters, custom_headers:nil)
121
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
122
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
123
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
124
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
125
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
126
+ fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
127
+ fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
128
+ fail ArgumentError, "'registry_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]*$'" if !registry_name.nil? && registry_name.match(Regexp.new('^^[a-zA-Z0-9]*$$')).nil?
129
+ fail ArgumentError, 'generate_credentials_parameters is nil' if generate_credentials_parameters.nil?
130
+
131
+
132
+ request_headers = {}
133
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
134
+
135
+ # Set Headers
136
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
137
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
138
+
139
+ # Serialize Request
140
+ request_mapper = Azure::ContainerRegistry::Mgmt::V2019_05_01_preview::Models::GenerateCredentialsParameters.mapper()
141
+ request_content = @client.serialize(request_mapper, generate_credentials_parameters)
142
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
143
+
144
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/generateCredentials'
145
+
146
+ request_url = @base_url || @client.base_url
147
+
148
+ options = {
149
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
150
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name},
151
+ query_params: {'api-version' => @client.api_version},
152
+ body: request_content,
153
+ headers: request_headers.merge(custom_headers || {}),
154
+ base_url: request_url
155
+ }
156
+ promise = @client.make_request_async(:post, path_template, options)
157
+
158
+ promise = promise.then do |result|
159
+ http_response = result.response
160
+ status_code = http_response.status
161
+ response_content = http_response.body
162
+ unless status_code == 200 || status_code == 202
163
+ error_model = JSON.load(response_content)
164
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
165
+ end
166
+
167
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
168
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
169
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
170
+ # Deserialize Response
171
+ if status_code == 200
172
+ begin
173
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
174
+ result_mapper = Azure::ContainerRegistry::Mgmt::V2019_05_01_preview::Models::GenerateCredentialsResult.mapper()
175
+ result.body = @client.deserialize(result_mapper, parsed_response)
176
+ rescue Exception => e
177
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
178
+ end
179
+ end
180
+
181
+ result
182
+ end
183
+
184
+ promise.execute
185
+ end
186
+
187
+ end
188
+ end