Class: Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Request

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

Overview

The request that generated the event.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#addrString

connection that initiated the event. This is the RemoteAddr from the standard http request.

Returns:

  • (String)

    The IP or hostname and possibly port of the client



21
22
23
# File 'lib/2017-10-01/generated/azure_mgmt_container_registry/models/request.rb', line 21

def addr
  @addr
end

#hostString

instance, as specified by the http host header on incoming requests.

Returns:

  • (String)

    The externally accessible hostname of the registry



25
26
27
# File 'lib/2017-10-01/generated/azure_mgmt_container_registry/models/request.rb', line 25

def host
  @host
end

#idString

Returns The ID of the request that initiated the event.

Returns:

  • (String)

    The ID of the request that initiated the event.



16
17
18
# File 'lib/2017-10-01/generated/azure_mgmt_container_registry/models/request.rb', line 16

def id
  @id
end

#methodString

Returns The request method that generated the event.

Returns:

  • (String)

    The request method that generated the event.



28
29
30
# File 'lib/2017-10-01/generated/azure_mgmt_container_registry/models/request.rb', line 28

def method
  @method
end

#useragentString

Returns The user agent header of the request.

Returns:

  • (String)

    The user agent header of the request.



31
32
33
# File 'lib/2017-10-01/generated/azure_mgmt_container_registry/models/request.rb', line 31

def useragent
  @useragent
end

Class Method Details

.mapperObject

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



38
39
40
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
87
88
89
90
# File 'lib/2017-10-01/generated/azure_mgmt_container_registry/models/request.rb', line 38

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Request',
    type: {
      name: 'Composite',
      class_name: 'Request',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        addr: {
          client_side_validation: true,
          required: false,
          serialized_name: 'addr',
          type: {
            name: 'String'
          }
        },
        host: {
          client_side_validation: true,
          required: false,
          serialized_name: 'host',
          type: {
            name: 'String'
          }
        },
        method: {
          client_side_validation: true,
          required: false,
          serialized_name: 'method',
          type: {
            name: 'String'
          }
        },
        useragent: {
          client_side_validation: true,
          required: false,
          serialized_name: 'useragent',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end