azure_mgmt_container_registry 0.17.1 → 0.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_container_registry/registries.rb +7 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/models/target.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_container_registry.rb +15 -11
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/default_action.rb +16 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/import_source.rb +27 -2
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/import_source_credentials.rb +59 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/network_rule_set.rb +69 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/registry.rb +12 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/registry_update_parameters.rb +12 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/models/virtual_network_rule.rb +47 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/registries.rb +11 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/replications.rb +5 -0
- data/lib/2017-10-01/generated/azure_mgmt_container_registry/webhooks.rb +8 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry.rb +72 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/build_steps.rb +1147 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/build_tasks.rb +971 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/builds.rb +766 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +143 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/base_image_dependency.rb +91 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/base_image_dependency_type.rb +16 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/base_image_trigger_type.rb +17 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build.rb +239 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_argument.rb +84 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_argument_list.rb +99 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_filter.rb +129 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_get_log_result.rb +46 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_list_result.rb +99 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_status.rb +22 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step.rb +76 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_list.rb +99 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_properties.rb +60 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_properties_update_parameters.rb +46 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_step_update_parameters.rb +69 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task.rb +178 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_build_request.rb +62 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_filter.rb +46 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_list_result.rb +99 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_status.rb +16 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_task_update_parameters.rb +118 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_type.rb +16 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/build_update_parameters.rb +47 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.rb +197 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb +163 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/git_commit_trigger.rb +90 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/image_descriptor.rb +79 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/image_update_trigger.rb +78 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/os_type.rb +16 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/platform_properties.rb +59 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/proxy_resource.rb +72 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/queue_build_request.rb +47 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/quick_build_request.rb +173 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/resource.rb +111 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_control_auth_info.rb +92 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_control_type.rb +16 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_repository_properties.rb +84 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_repository_update_parameters.rb +60 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/source_upload_definition.rb +58 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/models/token_type.rb +16 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/registries.rb +287 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry.rb +86 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +139 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/agent_properties.rb +47 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/architecture.rb +17 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/argument.rb +70 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/auth_info.rb +92 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/auth_info_update_parameters.rb +92 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_dependency.rb +91 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_dependency_type.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger.rb +70 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger_type.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger_update_parameters.rb +70 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_request.rb +193 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_step.rb +163 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb +142 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_run_request.rb +159 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_step.rb +129 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_step_update_parameters.rb +111 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/file_task_run_request.rb +159 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/file_task_step.rb +129 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/file_task_step_update_parameters.rb +111 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/image_descriptor.rb +79 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/image_update_trigger.rb +78 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/os.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/platform_properties.rb +71 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/platform_update_parameters.rb +71 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/provisioning_state.rb +20 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/proxy_resource.rb +72 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/resource.rb +111 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run.rb +252 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_filter.rb +129 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_get_log_result.rb +47 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_list_result.rb +99 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_request.rb +62 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_status.rb +22 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_type.rb +18 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/run_update_parameters.rb +47 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/set_value.rb +71 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_control_type.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_properties.rb +83 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger.rb +91 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_descriptor.rb +112 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_event.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_update_parameters.rb +91 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_update_parameters.rb +83 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/source_upload_definition.rb +58 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task.rb +193 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_list_result.rb +99 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_run_request.rb +91 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_status.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_step_properties.rb +94 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_step_update_parameters.rb +72 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_update_parameters.rb +130 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/token_type.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/trigger_properties.rb +69 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/trigger_status.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/trigger_update_parameters.rb +69 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/variant.rb +17 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/module_definition.rb +9 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/registries.rb +289 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/runs.rb +766 -0
- data/lib/2018-09-01/generated/azure_mgmt_container_registry/tasks.rb +938 -0
- data/lib/azure_mgmt_container_registry.rb +2 -0
- data/lib/profiles/latest/modules/containerregistry_profile_module.rb +288 -44
- data/lib/version.rb +1 -1
- metadata +116 -2
@@ -0,0 +1,86 @@
|
|
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 '2018-09-01/generated/azure_mgmt_container_registry/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::ContainerRegistry::Mgmt::V2018_09_01
|
23
|
+
autoload :Registries, '2018-09-01/generated/azure_mgmt_container_registry/registries.rb'
|
24
|
+
autoload :Runs, '2018-09-01/generated/azure_mgmt_container_registry/runs.rb'
|
25
|
+
autoload :Tasks, '2018-09-01/generated/azure_mgmt_container_registry/tasks.rb'
|
26
|
+
autoload :ContainerRegistryManagementClient, '2018-09-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb'
|
27
|
+
|
28
|
+
module Models
|
29
|
+
autoload :PlatformUpdateParameters, '2018-09-01/generated/azure_mgmt_container_registry/models/platform_update_parameters.rb'
|
30
|
+
autoload :TaskStepUpdateParameters, '2018-09-01/generated/azure_mgmt_container_registry/models/task_step_update_parameters.rb'
|
31
|
+
autoload :ImageDescriptor, '2018-09-01/generated/azure_mgmt_container_registry/models/image_descriptor.rb'
|
32
|
+
autoload :AuthInfoUpdateParameters, '2018-09-01/generated/azure_mgmt_container_registry/models/auth_info_update_parameters.rb'
|
33
|
+
autoload :SourceTriggerDescriptor, '2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_descriptor.rb'
|
34
|
+
autoload :SourceUpdateParameters, '2018-09-01/generated/azure_mgmt_container_registry/models/source_update_parameters.rb'
|
35
|
+
autoload :AgentProperties, '2018-09-01/generated/azure_mgmt_container_registry/models/agent_properties.rb'
|
36
|
+
autoload :SourceTriggerUpdateParameters, '2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_update_parameters.rb'
|
37
|
+
autoload :SourceUploadDefinition, '2018-09-01/generated/azure_mgmt_container_registry/models/source_upload_definition.rb'
|
38
|
+
autoload :BaseImageTriggerUpdateParameters, '2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger_update_parameters.rb'
|
39
|
+
autoload :RunFilter, '2018-09-01/generated/azure_mgmt_container_registry/models/run_filter.rb'
|
40
|
+
autoload :TriggerUpdateParameters, '2018-09-01/generated/azure_mgmt_container_registry/models/trigger_update_parameters.rb'
|
41
|
+
autoload :RunGetLogResult, '2018-09-01/generated/azure_mgmt_container_registry/models/run_get_log_result.rb'
|
42
|
+
autoload :TaskUpdateParameters, '2018-09-01/generated/azure_mgmt_container_registry/models/task_update_parameters.rb'
|
43
|
+
autoload :TaskStepProperties, '2018-09-01/generated/azure_mgmt_container_registry/models/task_step_properties.rb'
|
44
|
+
autoload :Resource, '2018-09-01/generated/azure_mgmt_container_registry/models/resource.rb'
|
45
|
+
autoload :SourceProperties, '2018-09-01/generated/azure_mgmt_container_registry/models/source_properties.rb'
|
46
|
+
autoload :ProxyResource, '2018-09-01/generated/azure_mgmt_container_registry/models/proxy_resource.rb'
|
47
|
+
autoload :BaseImageTrigger, '2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger.rb'
|
48
|
+
autoload :Argument, '2018-09-01/generated/azure_mgmt_container_registry/models/argument.rb'
|
49
|
+
autoload :RunUpdateParameters, '2018-09-01/generated/azure_mgmt_container_registry/models/run_update_parameters.rb'
|
50
|
+
autoload :TaskListResult, '2018-09-01/generated/azure_mgmt_container_registry/models/task_list_result.rb'
|
51
|
+
autoload :BaseImageDependency, '2018-09-01/generated/azure_mgmt_container_registry/models/base_image_dependency.rb'
|
52
|
+
autoload :ImageUpdateTrigger, '2018-09-01/generated/azure_mgmt_container_registry/models/image_update_trigger.rb'
|
53
|
+
autoload :AuthInfo, '2018-09-01/generated/azure_mgmt_container_registry/models/auth_info.rb'
|
54
|
+
autoload :SetValue, '2018-09-01/generated/azure_mgmt_container_registry/models/set_value.rb'
|
55
|
+
autoload :RunListResult, '2018-09-01/generated/azure_mgmt_container_registry/models/run_list_result.rb'
|
56
|
+
autoload :SourceTrigger, '2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger.rb'
|
57
|
+
autoload :PlatformProperties, '2018-09-01/generated/azure_mgmt_container_registry/models/platform_properties.rb'
|
58
|
+
autoload :TriggerProperties, '2018-09-01/generated/azure_mgmt_container_registry/models/trigger_properties.rb'
|
59
|
+
autoload :RunRequest, '2018-09-01/generated/azure_mgmt_container_registry/models/run_request.rb'
|
60
|
+
autoload :Run, '2018-09-01/generated/azure_mgmt_container_registry/models/run.rb'
|
61
|
+
autoload :Task, '2018-09-01/generated/azure_mgmt_container_registry/models/task.rb'
|
62
|
+
autoload :DockerBuildRequest, '2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_request.rb'
|
63
|
+
autoload :FileTaskRunRequest, '2018-09-01/generated/azure_mgmt_container_registry/models/file_task_run_request.rb'
|
64
|
+
autoload :TaskRunRequest, '2018-09-01/generated/azure_mgmt_container_registry/models/task_run_request.rb'
|
65
|
+
autoload :EncodedTaskRunRequest, '2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_run_request.rb'
|
66
|
+
autoload :DockerBuildStep, '2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_step.rb'
|
67
|
+
autoload :FileTaskStep, '2018-09-01/generated/azure_mgmt_container_registry/models/file_task_step.rb'
|
68
|
+
autoload :EncodedTaskStep, '2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_step.rb'
|
69
|
+
autoload :DockerBuildStepUpdateParameters, '2018-09-01/generated/azure_mgmt_container_registry/models/docker_build_step_update_parameters.rb'
|
70
|
+
autoload :FileTaskStepUpdateParameters, '2018-09-01/generated/azure_mgmt_container_registry/models/file_task_step_update_parameters.rb'
|
71
|
+
autoload :EncodedTaskStepUpdateParameters, '2018-09-01/generated/azure_mgmt_container_registry/models/encoded_task_step_update_parameters.rb'
|
72
|
+
autoload :RunStatus, '2018-09-01/generated/azure_mgmt_container_registry/models/run_status.rb'
|
73
|
+
autoload :RunType, '2018-09-01/generated/azure_mgmt_container_registry/models/run_type.rb'
|
74
|
+
autoload :OS, '2018-09-01/generated/azure_mgmt_container_registry/models/os.rb'
|
75
|
+
autoload :Architecture, '2018-09-01/generated/azure_mgmt_container_registry/models/architecture.rb'
|
76
|
+
autoload :Variant, '2018-09-01/generated/azure_mgmt_container_registry/models/variant.rb'
|
77
|
+
autoload :ProvisioningState, '2018-09-01/generated/azure_mgmt_container_registry/models/provisioning_state.rb'
|
78
|
+
autoload :TaskStatus, '2018-09-01/generated/azure_mgmt_container_registry/models/task_status.rb'
|
79
|
+
autoload :BaseImageDependencyType, '2018-09-01/generated/azure_mgmt_container_registry/models/base_image_dependency_type.rb'
|
80
|
+
autoload :SourceControlType, '2018-09-01/generated/azure_mgmt_container_registry/models/source_control_type.rb'
|
81
|
+
autoload :TokenType, '2018-09-01/generated/azure_mgmt_container_registry/models/token_type.rb'
|
82
|
+
autoload :SourceTriggerEvent, '2018-09-01/generated/azure_mgmt_container_registry/models/source_trigger_event.rb'
|
83
|
+
autoload :TriggerStatus, '2018-09-01/generated/azure_mgmt_container_registry/models/trigger_status.rb'
|
84
|
+
autoload :BaseImageTriggerType, '2018-09-01/generated/azure_mgmt_container_registry/models/base_image_trigger_type.rb'
|
85
|
+
end
|
86
|
+
end
|
data/lib/2018-09-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb
ADDED
@@ -0,0 +1,139 @@
|
|
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::V2018_09_01
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class ContainerRegistryManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] The Microsoft Azure subscription ID.
|
21
|
+
attr_accessor :subscription_id
|
22
|
+
|
23
|
+
# @return [String] The client API version.
|
24
|
+
attr_reader :api_version
|
25
|
+
|
26
|
+
# @return [String] The preferred language for the response.
|
27
|
+
attr_accessor :accept_language
|
28
|
+
|
29
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
30
|
+
# Operations. Default value is 30.
|
31
|
+
attr_accessor :long_running_operation_retry_timeout
|
32
|
+
|
33
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
34
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
35
|
+
# generated and included in each request. Default is true.
|
36
|
+
attr_accessor :generate_client_request_id
|
37
|
+
|
38
|
+
# @return [Registries] registries
|
39
|
+
attr_reader :registries
|
40
|
+
|
41
|
+
# @return [Runs] runs
|
42
|
+
attr_reader :runs
|
43
|
+
|
44
|
+
# @return [Tasks] tasks
|
45
|
+
attr_reader :tasks
|
46
|
+
|
47
|
+
#
|
48
|
+
# Creates initializes a new instance of the ContainerRegistryManagementClient class.
|
49
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
50
|
+
# @param base_url [String] the base URI of the service.
|
51
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
52
|
+
#
|
53
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
54
|
+
super(credentials, options)
|
55
|
+
@base_url = base_url || 'https://management.azure.com/'
|
56
|
+
|
57
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
58
|
+
@credentials = credentials
|
59
|
+
|
60
|
+
@registries = Registries.new(self)
|
61
|
+
@runs = Runs.new(self)
|
62
|
+
@tasks = Tasks.new(self)
|
63
|
+
@api_version = '2018-09-01'
|
64
|
+
@accept_language = 'en-US'
|
65
|
+
@long_running_operation_retry_timeout = 30
|
66
|
+
@generate_client_request_id = true
|
67
|
+
add_telemetry
|
68
|
+
end
|
69
|
+
|
70
|
+
#
|
71
|
+
# Makes a request and returns the body of the response.
|
72
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
73
|
+
# @param path [String] the path, relative to {base_url}.
|
74
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
75
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
76
|
+
# Example:
|
77
|
+
#
|
78
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
79
|
+
# path = "/path"
|
80
|
+
# options = {
|
81
|
+
# body: request_content,
|
82
|
+
# query_params: {'api-version' => '2016-02-01'}
|
83
|
+
# }
|
84
|
+
# result = @client.make_request(:put, path, options)
|
85
|
+
#
|
86
|
+
def make_request(method, path, options = {})
|
87
|
+
result = make_request_with_http_info(method, path, options)
|
88
|
+
result.body unless result.nil?
|
89
|
+
end
|
90
|
+
|
91
|
+
#
|
92
|
+
# Makes a request and returns the operation response.
|
93
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
94
|
+
# @param path [String] the path, relative to {base_url}.
|
95
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
96
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
97
|
+
#
|
98
|
+
def make_request_with_http_info(method, path, options = {})
|
99
|
+
result = make_request_async(method, path, options).value!
|
100
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
101
|
+
result
|
102
|
+
end
|
103
|
+
|
104
|
+
#
|
105
|
+
# Makes a request asynchronously.
|
106
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
107
|
+
# @param path [String] the path, relative to {base_url}.
|
108
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
109
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
110
|
+
#
|
111
|
+
def make_request_async(method, path, options = {})
|
112
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
113
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
114
|
+
|
115
|
+
request_url = options[:base_url] || @base_url
|
116
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
117
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
118
|
+
end
|
119
|
+
|
120
|
+
request_headers = @request_headers
|
121
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
122
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
123
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
124
|
+
|
125
|
+
super(request_url, method, path, options)
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
private
|
130
|
+
#
|
131
|
+
# Adds telemetry information.
|
132
|
+
#
|
133
|
+
def add_telemetry
|
134
|
+
sdk_information = 'azure_mgmt_container_registry'
|
135
|
+
sdk_information = "#{sdk_information}/0.17.2"
|
136
|
+
add_user_agent_information(sdk_information)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
@@ -0,0 +1,47 @@
|
|
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::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The properties that determine the run agent configuration.
|
10
|
+
#
|
11
|
+
class AgentProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] The CPU configuration in terms of number of cores
|
16
|
+
# required for the run.
|
17
|
+
attr_accessor :cpu
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for AgentProperties class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'AgentProperties',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'AgentProperties',
|
32
|
+
model_properties: {
|
33
|
+
cpu: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'cpu',
|
37
|
+
type: {
|
38
|
+
name: 'Number'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,17 @@
|
|
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::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for Architecture
|
10
|
+
#
|
11
|
+
module Architecture
|
12
|
+
Amd64 = "amd64"
|
13
|
+
X86 = "x86"
|
14
|
+
Arm = "arm"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,70 @@
|
|
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::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The properties of a run argument.
|
10
|
+
#
|
11
|
+
class Argument
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the argument.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] The value of the argument.
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
# @return [Boolean] Flag to indicate whether the argument represents a
|
22
|
+
# secret and want to be removed from build logs. Default value: false .
|
23
|
+
attr_accessor :is_secret
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for Argument class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'Argument',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'Argument',
|
38
|
+
model_properties: {
|
39
|
+
name: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: true,
|
42
|
+
serialized_name: 'name',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
value: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: true,
|
50
|
+
serialized_name: 'value',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
is_secret: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'isSecret',
|
59
|
+
default_value: false,
|
60
|
+
type: {
|
61
|
+
name: 'Boolean'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,92 @@
|
|
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::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The authorization properties for accessing the source code repository.
|
10
|
+
#
|
11
|
+
class AuthInfo
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [TokenType] The type of Auth token. Possible values include:
|
16
|
+
# 'PAT', 'OAuth'
|
17
|
+
attr_accessor :token_type
|
18
|
+
|
19
|
+
# @return [String] The access token used to access the source control
|
20
|
+
# provider.
|
21
|
+
attr_accessor :token
|
22
|
+
|
23
|
+
# @return [String] The refresh token used to refresh the access token.
|
24
|
+
attr_accessor :refresh_token
|
25
|
+
|
26
|
+
# @return [String] The scope of the access token.
|
27
|
+
attr_accessor :scope
|
28
|
+
|
29
|
+
# @return [Integer] Time in seconds that the token remains valid
|
30
|
+
attr_accessor :expires_in
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for AuthInfo class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'AuthInfo',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'AuthInfo',
|
45
|
+
model_properties: {
|
46
|
+
token_type: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: true,
|
49
|
+
serialized_name: 'tokenType',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
token: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: true,
|
57
|
+
serialized_name: 'token',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
refresh_token: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'refreshToken',
|
66
|
+
type: {
|
67
|
+
name: 'String'
|
68
|
+
}
|
69
|
+
},
|
70
|
+
scope: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'scope',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
expires_in: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'expiresIn',
|
82
|
+
type: {
|
83
|
+
name: 'Number'
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|