Class: Azure::Storage::Mgmt::V2021_01_01::Models::BlobServiceProperties

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_properties.rb

Overview

The properties of a storage account’s Blob service.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#automatic_snapshot_policy_enabledBoolean

Returns Deprecated in favor of isVersioningEnabled property.

Returns:

  • (Boolean)

    Deprecated in favor of isVersioningEnabled property.



35
36
37
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_properties.rb', line 35

def automatic_snapshot_policy_enabled
  @automatic_snapshot_policy_enabled
end

#change_feedChangeFeed

events.

Returns:

  • (ChangeFeed)

    The blob service properties for change feed



39
40
41
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_properties.rb', line 39

def change_feed
  @change_feed
end

#container_delete_retention_policyDeleteRetentionPolicy

container soft delete.

Returns:



47
48
49
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_properties.rb', line 47

def container_delete_retention_policy
  @container_delete_retention_policy
end

#corsCorsRules

include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service.

Returns:

  • (CorsRules)

    Specifies CORS rules for the Blob service. You can



19
20
21
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_properties.rb', line 19

def cors
  @cors
end

#default_service_versionString

use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions.

Returns:

  • (String)

    DefaultServiceVersion indicates the default version to



25
26
27
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_properties.rb', line 25

def default_service_version
  @default_service_version
end

#delete_retention_policyDeleteRetentionPolicy

soft delete.

Returns:



29
30
31
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_properties.rb', line 29

def delete_retention_policy
  @delete_retention_policy
end

#is_versioning_enabledBoolean

Returns Versioning is enabled if set to true.

Returns:

  • (Boolean)

    Versioning is enabled if set to true.



32
33
34
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_properties.rb', line 32

def is_versioning_enabled
  @is_versioning_enabled
end

#last_access_time_tracking_policyLastAccessTimeTrackingPolicy

configure last access time based tracking policy.

Returns:



51
52
53
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_properties.rb', line 51

def last_access_time_tracking_policy
  @last_access_time_tracking_policy
end

#restore_policyRestorePolicyProperties

restore policy.

Returns:



43
44
45
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_properties.rb', line 43

def restore_policy
  @restore_policy
end

#skuSku

Returns Sku name and tier.

Returns:

  • (Sku)

    Sku name and tier.



54
55
56
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_properties.rb', line 54

def sku
  @sku
end

Class Method Details

.mapperObject

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



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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/blob_service_properties.rb', line 61

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BlobServiceProperties',
    type: {
      name: 'Composite',
      class_name: 'BlobServiceProperties',
      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'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        cors: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.cors',
          type: {
            name: 'Composite',
            class_name: 'CorsRules'
          }
        },
        default_service_version: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.defaultServiceVersion',
          type: {
            name: 'String'
          }
        },
        delete_retention_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.deleteRetentionPolicy',
          type: {
            name: 'Composite',
            class_name: 'DeleteRetentionPolicy'
          }
        },
        is_versioning_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isVersioningEnabled',
          type: {
            name: 'Boolean'
          }
        },
        automatic_snapshot_policy_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.automaticSnapshotPolicyEnabled',
          type: {
            name: 'Boolean'
          }
        },
        change_feed: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.changeFeed',
          type: {
            name: 'Composite',
            class_name: 'ChangeFeed'
          }
        },
        restore_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.restorePolicy',
          type: {
            name: 'Composite',
            class_name: 'RestorePolicyProperties'
          }
        },
        container_delete_retention_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.containerDeleteRetentionPolicy',
          type: {
            name: 'Composite',
            class_name: 'DeleteRetentionPolicy'
          }
        },
        last_access_time_tracking_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.lastAccessTimeTrackingPolicy',
          type: {
            name: 'Composite',
            class_name: 'LastAccessTimeTrackingPolicy'
          }
        },
        sku: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'Sku'
          }
        }
      }
    }
  }
end