class Azure::IotHub::Mgmt::V2018_01_22::Models::SharedAccessSignatureAuthorizationRule

The properties of an IoT hub shared access policy.

Attributes

key_name[RW]

@return [String] The name of the shared access policy.

primary_key[RW]

@return [String] The primary key.

rights[RW]

@return [AccessRights] The permissions assigned to the shared access policy. Possible values include: 'RegistryRead', 'RegistryWrite', 'ServiceConnect', 'DeviceConnect', 'RegistryRead, RegistryWrite', 'RegistryRead, ServiceConnect', 'RegistryRead, DeviceConnect', 'RegistryWrite, ServiceConnect', 'RegistryWrite, DeviceConnect', 'ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite, ServiceConnect', 'RegistryRead, RegistryWrite, DeviceConnect', 'RegistryRead, ServiceConnect, DeviceConnect', 'RegistryWrite, ServiceConnect, DeviceConnect', 'RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect'

secondary_key[RW]

@return [String] The secondary key.

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-01-22/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb, line 41
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SharedAccessSignatureAuthorizationRule',
    type: {
      name: 'Composite',
      class_name: 'SharedAccessSignatureAuthorizationRule',
      model_properties: {
        key_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'keyName',
          type: {
            name: 'String'
          }
        },
        primary_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'primaryKey',
          type: {
            name: 'String'
          }
        },
        secondary_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'secondaryKey',
          type: {
            name: 'String'
          }
        },
        rights: {
          client_side_validation: true,
          required: true,
          serialized_name: 'rights',
          type: {
            name: 'Enum',
            module: 'AccessRights'
          }
        }
      }
    }
  }
end