def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def __raw_delete( self, **kwargs ): """生値取得終了 # noqa: E501 時系列音圧データの取得を停止する。 /raw.html にブラウザからアクセスし操作することも可能 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.raw_delete(async_req=True) >>> result = thread.get() Keyword Args: _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: None If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') return self.call_with_http_info(**kwargs) self.raw_delete = _Endpoint( settings={ 'response_type': None, 'auth': [ 'basicAuth' ], 'endpoint_path': '/raw', 'operation_id': 'raw_delete', 'http_method': 'DELETE', 'servers': None, }, params_map={ 'all': [ ], 'required': [], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { }, 'attribute_map': { }, 'location_map': { }, 'collection_format_map': { } }, headers_map={ 'accept': [], 'content_type': [], }, api_client=api_client, callable=__raw_delete ) def __raw_post( self, **kwargs ): """生値取得開始 # noqa: E501 時系列音圧データの取得を開始する。 /raw.html にブラウザからアクセスし操作することも可能 ※送信する音圧データの仕様は以下の\"Callbacks\"タブに記載 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.raw_post(async_req=True) >>> result = thread.get() Keyword Args: raw_setting (RawSetting): 設定用パラメータを指定. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: RawSetting If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') return self.call_with_http_info(**kwargs) self.raw_post = _Endpoint( settings={ 'response_type': (RawSetting,), 'auth': [ 'basicAuth' ], 'endpoint_path': '/raw', 'operation_id': 'raw_post', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'raw_setting', ], 'required': [], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'raw_setting': (RawSetting,), }, 'attribute_map': { }, 'location_map': { 'raw_setting': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [ 'application/json' ] }, api_client=api_client, callable=__raw_post ) def __raw_status_get( self, **kwargs ): """生値取得状態の取得 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.raw_status_get(async_req=True) >>> result = thread.get() Keyword Args: _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: RawSetting If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get( 'async_req', False ) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True ) kwargs['_preload_content'] = kwargs.get( '_preload_content', True ) kwargs['_request_timeout'] = kwargs.get( '_request_timeout', None ) kwargs['_check_input_type'] = kwargs.get( '_check_input_type', True ) kwargs['_check_return_type'] = kwargs.get( '_check_return_type', True ) kwargs['_host_index'] = kwargs.get('_host_index') return self.call_with_http_info(**kwargs) self.raw_status_get = _Endpoint( settings={ 'response_type': (RawSetting,), 'auth': [ 'basicAuth' ], 'endpoint_path': '/raw-status', 'operation_id': 'raw_status_get', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ ], 'required': [], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { }, 'attribute_map': { }, 'location_map': { }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client, callable=__raw_status_get )
def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def __config_network_get(self, **kwargs): """ネットワーク設定(認証機能・DHCP・手動IP・PoE)の取得 # noqa: E501 ネットワーク設定情報を取得する。 初期設定は認証機能:無効、DHCP:有効です。 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.config_network_get(async_req=True) >>> result = thread.get() Keyword Args: _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: NetworkConfig If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get('async_req', False) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True) kwargs['_preload_content'] = kwargs.get('_preload_content', True) kwargs['_request_timeout'] = kwargs.get('_request_timeout', None) kwargs['_check_input_type'] = kwargs.get('_check_input_type', True) kwargs['_check_return_type'] = kwargs.get('_check_return_type', True) kwargs['_host_index'] = kwargs.get('_host_index') return self.call_with_http_info(**kwargs) self.config_network_get = _Endpoint(settings={ 'response_type': (NetworkConfig, ), 'auth': ['basicAuth'], 'endpoint_path': '/config/network', 'operation_id': 'config_network_get', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [], 'required': [], 'nullable': [], 'enum': [], 'validation': [] }, root_map={ 'validations': {}, 'allowed_values': {}, 'openapi_types': {}, 'attribute_map': {}, 'location_map': {}, 'collection_format_map': {} }, headers_map={ 'accept': ['application/json'], 'content_type': [], }, api_client=api_client, callable=__config_network_get) def __config_network_patch(self, **kwargs): """ネットワーク設定(認証機能・DHCP・手動IP)の変更 # noqa: E501 指定したフィールドの値を変更する。 指定されなかったフィールドの値は変更されない。 変更に成功した場合、応答後にシステムは自動的に再起動する。 /config/network.html にブラウザからアクセスし操作することも可能 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.config_network_patch(async_req=True) >>> result = thread.get() Keyword Args: network_config (NetworkConfig): 省略したパラメータは変更されない. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: NetworkConfig If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get('async_req', False) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True) kwargs['_preload_content'] = kwargs.get('_preload_content', True) kwargs['_request_timeout'] = kwargs.get('_request_timeout', None) kwargs['_check_input_type'] = kwargs.get('_check_input_type', True) kwargs['_check_return_type'] = kwargs.get('_check_return_type', True) kwargs['_host_index'] = kwargs.get('_host_index') return self.call_with_http_info(**kwargs) self.config_network_patch = _Endpoint(settings={ 'response_type': (NetworkConfig, ), 'auth': ['basicAuth'], 'endpoint_path': '/config/network', 'operation_id': 'config_network_patch', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'network_config', ], 'required': [], 'nullable': [], 'enum': [], 'validation': [] }, root_map={ 'validations': {}, 'allowed_values': {}, 'openapi_types': { 'network_config': (NetworkConfig, ), }, 'attribute_map': {}, 'location_map': { 'network_config': 'body', }, 'collection_format_map': {} }, headers_map={ 'accept': ['application/json'], 'content_type': ['application/json'] }, api_client=api_client, callable=__config_network_patch)
def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def __get_rms(self, **kwargs): """音圧のRMS値を取得 # noqa: E501 音圧の実効値を音圧レベル表示した値。 周波数帯域を指定することで、 指定した周波数帯域の音圧の部分オーバーオール値(POA:Partial OverAll)の測定も可能。 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_rms(async_req=True) >>> result = thread.get() Keyword Args: lower_frq_hz (int): 取得する周波数帯域の下限値 (単位:Hz) <!--省略時:10Hz --> . [optional] if omitted the server will use the default value of 10 upper_frq_hz (int): 取得する周波数帯域の上限値 (単位:Hz) <!--省略時:80kHz --> . [optional] if omitted the server will use the default value of 80000 time_sec (float): 測定時間 (単位:sec) . [optional] if omitted the server will use the default value of 0.0256 _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: RmsResult If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get('async_req', False) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True) kwargs['_preload_content'] = kwargs.get('_preload_content', True) kwargs['_request_timeout'] = kwargs.get('_request_timeout', None) kwargs['_check_input_type'] = kwargs.get('_check_input_type', True) kwargs['_check_return_type'] = kwargs.get('_check_return_type', True) kwargs['_host_index'] = kwargs.get('_host_index') return self.call_with_http_info(**kwargs) self.get_rms = _Endpoint(settings={ 'response_type': (RmsResult, ), 'auth': ['basicAuth'], 'endpoint_path': '/rms', 'operation_id': 'get_rms', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'lower_frq_hz', 'upper_frq_hz', 'time_sec', ], 'required': [], 'nullable': [], 'enum': [], 'validation': [ 'lower_frq_hz', 'upper_frq_hz', 'time_sec', ] }, root_map={ 'validations': { ('lower_frq_hz', ): { 'exclusive_maximum': 80000, 'inclusive_minimum': 10, }, ('upper_frq_hz', ): { 'inclusive_maximum': 80000, 'exclusive_minimum': 10, }, ('time_sec', ): { 'exclusive_minimum': 0, }, }, 'allowed_values': {}, 'openapi_types': { 'lower_frq_hz': (int, ), 'upper_frq_hz': (int, ), 'time_sec': (float, ), }, 'attribute_map': { 'lower_frq_hz': 'lowerFrqHz', 'upper_frq_hz': 'upperFrqHz', 'time_sec': 'timeSec', }, 'location_map': { 'lower_frq_hz': 'query', 'upper_frq_hz': 'query', 'time_sec': 'query', }, 'collection_format_map': {} }, headers_map={ 'accept': ['application/json'], 'content_type': [], }, api_client=api_client, callable=__get_rms)
def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def __get_noise(self, **kwargs): """騒音レベルの取得 # noqa: E501 下記3項目を測定する。 周波数重み付け特性はA特性を適用する。 - 等価騒音レベル(Leq) Equivalent continuous A-weighted sound pressure level. 指定した測定時間内の騒音の総エネルギーの時間平均値を音圧レベル表示した値。 環境騒音の評価量として用いられる。 - 単発騒音暴露レベル(SEL) Single Event Noise exposure level. 単発的に発生する騒音の全エネルギーと等しいエネルギーを持つ継続時間1秒間の定常音の音圧レベルに換算した値。 単発的または間欠的に発生する継続時間の短い騒音を測定する評価量として用いられる。 - ピーク音圧レベル(Lpeak) 指定した測定時間内の騒音の最大値を音圧レベル表示した値。 ※本製品はJIS C 1509や計量法に定められた騒音計には適合しておりません。 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_noise(async_req=True) >>> result = thread.get() Keyword Args: time_sec (float): 測定時間 (単位:sec) 省略時:0.1024 sec . [optional] time_weight (str): 時間重み付け特性 省略時:Slow - \"slow\":時定数1sec。 - \"fast\":時定数0.125sec。 - \"impulse\":時定数0.035sec。 . [optional] if omitted the server will use the default value of "slow" _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: SoundLevelResult If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get('async_req', False) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True) kwargs['_preload_content'] = kwargs.get('_preload_content', True) kwargs['_request_timeout'] = kwargs.get('_request_timeout', None) kwargs['_check_input_type'] = kwargs.get('_check_input_type', True) kwargs['_check_return_type'] = kwargs.get('_check_return_type', True) kwargs['_host_index'] = kwargs.get('_host_index') return self.call_with_http_info(**kwargs) self.get_noise = _Endpoint(settings={ 'response_type': (SoundLevelResult, ), 'auth': ['basicAuth'], 'endpoint_path': '/noise', 'operation_id': 'get_noise', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'time_sec', 'time_weight', ], 'required': [], 'nullable': [], 'enum': [ 'time_weight', ], 'validation': [ 'time_sec', ] }, root_map={ 'validations': { ('time_sec', ): { 'inclusive_minimum': 0, }, }, 'allowed_values': { ('time_weight', ): { "SLOW": "slow", "FAST": "fast", "IMPULSE": "impulse" }, }, 'openapi_types': { 'time_sec': (float, ), 'time_weight': (str, ), }, 'attribute_map': { 'time_sec': 'timeSec', 'time_weight': 'timeWeight', }, 'location_map': { 'time_sec': 'query', 'time_weight': 'query', }, 'collection_format_map': {} }, headers_map={ 'accept': ['application/json'], 'content_type': [], }, api_client=api_client, callable=__get_noise)
def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def __init_put(self, **kwargs): """製品を初期状態に戻す # noqa: E501 - 生値取得中の場合、生値取得を終了する - ネットワーク設定を初期状態へ戻す その後、自動的に再起動する /init.html にブラウザからアクセスし操作することも可能 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.init_put(async_req=True) >>> result = thread.get() Keyword Args: _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. async_req (bool): execute request asynchronously Returns: None If the method is called asynchronously, returns the request thread. """ kwargs['async_req'] = kwargs.get('async_req', False) kwargs['_return_http_data_only'] = kwargs.get( '_return_http_data_only', True) kwargs['_preload_content'] = kwargs.get('_preload_content', True) kwargs['_request_timeout'] = kwargs.get('_request_timeout', None) kwargs['_check_input_type'] = kwargs.get('_check_input_type', True) kwargs['_check_return_type'] = kwargs.get('_check_return_type', True) kwargs['_host_index'] = kwargs.get('_host_index') return self.call_with_http_info(**kwargs) self.init_put = _Endpoint(settings={ 'response_type': None, 'auth': ['basicAuth'], 'endpoint_path': '/init', 'operation_id': 'init_put', 'http_method': 'PUT', 'servers': None, }, params_map={ 'all': [], 'required': [], 'nullable': [], 'enum': [], 'validation': [] }, root_map={ 'validations': {}, 'allowed_values': {}, 'openapi_types': {}, 'attribute_map': {}, 'location_map': {}, 'collection_format_map': {} }, headers_map={ 'accept': [], 'content_type': [], }, api_client=api_client, callable=__init_put)