Class: Azure::Web::Mgmt::V2018_02_01::Models::SnapshotRestoreRequest

Inherits:
ProxyOnlyResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb

Overview

Details about app recovery operation.

Instance Attribute Summary collapse

Attributes inherited from ProxyOnlyResource

#id, #kind, #name, #type

Class Method Summary collapse

Instance Attribute Details

#ignore_conflicting_host_namesBoolean

when recovering to a target web app. This setting is only necessary when RecoverConfiguration is enabled.

Returns:

  • (Boolean)

    If true, custom hostname conflicts will be ignored



35
36
37
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb', line 35

def ignore_conflicting_host_names
  @ignore_conflicting_host_names
end

#overwriteBoolean

overwrite source app; otherwise, false.

Returns:

  • (Boolean)

    If true the restore operation can



26
27
28
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb', line 26

def overwrite
  @overwrite
end

#recover_configurationBoolean

will be reverted.

Returns:

  • (Boolean)

    If true, site configuration, in addition to content,



30
31
32
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb', line 30

def recover_configuration
  @recover_configuration
end

#recovery_sourceSnapshotRecoverySource

snapshot contents will be retrieved from. If empty, the targeted web app will be used as the source.

Returns:



22
23
24
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb', line 22

def recovery_source
  @recovery_source
end

#snapshot_timeString

formatted as a DateTime string.

Returns:

  • (String)

    Point in time in which the app restore should be done,



17
18
19
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb', line 17

def snapshot_time
  @snapshot_time
end

Class Method Details

.mapperObject

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



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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/snapshot_restore_request.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SnapshotRestoreRequest',
    type: {
      name: 'Composite',
      class_name: 'SnapshotRestoreRequest',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        snapshot_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.snapshotTime',
          type: {
            name: 'String'
          }
        },
        recovery_source: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.recoverySource',
          type: {
            name: 'Composite',
            class_name: 'SnapshotRecoverySource'
          }
        },
        overwrite: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.overwrite',
          type: {
            name: 'Boolean'
          }
        },
        recover_configuration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.recoverConfiguration',
          type: {
            name: 'Boolean'
          }
        },
        ignore_conflicting_host_names: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.ignoreConflictingHostNames',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end