Class: Azure::RecoveryServicesBackup::Mgmt::V2019_06_15::Models::AzureFileShareProtectionPolicy

Inherits:
ProtectionPolicy
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_protection_policy.rb

Overview

AzureStorage backup policy.

Instance Attribute Summary collapse

Attributes inherited from ProtectionPolicy

#protected_items_count

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAzureFileShareProtectionPolicy

Returns a new instance of AzureFileShareProtectionPolicy.


16
17
18
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_protection_policy.rb', line 16

def initialize
  @backupManagementType = "AzureStorage"
end

Instance Attribute Details

#backupManagementTypeObject

Returns the value of attribute backupManagementType.


20
21
22
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_protection_policy.rb', line 20

def backupManagementType
  @backupManagementType
end

#retention_policyRetentionPolicy

copy retention ranges.

Returns:


35
36
37
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_protection_policy.rb', line 35

def retention_policy
  @retention_policy
end

#schedule_policySchedulePolicy

policy.

Returns:


31
32
33
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_protection_policy.rb', line 31

def schedule_policy
  @schedule_policy
end

#time_zoneString

TimeZone = “Pacific Standard Time”.

Returns:

  • (String)

    TimeZone optional input as string. For example:


39
40
41
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_protection_policy.rb', line 39

def time_zone
  @time_zone
end

#work_load_typeWorkloadType

Possible values include: ‘Invalid’, ‘VM’, ‘FileFolder’, ‘AzureSqlDb’, ‘SQLDB’, ‘Exchange’, ‘Sharepoint’, ‘VMwareVM’, ‘SystemState’, ‘Client’, ‘GenericDataSource’, ‘SQLDataBase’, ‘AzureFileShare’, ‘SAPHanaDatabase’, ‘SAPAseDatabase’

Returns:

  • (WorkloadType)

    Type of workload for the backup management.


27
28
29
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_protection_policy.rb', line 27

def work_load_type
  @work_load_type
end

Class Method Details

.mapperObject

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


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
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_protection_policy.rb', line 46

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AzureStorage',
    type: {
      name: 'Composite',
      class_name: 'AzureFileShareProtectionPolicy',
      model_properties: {
        protected_items_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protectedItemsCount',
          type: {
            name: 'Number'
          }
        },
        backupManagementType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'backupManagementType',
          type: {
            name: 'String'
          }
        },
        work_load_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'workLoadType',
          type: {
            name: 'String'
          }
        },
        schedule_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'schedulePolicy',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'schedulePolicyType',
            uber_parent: 'SchedulePolicy',
            class_name: 'SchedulePolicy'
          }
        },
        retention_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'retentionPolicy',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'retentionPolicyType',
            uber_parent: 'RetentionPolicy',
            class_name: 'RetentionPolicy'
          }
        },
        time_zone: {
          client_side_validation: true,
          required: false,
          serialized_name: 'timeZone',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end