Class: Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Source

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-10-01/generated/azure_mgmt_container_registry/models/source.rb

Overview

The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#addrString

that generated the event. Generally, this will be resolved by os.Hostname() along with the running port.

Returns:

  • (String)

    The IP or hostname and the port of the registry node



19
20
21
# File 'lib/2017-10-01/generated/azure_mgmt_container_registry/models/source.rb', line 19

def addr
  @addr
end

#instance_idString

each restart.

Returns:

  • (String)

    The running instance of an application. Changes after



23
24
25
# File 'lib/2017-10-01/generated/azure_mgmt_container_registry/models/source.rb', line 23

def instance_id
  @instance_id
end

Class Method Details

.mapperObject

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



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/2017-10-01/generated/azure_mgmt_container_registry/models/source.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Source',
    type: {
      name: 'Composite',
      class_name: 'Source',
      model_properties: {
        addr: {
          client_side_validation: true,
          required: false,
          serialized_name: 'addr',
          type: {
            name: 'String'
          }
        },
        instance_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'instanceID',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end