# -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.
[docs]class FleetNetworkParams(object):
"""Implementation of the 'FleetNetworkParams' model.
Specifies the various network params for the fleet.
Attributes:
region (string): Specifies the region for the fleet.
subnet (string): Specifies the subnet for the fleet.
vpc (string): Specifies the vpc for the fleet.
"""
# Create a mapping from Model property names to API property names
_names = {
"region":'region',
"subnet":'subnet',
"vpc":'vpc'
}
def __init__(self,
region=None,
subnet=None,
vpc=None):
"""Constructor for the FleetNetworkParams class"""
# Initialize members of the class
self.region = region
self.subnet = subnet
self.vpc = vpc
[docs] @classmethod
def from_dictionary(cls,
dictionary):
"""Creates an instance of this model from a dictionary
Args:
dictionary (dictionary): A dictionary representation of the object as
obtained from the deserialization of the server's response. The keys
MUST match property names in the API description.
Returns:
object: An instance of this structure class.
"""
if dictionary is None:
return None
# Extract variables from the dictionary
region = dictionary.get('region')
subnet = dictionary.get('subnet', None)
vpc = dictionary.get('vpc', None)
# Return an object of this model
return cls(region, subnet, vpc)