Class: Azure::ServiceFabric::V6_4_0_36::Models::GetBackupByStorageQueryDescription

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

Overview

Describes additional filters to be applied, while listing backups, and backup storage details from where to fetch the backups.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#backup_entityBackupEntity

backups.

Returns:

  • (BackupEntity)

    Indicates the entity for which to enumerate



41
42
43
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/get_backup_by_storage_query_description.rb', line 41

def backup_entity
  @backup_entity
end

#end_date_time_filterDateTime

enumerate backups. If not specified, backups are enumerated till the end.

Returns:

  • (DateTime)

    Specifies the end date time in ISO8601 till which to



24
25
26
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/get_backup_by_storage_query_description.rb', line 24

def end_date_time_filter
  @end_date_time_filter
end

#latestBoolean

(within the specified time range) for every partition under the specified backup entity. Default value: false .

Returns:

  • (Boolean)

    If specified as true, gets the most recent backup



29
30
31
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/get_backup_by_storage_query_description.rb', line 29

def latest
  @latest
end

#start_date_time_filterDateTime

to enumerate backups. If not specified, backups are enumerated from the beginning.

Returns:

  • (DateTime)

    Specifies the start date time in ISO8601 from which



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

def start_date_time_filter
  @start_date_time_filter
end

#storageBackupStorageDescription

backup storage from where to enumerate backups. This is optional and by default backups are enumerated from the backup storage where this backup entity is currently being backed up (as specified in backup policy). This parameter is useful to be able to enumerate backups from another cluster where you may intend to restore.

Returns:



37
38
39
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/get_backup_by_storage_query_description.rb', line 37

def storage
  @storage
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'GetBackupByStorageQueryDescription',
    type: {
      name: 'Composite',
      class_name: 'GetBackupByStorageQueryDescription',
      model_properties: {
        start_date_time_filter: {
          client_side_validation: true,
          required: false,
          serialized_name: 'StartDateTimeFilter',
          type: {
            name: 'DateTime'
          }
        },
        end_date_time_filter: {
          client_side_validation: true,
          required: false,
          serialized_name: 'EndDateTimeFilter',
          type: {
            name: 'DateTime'
          }
        },
        latest: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Latest',
          default_value: false,
          type: {
            name: 'Boolean'
          }
        },
        storage: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Storage',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'StorageKind',
            uber_parent: 'BackupStorageDescription',
            class_name: 'BackupStorageDescription'
          }
        },
        backup_entity: {
          client_side_validation: true,
          required: true,
          serialized_name: 'BackupEntity',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'EntityKind',
            uber_parent: 'BackupEntity',
            class_name: 'BackupEntity'
          }
        }
      }
    }
  }
end