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
data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/task_step_update_parameters.rb
ADDED
@@ -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::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Base properties for updating any task step.
|
10
|
+
#
|
11
|
+
class TaskStepUpdateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
@@discriminatorMap = Hash.new
|
16
|
+
@@discriminatorMap["Docker"] = "DockerBuildStepUpdateParameters"
|
17
|
+
@@discriminatorMap["FileTask"] = "FileTaskStepUpdateParameters"
|
18
|
+
@@discriminatorMap["EncodedTask"] = "EncodedTaskStepUpdateParameters"
|
19
|
+
|
20
|
+
def initialize
|
21
|
+
@type = "TaskStepUpdateParameters"
|
22
|
+
end
|
23
|
+
|
24
|
+
attr_accessor :type
|
25
|
+
|
26
|
+
# @return [String] The URL(absolute or relative) of the source context
|
27
|
+
# for the task step.
|
28
|
+
attr_accessor :context_path
|
29
|
+
|
30
|
+
# @return [String] The token (git PAT or SAS token of storage account
|
31
|
+
# blob) associated with the context for a step.
|
32
|
+
attr_accessor :context_access_token
|
33
|
+
|
34
|
+
|
35
|
+
#
|
36
|
+
# Mapper for TaskStepUpdateParameters class as Ruby Hash.
|
37
|
+
# This will be used for serialization/deserialization.
|
38
|
+
#
|
39
|
+
def self.mapper()
|
40
|
+
{
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'TaskStepUpdateParameters',
|
44
|
+
type: {
|
45
|
+
name: 'Composite',
|
46
|
+
polymorphic_discriminator: 'type',
|
47
|
+
uber_parent: 'TaskStepUpdateParameters',
|
48
|
+
class_name: 'TaskStepUpdateParameters',
|
49
|
+
model_properties: {
|
50
|
+
context_path: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'contextPath',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
context_access_token: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'contextAccessToken',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,130 @@
|
|
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 parameters for updating a task.
|
10
|
+
#
|
11
|
+
class TaskUpdateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [TaskStatus] The current status of task. Possible values
|
16
|
+
# include: 'Disabled', 'Enabled'
|
17
|
+
attr_accessor :status
|
18
|
+
|
19
|
+
# @return [PlatformUpdateParameters] The platform properties against
|
20
|
+
# which the run has to happen.
|
21
|
+
attr_accessor :platform
|
22
|
+
|
23
|
+
# @return [AgentProperties] The machine configuration of the run agent.
|
24
|
+
attr_accessor :agent_configuration
|
25
|
+
|
26
|
+
# @return [Integer] Run timeout in seconds.
|
27
|
+
attr_accessor :timeout
|
28
|
+
|
29
|
+
# @return [TaskStepUpdateParameters] The properties for updating a task
|
30
|
+
# step.
|
31
|
+
attr_accessor :step
|
32
|
+
|
33
|
+
# @return [TriggerUpdateParameters] The properties for updating trigger
|
34
|
+
# properties.
|
35
|
+
attr_accessor :trigger
|
36
|
+
|
37
|
+
# @return [Hash{String => String}] The ARM resource tags.
|
38
|
+
attr_accessor :tags
|
39
|
+
|
40
|
+
|
41
|
+
#
|
42
|
+
# Mapper for TaskUpdateParameters class as Ruby Hash.
|
43
|
+
# This will be used for serialization/deserialization.
|
44
|
+
#
|
45
|
+
def self.mapper()
|
46
|
+
{
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'TaskUpdateParameters',
|
50
|
+
type: {
|
51
|
+
name: 'Composite',
|
52
|
+
class_name: 'TaskUpdateParameters',
|
53
|
+
model_properties: {
|
54
|
+
status: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'properties.status',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
platform: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'properties.platform',
|
66
|
+
type: {
|
67
|
+
name: 'Composite',
|
68
|
+
class_name: 'PlatformUpdateParameters'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
agent_configuration: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'properties.agentConfiguration',
|
75
|
+
type: {
|
76
|
+
name: 'Composite',
|
77
|
+
class_name: 'AgentProperties'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
timeout: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'properties.timeout',
|
84
|
+
type: {
|
85
|
+
name: 'Number'
|
86
|
+
}
|
87
|
+
},
|
88
|
+
step: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
serialized_name: 'properties.step',
|
92
|
+
type: {
|
93
|
+
name: 'Composite',
|
94
|
+
polymorphic_discriminator: 'type',
|
95
|
+
uber_parent: 'TaskStepUpdateParameters',
|
96
|
+
class_name: 'TaskStepUpdateParameters'
|
97
|
+
}
|
98
|
+
},
|
99
|
+
trigger: {
|
100
|
+
client_side_validation: true,
|
101
|
+
required: false,
|
102
|
+
serialized_name: 'properties.trigger',
|
103
|
+
type: {
|
104
|
+
name: 'Composite',
|
105
|
+
class_name: 'TriggerUpdateParameters'
|
106
|
+
}
|
107
|
+
},
|
108
|
+
tags: {
|
109
|
+
client_side_validation: true,
|
110
|
+
required: false,
|
111
|
+
serialized_name: 'tags',
|
112
|
+
type: {
|
113
|
+
name: 'Dictionary',
|
114
|
+
value: {
|
115
|
+
client_side_validation: true,
|
116
|
+
required: false,
|
117
|
+
serialized_name: 'StringElementType',
|
118
|
+
type: {
|
119
|
+
name: 'String'
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
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::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for TokenType
|
10
|
+
#
|
11
|
+
module TokenType
|
12
|
+
PAT = "PAT"
|
13
|
+
OAuth = "OAuth"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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 trigger.
|
10
|
+
#
|
11
|
+
class TriggerProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<SourceTrigger>] The collection of triggers based on
|
16
|
+
# source code repository.
|
17
|
+
attr_accessor :source_triggers
|
18
|
+
|
19
|
+
# @return [BaseImageTrigger] The trigger based on base image
|
20
|
+
# dependencies.
|
21
|
+
attr_accessor :base_image_trigger
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for TriggerProperties class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'TriggerProperties',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'TriggerProperties',
|
36
|
+
model_properties: {
|
37
|
+
source_triggers: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'sourceTriggers',
|
41
|
+
type: {
|
42
|
+
name: 'Sequence',
|
43
|
+
element: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'SourceTriggerElementType',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'SourceTrigger'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
base_image_trigger: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'baseImageTrigger',
|
58
|
+
type: {
|
59
|
+
name: 'Composite',
|
60
|
+
class_name: 'BaseImageTrigger'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
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::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for TriggerStatus
|
10
|
+
#
|
11
|
+
module TriggerStatus
|
12
|
+
Disabled = "Disabled"
|
13
|
+
Enabled = "Enabled"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/2018-09-01/generated/azure_mgmt_container_registry/models/trigger_update_parameters.rb
ADDED
@@ -0,0 +1,69 @@
|
|
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 for updating triggers.
|
10
|
+
#
|
11
|
+
class TriggerUpdateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<SourceTriggerUpdateParameters>] The collection of
|
16
|
+
# triggers based on source code repository.
|
17
|
+
attr_accessor :source_triggers
|
18
|
+
|
19
|
+
# @return [BaseImageTriggerUpdateParameters] The trigger based on base
|
20
|
+
# image dependencies.
|
21
|
+
attr_accessor :base_image_trigger
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for TriggerUpdateParameters class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'TriggerUpdateParameters',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'TriggerUpdateParameters',
|
36
|
+
model_properties: {
|
37
|
+
source_triggers: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'sourceTriggers',
|
41
|
+
type: {
|
42
|
+
name: 'Sequence',
|
43
|
+
element: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'SourceTriggerUpdateParametersElementType',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'SourceTriggerUpdateParameters'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
base_image_trigger: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'baseImageTrigger',
|
58
|
+
type: {
|
59
|
+
name: 'Composite',
|
60
|
+
class_name: 'BaseImageTriggerUpdateParameters'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
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 Variant
|
10
|
+
#
|
11
|
+
module Variant
|
12
|
+
V6 = "v6"
|
13
|
+
V7 = "v7"
|
14
|
+
V8 = "v8"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
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::V2018_09_01 end
|
@@ -0,0 +1,289 @@
|
|
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
|
+
# 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
|
+
# Schedules a new run based on the request parameters and add it to the run
|
26
|
+
# queue.
|
27
|
+
#
|
28
|
+
# @param resource_group_name [String] The name of the resource group to which
|
29
|
+
# the container registry belongs.
|
30
|
+
# @param registry_name [String] The name of the container registry.
|
31
|
+
# @param run_request [RunRequest] The parameters of a run that needs to
|
32
|
+
# scheduled.
|
33
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
|
+
# will be added to the HTTP request.
|
35
|
+
#
|
36
|
+
# @return [Run] operation results.
|
37
|
+
#
|
38
|
+
def schedule_run(resource_group_name, registry_name, run_request, custom_headers:nil)
|
39
|
+
response = schedule_run_async(resource_group_name, registry_name, run_request, custom_headers:custom_headers).value!
|
40
|
+
response.body unless response.nil?
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The name of the resource group to which
|
45
|
+
# the container registry belongs.
|
46
|
+
# @param registry_name [String] The name of the container registry.
|
47
|
+
# @param run_request [RunRequest] The parameters of a run that needs to
|
48
|
+
# scheduled.
|
49
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
50
|
+
# will be added to the HTTP request.
|
51
|
+
#
|
52
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
53
|
+
# response.
|
54
|
+
#
|
55
|
+
def schedule_run_async(resource_group_name, registry_name, run_request, custom_headers:nil)
|
56
|
+
# Send request
|
57
|
+
promise = begin_schedule_run_async(resource_group_name, registry_name, run_request, custom_headers:custom_headers)
|
58
|
+
|
59
|
+
promise = promise.then do |response|
|
60
|
+
# Defining deserialization method.
|
61
|
+
deserialize_method = lambda do |parsed_response|
|
62
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Run.mapper()
|
63
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
64
|
+
end
|
65
|
+
|
66
|
+
# Waiting for response.
|
67
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
68
|
+
end
|
69
|
+
|
70
|
+
promise
|
71
|
+
end
|
72
|
+
|
73
|
+
#
|
74
|
+
# Get the upload location for the user to be able to upload the source.
|
75
|
+
#
|
76
|
+
# @param resource_group_name [String] The name of the resource group to which
|
77
|
+
# the container registry belongs.
|
78
|
+
# @param registry_name [String] The name of the container registry.
|
79
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
80
|
+
# will be added to the HTTP request.
|
81
|
+
#
|
82
|
+
# @return [SourceUploadDefinition] operation results.
|
83
|
+
#
|
84
|
+
def get_build_source_upload_url(resource_group_name, registry_name, custom_headers:nil)
|
85
|
+
response = get_build_source_upload_url_async(resource_group_name, registry_name, custom_headers:custom_headers).value!
|
86
|
+
response.body unless response.nil?
|
87
|
+
end
|
88
|
+
|
89
|
+
#
|
90
|
+
# Get the upload location for the user to be able to upload the source.
|
91
|
+
#
|
92
|
+
# @param resource_group_name [String] The name of the resource group to which
|
93
|
+
# the container registry belongs.
|
94
|
+
# @param registry_name [String] The name of the container registry.
|
95
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
96
|
+
# will be added to the HTTP request.
|
97
|
+
#
|
98
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
99
|
+
#
|
100
|
+
def get_build_source_upload_url_with_http_info(resource_group_name, registry_name, custom_headers:nil)
|
101
|
+
get_build_source_upload_url_async(resource_group_name, registry_name, custom_headers:custom_headers).value!
|
102
|
+
end
|
103
|
+
|
104
|
+
#
|
105
|
+
# Get the upload location for the user to be able to upload the source.
|
106
|
+
#
|
107
|
+
# @param resource_group_name [String] The name of the resource group to which
|
108
|
+
# the container registry belongs.
|
109
|
+
# @param registry_name [String] The name of the container registry.
|
110
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
111
|
+
# to the HTTP request.
|
112
|
+
#
|
113
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
114
|
+
#
|
115
|
+
def get_build_source_upload_url_async(resource_group_name, registry_name, custom_headers:nil)
|
116
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
117
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
118
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
119
|
+
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
120
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
121
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
122
|
+
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?
|
123
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
124
|
+
|
125
|
+
|
126
|
+
request_headers = {}
|
127
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
128
|
+
|
129
|
+
# Set Headers
|
130
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
131
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
132
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listBuildSourceUploadUrl'
|
133
|
+
|
134
|
+
request_url = @base_url || @client.base_url
|
135
|
+
|
136
|
+
options = {
|
137
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
138
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name},
|
139
|
+
query_params: {'api-version' => @client.api_version},
|
140
|
+
headers: request_headers.merge(custom_headers || {}),
|
141
|
+
base_url: request_url
|
142
|
+
}
|
143
|
+
promise = @client.make_request_async(:post, path_template, options)
|
144
|
+
|
145
|
+
promise = promise.then do |result|
|
146
|
+
http_response = result.response
|
147
|
+
status_code = http_response.status
|
148
|
+
response_content = http_response.body
|
149
|
+
unless status_code == 200
|
150
|
+
error_model = JSON.load(response_content)
|
151
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
152
|
+
end
|
153
|
+
|
154
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
155
|
+
# Deserialize Response
|
156
|
+
if status_code == 200
|
157
|
+
begin
|
158
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
159
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SourceUploadDefinition.mapper()
|
160
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
161
|
+
rescue Exception => e
|
162
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
result
|
167
|
+
end
|
168
|
+
|
169
|
+
promise.execute
|
170
|
+
end
|
171
|
+
|
172
|
+
#
|
173
|
+
# Schedules a new run based on the request parameters and add it to the run
|
174
|
+
# queue.
|
175
|
+
#
|
176
|
+
# @param resource_group_name [String] The name of the resource group to which
|
177
|
+
# the container registry belongs.
|
178
|
+
# @param registry_name [String] The name of the container registry.
|
179
|
+
# @param run_request [RunRequest] The parameters of a run that needs to
|
180
|
+
# scheduled.
|
181
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
182
|
+
# will be added to the HTTP request.
|
183
|
+
#
|
184
|
+
# @return [Run] operation results.
|
185
|
+
#
|
186
|
+
def begin_schedule_run(resource_group_name, registry_name, run_request, custom_headers:nil)
|
187
|
+
response = begin_schedule_run_async(resource_group_name, registry_name, run_request, custom_headers:custom_headers).value!
|
188
|
+
response.body unless response.nil?
|
189
|
+
end
|
190
|
+
|
191
|
+
#
|
192
|
+
# Schedules a new run based on the request parameters and add it to the run
|
193
|
+
# queue.
|
194
|
+
#
|
195
|
+
# @param resource_group_name [String] The name of the resource group to which
|
196
|
+
# the container registry belongs.
|
197
|
+
# @param registry_name [String] The name of the container registry.
|
198
|
+
# @param run_request [RunRequest] The parameters of a run that needs to
|
199
|
+
# scheduled.
|
200
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
201
|
+
# will be added to the HTTP request.
|
202
|
+
#
|
203
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
204
|
+
#
|
205
|
+
def begin_schedule_run_with_http_info(resource_group_name, registry_name, run_request, custom_headers:nil)
|
206
|
+
begin_schedule_run_async(resource_group_name, registry_name, run_request, custom_headers:custom_headers).value!
|
207
|
+
end
|
208
|
+
|
209
|
+
#
|
210
|
+
# Schedules a new run based on the request parameters and add it to the run
|
211
|
+
# queue.
|
212
|
+
#
|
213
|
+
# @param resource_group_name [String] The name of the resource group to which
|
214
|
+
# the container registry belongs.
|
215
|
+
# @param registry_name [String] The name of the container registry.
|
216
|
+
# @param run_request [RunRequest] The parameters of a run that needs to
|
217
|
+
# scheduled.
|
218
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
219
|
+
# to the HTTP request.
|
220
|
+
#
|
221
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
222
|
+
#
|
223
|
+
def begin_schedule_run_async(resource_group_name, registry_name, run_request, custom_headers:nil)
|
224
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
225
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
226
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
227
|
+
fail ArgumentError, 'registry_name is nil' if registry_name.nil?
|
228
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MaxLength': '50'" if !registry_name.nil? && registry_name.length > 50
|
229
|
+
fail ArgumentError, "'registry_name' should satisfy the constraint - 'MinLength': '5'" if !registry_name.nil? && registry_name.length < 5
|
230
|
+
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?
|
231
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
232
|
+
fail ArgumentError, 'run_request is nil' if run_request.nil?
|
233
|
+
|
234
|
+
|
235
|
+
request_headers = {}
|
236
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
237
|
+
|
238
|
+
# Set Headers
|
239
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
240
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
241
|
+
|
242
|
+
# Serialize Request
|
243
|
+
request_mapper = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::RunRequest.mapper()
|
244
|
+
request_content = @client.serialize(request_mapper, run_request)
|
245
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
246
|
+
|
247
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun'
|
248
|
+
|
249
|
+
request_url = @base_url || @client.base_url
|
250
|
+
|
251
|
+
options = {
|
252
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
253
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name},
|
254
|
+
query_params: {'api-version' => @client.api_version},
|
255
|
+
body: request_content,
|
256
|
+
headers: request_headers.merge(custom_headers || {}),
|
257
|
+
base_url: request_url
|
258
|
+
}
|
259
|
+
promise = @client.make_request_async(:post, path_template, options)
|
260
|
+
|
261
|
+
promise = promise.then do |result|
|
262
|
+
http_response = result.response
|
263
|
+
status_code = http_response.status
|
264
|
+
response_content = http_response.body
|
265
|
+
unless status_code == 200 || status_code == 202
|
266
|
+
error_model = JSON.load(response_content)
|
267
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
268
|
+
end
|
269
|
+
|
270
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
271
|
+
# Deserialize Response
|
272
|
+
if status_code == 200
|
273
|
+
begin
|
274
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
275
|
+
result_mapper = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Run.mapper()
|
276
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
277
|
+
rescue Exception => e
|
278
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
result
|
283
|
+
end
|
284
|
+
|
285
|
+
promise.execute
|
286
|
+
end
|
287
|
+
|
288
|
+
end
|
289
|
+
end
|