Class: IntersightClient::NiatelemetryTenantAllOf
- Inherits:
-
Object
- Object
- IntersightClient::NiatelemetryTenantAllOf
- Defined in:
- lib/intersight_client/models/niatelemetry_tenant_all_of.rb
Overview
Definition of the list of properties defined in ‘niatelemetry.Tenant’, excluding properties defined in parent classes.
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#bfd_if_pol_count ⇒ Object
Number of Bidirectional Forwarding Detection bfdIfPol Model Objects.
-
#bfd_ifp_count ⇒ Object
Number of objects with Bidirectional Forwarding Detection Interface Policy.
-
#class_id ⇒ Object
The fully-qualified name of the instantiated, concrete type.
-
#dhcp_rs_prov_count ⇒ Object
Number of tenants with Dynamic Host Configuration Protocol enabled.
-
#dn ⇒ Object
Dn for the tenants present.
-
#fhs_bd_pol_count ⇒ Object
Number of objects with First hop security.
-
#fv_ap_count ⇒ Object
Number of application profiles per tenant.
-
#fv_bd_count ⇒ Object
Number of bridge domains with hardware proxy enabled per tenant.
-
#fv_bd_subnet_count ⇒ Object
Number of bridge domain subnets per tenant.
-
#fv_bdno_arp_count ⇒ Object
Number of bridge domains with ARP flodding disabled per tenant.
-
#fv_cep_count ⇒ Object
Count of number of endpoints per tenant.
-
#fv_rs_bd_to_fhs_count ⇒ Object
Number of objects with First hop security.
-
#fv_rs_bd_to_out_count ⇒ Object
Number of bridge domains connected to layer 3 out per tenant.
-
#fv_site_connp_count ⇒ Object
Number of Multi-Site objects.
-
#fv_subnet_count ⇒ Object
Number of subnets per tenant.
-
#ip_static_route_count ⇒ Object
Number of IP static routes per tenant.
-
#l3_multicast_count ⇒ Object
Number of layer 3 multicasts.
-
#l3_multicast_ctx_count ⇒ Object
Number of layer 3 multicast CtxP.
-
#l3_multicast_if_count ⇒ Object
Number of layer 3 multicast IfP.
-
#l3out_count ⇒ Object
Number of L3 out objects for the tenants present.
-
#object_type ⇒ Object
The fully-qualified name of the instantiated, concrete type.
-
#qos_custom_pol_count ⇒ Object
Number of Quality Of Service Custom Policy.
-
#record_type ⇒ Object
Type of record DCNM / APIC / SE.
-
#record_version ⇒ Object
Version of record being pushed.
-
#registered_device ⇒ Object
Returns the value of attribute registered_device.
-
#site_name ⇒ Object
The Site name represents an APIC cluster.
-
#ssm ⇒ Object
SSM property feature usage.
-
#ssm_count ⇒ Object
Number of context-level ssm translate policies per tenant.
-
#tcam_opt_count ⇒ Object
Number of TCAM optimization enabled per tenant.
-
#trace_route_ep_count ⇒ Object
Number of ITrace route endpoint per tenant.
-
#trace_route_ep_ext_count ⇒ Object
Number of ITrace endpoint external routes per tenant.
-
#trace_route_ext_ep_count ⇒ Object
Number of ITrace external endpoint routes per tenant.
-
#trace_route_ext_ext_count ⇒ Object
Number of ITrace external routes per tenant.
-
#vns_abs_graph_count ⇒ Object
Number of objects with L4 to L7 Services graph.
-
#vns_backup_pol_count ⇒ Object
Number of objects with Policy Based Routing standby Node.
-
#vns_redirect_dest_count ⇒ Object
Number of objects with Policy Based Routing standby Node.
-
#vns_svc_redirect_pol_count ⇒ Object
Number of Policy Based Routing and Policy Based Service Insertion objects.
-
#vrf_count ⇒ Object
Number of Vrfs per tenant.
-
#vz_br_cp_count ⇒ Object
Number of Zoning Policy per tenant.
-
#vz_rt_cons_count ⇒ Object
Number of Client Contract between End Point Groups per tenant.
-
#vz_rt_prov_count ⇒ Object
Number of Client Contract between End Point Groups per tenant.
Class Method Summary collapse
-
.acceptable_attribute_map ⇒ Object
Returns the key-value map of all the JSON attributes this model knows about.
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ NiatelemetryTenantAllOf
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ NiatelemetryTenantAllOf
Initializes the object
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 275 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `IntersightClient::NiatelemetryTenantAllOf` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.acceptable_attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `#{self.class.name}`. Please check the name to make sure it's valid. List of attributes: " + self.class.acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'class_id') self.class_id = attributes[:'class_id'] else self.class_id = 'niatelemetry.Tenant' end if attributes.key?(:'object_type') self.object_type = attributes[:'object_type'] else self.object_type = 'niatelemetry.Tenant' end if attributes.key?(:'bfd_if_pol_count') self.bfd_if_pol_count = attributes[:'bfd_if_pol_count'] end if attributes.key?(:'bfd_ifp_count') self.bfd_ifp_count = attributes[:'bfd_ifp_count'] end if attributes.key?(:'dhcp_rs_prov_count') self.dhcp_rs_prov_count = attributes[:'dhcp_rs_prov_count'] end if attributes.key?(:'dn') self.dn = attributes[:'dn'] end if attributes.key?(:'fhs_bd_pol_count') self.fhs_bd_pol_count = attributes[:'fhs_bd_pol_count'] end if attributes.key?(:'fv_ap_count') self.fv_ap_count = attributes[:'fv_ap_count'] end if attributes.key?(:'fv_bd_count') self.fv_bd_count = attributes[:'fv_bd_count'] end if attributes.key?(:'fv_bd_subnet_count') self.fv_bd_subnet_count = attributes[:'fv_bd_subnet_count'] end if attributes.key?(:'fv_bdno_arp_count') self.fv_bdno_arp_count = attributes[:'fv_bdno_arp_count'] end if attributes.key?(:'fv_cep_count') self.fv_cep_count = attributes[:'fv_cep_count'] end if attributes.key?(:'fv_rs_bd_to_fhs_count') self.fv_rs_bd_to_fhs_count = attributes[:'fv_rs_bd_to_fhs_count'] end if attributes.key?(:'fv_rs_bd_to_out_count') self.fv_rs_bd_to_out_count = attributes[:'fv_rs_bd_to_out_count'] end if attributes.key?(:'fv_site_connp_count') self.fv_site_connp_count = attributes[:'fv_site_connp_count'] end if attributes.key?(:'fv_subnet_count') self.fv_subnet_count = attributes[:'fv_subnet_count'] end if attributes.key?(:'ip_static_route_count') self.ip_static_route_count = attributes[:'ip_static_route_count'] end if attributes.key?(:'l3_multicast_count') self.l3_multicast_count = attributes[:'l3_multicast_count'] end if attributes.key?(:'l3_multicast_ctx_count') self.l3_multicast_ctx_count = attributes[:'l3_multicast_ctx_count'] end if attributes.key?(:'l3_multicast_if_count') self.l3_multicast_if_count = attributes[:'l3_multicast_if_count'] end if attributes.key?(:'l3out_count') self.l3out_count = attributes[:'l3out_count'] end if attributes.key?(:'qos_custom_pol_count') self.qos_custom_pol_count = attributes[:'qos_custom_pol_count'] end if attributes.key?(:'record_type') self.record_type = attributes[:'record_type'] end if attributes.key?(:'record_version') self.record_version = attributes[:'record_version'] end if attributes.key?(:'site_name') self.site_name = attributes[:'site_name'] end if attributes.key?(:'ssm') self.ssm = attributes[:'ssm'] end if attributes.key?(:'ssm_count') self.ssm_count = attributes[:'ssm_count'] end if attributes.key?(:'tcam_opt_count') self.tcam_opt_count = attributes[:'tcam_opt_count'] end if attributes.key?(:'trace_route_ep_count') self.trace_route_ep_count = attributes[:'trace_route_ep_count'] end if attributes.key?(:'trace_route_ep_ext_count') self.trace_route_ep_ext_count = attributes[:'trace_route_ep_ext_count'] end if attributes.key?(:'trace_route_ext_ep_count') self.trace_route_ext_ep_count = attributes[:'trace_route_ext_ep_count'] end if attributes.key?(:'trace_route_ext_ext_count') self.trace_route_ext_ext_count = attributes[:'trace_route_ext_ext_count'] end if attributes.key?(:'vns_abs_graph_count') self.vns_abs_graph_count = attributes[:'vns_abs_graph_count'] end if attributes.key?(:'vns_backup_pol_count') self.vns_backup_pol_count = attributes[:'vns_backup_pol_count'] end if attributes.key?(:'vns_redirect_dest_count') self.vns_redirect_dest_count = attributes[:'vns_redirect_dest_count'] end if attributes.key?(:'vns_svc_redirect_pol_count') self.vns_svc_redirect_pol_count = attributes[:'vns_svc_redirect_pol_count'] end if attributes.key?(:'vrf_count') self.vrf_count = attributes[:'vrf_count'] end if attributes.key?(:'vz_br_cp_count') self.vz_br_cp_count = attributes[:'vz_br_cp_count'] end if attributes.key?(:'vz_rt_cons_count') self.vz_rt_cons_count = attributes[:'vz_rt_cons_count'] end if attributes.key?(:'vz_rt_prov_count') self.vz_rt_prov_count = attributes[:'vz_rt_prov_count'] end if attributes.key?(:'registered_device') self.registered_device = attributes[:'registered_device'] end end |
Instance Attribute Details
#bfd_if_pol_count ⇒ Object
Number of Bidirectional Forwarding Detection bfdIfPol Model Objects.
26 27 28 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 26 def bfd_if_pol_count @bfd_if_pol_count end |
#bfd_ifp_count ⇒ Object
Number of objects with Bidirectional Forwarding Detection Interface Policy.
29 30 31 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 29 def bfd_ifp_count @bfd_ifp_count end |
#class_id ⇒ Object
The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data.
20 21 22 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 20 def class_id @class_id end |
#dhcp_rs_prov_count ⇒ Object
Number of tenants with Dynamic Host Configuration Protocol enabled.
32 33 34 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 32 def dhcp_rs_prov_count @dhcp_rs_prov_count end |
#dn ⇒ Object
Dn for the tenants present.
35 36 37 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 35 def dn @dn end |
#fhs_bd_pol_count ⇒ Object
Number of objects with First hop security. Checks for presence of IP source gaurd, dynamic arp inspection.
38 39 40 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 38 def fhs_bd_pol_count @fhs_bd_pol_count end |
#fv_ap_count ⇒ Object
Number of application profiles per tenant.
41 42 43 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 41 def fv_ap_count @fv_ap_count end |
#fv_bd_count ⇒ Object
Number of bridge domains with hardware proxy enabled per tenant.
44 45 46 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 44 def fv_bd_count @fv_bd_count end |
#fv_bd_subnet_count ⇒ Object
Number of bridge domain subnets per tenant.
47 48 49 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 47 def fv_bd_subnet_count @fv_bd_subnet_count end |
#fv_bdno_arp_count ⇒ Object
Number of bridge domains with ARP flodding disabled per tenant.
50 51 52 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 50 def fv_bdno_arp_count @fv_bdno_arp_count end |
#fv_cep_count ⇒ Object
Count of number of endpoints per tenant.
53 54 55 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 53 def fv_cep_count @fv_cep_count end |
#fv_rs_bd_to_fhs_count ⇒ Object
Number of objects with First hop security. Checks for presence of IP source gaurd, dynamic arp inspection.
56 57 58 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 56 def fv_rs_bd_to_fhs_count @fv_rs_bd_to_fhs_count end |
#fv_rs_bd_to_out_count ⇒ Object
Number of bridge domains connected to layer 3 out per tenant.
59 60 61 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 59 def fv_rs_bd_to_out_count @fv_rs_bd_to_out_count end |
#fv_site_connp_count ⇒ Object
Number of Multi-Site objects.
62 63 64 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 62 def fv_site_connp_count @fv_site_connp_count end |
#fv_subnet_count ⇒ Object
Number of subnets per tenant.
65 66 67 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 65 def fv_subnet_count @fv_subnet_count end |
#ip_static_route_count ⇒ Object
Number of IP static routes per tenant.
68 69 70 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 68 def ip_static_route_count @ip_static_route_count end |
#l3_multicast_count ⇒ Object
Number of layer 3 multicasts.
71 72 73 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 71 def l3_multicast_count @l3_multicast_count end |
#l3_multicast_ctx_count ⇒ Object
Number of layer 3 multicast CtxP.
74 75 76 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 74 def l3_multicast_ctx_count @l3_multicast_ctx_count end |
#l3_multicast_if_count ⇒ Object
Number of layer 3 multicast IfP.
77 78 79 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 77 def l3_multicast_if_count @l3_multicast_if_count end |
#l3out_count ⇒ Object
Number of L3 out objects for the tenants present.
80 81 82 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 80 def l3out_count @l3out_count end |
#object_type ⇒ Object
The fully-qualified name of the instantiated, concrete type. The value should be the same as the ‘ClassId’ property.
23 24 25 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 23 def object_type @object_type end |
#qos_custom_pol_count ⇒ Object
Number of Quality Of Service Custom Policy.
83 84 85 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 83 def qos_custom_pol_count @qos_custom_pol_count end |
#record_type ⇒ Object
Type of record DCNM / APIC / SE. This determines the type of platform where inventory was collected.
86 87 88 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 86 def record_type @record_type end |
#record_version ⇒ Object
Version of record being pushed. This determines what was the API version for data available from the device.
89 90 91 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 89 def record_version @record_version end |
#registered_device ⇒ Object
Returns the value of attribute registered_device.
139 140 141 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 139 def registered_device @registered_device end |
#site_name ⇒ Object
The Site name represents an APIC cluster. Service Engine can onboard multiple APIC clusters / sites.
92 93 94 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 92 def site_name @site_name end |
#ssm ⇒ Object
SSM property feature usage.
95 96 97 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 95 def ssm @ssm end |
#ssm_count ⇒ Object
Number of context-level ssm translate policies per tenant.
98 99 100 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 98 def ssm_count @ssm_count end |
#tcam_opt_count ⇒ Object
Number of TCAM optimization enabled per tenant.
101 102 103 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 101 def tcam_opt_count @tcam_opt_count end |
#trace_route_ep_count ⇒ Object
Number of ITrace route endpoint per tenant.
104 105 106 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 104 def trace_route_ep_count @trace_route_ep_count end |
#trace_route_ep_ext_count ⇒ Object
Number of ITrace endpoint external routes per tenant.
107 108 109 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 107 def trace_route_ep_ext_count @trace_route_ep_ext_count end |
#trace_route_ext_ep_count ⇒ Object
Number of ITrace external endpoint routes per tenant.
110 111 112 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 110 def trace_route_ext_ep_count @trace_route_ext_ep_count end |
#trace_route_ext_ext_count ⇒ Object
Number of ITrace external routes per tenant.
113 114 115 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 113 def trace_route_ext_ext_count @trace_route_ext_ext_count end |
#vns_abs_graph_count ⇒ Object
Number of objects with L4 to L7 Services graph.
116 117 118 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 116 def vns_abs_graph_count @vns_abs_graph_count end |
#vns_backup_pol_count ⇒ Object
Number of objects with Policy Based Routing standby Node. Checks the Policy Based Routing backup policy.
119 120 121 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 119 def vns_backup_pol_count @vns_backup_pol_count end |
#vns_redirect_dest_count ⇒ Object
Number of objects with Policy Based Routing standby Node. Policy based redirect requires a destination to redirect traffic.
122 123 124 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 122 def vns_redirect_dest_count @vns_redirect_dest_count end |
#vns_svc_redirect_pol_count ⇒ Object
Number of Policy Based Routing and Policy Based Service Insertion objects. Includes without L4-L7 package.
125 126 127 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 125 def vns_svc_redirect_pol_count @vns_svc_redirect_pol_count end |
#vrf_count ⇒ Object
Number of Vrfs per tenant.
128 129 130 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 128 def vrf_count @vrf_count end |
#vz_br_cp_count ⇒ Object
Number of Zoning Policy per tenant.
131 132 133 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 131 def vz_br_cp_count @vz_br_cp_count end |
#vz_rt_cons_count ⇒ Object
Number of Client Contract between End Point Groups per tenant.
134 135 136 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 134 def vz_rt_cons_count @vz_rt_cons_count end |
#vz_rt_prov_count ⇒ Object
Number of Client Contract between End Point Groups per tenant.
137 138 139 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 137 def vz_rt_prov_count @vz_rt_prov_count end |
Class Method Details
.acceptable_attribute_map ⇒ Object
Returns the key-value map of all the JSON attributes this model knows about
216 217 218 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 216 def self.acceptable_attribute_map attribute_map end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
211 212 213 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 211 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 164 def self.attribute_map { :'class_id' => :'ClassId', :'object_type' => :'ObjectType', :'bfd_if_pol_count' => :'BfdIfPolCount', :'bfd_ifp_count' => :'BfdIfpCount', :'dhcp_rs_prov_count' => :'DhcpRsProvCount', :'dn' => :'Dn', :'fhs_bd_pol_count' => :'FhsBdPolCount', :'fv_ap_count' => :'FvApCount', :'fv_bd_count' => :'FvBdCount', :'fv_bd_subnet_count' => :'FvBdSubnetCount', :'fv_bdno_arp_count' => :'FvBdnoArpCount', :'fv_cep_count' => :'FvCepCount', :'fv_rs_bd_to_fhs_count' => :'FvRsBdToFhsCount', :'fv_rs_bd_to_out_count' => :'FvRsBdToOutCount', :'fv_site_connp_count' => :'FvSiteConnpCount', :'fv_subnet_count' => :'FvSubnetCount', :'ip_static_route_count' => :'IpStaticRouteCount', :'l3_multicast_count' => :'L3MulticastCount', :'l3_multicast_ctx_count' => :'L3MulticastCtxCount', :'l3_multicast_if_count' => :'L3MulticastIfCount', :'l3out_count' => :'L3outCount', :'qos_custom_pol_count' => :'QosCustomPolCount', :'record_type' => :'RecordType', :'record_version' => :'RecordVersion', :'site_name' => :'SiteName', :'ssm' => :'Ssm', :'ssm_count' => :'SsmCount', :'tcam_opt_count' => :'TcamOptCount', :'trace_route_ep_count' => :'TraceRouteEpCount', :'trace_route_ep_ext_count' => :'TraceRouteEpExtCount', :'trace_route_ext_ep_count' => :'TraceRouteExtEpCount', :'trace_route_ext_ext_count' => :'TraceRouteExtExtCount', :'vns_abs_graph_count' => :'VnsAbsGraphCount', :'vns_backup_pol_count' => :'VnsBackupPolCount', :'vns_redirect_dest_count' => :'VnsRedirectDestCount', :'vns_svc_redirect_pol_count' => :'VnsSvcRedirectPolCount', :'vrf_count' => :'VrfCount', :'vz_br_cp_count' => :'VzBrCpCount', :'vz_rt_cons_count' => :'VzRtConsCount', :'vz_rt_prov_count' => :'VzRtProvCount', :'registered_device' => :'RegisteredDevice' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
567 568 569 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 567 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
268 269 270 271 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 268 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 221 def self.openapi_types { :'class_id' => :'String', :'object_type' => :'String', :'bfd_if_pol_count' => :'Integer', :'bfd_ifp_count' => :'Integer', :'dhcp_rs_prov_count' => :'Integer', :'dn' => :'String', :'fhs_bd_pol_count' => :'Integer', :'fv_ap_count' => :'Integer', :'fv_bd_count' => :'Integer', :'fv_bd_subnet_count' => :'Integer', :'fv_bdno_arp_count' => :'Integer', :'fv_cep_count' => :'Integer', :'fv_rs_bd_to_fhs_count' => :'Integer', :'fv_rs_bd_to_out_count' => :'Integer', :'fv_site_connp_count' => :'Integer', :'fv_subnet_count' => :'Integer', :'ip_static_route_count' => :'Integer', :'l3_multicast_count' => :'Integer', :'l3_multicast_ctx_count' => :'Integer', :'l3_multicast_if_count' => :'Integer', :'l3out_count' => :'Integer', :'qos_custom_pol_count' => :'Integer', :'record_type' => :'String', :'record_version' => :'String', :'site_name' => :'String', :'ssm' => :'String', :'ssm_count' => :'Integer', :'tcam_opt_count' => :'Integer', :'trace_route_ep_count' => :'Integer', :'trace_route_ep_ext_count' => :'Integer', :'trace_route_ext_ep_count' => :'Integer', :'trace_route_ext_ext_count' => :'Integer', :'vns_abs_graph_count' => :'Integer', :'vns_backup_pol_count' => :'Integer', :'vns_redirect_dest_count' => :'Integer', :'vns_svc_redirect_pol_count' => :'Integer', :'vrf_count' => :'Integer', :'vz_br_cp_count' => :'Integer', :'vz_rt_cons_count' => :'Integer', :'vz_rt_prov_count' => :'Integer', :'registered_device' => :'AssetDeviceRegistrationRelationship' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 506 def ==(o) return true if self.equal?(o) self.class == o.class && class_id == o.class_id && object_type == o.object_type && bfd_if_pol_count == o.bfd_if_pol_count && bfd_ifp_count == o.bfd_ifp_count && dhcp_rs_prov_count == o.dhcp_rs_prov_count && dn == o.dn && fhs_bd_pol_count == o.fhs_bd_pol_count && fv_ap_count == o.fv_ap_count && fv_bd_count == o.fv_bd_count && fv_bd_subnet_count == o.fv_bd_subnet_count && fv_bdno_arp_count == o.fv_bdno_arp_count && fv_cep_count == o.fv_cep_count && fv_rs_bd_to_fhs_count == o.fv_rs_bd_to_fhs_count && fv_rs_bd_to_out_count == o.fv_rs_bd_to_out_count && fv_site_connp_count == o.fv_site_connp_count && fv_subnet_count == o.fv_subnet_count && ip_static_route_count == o.ip_static_route_count && l3_multicast_count == o.l3_multicast_count && l3_multicast_ctx_count == o.l3_multicast_ctx_count && l3_multicast_if_count == o.l3_multicast_if_count && l3out_count == o.l3out_count && qos_custom_pol_count == o.qos_custom_pol_count && record_type == o.record_type && record_version == o.record_version && site_name == o.site_name && ssm == o.ssm && ssm_count == o.ssm_count && tcam_opt_count == o.tcam_opt_count && trace_route_ep_count == o.trace_route_ep_count && trace_route_ep_ext_count == o.trace_route_ep_ext_count && trace_route_ext_ep_count == o.trace_route_ext_ep_count && trace_route_ext_ext_count == o.trace_route_ext_ext_count && vns_abs_graph_count == o.vns_abs_graph_count && vns_backup_pol_count == o.vns_backup_pol_count && vns_redirect_dest_count == o.vns_redirect_dest_count && vns_svc_redirect_pol_count == o.vns_svc_redirect_pol_count && vrf_count == o.vrf_count && vz_br_cp_count == o.vz_br_cp_count && vz_rt_cons_count == o.vz_rt_cons_count && vz_rt_prov_count == o.vz_rt_prov_count && registered_device == o.registered_device end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 597 def _deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = IntersightClient.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
668 669 670 671 672 673 674 675 676 677 678 679 680 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 668 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 574 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) NiatelemetryTenantAllOf.openapi_types.each_pair do |key, type| if attributes[NiatelemetryTenantAllOf.attribute_map[key]].nil? && NiatelemetryTenantAllOf.openapi_nullable.include?(key) self.send("#{key}=", nil) elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[NiatelemetryTenantAllOf.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[NiatelemetryTenantAllOf.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[NiatelemetryTenantAllOf.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[NiatelemetryTenantAllOf.attribute_map[key]])) end end self end |
#eql?(o) ⇒ Boolean
554 555 556 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 554 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
560 561 562 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 560 def hash [class_id, object_type, bfd_if_pol_count, bfd_ifp_count, dhcp_rs_prov_count, dn, fhs_bd_pol_count, fv_ap_count, fv_bd_count, fv_bd_subnet_count, fv_bdno_arp_count, fv_cep_count, fv_rs_bd_to_fhs_count, fv_rs_bd_to_out_count, fv_site_connp_count, fv_subnet_count, ip_static_route_count, l3_multicast_count, l3_multicast_ctx_count, l3_multicast_if_count, l3out_count, qos_custom_pol_count, record_type, record_version, site_name, ssm, ssm_count, tcam_opt_count, trace_route_ep_count, trace_route_ep_ext_count, trace_route_ext_ep_count, trace_route_ext_ext_count, vns_abs_graph_count, vns_backup_pol_count, vns_redirect_dest_count, vns_svc_redirect_pol_count, vrf_count, vz_br_cp_count, vz_rt_cons_count, vz_rt_prov_count, registered_device].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
459 460 461 462 463 464 465 466 467 468 469 470 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 459 def list_invalid_properties invalid_properties = Array.new if @class_id.nil? invalid_properties.push('invalid value for "class_id", class_id cannot be nil.') end if @object_type.nil? invalid_properties.push('invalid value for "object_type", object_type cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
644 645 646 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 644 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
650 651 652 653 654 655 656 657 658 659 660 661 662 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 650 def to_hash hash = {} NiatelemetryTenantAllOf.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = NiatelemetryTenantAllOf.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
638 639 640 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 638 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
474 475 476 477 478 479 480 481 482 |
# File 'lib/intersight_client/models/niatelemetry_tenant_all_of.rb', line 474 def valid? return false if @class_id.nil? class_id_validator = EnumAttributeValidator.new('String', ["niatelemetry.Tenant"]) return false unless class_id_validator.valid?(@class_id) return false if @object_type.nil? object_type_validator = EnumAttributeValidator.new('String', ["niatelemetry.Tenant"]) return false unless object_type_validator.valid?(@object_type) true end |