Class: Azure::ApiManagement::Mgmt::V2016_07_07::Models::UserContract
- Inherits:
-
Object
- Object
- Azure::ApiManagement::Mgmt::V2016_07_07::Models::UserContract
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb
Overview
User profile.
Instance Attribute Summary collapse
-
#email ⇒ String
Email address.
-
#first_name ⇒ String
First name.
-
#id ⇒ String
User identifier path.
-
#identities ⇒ Array<UserIdentityContract>
Collection of user identities.
-
#last_name ⇒ String
Last name.
-
#note ⇒ String
Administrator’s note about given user.
-
#registration_date ⇒ DateTime
following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
-
#state ⇒ UserStateContract
‘Active’, ‘Blocked’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for UserContract class as Ruby Hash.
Instance Attribute Details
#email ⇒ String
Returns Email address.
25 26 27 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb', line 25 def email @email end |
#first_name ⇒ String
Returns First name.
19 20 21 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb', line 19 def first_name @first_name end |
#id ⇒ String
Returns User identifier path.
16 17 18 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb', line 16 def id @id end |
#identities ⇒ Array<UserIdentityContract>
Returns Collection of user identities.
41 42 43 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb', line 41 def identities @identities end |
#last_name ⇒ String
Returns Last name.
22 23 24 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb', line 22 def last_name @last_name end |
#note ⇒ String
Returns Administrator’s note about given user.
38 39 40 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb', line 38 def note @note end |
#registration_date ⇒ DateTime
following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
35 36 37 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb', line 35 def registration_date @registration_date end |
#state ⇒ UserStateContract
‘Active’, ‘Blocked’
29 30 31 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb', line 29 def state @state end |
Class Method Details
.mapper ⇒ Object
Mapper for UserContract 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 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 |
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb', line 48 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'UserContract', type: { name: 'Composite', class_name: 'UserContract', model_properties: { id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'String' } }, first_name: { client_side_validation: true, required: false, serialized_name: 'firstName', type: { name: 'String' } }, last_name: { client_side_validation: true, required: false, serialized_name: 'lastName', type: { name: 'String' } }, email: { client_side_validation: true, required: false, serialized_name: 'email', type: { name: 'String' } }, state: { client_side_validation: true, required: false, serialized_name: 'state', type: { name: 'Enum', module: 'UserStateContract' } }, registration_date: { client_side_validation: true, required: false, serialized_name: 'registrationDate', type: { name: 'DateTime' } }, note: { client_side_validation: true, required: false, serialized_name: 'note', type: { name: 'String' } }, identities: { client_side_validation: true, required: false, read_only: true, serialized_name: 'identities', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'UserIdentityContractElementType', type: { name: 'Composite', class_name: 'UserIdentityContract' } } } } } } } end |