azure_mgmt_customer_insights 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/azure_mgmt_customer_insights.rb +6 -0
- data/lib/generated/azure_mgmt_customer_insights.rb +144 -0
- data/lib/generated/azure_mgmt_customer_insights/authorization_policies.rb +634 -0
- data/lib/generated/azure_mgmt_customer_insights/connector_mappings.rb +548 -0
- data/lib/generated/azure_mgmt_customer_insights/connectors.rb +606 -0
- data/lib/generated/azure_mgmt_customer_insights/customer_insights_management_client.rb +191 -0
- data/lib/generated/azure_mgmt_customer_insights/hubs.rb +841 -0
- data/lib/generated/azure_mgmt_customer_insights/images.rb +242 -0
- data/lib/generated/azure_mgmt_customer_insights/interactions.rb +591 -0
- data/lib/generated/azure_mgmt_customer_insights/kpi.rb +689 -0
- data/lib/generated/azure_mgmt_customer_insights/links.rb +565 -0
- data/lib/generated/azure_mgmt_customer_insights/models/assignment_principal.rb +71 -0
- data/lib/generated/azure_mgmt_customer_insights/models/authorization_policy.rb +87 -0
- data/lib/generated/azure_mgmt_customer_insights/models/authorization_policy_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_customer_insights/models/authorization_policy_resource_format.rb +111 -0
- data/lib/generated/azure_mgmt_customer_insights/models/azure_blob_connector_properties.rb +44 -0
- data/lib/generated/azure_mgmt_customer_insights/models/calculation_window_types.rb +19 -0
- data/lib/generated/azure_mgmt_customer_insights/models/canonical_profile_definition.rb +63 -0
- data/lib/generated/azure_mgmt_customer_insights/models/canonical_profile_definition_properties_item.rb +86 -0
- data/lib/generated/azure_mgmt_customer_insights/models/canonical_property_value_type.rb +18 -0
- data/lib/generated/azure_mgmt_customer_insights/models/cardinality_types.rb +17 -0
- data/lib/generated/azure_mgmt_customer_insights/models/completion_operation_types.rb +17 -0
- data/lib/generated/azure_mgmt_customer_insights/models/connector_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_customer_insights/models/connector_mapping_availability.rb +56 -0
- data/lib/generated/azure_mgmt_customer_insights/models/connector_mapping_complete_operation.rb +57 -0
- data/lib/generated/azure_mgmt_customer_insights/models/connector_mapping_error_management.rb +57 -0
- data/lib/generated/azure_mgmt_customer_insights/models/connector_mapping_format.rb +97 -0
- data/lib/generated/azure_mgmt_customer_insights/models/connector_mapping_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_customer_insights/models/connector_mapping_properties.rb +131 -0
- data/lib/generated/azure_mgmt_customer_insights/models/connector_mapping_resource_format.rb +226 -0
- data/lib/generated/azure_mgmt_customer_insights/models/connector_mapping_states.rb +21 -0
- data/lib/generated/azure_mgmt_customer_insights/models/connector_mapping_structure.rb +74 -0
- data/lib/generated/azure_mgmt_customer_insights/models/connector_resource_format.rb +183 -0
- data/lib/generated/azure_mgmt_customer_insights/models/connector_states.rb +20 -0
- data/lib/generated/azure_mgmt_customer_insights/models/connector_types.rb +20 -0
- data/lib/generated/azure_mgmt_customer_insights/models/crm_connector_entities.rb +64 -0
- data/lib/generated/azure_mgmt_customer_insights/models/crm_connector_properties.rb +93 -0
- data/lib/generated/azure_mgmt_customer_insights/models/data_source_precedence.rb +102 -0
- data/lib/generated/azure_mgmt_customer_insights/models/data_source_type.rb +17 -0
- data/lib/generated/azure_mgmt_customer_insights/models/enriching_kpi.rb +229 -0
- data/lib/generated/azure_mgmt_customer_insights/models/entity_type.rb +18 -0
- data/lib/generated/azure_mgmt_customer_insights/models/entity_type_definition.rb +243 -0
- data/lib/generated/azure_mgmt_customer_insights/models/entity_types.rb +18 -0
- data/lib/generated/azure_mgmt_customer_insights/models/error_management_types.rb +17 -0
- data/lib/generated/azure_mgmt_customer_insights/models/frequency_types.rb +19 -0
- data/lib/generated/azure_mgmt_customer_insights/models/get_image_upload_url_input.rb +64 -0
- data/lib/generated/azure_mgmt_customer_insights/models/hub.rb +135 -0
- data/lib/generated/azure_mgmt_customer_insights/models/hub_billing_info_format.rb +74 -0
- data/lib/generated/azure_mgmt_customer_insights/models/hub_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_customer_insights/models/image_definition.rb +64 -0
- data/lib/generated/azure_mgmt_customer_insights/models/instance_operation_type.rb +16 -0
- data/lib/generated/azure_mgmt_customer_insights/models/interaction_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_customer_insights/models/interaction_resource_format.rb +434 -0
- data/lib/generated/azure_mgmt_customer_insights/models/kpi_alias.rb +54 -0
- data/lib/generated/azure_mgmt_customer_insights/models/kpi_definition.rb +293 -0
- data/lib/generated/azure_mgmt_customer_insights/models/kpi_extract.rb +54 -0
- data/lib/generated/azure_mgmt_customer_insights/models/kpi_functions.rb +22 -0
- data/lib/generated/azure_mgmt_customer_insights/models/kpi_group_by_metadata.rb +71 -0
- data/lib/generated/azure_mgmt_customer_insights/models/kpi_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_customer_insights/models/kpi_participant_profiles_metadata.rb +44 -0
- data/lib/generated/azure_mgmt_customer_insights/models/kpi_resource_format.rb +317 -0
- data/lib/generated/azure_mgmt_customer_insights/models/kpi_thresholds.rb +64 -0
- data/lib/generated/azure_mgmt_customer_insights/models/link_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_customer_insights/models/link_resource_format.rb +235 -0
- data/lib/generated/azure_mgmt_customer_insights/models/link_types.rb +16 -0
- data/lib/generated/azure_mgmt_customer_insights/models/metadata_definition_base.rb +152 -0
- data/lib/generated/azure_mgmt_customer_insights/models/participant.rb +117 -0
- data/lib/generated/azure_mgmt_customer_insights/models/participant_profile_property_reference.rb +56 -0
- data/lib/generated/azure_mgmt_customer_insights/models/participant_property_reference.rb +54 -0
- data/lib/generated/azure_mgmt_customer_insights/models/permission_types.rb +17 -0
- data/lib/generated/azure_mgmt_customer_insights/models/prediction_distribution_definition.rb +73 -0
- data/lib/generated/azure_mgmt_customer_insights/models/prediction_distribution_definition_distributions_item.rb +85 -0
- data/lib/generated/azure_mgmt_customer_insights/models/prediction_grades_item.rb +64 -0
- data/lib/generated/azure_mgmt_customer_insights/models/prediction_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_customer_insights/models/prediction_mappings.rb +64 -0
- data/lib/generated/azure_mgmt_customer_insights/models/prediction_model_life_cycle.rb +32 -0
- data/lib/generated/azure_mgmt_customer_insights/models/prediction_model_status.rb +161 -0
- data/lib/generated/azure_mgmt_customer_insights/models/prediction_resource_format.rb +279 -0
- data/lib/generated/azure_mgmt_customer_insights/models/prediction_system_generated_entities.rb +85 -0
- data/lib/generated/azure_mgmt_customer_insights/models/prediction_training_results.rb +98 -0
- data/lib/generated/azure_mgmt_customer_insights/models/profile_enum_valid_values_format.rb +61 -0
- data/lib/generated/azure_mgmt_customer_insights/models/profile_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_customer_insights/models/profile_resource_format.rb +312 -0
- data/lib/generated/azure_mgmt_customer_insights/models/property_definition.rb +218 -0
- data/lib/generated/azure_mgmt_customer_insights/models/provisioning_states.rb +20 -0
- data/lib/generated/azure_mgmt_customer_insights/models/proxy_resource.rb +67 -0
- data/lib/generated/azure_mgmt_customer_insights/models/relationship_link_field_mapping.rb +66 -0
- data/lib/generated/azure_mgmt_customer_insights/models/relationship_link_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_customer_insights/models/relationship_link_resource_format.rb +218 -0
- data/lib/generated/azure_mgmt_customer_insights/models/relationship_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb +219 -0
- data/lib/generated/azure_mgmt_customer_insights/models/relationship_type_field_mapping.rb +55 -0
- data/lib/generated/azure_mgmt_customer_insights/models/relationship_type_mapping.rb +55 -0
- data/lib/generated/azure_mgmt_customer_insights/models/relationships_lookup.rb +107 -0
- data/lib/generated/azure_mgmt_customer_insights/models/resource.rb +94 -0
- data/lib/generated/azure_mgmt_customer_insights/models/resource_set_description.rb +69 -0
- data/lib/generated/azure_mgmt_customer_insights/models/role_assignment_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_customer_insights/models/role_assignment_resource_format.rb +306 -0
- data/lib/generated/azure_mgmt_customer_insights/models/role_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_customer_insights/models/role_resource_format.rb +78 -0
- data/lib/generated/azure_mgmt_customer_insights/models/role_types.rb +20 -0
- data/lib/generated/azure_mgmt_customer_insights/models/salesforce_connector_properties.rb +63 -0
- data/lib/generated/azure_mgmt_customer_insights/models/salesforce_discover_setting.rb +44 -0
- data/lib/generated/azure_mgmt_customer_insights/models/salesforce_table.rb +84 -0
- data/lib/generated/azure_mgmt_customer_insights/models/status.rb +17 -0
- data/lib/generated/azure_mgmt_customer_insights/models/strong_id.rb +95 -0
- data/lib/generated/azure_mgmt_customer_insights/models/suggest_relationship_links_response.rb +65 -0
- data/lib/generated/azure_mgmt_customer_insights/models/type_properties_mapping.rb +66 -0
- data/lib/generated/azure_mgmt_customer_insights/models/view_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_customer_insights/models/view_resource_format.rb +139 -0
- data/lib/generated/azure_mgmt_customer_insights/models/widget_type_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_customer_insights/models/widget_type_resource_format.rb +160 -0
- data/lib/generated/azure_mgmt_customer_insights/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_customer_insights/predictions.rb +896 -0
- data/lib/generated/azure_mgmt_customer_insights/profiles.rb +733 -0
- data/lib/generated/azure_mgmt_customer_insights/relationship_links.rb +610 -0
- data/lib/generated/azure_mgmt_customer_insights/relationships.rb +606 -0
- data/lib/generated/azure_mgmt_customer_insights/role_assignments.rb +566 -0
- data/lib/generated/azure_mgmt_customer_insights/roles.rb +227 -0
- data/lib/generated/azure_mgmt_customer_insights/version.rb +8 -0
- data/lib/generated/azure_mgmt_customer_insights/views.rb +530 -0
- data/lib/generated/azure_mgmt_customer_insights/widget_types.rb +323 -0
- metadata +236 -0
@@ -0,0 +1,306 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::CustomerInsights
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The Role Assignment resource format.
|
10
|
+
#
|
11
|
+
class RoleAssignmentResourceFormat < ProxyResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The hub name.
|
16
|
+
attr_accessor :tenant_id
|
17
|
+
|
18
|
+
# @return [String] The name of the metadata object.
|
19
|
+
attr_accessor :assignment_name
|
20
|
+
|
21
|
+
# @return [Hash{String => String}] Localized display names for the
|
22
|
+
# metadata.
|
23
|
+
attr_accessor :display_name
|
24
|
+
|
25
|
+
# @return [Hash{String => String}] Localized description for the
|
26
|
+
# metadata.
|
27
|
+
attr_accessor :description
|
28
|
+
|
29
|
+
# @return [ProvisioningStates] Provisioning state. Possible values
|
30
|
+
# include: 'Provisioning', 'Succeeded', 'Expiring', 'Deleting',
|
31
|
+
# 'HumanIntervention', 'Failed'
|
32
|
+
attr_accessor :provisioning_state
|
33
|
+
|
34
|
+
# @return [RoleTypes] Type of roles. Possible values include: 'Admin',
|
35
|
+
# 'Reader', 'ManageAdmin', 'ManageReader', 'DataAdmin', 'DataReader'
|
36
|
+
attr_accessor :role
|
37
|
+
|
38
|
+
# @return [Array<AssignmentPrincipal>] The principals being assigned to.
|
39
|
+
attr_accessor :principals
|
40
|
+
|
41
|
+
# @return [ResourceSetDescription] Profiles set for the assignment.
|
42
|
+
attr_accessor :profiles
|
43
|
+
|
44
|
+
# @return [ResourceSetDescription] Interactions set for the assignment.
|
45
|
+
attr_accessor :interactions
|
46
|
+
|
47
|
+
# @return [ResourceSetDescription] Links set for the assignment.
|
48
|
+
attr_accessor :links
|
49
|
+
|
50
|
+
# @return [ResourceSetDescription] Kpis set for the assignment.
|
51
|
+
attr_accessor :kpis
|
52
|
+
|
53
|
+
# @return [ResourceSetDescription] Sas Policies set for the assignment.
|
54
|
+
attr_accessor :sas_policies
|
55
|
+
|
56
|
+
# @return [ResourceSetDescription] Connectors set for the assignment.
|
57
|
+
attr_accessor :connectors
|
58
|
+
|
59
|
+
# @return [ResourceSetDescription] Views set for the assignment.
|
60
|
+
attr_accessor :views
|
61
|
+
|
62
|
+
# @return [ResourceSetDescription] The Role assignments set for the
|
63
|
+
# relationship links.
|
64
|
+
attr_accessor :relationship_links
|
65
|
+
|
66
|
+
# @return [ResourceSetDescription] The Role assignments set for the
|
67
|
+
# relationships.
|
68
|
+
attr_accessor :relationships
|
69
|
+
|
70
|
+
# @return [ResourceSetDescription] Widget types set for the assignment.
|
71
|
+
attr_accessor :widget_types
|
72
|
+
|
73
|
+
# @return [ResourceSetDescription] The Role assignments set for the
|
74
|
+
# assignment.
|
75
|
+
attr_accessor :role_assignments
|
76
|
+
|
77
|
+
# @return [ResourceSetDescription] Widget types set for the assignment.
|
78
|
+
attr_accessor :conflation_policies
|
79
|
+
|
80
|
+
# @return [ResourceSetDescription] The Role assignments set for the
|
81
|
+
# assignment.
|
82
|
+
attr_accessor :segments
|
83
|
+
|
84
|
+
|
85
|
+
#
|
86
|
+
# Mapper for RoleAssignmentResourceFormat class as Ruby Hash.
|
87
|
+
# This will be used for serialization/deserialization.
|
88
|
+
#
|
89
|
+
def self.mapper()
|
90
|
+
{
|
91
|
+
required: false,
|
92
|
+
serialized_name: 'RoleAssignmentResourceFormat',
|
93
|
+
type: {
|
94
|
+
name: 'Composite',
|
95
|
+
class_name: 'RoleAssignmentResourceFormat',
|
96
|
+
model_properties: {
|
97
|
+
id: {
|
98
|
+
required: false,
|
99
|
+
read_only: true,
|
100
|
+
serialized_name: 'id',
|
101
|
+
type: {
|
102
|
+
name: 'String'
|
103
|
+
}
|
104
|
+
},
|
105
|
+
name: {
|
106
|
+
required: false,
|
107
|
+
read_only: true,
|
108
|
+
serialized_name: 'name',
|
109
|
+
type: {
|
110
|
+
name: 'String'
|
111
|
+
}
|
112
|
+
},
|
113
|
+
type: {
|
114
|
+
required: false,
|
115
|
+
read_only: true,
|
116
|
+
serialized_name: 'type',
|
117
|
+
type: {
|
118
|
+
name: 'String'
|
119
|
+
}
|
120
|
+
},
|
121
|
+
tenant_id: {
|
122
|
+
required: false,
|
123
|
+
read_only: true,
|
124
|
+
serialized_name: 'properties.tenantId',
|
125
|
+
type: {
|
126
|
+
name: 'String'
|
127
|
+
}
|
128
|
+
},
|
129
|
+
assignment_name: {
|
130
|
+
required: false,
|
131
|
+
read_only: true,
|
132
|
+
serialized_name: 'properties.assignmentName',
|
133
|
+
type: {
|
134
|
+
name: 'String'
|
135
|
+
}
|
136
|
+
},
|
137
|
+
display_name: {
|
138
|
+
required: false,
|
139
|
+
serialized_name: 'properties.displayName',
|
140
|
+
type: {
|
141
|
+
name: 'Dictionary',
|
142
|
+
value: {
|
143
|
+
required: false,
|
144
|
+
serialized_name: 'StringElementType',
|
145
|
+
type: {
|
146
|
+
name: 'String'
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
},
|
151
|
+
description: {
|
152
|
+
required: false,
|
153
|
+
serialized_name: 'properties.description',
|
154
|
+
type: {
|
155
|
+
name: 'Dictionary',
|
156
|
+
value: {
|
157
|
+
required: false,
|
158
|
+
serialized_name: 'StringElementType',
|
159
|
+
type: {
|
160
|
+
name: 'String'
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
164
|
+
},
|
165
|
+
provisioning_state: {
|
166
|
+
required: false,
|
167
|
+
read_only: true,
|
168
|
+
serialized_name: 'properties.provisioningState',
|
169
|
+
type: {
|
170
|
+
name: 'String'
|
171
|
+
}
|
172
|
+
},
|
173
|
+
role: {
|
174
|
+
required: true,
|
175
|
+
serialized_name: 'properties.role',
|
176
|
+
type: {
|
177
|
+
name: 'Enum',
|
178
|
+
module: 'RoleTypes'
|
179
|
+
}
|
180
|
+
},
|
181
|
+
principals: {
|
182
|
+
required: true,
|
183
|
+
serialized_name: 'properties.principals',
|
184
|
+
type: {
|
185
|
+
name: 'Sequence',
|
186
|
+
element: {
|
187
|
+
required: false,
|
188
|
+
serialized_name: 'AssignmentPrincipalElementType',
|
189
|
+
type: {
|
190
|
+
name: 'Composite',
|
191
|
+
class_name: 'AssignmentPrincipal'
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
},
|
196
|
+
profiles: {
|
197
|
+
required: false,
|
198
|
+
serialized_name: 'properties.profiles',
|
199
|
+
type: {
|
200
|
+
name: 'Composite',
|
201
|
+
class_name: 'ResourceSetDescription'
|
202
|
+
}
|
203
|
+
},
|
204
|
+
interactions: {
|
205
|
+
required: false,
|
206
|
+
serialized_name: 'properties.interactions',
|
207
|
+
type: {
|
208
|
+
name: 'Composite',
|
209
|
+
class_name: 'ResourceSetDescription'
|
210
|
+
}
|
211
|
+
},
|
212
|
+
links: {
|
213
|
+
required: false,
|
214
|
+
serialized_name: 'properties.links',
|
215
|
+
type: {
|
216
|
+
name: 'Composite',
|
217
|
+
class_name: 'ResourceSetDescription'
|
218
|
+
}
|
219
|
+
},
|
220
|
+
kpis: {
|
221
|
+
required: false,
|
222
|
+
serialized_name: 'properties.kpis',
|
223
|
+
type: {
|
224
|
+
name: 'Composite',
|
225
|
+
class_name: 'ResourceSetDescription'
|
226
|
+
}
|
227
|
+
},
|
228
|
+
sas_policies: {
|
229
|
+
required: false,
|
230
|
+
serialized_name: 'properties.sasPolicies',
|
231
|
+
type: {
|
232
|
+
name: 'Composite',
|
233
|
+
class_name: 'ResourceSetDescription'
|
234
|
+
}
|
235
|
+
},
|
236
|
+
connectors: {
|
237
|
+
required: false,
|
238
|
+
serialized_name: 'properties.connectors',
|
239
|
+
type: {
|
240
|
+
name: 'Composite',
|
241
|
+
class_name: 'ResourceSetDescription'
|
242
|
+
}
|
243
|
+
},
|
244
|
+
views: {
|
245
|
+
required: false,
|
246
|
+
serialized_name: 'properties.views',
|
247
|
+
type: {
|
248
|
+
name: 'Composite',
|
249
|
+
class_name: 'ResourceSetDescription'
|
250
|
+
}
|
251
|
+
},
|
252
|
+
relationship_links: {
|
253
|
+
required: false,
|
254
|
+
serialized_name: 'properties.relationshipLinks',
|
255
|
+
type: {
|
256
|
+
name: 'Composite',
|
257
|
+
class_name: 'ResourceSetDescription'
|
258
|
+
}
|
259
|
+
},
|
260
|
+
relationships: {
|
261
|
+
required: false,
|
262
|
+
serialized_name: 'properties.relationships',
|
263
|
+
type: {
|
264
|
+
name: 'Composite',
|
265
|
+
class_name: 'ResourceSetDescription'
|
266
|
+
}
|
267
|
+
},
|
268
|
+
widget_types: {
|
269
|
+
required: false,
|
270
|
+
serialized_name: 'properties.widgetTypes',
|
271
|
+
type: {
|
272
|
+
name: 'Composite',
|
273
|
+
class_name: 'ResourceSetDescription'
|
274
|
+
}
|
275
|
+
},
|
276
|
+
role_assignments: {
|
277
|
+
required: false,
|
278
|
+
serialized_name: 'properties.roleAssignments',
|
279
|
+
type: {
|
280
|
+
name: 'Composite',
|
281
|
+
class_name: 'ResourceSetDescription'
|
282
|
+
}
|
283
|
+
},
|
284
|
+
conflation_policies: {
|
285
|
+
required: false,
|
286
|
+
serialized_name: 'properties.conflationPolicies',
|
287
|
+
type: {
|
288
|
+
name: 'Composite',
|
289
|
+
class_name: 'ResourceSetDescription'
|
290
|
+
}
|
291
|
+
},
|
292
|
+
segments: {
|
293
|
+
required: false,
|
294
|
+
serialized_name: 'properties.segments',
|
295
|
+
type: {
|
296
|
+
name: 'Composite',
|
297
|
+
class_name: 'ResourceSetDescription'
|
298
|
+
}
|
299
|
+
}
|
300
|
+
}
|
301
|
+
}
|
302
|
+
}
|
303
|
+
end
|
304
|
+
end
|
305
|
+
end
|
306
|
+
end
|
@@ -0,0 +1,94 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::CustomerInsights
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response of list role assignment operation.
|
10
|
+
#
|
11
|
+
class RoleListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<RoleResourceFormat>] Results of the list operation.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] Link to the next set of results.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<RoleResourceFormat>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [RoleListResult] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for RoleListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'RoleListResult',
|
62
|
+
type: {
|
63
|
+
name: 'Composite',
|
64
|
+
class_name: 'RoleListResult',
|
65
|
+
model_properties: {
|
66
|
+
value: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'value',
|
69
|
+
type: {
|
70
|
+
name: 'Sequence',
|
71
|
+
element: {
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'RoleResourceFormatElementType',
|
74
|
+
type: {
|
75
|
+
name: 'Composite',
|
76
|
+
class_name: 'RoleResourceFormat'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
},
|
81
|
+
next_link: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'nextLink',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::CustomerInsights
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The role resource format.
|
10
|
+
#
|
11
|
+
class RoleResourceFormat < ProxyResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The role name.
|
16
|
+
attr_accessor :role_name
|
17
|
+
|
18
|
+
# @return [String] The description of the role.
|
19
|
+
attr_accessor :description
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for RoleResourceFormat class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
required: false,
|
29
|
+
serialized_name: 'RoleResourceFormat',
|
30
|
+
type: {
|
31
|
+
name: 'Composite',
|
32
|
+
class_name: 'RoleResourceFormat',
|
33
|
+
model_properties: {
|
34
|
+
id: {
|
35
|
+
required: false,
|
36
|
+
read_only: true,
|
37
|
+
serialized_name: 'id',
|
38
|
+
type: {
|
39
|
+
name: 'String'
|
40
|
+
}
|
41
|
+
},
|
42
|
+
name: {
|
43
|
+
required: false,
|
44
|
+
read_only: true,
|
45
|
+
serialized_name: 'name',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
type: {
|
51
|
+
required: false,
|
52
|
+
read_only: true,
|
53
|
+
serialized_name: 'type',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
role_name: {
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'properties.roleName',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
description: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'properties.description',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|