This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathaccess_package.rb
More file actions
265 lines (264 loc) · 13.2 KB
/
Copy pathaccess_package.rb
File metadata and controls
265 lines (264 loc) · 13.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
require 'date'
require 'microsoft_kiota_abstractions'
require_relative '../microsoft_graph'
require_relative './models'
module MicrosoftGraph
module Models
class AccessPackage < MicrosoftGraph::Models::Entity
include MicrosoftKiotaAbstractions::Parsable
##
# The access packages that are incompatible with this package. Read-only.
@access_packages_incompatible_with
##
# Read-only. Nullable. Supports $expand.
@assignment_policies
##
# Required when creating the access package. Read-only. Nullable.
@catalog
##
# The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
@created_date_time
##
# The description of the access package.
@description
##
# Required. The display name of the access package. Supports $filter (eq, contains).
@display_name
##
# The access packages whose assigned users are ineligible to be assigned this access package.
@incompatible_access_packages
##
# The groups whose members are ineligible to be assigned this access package.
@incompatible_groups
##
# Whether the access package is hidden from the requestor.
@is_hidden
##
# The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
@modified_date_time
##
# The resource roles and scopes in this access package.
@resource_role_scopes
##
## Gets the accessPackagesIncompatibleWith property value. The access packages that are incompatible with this package. Read-only.
## @return a access_package
##
def access_packages_incompatible_with
return @access_packages_incompatible_with
end
##
## Sets the accessPackagesIncompatibleWith property value. The access packages that are incompatible with this package. Read-only.
## @param value Value to set for the accessPackagesIncompatibleWith property.
## @return a void
##
def access_packages_incompatible_with=(value)
@access_packages_incompatible_with = value
end
##
## Gets the assignmentPolicies property value. Read-only. Nullable. Supports $expand.
## @return a access_package_assignment_policy
##
def assignment_policies
return @assignment_policies
end
##
## Sets the assignmentPolicies property value. Read-only. Nullable. Supports $expand.
## @param value Value to set for the assignmentPolicies property.
## @return a void
##
def assignment_policies=(value)
@assignment_policies = value
end
##
## Gets the catalog property value. Required when creating the access package. Read-only. Nullable.
## @return a access_package_catalog
##
def catalog
return @catalog
end
##
## Sets the catalog property value. Required when creating the access package. Read-only. Nullable.
## @param value Value to set for the catalog property.
## @return a void
##
def catalog=(value)
@catalog = value
end
##
## Instantiates a new accessPackage and sets the default values.
## @return a void
##
def initialize()
super
end
##
## Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
## @return a date_time
##
def created_date_time
return @created_date_time
end
##
## Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
## @param value Value to set for the createdDateTime property.
## @return a void
##
def created_date_time=(value)
@created_date_time = value
end
##
## Creates a new instance of the appropriate class based on discriminator value
## @param parse_node The parse node to use to read the discriminator value and create the object
## @return a access_package
##
def self.create_from_discriminator_value(parse_node)
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
return AccessPackage.new
end
##
## Gets the description property value. The description of the access package.
## @return a string
##
def description
return @description
end
##
## Sets the description property value. The description of the access package.
## @param value Value to set for the description property.
## @return a void
##
def description=(value)
@description = value
end
##
## Gets the displayName property value. Required. The display name of the access package. Supports $filter (eq, contains).
## @return a string
##
def display_name
return @display_name
end
##
## Sets the displayName property value. Required. The display name of the access package. Supports $filter (eq, contains).
## @param value Value to set for the displayName property.
## @return a void
##
def display_name=(value)
@display_name = value
end
##
## The deserialization information for the current model
## @return a i_dictionary
##
def get_field_deserializers()
return super.merge({
"accessPackagesIncompatibleWith" => lambda {|n| @access_packages_incompatible_with = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }) },
"assignmentPolicies" => lambda {|n| @assignment_policies = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentPolicy.create_from_discriminator_value(pn) }) },
"catalog" => lambda {|n| @catalog = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AccessPackageCatalog.create_from_discriminator_value(pn) }) },
"createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
"description" => lambda {|n| @description = n.get_string_value() },
"displayName" => lambda {|n| @display_name = n.get_string_value() },
"incompatibleAccessPackages" => lambda {|n| @incompatible_access_packages = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }) },
"incompatibleGroups" => lambda {|n| @incompatible_groups = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }) },
"isHidden" => lambda {|n| @is_hidden = n.get_boolean_value() },
"modifiedDateTime" => lambda {|n| @modified_date_time = n.get_date_time_value() },
"resourceRoleScopes" => lambda {|n| @resource_role_scopes = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleScope.create_from_discriminator_value(pn) }) },
})
end
##
## Gets the incompatibleAccessPackages property value. The access packages whose assigned users are ineligible to be assigned this access package.
## @return a access_package
##
def incompatible_access_packages
return @incompatible_access_packages
end
##
## Sets the incompatibleAccessPackages property value. The access packages whose assigned users are ineligible to be assigned this access package.
## @param value Value to set for the incompatibleAccessPackages property.
## @return a void
##
def incompatible_access_packages=(value)
@incompatible_access_packages = value
end
##
## Gets the incompatibleGroups property value. The groups whose members are ineligible to be assigned this access package.
## @return a group
##
def incompatible_groups
return @incompatible_groups
end
##
## Sets the incompatibleGroups property value. The groups whose members are ineligible to be assigned this access package.
## @param value Value to set for the incompatibleGroups property.
## @return a void
##
def incompatible_groups=(value)
@incompatible_groups = value
end
##
## Gets the isHidden property value. Whether the access package is hidden from the requestor.
## @return a boolean
##
def is_hidden
return @is_hidden
end
##
## Sets the isHidden property value. Whether the access package is hidden from the requestor.
## @param value Value to set for the isHidden property.
## @return a void
##
def is_hidden=(value)
@is_hidden = value
end
##
## Gets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
## @return a date_time
##
def modified_date_time
return @modified_date_time
end
##
## Sets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
## @param value Value to set for the modifiedDateTime property.
## @return a void
##
def modified_date_time=(value)
@modified_date_time = value
end
##
## Gets the resourceRoleScopes property value. The resource roles and scopes in this access package.
## @return a access_package_resource_role_scope
##
def resource_role_scopes
return @resource_role_scopes
end
##
## Sets the resourceRoleScopes property value. The resource roles and scopes in this access package.
## @param value Value to set for the resourceRoleScopes property.
## @return a void
##
def resource_role_scopes=(value)
@resource_role_scopes = value
end
##
## Serializes information the current object
## @param writer Serialization writer to use to serialize this model
## @return a void
##
def serialize(writer)
raise StandardError, 'writer cannot be null' if writer.nil?
super
writer.write_collection_of_object_values("accessPackagesIncompatibleWith", @access_packages_incompatible_with)
writer.write_collection_of_object_values("assignmentPolicies", @assignment_policies)
writer.write_object_value("catalog", @catalog)
writer.write_date_time_value("createdDateTime", @created_date_time)
writer.write_string_value("description", @description)
writer.write_string_value("displayName", @display_name)
writer.write_collection_of_object_values("incompatibleAccessPackages", @incompatible_access_packages)
writer.write_collection_of_object_values("incompatibleGroups", @incompatible_groups)
writer.write_boolean_value("isHidden", @is_hidden)
writer.write_date_time_value("modifiedDateTime", @modified_date_time)
writer.write_collection_of_object_values("resourceRoleScopes", @resource_role_scopes)
end
end
end
end