Class: Azure::ContainerRegistry::Mgmt::V2019_04_01::Models::TaskRunRequest
- Inherits:
-
RunRequest
- Object
- RunRequest
- Azure::ContainerRegistry::Mgmt::V2019_04_01::Models::TaskRunRequest
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_run_request.rb
Overview
The parameters for a task run request.
Instance Attribute Summary collapse
-
#task_name ⇒ String
The name of task against which run has to be queued.
-
#type ⇒ Object
Returns the value of attribute type.
-
#values ⇒ Array<SetValue>
be passed when running a task.
Attributes inherited from RunRequest
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for TaskRunRequest class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ TaskRunRequest
constructor
A new instance of TaskRunRequest.
Constructor Details
#initialize ⇒ TaskRunRequest
Returns a new instance of TaskRunRequest.
16 17 18 |
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_run_request.rb', line 16 def initialize @type = "TaskRunRequest" end |
Instance Attribute Details
#task_name ⇒ String
Returns The name of task against which run has to be queued.
23 24 25 |
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_run_request.rb', line 23 def task_name @task_name end |
#type ⇒ Object
Returns the value of attribute type.
20 21 22 |
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_run_request.rb', line 20 def type @type end |
#values ⇒ Array<SetValue>
be passed when running a task.
27 28 29 |
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_run_request.rb', line 27 def values @values end |
Class Method Details
.mapper ⇒ Object
Mapper for TaskRunRequest class as Ruby Hash. This will be used for serialization/deserialization.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task_run_request.rb', line 34 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'TaskRunRequest', type: { name: 'Composite', class_name: 'TaskRunRequest', model_properties: { is_archive_enabled: { client_side_validation: true, required: false, serialized_name: 'isArchiveEnabled', default_value: false, type: { name: 'Boolean' } }, type: { client_side_validation: true, required: true, serialized_name: 'type', type: { name: 'String' } }, task_name: { client_side_validation: true, required: true, serialized_name: 'taskName', type: { name: 'String' } }, values: { client_side_validation: true, required: false, serialized_name: 'values', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'SetValueElementType', type: { name: 'Composite', class_name: 'SetValue' } } } } } } } end |