Class: Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadRecoveryPoint

Inherits:
RecoveryPoint
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_recovery_point.rb

Overview

Workload specific recoverypoint, specifcally encaspulates full/diff recoverypoint

Direct Known Subclasses

AzureWorkloadSQLRecoveryPoint

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAzureWorkloadRecoveryPoint

Returns a new instance of AzureWorkloadRecoveryPoint.



21
22
23
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_recovery_point.rb', line 21

def initialize
  @objectType = "AzureWorkloadRecoveryPoint"
end

Instance Attribute Details

#objectTypeObject

Returns the value of attribute objectType.



25
26
27
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_recovery_point.rb', line 25

def objectType
  @objectType
end

#recovery_point_time_in_utcDateTime

Returns UTC time at which recoverypoint was created.

Returns:

  • (DateTime)

    UTC time at which recoverypoint was created



28
29
30
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_recovery_point.rb', line 28

def recovery_point_time_in_utc
  @recovery_point_time_in_utc
end

#typeRestorePointType

include: ‘Invalid’, ‘Full’, ‘Log’, ‘Differential’

Returns:



32
33
34
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_recovery_point.rb', line 32

def type
  @type
end

Class Method Details

.mapperObject

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



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
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_recovery_point.rb', line 39

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AzureWorkloadRecoveryPoint',
    type: {
      name: 'Composite',
      class_name: 'AzureWorkloadRecoveryPoint',
      model_properties: {
        objectType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'objectType',
          type: {
            name: 'String'
          }
        },
        recovery_point_time_in_utc: {
          client_side_validation: true,
          required: false,
          serialized_name: 'recoveryPointTimeInUTC',
          type: {
            name: 'DateTime'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end