Class: Azure::ApiManagement::Mgmt::V2016_07_07::Models::IdentityProviderContract

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_contract.rb

Overview

The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#allowed_tenantsArray<String>

Active Directory login.



35
36
37
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_contract.rb', line 35

def allowed_tenants
  @allowed_tenants
end

#client_idString

Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.



20
21
22
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_contract.rb', line 20

def client_id
  @client_id
end

#client_secretString

Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft.



26
27
28
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_contract.rb', line 26

def client_secret
  @client_secret
end

#typeIdentityProviderNameType

Possible values include: ‘facebook’, ‘google’, ‘microsoft’, ‘twitter’, ‘aad’



31
32
33
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_contract.rb', line 31

def type
  @type
end

Class Method Details

.mapperObject

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



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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_contract.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'IdentityProviderContract',
    type: {
      name: 'Composite',
      class_name: 'IdentityProviderContract',
      model_properties: {
        client_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'clientId',
          constraints: {
            MinLength: 1
          },
          type: {
            name: 'String'
          }
        },
        client_secret: {
          client_side_validation: true,
          required: true,
          serialized_name: 'clientSecret',
          constraints: {
            MinLength: 1
          },
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        allowed_tenants: {
          client_side_validation: true,
          required: false,
          serialized_name: 'allowedTenants',
          constraints: {
            MaxItems: 32
          },
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end