azure_mgmt_customer_insights 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights.rb +132 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/authorization_policies.rb +641 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/connector_mappings.rb +554 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/connectors.rb +612 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/customer_insights_management_client.rb +192 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/hubs.rb +848 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/images.rb +240 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/interactions.rb +597 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/kpi.rb +696 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/links.rb +571 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/assignment_principal.rb +76 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy.rb +93 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy_resource_format.rb +120 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/azure_blob_connector_properties.rb +46 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/calculation_window_types.rb +19 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/cardinality_types.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/completion_operation_types.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_availability.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_complete_operation.rb +60 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_error_management.rb +60 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_format.rb +104 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_properties.rb +141 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_resource_format.rb +245 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_states.rb +21 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_structure.rb +79 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_resource_format.rb +199 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_states.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_types.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/crm_connector_entities.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/crm_connector_properties.rb +100 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/data_source_precedence.rb +109 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/data_source_type.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/enriching_kpi.rb +256 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/entity_type_definition.rb +268 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/entity_types.rb +18 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/error_management_types.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/frequency_types.rb +19 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/get_image_upload_url_input.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/hub.rb +147 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/hub_billing_info_format.rb +78 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/hub_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/image_definition.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/instance_operation_type.rb +16 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/interaction_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/interaction_resource_format.rb +475 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_alias.rb +57 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_definition.rb +320 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_extract.rb +57 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_functions.rb +22 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_group_by_metadata.rb +76 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_participant_profiles_metadata.rb +46 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_resource_format.rb +347 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_thresholds.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/link_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/link_resource_format.rb +230 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/link_types.rb +16 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/metadata_definition_base.rb +166 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/operation.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/operation_display.rb +72 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/operation_list_result.rb +103 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/participant.rb +127 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/participant_property_reference.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/permission_types.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/profile_enum_valid_values_format.rb +65 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/profile_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/profile_resource_format.rb +342 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/property_definition.rb +237 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/provisioning_states.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/proxy_resource.rb +71 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_link_field_mapping.rb +70 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_link_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_link_resource_format.rb +238 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb +239 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_type_field_mapping.rb +58 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_type_mapping.rb +58 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationships_lookup.rb +115 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/resource.rb +101 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/resource_set_description.rb +74 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_assignment_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_assignment_resource_format.rb +333 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_resource_format.rb +84 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_types.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/salesforce_connector_properties.rb +67 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/salesforce_discover_setting.rb +46 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/salesforce_table.rb +90 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/status.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/strong_id.rb +103 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/suggest_relationship_links_response.rb +69 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/type_properties_mapping.rb +82 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/view_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/view_resource_format.rb +151 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/widget_type_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/widget_type_resource_format.rb +174 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/module_definition.rb +9 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/operations.rb +218 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/profiles.rb +742 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/relationship_links.rb +616 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/relationships.rb +612 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/role_assignments.rb +572 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/roles.rb +229 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/views.rb +535 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/widget_types.rb +326 -0
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/authorization_policies.rb +39 -35
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/connector_mappings.rb +33 -30
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/connectors.rb +41 -38
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/customer_insights_management_client.rb +4 -1
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/hubs.rb +58 -54
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/images.rb +12 -14
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/interactions.rb +37 -34
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/kpi.rb +47 -43
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/links.rb +37 -34
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/operations.rb +15 -13
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/predictions.rb +59 -55
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/profiles.rb +47 -43
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationship_links.rb +41 -38
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationships.rb +41 -38
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/role_assignments.rb +37 -34
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/roles.rb +15 -13
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/views.rb +33 -30
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/widget_types.rb +21 -18
- data/lib/azure_mgmt_customer_insights.rb +1 -0
- data/lib/profiles/latest/customerinsights_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/customerinsights_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/customerinsights_profile_module.rb +356 -337
- data/lib/version.rb +1 -1
- metadata +110 -2
@@ -0,0 +1,76 @@
|
|
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::CustomerInsights::Mgmt::V2017_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The KPI GroupBy field metadata.
|
10
|
+
#
|
11
|
+
class KpiGroupByMetadata
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Hash{String => String}] The display name.
|
16
|
+
attr_accessor :display_name
|
17
|
+
|
18
|
+
# @return [String] The name of the field.
|
19
|
+
attr_accessor :field_name
|
20
|
+
|
21
|
+
# @return [String] The type of the field.
|
22
|
+
attr_accessor :field_type
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for KpiGroupByMetadata class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'KpiGroupByMetadata',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'KpiGroupByMetadata',
|
37
|
+
model_properties: {
|
38
|
+
display_name: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'displayName',
|
42
|
+
type: {
|
43
|
+
name: 'Dictionary',
|
44
|
+
value: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'StringElementType',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
field_name: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'fieldName',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
field_type: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'fieldType',
|
66
|
+
type: {
|
67
|
+
name: 'String'
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,98 @@
|
|
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::CustomerInsights::Mgmt::V2017_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response of list KPI operation.
|
10
|
+
#
|
11
|
+
class KpiListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<KpiResourceFormat>] 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<KpiResourceFormat>] 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 [KpiListResult] 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 KpiListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'KpiListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'KpiListResult',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'value',
|
71
|
+
type: {
|
72
|
+
name: 'Sequence',
|
73
|
+
element: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'KpiResourceFormatElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'KpiResourceFormat'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
next_link: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'nextLink',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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::CustomerInsights::Mgmt::V2017_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The KPI participant profile metadata.
|
10
|
+
#
|
11
|
+
class KpiParticipantProfilesMetadata
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Name of the type.
|
16
|
+
attr_accessor :type_name
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for KpiParticipantProfilesMetadata class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'KpiParticipantProfilesMetadata',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'KpiParticipantProfilesMetadata',
|
31
|
+
model_properties: {
|
32
|
+
type_name: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: true,
|
35
|
+
serialized_name: 'typeName',
|
36
|
+
type: {
|
37
|
+
name: 'String'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,347 @@
|
|
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::CustomerInsights::Mgmt::V2017_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The KPI resource format.
|
10
|
+
#
|
11
|
+
class KpiResourceFormat < ProxyResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [EntityTypes] The mapping entity type. Possible values include:
|
16
|
+
# 'None', 'Profile', 'Interaction', 'Relationship'
|
17
|
+
attr_accessor :entity_type
|
18
|
+
|
19
|
+
# @return [String] The mapping entity name.
|
20
|
+
attr_accessor :entity_type_name
|
21
|
+
|
22
|
+
# @return [String] The hub name.
|
23
|
+
attr_accessor :tenant_id
|
24
|
+
|
25
|
+
# @return [String] The KPI name.
|
26
|
+
attr_accessor :kpi_name
|
27
|
+
|
28
|
+
# @return [Hash{String => String}] Localized display name for the KPI.
|
29
|
+
attr_accessor :display_name
|
30
|
+
|
31
|
+
# @return [Hash{String => String}] Localized description for the KPI.
|
32
|
+
attr_accessor :description
|
33
|
+
|
34
|
+
# @return [CalculationWindowTypes] The calculation window. Possible
|
35
|
+
# values include: 'Lifetime', 'Hour', 'Day', 'Week', 'Month'
|
36
|
+
attr_accessor :calculation_window
|
37
|
+
|
38
|
+
# @return [String] Name of calculation window field.
|
39
|
+
attr_accessor :calculation_window_field_name
|
40
|
+
|
41
|
+
# @return [KpiFunctions] The computation function for the KPI. Possible
|
42
|
+
# values include: 'Sum', 'Avg', 'Min', 'Max', 'Last', 'Count', 'None',
|
43
|
+
# 'CountDistinct'
|
44
|
+
attr_accessor :function
|
45
|
+
|
46
|
+
# @return [String] The computation expression for the KPI.
|
47
|
+
attr_accessor :expression
|
48
|
+
|
49
|
+
# @return [String] The unit of measurement for the KPI.
|
50
|
+
attr_accessor :unit
|
51
|
+
|
52
|
+
# @return [String] The filter expression for the KPI.
|
53
|
+
attr_accessor :filter
|
54
|
+
|
55
|
+
# @return [Array<String>] the group by properties for the KPI.
|
56
|
+
attr_accessor :group_by
|
57
|
+
|
58
|
+
# @return [Array<KpiGroupByMetadata>] The KPI GroupByMetadata.
|
59
|
+
attr_accessor :group_by_metadata
|
60
|
+
|
61
|
+
# @return [Array<KpiParticipantProfilesMetadata>] The participant
|
62
|
+
# profiles.
|
63
|
+
attr_accessor :participant_profiles_metadata
|
64
|
+
|
65
|
+
# @return [ProvisioningStates] Provisioning state. Possible values
|
66
|
+
# include: 'Provisioning', 'Succeeded', 'Expiring', 'Deleting',
|
67
|
+
# 'HumanIntervention', 'Failed'
|
68
|
+
attr_accessor :provisioning_state
|
69
|
+
|
70
|
+
# @return [KpiThresholds] The KPI thresholds.
|
71
|
+
attr_accessor :thres_holds
|
72
|
+
|
73
|
+
# @return [Array<KpiAlias>] The aliases.
|
74
|
+
attr_accessor :aliases
|
75
|
+
|
76
|
+
# @return [Array<KpiExtract>] The KPI extracts.
|
77
|
+
attr_accessor :extracts
|
78
|
+
|
79
|
+
|
80
|
+
#
|
81
|
+
# Mapper for KpiResourceFormat class as Ruby Hash.
|
82
|
+
# This will be used for serialization/deserialization.
|
83
|
+
#
|
84
|
+
def self.mapper()
|
85
|
+
{
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'KpiResourceFormat',
|
89
|
+
type: {
|
90
|
+
name: 'Composite',
|
91
|
+
class_name: 'KpiResourceFormat',
|
92
|
+
model_properties: {
|
93
|
+
id: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
read_only: true,
|
97
|
+
serialized_name: 'id',
|
98
|
+
type: {
|
99
|
+
name: 'String'
|
100
|
+
}
|
101
|
+
},
|
102
|
+
name: {
|
103
|
+
client_side_validation: true,
|
104
|
+
required: false,
|
105
|
+
read_only: true,
|
106
|
+
serialized_name: 'name',
|
107
|
+
type: {
|
108
|
+
name: 'String'
|
109
|
+
}
|
110
|
+
},
|
111
|
+
type: {
|
112
|
+
client_side_validation: true,
|
113
|
+
required: false,
|
114
|
+
read_only: true,
|
115
|
+
serialized_name: 'type',
|
116
|
+
type: {
|
117
|
+
name: 'String'
|
118
|
+
}
|
119
|
+
},
|
120
|
+
entity_type: {
|
121
|
+
client_side_validation: true,
|
122
|
+
required: true,
|
123
|
+
serialized_name: 'properties.entityType',
|
124
|
+
type: {
|
125
|
+
name: 'Enum',
|
126
|
+
module: 'EntityTypes'
|
127
|
+
}
|
128
|
+
},
|
129
|
+
entity_type_name: {
|
130
|
+
client_side_validation: true,
|
131
|
+
required: true,
|
132
|
+
serialized_name: 'properties.entityTypeName',
|
133
|
+
type: {
|
134
|
+
name: 'String'
|
135
|
+
}
|
136
|
+
},
|
137
|
+
tenant_id: {
|
138
|
+
client_side_validation: true,
|
139
|
+
required: false,
|
140
|
+
read_only: true,
|
141
|
+
serialized_name: 'properties.tenantId',
|
142
|
+
type: {
|
143
|
+
name: 'String'
|
144
|
+
}
|
145
|
+
},
|
146
|
+
kpi_name: {
|
147
|
+
client_side_validation: true,
|
148
|
+
required: false,
|
149
|
+
read_only: true,
|
150
|
+
serialized_name: 'properties.kpiName',
|
151
|
+
type: {
|
152
|
+
name: 'String'
|
153
|
+
}
|
154
|
+
},
|
155
|
+
display_name: {
|
156
|
+
client_side_validation: true,
|
157
|
+
required: false,
|
158
|
+
serialized_name: 'properties.displayName',
|
159
|
+
type: {
|
160
|
+
name: 'Dictionary',
|
161
|
+
value: {
|
162
|
+
client_side_validation: true,
|
163
|
+
required: false,
|
164
|
+
serialized_name: 'StringElementType',
|
165
|
+
type: {
|
166
|
+
name: 'String'
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
170
|
+
},
|
171
|
+
description: {
|
172
|
+
client_side_validation: true,
|
173
|
+
required: false,
|
174
|
+
serialized_name: 'properties.description',
|
175
|
+
type: {
|
176
|
+
name: 'Dictionary',
|
177
|
+
value: {
|
178
|
+
client_side_validation: true,
|
179
|
+
required: false,
|
180
|
+
serialized_name: 'StringElementType',
|
181
|
+
type: {
|
182
|
+
name: 'String'
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
},
|
187
|
+
calculation_window: {
|
188
|
+
client_side_validation: true,
|
189
|
+
required: true,
|
190
|
+
serialized_name: 'properties.calculationWindow',
|
191
|
+
type: {
|
192
|
+
name: 'Enum',
|
193
|
+
module: 'CalculationWindowTypes'
|
194
|
+
}
|
195
|
+
},
|
196
|
+
calculation_window_field_name: {
|
197
|
+
client_side_validation: true,
|
198
|
+
required: false,
|
199
|
+
serialized_name: 'properties.calculationWindowFieldName',
|
200
|
+
type: {
|
201
|
+
name: 'String'
|
202
|
+
}
|
203
|
+
},
|
204
|
+
function: {
|
205
|
+
client_side_validation: true,
|
206
|
+
required: true,
|
207
|
+
serialized_name: 'properties.function',
|
208
|
+
type: {
|
209
|
+
name: 'Enum',
|
210
|
+
module: 'KpiFunctions'
|
211
|
+
}
|
212
|
+
},
|
213
|
+
expression: {
|
214
|
+
client_side_validation: true,
|
215
|
+
required: true,
|
216
|
+
serialized_name: 'properties.expression',
|
217
|
+
type: {
|
218
|
+
name: 'String'
|
219
|
+
}
|
220
|
+
},
|
221
|
+
unit: {
|
222
|
+
client_side_validation: true,
|
223
|
+
required: false,
|
224
|
+
serialized_name: 'properties.unit',
|
225
|
+
type: {
|
226
|
+
name: 'String'
|
227
|
+
}
|
228
|
+
},
|
229
|
+
filter: {
|
230
|
+
client_side_validation: true,
|
231
|
+
required: false,
|
232
|
+
serialized_name: 'properties.filter',
|
233
|
+
type: {
|
234
|
+
name: 'String'
|
235
|
+
}
|
236
|
+
},
|
237
|
+
group_by: {
|
238
|
+
client_side_validation: true,
|
239
|
+
required: false,
|
240
|
+
serialized_name: 'properties.groupBy',
|
241
|
+
type: {
|
242
|
+
name: 'Sequence',
|
243
|
+
element: {
|
244
|
+
client_side_validation: true,
|
245
|
+
required: false,
|
246
|
+
serialized_name: 'StringElementType',
|
247
|
+
type: {
|
248
|
+
name: 'String'
|
249
|
+
}
|
250
|
+
}
|
251
|
+
}
|
252
|
+
},
|
253
|
+
group_by_metadata: {
|
254
|
+
client_side_validation: true,
|
255
|
+
required: false,
|
256
|
+
read_only: true,
|
257
|
+
serialized_name: 'properties.groupByMetadata',
|
258
|
+
type: {
|
259
|
+
name: 'Sequence',
|
260
|
+
element: {
|
261
|
+
client_side_validation: true,
|
262
|
+
required: false,
|
263
|
+
serialized_name: 'KpiGroupByMetadataElementType',
|
264
|
+
type: {
|
265
|
+
name: 'Composite',
|
266
|
+
class_name: 'KpiGroupByMetadata'
|
267
|
+
}
|
268
|
+
}
|
269
|
+
}
|
270
|
+
},
|
271
|
+
participant_profiles_metadata: {
|
272
|
+
client_side_validation: true,
|
273
|
+
required: false,
|
274
|
+
read_only: true,
|
275
|
+
serialized_name: 'properties.participantProfilesMetadata',
|
276
|
+
type: {
|
277
|
+
name: 'Sequence',
|
278
|
+
element: {
|
279
|
+
client_side_validation: true,
|
280
|
+
required: false,
|
281
|
+
serialized_name: 'KpiParticipantProfilesMetadataElementType',
|
282
|
+
type: {
|
283
|
+
name: 'Composite',
|
284
|
+
class_name: 'KpiParticipantProfilesMetadata'
|
285
|
+
}
|
286
|
+
}
|
287
|
+
}
|
288
|
+
},
|
289
|
+
provisioning_state: {
|
290
|
+
client_side_validation: true,
|
291
|
+
required: false,
|
292
|
+
read_only: true,
|
293
|
+
serialized_name: 'properties.provisioningState',
|
294
|
+
type: {
|
295
|
+
name: 'String'
|
296
|
+
}
|
297
|
+
},
|
298
|
+
thres_holds: {
|
299
|
+
client_side_validation: true,
|
300
|
+
required: false,
|
301
|
+
serialized_name: 'properties.thresHolds',
|
302
|
+
type: {
|
303
|
+
name: 'Composite',
|
304
|
+
class_name: 'KpiThresholds'
|
305
|
+
}
|
306
|
+
},
|
307
|
+
aliases: {
|
308
|
+
client_side_validation: true,
|
309
|
+
required: false,
|
310
|
+
serialized_name: 'properties.aliases',
|
311
|
+
type: {
|
312
|
+
name: 'Sequence',
|
313
|
+
element: {
|
314
|
+
client_side_validation: true,
|
315
|
+
required: false,
|
316
|
+
serialized_name: 'KpiAliasElementType',
|
317
|
+
type: {
|
318
|
+
name: 'Composite',
|
319
|
+
class_name: 'KpiAlias'
|
320
|
+
}
|
321
|
+
}
|
322
|
+
}
|
323
|
+
},
|
324
|
+
extracts: {
|
325
|
+
client_side_validation: true,
|
326
|
+
required: false,
|
327
|
+
serialized_name: 'properties.extracts',
|
328
|
+
type: {
|
329
|
+
name: 'Sequence',
|
330
|
+
element: {
|
331
|
+
client_side_validation: true,
|
332
|
+
required: false,
|
333
|
+
serialized_name: 'KpiExtractElementType',
|
334
|
+
type: {
|
335
|
+
name: 'Composite',
|
336
|
+
class_name: 'KpiExtract'
|
337
|
+
}
|
338
|
+
}
|
339
|
+
}
|
340
|
+
}
|
341
|
+
}
|
342
|
+
}
|
343
|
+
}
|
344
|
+
end
|
345
|
+
end
|
346
|
+
end
|
347
|
+
end
|