1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 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 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 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 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 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 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869
|
# coding: utf-8
"""
CLOUD API
IONOS Enterprise-grade Infrastructure as a Service (IaaS) solutions can be managed through the Cloud API, in addition or as an alternative to the \"Data Center Designer\" (DCD) browser-based tool. Both methods employ consistent concepts and features, deliver similar power and flexibility, and can be used to perform a multitude of management tasks, including adding servers, volumes, configuring networks, and so on. # noqa: E501
The version of the OpenAPI document: 6.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from ionoscloud.configuration import Configuration
class ResourceLimits(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
openapi_types = {
'cores_per_server': 'int',
'cores_per_contract': 'int',
'cores_provisioned': 'int',
'ram_per_server': 'int',
'ram_per_contract': 'int',
'ram_provisioned': 'int',
'hdd_limit_per_volume': 'int',
'hdd_limit_per_contract': 'int',
'hdd_volume_provisioned': 'int',
'ssd_limit_per_volume': 'int',
'ssd_limit_per_contract': 'int',
'ssd_volume_provisioned': 'int',
'das_volume_provisioned': 'int',
'reservable_ips': 'int',
'reserved_ips_on_contract': 'int',
'reserved_ips_in_use': 'int',
'k8s_cluster_limit_total': 'int',
'k8s_clusters_provisioned': 'int',
'nlb_limit_total': 'int',
'nlb_provisioned': 'int',
'nat_gateway_limit_total': 'int',
'nat_gateway_provisioned': 'int',
'security_groups_per_vdc': 'int',
'security_groups_per_resource': 'int',
'rules_per_security_group': 'int',
}
attribute_map = {
'cores_per_server': 'coresPerServer',
'cores_per_contract': 'coresPerContract',
'cores_provisioned': 'coresProvisioned',
'ram_per_server': 'ramPerServer',
'ram_per_contract': 'ramPerContract',
'ram_provisioned': 'ramProvisioned',
'hdd_limit_per_volume': 'hddLimitPerVolume',
'hdd_limit_per_contract': 'hddLimitPerContract',
'hdd_volume_provisioned': 'hddVolumeProvisioned',
'ssd_limit_per_volume': 'ssdLimitPerVolume',
'ssd_limit_per_contract': 'ssdLimitPerContract',
'ssd_volume_provisioned': 'ssdVolumeProvisioned',
'das_volume_provisioned': 'dasVolumeProvisioned',
'reservable_ips': 'reservableIps',
'reserved_ips_on_contract': 'reservedIpsOnContract',
'reserved_ips_in_use': 'reservedIpsInUse',
'k8s_cluster_limit_total': 'k8sClusterLimitTotal',
'k8s_clusters_provisioned': 'k8sClustersProvisioned',
'nlb_limit_total': 'nlbLimitTotal',
'nlb_provisioned': 'nlbProvisioned',
'nat_gateway_limit_total': 'natGatewayLimitTotal',
'nat_gateway_provisioned': 'natGatewayProvisioned',
'security_groups_per_vdc': 'securityGroupsPerVdc',
'security_groups_per_resource': 'securityGroupsPerResource',
'rules_per_security_group': 'rulesPerSecurityGroup',
}
def __init__(self, cores_per_server=None, cores_per_contract=None, cores_provisioned=None, ram_per_server=None, ram_per_contract=None, ram_provisioned=None, hdd_limit_per_volume=None, hdd_limit_per_contract=None, hdd_volume_provisioned=None, ssd_limit_per_volume=None, ssd_limit_per_contract=None, ssd_volume_provisioned=None, das_volume_provisioned=None, reservable_ips=None, reserved_ips_on_contract=None, reserved_ips_in_use=None, k8s_cluster_limit_total=None, k8s_clusters_provisioned=None, nlb_limit_total=None, nlb_provisioned=None, nat_gateway_limit_total=None, nat_gateway_provisioned=None, security_groups_per_vdc=None, security_groups_per_resource=None, rules_per_security_group=None, local_vars_configuration=None): # noqa: E501
"""ResourceLimits - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._cores_per_server = None
self._cores_per_contract = None
self._cores_provisioned = None
self._ram_per_server = None
self._ram_per_contract = None
self._ram_provisioned = None
self._hdd_limit_per_volume = None
self._hdd_limit_per_contract = None
self._hdd_volume_provisioned = None
self._ssd_limit_per_volume = None
self._ssd_limit_per_contract = None
self._ssd_volume_provisioned = None
self._das_volume_provisioned = None
self._reservable_ips = None
self._reserved_ips_on_contract = None
self._reserved_ips_in_use = None
self._k8s_cluster_limit_total = None
self._k8s_clusters_provisioned = None
self._nlb_limit_total = None
self._nlb_provisioned = None
self._nat_gateway_limit_total = None
self._nat_gateway_provisioned = None
self._security_groups_per_vdc = None
self._security_groups_per_resource = None
self._rules_per_security_group = None
self.discriminator = None
self.cores_per_server = cores_per_server
self.cores_per_contract = cores_per_contract
self.cores_provisioned = cores_provisioned
self.ram_per_server = ram_per_server
self.ram_per_contract = ram_per_contract
self.ram_provisioned = ram_provisioned
self.hdd_limit_per_volume = hdd_limit_per_volume
self.hdd_limit_per_contract = hdd_limit_per_contract
self.hdd_volume_provisioned = hdd_volume_provisioned
self.ssd_limit_per_volume = ssd_limit_per_volume
self.ssd_limit_per_contract = ssd_limit_per_contract
self.ssd_volume_provisioned = ssd_volume_provisioned
self.das_volume_provisioned = das_volume_provisioned
self.reservable_ips = reservable_ips
self.reserved_ips_on_contract = reserved_ips_on_contract
self.reserved_ips_in_use = reserved_ips_in_use
self.k8s_cluster_limit_total = k8s_cluster_limit_total
self.k8s_clusters_provisioned = k8s_clusters_provisioned
self.nlb_limit_total = nlb_limit_total
self.nlb_provisioned = nlb_provisioned
self.nat_gateway_limit_total = nat_gateway_limit_total
self.nat_gateway_provisioned = nat_gateway_provisioned
self.security_groups_per_vdc = security_groups_per_vdc
self.security_groups_per_resource = security_groups_per_resource
self.rules_per_security_group = rules_per_security_group
@property
def cores_per_server(self):
"""Gets the cores_per_server of this ResourceLimits. # noqa: E501
The maximum number of CPU cores per server. # noqa: E501
:return: The cores_per_server of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._cores_per_server
@cores_per_server.setter
def cores_per_server(self, cores_per_server):
"""Sets the cores_per_server of this ResourceLimits.
The maximum number of CPU cores per server. # noqa: E501
:param cores_per_server: The cores_per_server of this ResourceLimits. # noqa: E501
:type cores_per_server: int
"""
if self.local_vars_configuration.client_side_validation and cores_per_server is None: # noqa: E501
raise ValueError("Invalid value for `cores_per_server`, must not be `None`") # noqa: E501
self._cores_per_server = cores_per_server
@property
def cores_per_contract(self):
"""Gets the cores_per_contract of this ResourceLimits. # noqa: E501
The maximum number of CPU cores per contract. # noqa: E501
:return: The cores_per_contract of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._cores_per_contract
@cores_per_contract.setter
def cores_per_contract(self, cores_per_contract):
"""Sets the cores_per_contract of this ResourceLimits.
The maximum number of CPU cores per contract. # noqa: E501
:param cores_per_contract: The cores_per_contract of this ResourceLimits. # noqa: E501
:type cores_per_contract: int
"""
if self.local_vars_configuration.client_side_validation and cores_per_contract is None: # noqa: E501
raise ValueError("Invalid value for `cores_per_contract`, must not be `None`") # noqa: E501
self._cores_per_contract = cores_per_contract
@property
def cores_provisioned(self):
"""Gets the cores_provisioned of this ResourceLimits. # noqa: E501
The number of CPU cores provisioned. # noqa: E501
:return: The cores_provisioned of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._cores_provisioned
@cores_provisioned.setter
def cores_provisioned(self, cores_provisioned):
"""Sets the cores_provisioned of this ResourceLimits.
The number of CPU cores provisioned. # noqa: E501
:param cores_provisioned: The cores_provisioned of this ResourceLimits. # noqa: E501
:type cores_provisioned: int
"""
if self.local_vars_configuration.client_side_validation and cores_provisioned is None: # noqa: E501
raise ValueError("Invalid value for `cores_provisioned`, must not be `None`") # noqa: E501
self._cores_provisioned = cores_provisioned
@property
def ram_per_server(self):
"""Gets the ram_per_server of this ResourceLimits. # noqa: E501
The maximum amount of RAM (in MB) that can be provisioned for a particular server under this contract. # noqa: E501
:return: The ram_per_server of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._ram_per_server
@ram_per_server.setter
def ram_per_server(self, ram_per_server):
"""Sets the ram_per_server of this ResourceLimits.
The maximum amount of RAM (in MB) that can be provisioned for a particular server under this contract. # noqa: E501
:param ram_per_server: The ram_per_server of this ResourceLimits. # noqa: E501
:type ram_per_server: int
"""
if self.local_vars_configuration.client_side_validation and ram_per_server is None: # noqa: E501
raise ValueError("Invalid value for `ram_per_server`, must not be `None`") # noqa: E501
self._ram_per_server = ram_per_server
@property
def ram_per_contract(self):
"""Gets the ram_per_contract of this ResourceLimits. # noqa: E501
The maximum amount of RAM (in MB) that can be provisioned under this contract. # noqa: E501
:return: The ram_per_contract of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._ram_per_contract
@ram_per_contract.setter
def ram_per_contract(self, ram_per_contract):
"""Sets the ram_per_contract of this ResourceLimits.
The maximum amount of RAM (in MB) that can be provisioned under this contract. # noqa: E501
:param ram_per_contract: The ram_per_contract of this ResourceLimits. # noqa: E501
:type ram_per_contract: int
"""
if self.local_vars_configuration.client_side_validation and ram_per_contract is None: # noqa: E501
raise ValueError("Invalid value for `ram_per_contract`, must not be `None`") # noqa: E501
self._ram_per_contract = ram_per_contract
@property
def ram_provisioned(self):
"""Gets the ram_provisioned of this ResourceLimits. # noqa: E501
The amount of RAM (in MB) provisioned under this contract. # noqa: E501
:return: The ram_provisioned of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._ram_provisioned
@ram_provisioned.setter
def ram_provisioned(self, ram_provisioned):
"""Sets the ram_provisioned of this ResourceLimits.
The amount of RAM (in MB) provisioned under this contract. # noqa: E501
:param ram_provisioned: The ram_provisioned of this ResourceLimits. # noqa: E501
:type ram_provisioned: int
"""
if self.local_vars_configuration.client_side_validation and ram_provisioned is None: # noqa: E501
raise ValueError("Invalid value for `ram_provisioned`, must not be `None`") # noqa: E501
self._ram_provisioned = ram_provisioned
@property
def hdd_limit_per_volume(self):
"""Gets the hdd_limit_per_volume of this ResourceLimits. # noqa: E501
The maximum size (in MB) of an idividual hard disk volume. # noqa: E501
:return: The hdd_limit_per_volume of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._hdd_limit_per_volume
@hdd_limit_per_volume.setter
def hdd_limit_per_volume(self, hdd_limit_per_volume):
"""Sets the hdd_limit_per_volume of this ResourceLimits.
The maximum size (in MB) of an idividual hard disk volume. # noqa: E501
:param hdd_limit_per_volume: The hdd_limit_per_volume of this ResourceLimits. # noqa: E501
:type hdd_limit_per_volume: int
"""
if self.local_vars_configuration.client_side_validation and hdd_limit_per_volume is None: # noqa: E501
raise ValueError("Invalid value for `hdd_limit_per_volume`, must not be `None`") # noqa: E501
self._hdd_limit_per_volume = hdd_limit_per_volume
@property
def hdd_limit_per_contract(self):
"""Gets the hdd_limit_per_contract of this ResourceLimits. # noqa: E501
The maximum amount of disk space (in MB) that can be provided under this contract. # noqa: E501
:return: The hdd_limit_per_contract of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._hdd_limit_per_contract
@hdd_limit_per_contract.setter
def hdd_limit_per_contract(self, hdd_limit_per_contract):
"""Sets the hdd_limit_per_contract of this ResourceLimits.
The maximum amount of disk space (in MB) that can be provided under this contract. # noqa: E501
:param hdd_limit_per_contract: The hdd_limit_per_contract of this ResourceLimits. # noqa: E501
:type hdd_limit_per_contract: int
"""
if self.local_vars_configuration.client_side_validation and hdd_limit_per_contract is None: # noqa: E501
raise ValueError("Invalid value for `hdd_limit_per_contract`, must not be `None`") # noqa: E501
self._hdd_limit_per_contract = hdd_limit_per_contract
@property
def hdd_volume_provisioned(self):
"""Gets the hdd_volume_provisioned of this ResourceLimits. # noqa: E501
The amount of hard disk space (in MB) that is currently provisioned. # noqa: E501
:return: The hdd_volume_provisioned of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._hdd_volume_provisioned
@hdd_volume_provisioned.setter
def hdd_volume_provisioned(self, hdd_volume_provisioned):
"""Sets the hdd_volume_provisioned of this ResourceLimits.
The amount of hard disk space (in MB) that is currently provisioned. # noqa: E501
:param hdd_volume_provisioned: The hdd_volume_provisioned of this ResourceLimits. # noqa: E501
:type hdd_volume_provisioned: int
"""
if self.local_vars_configuration.client_side_validation and hdd_volume_provisioned is None: # noqa: E501
raise ValueError("Invalid value for `hdd_volume_provisioned`, must not be `None`") # noqa: E501
self._hdd_volume_provisioned = hdd_volume_provisioned
@property
def ssd_limit_per_volume(self):
"""Gets the ssd_limit_per_volume of this ResourceLimits. # noqa: E501
The maximum size (in MB) of an individual solid state disk volume. # noqa: E501
:return: The ssd_limit_per_volume of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._ssd_limit_per_volume
@ssd_limit_per_volume.setter
def ssd_limit_per_volume(self, ssd_limit_per_volume):
"""Sets the ssd_limit_per_volume of this ResourceLimits.
The maximum size (in MB) of an individual solid state disk volume. # noqa: E501
:param ssd_limit_per_volume: The ssd_limit_per_volume of this ResourceLimits. # noqa: E501
:type ssd_limit_per_volume: int
"""
if self.local_vars_configuration.client_side_validation and ssd_limit_per_volume is None: # noqa: E501
raise ValueError("Invalid value for `ssd_limit_per_volume`, must not be `None`") # noqa: E501
self._ssd_limit_per_volume = ssd_limit_per_volume
@property
def ssd_limit_per_contract(self):
"""Gets the ssd_limit_per_contract of this ResourceLimits. # noqa: E501
The maximum amount of solid state disk space (in MB) that can be provisioned under this contract. # noqa: E501
:return: The ssd_limit_per_contract of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._ssd_limit_per_contract
@ssd_limit_per_contract.setter
def ssd_limit_per_contract(self, ssd_limit_per_contract):
"""Sets the ssd_limit_per_contract of this ResourceLimits.
The maximum amount of solid state disk space (in MB) that can be provisioned under this contract. # noqa: E501
:param ssd_limit_per_contract: The ssd_limit_per_contract of this ResourceLimits. # noqa: E501
:type ssd_limit_per_contract: int
"""
if self.local_vars_configuration.client_side_validation and ssd_limit_per_contract is None: # noqa: E501
raise ValueError("Invalid value for `ssd_limit_per_contract`, must not be `None`") # noqa: E501
self._ssd_limit_per_contract = ssd_limit_per_contract
@property
def ssd_volume_provisioned(self):
"""Gets the ssd_volume_provisioned of this ResourceLimits. # noqa: E501
The amount of solid state disk space (in MB) that is currently provisioned. # noqa: E501
:return: The ssd_volume_provisioned of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._ssd_volume_provisioned
@ssd_volume_provisioned.setter
def ssd_volume_provisioned(self, ssd_volume_provisioned):
"""Sets the ssd_volume_provisioned of this ResourceLimits.
The amount of solid state disk space (in MB) that is currently provisioned. # noqa: E501
:param ssd_volume_provisioned: The ssd_volume_provisioned of this ResourceLimits. # noqa: E501
:type ssd_volume_provisioned: int
"""
if self.local_vars_configuration.client_side_validation and ssd_volume_provisioned is None: # noqa: E501
raise ValueError("Invalid value for `ssd_volume_provisioned`, must not be `None`") # noqa: E501
self._ssd_volume_provisioned = ssd_volume_provisioned
@property
def das_volume_provisioned(self):
"""Gets the das_volume_provisioned of this ResourceLimits. # noqa: E501
The amount of DAS disk space (in MB) in a Cube server that is currently provisioned. # noqa: E501
:return: The das_volume_provisioned of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._das_volume_provisioned
@das_volume_provisioned.setter
def das_volume_provisioned(self, das_volume_provisioned):
"""Sets the das_volume_provisioned of this ResourceLimits.
The amount of DAS disk space (in MB) in a Cube server that is currently provisioned. # noqa: E501
:param das_volume_provisioned: The das_volume_provisioned of this ResourceLimits. # noqa: E501
:type das_volume_provisioned: int
"""
if self.local_vars_configuration.client_side_validation and das_volume_provisioned is None: # noqa: E501
raise ValueError("Invalid value for `das_volume_provisioned`, must not be `None`") # noqa: E501
self._das_volume_provisioned = das_volume_provisioned
@property
def reservable_ips(self):
"""Gets the reservable_ips of this ResourceLimits. # noqa: E501
The maximum number of static public IP addresses that can be reserved by this customer across contracts. # noqa: E501
:return: The reservable_ips of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._reservable_ips
@reservable_ips.setter
def reservable_ips(self, reservable_ips):
"""Sets the reservable_ips of this ResourceLimits.
The maximum number of static public IP addresses that can be reserved by this customer across contracts. # noqa: E501
:param reservable_ips: The reservable_ips of this ResourceLimits. # noqa: E501
:type reservable_ips: int
"""
if self.local_vars_configuration.client_side_validation and reservable_ips is None: # noqa: E501
raise ValueError("Invalid value for `reservable_ips`, must not be `None`") # noqa: E501
self._reservable_ips = reservable_ips
@property
def reserved_ips_on_contract(self):
"""Gets the reserved_ips_on_contract of this ResourceLimits. # noqa: E501
The maximum number of static public IP addresses that can be reserved for this contract. # noqa: E501
:return: The reserved_ips_on_contract of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._reserved_ips_on_contract
@reserved_ips_on_contract.setter
def reserved_ips_on_contract(self, reserved_ips_on_contract):
"""Sets the reserved_ips_on_contract of this ResourceLimits.
The maximum number of static public IP addresses that can be reserved for this contract. # noqa: E501
:param reserved_ips_on_contract: The reserved_ips_on_contract of this ResourceLimits. # noqa: E501
:type reserved_ips_on_contract: int
"""
if self.local_vars_configuration.client_side_validation and reserved_ips_on_contract is None: # noqa: E501
raise ValueError("Invalid value for `reserved_ips_on_contract`, must not be `None`") # noqa: E501
self._reserved_ips_on_contract = reserved_ips_on_contract
@property
def reserved_ips_in_use(self):
"""Gets the reserved_ips_in_use of this ResourceLimits. # noqa: E501
The number of static public IP addresses in use. # noqa: E501
:return: The reserved_ips_in_use of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._reserved_ips_in_use
@reserved_ips_in_use.setter
def reserved_ips_in_use(self, reserved_ips_in_use):
"""Sets the reserved_ips_in_use of this ResourceLimits.
The number of static public IP addresses in use. # noqa: E501
:param reserved_ips_in_use: The reserved_ips_in_use of this ResourceLimits. # noqa: E501
:type reserved_ips_in_use: int
"""
if self.local_vars_configuration.client_side_validation and reserved_ips_in_use is None: # noqa: E501
raise ValueError("Invalid value for `reserved_ips_in_use`, must not be `None`") # noqa: E501
self._reserved_ips_in_use = reserved_ips_in_use
@property
def k8s_cluster_limit_total(self):
"""Gets the k8s_cluster_limit_total of this ResourceLimits. # noqa: E501
The maximum number of Kubernetes clusters that can be created under this contract. # noqa: E501
:return: The k8s_cluster_limit_total of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._k8s_cluster_limit_total
@k8s_cluster_limit_total.setter
def k8s_cluster_limit_total(self, k8s_cluster_limit_total):
"""Sets the k8s_cluster_limit_total of this ResourceLimits.
The maximum number of Kubernetes clusters that can be created under this contract. # noqa: E501
:param k8s_cluster_limit_total: The k8s_cluster_limit_total of this ResourceLimits. # noqa: E501
:type k8s_cluster_limit_total: int
"""
if self.local_vars_configuration.client_side_validation and k8s_cluster_limit_total is None: # noqa: E501
raise ValueError("Invalid value for `k8s_cluster_limit_total`, must not be `None`") # noqa: E501
self._k8s_cluster_limit_total = k8s_cluster_limit_total
@property
def k8s_clusters_provisioned(self):
"""Gets the k8s_clusters_provisioned of this ResourceLimits. # noqa: E501
The amount of Kubernetes clusters that is currently provisioned. # noqa: E501
:return: The k8s_clusters_provisioned of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._k8s_clusters_provisioned
@k8s_clusters_provisioned.setter
def k8s_clusters_provisioned(self, k8s_clusters_provisioned):
"""Sets the k8s_clusters_provisioned of this ResourceLimits.
The amount of Kubernetes clusters that is currently provisioned. # noqa: E501
:param k8s_clusters_provisioned: The k8s_clusters_provisioned of this ResourceLimits. # noqa: E501
:type k8s_clusters_provisioned: int
"""
if self.local_vars_configuration.client_side_validation and k8s_clusters_provisioned is None: # noqa: E501
raise ValueError("Invalid value for `k8s_clusters_provisioned`, must not be `None`") # noqa: E501
self._k8s_clusters_provisioned = k8s_clusters_provisioned
@property
def nlb_limit_total(self):
"""Gets the nlb_limit_total of this ResourceLimits. # noqa: E501
The NLB total limit. # noqa: E501
:return: The nlb_limit_total of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._nlb_limit_total
@nlb_limit_total.setter
def nlb_limit_total(self, nlb_limit_total):
"""Sets the nlb_limit_total of this ResourceLimits.
The NLB total limit. # noqa: E501
:param nlb_limit_total: The nlb_limit_total of this ResourceLimits. # noqa: E501
:type nlb_limit_total: int
"""
if self.local_vars_configuration.client_side_validation and nlb_limit_total is None: # noqa: E501
raise ValueError("Invalid value for `nlb_limit_total`, must not be `None`") # noqa: E501
self._nlb_limit_total = nlb_limit_total
@property
def nlb_provisioned(self):
"""Gets the nlb_provisioned of this ResourceLimits. # noqa: E501
The NLBs provisioned. # noqa: E501
:return: The nlb_provisioned of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._nlb_provisioned
@nlb_provisioned.setter
def nlb_provisioned(self, nlb_provisioned):
"""Sets the nlb_provisioned of this ResourceLimits.
The NLBs provisioned. # noqa: E501
:param nlb_provisioned: The nlb_provisioned of this ResourceLimits. # noqa: E501
:type nlb_provisioned: int
"""
if self.local_vars_configuration.client_side_validation and nlb_provisioned is None: # noqa: E501
raise ValueError("Invalid value for `nlb_provisioned`, must not be `None`") # noqa: E501
self._nlb_provisioned = nlb_provisioned
@property
def nat_gateway_limit_total(self):
"""Gets the nat_gateway_limit_total of this ResourceLimits. # noqa: E501
The NAT Gateway total limit. # noqa: E501
:return: The nat_gateway_limit_total of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._nat_gateway_limit_total
@nat_gateway_limit_total.setter
def nat_gateway_limit_total(self, nat_gateway_limit_total):
"""Sets the nat_gateway_limit_total of this ResourceLimits.
The NAT Gateway total limit. # noqa: E501
:param nat_gateway_limit_total: The nat_gateway_limit_total of this ResourceLimits. # noqa: E501
:type nat_gateway_limit_total: int
"""
if self.local_vars_configuration.client_side_validation and nat_gateway_limit_total is None: # noqa: E501
raise ValueError("Invalid value for `nat_gateway_limit_total`, must not be `None`") # noqa: E501
self._nat_gateway_limit_total = nat_gateway_limit_total
@property
def nat_gateway_provisioned(self):
"""Gets the nat_gateway_provisioned of this ResourceLimits. # noqa: E501
The NAT Gateways provisioned. # noqa: E501
:return: The nat_gateway_provisioned of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._nat_gateway_provisioned
@nat_gateway_provisioned.setter
def nat_gateway_provisioned(self, nat_gateway_provisioned):
"""Sets the nat_gateway_provisioned of this ResourceLimits.
The NAT Gateways provisioned. # noqa: E501
:param nat_gateway_provisioned: The nat_gateway_provisioned of this ResourceLimits. # noqa: E501
:type nat_gateway_provisioned: int
"""
if self.local_vars_configuration.client_side_validation and nat_gateway_provisioned is None: # noqa: E501
raise ValueError("Invalid value for `nat_gateway_provisioned`, must not be `None`") # noqa: E501
self._nat_gateway_provisioned = nat_gateway_provisioned
@property
def security_groups_per_vdc(self):
"""Gets the security_groups_per_vdc of this ResourceLimits. # noqa: E501
The maximum number of security groups per VDC. # noqa: E501
:return: The security_groups_per_vdc of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._security_groups_per_vdc
@security_groups_per_vdc.setter
def security_groups_per_vdc(self, security_groups_per_vdc):
"""Sets the security_groups_per_vdc of this ResourceLimits.
The maximum number of security groups per VDC. # noqa: E501
:param security_groups_per_vdc: The security_groups_per_vdc of this ResourceLimits. # noqa: E501
:type security_groups_per_vdc: int
"""
if self.local_vars_configuration.client_side_validation and security_groups_per_vdc is None: # noqa: E501
raise ValueError("Invalid value for `security_groups_per_vdc`, must not be `None`") # noqa: E501
self._security_groups_per_vdc = security_groups_per_vdc
@property
def security_groups_per_resource(self):
"""Gets the security_groups_per_resource of this ResourceLimits. # noqa: E501
The maximum number of security groups that can be attached to a NIC or a VM individually. For example, a user can have maximum 10 security groups per NIC and 10 per VM. # noqa: E501
:return: The security_groups_per_resource of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._security_groups_per_resource
@security_groups_per_resource.setter
def security_groups_per_resource(self, security_groups_per_resource):
"""Sets the security_groups_per_resource of this ResourceLimits.
The maximum number of security groups that can be attached to a NIC or a VM individually. For example, a user can have maximum 10 security groups per NIC and 10 per VM. # noqa: E501
:param security_groups_per_resource: The security_groups_per_resource of this ResourceLimits. # noqa: E501
:type security_groups_per_resource: int
"""
if self.local_vars_configuration.client_side_validation and security_groups_per_resource is None: # noqa: E501
raise ValueError("Invalid value for `security_groups_per_resource`, must not be `None`") # noqa: E501
self._security_groups_per_resource = security_groups_per_resource
@property
def rules_per_security_group(self):
"""Gets the rules_per_security_group of this ResourceLimits. # noqa: E501
The maximum number of rules per security group. # noqa: E501
:return: The rules_per_security_group of this ResourceLimits. # noqa: E501
:rtype: int
"""
return self._rules_per_security_group
@rules_per_security_group.setter
def rules_per_security_group(self, rules_per_security_group):
"""Sets the rules_per_security_group of this ResourceLimits.
The maximum number of rules per security group. # noqa: E501
:param rules_per_security_group: The rules_per_security_group of this ResourceLimits. # noqa: E501
:type rules_per_security_group: int
"""
if self.local_vars_configuration.client_side_validation and rules_per_security_group is None: # noqa: E501
raise ValueError("Invalid value for `rules_per_security_group`, must not be `None`") # noqa: E501
self._rules_per_security_group = rules_per_security_group
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, ResourceLimits):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, ResourceLimits):
return True
return self.to_dict() != other.to_dict()
|