def __init__(self, tick_sizes=None, _configuration=None): # noqa: E501 """TickSizesModel - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._tick_sizes = None self.discriminator = None if tick_sizes is not None: self.tick_sizes = tick_sizes
def __init__(self, orders=None, _configuration=None): # noqa: E501 """OrdersCollectionModel - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._orders = None self.discriminator = None if orders is not None: self.orders = orders
def __init__(self, cash_balances=None, _configuration=None): # noqa: E501 """CashBalancesCollectionModel - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._cash_balances = None self.discriminator = None if cash_balances is not None: self.cash_balances = cash_balances
def __init__(self, zones=None, _configuration=None): # noqa: E501 """PowerZoneRanges - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._zones = None self.discriminator = None if zones is not None: self.zones = zones
def __init__(self, mutation_group=None, _configuration=None): # noqa: E501 """MutationGroupQueryParams - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._mutation_group = None self.discriminator = None if mutation_group is not None: self.mutation_group = mutation_group
def __init__(self, value=None, _configuration=None): # noqa: E501 """DecimalValue - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._value = None self.discriminator = None if value is not None: self.value = value
def __init__(self, data=None, _configuration=None): # noqa: E501 """DistanceStream - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._data = None self.discriminator = None if data is not None: self.data = data
def __init__(self, accounts=None, _configuration=None): # noqa: E501 """AccountsCollectionModel - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._accounts = None self.discriminator = None if accounts is not None: self.accounts = accounts
def __init__(self, content_url=None, _configuration=None): # noqa: E501 """FileLinks - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._content_url = None self.discriminator = None if content_url is not None: self.content_url = content_url
def __init__(self, elements=None, _configuration=None): # noqa: E501 """OrderRequest - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._elements = None self.discriminator = None if elements is not None: self.elements = elements
def __init__(self, performances=None, _configuration=None): # noqa: E501 """PerformanceCollectionModel - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._performances = None self.discriminator = None if performances is not None: self.performances = performances
def __init__(self, positions_collection=None, metadata=None, _configuration=None): # noqa: E501 """PositionResponse - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._positions_collection = None self._metadata = None self.discriminator = None self.positions_collection = positions_collection self.metadata = metadata
def initialize(self, config): self.run_number = config.run_number self.application = config.get_param(Cluster.APPLICATION) self.size = Distribution(config.get_param(Cluster.SIZE)) self.offer = Distribution(config.get_param(Cluster.OFFER)) self.resource = config.get_param(Cluster.RESOURCE) self.resource_scale = int(config.get_param(Cluster.RESOURCE_SCALE)) Configuration().host = config.get_param(Cluster.ENDPOINT) self.api = swagger_client.DeploymentsApi() self.nodes_api = swagger_client.NodesApi() self.index = 0
def __init__(self, historical_quotes=None, _configuration=None): # noqa: E501 """HistoricalQuotesCollectionModel - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._historical_quotes = None self.discriminator = None self.historical_quotes = historical_quotes
def __init__(self, parameter_info_list=None, _configuration=None): # noqa: E501 """MeasureParameterInfoList - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._parameter_info_list = None self.discriminator = None self.parameter_info_list = parameter_info_list
def __init__(self, target_subscription_key=None, _configuration=None): # noqa: E501 """ModelCopy - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._target_subscription_key = None self.discriminator = None self.target_subscription_key = target_subscription_key
def __init__(self, trading_allowed=None, _configuration=None): # noqa: E501 """SettingsModel - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._trading_allowed = None self.discriminator = None self.trading_allowed = trading_allowed
def __init__(self, year=None, month=None, _configuration=None): # noqa: E501 """HistoricalOrdersQueryParams - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._year = None self._month = None self.discriminator = None self.year = year self.month = month
def __init__(self, count=None, condition=None, _configuration=None): # noqa: E501 """OfferListingCountType - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._count = None self._condition = None self.discriminator = None self.count = count self.condition = condition
def __init__(self, id=None, name=None, taggings=None, discoverable_taggings=None, mature=None, suggestable=None, canonical=None, relatable=None, deleted=None, child_count=None, parent_name=None, _configuration=None): # noqa: E501 """TagResult - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._id = None self._name = None self._taggings = None self._discoverable_taggings = None self._mature = None self._suggestable = None self._canonical = None self._relatable = None self._deleted = None self._child_count = None self._parent_name = None self.discriminator = None if id is not None: self.id = id if name is not None: self.name = name if taggings is not None: self.taggings = taggings if discoverable_taggings is not None: self.discoverable_taggings = discoverable_taggings if mature is not None: self.mature = mature if suggestable is not None: self.suggestable = suggestable if canonical is not None: self.canonical = canonical if relatable is not None: self.relatable = relatable if deleted is not None: self.deleted = deleted if child_count is not None: self.child_count = child_count if parent_name is not None: self.parent_name = parent_name
def __init__(self, id=None, name=None, _configuration=None): # noqa: E501 """InstrumentBriefModel - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._id = None self._name = None self.discriminator = None self.id = id self.name = name
def __init__(self, balances_collection=None, metadata=None, _configuration=None): # noqa: E501 """BalancesResponse - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._balances_collection = None self._metadata = None self.discriminator = None self.balances_collection = balances_collection self.metadata = metadata
def __init__(self, time=None, distance=None, latlng=None, altitude=None, velocity_smooth=None, heartrate=None, cadence=None, watts=None, temp=None, moving=None, grade_smooth=None, _configuration=None): # noqa: E501 """StreamSet - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._time = None self._distance = None self._latlng = None self._altitude = None self._velocity_smooth = None self._heartrate = None self._cadence = None self._watts = None self._temp = None self._moving = None self._grade_smooth = None self.discriminator = None if time is not None: self.time = time if distance is not None: self.distance = distance if latlng is not None: self.latlng = latlng if altitude is not None: self.altitude = altitude if velocity_smooth is not None: self.velocity_smooth = velocity_smooth if heartrate is not None: self.heartrate = heartrate if cadence is not None: self.cadence = cadence if watts is not None: self.watts = watts if temp is not None: self.temp = temp if moving is not None: self.moving = moving if grade_smooth is not None: self.grade_smooth = grade_smooth
def __init__(self, biggest_ride_distance=None, biggest_climb_elevation_gain=None, recent_ride_totals=None, recent_run_totals=None, recent_swim_totals=None, ytd_ride_totals=None, ytd_run_totals=None, ytd_swim_totals=None, all_ride_totals=None, all_run_totals=None, all_swim_totals=None, _configuration=None): # noqa: E501 """ActivityStats - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._biggest_ride_distance = None self._biggest_climb_elevation_gain = None self._recent_ride_totals = None self._recent_run_totals = None self._recent_swim_totals = None self._ytd_ride_totals = None self._ytd_run_totals = None self._ytd_swim_totals = None self._all_ride_totals = None self._all_run_totals = None self._all_swim_totals = None self.discriminator = None if biggest_ride_distance is not None: self.biggest_ride_distance = biggest_ride_distance if biggest_climb_elevation_gain is not None: self.biggest_climb_elevation_gain = biggest_climb_elevation_gain if recent_ride_totals is not None: self.recent_ride_totals = recent_ride_totals if recent_run_totals is not None: self.recent_run_totals = recent_run_totals if recent_swim_totals is not None: self.recent_swim_totals = recent_swim_totals if ytd_ride_totals is not None: self.ytd_ride_totals = ytd_ride_totals if ytd_run_totals is not None: self.ytd_run_totals = ytd_run_totals if ytd_swim_totals is not None: self.ytd_swim_totals = ytd_swim_totals if all_ride_totals is not None: self.all_ride_totals = all_ride_totals if all_run_totals is not None: self.all_run_totals = all_run_totals if all_swim_totals is not None: self.all_swim_totals = all_swim_totals
def __init__(self, news_subscription=None, _configuration=None): # noqa: E501 """NewsSubscriptionModel - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._news_subscription = None self.discriminator = None self.news_subscription = news_subscription
def _switching_main(args): if args.debug: debug = True else: debug = False config = ConfigParser.ConfigParser() assert config.read(args.ini), 'could not read config file {}'.format( args.ini) configuration = Configuration() configuration.host = config.get('nsxv', 'nsx_manager') configuration.username = config.get('nsxv', 'nsx_username') configuration.password = config.get('nsxv', 'nsx_password') configuration.verify_ssl = False client = ApiClient(configuration) try: command_selector = { 'create': _create_switch, } command_selector[args.command](client, transport_zone=args.transport_zone, name=args.name, vlan=args.vlan, verbose=args.verbose) except KeyError: print('Unknown command')
def _switching_main(args): if args.debug: debug = True else: debug = False config = ConfigParser.ConfigParser() assert config.read(args.ini), 'could not read config file {}'.format( args.ini) configuration = Configuration() configuration.host = config.get('nsxv', 'nsx_manager') configuration.username = config.get('nsxv', 'nsx_username') configuration.password = config.get('nsxv', 'nsx_password') configuration.verify_ssl = False client = ApiClient(configuration) try: command_selector = { 'create_ip_block': _create_ip_block, 'create_ip_pool': _create_ip_pool, } command_selector[args.command](client, cidr=args.cidr, name=args.name, tag=args.tag, start=args.start, end=args.end, external=args.external, verbose=args.verbose) except KeyError: print('Unknown command')
def __init__(self, content_logging_enabled=None, _configuration=None): # noqa: E501 """EndpointPropertiesUpdate - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._content_logging_enabled = None self.discriminator = None if content_logging_enabled is not None: self.content_logging_enabled = content_logging_enabled
def __init__(self, links=None, properties=None, _self=None, model=None, project=None, dataset=None, content_urls=None, content_container_url=None, display_name=None, description=None, custom_properties=None, locale=None, last_action_date_time=None, status=None, created_date_time=None, _configuration=None): # noqa: E501 """Transcription - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._links = None self._properties = None self.__self = None self._model = None self._project = None self._dataset = None self._content_urls = None self._content_container_url = None self._display_name = None self._description = None self._custom_properties = None self._locale = None self._last_action_date_time = None self._status = None self._created_date_time = None self.discriminator = None if links is not None: self.links = links if properties is not None: self.properties = properties if _self is not None: self._self = _self if model is not None: self.model = model if project is not None: self.project = project if dataset is not None: self.dataset = dataset if content_urls is not None: self.content_urls = content_urls if content_container_url is not None: self.content_container_url = content_container_url self.display_name = display_name if description is not None: self.description = description if custom_properties is not None: self.custom_properties = custom_properties self.locale = locale if last_action_date_time is not None: self.last_action_date_time = last_action_date_time if status is not None: self.status = status if created_date_time is not None: self.created_date_time = created_date_time
def __init__(self, model1=None, model2=None, transcription1=None, transcription2=None, dataset=None, links=None, properties=None, project=None, _self=None, last_action_date_time=None, status=None, created_date_time=None, display_name=None, description=None, custom_properties=None, locale=None, _configuration=None): # noqa: E501 """Evaluation - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() self._configuration = _configuration self._model1 = None self._model2 = None self._transcription1 = None self._transcription2 = None self._dataset = None self._links = None self._properties = None self._project = None self.__self = None self._last_action_date_time = None self._status = None self._created_date_time = None self._display_name = None self._description = None self._custom_properties = None self._locale = None self.discriminator = None self.model1 = model1 self.model2 = model2 if transcription1 is not None: self.transcription1 = transcription1 if transcription2 is not None: self.transcription2 = transcription2 self.dataset = dataset if links is not None: self.links = links if properties is not None: self.properties = properties if project is not None: self.project = project if _self is not None: self._self = _self if last_action_date_time is not None: self.last_action_date_time = last_action_date_time if status is not None: self.status = status if created_date_time is not None: self.created_date_time = created_date_time self.display_name = display_name if description is not None: self.description = description if custom_properties is not None: self.custom_properties = custom_properties self.locale = locale