Class: Azure::ContainerRegistry::Mgmt::V2019_05_01::Models::ImportSource
- Inherits:
-
Object
- Object
- Azure::ContainerRegistry::Mgmt::V2019_05_01::Models::ImportSource
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_source.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#credentials ⇒ ImportSourceCredentials
a registry uri.
-
#registry_uri ⇒ String
‘mcr.microsoft.com’).
-
#resource_id ⇒ String
Registry.
-
#source_image ⇒ String
Specify an image by repository (‘hello-world’).
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ImportSource class as Ruby Hash.
Instance Attribute Details
#credentials ⇒ ImportSourceCredentials
a registry uri.
26 27 28 |
# File 'lib/2019-05-01/generated/azure_mgmt_container_registry/models/import_source.rb', line 26 def credentials @credentials end |
#registry_uri ⇒ String
‘mcr.microsoft.com’).
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_id ⇒ String
Registry.
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_image ⇒ String
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’).
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
.mapper ⇒ Object
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 |