Class: Azure::ContainerRegistry::Mgmt::V2019_06_01_preview::Models::DockerBuildStep

Inherits:
TaskStepProperties
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.rb

Overview

The Docker build step.

Instance Attribute Summary collapse

Attributes inherited from TaskStepProperties

#base_image_dependencies, #context_access_token, #context_path

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDockerBuildStep

Returns a new instance of DockerBuildStep.



16
17
18
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.rb', line 16

def initialize
  @type = "Docker"
end

Instance Attribute Details

#argumentsArray<Argument>

used when executing this build step.

Returns:

  • (Array<Argument>)

    The collection of override arguments to be



44
45
46
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.rb', line 44

def arguments
  @arguments
end

#docker_file_pathString

Returns The Docker file path relative to the source context.

Returns:

  • (String)

    The Docker file path relative to the source context.



36
37
38
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.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-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.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-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.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-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.rb', line 33

def no_cache
  @no_cache
end

#targetString

build.

Returns:

  • (String)

    The name of the target build stage for the docker



40
41
42
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.rb', line 40

def target
  @target
end

#typeObject

Returns the value of attribute type.



20
21
22
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.rb', line 20

def type
  @type
end

Class Method Details

.mapperObject

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



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
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
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_step.rb', line 51

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Docker',
    type: {
      name: 'Composite',
      class_name: 'DockerBuildStep',
      model_properties: {
        base_image_dependencies: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'baseImageDependencies',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'BaseImageDependencyElementType',
                type: {
                  name: 'Composite',
                  class_name: 'BaseImageDependency'
                }
            }
          }
        },
        context_path: {
          client_side_validation: true,
          required: false,
          serialized_name: 'contextPath',
          type: {
            name: 'String'
          }
        },
        context_access_token: {
          client_side_validation: true,
          required: false,
          serialized_name: 'contextAccessToken',
          type: {
            name: 'String'
          }
        },
        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'
                }
            }
          }
        }
      }
    }
  }
end