Class: Azure::Storage::Mgmt::V2017_06_01::Models::AccountSasParameters

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb

Overview

The parameters to list SAS credentials of a storage account.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#ipaddress_or_rangeString

accept requests.

Returns:

  • (String)

    An IP address or a range of IP addresses from which to



35
36
37
# File 'lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb', line 35

def ipaddress_or_range
  @ipaddress_or_range
end

#key_to_signString

Returns The key to sign the account SAS token with.

Returns:

  • (String)

    The key to sign the account SAS token with.



49
50
51
# File 'lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb', line 49

def key_to_sign
  @key_to_sign
end

#permissionsPermissions

Possible values include: Read ®, Write (w), Delete (d), List (l), Add (a), Create ©, Update (u) and Process (p). Possible values include: ‘r’, ‘d’, ‘w’, ‘l’, ‘a’, ‘c’, ‘u’, ‘p’

Returns:

  • (Permissions)

    The signed permissions for the account SAS.



31
32
33
# File 'lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb', line 31

def permissions
  @permissions
end

#protocolsHttpProtocol

the account SAS. Possible values include: ‘https,http’, ‘https’

Returns:

  • (HttpProtocol)

    The protocol permitted for a request made with



39
40
41
# File 'lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb', line 39

def protocols
  @protocols
end

#resource_typesSignedResourceTypes

accessible with the account SAS. Service (s): Access to service-level APIs; Container ©: Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: ‘s’, ‘c’, ‘o’

Returns:



25
26
27
# File 'lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb', line 25

def resource_types
  @resource_types
end

#servicesServices

Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: ‘b’, ‘q’, ‘t’, ‘f’

Returns:

  • (Services)

    The signed services accessible with the account SAS.



18
19
20
# File 'lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb', line 18

def services
  @services
end

#shared_access_expiry_timeDateTime

becomes invalid.

Returns:

  • (DateTime)

    The time at which the shared access signature



46
47
48
# File 'lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb', line 46

def shared_access_expiry_time
  @shared_access_expiry_time
end

#shared_access_start_timeDateTime

Returns The time at which the SAS becomes valid.

Returns:

  • (DateTime)

    The time at which the SAS becomes valid.



42
43
44
# File 'lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb', line 42

def shared_access_start_time
  @shared_access_start_time
end

Class Method Details

.mapperObject

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



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
131
132
133
# File 'lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb', line 56

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AccountSasParameters',
    type: {
      name: 'Composite',
      class_name: 'AccountSasParameters',
      model_properties: {
        services: {
          client_side_validation: true,
          required: true,
          serialized_name: 'signedServices',
          type: {
            name: 'String'
          }
        },
        resource_types: {
          client_side_validation: true,
          required: true,
          serialized_name: 'signedResourceTypes',
          type: {
            name: 'String'
          }
        },
        permissions: {
          client_side_validation: true,
          required: true,
          serialized_name: 'signedPermission',
          type: {
            name: 'String'
          }
        },
        ipaddress_or_range: {
          client_side_validation: true,
          required: false,
          serialized_name: 'signedIp',
          type: {
            name: 'String'
          }
        },
        protocols: {
          client_side_validation: true,
          required: false,
          serialized_name: 'signedProtocol',
          type: {
            name: 'Enum',
            module: 'HttpProtocol'
          }
        },
        shared_access_start_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'signedStart',
          type: {
            name: 'DateTime'
          }
        },
        shared_access_expiry_time: {
          client_side_validation: true,
          required: true,
          serialized_name: 'signedExpiry',
          type: {
            name: 'DateTime'
          }
        },
        key_to_sign: {
          client_side_validation: true,
          required: false,
          serialized_name: 'keyToSign',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end