Class: Azure::ServiceFabric::V6_4_0_36::Models::Setting

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.4.0.36/generated/azure_service_fabric/models/setting.rb

Overview

Describes a setting for the container. The setting file path can be fetched from environment variable “Fabric_SettingPath”. The path for Windows container is “C:\secrets”. The path for Linux container is “/var/secrets”.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#nameString

Returns The name of the setting.

Returns:

  • (String)

    The name of the setting.



19
20
21
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/setting.rb', line 19

def name
  @name
end

#valueString

Returns The value of the setting.

Returns:

  • (String)

    The value of the setting.



22
23
24
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/setting.rb', line 22

def value
  @value
end

Class Method Details

.mapperObject

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



29
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
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/setting.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Setting',
    type: {
      name: 'Composite',
      class_name: 'Setting',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'value',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end