Class: Azure::ContainerRegistry::Mgmt::V2019_04_01::Models::Task

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb

Overview

The task that has the ARM resource and task properties. The task will have all information to schedule a run against it.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #location, #name, #tags, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#agent_configurationAgentProperties

Returns The machine configuration of the run agent.

Returns:



36
37
38
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb', line 36

def agent_configuration
  @agent_configuration
end

#creation_dateDateTime

Returns The creation date of task.

Returns:

  • (DateTime)

    The creation date of task.



25
26
27
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb', line 25

def creation_date
  @creation_date
end

#credentialsCredentials

credentials that will be used when this run is invoked.

Returns:

  • (Credentials)

    The properties that describes a set of



50
51
52
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb', line 50

def credentials
  @credentials
end

#identityIdentityProperties

Returns Identity for the resource.

Returns:



17
18
19
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb', line 17

def identity
  @identity
end

#platformPlatformProperties

run has to happen.

Returns:



33
34
35
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb', line 33

def platform
  @platform
end

#provisioning_stateProvisioningState

Possible values include: ‘Creating’, ‘Updating’, ‘Deleting’, ‘Succeeded’, ‘Failed’, ‘Canceled’

Returns:



22
23
24
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb', line 22

def provisioning_state
  @provisioning_state
end

#statusTaskStatus

include: ‘Disabled’, ‘Enabled’

Returns:

  • (TaskStatus)

    The current status of task. Possible values



29
30
31
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb', line 29

def status
  @status
end

#stepTaskStepProperties

Returns The properties of a task step.

Returns:



42
43
44
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb', line 42

def step
  @step
end

#timeoutInteger

Returns Run timeout in seconds. Default value: 3600 .

Returns:

  • (Integer)

    Run timeout in seconds. Default value: 3600 .



39
40
41
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb', line 39

def timeout
  @timeout
end

#triggerTriggerProperties

for the task.

Returns:



46
47
48
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb', line 46

def trigger
  @trigger
end

Class Method Details

.mapperObject

Mapper for Task class as Ruby Hash. This will be used for serialization/deserialization.



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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/task.rb', line 57

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Task',
    type: {
      name: 'Composite',
      class_name: 'Task',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        identity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'identity',
          type: {
            name: 'Composite',
            class_name: 'IdentityProperties'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        creation_date: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.creationDate',
          type: {
            name: 'DateTime'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.status',
          type: {
            name: 'String'
          }
        },
        platform: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.platform',
          type: {
            name: 'Composite',
            class_name: 'PlatformProperties'
          }
        },
        agent_configuration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.agentConfiguration',
          type: {
            name: 'Composite',
            class_name: 'AgentProperties'
          }
        },
        timeout: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.timeout',
          default_value: 3600,
          constraints: {
            InclusiveMaximum: 28800,
            InclusiveMinimum: 300
          },
          type: {
            name: 'Number'
          }
        },
        step: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.step',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'type',
            uber_parent: 'TaskStepProperties',
            class_name: 'TaskStepProperties'
          }
        },
        trigger: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.trigger',
          type: {
            name: 'Composite',
            class_name: 'TriggerProperties'
          }
        },
        credentials: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.credentials',
          type: {
            name: 'Composite',
            class_name: 'Credentials'
          }
        }
      }
    }
  }
end