Class: Azure::ContainerRegistry::Mgmt::V2019_04_01::Models::DockerBuildRequest

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

Overview

The parameters for a docker quick build.

Instance Attribute Summary collapse

Attributes inherited from RunRequest

#is_archive_enabled

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDockerBuildRequest

Returns a new instance of DockerBuildRequest.



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

def initialize
  @type = "DockerBuildRequest"
end

Instance Attribute Details

#agent_configurationAgentProperties

Returns The machine configuration of the run agent.

Returns:



54
55
56
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/docker_build_request.rb', line 54

def agent_configuration
  @agent_configuration
end

#argumentsArray<Argument>

used when executing the run.

Returns:

  • (Array<Argument>)

    The collection of override arguments to be



44
45
46
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/docker_build_request.rb', line 44

def arguments
  @arguments
end

#credentialsCredentials

credentials that will be used when this run is invoked.

Returns:

  • (Credentials)

    The properties that describes a set of



64
65
66
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/docker_build_request.rb', line 64

def credentials
  @credentials
end

#docker_file_pathString

Returns The Docker file path relative to the source location.

Returns:

  • (String)

    The Docker file path relative to the source location.



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

def docker_file_path
  @docker_file_path
end

#image_namesArray<String>

repository and tag.

Returns:

  • (Array<String>)

    The fully qualified image names including the



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

def image_names
  @image_names
end

#is_push_enabledBoolean

image built should be pushed to the registry or not. Default value: true .

Returns:

  • (Boolean)

    The value of this property indicates whether the



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

def is_push_enabled
  @is_push_enabled
end

#no_cacheBoolean

image cache is enabled or not. Default value: false .

Returns:

  • (Boolean)

    The value of this property indicates whether the



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

def no_cache
  @no_cache
end

#platformPlatformProperties

run has to happen.

Returns:



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

def platform
  @platform
end

#source_locationString

It can be an URL to a tar or git repository. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.

Returns:

  • (String)

    The URL(absolute or relative) of the source context.



60
61
62
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/docker_build_request.rb', line 60

def source_location
  @source_location
end

#targetString

build.

Returns:

  • (String)

    The name of the target build stage for the docker



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

def target
  @target
end

#timeoutInteger

Returns Run timeout in seconds. Default value: 3600 .

Returns:

  • (Integer)

    Run timeout in seconds. Default value: 3600 .



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

def timeout
  @timeout
end

#typeObject

Returns the value of attribute type.



20
21
22
# File 'lib/2019-04-01/generated/azure_mgmt_container_registry/models/docker_build_request.rb', line 20

def type
  @type
end

Class Method Details

.mapperObject

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



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/docker_build_request.rb', line 71

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DockerBuildRequest',
    type: {
      name: 'Composite',
      class_name: 'DockerBuildRequest',
      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'
          }
        },
        image_names: {
          client_side_validation: true,
          required: false,
          serialized_name: 'imageNames',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        is_push_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'isPushEnabled',
          default_value: true,
          type: {
            name: 'Boolean'
          }
        },
        no_cache: {
          client_side_validation: true,
          required: false,
          serialized_name: 'noCache',
          default_value: false,
          type: {
            name: 'Boolean'
          }
        },
        docker_file_path: {
          client_side_validation: true,
          required: true,
          serialized_name: 'dockerFilePath',
          type: {
            name: 'String'
          }
        },
        target: {
          client_side_validation: true,
          required: false,
          serialized_name: 'target',
          type: {
            name: 'String'
          }
        },
        arguments: {
          client_side_validation: true,
          required: false,
          serialized_name: 'arguments',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ArgumentElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Argument'
                }
            }
          }
        },
        timeout: {
          client_side_validation: true,
          required: false,
          serialized_name: 'timeout',
          default_value: 3600,
          constraints: {
            InclusiveMaximum: 28800,
            InclusiveMinimum: 300
          },
          type: {
            name: 'Number'
          }
        },
        platform: {
          client_side_validation: true,
          required: true,
          serialized_name: 'platform',
          type: {
            name: 'Composite',
            class_name: 'PlatformProperties'
          }
        },
        agent_configuration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'agentConfiguration',
          type: {
            name: 'Composite',
            class_name: 'AgentProperties'
          }
        },
        source_location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceLocation',
          type: {
            name: 'String'
          }
        },
        credentials: {
          client_side_validation: true,
          required: false,
          serialized_name: 'credentials',
          type: {
            name: 'Composite',
            class_name: 'Credentials'
          }
        }
      }
    }
  }
end