Class: Azure::ContainerRegistry::Mgmt::V2019_05_01::Models::ImportSource

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

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#credentialsImportSourceCredentials

a registry uri.

Returns:



26
27
28
# File 'lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_source.rb', line 26

def credentials
  @credentials
end

#registry_uriString

‘mcr.microsoft.com’).

Returns:

  • (String)

    The address of the source registry (e.g.



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

def registry_uri
  @registry_uri
end

#resource_idString

Registry.

Returns:

  • (String)

    The resource identifier of the source Azure Container



18
19
20
# File 'lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_source.rb', line 18

def resource_id
  @resource_id
end

#source_imageString

Specify an image by repository (‘hello-world’). This will use the ‘latest’ tag. Specify an image by tag (‘hello-world:latest’). Specify an image by sha256-based manifest digest (‘hello-world@sha256:abc123’).

Returns:

  • (String)

    Repository name of the source image.



34
35
36
# File 'lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_source.rb', line 34

def source_image
  @source_image
end

Class Method Details

.mapperObject

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



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
# File 'lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_source.rb', line 41

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ImportSource',
    type: {
      name: 'Composite',
      class_name: 'ImportSource',
      model_properties: {
        resource_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'resourceId',
          type: {
            name: 'String'
          }
        },
        registry_uri: {
          client_side_validation: true,
          required: false,
          serialized_name: 'registryUri',
          type: {
            name: 'String'
          }
        },
        credentials: {
          client_side_validation: true,
          required: false,
          serialized_name: 'credentials',
          type: {
            name: 'Composite',
            class_name: 'ImportSourceCredentials'
          }
        },
        source_image: {
          client_side_validation: true,
          required: true,
          serialized_name: 'sourceImage',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end