Class: Azure::Web::Mgmt::V2015_04_01::Models::SnapshotRecoveryTarget

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-04-01/generated/azure_mgmt_web/models/snapshot_recovery_target.rb

Overview

Specifies the web app that snapshot contents will be written to.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idString

/subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.Web/sites/siteName for production slots and /subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.Web/sites/siteName/slots/slotName for other slots.

Returns:

  • (String)

    ARM resource ID of the target app.



24
25
26
# File 'lib/2015-04-01/generated/azure_mgmt_web/models/snapshot_recovery_target.rb', line 24

def id
  @id
end

#locationString

SouthEastAsia, SouthCentralUS

Returns:

  • (String)

    Geographical location of the target web app, e.g.



17
18
19
# File 'lib/2015-04-01/generated/azure_mgmt_web/models/snapshot_recovery_target.rb', line 17

def location
  @location
end

Class Method Details

.mapperObject

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



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
59
# File 'lib/2015-04-01/generated/azure_mgmt_web/models/snapshot_recovery_target.rb', line 31

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