Class: Azure::CustomerInsights::Mgmt::V2017_01_01::Models::RelationshipResourceFormat

Inherits:
ProxyResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb

Overview

The relationship resource format.

Instance Attribute Summary collapse

Attributes inherited from ProxyResource

#id, #name, #type

Class Method Summary collapse

Instance Attribute Details

#cardinalityCardinalityTypes

values include: ‘OneToOne’, ‘OneToMany’, ‘ManyToMany’

Returns:



17
18
19
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb', line 17

def cardinality
  @cardinality
end

#descriptionHash{String => String}

Relationship.

Returns:

  • (Hash{String => String})

    Localized descriptions for the



25
26
27
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb', line 25

def description
  @description
end

#display_nameHash{String => String}

Relationship.

Returns:

  • (Hash{String => String})

    Localized display name for the



21
22
23
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb', line 21

def display_name
  @display_name
end

#expiry_date_time_utcDateTime

Returns The expiry date time in UTC.

Returns:

  • (DateTime)

    The expiry date time in UTC.



28
29
30
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb', line 28

def expiry_date_time_utc
  @expiry_date_time_utc
end

#fieldsArray<PropertyDefinition>

Returns The properties of the Relationship.

Returns:



31
32
33
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb', line 31

def fields
  @fields
end

#lookup_mappingsArray<RelationshipTypeMapping>

to map fields in profile to their strong ids in related profile.

Returns:



35
36
37
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb', line 35

def lookup_mappings
  @lookup_mappings
end

#profile_typeString

Returns Profile type.

Returns:

  • (String)

    Profile type.



38
39
40
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb', line 38

def profile_type
  @profile_type
end

#provisioning_stateProvisioningStates

include: ‘Provisioning’, ‘Succeeded’, ‘Expiring’, ‘Deleting’, ‘HumanIntervention’, ‘Failed’

Returns:



43
44
45
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb', line 43

def provisioning_state
  @provisioning_state
end

Returns Related profile being referenced.

Returns:

  • (String)

    Related profile being referenced.



49
50
51
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb', line 49

def related_profile_type
  @related_profile_type
end

#relationship_guid_idString

Returns The relationship guid id.

Returns:

  • (String)

    The relationship guid id.



52
53
54
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb', line 52

def relationship_guid_id
  @relationship_guid_id
end

#relationship_nameString

Returns The Relationship name.

Returns:

  • (String)

    The Relationship name.



46
47
48
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb', line 46

def relationship_name
  @relationship_name
end

#tenant_idString

Returns The hub name.

Returns:

  • (String)

    The hub name.



55
56
57
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb', line 55

def tenant_id
  @tenant_id
end

Class Method Details

.mapperObject

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



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
# File 'lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb', line 62

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RelationshipResourceFormat',
    type: {
      name: 'Composite',
      class_name: 'RelationshipResourceFormat',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        cardinality: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.cardinality',
          type: {
            name: 'Enum',
            module: 'CardinalityTypes'
          }
        },
        display_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.displayName',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.description',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        expiry_date_time_utc: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.expiryDateTimeUtc',
          type: {
            name: 'DateTime'
          }
        },
        fields: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.fields',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'PropertyDefinitionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'PropertyDefinition'
                }
            }
          }
        },
        lookup_mappings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.lookupMappings',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'RelationshipTypeMappingElementType',
                type: {
                  name: 'Composite',
                  class_name: 'RelationshipTypeMapping'
                }
            }
          }
        },
        profile_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.profileType',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        relationship_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.relationshipName',
          type: {
            name: 'String'
          }
        },
        related_profile_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.relatedProfileType',
          type: {
            name: 'String'
          }
        },
        relationship_guid_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.relationshipGuidId',
          type: {
            name: 'String'
          }
        },
        tenant_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.tenantId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end