Class: Azure::ARM::Graph::Models::ServicePrincipalCreateParameters

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb

Overview

Request parameters for create a new service principal

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#account_enabledBoolean

Returns Specifies if the account is enabled.

Returns:

  • (Boolean)

    Specifies if the account is enabled



19
20
21
# File 'lib/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb', line 19

def 
  @account_enabled
end

#app_idString

Returns application Id.

Returns:

  • (String)

    application Id



16
17
18
# File 'lib/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb', line 16

def app_id
  @app_id
end

#key_credentialsArray<KeyCredential>

Returns the list of KeyCredential objects.

Returns:



22
23
24
# File 'lib/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb', line 22

def key_credentials
  @key_credentials
end

#password_credentialsArray<PasswordCredential>

objects

Returns:



26
27
28
# File 'lib/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb', line 26

def password_credentials
  @password_credentials
end

Class Method Details

.mapperObject

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



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
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb', line 33

def self.mapper()
  {
    required: false,
    serialized_name: 'ServicePrincipalCreateParameters',
    type: {
      name: 'Composite',
      class_name: 'ServicePrincipalCreateParameters',
      model_properties: {
        app_id: {
          required: true,
          serialized_name: 'appId',
          type: {
            name: 'String'
          }
        },
        account_enabled: {
          required: true,
          serialized_name: 'accountEnabled',
          type: {
            name: 'Boolean'
          }
        },
        key_credentials: {
          required: false,
          serialized_name: 'keyCredentials',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'KeyCredentialElementType',
                type: {
                  name: 'Composite',
                  class_name: 'KeyCredential'
                }
            }
          }
        },
        password_credentials: {
          required: false,
          serialized_name: 'passwordCredentials',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'PasswordCredentialElementType',
                type: {
                  name: 'Composite',
                  class_name: 'PasswordCredential'
                }
            }
          }
        }
      }
    }
  }
end