azure_mgmt_graph 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/azure_mgmt_graph.gemspec +4 -5
- data/lib/azure_mgmt_graph.rb +3 -54
- data/lib/generated/azure_mgmt_graph.rb +58 -0
- data/lib/{azure_mgmt_graph/application_operations.rb → generated/azure_mgmt_graph/applications.rb} +37 -33
- data/lib/{azure_mgmt_graph → generated/azure_mgmt_graph}/graph_rbac_management_client.rb +18 -18
- data/lib/{azure_mgmt_graph/group_operations.rb → generated/azure_mgmt_graph/groups.rb} +214 -62
- data/lib/generated/azure_mgmt_graph/models/aadobject.rb +142 -0
- data/lib/generated/azure_mgmt_graph/models/adgroup.rb +84 -0
- data/lib/generated/azure_mgmt_graph/models/application.rb +146 -0
- data/lib/generated/azure_mgmt_graph/models/application_create_parameters.rb +137 -0
- data/lib/generated/azure_mgmt_graph/models/application_list_result.rb +52 -0
- data/lib/generated/azure_mgmt_graph/models/application_update_parameters.rb +126 -0
- data/lib/generated/azure_mgmt_graph/models/check_group_membership_parameters.rb +55 -0
- data/lib/generated/azure_mgmt_graph/models/check_group_membership_result.rb +46 -0
- data/lib/generated/azure_mgmt_graph/models/get_objects_result.rb +93 -0
- data/lib/generated/azure_mgmt_graph/models/group_add_member_parameters.rb +48 -0
- data/lib/generated/azure_mgmt_graph/models/group_create_parameters.rb +82 -0
- data/lib/generated/azure_mgmt_graph/models/group_get_member_groups_parameters.rb +46 -0
- data/lib/generated/azure_mgmt_graph/models/group_get_member_groups_result.rb +51 -0
- data/lib/generated/azure_mgmt_graph/models/group_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_graph/models/key_credential.rb +94 -0
- data/lib/generated/azure_mgmt_graph/models/password_credential.rb +74 -0
- data/lib/generated/azure_mgmt_graph/models/password_profile.rb +54 -0
- data/lib/generated/azure_mgmt_graph/models/service_principal.rb +91 -0
- data/lib/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb +54 -0
- data/lib/generated/azure_mgmt_graph/models/service_principal_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_graph/models/user.rb +104 -0
- data/lib/generated/azure_mgmt_graph/models/user_create_parameters.rb +100 -0
- data/lib/generated/azure_mgmt_graph/models/user_get_member_groups_parameters.rb +46 -0
- data/lib/generated/azure_mgmt_graph/models/user_get_member_groups_result.rb +51 -0
- data/lib/generated/azure_mgmt_graph/models/user_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_graph/models/user_update_parameters.rb +76 -0
- data/lib/{azure_mgmt_graph → generated/azure_mgmt_graph}/module_definition.rb +0 -0
- data/lib/generated/azure_mgmt_graph/objects.rb +112 -0
- data/lib/{azure_mgmt_graph/service_principal_operations.rb → generated/azure_mgmt_graph/service_principals.rb} +50 -27
- data/lib/{azure_mgmt_graph/user_operations.rb → generated/azure_mgmt_graph/users.rb} +243 -115
- data/lib/{azure_mgmt_graph → generated/azure_mgmt_graph}/version.rb +1 -1
- metadata +56 -74
- data/lib/azure_mgmt_graph/models/aadobject.rb +0 -138
- data/lib/azure_mgmt_graph/models/adgroup.rb +0 -92
- data/lib/azure_mgmt_graph/models/application.rb +0 -122
- data/lib/azure_mgmt_graph/models/application_create_parameters.rb +0 -160
- data/lib/azure_mgmt_graph/models/application_filter.rb +0 -74
- data/lib/azure_mgmt_graph/models/application_list_result.rb +0 -76
- data/lib/azure_mgmt_graph/models/get_objects_parameters.rb +0 -77
- data/lib/azure_mgmt_graph/models/get_objects_result.rb +0 -85
- data/lib/azure_mgmt_graph/models/group_add_member_parameters.rb +0 -56
- data/lib/azure_mgmt_graph/models/group_create_parameters.rb +0 -86
- data/lib/azure_mgmt_graph/models/group_get_member_groups_parameters.rb +0 -58
- data/lib/azure_mgmt_graph/models/group_get_member_groups_result.rb +0 -56
- data/lib/azure_mgmt_graph/models/group_list_result.rb +0 -85
- data/lib/azure_mgmt_graph/models/key_credential.rb +0 -105
- data/lib/azure_mgmt_graph/models/password_credential.rb +0 -87
- data/lib/azure_mgmt_graph/models/service_principal.rb +0 -92
- data/lib/azure_mgmt_graph/models/service_principal_create_parameters.rb +0 -66
- data/lib/azure_mgmt_graph/models/service_principal_list_result.rb +0 -86
- data/lib/azure_mgmt_graph/models/user.rb +0 -101
- data/lib/azure_mgmt_graph/models/user_create_parameters.rb +0 -103
- data/lib/azure_mgmt_graph/models/user_create_parameters_password_profile.rb +0 -65
- data/lib/azure_mgmt_graph/models/user_get_member_groups_parameters.rb +0 -58
- data/lib/azure_mgmt_graph/models/user_get_member_groups_result.rb +0 -56
- data/lib/azure_mgmt_graph/models/user_list_result.rb +0 -85
- data/lib/azure_mgmt_graph/object_operations.rb +0 -302
@@ -1,122 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Graph
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Active Directory user information
|
10
|
-
#
|
11
|
-
class Application
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets object Id
|
16
|
-
attr_accessor :object_id
|
17
|
-
|
18
|
-
# @return [String] Gets or sets object type
|
19
|
-
attr_accessor :object_type
|
20
|
-
|
21
|
-
# @return [String] Gets or sets application Id
|
22
|
-
attr_accessor :app_id
|
23
|
-
|
24
|
-
# @return [Array<String>] Gets or sets application permissions
|
25
|
-
attr_accessor :app_permissions
|
26
|
-
|
27
|
-
# @return [Boolean] Indicates if the application will be available to
|
28
|
-
# other tenants
|
29
|
-
attr_accessor :available_to_other_tenants
|
30
|
-
|
31
|
-
# @return [String] Gets or sets the displayName
|
32
|
-
attr_accessor :display_name
|
33
|
-
|
34
|
-
# @return [Array<String>] Gets or sets the application identifier Uris
|
35
|
-
attr_accessor :identifier_uris
|
36
|
-
|
37
|
-
# @return [Array<String>] Gets or sets the application reply Urls
|
38
|
-
attr_accessor :reply_urls
|
39
|
-
|
40
|
-
#
|
41
|
-
# Validate the object. Throws ValidationError if validation fails.
|
42
|
-
#
|
43
|
-
def validate
|
44
|
-
@app_permissions.each{ |e| e.validate if e.respond_to?(:validate) } unless @app_permissions.nil?
|
45
|
-
@identifier_uris.each{ |e| e.validate if e.respond_to?(:validate) } unless @identifier_uris.nil?
|
46
|
-
@reply_urls.each{ |e| e.validate if e.respond_to?(:validate) } unless @reply_urls.nil?
|
47
|
-
end
|
48
|
-
|
49
|
-
#
|
50
|
-
# Serializes given Model object into Ruby Hash.
|
51
|
-
# @param object Model object to serialize.
|
52
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
53
|
-
#
|
54
|
-
def self.serialize_object(object)
|
55
|
-
object.validate
|
56
|
-
output_object = {}
|
57
|
-
|
58
|
-
serialized_property = object.object_id
|
59
|
-
output_object['objectId'] = serialized_property unless serialized_property.nil?
|
60
|
-
|
61
|
-
serialized_property = object.object_type
|
62
|
-
output_object['objectType'] = serialized_property unless serialized_property.nil?
|
63
|
-
|
64
|
-
serialized_property = object.app_id
|
65
|
-
output_object['appId'] = serialized_property unless serialized_property.nil?
|
66
|
-
|
67
|
-
serialized_property = object.app_permissions
|
68
|
-
output_object['appPermissions'] = serialized_property unless serialized_property.nil?
|
69
|
-
|
70
|
-
serialized_property = object.available_to_other_tenants
|
71
|
-
output_object['availableToOtherTenants'] = serialized_property unless serialized_property.nil?
|
72
|
-
|
73
|
-
serialized_property = object.display_name
|
74
|
-
output_object['displayName'] = serialized_property unless serialized_property.nil?
|
75
|
-
|
76
|
-
serialized_property = object.identifier_uris
|
77
|
-
output_object['identifierUris'] = serialized_property unless serialized_property.nil?
|
78
|
-
|
79
|
-
serialized_property = object.reply_urls
|
80
|
-
output_object['replyUrls'] = serialized_property unless serialized_property.nil?
|
81
|
-
|
82
|
-
output_object
|
83
|
-
end
|
84
|
-
|
85
|
-
#
|
86
|
-
# Deserializes given Ruby Hash into Model object.
|
87
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
88
|
-
# @return [Application] Deserialized object.
|
89
|
-
#
|
90
|
-
def self.deserialize_object(object)
|
91
|
-
return if object.nil?
|
92
|
-
output_object = Application.new
|
93
|
-
|
94
|
-
deserialized_property = object['objectId']
|
95
|
-
output_object.object_id = deserialized_property
|
96
|
-
|
97
|
-
deserialized_property = object['objectType']
|
98
|
-
output_object.object_type = deserialized_property
|
99
|
-
|
100
|
-
deserialized_property = object['appId']
|
101
|
-
output_object.app_id = deserialized_property
|
102
|
-
|
103
|
-
deserialized_property = object['appPermissions']
|
104
|
-
output_object.app_permissions = deserialized_property
|
105
|
-
|
106
|
-
deserialized_property = object['availableToOtherTenants']
|
107
|
-
output_object.available_to_other_tenants = deserialized_property
|
108
|
-
|
109
|
-
deserialized_property = object['displayName']
|
110
|
-
output_object.display_name = deserialized_property
|
111
|
-
|
112
|
-
deserialized_property = object['identifierUris']
|
113
|
-
output_object.identifier_uris = deserialized_property
|
114
|
-
|
115
|
-
deserialized_property = object['replyUrls']
|
116
|
-
output_object.reply_urls = deserialized_property
|
117
|
-
|
118
|
-
output_object
|
119
|
-
end
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|
@@ -1,160 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Graph
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Request parameters for create a new application
|
10
|
-
#
|
11
|
-
class ApplicationCreateParameters
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Boolean] Indicates if the application will be available to
|
16
|
-
# other tenants
|
17
|
-
attr_accessor :available_to_other_tenants
|
18
|
-
|
19
|
-
# @return [String] Application display name
|
20
|
-
attr_accessor :display_name
|
21
|
-
|
22
|
-
# @return [String] Application homepage
|
23
|
-
attr_accessor :homepage
|
24
|
-
|
25
|
-
# @return [Array<String>] Application Uris
|
26
|
-
attr_accessor :identifier_uris
|
27
|
-
|
28
|
-
# @return [Array<String>] Application reply Urls
|
29
|
-
attr_accessor :reply_urls
|
30
|
-
|
31
|
-
# @return [Array<KeyCredential>] Gets or sets the list of KeyCredential
|
32
|
-
# objects
|
33
|
-
attr_accessor :key_credentials
|
34
|
-
|
35
|
-
# @return [Array<PasswordCredential>] Gets or sets the list of
|
36
|
-
# PasswordCredential objects
|
37
|
-
attr_accessor :password_credentials
|
38
|
-
|
39
|
-
#
|
40
|
-
# Validate the object. Throws ValidationError if validation fails.
|
41
|
-
#
|
42
|
-
def validate
|
43
|
-
fail MsRest::ValidationError, 'property available_to_other_tenants is nil' if @available_to_other_tenants.nil?
|
44
|
-
fail MsRest::ValidationError, 'property display_name is nil' if @display_name.nil?
|
45
|
-
fail MsRest::ValidationError, 'property homepage is nil' if @homepage.nil?
|
46
|
-
fail MsRest::ValidationError, 'property identifier_uris is nil' if @identifier_uris.nil?
|
47
|
-
@identifier_uris.each{ |e| e.validate if e.respond_to?(:validate) } unless @identifier_uris.nil?
|
48
|
-
@reply_urls.each{ |e| e.validate if e.respond_to?(:validate) } unless @reply_urls.nil?
|
49
|
-
@key_credentials.each{ |e| e.validate if e.respond_to?(:validate) } unless @key_credentials.nil?
|
50
|
-
@password_credentials.each{ |e| e.validate if e.respond_to?(:validate) } unless @password_credentials.nil?
|
51
|
-
end
|
52
|
-
|
53
|
-
#
|
54
|
-
# Serializes given Model object into Ruby Hash.
|
55
|
-
# @param object Model object to serialize.
|
56
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
57
|
-
#
|
58
|
-
def self.serialize_object(object)
|
59
|
-
object.validate
|
60
|
-
output_object = {}
|
61
|
-
|
62
|
-
serialized_property = object.available_to_other_tenants
|
63
|
-
output_object['availableToOtherTenants'] = serialized_property unless serialized_property.nil?
|
64
|
-
|
65
|
-
serialized_property = object.display_name
|
66
|
-
output_object['displayName'] = serialized_property unless serialized_property.nil?
|
67
|
-
|
68
|
-
serialized_property = object.homepage
|
69
|
-
output_object['homepage'] = serialized_property unless serialized_property.nil?
|
70
|
-
|
71
|
-
serialized_property = object.identifier_uris
|
72
|
-
output_object['identifierUris'] = serialized_property unless serialized_property.nil?
|
73
|
-
|
74
|
-
serialized_property = object.reply_urls
|
75
|
-
output_object['replyUrls'] = serialized_property unless serialized_property.nil?
|
76
|
-
|
77
|
-
serialized_property = object.key_credentials
|
78
|
-
unless serialized_property.nil?
|
79
|
-
serializedArray = []
|
80
|
-
serialized_property.each do |element2|
|
81
|
-
unless element2.nil?
|
82
|
-
element2 = KeyCredential.serialize_object(element2)
|
83
|
-
end
|
84
|
-
serializedArray.push(element2)
|
85
|
-
end
|
86
|
-
serialized_property = serializedArray
|
87
|
-
end
|
88
|
-
output_object['keyCredentials'] = serialized_property unless serialized_property.nil?
|
89
|
-
|
90
|
-
serialized_property = object.password_credentials
|
91
|
-
unless serialized_property.nil?
|
92
|
-
serializedArray = []
|
93
|
-
serialized_property.each do |element3|
|
94
|
-
unless element3.nil?
|
95
|
-
element3 = PasswordCredential.serialize_object(element3)
|
96
|
-
end
|
97
|
-
serializedArray.push(element3)
|
98
|
-
end
|
99
|
-
serialized_property = serializedArray
|
100
|
-
end
|
101
|
-
output_object['passwordCredentials'] = serialized_property unless serialized_property.nil?
|
102
|
-
|
103
|
-
output_object
|
104
|
-
end
|
105
|
-
|
106
|
-
#
|
107
|
-
# Deserializes given Ruby Hash into Model object.
|
108
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
109
|
-
# @return [ApplicationCreateParameters] Deserialized object.
|
110
|
-
#
|
111
|
-
def self.deserialize_object(object)
|
112
|
-
return if object.nil?
|
113
|
-
output_object = ApplicationCreateParameters.new
|
114
|
-
|
115
|
-
deserialized_property = object['availableToOtherTenants']
|
116
|
-
output_object.available_to_other_tenants = deserialized_property
|
117
|
-
|
118
|
-
deserialized_property = object['displayName']
|
119
|
-
output_object.display_name = deserialized_property
|
120
|
-
|
121
|
-
deserialized_property = object['homepage']
|
122
|
-
output_object.homepage = deserialized_property
|
123
|
-
|
124
|
-
deserialized_property = object['identifierUris']
|
125
|
-
output_object.identifier_uris = deserialized_property
|
126
|
-
|
127
|
-
deserialized_property = object['replyUrls']
|
128
|
-
output_object.reply_urls = deserialized_property
|
129
|
-
|
130
|
-
deserialized_property = object['keyCredentials']
|
131
|
-
unless deserialized_property.nil?
|
132
|
-
deserialized_array = []
|
133
|
-
deserialized_property.each do |element6|
|
134
|
-
unless element6.nil?
|
135
|
-
element6 = KeyCredential.deserialize_object(element6)
|
136
|
-
end
|
137
|
-
deserialized_array.push(element6)
|
138
|
-
end
|
139
|
-
deserialized_property = deserialized_array
|
140
|
-
end
|
141
|
-
output_object.key_credentials = deserialized_property
|
142
|
-
|
143
|
-
deserialized_property = object['passwordCredentials']
|
144
|
-
unless deserialized_property.nil?
|
145
|
-
deserialized_array = []
|
146
|
-
deserialized_property.each do |element7|
|
147
|
-
unless element7.nil?
|
148
|
-
element7 = PasswordCredential.deserialize_object(element7)
|
149
|
-
end
|
150
|
-
deserialized_array.push(element7)
|
151
|
-
end
|
152
|
-
deserialized_property = deserialized_array
|
153
|
-
end
|
154
|
-
output_object.password_credentials = deserialized_property
|
155
|
-
|
156
|
-
output_object
|
157
|
-
end
|
158
|
-
end
|
159
|
-
end
|
160
|
-
end
|
@@ -1,74 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Graph
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Filter parameters for listing applications
|
10
|
-
#
|
11
|
-
class ApplicationFilter
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Application display name starts with
|
16
|
-
attr_accessor :display_name_starts_with
|
17
|
-
|
18
|
-
# @return [String] ApplicationId
|
19
|
-
attr_accessor :app_id
|
20
|
-
|
21
|
-
# @return [String] Identifier Uri
|
22
|
-
attr_accessor :identifier_uri
|
23
|
-
|
24
|
-
#
|
25
|
-
# Validate the object. Throws ValidationError if validation fails.
|
26
|
-
#
|
27
|
-
def validate
|
28
|
-
# Nothing to validate
|
29
|
-
end
|
30
|
-
|
31
|
-
#
|
32
|
-
# Serializes given Model object into Ruby Hash.
|
33
|
-
# @param object Model object to serialize.
|
34
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
35
|
-
#
|
36
|
-
def self.serialize_object(object)
|
37
|
-
object.validate
|
38
|
-
output_object = {}
|
39
|
-
|
40
|
-
serialized_property = object.display_name_starts_with
|
41
|
-
output_object['displayNameStartsWith'] = serialized_property unless serialized_property.nil?
|
42
|
-
|
43
|
-
serialized_property = object.app_id
|
44
|
-
output_object['appId'] = serialized_property unless serialized_property.nil?
|
45
|
-
|
46
|
-
serialized_property = object.identifier_uri
|
47
|
-
output_object['identifierUri'] = serialized_property unless serialized_property.nil?
|
48
|
-
|
49
|
-
output_object
|
50
|
-
end
|
51
|
-
|
52
|
-
#
|
53
|
-
# Deserializes given Ruby Hash into Model object.
|
54
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
55
|
-
# @return [ApplicationFilter] Deserialized object.
|
56
|
-
#
|
57
|
-
def self.deserialize_object(object)
|
58
|
-
return if object.nil?
|
59
|
-
output_object = ApplicationFilter.new
|
60
|
-
|
61
|
-
deserialized_property = object['displayNameStartsWith']
|
62
|
-
output_object.display_name_starts_with = deserialized_property
|
63
|
-
|
64
|
-
deserialized_property = object['appId']
|
65
|
-
output_object.app_id = deserialized_property
|
66
|
-
|
67
|
-
deserialized_property = object['identifierUri']
|
68
|
-
output_object.identifier_uri = deserialized_property
|
69
|
-
|
70
|
-
output_object
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
@@ -1,76 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Graph
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Role assignment list operation result.
|
10
|
-
#
|
11
|
-
class ApplicationListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<Application>] Application list.
|
16
|
-
attr_accessor :value
|
17
|
-
|
18
|
-
#
|
19
|
-
# Validate the object. Throws ValidationError if validation fails.
|
20
|
-
#
|
21
|
-
def validate
|
22
|
-
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
23
|
-
end
|
24
|
-
|
25
|
-
#
|
26
|
-
# Serializes given Model object into Ruby Hash.
|
27
|
-
# @param object Model object to serialize.
|
28
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
29
|
-
#
|
30
|
-
def self.serialize_object(object)
|
31
|
-
object.validate
|
32
|
-
output_object = {}
|
33
|
-
|
34
|
-
serialized_property = object.value
|
35
|
-
unless serialized_property.nil?
|
36
|
-
serializedArray = []
|
37
|
-
serialized_property.each do |element|
|
38
|
-
unless element.nil?
|
39
|
-
element = Application.serialize_object(element)
|
40
|
-
end
|
41
|
-
serializedArray.push(element)
|
42
|
-
end
|
43
|
-
serialized_property = serializedArray
|
44
|
-
end
|
45
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
46
|
-
|
47
|
-
output_object
|
48
|
-
end
|
49
|
-
|
50
|
-
#
|
51
|
-
# Deserializes given Ruby Hash into Model object.
|
52
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
53
|
-
# @return [ApplicationListResult] Deserialized object.
|
54
|
-
#
|
55
|
-
def self.deserialize_object(object)
|
56
|
-
return if object.nil?
|
57
|
-
output_object = ApplicationListResult.new
|
58
|
-
|
59
|
-
deserialized_property = object['value']
|
60
|
-
unless deserialized_property.nil?
|
61
|
-
deserialized_array = []
|
62
|
-
deserialized_property.each do |element1|
|
63
|
-
unless element1.nil?
|
64
|
-
element1 = Application.deserialize_object(element1)
|
65
|
-
end
|
66
|
-
deserialized_array.push(element1)
|
67
|
-
end
|
68
|
-
deserialized_property = deserialized_array
|
69
|
-
end
|
70
|
-
output_object.value = deserialized_property
|
71
|
-
|
72
|
-
output_object
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Graph
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Request parameters for GetObjectsByObjectIds API call
|
10
|
-
#
|
11
|
-
class GetObjectsParameters
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<String>] Requested object Ids
|
16
|
-
attr_accessor :object_ids
|
17
|
-
|
18
|
-
# @return [Array<String>] Requested object types
|
19
|
-
attr_accessor :types
|
20
|
-
|
21
|
-
# @return [Boolean] If true, also searches for object ids in the partner
|
22
|
-
# tenant
|
23
|
-
attr_accessor :include_directory_object_references
|
24
|
-
|
25
|
-
#
|
26
|
-
# Validate the object. Throws ValidationError if validation fails.
|
27
|
-
#
|
28
|
-
def validate
|
29
|
-
fail MsRest::ValidationError, 'property include_directory_object_references is nil' if @include_directory_object_references.nil?
|
30
|
-
@object_ids.each{ |e| e.validate if e.respond_to?(:validate) } unless @object_ids.nil?
|
31
|
-
@types.each{ |e| e.validate if e.respond_to?(:validate) } unless @types.nil?
|
32
|
-
end
|
33
|
-
|
34
|
-
#
|
35
|
-
# Serializes given Model object into Ruby Hash.
|
36
|
-
# @param object Model object to serialize.
|
37
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
38
|
-
#
|
39
|
-
def self.serialize_object(object)
|
40
|
-
object.validate
|
41
|
-
output_object = {}
|
42
|
-
|
43
|
-
serialized_property = object.include_directory_object_references
|
44
|
-
output_object['includeDirectoryObjectReferences'] = serialized_property unless serialized_property.nil?
|
45
|
-
|
46
|
-
serialized_property = object.object_ids
|
47
|
-
output_object['objectIds'] = serialized_property unless serialized_property.nil?
|
48
|
-
|
49
|
-
serialized_property = object.types
|
50
|
-
output_object['types'] = serialized_property unless serialized_property.nil?
|
51
|
-
|
52
|
-
output_object
|
53
|
-
end
|
54
|
-
|
55
|
-
#
|
56
|
-
# Deserializes given Ruby Hash into Model object.
|
57
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
58
|
-
# @return [GetObjectsParameters] Deserialized object.
|
59
|
-
#
|
60
|
-
def self.deserialize_object(object)
|
61
|
-
return if object.nil?
|
62
|
-
output_object = GetObjectsParameters.new
|
63
|
-
|
64
|
-
deserialized_property = object['includeDirectoryObjectReferences']
|
65
|
-
output_object.include_directory_object_references = deserialized_property
|
66
|
-
|
67
|
-
deserialized_property = object['objectIds']
|
68
|
-
output_object.object_ids = deserialized_property
|
69
|
-
|
70
|
-
deserialized_property = object['types']
|
71
|
-
output_object.types = deserialized_property
|
72
|
-
|
73
|
-
output_object
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|