Class: Azure::ServiceBus::Mgmt::V2015_08_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-08-01/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_create_or_update_parameters.rb

Overview

Parameters supplied to the Create Or Update Authorization Rules operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#locationString

Returns data center location.

Returns:

  • (String)

    data center location.



17
18
19
# File 'lib/2015-08-01/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_create_or_update_parameters.rb', line 17

def location
  @location
end

#nameString

Returns Name of the authorization rule.

Returns:

  • (String)

    Name of the authorization rule.



20
21
22
# File 'lib/2015-08-01/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_create_or_update_parameters.rb', line 20

def name
  @name
end

#rightsArray<AccessRights>

Returns The rights associated with the rule.

Returns:

  • (Array<AccessRights>)

    The rights associated with the rule.



23
24
25
# File 'lib/2015-08-01/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_create_or_update_parameters.rb', line 23

def rights
  @rights
end

Class Method Details

.mapperObject

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



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
# File 'lib/2015-08-01/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_create_or_update_parameters.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SharedAccessAuthorizationRuleCreateOrUpdateParameters',
    type: {
      name: 'Composite',
      class_name: 'SharedAccessAuthorizationRuleCreateOrUpdateParameters',
      model_properties: {
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        rights: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.rights',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'AccessRightsElementType',
                type: {
                  name: 'Enum',
                  module: 'AccessRights'
                }
            }
          }
        }
      }
    }
  }
end