hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e279624e45091494f39f33c260879b0835cffb0
| 15,566
|
py
|
Python
|
test_stream_zip.py
|
uktrade/stream-zip
|
5b27801ece18b15cf7edf9cd0931682eb828b4d1
|
[
"MIT"
] | 8
|
2021-12-29T13:31:26.000Z
|
2022-01-30T02:40:53.000Z
|
test_stream_zip.py
|
uktrade/stream-zip
|
5b27801ece18b15cf7edf9cd0931682eb828b4d1
|
[
"MIT"
] | 1
|
2022-02-06T06:51:21.000Z
|
2022-02-06T17:54:01.000Z
|
test_stream_zip.py
|
uktrade/stream-zip
|
5b27801ece18b15cf7edf9cd0931682eb828b4d1
|
[
"MIT"
] | null | null | null |
from datetime import datetime
from io import BytesIO
import os
import subprocess
from tempfile import TemporaryDirectory
from zipfile import ZipFile
import pytest
from stream_unzip import stream_unzip
from stream_zip import (
stream_zip,
NO_COMPRESSION_64,
NO_COMPRESSION_32,
ZIP_64,
ZIP_32,
CompressedSizeOverflowError,
UncompressedSizeOverflowError,
OffsetOverflowError,
CentralDirectoryNumberOfEntriesOverflowError,
CentralDirectorySizeOverflowError,
NameLengthOverflowError,
)
def test_with_stream_unzip_zip_64():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1', now, perms, ZIP_64, (b'a' * 10000, b'b' * 10000)
yield 'file-2', now, perms, ZIP_64, (b'c', b'd')
assert [(b'file-1', None, b'a' * 10000 + b'b' * 10000), (b'file-2', None, b'cd')] == [
(name, size, b''.join(chunks))
for name, size, chunks in stream_unzip(stream_zip(files()))
]
def test_with_stream_unzip_zip_32():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1', now, perms, ZIP_32, (b'a' * 10000, b'b' * 10000)
yield 'file-2', now, perms, ZIP_32, (b'c', b'd')
assert [(b'file-1', None, b'a' * 10000 + b'b' * 10000), (b'file-2', None, b'cd')] == [
(name, size, b''.join(chunks))
for name, size, chunks in stream_unzip(stream_zip(files()))
]
def test_with_stream_unzip_zip_32_and_zip_64():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1', now, perms, ZIP_64, (b'a' * 10000, b'b' * 10000)
yield 'file-2', now, perms, ZIP_32, (b'c', b'd')
assert [(b'file-1', None, b'a' * 10000 + b'b' * 10000), (b'file-2', None, b'cd')] == [
(name, size, b''.join(chunks))
for name, size, chunks in stream_unzip(stream_zip(files()))
]
def test_with_stream_unzip_with_no_compresion_32():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1', now, perms, NO_COMPRESSION_32, (b'a' * 10000, b'b' * 10000)
yield 'file-2', now, perms, NO_COMPRESSION_32, (b'c', b'd')
assert [(b'file-1', 20000, b'a' * 10000 + b'b' * 10000), (b'file-2', 2, b'cd')] == [
(name, size, b''.join(chunks))
for name, size, chunks in stream_unzip(stream_zip(files()))
]
def test_with_stream_unzip_large_easily_compressible():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
batch = b'-' * 500000
def files():
def data():
for i in range(0, 10000):
yield batch
yield 'file-1', now, perms, ZIP_64, data()
num_received = 0
for name, size, chunks in stream_unzip(stream_zip(files())):
for chunk in chunks:
num_received += len(chunk)
assert num_received == 5000000000
def test_with_stream_unzip_large_not_easily_compressible_with_no_compression_64():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
batch = os.urandom(500000)
def files():
def data():
for i in range(0, 10000):
yield batch
yield 'file-1', now, perms, ZIP_64, data()
yield 'file-2', now, perms, NO_COMPRESSION_64, (b'-',)
num_received = 0
for name, size, chunks in stream_unzip(stream_zip(files())):
for chunk in chunks:
num_received += len(chunk)
assert num_received == 5000000001
def test_with_stream_unzip_large_not_easily_compressible_with_no_compression_32():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
batch = os.urandom(500000)
def files():
def data():
for i in range(0, 10000):
yield batch
yield 'file-1', now, perms, ZIP_64, data()
yield 'file-2', now, perms, NO_COMPRESSION_32, (b'-',)
with pytest.raises(OffsetOverflowError):
for name, size, chunks in stream_unzip(stream_zip(files())):
for chunk in chunks:
pass
def test_with_stream_unzip_large_not_easily_compressible_with_zip_32():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
batch = os.urandom(500000)
def files():
def data():
for i in range(0, 10000):
yield batch
yield 'file-1', now, perms, ZIP_64, data()
yield 'file-2', now, perms, ZIP_32, (b'-',) # Needs a ZIP_64 offset, but is in ZIP_32 mode
with pytest.raises(OffsetOverflowError):
for name, size, chunks in stream_unzip(stream_zip(files())):
for chunk in chunks:
pass
def test_zip_overflow_large_not_easily_compressible():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
batch = os.urandom(500000)
def files():
def data():
for i in range(0, 10000):
yield batch
yield 'file-1', now, perms, ZIP_32, data()
with pytest.raises(CompressedSizeOverflowError):
for chunk in stream_zip(files()):
pass
def test_zip_overflow_large_easily_compressible():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
batch = b'-' * 1000000
def files():
def data():
for i in range(0, 10000):
yield batch
yield 'file-1', now, perms, ZIP_32, data()
with pytest.raises(UncompressedSizeOverflowError):
for chunk in stream_zip(files()):
pass
def test_with_zipfile_zip_64():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1 🍰', now, perms, ZIP_64, (b'a' * 10000, b'b' * 10000)
yield 'file-2 🍰', now, perms, ZIP_64, (b'c', b'd')
def extracted():
with ZipFile(BytesIO(b''.join(stream_zip(files())))) as my_zip:
for my_info in my_zip.infolist():
with my_zip.open(my_info.filename) as my_file:
yield (
my_info.filename,
my_info.file_size,
my_info.date_time,
my_info.external_attr,
my_file.read(),
)
assert [(
'file-1 🍰',
20000,
(2021, 1, 1, 21, 1, 12),
perms << 16,
b'a' * 10000 + b'b' * 10000,
), (
'file-2 🍰',
2,
(2021, 1, 1, 21, 1, 12),
perms << 16,
b'cd',
)] == list(extracted())
def test_with_zipfile_zip_32():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1', now, perms, ZIP_32, (b'a' * 10000, b'b' * 10000)
yield 'file-2', now, perms, ZIP_32, (b'c', b'd')
def extracted():
with ZipFile(BytesIO(b''.join(stream_zip(files())))) as my_zip:
for my_info in my_zip.infolist():
with my_zip.open(my_info.filename) as my_file:
yield (
my_info.filename,
my_info.file_size,
my_info.date_time,
my_info.external_attr,
my_file.read(),
)
assert [(
'file-1',
20000,
(2021, 1, 1, 21, 1, 12),
perms << 16,
b'a' * 10000 + b'b' * 10000,
), (
'file-2',
2,
(2021, 1, 1, 21, 1, 12),
perms << 16,
b'cd',
)] == list(extracted())
def test_with_zipfile_zip_32_and_zip_64():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1', now, perms, ZIP_64, (b'a' * 10000, b'b' * 10000)
yield 'file-2', now, perms, ZIP_32, (b'c', b'd')
def extracted():
with ZipFile(BytesIO(b''.join(stream_zip(files())))) as my_zip:
for my_info in my_zip.infolist():
with my_zip.open(my_info.filename) as my_file:
yield (
my_info.filename,
my_info.file_size,
my_info.date_time,
my_info.external_attr,
my_file.read(),
)
assert [(
'file-1',
20000,
(2021, 1, 1, 21, 1, 12),
perms << 16,
b'a' * 10000 + b'b' * 10000,
), (
'file-2',
2,
(2021, 1, 1, 21, 1, 12),
perms << 16,
b'cd',
)] == list(extracted())
def test_with_zipfile_without_compression():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1', now, perms, NO_COMPRESSION_32, (b'a' * 10000, b'b' * 10000)
yield 'file-2', now, perms, NO_COMPRESSION_32, (b'c', b'd')
def extracted():
with ZipFile(BytesIO(b''.join(stream_zip(files())))) as my_zip:
for my_info in my_zip.infolist():
with my_zip.open(my_info.filename) as my_file:
yield (
my_info.filename,
my_info.file_size,
my_info.date_time,
my_info.external_attr,
my_file.read(),
)
assert [(
'file-1',
20000,
(2021, 1, 1, 21, 1, 12),
perms << 16,
b'a' * 10000 + b'b' * 10000,
), (
'file-2',
2,
(2021, 1, 1, 21, 1, 12),
perms << 16,
b'cd',
)] == list(extracted())
def test_with_zipfile_many_files_zip_64():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
for i in range(0, 100000):
yield f'file-{i}', now, perms, ZIP_64, (b'ab',)
def extracted():
with ZipFile(BytesIO(b''.join(stream_zip(files())))) as my_zip:
for my_info in my_zip.infolist():
with my_zip.open(my_info.filename) as my_file:
yield None
assert len(list(extracted())) == 100000
def test_with_zipfile_no_files():
def extracted():
with ZipFile(BytesIO(b''.join(stream_zip(())))) as my_zip:
yield from my_zip.infolist()
assert len(list(extracted())) == 0
def test_too_many_files_zip_32():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
for i in range(0, 100000):
yield f'file-{i}', now, perms, ZIP_32, (b'ab',)
with pytest.raises(CentralDirectoryNumberOfEntriesOverflowError):
for chunk in stream_zip(files()):
pass
def test_central_directory_size_overflow():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
for i in range(0, 0xffff):
yield str(i).zfill(5) + '-' * 65502, now, perms, NO_COMPRESSION_32, (b'',)
with pytest.raises(CentralDirectorySizeOverflowError):
for chunk in stream_zip(files()):
pass
def test_directory_zipfile():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1', now, perms, ZIP_64, (b'a' * 10000, b'b' * 10000)
yield 'file-2/', now, perms, ZIP_64, ()
def extracted():
with ZipFile(BytesIO(b''.join(stream_zip(files())))) as my_zip:
for my_info in my_zip.infolist():
with my_zip.open(my_info.filename) as my_file:
yield (
my_info.filename,
my_info.file_size,
my_info.date_time,
my_info.external_attr,
my_file.read(),
)
assert [(
'file-1',
20000,
(2021, 1, 1, 21, 1, 12),
perms << 16,
b'a' * 10000 + b'b' * 10000,
), (
'file-2/',
0,
(2021, 1, 1, 21, 1, 12),
perms << 16 | 0x10,
b'',
)] == list(extracted())
def test_with_unzip_zip64():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1', now, perms, ZIP_64, (b'a' * 10000, b'b' * 10000)
yield 'file-2', now, perms, ZIP_64, (b'c', b'd')
def extracted():
with TemporaryDirectory() as d:
with open(f'{d}/my.zip', 'wb') as f:
f.write(b''.join(stream_zip(files())))
subprocess.run(['unzip', f'{d}/my.zip', '-d', d])
with open(f'{d}/file-1', 'rb') as f:
yield 'file-1', f.read()
with open(f'{d}/file-2', 'rb') as f:
yield 'file-2', f.read()
assert [(
'file-1',
b'a' * 10000 + b'b' * 10000,
), (
'file-2',
b'cd',
)] == list(extracted())
def test_with_unzip_zip_32_and_zip_64():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1', now, perms, ZIP_64, (b'a' * 10000, b'b' * 10000)
yield 'file-2', now, perms, ZIP_32, (b'c', b'd')
def extracted():
with TemporaryDirectory() as d:
with open(f'{d}/my.zip', 'wb') as f:
f.write(b''.join(stream_zip(files())))
subprocess.run(['unzip', f'{d}/my.zip', '-d', d])
with open(f'{d}/file-1', 'rb') as f:
yield 'file-1', f.read()
with open(f'{d}/file-2', 'rb') as f:
yield 'file-2', f.read()
assert [(
'file-1',
b'a' * 10000 + b'b' * 10000,
), (
'file-2',
b'cd',
)] == list(extracted())
def test_with_unzip_with_no_compression_32():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1', now, perms, NO_COMPRESSION_32, (b'a' * 10000, b'b' * 10000)
yield 'file-2', now, perms, NO_COMPRESSION_32, (b'c', b'd')
def extracted():
with TemporaryDirectory() as d:
with open(f'{d}/my.zip', 'wb') as f:
f.write(b''.join(stream_zip(files())))
subprocess.run(['unzip', f'{d}/my.zip', '-d', d])
with open(f'{d}/file-1', 'rb') as f:
yield 'file-1', f.read()
with open(f'{d}/file-2', 'rb') as f:
yield 'file-2', f.read()
assert [(
'file-1',
b'a' * 10000 + b'b' * 10000,
), (
'file-2',
b'cd',
)] == list(extracted())
def test_name_length_overflow():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield '-' * (2**16), now, perms, ZIP_64, (b'ab',)
with pytest.raises(NameLengthOverflowError):
for chunk in stream_zip(files()):
pass
def test_exception_propagates():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1', now, perms, ZIP_64, (b'a' * 10000, b'b' * 10000)
raise Exception('From generator')
with pytest.raises(Exception, match='From generator'):
for chunk in stream_zip(files()):
pass
def test_chunk_sizes():
now = datetime.fromisoformat('2021-01-01 21:01:12')
perms = 0o600
def files():
yield 'file-1', now, perms, ZIP_64, (os.urandom(500000),)
def get_sizes():
for chunk in stream_zip(files()):
yield len(chunk)
sizes = list(get_sizes())
assert set(sizes[:-1]) == {65536}
assert sizes[-1] <= 65536
| 28.405109
| 99
| 0.536361
| 2,097
| 15,566
| 3.832618
| 0.060563
| 0.045913
| 0.04106
| 0.024885
| 0.863755
| 0.857783
| 0.84223
| 0.84223
| 0.839244
| 0.798308
| 0
| 0.112082
| 0.316202
| 15,566
| 547
| 100
| 28.457038
| 0.642616
| 0.002827
| 0
| 0.774347
| 0
| 0
| 0.075129
| 0
| 0
| 0
| 0.000644
| 0
| 0.042755
| 1
| 0.15677
| false
| 0.019002
| 0.021378
| 0
| 0.178147
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2e3e8a970e9bc8d721075789d203415f12e7dc48
| 2,603
|
py
|
Python
|
storm_analysis/test/test_pupil_math.py
|
bintulab/storm-analysis
|
71ae493cbd17ddb97938d0ae2032d97a0eaa76b2
|
[
"CNRI-Python"
] | null | null | null |
storm_analysis/test/test_pupil_math.py
|
bintulab/storm-analysis
|
71ae493cbd17ddb97938d0ae2032d97a0eaa76b2
|
[
"CNRI-Python"
] | null | null | null |
storm_analysis/test/test_pupil_math.py
|
bintulab/storm-analysis
|
71ae493cbd17ddb97938d0ae2032d97a0eaa76b2
|
[
"CNRI-Python"
] | 1
|
2021-04-19T18:17:06.000Z
|
2021-04-19T18:17:06.000Z
|
#!/usr/bin/env python
import numpy
import storm_analysis
import storm_analysis.simulator.pupil_math as pupilMath
def test_pupil_math_1():
"""
Test GeometryC, intensity, no scaling.
"""
geo = pupilMath.Geometry(20, 0.1, 0.6, 1.5, 1.4)
geo_c = pupilMath.GeometryC(20, 0.1, 0.6, 1.5, 1.4)
pf = geo.createFromZernike(1.0, [[1.3, -1, 3], [1.3, -2, 2]])
z_vals = numpy.linspace(-1.0,1.0,10)
psf_py = geo.pfToPSF(pf, z_vals)
psf_c = geo_c.pfToPSF(pf, z_vals)
assert numpy.allclose(psf_c, psf_py)
def test_pupil_math_2():
"""
Test GeometryC, complex values, no scaling.
"""
geo = pupilMath.Geometry(20, 0.1, 0.6, 1.5, 1.4)
geo_c = pupilMath.GeometryC(20, 0.1, 0.6, 1.5, 1.4)
pf = geo.createFromZernike(1.0, [[1.3, -1, 3], [1.3, -2, 2]])
z_vals = numpy.linspace(-1.0,1.0,10)
psf_py = geo.pfToPSF(pf, z_vals, want_intensity = False)
psf_c = geo_c.pfToPSF(pf, z_vals, want_intensity = False)
assert numpy.allclose(psf_c, psf_py)
def test_pupil_math_3():
"""
Test GeometryC, intensity, scaling.
"""
geo = pupilMath.Geometry(20, 0.1, 0.6, 1.5, 1.4)
geo_c = pupilMath.GeometryC(20, 0.1, 0.6, 1.5, 1.4)
pf = geo.createFromZernike(1.0, [[1.3, -1, 3], [1.3, -2, 2]])
z_vals = numpy.linspace(-1.0,1.0,10)
gsf = geo.gaussianScalingFactor(1.8)
psf_py = geo.pfToPSF(pf, z_vals, scaling_factor = gsf)
psf_c = geo_c.pfToPSF(pf, z_vals, scaling_factor = gsf)
assert numpy.allclose(psf_c, psf_py)
def test_pupil_math_4():
"""
Test GeometryCVectorial, intensity, no scaling.
"""
geo = pupilMath.GeometryVectorial(20, 0.1, 0.6, 1.5, 1.4)
geo_c = pupilMath.GeometryCVectorial(20, 0.1, 0.6, 1.5, 1.4)
pf = geo.createFromZernike(1.0, [[1.3, -1, 3], [1.3, -2, 2]])
z_vals = numpy.linspace(-1.0,1.0,10)
psf_py = geo.pfToPSF(pf, z_vals)
psf_c = geo_c.pfToPSF(pf, z_vals)
assert numpy.allclose(psf_c, psf_py)
def test_pupil_math_5():
"""
Test GeometryCVectorial, intensity, scaling.
"""
geo = pupilMath.GeometryVectorial(20, 0.1, 0.6, 1.5, 1.4)
geo_c = pupilMath.GeometryCVectorial(20, 0.1, 0.6, 1.5, 1.4)
pf = geo.createFromZernike(1.0, [[1.3, -1, 3], [1.3, -2, 2]])
z_vals = numpy.linspace(-1.0,1.0,10)
gsf = geo.gaussianScalingFactor(1.8)
psf_py = geo.pfToPSF(pf, z_vals, scaling_factor = gsf)
psf_c = geo_c.pfToPSF(pf, z_vals, scaling_factor = gsf)
if (__name__ == "__main__"):
test_pupil_math_1()
test_pupil_math_2()
test_pupil_math_3()
| 28.604396
| 70
| 0.615828
| 447
| 2,603
| 3.39821
| 0.120805
| 0.032916
| 0.029625
| 0.032916
| 0.851876
| 0.802502
| 0.802502
| 0.778802
| 0.764319
| 0.764319
| 0
| 0.094072
| 0.215905
| 2,603
| 90
| 71
| 28.922222
| 0.650171
| 0.089128
| 0
| 0.708333
| 0
| 0
| 0.003486
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 1
| 0.104167
| false
| 0
| 0.0625
| 0
| 0.166667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
cf130e4a6298c0e1e099cdce4d75441e8a7489c4
| 176
|
py
|
Python
|
protostar/commands/remove/removal_exceptions.py
|
software-mansion/protostar
|
e9f701d3b02dde78e5292a4698ca3c6c7d39b485
|
[
"MIT"
] | 11
|
2022-01-31T14:27:32.000Z
|
2022-03-28T18:24:45.000Z
|
protostar/commands/remove/removal_exceptions.py
|
software-mansion/protostar
|
e9f701d3b02dde78e5292a4698ca3c6c7d39b485
|
[
"MIT"
] | 105
|
2022-01-31T15:25:29.000Z
|
2022-03-31T12:28:13.000Z
|
protostar/commands/remove/removal_exceptions.py
|
software-mansion/protostar
|
e9f701d3b02dde78e5292a4698ca3c6c7d39b485
|
[
"MIT"
] | 1
|
2022-03-28T16:18:28.000Z
|
2022-03-28T16:18:28.000Z
|
from protostar.protostar_exception import ProtostarException
class InvalidLocalRepository(ProtostarException):
pass
class PackageNotFound(ProtostarException):
pass
| 17.6
| 60
| 0.835227
| 14
| 176
| 10.428571
| 0.642857
| 0.30137
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 176
| 9
| 61
| 19.555556
| 0.948052
| 0
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.4
| 0.2
| 0
| 0.6
| 0
| 1
| 0
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
cf676f62fbfcc60ea415779f429317d7116c043d
| 17,824
|
py
|
Python
|
particle_packing/tests/test_Ellipse_.py
|
aluchies/particle_packing
|
127603a519ae25979de6c6197810a7ea38ec945b
|
[
"BSD-3-Clause"
] | null | null | null |
particle_packing/tests/test_Ellipse_.py
|
aluchies/particle_packing
|
127603a519ae25979de6c6197810a7ea38ec945b
|
[
"BSD-3-Clause"
] | null | null | null |
particle_packing/tests/test_Ellipse_.py
|
aluchies/particle_packing
|
127603a519ae25979de6c6197810a7ea38ec945b
|
[
"BSD-3-Clause"
] | null | null | null |
import unittest
import numpy as np
from particle_packing.ellipse import Ellipse, \
overlap_potential, overlap_potential_py, \
square_container_potential_py, square_container_potential
class TestCode(unittest.TestCase):
def test1_constuctor(self):
"""
Test simple constructor example
"""
center = np.asarray([0, 0 ], dtype=float)
radii = [1, 1]
phi = 0.
c = Ellipse(center, radii, phi)
self.assertTrue(np.allclose(c.radii, np.asarray(radii)))
self.assertTrue(np.allclose(c.center, center))
self.assertTrue(c.phi == phi)
def test2_constuctor(self):
"""
Test constructor failure
"""
center = [0, 0, 0]
radii = [1,1]
phi = 0.
self.assertRaises(ValueError, Ellipse, center, radii, phi)
center = np.asarray([0,0])
radii = [1,1,1]
phi = 0.
self.assertRaises(ValueError, Ellipse, center, radii, phi)
center = np.asarray([0,0])
radii = [1,1,1]
phi = 'a'
self.assertRaises(ValueError, Ellipse, center, radii, phi)
def test1_generate_volume(self):
"""
Sphere at origin with radius 1
"""
a = 1.
b = 1.
center = np.array([0., 0.])
radii = np.array([a, b])
phi = 0.
x = np.linspace(-1., 1., 3)
y = np.linspace(-1., 1., 3)
c = Ellipse(center, radii, phi)
vol = c.generate_volume(x, y)
arr = np.array([[0, 1, 0],
[1, 1, 1],
[0, 1, 0]])
self.assertTrue(np.allclose(arr, vol))
def test2_generate_volume(self):
"""
Ellipse, major y-axis, minor x-axis
"""
a = 0.5
b = 1.
center = np.array([0., 0.])
radii = np.array([a, b])
phi = 0.
x = np.linspace(-1., 1., 3)
y = np.linspace(-1., 1., 3)
c = Ellipse(center, radii, phi)
vol = c.generate_volume(x, y)
arr = np.array([[0, 1, 0],
[0, 1, 0],
[0, 1, 0]])
self.assertTrue(np.allclose(arr, vol))
def test3_generate_volume(self):
"""
Sphere at origin, radius 1, rotated 90
"""
a = 1.
b = 1.
center = np.array([0., 0.])
radii = np.array([a, b])
phi = np.pi / 2.
x = np.linspace(-1., 1., 3)
y = np.linspace(-1., 1., 3)
c = Ellipse(center, radii, phi)
vol = c.generate_volume(x, y)
arr = np.array([[0, 1, 0],
[1, 1, 1],
[0, 1, 0]])
self.assertTrue(np.allclose(arr, vol))
def test4_generate_volume(self):
"""
Narrow ellipse rotated so 45
"""
a = 0.5
b = np.sqrt(2)
center = np.array([0., 0.])
radii = np.array([a, b])
phi = np.pi / 4.
x = np.linspace(-1., 1., 3)
y = np.linspace(-1., 1., 3)
c = Ellipse(center, radii, phi)
vol = c.generate_volume(x, y)
arr = np.array([[0, 0, 1],
[0, 1, 0],
[1, 0, 0]])
self.assertTrue(np.allclose(arr, vol))
def test5_generate_volume(self):
"""
Sphere not at origin, radius 1
"""
a = 1.
b = 1.
center = np.array([0., 0.5])
radii = np.array([a, b])
phi = 0.
x = np.linspace(-1., 1., 3)
y = np.linspace(-1., 1., 3)
c = Ellipse(center, radii, phi)
vol = c.generate_volume(x, y)
arr = np.array([[0, 0, 0],
[0, 1, 0],
[0, 1, 0]])
self.assertTrue(np.allclose(arr, vol))
def test1_find_ellipse_subvolume(self):
"""
Test find_subvolume() method for Ellipse class.
"""
radii = [0.5, 0.5]
center = 0.5 * np.ones(2)
phi = 0.
c = Ellipse(center, radii, phi)
x_ax = np.linspace(0, 1, 10)
y_ax = np.linspace(0, 1, 10)
x_ax_subvol, y_ax_subvol = \
c.find_subvolume(x_ax, y_ax )
self.assertTrue(np.allclose(x_ax, x_ax_subvol))
self.assertTrue(np.allclose(y_ax, y_ax_subvol))
def test2_find_ellipse_subvolume(self):
"""
Test find_subvolume() method for Ellipse class
"""
radii = [0.5, 0.5]
center = 2. * np.ones(2)
phi = 0.
c = Ellipse(center, radii, phi)
x_ax = np.linspace(0, 1, 10)
y_ax = np.linspace(0, 1, 10)
x_ax_subvol, y_ax_subvol = \
c.find_subvolume(x_ax, y_ax)
arr = np.array([])
self.assertTrue(np.allclose(arr, x_ax_subvol))
self.assertTrue(np.allclose(arr, y_ax_subvol))
def test3_find_ellipse_subvolume(self):
"""
Test find_subvolume() method for Ellipse class
"""
radii = 0.4
center = 0.5 * np.ones(2)
phi = 0.
c = Ellipse(center, radii, phi)
x_ax = np.linspace(0, 1, 10)
y_ax = np.linspace(0, 1, 10)
x_ax_subvol, y_ax_subvol= \
c.find_subvolume(x_ax, y_ax)
self.assertTrue(np.allclose(x_ax[1:-1], x_ax_subvol))
self.assertTrue(np.allclose(y_ax[1:-1], y_ax_subvol))
def test1_find_ellipse_subvolume_ix(self):
"""
Test find_subvolume_ix() method for Ellipse class.
"""
radii = [0.5, 0.5]
center = 0.5 * np.ones(2)
phi = 0.
c = Ellipse(center, radii, phi)
x_ax = np.linspace(0, 1, 10)
y_ax = np.linspace(0, 1, 10)
x_ax_subvol_ix, y_ax_subvol_ix = \
c.find_subvolume_ix(x_ax, y_ax )
self.assertTrue(np.allclose(x_ax, x_ax[x_ax_subvol_ix]))
self.assertTrue(np.allclose(y_ax, y_ax[y_ax_subvol_ix]))
def test2_find_ellipse_subvolume_ix(self):
"""
Test find_subvolume_ix() method for Ellipse class
"""
radii = [0.5, 0.5]
center = 2. * np.ones(2)
phi = 0.
c = Ellipse(center, radii, phi)
x_ax = np.linspace(0, 1, 10)
y_ax = np.linspace(0, 1, 10)
x_ax_subvol_ix, y_ax_subvol_ix = \
c.find_subvolume_ix(x_ax, y_ax)
arr = np.array([])
self.assertTrue(np.allclose(arr, x_ax_subvol_ix))
self.assertTrue(np.allclose(arr, y_ax_subvol_ix))
def test3_find_ellipse_subvolume_ix(self):
"""
Test find_subvolume_ix() method for Ellipse class
"""
radii = 0.4
center = 0.5 * np.ones(2)
phi = 0.
c = Ellipse(center, radii, phi)
x_ax = np.linspace(0, 1, 10)
y_ax = np.linspace(0, 1, 10)
x_ax_subvol_ix, y_ax_subvol_ix = \
c.find_subvolume_ix(x_ax, y_ax)
self.assertTrue(np.allclose(x_ax[1:-1], x_ax[x_ax_subvol_ix]))
self.assertTrue(np.allclose(y_ax[1:-1], y_ax[y_ax_subvol_ix]))
def test1_ellipse_overlap(self):
"""
Full overlap, identical ellipses.
"""
# Ellipse A
rA = np.array([[0., 0.]])
radiiA = np.array([1., 1.])
phiA = 0.
# Ellipse B
rB = np.array([[0., 0.]])
radiiB = np.array([1., 1.])
phiB = 0.
F_py = overlap_potential_py(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F_py, 0.))
F = overlap_potential(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F, F_py))
def test2_ellipse_overlap(self):
"""
Tangent, x-axis.
"""
# Ellipse A
rA = np.array([[0., 0.]])
radiiA = np.array([1., 1.])
phiA = 0.
# Ellipse B
rB = np.array([[2., 0.]])
radiiB = np.array([1., 1.])
phiB = 0.
F_py = overlap_potential_py(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F_py, 1.))
F = overlap_potential(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F, F_py))
def test3_ellipse_overlap(self):
"""
Tangent, y-axis.
"""
# Ellipse A
rA = np.array([[0., 0.]])
radiiA = np.array([1., 1.])
phiA = 0.
# Ellipse B
rB = np.array([[0., 2.]])
radiiB = np.array([1., 1.])
phiB = 0.
F_py = overlap_potential_py(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F_py, 1.))
F = overlap_potential(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F, F_py))
def test4_ellipse_overlap(self):
"""
Tangent, all.
"""
# Ellipse A
rA = np.array([[0., 0.]])
radiiA = np.array([1., 1.])
phiA = 0.
# Ellipse B
rB = np.sqrt(2) * np.array([[1., 1.]])
radiiB = np.array([1., 1.])
phiB = 0.
F_py = overlap_potential_py(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F_py, 1.))
F = overlap_potential(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F, F_py))
def test5_ellipse_overlap(self):
"""
Overlap, x-axis.
"""
# Ellipse A
rA = np.array([[0., 0.]])
radiiA = np.array([1., 1.])
phiA = 0.
# Ellipse B
rB = np.array([[2., 0.]])
radiiB = np.array([1.1, 1.])
phiB = 0.
F_py = overlap_potential_py(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(F_py < 1.)
F = overlap_potential(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F, F_py))
def test6_ellipse_overlap(self):
"""
Overlap, y-axis.
"""
# Ellipse A
rA = np.array([[0., 0.]])
radiiA = np.array([1., 1.])
phiA = 0.
# Ellipse B
rB = np.array([[0., 2.]])
radiiB = np.array([1., 1.1])
phiB = 0.
F_py = overlap_potential_py(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(F_py < 1.)
F = overlap_potential(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F, F_py))
def test7_ellipse_overlap(self):
"""
Overlap, all.
"""
# Ellipse A
rA = np.array([[0., 0.]])
radiiA = np.array([1., 1.])
phiA = 0.
# Ellipse B
rB = np.sqrt(2) * np.array([[1., 1.]])
radiiB = np.array([1.1, 1.1])
phiB = 0.
F_py = overlap_potential_py(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(F_py < 1.)
F = overlap_potential(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F, F_py))
def test8_ellipse_overlap(self):
"""
No overlap, x-axis.
"""
# Ellipse A
rA = np.array([[0., 0.]])
radiiA = np.array([1., 1.])
phiA = 0.
# Ellipse B
rB = np.array([[2., 0.]])
radiiB = np.array([0.9, 1.])
phiB = 0.
F_py = overlap_potential_py(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(F_py > 1.)
F = overlap_potential(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F, F_py))
def test9_ellipse_overlap(self):
"""
No overlap, y-axis.
"""
# Ellipse A
rA = np.array([[0., 0.]])
radiiA = np.array([1., 1.])
phiA = 0.
# Ellipse B
rB = np.array([[0., 2.]])
radiiB = np.array([1., 0.9])
phiB = 0.
F_py = overlap_potential_py(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(F_py > 1.)
F = overlap_potential(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F, F_py))
def test10_ellipse_overlap(self):
"""
No overlap, all.
"""
# Ellipse A
rA = np.array([[0., 0.]])
radiiA = np.array([1., 1.])
phiA = 0.
# Ellipse B
rB = np.sqrt(2) * np.array([[1., 1.]])
radiiB = np.array([0.9, 0.9])
phiB = 0.
F_py = overlap_potential_py(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(F_py > 1.)
F = overlap_potential(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F, F_py))
def test11_ellipse_overlap(self):
"""
Overlap, rotated ellipses
"""
# Ellipse A
rA = np.array([[0.46728551, 0.47801381]])
radiiA = np.array([0.1, 0.2])
phiA = -np.pi / 4.
# Ellipse B
rB = np.array([[0.53806873, 0.71002836]])
radiiB = np.array([0.1, 0.2])
phiB = -np.pi / 4.
F_py = overlap_potential_py(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(F_py < 1.)
F = overlap_potential(rA, radiiA, phiA, rB, radiiB, phiB)
self.assertTrue(np.allclose(F, F_py))
def test12_overlap_potential(self):
"""
Test overlap_potential method for Ellipse class
"""
center = np.zeros(2)
radii = 0.5 * np.ones(2)
phi = 0.
c1 = Ellipse(center, radii, phi)
c2 = Ellipse(center, radii, phi)
F = c1.overlap_potential(c2)
self.assertTrue(F == 0.)
def test1_container_potential(self):
"""
completely inside
"""
# Ellipse A
rA = np.matrix( np.array( [0.5, 0.5] ))
radiiA = 0.4 * np.ones(2)
phiA = 0.
F_py = square_container_potential_py(rA, radiiA, phiA)
self.assertTrue(F_py > 1.)
F = square_container_potential(rA, radiiA, phiA)
self.assertTrue(np.allclose(F_py, F))
def test2_container_potential(self):
"""
tangent, left side
"""
# Ellipse A
rA = np.array( [0.4, 0.5] )
radiiA = 0.4 * np.ones(2)
phiA = 0.
F_py = square_container_potential_py(rA, radiiA, phiA)
self.assertTrue(np.allclose(F_py, 1.))
F = square_container_potential(rA, radiiA, phiA)
self.assertTrue(np.allclose(F_py, F))
def test3_container_potential(self):
"""
tangent, right side
"""
# Ellipse A
rA = np.matrix( np.array( [0.6, 0.5] ))
radiiA = 0.4 * np.ones(2)
phiA = 0.
F_py = square_container_potential_py(rA, radiiA, phiA)
self.assertTrue(np.allclose(F_py, 1.))
F = square_container_potential(rA, radiiA, phiA)
self.assertTrue(np.allclose(F_py, F))
def test4_container_potential(self):
"""
tangent, top side
"""
# Ellipse A
rA = np.matrix( np.array( [0.5, 0.6] ))
radiiA = 0.4 * np.ones(2)
phiA = 0.
F_py = square_container_potential_py(rA, radiiA, phiA)
self.assertTrue(np.allclose(F_py, 1.))
F = square_container_potential(rA, radiiA, phiA)
self.assertTrue(np.allclose(F_py, F))
def test5_container_potential(self):
"""
tangent, bottom side
"""
# Ellipse A
rA = np.matrix( np.array( [0.5, 0.4] ))
radiiA = 0.4 * np.ones(2)
phiA = 0.
F_py = square_container_potential_py(rA, radiiA, phiA)
self.assertTrue(np.allclose(F_py, 1.))
F = square_container_potential(rA, radiiA, phiA)
self.assertTrue(np.allclose(F_py, F))
def test6_container_potential(self):
"""
outside, left side
"""
# Ellipse A
rA = np.matrix( np.array( [0.3, 0.5] ))
radiiA = 0.4 * np.ones(2)
phiA = 0.
F_py = square_container_potential_py(rA, radiiA, phiA)
self.assertTrue(F_py < 1.)
F = square_container_potential(rA, radiiA, phiA)
self.assertTrue(np.allclose(F_py, F))
def test7_container_potential(self):
"""
outside, right side
"""
# Ellipse A
rA = np.matrix( np.array( [0.7, 0.5] ))
radiiA = 0.4 * np.ones(2)
phiA = 0.
F_py = square_container_potential_py(rA, radiiA, phiA)
self.assertTrue(F_py < 1.)
F = square_container_potential(rA, radiiA, phiA)
self.assertTrue(np.allclose(F_py, F))
def test8_container_potential(self):
"""
outside, top side
"""
# Ellipse A
rA = np.matrix( np.array( [0.5, 0.7] ))
radiiA = 0.4 * np.ones(2)
phiA = 0.
F_py = square_container_potential_py(rA, radiiA, phiA)
self.assertTrue(F_py < 1.)
F = square_container_potential(rA, radiiA, phiA)
self.assertTrue(np.allclose(F_py, F))
def test9_container_potential(self):
"""
outside, bottom side
"""
# Ellipse A
rA = np.matrix( np.array( [0.5, 0.3] ))
radiiA = 0.4 * np.ones(2)
phiA = 0.
F_py = square_container_potential_py(rA, radiiA, phiA)
self.assertTrue(F_py < 1.)
F = square_container_potential(rA, radiiA, phiA)
self.assertTrue(np.allclose(F_py, F))
def test10_container_potential(self):
"""
Test square_container_potential method for Ellipse class
"""
# Ellipse A
rA = np.matrix( np.array( [0.5, 0.5] ))
radiiA = 0.4 * np.ones(2)
phiA = 0.
c1 = Ellipse(rA, radiiA, phiA)
F = c1.square_container_potential()
self.assertTrue(F > 1.)
if __name__ == '__main__':
print 'Running unit tests for Ellipse.py'
unittest.main()
| 18.644351
| 71
| 0.506676
| 2,359
| 17,824
| 3.676982
| 0.05426
| 0.057298
| 0.086696
| 0.130044
| 0.835255
| 0.798132
| 0.782684
| 0.765621
| 0.752479
| 0.744524
| 0
| 0.046594
| 0.350987
| 17,824
| 956
| 72
| 18.644351
| 0.703233
| 0.017897
| 0
| 0.734043
| 0
| 0
| 0.002694
| 0
| 0
| 0
| 0
| 0
| 0.172872
| 0
| null | null | 0
| 0.007979
| null | null | 0.00266
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
d85addbed4e05a4e02cfa2dc4aae138a1d63873f
| 102
|
py
|
Python
|
spreadsheetconverter/scripts/__init__.py
|
gumi/spreadsheetconverter
|
15f0a7cbc9a57a44cb60b2cdde0f657e1733d5a8
|
[
"MIT"
] | 4
|
2016-05-30T07:05:27.000Z
|
2018-11-05T02:12:06.000Z
|
spreadsheetconverter/scripts/__init__.py
|
gumi/spreadsheetconverter
|
15f0a7cbc9a57a44cb60b2cdde0f657e1733d5a8
|
[
"MIT"
] | 2
|
2016-05-13T08:53:00.000Z
|
2018-10-03T05:53:25.000Z
|
spreadsheetconverter/scripts/__init__.py
|
gumi/spreadsheetconverter
|
15f0a7cbc9a57a44cb60b2cdde0f657e1733d5a8
|
[
"MIT"
] | 3
|
2016-05-30T07:05:38.000Z
|
2021-02-04T08:40:24.000Z
|
# -*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
| 25.5
| 39
| 0.794118
| 13
| 102
| 5.461538
| 0.692308
| 0.28169
| 0.450704
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011111
| 0.117647
| 102
| 3
| 40
| 34
| 0.777778
| 0.196078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
d8774c858f23bb72263b550e69dd922380441919
| 122
|
py
|
Python
|
src/sage/symbolic/constant.py
|
UCD4IDS/sage
|
43474c96d533fd396fe29fe0782d44dc7f5164f7
|
[
"BSL-1.0"
] | 1,742
|
2015-01-04T07:06:13.000Z
|
2022-03-30T11:32:52.000Z
|
src/sage/symbolic/constant.py
|
UCD4IDS/sage
|
43474c96d533fd396fe29fe0782d44dc7f5164f7
|
[
"BSL-1.0"
] | 66
|
2015-03-19T19:17:24.000Z
|
2022-03-16T11:59:30.000Z
|
src/sage/symbolic/constant.py
|
UCD4IDS/sage
|
43474c96d533fd396fe29fe0782d44dc7f5164f7
|
[
"BSL-1.0"
] | 495
|
2015-01-10T10:23:18.000Z
|
2022-03-24T22:06:11.000Z
|
from sage.misc.lazy_import import lazy_import
lazy_import('sage.symbolic.expression', 'PynacConstant', deprecation=32386)
| 40.666667
| 75
| 0.836066
| 16
| 122
| 6.1875
| 0.625
| 0.30303
| 0.323232
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043478
| 0.057377
| 122
| 2
| 76
| 61
| 0.817391
| 0
| 0
| 0
| 0
| 0
| 0.303279
| 0.196721
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
d8fc2a47ff67867fbf24de3c6a0989cf0e7d1504
| 106
|
py
|
Python
|
app/order_api/__init__.py
|
peterboldizs/Hands-on-Microservices-with-Python-Order-Service
|
a5dede8a2c04ed9b748a65f33d183b96499e9c94
|
[
"MIT"
] | 14
|
2019-02-13T00:08:33.000Z
|
2021-10-04T06:37:04.000Z
|
app/order_api/__init__.py
|
peterboldizs/Hands-on-Microservices-with-Python-Order-Service
|
a5dede8a2c04ed9b748a65f33d183b96499e9c94
|
[
"MIT"
] | 1
|
2020-05-14T12:34:50.000Z
|
2020-10-25T17:45:51.000Z
|
app/order_api/__init__.py
|
peterboldizs/Hands-on-Microservices-with-Python-Order-Service
|
a5dede8a2c04ed9b748a65f33d183b96499e9c94
|
[
"MIT"
] | 21
|
2019-01-26T09:53:47.000Z
|
2021-11-09T23:26:14.000Z
|
from flask import Blueprint
order_api_blueprint = Blueprint('order_api', __name__)
from . import routes
| 17.666667
| 54
| 0.801887
| 14
| 106
| 5.571429
| 0.571429
| 0.358974
| 0.435897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132075
| 106
| 6
| 55
| 17.666667
| 0.847826
| 0
| 0
| 0
| 0
| 0
| 0.084112
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0.666667
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
2b3deda9eaa510861e8cdebfaf0ab7b972bcefa0
| 14,983
|
py
|
Python
|
statarb/src/python/bin/db_check.py
|
mikimaus78/ml_monorepo
|
b2c2627ff0e86e27f6829170d0dac168d8e5783b
|
[
"BSD-3-Clause"
] | 51
|
2019-02-01T19:43:37.000Z
|
2022-03-16T09:07:03.000Z
|
statarb/src/python/bin/db_check.py
|
mikimaus78/ml_monorepo
|
b2c2627ff0e86e27f6829170d0dac168d8e5783b
|
[
"BSD-3-Clause"
] | 2
|
2019-02-23T18:54:22.000Z
|
2019-11-09T01:30:32.000Z
|
statarb/src/python/bin/db_check.py
|
mikimaus78/ml_monorepo
|
b2c2627ff0e86e27f6829170d0dac168d8e5783b
|
[
"BSD-3-Clause"
] | 35
|
2019-02-08T02:00:31.000Z
|
2022-03-01T23:17:00.000Z
|
#!/usr/bin/env python
import util
import newdb
from collections import Counter
from collections import deque
#Check if two rows have equal values in the keys attributes
def __compare(row1,row2,keys):
equal=True
for key in keys:
if row1[key]!=row2[key]:
equal=False
break
return equal
def __getNextRow(database,command,buffer=deque()):
if len(buffer)>0:
return buffer.popleft()
else:
rows=database.execute(command).fetchall()
if len(rows)==0:
return None
else:
buffer.extend(rows)
return buffer.popleft()
#def __getNextBatchFromCursor(keys,cursor,buffer=[]):
def __getNextBatchFromHandler(keys,database,command,buffer=[]):
batch=[]
batch.extend(buffer)
del buffer[:]
#row=cursor.fetchone()
#row=database.execute(command).fetchone()
row=__getNextRow(database, command)
while row is not None:
if len(batch)==0:
batch.append(row)
#row=cursor.fetchone()
#row=database.execute(command).fetchone()
row=__getNextRow(database, command)
elif __compare(batch[-1], row, keys):
batch.append(row)
#row=cursor.fetchone()
#row=database.execute(command).fetchone()
row=__getNextRow(database, command)
else:
buffer.append(row)
break
if len(batch)==0:
return None
else:
return batch
def __getNextBatchFromCursor(keys,cursor,buffer=[]):
batch=[]
batch.extend(buffer)
del buffer[:]
row=cursor.fetchone()
#row=database.execute(command).fetchone()
#row=__getNextRow(database, command)
while row is not None:
if len(batch)==0:
batch.append(row)
row=cursor.fetchone()
#row=database.execute(command).fetchone()
#row=__getNextRow(database, command)
elif __compare(batch[-1], row, keys):
batch.append(row)
row=cursor.fetchone()
#row=database.execute(command).fetchone()
#row=__getNextRow(database, command)
else:
buffer.append(row)
break
if len(batch)==0:
return None
else:
return batch
#verify that a consecutive slice of rows are nice and consistent
def __verify(rows,start,end,data,warnings,stats):
#check that born<died for each row. report rows with born=died and born>died
for i in range(start,end):
if rows[i]["born"]==rows[i]["died"]:
if warnings: util.warning("born=died: {}".format(rows[i]))
stats["row born=died"]=stats["row born=died"]+1
stats["warnings"]=stats["warnings"]+1
elif rows[i]["died"] is not None and rows[i]["born"]>rows[i]["died"]:
util.error("born>died: {}".format(rows[i]))
stats["row born>died"]=stats["row born>died"]+1
stats["errors"]=stats["errors"]+1
#check that each row was born at the point the other died
#chck if consecutive rows have the same data
for i in range(start+1,end):
if rows[i-1]["died"] is None or rows[i-1]["died"]>rows[i]["born"]: #overlapping rows
util.error("overlapping rows: {} | {}".format(rows[i-1],rows[i]))
stats["overlapping row"]=stats["overlapping row"]+1
stats["errors"]=stats["errors"]+1
elif rows[i-1]["died"]<rows[i]["born"]:
if warnings: util.warning("gap in the timeline: {} | {}".format(rows[i-1],rows[i])) #timeline gap
stats["gap"]=stats["gap"]+1
stats["warnings"]=stats["warnings"]+1
elif util.dict_fields_eq(rows[i-1], rows[i], data):
if warnings: util.warning("consecutive rows with same data: {} | {}".format(rows[i-1],rows[i]))
stats["consecutive with same data"]=stats["consecutive with same data"]+1
stats["warnings"]=stats["warnings"]+1
#verify that a consecutive slice of rows are nice and consistent
def __verifySymbols(rows,start,end,data,warnings,stats):
#check that born<died for each row. report rows with born=died and born>died
for i in range(start,end):
if rows[i]["born"]==rows[i]["died"]:
if warnings: util.warning("born=died: {}".format(rows[i]))
stats["row born=died"]=stats["row born=died"]+1
stats["warnings"]=stats["warnings"]+1
elif rows[i]["died"] is not None and rows[i]["born"]>rows[i]["died"]:
util.error("born>died: {}".format(rows[i]))
stats["row born>died"]=stats["row born>died"]+1
stats["errors"]=stats["errors"]+1
#check that each row was born at the point the other died
#chck if consecutive rows have the same data
for i in range(start+1,end):
if rows[i-1]["died"] is None or rows[i-1]["died"]>rows[i]["born"]: #overlapping rows
#do a more thorough check
if rows[i-1]["country"]!=rows[i]["country"] or rows[i-1]["coid"]==rows[i]["coid"]:
if warnings: util.warning("benign overlap: {} | {}".format(rows[i-1],rows[i]))
stats["benign overlap"]=stats["benign overlap"]+1
stats["warnings"]=stats["warnings"]+1
else:
util.error("overlapping rows: {} | {}".format(rows[i-1],rows[i]))
stats["overlapping row"]=stats["overlapping row"]+1
stats["errors"]=stats["errors"]+1
elif rows[i-1]["died"]<rows[i]["born"]:
if warnings: util.warning("gap in the timeline: {} | {}".format(rows[i-1],rows[i])) #timeline gap
stats["gap"]=stats["gap"]+1
stats["warnings"]=stats["warnings"]+1
elif util.dict_fields_eq(rows[i-1], rows[i], data):
if warnings: util.warning("consecutive rows with same data: {} | {}".format(rows[i-1],rows[i]))
stats["consecutive with same data"]=stats["consecutive with same data"]+1
stats["warnings"]=stats["warnings"]+1
def xrefsOK():
#get the database
database = newdb.get_db()
warnings=0
errors=0
###############################
util.info("\nChecking xrefs based on SecIds")
cursor=database.execute("SELECT * FROM {} ORDER BY source,secid,xref_type,born".format(database.XREF_TABLE))
#database.execute("SELECT * FROM {} ORDER BY source,secid,xref_type,born".format("xref"))
#cursor=database._curs
buffer=[]
keys=("secid","xref_type","source")
stats=Counter()
while True:
batch=__getNextBatchFromCursor(keys, cursor, buffer)
if batch is None:
break
__verify(batch, 0, len(batch), ("value",), False,stats)
warnings=warnings+stats["warnings"]
errors=errors+stats["errors"]
util.info("Errors={}, Warnings={}".format(stats["errors"],stats["warnings"]))
del stats["warnings"]
del stats["errors"]
for k,v in stats.iteritems():
util.info("{} = {}".format(k,v))
###################################
util.info("\nChecking xrefs based on Values")
cursor=database.execute("SELECT xf.secid,xf.xref_type,xf.value,xf.source,cs.coid,cs.issueid,cs.country,xf.born,xf.died FROM {} as xf, {} as cs WHERE xf.secid=cs.secid ORDER BY xf.source,xf.xref_type,xf.value,xf.born".format(database.XREF_TABLE,database.STOCK_TABLE))
#database.execute("SELECT xf.secid,xf.xref_type,xf.value,xf.source,cs.coid,cs.issueid,cs.country,xf.born,xf.died FROM {} as xf, {} as cs WHERE xf.secid=cs.secid ORDER BY xf.source,xf.xref_type,xf.value,xf.born".format("xref","stock"))
#cursor=database._curs
buffer=[]
keys=("value","xref_type","source")
stats=Counter()
while True:
batch=__getNextBatchFromCursor(keys, cursor, buffer)
if batch is None:
break
__verifySymbols(batch, 0, len(batch), ("secid",), False,stats)
warnings=warnings+stats["warnings"]
errors=errors+stats["errors"]
util.info("Errors={}, Warnings={}".format(stats["errors"],stats["warnings"]))
del stats["warnings"]
del stats["errors"]
for k,v in stats.iteritems():
util.info("{} = {}".format(k,v))
return (errors==0)
def attrOK(target,datatype,warn,stepSize=100000):
#get the database
database = newdb.get_db()
warnings=0
errors=0
###############################
util.info("\nChecking "+target+database.ATTR_TABLE+datatype)
database.execute("HANDLER {} OPEN AS foobar".format(target+database.ATTR_TABLE+datatype))
command="HANDLER foobar READ `PRIMARY` NEXT LIMIT {}".format(stepSize)
keys=(target+"id","type","date")
stats=Counter()
while True:
batch=__getNextBatchFromHandler(keys, database, command)
if batch is None:
break
__verify(batch, 0, len(batch), ("value","backfill"), warn,stats)
warnings=warnings+stats["warnings"]
errors=errors+stats["errors"]
util.info("Errors={}, Warnings={}".format(stats["errors"],stats["warnings"]))
del stats["warnings"]
del stats["errors"]
for k,v in stats.iteritems():
util.info("{} = {}".format(k,v))
database.execute("HANDLER foobar CLOSE")
return (warnings,errors)
def splitOK(warn,stepSize=100000):
#get the database
database = newdb.get_db()
warnings=0
errors=0
###############################
util.info("\nChecking "+database.SPLIT)
database.execute("HANDLER {} OPEN AS foobar".format(database.SPLIT))
command="HANDLER foobar READ `PRIMARY` NEXT LIMIT {}".format(stepSize)
keys=("secid","date")
stats=Counter()
while True:
batch=__getNextBatchFromHandler(keys, database, command)
if batch is None:
break
__verify(batch, 0, len(batch), ("rate","backfill"), warn,stats)
warnings=warnings+stats["warnings"]
errors=errors+stats["errors"]
util.info("Errors={}, Warnings={}".format(stats["errors"],stats["warnings"]))
del stats["warnings"]
del stats["errors"]
for k,v in stats.iteritems():
util.info("{} = {}".format(k,v))
database.execute("HANDLER foobar CLOSE")
return (warnings,errors)
def dividendOK(warn,stepSize=100000):
#get the database
database = newdb.get_db()
warnings=0
errors=0
###############################
util.info("\nChecking "+database.DIVIDEND)
database.execute("HANDLER {} OPEN AS foobar".format(database.DIVIDEND))
command="HANDLER foobar READ `PRIMARY` NEXT LIMIT {}".format(stepSize)
keys=("secid","date")
stats=Counter()
while True:
batch=__getNextBatchFromHandler(keys, database, command)
if batch is None:
break
__verify(batch, 0, len(batch), ("dividend","casheq","backfill","currency"), warn,stats)
warnings=warnings+stats["warnings"]
errors=errors+stats["errors"]
util.info("Errors={}, Warnings={}".format(stats["errors"],stats["warnings"]))
del stats["warnings"]
del stats["errors"]
for k,v in stats.iteritems():
util.info("{} = {}".format(k,v))
database.execute("HANDLER foobar CLOSE")
return (warnings,errors)
def priceOK(warn,stepSize=100000):
#get the database
database = newdb.get_db()
warnings=0
errors=0
###############################
util.info("\nChecking "+database.PRICE_FULL_TABLE)
database.execute("HANDLER {} OPEN AS foobar".format(database.PRICE_FULL_TABLE))
command="HANDLER foobar READ `PRIMARY` NEXT LIMIT {}".format(stepSize)
keys=("secid","date")
stats=Counter()
while True:
batch=__getNextBatchFromHandler(keys, database, command)
if batch is None:
break
__verify(batch, 0, len(batch), ("open","high","low","close","volume","adj","adrrc","cond","backfill","currency"), warn,stats)
warnings=warnings+stats["warnings"]
errors=errors+stats["errors"]
util.info("Errors={}, Warnings={}".format(stats["errors"],stats["warnings"]))
del stats["warnings"]
del stats["errors"]
for k,v in stats.iteritems():
util.info("{} = {}".format(k,v))
database.execute("HANDLER foobar CLOSE")
return (warnings,errors)
def actualsOK(datatype,warn,stepSize=100000):
#get the database
database = newdb.get_db()
warnings=0
errors=0
###############################
util.info("\nChecking "+database.CO_ACTUALS+datatype)
database.execute("HANDLER {} OPEN AS foobar".format(database.CO_ACTUALS+datatype))
command="HANDLER foobar READ `PRIMARY` NEXT LIMIT {}".format(stepSize)
keys=("coid","type","date")
stats=Counter()
while True:
batch=__getNextBatchFromHandler(keys, database, command)
if batch is None:
break
__verify(batch, 0, len(batch), ("value","backfill","currency"), warn,stats)
warnings=warnings+stats["warnings"]
errors=errors+stats["errors"]
util.info("Errors={}, Warnings={}".format(stats["errors"],stats["warnings"]))
del stats["warnings"]
del stats["errors"]
for k,v in stats.iteritems():
util.info("{} = {}".format(k,v))
database.execute("HANDLER foobar CLOSE")
return (warnings,errors)
def estimatesOK(datatype,warn,stepSize=100000):
#get the database
database = newdb.get_db()
warnings=0
errors=0
###############################
util.info("\nChecking "+database.CO_ESTIMATES+datatype)
database.execute("HANDLER {} OPEN AS foobar".format(database.CO_ESTIMATES+datatype))
command="HANDLER foobar READ `PRIMARY` NEXT LIMIT {}".format(stepSize)
keys=("coid","type","date","brokerid","orig")
stats=Counter()
while True:
batch=__getNextBatchFromHandler(keys, database, command)
if batch is None:
break
__verify(batch, 0, len(batch), ("value","backfill","currency"), warn,stats)
warnings=warnings+stats["warnings"]
errors=errors+stats["errors"]
util.info("Errors={}, Warnings={}".format(stats["errors"],stats["warnings"]))
del stats["warnings"]
del stats["errors"]
for k,v in stats.iteritems():
util.info("{} = {}".format(k,v))
database.execute("HANDLER foobar CLOSE")
return (warnings,errors)
#add command line options
if __name__ == "__main__":
newdb.init_db()
#dbLocal=db.get_db();
#util.DEBUG=True
#xrefsOK()
#attrOK("sec","n",False)
#attrOK("sec","d",False)
#attrOK("sec","s",False)
#attrOK("co","n",False)
#attrOK("co","d",False)
#attrOK("co","s",False)
#dividendOK(False)
#priceOK(False)
#splitOK(False)
#estimatesOK("n", False)
#estimatesOK("b", False)
#actualsOK("n", False)
#actualsOK("d", False)
| 36.903941
| 270
| 0.596543
| 1,818
| 14,983
| 4.858086
| 0.10231
| 0.026042
| 0.011549
| 0.038043
| 0.865716
| 0.845562
| 0.832994
| 0.830503
| 0.808764
| 0.808764
| 0
| 0.009705
| 0.229727
| 14,983
| 406
| 271
| 36.903941
| 0.755567
| 0.127011
| 0
| 0.795848
| 0
| 0.00346
| 0.201832
| 0.0119
| 0
| 0
| 0
| 0
| 0
| 1
| 0.044983
| false
| 0
| 0.013841
| 0
| 0.110727
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
99380c017e625f35bdee30012424c12da74e34c2
| 562
|
py
|
Python
|
03/03/islower.py
|
pylangstudy/201708
|
126b1af96a1d1f57522d5a1d435b58597bea2e57
|
[
"CC0-1.0"
] | null | null | null |
03/03/islower.py
|
pylangstudy/201708
|
126b1af96a1d1f57522d5a1d435b58597bea2e57
|
[
"CC0-1.0"
] | 39
|
2017-07-31T22:54:01.000Z
|
2017-08-31T00:19:03.000Z
|
03/03/islower.py
|
pylangstudy/201708
|
126b1af96a1d1f57522d5a1d435b58597bea2e57
|
[
"CC0-1.0"
] | null | null | null |
s = b'abc'; print(s.islower(), s)
s = b'Abc'; print(s.islower(), s)
s = b'ABC'; print(s.islower(), s)
s = b'123'; print(s.islower(), s)
s = b'(_)'; print(s.islower(), s)
s = b'(abc)'; print(s.islower(), s)
s = b'(aBc)'; print(s.islower(), s)
s = bytearray(b'abc'); print(s.islower(), s)
s = bytearray(b'Abc'); print(s.islower(), s)
s = bytearray(b'ABC'); print(s.islower(), s)
s = bytearray(b'123'); print(s.islower(), s)
s = bytearray(b'(_)'); print(s.islower(), s)
s = bytearray(b'(abc)'); print(s.islower(), s)
s = bytearray(b'(aBc)'); print(s.islower(), s)
| 35.125
| 46
| 0.578292
| 103
| 562
| 3.135922
| 0.067961
| 0.260062
| 0.563467
| 0.606811
| 1
| 1
| 0.996904
| 0.854489
| 0.854489
| 0.854489
| 0
| 0.01222
| 0.126335
| 562
| 15
| 47
| 37.466667
| 0.645621
| 0
| 0
| 0
| 0
| 0
| 0.088968
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 10
|
995f2990d29348610be1e082126660e99e500133
| 1,335
|
py
|
Python
|
tests/database/test_key_value.py
|
UMDLARS/CYLGame
|
880dc63ccfa2f5a1ede097b92e7479686fc41b29
|
[
"MIT"
] | 2
|
2020-02-24T17:58:33.000Z
|
2020-10-30T20:26:57.000Z
|
tests/database/test_key_value.py
|
UMDLARS/CYLGame
|
880dc63ccfa2f5a1ede097b92e7479686fc41b29
|
[
"MIT"
] | 56
|
2018-01-26T19:45:02.000Z
|
2021-12-07T03:56:48.000Z
|
tests/database/test_key_value.py
|
UMDLARS/CYLGame
|
880dc63ccfa2f5a1ede097b92e7479686fc41b29
|
[
"MIT"
] | 3
|
2019-10-31T14:57:49.000Z
|
2020-10-22T01:14:04.000Z
|
import pytest
from CYLGame.Database import GameDB
from . import ex_db, temp_dir
def test_simple_str(ex_db: GameDB):
tok = ex_db.__players[0]
ex_db.save_value(tok, "test_key", "test_value")
assert ex_db.get_value(tok, "test_key") == "test_value"
def test_simple_2(ex_db: GameDB):
tok = ex_db.__players[0]
ex_db.save_value(tok, "test_key", "test_value")
assert ex_db.get_value(tok, "test_key", "default_value") == "test_value"
def test_overwrite(ex_db: GameDB):
tok = ex_db.__players[0]
ex_db.save_value(tok, "test_key", "str")
assert ex_db.get_value(tok, "test_key") == "str"
ex_db.save_value(tok, "test_key", 12)
assert ex_db.get_value(tok, "test_key") == 12
ex_db.save_value(tok, "test_key", 3.14)
assert ex_db.get_value(tok, "test_key") == 3.14
def test_simple_int(ex_db: GameDB):
tok = ex_db.__players[0]
ex_db.save_value(tok, "test_key", 12)
assert ex_db.get_value(tok, "test_key") == 12
def test_simple_float(ex_db: GameDB):
tok = ex_db.__players[0]
ex_db.save_value(tok, "test_key", 3.14)
assert ex_db.get_value(tok, "test_key") == 3.14
def test_default_value(ex_db: GameDB):
tok = ex_db.__players[0]
# ex_db.save_value(tok, "test_key", "test_value")
assert ex_db.get_value(tok, "test_key", "default_value") == "default_value"
| 29.021739
| 79
| 0.689888
| 234
| 1,335
| 3.538462
| 0.128205
| 0.140097
| 0.231884
| 0.289855
| 0.794686
| 0.78744
| 0.77657
| 0.77657
| 0.742754
| 0.742754
| 0
| 0.024129
| 0.161798
| 1,335
| 45
| 80
| 29.666667
| 0.715818
| 0.035206
| 0
| 0.533333
| 0
| 0
| 0.159409
| 0
| 0
| 0
| 0
| 0
| 0.266667
| 1
| 0.2
| false
| 0
| 0.1
| 0
| 0.3
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
99774baa4c09fd082a5365eac1457ab459f3de73
| 16,226
|
py
|
Python
|
api/tests/integration/test_record.py
|
azzamsa/RESTKnot
|
a776699e678b8a5547b146bc3c636c3cad7e89c0
|
[
"MIT"
] | 18
|
2018-09-19T05:51:11.000Z
|
2022-01-21T05:18:36.000Z
|
api/tests/integration/test_record.py
|
azzamsa/RESTKnot
|
a776699e678b8a5547b146bc3c636c3cad7e89c0
|
[
"MIT"
] | 32
|
2018-10-26T06:03:41.000Z
|
2021-10-08T03:13:52.000Z
|
api/tests/integration/test_record.py
|
azzamsa/RESTKnot
|
a776699e678b8a5547b146bc3c636c3cad7e89c0
|
[
"MIT"
] | 9
|
2018-09-19T05:51:14.000Z
|
2022-01-10T07:57:51.000Z
|
import datetime
import app.helpers.helpers
from app.controllers.api import record as record_api
from app.helpers import helpers
class TestRecord:
def get_record(self, records, type_):
for record in records:
if record["type"] == type_:
return record
def test_list_no_Record(self, client):
"""Test if db contains no record."""
headers = {"X-Api-Key": "123"}
res = client.get("/api/domain/list", headers=headers)
json_data = res.get_json()
assert json_data["code"] == 404
def test_add_record(self, client, mocker):
"""Test adding record from its endpoint.
- Create a User
- Create a domain (with default SOA,NS,CNAME created)
- Add a record
- Query the db to assure it's created
"""
mocker.patch("app.helpers.producer.kafka_producer")
mocker.patch("app.helpers.producer.send")
headers = {"X-Api-Key": "123"}
# create user
data = {"email": "first@company.com"}
post_res = client.post("/api/user/add", data=data, headers=headers)
json_data = post_res.get_json()
user_id = json_data["data"]["id"]
# add domain
data = {"zone": "company.com", "user_id": user_id}
res = client.post("/api/domain/add", data=data, headers=headers)
create_domain_data = res.get_json()
# add record
data = {
"zone": "company.com",
"owner": "host",
"rtype": "A",
"rdata": "1.1.1.1",
"ttl": 7200,
}
res = client.post("/api/record/add", data=data, headers=headers)
add_record_data = res.get_json()
# list record
res = client.get("/api/domain/list", headers=headers)
list_record_data = res.get_json()
assert create_domain_data["code"] == 201
assert create_domain_data["data"]["zone"] == "company.com"
assert add_record_data["code"] == 201
assert add_record_data["data"]["owner"] == "host"
assert add_record_data["data"]["rdata"] == "1.1.1.1"
assert list_record_data["code"] == 200
assert list_record_data["data"][0]["zone"] == "company.com"
assert list_record_data["data"][0]["user"]["email"] == "first@company.com"
def test_edit_record(self, client, mocker):
"""Test editing record from its endpoint.
- Create a User
- Create a domain (with default SOA,NS,CNAME created)
- Add a record
- Edit a record
- Query the db to assure it's edited
"""
mocker.patch("app.helpers.producer.kafka_producer")
mocker.patch("app.helpers.producer.send")
headers = {"X-Api-Key": "123"}
# create user
data = {"email": "first@company.com"}
post_res = client.post("/api/user/add", data=data, headers=headers)
json_data = post_res.get_json()
user_id = json_data["data"]["id"]
# add domain
data = {"zone": "company.com", "user_id": user_id}
client.post("/api/domain/add", data=data, headers=headers)
# list record
res = client.get("/api/domain/list", headers=headers)
list_record_data = res.get_json()
# edit record
records = list_record_data["data"][0]["records"]
cname_record = self.get_record(records, "CNAME")
cname_record_id = cname_record["id"]
data = {
"zone": "company.com",
"owner": "www_edit",
"rtype": "CNAME",
"rdata": "company_edited.com",
"ttl": 3600,
}
res = client.put(
f"/api/record/edit/{cname_record_id}", data=data, headers=headers
)
edit_record_data = res.get_json()
# list record
res = client.get("/api/domain/list", headers=headers)
list_record_data = res.get_json()
records = list_record_data["data"][0]["records"]
edited_record_data = self.get_record(records, "CNAME")
assert edit_record_data["code"] == 200
assert edit_record_data["data"]["owner"] == "www_edit"
assert list_record_data["code"] == 200
assert edited_record_data["rdata"] == "company_edited.com"
def test_edit_record_no_ttl_change(self, client, mocker):
"""Test editing record from its endpoint.
- Create a User
- Create a domain (with default SOA,NS,CNAME created)
- Edit a record with the same TTL
"""
mocker.patch("app.helpers.producer.kafka_producer")
mocker.patch("app.helpers.producer.send")
headers = {"X-Api-Key": "123"}
# create user
data = {"email": "first@company.com"}
post_res = client.post("/api/user/add", data=data, headers=headers)
json_data = post_res.get_json()
user_id = json_data["data"]["id"]
# add domain
data = {"zone": "company.com", "user_id": user_id}
client.post("/api/domain/add", data=data, headers=headers)
# list record
res = client.get("/api/domain/list", headers=headers)
list_record_data = res.get_json()
# edit record
records = list_record_data["data"][0]["records"]
cname_record = self.get_record(records, "CNAME")
cname_record_id = cname_record["id"]
data = {
"zone": "company.com",
"owner": "www",
"rtype": "CNAME",
"rdata": "company.com.",
"ttl": "3600",
}
res = client.put(
f"/api/record/edit/{cname_record_id}", data=data, headers=headers
)
edit_record_data = res.get_json()
assert edit_record_data["code"] == 409
assert edit_record_data["message"] == "The record already exists"
def test_edit_record_with_ttl_change(self, client, mocker):
"""Test editing record from its endpoint.
- Create a User
- Create a domain (with default SOA,NS,CNAME created)
- Edit a record with the different TTL
- Query the db to assure it's edited
"""
mocker.patch("app.helpers.producer.kafka_producer")
mocker.patch("app.helpers.producer.send")
headers = {"X-Api-Key": "123"}
# create user
data = {"email": "first@company.com"}
post_res = client.post("/api/user/add", data=data, headers=headers)
json_data = post_res.get_json()
user_id = json_data["data"]["id"]
# add domain
data = {"zone": "company.com", "user_id": user_id}
client.post("/api/domain/add", data=data, headers=headers)
# list record
res = client.get("/api/domain/list", headers=headers)
list_record_data = res.get_json()
# edit record
records = list_record_data["data"][0]["records"]
cname_record = self.get_record(records, "CNAME")
cname_record_id = cname_record["id"]
data = {
"zone": "company.com",
"owner": "www",
"rtype": "CNAME",
"rdata": "company.com.",
"ttl": "300",
}
res = client.put(
f"/api/record/edit/{cname_record_id}", data=data, headers=headers
)
edit_record_data = res.get_json()
# list record
res = client.get("/api/domain/list", headers=headers)
list_record_data = res.get_json()
records = list_record_data["data"][0]["records"]
edited_record_data = self.get_record(records, "CNAME")
assert edit_record_data["code"] == 200
assert edit_record_data["data"]["ttl"] == "300"
assert list_record_data["code"] == 200
assert edited_record_data["ttl"] == "300"
def test_delete_record(self, client, mocker):
"""Test deleting record from its endpoint.
- Create a User
- Create a domain (with default SOA,NS,CNAME created)
- List the default records
- Delete one of the record
- Query the db to assure it's deleted
"""
mocker.patch("app.helpers.producer.kafka_producer")
mocker.patch("app.helpers.producer.send")
headers = {"X-Api-Key": "123"}
# create user
data = {"email": "first@company.com"}
post_res = client.post("/api/user/add", data=data, headers=headers)
json_data = post_res.get_json()
user_id = json_data["data"]["id"]
# add domain
data = {"zone": "company.com", "user_id": user_id}
client.post("/api/domain/add", data=data, headers=headers)
# list record
res = client.get("/api/domain/list", headers=headers)
list_record_data = res.get_json()
# edit record
records = list_record_data["data"][0]["records"]
cname_record = self.get_record(records, "CNAME")
cname_record_id = cname_record["id"]
delete_res = client.delete(
f"/api/record/delete/{cname_record_id}", headers=headers
)
# list record
res = client.get("/api/domain/list", headers=headers)
list_record_data = res.get_json()
records = list_record_data["data"][0]["records"]
assert delete_res.status_code == 204
# it must be 3 after deletion
assert len(records) == 3
def test_edit_record_no_ttl_change_MX(self, client, mocker):
"""Test editing record from its endpoint.
- Create a User
- Create a domain (with default SOA,NS,CNAME created)
- Add MX record
- Edit a record with the same TTL
"""
mocker.patch("app.helpers.producer.kafka_producer")
mocker.patch("app.helpers.producer.send")
headers = {"X-Api-Key": "123"}
# create user
data = {"email": "first@company.com"}
post_res = client.post("/api/user/add", data=data, headers=headers)
json_data = post_res.get_json()
user_id = json_data["data"]["id"]
# add domain
data = {"zone": "company.com", "user_id": user_id}
client.post("/api/domain/add", data=data, headers=headers)
# add record
data = {
"zone": "company.com",
"owner": "mx1",
"rtype": "MX",
"rdata": "10 mail.example.com.",
"ttl": 7200,
}
res = client.post("/api/record/add", data=data, headers=headers)
json_data = res.get_json()
record_id = json_data["data"]["id"]
# edit record
data = {
"zone": "company.com",
"owner": "mx1",
"rtype": "MX",
"rdata": "10 mail.example.com.",
"ttl": 7200,
}
res = client.put(f"/api/record/edit/{record_id}", data=data, headers=headers)
edit_record_data = res.get_json()
assert edit_record_data["code"] == 409
assert edit_record_data["message"] == "The record already exists"
def test_edit_record_with_ttl_change_MX(self, client, mocker):
"""Test editing record from its endpoint.
- Create a User
- Create a domain (with default SOA,NS,CNAME created)
- Add MX record
- Edit a record with the different TTL
- Query the db to assure it's edited
"""
mocker.patch("app.helpers.producer.kafka_producer")
mocker.patch("app.helpers.producer.send")
headers = {"X-Api-Key": "123"}
# create user
data = {"email": "first@company.com"}
post_res = client.post("/api/user/add", data=data, headers=headers)
json_data = post_res.get_json()
user_id = json_data["data"]["id"]
# add domain
data = {"zone": "company.com", "user_id": user_id}
client.post("/api/domain/add", data=data, headers=headers)
# add record
data = {
"zone": "company.com",
"owner": "mx1",
"rtype": "MX",
"rdata": "10 mail.example.com.",
"ttl": 7200,
}
res = client.post("/api/record/add", data=data, headers=headers)
json_data = res.get_json()
record_id = json_data["data"]["id"]
# edit record
data = {
"zone": "company.com",
"owner": "mx1",
"rtype": "MX",
"rdata": "10 mail.example.com.",
"ttl": 14400,
}
res = client.put(f"/api/record/edit/{record_id}", data=data, headers=headers)
edit_record_data = res.get_json()
# list record
res = client.get("/api/domain/list", headers=headers)
list_record_data = res.get_json()
records = list_record_data["data"][0]["records"]
edited_record_data = self.get_record(records, "MX")
assert edit_record_data["code"] == 200
assert edit_record_data["data"]["ttl"] == "14400"
assert list_record_data["code"] == 200
assert edited_record_data["ttl"] == "14400"
def test_edit_record_respect_zone_limit(self, client, monkeypatch, mocker):
"""Test edit record respecting zone limit of 99
- Create a User
- Create a domain (with default SOA, NS, CNAME created)
- Add TXT record
- Edit a record with the different TXT value until it reaches a limit
- Edit a record with tomorrows date
"""
mocker.patch("app.helpers.producer.kafka_producer")
mocker.patch("app.helpers.producer.send")
headers = {"X-Api-Key": "123"}
# create user
data = {"email": "first@company.com"}
post_res = client.post("/api/user/add", data=data, headers=headers)
json_data = post_res.get_json()
user_id = json_data["data"]["id"]
# add domain
data = {"zone": "company.com", "user_id": user_id}
client.post("/api/domain/add", data=data, headers=headers)
# add record
data = {
"zone": "company.com",
"owner": "txt1",
"rtype": "TXT",
"rdata": "0",
"ttl": 7200,
}
res = client.post("/api/record/add", data=data, headers=headers)
json_data = res.get_json()
record_id = json_data["data"]["id"]
increment_serial = 0
# 50 times for edit record is enough to make serial > 99
# record edit increment serial twice at time
while increment_serial < 50:
data = {
"zone": "company.com",
"owner": "txt1",
"rtype": "TXT",
"rdata": f"{increment_serial}",
"ttl": 7200,
}
res = client.put(
f"/api/record/edit/{record_id}", data=data, headers=headers
)
edit_record_data = res.get_json()
increment_serial += 1
assert edit_record_data["code"] == 429
assert edit_record_data["message"] == "Zone Change Limit Reached"
# ensure correct serial
serial_resource = record_api.get_serial_resource("company.com")
today_date = helpers.soa_time_set()
assert serial_resource["serial_counter"] == "98"
assert serial_resource["serial_date"] == today_date
assert serial_resource["serial"] == f"{today_date}98"
#
# if user waits until tomorrow
#
def fake_soa_time_set():
tomorrow_date = datetime.datetime.now() + datetime.timedelta(days=1)
return tomorrow_date.strftime("%Y%m%d")
monkeypatch.setattr(app.helpers.helpers, "soa_time_set", fake_soa_time_set)
data = {
"zone": "company.com",
"owner": "txt1",
"rtype": "TXT",
"rdata": "random text",
"ttl": 7200,
}
res = client.put(f"/api/record/edit/{record_id}", data=data, headers=headers)
edit_record_data = res.get_json()
assert edit_record_data["code"] == 200
# ensure correct serial
serial_resource = record_api.get_serial_resource("company.com")
today_date = helpers.soa_time_set()
assert serial_resource["serial_counter"] == "03"
assert serial_resource["serial_date"] == today_date
assert serial_resource["serial"] == f"{today_date}03"
| 35.818985
| 85
| 0.570442
| 1,982
| 16,226
| 4.497982
| 0.079717
| 0.066181
| 0.033651
| 0.066629
| 0.858553
| 0.834661
| 0.828716
| 0.811441
| 0.803702
| 0.784745
| 0
| 0.016262
| 0.291323
| 16,226
| 452
| 86
| 35.89823
| 0.759023
| 0.130285
| 0
| 0.718213
| 0
| 0
| 0.211747
| 0.053394
| 0
| 0
| 0
| 0
| 0.123711
| 1
| 0.037801
| false
| 0
| 0.013746
| 0
| 0.061856
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9989805dfd30f3540a38e2c6795e0635e04e6c79
| 6,640
|
py
|
Python
|
src/genie/libs/parser/dell/os10/tests/ShowIPInterfaceBrief/equal/golden_output_expected.py
|
DataKnox/genieparser
|
267a5d6be86816e0728ca55fb4fc653cd6954799
|
[
"Apache-2.0"
] | null | null | null |
src/genie/libs/parser/dell/os10/tests/ShowIPInterfaceBrief/equal/golden_output_expected.py
|
DataKnox/genieparser
|
267a5d6be86816e0728ca55fb4fc653cd6954799
|
[
"Apache-2.0"
] | null | null | null |
src/genie/libs/parser/dell/os10/tests/ShowIPInterfaceBrief/equal/golden_output_expected.py
|
DataKnox/genieparser
|
267a5d6be86816e0728ca55fb4fc653cd6954799
|
[
"Apache-2.0"
] | 2
|
2021-10-18T20:13:11.000Z
|
2022-02-07T06:05:28.000Z
|
expected_output = {
'ints': {
'Ethernet 1/1/1': {
'ip_address': 'unassigned',
'ok': True,
'method': 'unset',
'status': 'up',
'protocol': 'up'
},
'Ethernet 1/1/2': {
'ip_address': 'unassigned',
'ok': True,
'method': 'unset',
'status': 'up',
'protocol': 'up'
},
'Ethernet 1/1/3': {
'ip_address': 'unassigned',
'ok': True,
'method': 'unset',
'status': 'up',
'protocol': 'up'
},
'Ethernet 1/1/4': {
'ip_address': 'unassigned',
'ok': True,
'method': 'unset',
'status': 'up',
'protocol': 'up'
},
'Ethernet 1/1/5': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/6': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/7': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/8': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/9': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/10': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/11': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/12': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/13': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/14': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/15': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/16': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/17': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/18': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/19': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/20': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/21': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/22': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/23': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/24': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/25': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/26': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/27': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/28': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/29': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/30': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/31': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Ethernet 1/1/32': {
'ip_address': 'unassigned',
'ok': False,
'method': 'unset',
'status': 'up',
'protocol': 'down'
},
'Management 1/1/1': {
'ip_address': '10.10.21.16/24',
'ok': True,
'method': 'manual',
'status': 'up',
'protocol': 'up'
},
'Vlan 1': {
'ip_address': 'unassigned',
'ok': True,
'method': 'unset',
'status': 'up',
'protocol': 'up'
}
}
}
| 27.438017
| 43
| 0.356476
| 515
| 6,640
| 4.528155
| 0.099029
| 0.030017
| 0.233276
| 0.29717
| 0.939966
| 0.933962
| 0.933962
| 0.933962
| 0.933962
| 0.933962
| 0
| 0.037297
| 0.462952
| 6,640
| 242
| 44
| 27.438017
| 0.616657
| 0
| 0
| 0.694215
| 0
| 0
| 0.345129
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
515cd4a8a58ec1116897bfd19eee72f4e6a75756
| 273
|
py
|
Python
|
IPython/lib/tests/test_imports.py
|
pyarnold/ipython
|
c4797f7f069d0a974ddfa1e4251c7550c809dba0
|
[
"BSD-3-Clause-Clear"
] | 1
|
2020-12-18T01:07:55.000Z
|
2020-12-18T01:07:55.000Z
|
IPython/lib/tests/test_imports.py
|
pyarnold/ipython
|
c4797f7f069d0a974ddfa1e4251c7550c809dba0
|
[
"BSD-3-Clause-Clear"
] | null | null | null |
IPython/lib/tests/test_imports.py
|
pyarnold/ipython
|
c4797f7f069d0a974ddfa1e4251c7550c809dba0
|
[
"BSD-3-Clause-Clear"
] | null | null | null |
# encoding: utf-8
from IPython.testing import decorators as dec
def test_import_backgroundjobs():
from IPython.lib import backgroundjobs
def test_import_deepreload():
from IPython.lib import deepreload
def test_import_demo():
from IPython.lib import demo
| 18.2
| 45
| 0.776557
| 37
| 273
| 5.567568
| 0.432432
| 0.213592
| 0.18932
| 0.291262
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004386
| 0.164835
| 273
| 14
| 46
| 19.5
| 0.899123
| 0.054945
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| true
| 0
| 1
| 0
| 1.428571
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
5adca03a919465d3d26242bf460bc505071d1ffa
| 152
|
py
|
Python
|
Data.py
|
Elia1996/GestionaleVendite
|
b6dd21ef4919880095d93d4056ab1715afe1db7e
|
[
"MIT"
] | null | null | null |
Data.py
|
Elia1996/GestionaleVendite
|
b6dd21ef4919880095d93d4056ab1715afe1db7e
|
[
"MIT"
] | null | null | null |
Data.py
|
Elia1996/GestionaleVendite
|
b6dd21ef4919880095d93d4056ab1715afe1db7e
|
[
"MIT"
] | null | null | null |
import datetime
def Hour():
return datetime.datetime.now().strftime("%H:%M")
def Data():
return datetime.datetime.now().strftime("%d/%m/%Y")
| 16.888889
| 55
| 0.651316
| 21
| 152
| 4.714286
| 0.571429
| 0.282828
| 0.444444
| 0.505051
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138158
| 152
| 8
| 56
| 19
| 0.755725
| 0
| 0
| 0
| 0
| 0
| 0.086093
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| true
| 0
| 0.2
| 0.4
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 9
|
518745a0eebc395ab761ced26477df17f991b6bb
| 108
|
py
|
Python
|
tests/models_example.py
|
BigFishMaster/tnt
|
8b80bb3b194eb87ac18924428ef0924c2fb263c5
|
[
"BSD-3-Clause"
] | 3
|
2020-12-18T08:50:47.000Z
|
2020-12-18T08:50:55.000Z
|
tests/models_example.py
|
BigFishMaster/tnt
|
8b80bb3b194eb87ac18924428ef0924c2fb263c5
|
[
"BSD-3-Clause"
] | 5
|
2021-03-19T11:49:52.000Z
|
2022-03-12T00:21:18.000Z
|
tests/models_example.py
|
BigFishMaster/tnt
|
8b80bb3b194eb87ac18924428ef0924c2fb263c5
|
[
"BSD-3-Clause"
] | 1
|
2021-04-20T04:36:40.000Z
|
2021-04-20T04:36:40.000Z
|
class Model:
def __init__(self):
pass
class Optimizer:
def __init__(self):
pass
| 9.818182
| 23
| 0.574074
| 12
| 108
| 4.5
| 0.583333
| 0.259259
| 0.407407
| 0.555556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.351852
| 108
| 10
| 24
| 10.8
| 0.771429
| 0
| 0
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
cfc528487c2f09d697eca1b0a7a489d118353bf2
| 6,825
|
py
|
Python
|
TEST_DATA.py
|
GundlackFelixDEV/pdf-template-service
|
ccd5133b00fed88ca60063fa4e22401c78bb18cb
|
[
"MIT"
] | null | null | null |
TEST_DATA.py
|
GundlackFelixDEV/pdf-template-service
|
ccd5133b00fed88ca60063fa4e22401c78bb18cb
|
[
"MIT"
] | null | null | null |
TEST_DATA.py
|
GundlackFelixDEV/pdf-template-service
|
ccd5133b00fed88ca60063fa4e22401c78bb18cb
|
[
"MIT"
] | null | null | null |
PROFILE = {
"reciepientsFullName": "Max Mustermann",
"lastName": "Mustermann",
"title": "Mr.",
"reciepientsAddress": "Musterstraße 11",
"zipCode": "123456",
"city": "Musterhausen",
"IBAN": "DE07123412341234123412"
}
NF_FORM = {
"proc_agency": "USAG Grafenwoehr,<br>HQUSAG Grafenwoer,<br>Tax Relieve Office MWW,<br>Tax Reliev, Unit 2810",
"ocr_OrderNr": "GR-NF1-189559",
"ocr_ValidFrom": "09-2021",
"ocr_ValidUntil": "09-2022",
}
INVOICE = {
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"InvoiceNr": "A-10000-01-2109-GR-NF1-189559.1",
"Period": "August 2021",
"Date": "1.10.2021"
}
RECEITS = [
{
"vendor": {
"name": "Muster Vendor",
"ustdid": "xxx-xxx-xxxxxx",
"RemononID": "48483",
"ocr_MerchantStreet": "Am Heuballenhof 28",
"ocr_MerchantCity": "Guenzierweiler",
"ocr_MerchantPostcode": "3718",
"ocr_VatNumber": "DE999999999",
"ocr_TaxNumber": "255/383/332"
},
"line_items": [{
"ocr_Quantity": 3,
"ocr_ProductName": "Playstation",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}, {
"ocr_Quantity": 1,
"ocr_ProductName": "Other Product",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}],
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"ocr_Date": "12.12.2021 - 18:29",
"romononID": "48483",
"invoiceNr": "X"
},
{
"vendor": {
"name": "Muster Vendor",
"ustdid": "xxx-xxx-xxxxxx",
"RemononID": "48483",
"ocr_MerchantStreet": "Am Heuballenhof 28",
"ocr_MerchantCity": "Guenzierweiler",
"ocr_MerchantPostcode": "3718",
"ocr_VatNumber": "DE999999999",
"ocr_TaxNumber": "255/383/332"
},
"line_items": [{
"ocr_Quantity": 3,
"ocr_ProductName": "Playstation",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}, {
"ocr_Quantity": 1,
"ocr_ProductName": "Other Product",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}],
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"ocr_Date": "12.12.2021 - 18:29",
"romononID": "48483",
"invoiceNr": "X"
},
{
"vendor": {
"name": "Muster Vendor",
"ustdid": "xxx-xxx-xxxxxx",
"RemononID": "48483",
"ocr_MerchantStreet": "Am Heuballenhof 28",
"ocr_MerchantCity": "Guenzierweiler",
"ocr_MerchantPostcode": "3718",
"ocr_VatNumber": "DE999999999",
"ocr_TaxNumber": "255/383/332"
},
"line_items": [{
"ocr_Quantity": 3,
"ocr_ProductName": "Playstation",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}, {
"ocr_Quantity": 1,
"ocr_ProductName": "Other Product",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}],
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"ocr_Date": "12.12.2021 - 18:29",
"romononID": "48483",
"invoiceNr": "X"
},
{
"vendor": {
"name": "Muster Vendor",
"ustdid": "xxx-xxx-xxxxxx",
"RemononID": "48483",
"ocr_MerchantStreet": "Am Heuballenhof 28",
"ocr_MerchantCity": "Guenzierweiler",
"ocr_MerchantPostcode": "3718",
"ocr_VatNumber": "DE999999999",
"ocr_TaxNumber": "255/383/332"
},
"line_items": [{
"ocr_Quantity": 3,
"ocr_ProductName": "Playstation",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}, {
"ocr_Quantity": 1,
"ocr_ProductName": "Other Product",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}],
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"ocr_Date": "12.12.2021 - 18:29",
"romononID": "48483",
"invoiceNr": "X"
},
{
"vendor": {
"name": "Muster Vendor",
"ustdid": "xxx-xxx-xxxxxx",
"RemononID": "48483",
"ocr_MerchantStreet": "Am Heuballenhof 28",
"ocr_MerchantCity": "Guenzierweiler",
"ocr_MerchantPostcode": "3718",
"ocr_VatNumber": "DE999999999",
"ocr_TaxNumber": "255/383/332"
},
"line_items": [{
"ocr_Quantity": 3,
"ocr_ProductName": "Playstation",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}, {
"ocr_Quantity": 1,
"ocr_ProductName": "Other Product",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}],
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"ocr_Date": "12.12.2021 - 18:29",
"romononID": "48483",
"invoiceNr": "X"
},{
"vendor": {
"name": "Muster Vendor",
"ustdid": "xxx-xxx-xxxxxx",
"RemononID": "48483",
"ocr_MerchantStreet": "Am Heuballenhof 28",
"ocr_MerchantCity": "Guenzierweiler",
"ocr_MerchantPostcode": "3718",
"ocr_VatNumber": "DE999999999",
"ocr_TaxNumber": "255/383/332"
},
"line_items": [{
"ocr_Quantity": 3,
"ocr_ProductName": "Playstation",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}, {
"ocr_Quantity": 1,
"ocr_ProductName": "Other Product",
"ocr_GrossLineTotal": 119,
"remonon_GrossLineTotal": 105,
"refund": 14
}],
"TotalAmount": 119,
"TotalRemonon": 105,
"TotalRefund": 14,
"ocr_Date": "12.12.2021 - 18:29",
"romononID": "48483",
"invoiceNr": "X"
}
]
TESTINPUT = {
"title": f"Sammelrechnung {INVOICE['InvoiceNr']}",
"profile": PROFILE,
"nf_form": NF_FORM,
"invoice": INVOICE,
"receits": RECEITS
}
| 31.164384
| 117
| 0.490256
| 551
| 6,825
| 5.896552
| 0.183303
| 0.040628
| 0.073869
| 0.099723
| 0.855032
| 0.855032
| 0.842105
| 0.842105
| 0.842105
| 0.842105
| 0
| 0.118923
| 0.358095
| 6,825
| 219
| 118
| 31.164384
| 0.622689
| 0
| 0
| 0.792627
| 0
| 0.004608
| 0.474949
| 0.052886
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5c82769580fa5eccfe633c9cd1359fb4a9c2e2da
| 10,140
|
py
|
Python
|
blockbuster_clone/store/migrations/0001_initial.py
|
alexche77/blockbuster-api-clone
|
3597b6c6eb1e14b45bca233efabe2bc200a280f1
|
[
"MIT"
] | null | null | null |
blockbuster_clone/store/migrations/0001_initial.py
|
alexche77/blockbuster-api-clone
|
3597b6c6eb1e14b45bca233efabe2bc200a280f1
|
[
"MIT"
] | null | null | null |
blockbuster_clone/store/migrations/0001_initial.py
|
alexche77/blockbuster-api-clone
|
3597b6c6eb1e14b45bca233efabe2bc200a280f1
|
[
"MIT"
] | null | null | null |
# Generated by Django 3.1.8 on 2021-04-13 07:02
from decimal import Decimal
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("movies", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="Sale",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"movement_type",
models.IntegerField(
choices=[
(1, "Sale"),
(2, "Rent"),
(3, "Rent Return"),
(4, "Defective Return"),
(5, "Purchase"),
(6, "Adjustment"),
]
),
),
("price", models.DecimalField(decimal_places=2, max_digits=5)),
("created_at", models.DateTimeField(auto_now_add=True)),
(
"movie",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT, to="movies.movie"
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
to=settings.AUTH_USER_MODEL,
),
),
],
options={
"abstract": False,
},
),
migrations.CreateModel(
name="RentReturn",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"movement_type",
models.IntegerField(
choices=[
(1, "Sale"),
(2, "Rent"),
(3, "Rent Return"),
(4, "Defective Return"),
(5, "Purchase"),
(6, "Adjustment"),
]
),
),
("price", models.DecimalField(decimal_places=2, max_digits=5)),
("created_at", models.DateTimeField(auto_now_add=True)),
(
"movie",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT, to="movies.movie"
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
to=settings.AUTH_USER_MODEL,
),
),
],
options={
"abstract": False,
},
),
migrations.CreateModel(
name="RentRequest",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"movement_type",
models.IntegerField(
choices=[
(1, "Sale"),
(2, "Rent"),
(3, "Rent Return"),
(4, "Defective Return"),
(5, "Purchase"),
(6, "Adjustment"),
]
),
),
("price", models.DecimalField(decimal_places=2, max_digits=5)),
("created_at", models.DateTimeField(auto_now_add=True)),
(
"penalty_fee",
models.DecimalField(
decimal_places=2, default=Decimal("0.00"), max_digits=5
),
),
(
"movie",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT, to="movies.movie"
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
to=settings.AUTH_USER_MODEL,
),
),
],
options={
"abstract": False,
},
),
migrations.CreateModel(
name="Purchase",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"movement_type",
models.IntegerField(
choices=[
(1, "Sale"),
(2, "Rent"),
(3, "Rent Return"),
(4, "Defective Return"),
(5, "Purchase"),
(6, "Adjustment"),
]
),
),
("price", models.DecimalField(decimal_places=2, max_digits=5)),
("created_at", models.DateTimeField(auto_now_add=True)),
(
"movie",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT, to="movies.movie"
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
to=settings.AUTH_USER_MODEL,
),
),
],
options={
"abstract": False,
},
),
migrations.CreateModel(
name="InventoryAdjustment",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"movement_type",
models.IntegerField(
choices=[
(1, "Sale"),
(2, "Rent"),
(3, "Rent Return"),
(4, "Defective Return"),
(5, "Purchase"),
(6, "Adjustment"),
]
),
),
("price", models.DecimalField(decimal_places=2, max_digits=5)),
("created_at", models.DateTimeField(auto_now_add=True)),
("reason", models.CharField(max_length=255)),
(
"movie",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT, to="movies.movie"
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
to=settings.AUTH_USER_MODEL,
),
),
],
options={
"abstract": False,
},
),
migrations.CreateModel(
name="DefectiveReturn",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"movement_type",
models.IntegerField(
choices=[
(1, "Sale"),
(2, "Rent"),
(3, "Rent Return"),
(4, "Defective Return"),
(5, "Purchase"),
(6, "Adjustment"),
]
),
),
("price", models.DecimalField(decimal_places=2, max_digits=5)),
("created_at", models.DateTimeField(auto_now_add=True)),
("reason", models.CharField(max_length=255)),
(
"movie",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT, to="movies.movie"
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
to=settings.AUTH_USER_MODEL,
),
),
],
options={
"abstract": False,
},
),
]
| 33.913043
| 86
| 0.327219
| 592
| 10,140
| 5.45777
| 0.150338
| 0.034664
| 0.056329
| 0.088517
| 0.873104
| 0.8632
| 0.8632
| 0.8632
| 0.8632
| 0.8632
| 0
| 0.018165
| 0.576529
| 10,140
| 298
| 87
| 34.026846
| 0.73428
| 0.004438
| 0
| 0.8
| 1
| 0
| 0.078867
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.013793
| 0
| 0.027586
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
5c9782d0e481208d23529b85afe2d323b520a7a1
| 47
|
py
|
Python
|
TestA.py
|
RajeshMIT/JobScraping
|
302b95e1f29400a3970c354dd13d9d71a757e2e6
|
[
"MIT"
] | null | null | null |
TestA.py
|
RajeshMIT/JobScraping
|
302b95e1f29400a3970c354dd13d9d71a757e2e6
|
[
"MIT"
] | null | null | null |
TestA.py
|
RajeshMIT/JobScraping
|
302b95e1f29400a3970c354dd13d9d71a757e2e6
|
[
"MIT"
] | null | null | null |
a = [1,2,3
2,4,5]
print(a)
b = a[-1:]
| 9.4
| 12
| 0.340426
| 12
| 47
| 1.333333
| 0.666667
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.233333
| 0.361702
| 47
| 5
| 13
| 9.4
| 0.3
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.25
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
5cbb8641b95d18e1e3d495561a107d4a206ce1c0
| 3,444
|
py
|
Python
|
tests/test_QGrid___eq__.py
|
nivlekp/abjad-ext-nauert
|
de39600b84eec8b326441f54bf388802d1584c8e
|
[
"MIT"
] | 2
|
2020-12-06T20:54:13.000Z
|
2021-04-15T16:02:28.000Z
|
tests/test_QGrid___eq__.py
|
nivlekp/abjad-ext-nauert
|
de39600b84eec8b326441f54bf388802d1584c8e
|
[
"MIT"
] | 34
|
2018-06-16T17:40:35.000Z
|
2022-03-20T14:43:23.000Z
|
tests/test_QGrid___eq__.py
|
nivlekp/abjad-ext-nauert
|
de39600b84eec8b326441f54bf388802d1584c8e
|
[
"MIT"
] | 1
|
2020-10-16T13:07:54.000Z
|
2020-10-16T13:07:54.000Z
|
import abjadext.nauert
def test_QGrid___eq___01():
a = abjadext.nauert.QGrid()
b = abjadext.nauert.QGrid()
assert format(a) == format(b)
assert a != b
def test_QGrid___eq___02():
a = abjadext.nauert.QGrid(
root_node=abjadext.nauert.QGridContainer(
preprolated_duration=1,
children=[
abjadext.nauert.QGridLeaf(
preprolated_duration=1,
q_event_proxies=[
abjadext.nauert.QEventProxy(
abjadext.nauert.SilentQEvent(100), 0.5
)
],
)
],
),
next_downbeat=abjadext.nauert.QGridLeaf(
preprolated_duration=1,
q_event_proxies=[
abjadext.nauert.QEventProxy(abjadext.nauert.TerminalQEvent(200), 0.9)
],
),
)
b = abjadext.nauert.QGrid(
root_node=abjadext.nauert.QGridContainer(
preprolated_duration=1,
children=[
abjadext.nauert.QGridLeaf(
preprolated_duration=1,
q_event_proxies=[
abjadext.nauert.QEventProxy(
abjadext.nauert.SilentQEvent(100), 0.5
)
],
)
],
),
next_downbeat=abjadext.nauert.QGridLeaf(
preprolated_duration=1,
q_event_proxies=[
abjadext.nauert.QEventProxy(abjadext.nauert.TerminalQEvent(200), 0.9)
],
),
)
assert format(a) == format(b)
assert a != b
def test_QGrid___eq___03():
a = abjadext.nauert.QGrid()
b = abjadext.nauert.QGrid(
root_node=abjadext.nauert.QGridContainer(
preprolated_duration=1,
children=[
abjadext.nauert.QGridLeaf(
preprolated_duration=1,
q_event_proxies=[
abjadext.nauert.QEventProxy(
abjadext.nauert.SilentQEvent(100), 0.5
)
],
)
],
)
)
c = abjadext.nauert.QGrid(
next_downbeat=abjadext.nauert.QGridLeaf(
preprolated_duration=1,
q_event_proxies=[
abjadext.nauert.QEventProxy(abjadext.nauert.TerminalQEvent(200), 0.9)
],
)
)
d = (
abjadext.nauert.QGrid(
root_node=abjadext.nauert.QGridContainer(
preprolated_duration=1,
children=[
abjadext.nauert.QGridLeaf(
preprolated_duration=1,
q_event_proxies=[
abjadext.nauert.QEventProxy(
abjadext.nauert.SilentQEvent(100), 0.5
)
],
)
],
),
next_downbeat=abjadext.nauert.QGridLeaf(
preprolated_duration=1,
q_event_proxies=[
abjadext.nauert.QEventProxy(
abjadext.nauert.TerminalQEvent(200), 0.9
)
],
),
),
)
assert a != b
assert a != c
assert a != d
assert b != c
assert b != d
assert c != d
| 29.947826
| 85
| 0.463705
| 272
| 3,444
| 5.661765
| 0.136029
| 0.336364
| 0.155844
| 0.176623
| 0.932468
| 0.932468
| 0.932468
| 0.932468
| 0.893506
| 0.893506
| 0
| 0.030655
| 0.450639
| 3,444
| 114
| 86
| 30.210526
| 0.783298
| 0
| 0
| 0.71028
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093458
| 1
| 0.028037
| false
| 0
| 0.009346
| 0
| 0.037383
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
7a927e322c5b074520434339070daf7e2d615386
| 28,633
|
py
|
Python
|
BivariateShapley/shapley_value_functions.py
|
anonymous29387491/iclr2022
|
60c5727f8519e64610b632d074510587fb7ff692
|
[
"MIT"
] | 2
|
2022-03-15T05:28:48.000Z
|
2022-03-17T16:23:45.000Z
|
BivariateShapley/shapley_value_functions.py
|
anonymous29387491/iclr2022
|
60c5727f8519e64610b632d074510587fb7ff692
|
[
"MIT"
] | null | null | null |
BivariateShapley/shapley_value_functions.py
|
anonymous29387491/iclr2022
|
60c5727f8519e64610b632d074510587fb7ff692
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn.functional as F
from utils_shapley import *
class eval_Syn0():
def __init__(self,c=5, **kwargs):
self.c = c
self.j = None
self.i = None
def init_baseline(self,x=np.ones((1,3)), c = 5,j = None, i = None, fixed_present = True, baseline_value = 0, **kwargs):
self.x_baseline = x
self.j = j
self.i = i
self.fixed_present = fixed_present
self.baseline_value = baseline_value # if baseline is not zero
def __call__(self, x, **kwargs):
# Shapley Excess--------------------------------------
# feature i and j are assumed to be in the same coalition, therefore j is present if i is present
if self.i is not None:
j_indicator = (self.x_baseline[:, self.i] == x[:,self.i]).reshape(-1,1)*1 # 1 if j should be present, 0 if j should be absent
j_present = self.x_baseline[:, self.j].repeat(x.shape[0], axis = 0).reshape(-1, 1)
j_absent = (np.zeros((x.shape[0], self.x_baseline.shape[1])) + self.baseline_value)[:,self.j].reshape(-1,1)
j_vector = j_indicator * j_present + (1-j_indicator) * j_absent
x = np_insert(x, j_vector, index = self.j) #
#-----------------------------------------------------
# Interaction Shapley---------------------------------
if (self.j is not None) and (self.i is None): #
if self.fixed_present: #
j_vector = self.x_baseline[:, self.j].repeat(x.shape[0], axis = 0).reshape(x.shape[0], -1)
x = np_insert(x, j_vector, index = self.j) #
else: #
j_vector = (np.zeros((x.shape[0], self.x_baseline.shape[1])) + self.baseline_value)[:,self.j].reshape(-1,1)
x = np_insert(x, j_vector, index = self.j) #
#-----------------------------------------------------
#return x.sum(axis = 1) + self.c * x.prod(axis = 1)
#return 0.5*(x[:,0] + x[:,1])*(1-x[:,2]) + x[:,2]
#return (((x == 1).max(axis = 1)*1 + (x == 0).max(axis = 1)*1 == 2)*1).reshape(-1)
return 5*x[:,0] + x[:,1] + x[:,0] * x[:,1] - 8*x[:,3] - 2*x[:,3] * x[:,3]
class eval_glove():
def __init__(self, **kwargs):
pass
def init_baseline(self, **kwargs):
pass
def __call__(self, x, **kwargs):
n_0 = len(np.where(x == 0)[1]) # number of Left Gloves
n_1 = len(np.where(x == 1)[1]) # number of Right Gloves
if n_0 > 0 and n_1 > 0:
return 1
else:
return 0
class eval_MLP():
def __init__(self, model, binary = True, reshape = False):
self.model = model
self.model.eval()
self.baseline = None
self.binary = binary
self.j = None
self.i = None
self.baseline_value = 0
self.reshape = reshape
def init_baseline(self, x, j = None, i = None, fixed_present = True, baseline_value = 0, **kwargs):
'''
set baseline prediction for original non-perturbed x value
args:
x: single sample. numpy array. 1 x d
'''
_, self.d = x.shape
if self.binary:
self.baseline = torch.sigmoid(self.model(numpy2cuda(x)))
else:
self.baseline = self.model(numpy2cuda(x)).argmax(dim = 1)
self.x_baseline = x
self.j = j
self.i = i
self.fixed_present = fixed_present
self.baseline_value = baseline_value # if baseline is not zero
def forward(self, x):
'''
forward pass of model, returns predictions.
args:
data: list of np arrays (note, this is different __call__)
return:
P(y|x) and predictions
'''
x = numpy2cuda(x)
x = x.type(dtype = torch.float32)
with torch.no_grad():
output = self.model(x)
if self.binary:
pred = output >= 0.0
else:
pred = output.max(1, keepdim=True)[1] # Calculate Predictions
return tensor2numpy(output), tensor2numpy(pred)
def eval_accy(self, x, label):
'''
given samples and labels, calculate accuracy
args:
x: np matrix
label: np array of labels
'''
_, pred = self.forward(x)
pred = numpy2cuda(pred)
label = numpy2cuda(label)
if self.binary:
truth = label >= 0.5
accy = pred.eq(truth).sum().item()
else:
accy = pred.eq(label.view_as(pred)).sum().item()
return accy/len(label)
def __call__(self, x, **kwargs):
'''
Note: The input to Shapley Function will be flattened. Therefore, it may be necessary to reshape x prior to a forward pass.
'''
if self.baseline is None: raise Exception('Need to first initialize baseline in evaluation function!')
# Shapley Excess--------------------------------------
# feature i and j are assumed to be in the same coalition, therefore j is present if i is present
if self.i is not None:
j_indicator = (self.x_baseline[:, self.i] == x[:,self.i]).reshape(-1,1)*1 # 1 if j should be present, 0 if j should be absent
j_present = self.x_baseline[:, self.j].repeat(x.shape[0], axis = 0).reshape(-1, 1)
j_absent = (np.zeros((x.shape[0], self.x_baseline.shape[1])) + self.baseline_value)[:,self.j].reshape(-1,1)
j_vector = j_indicator * j_present + (1-j_indicator) * j_absent
x = np_insert(x, j_vector, index = self.j) #
#-----------------------------------------------------
# Interaction Shapley---------------------------------
if (self.j is not None) and (self.i is None): #
if self.fixed_present: #
j_vector = self.x_baseline[:, self.j].repeat(x.shape[0], axis = 0).reshape(x.shape[0], -1)
x = np_insert(x, j_vector, index = self.j) #
else: #
j_vector = (np.zeros((x.shape[0], self.x_baseline.shape[1])) + self.baseline_value)[:,self.j].reshape(-1,1)
x = np_insert(x, j_vector, index = self.j) #
#-----------------------------------------------------
with torch.no_grad():
x = numpy2cuda(x).type(dtype=torch.float32)
pred = self.model(x)
if self.binary:
pred = torch.sigmoid(pred)
if self.reshape:
output = tensor2numpy(pred).reshape(-1, 1)
output = np.concatenate((np.ones_like(output) - output, output), axis = 1)
return output
if self.baseline < 0.5: pred = 1-pred
else:
pred = torch.exp(-F.cross_entropy(pred, self.baseline.expand(pred.shape[0]), reduction = 'none'))
return tensor2numpy(pred)
class eval_nlp_binary_rnn():
'''
note: this is for a rnn that requires length parameter
'''
def __init__(self, model, reshape = False, **kwargs):
self.model = model
self.model.eval()
self.baseline = None
self.j = None
self.i = None
self.reshape = reshape
def init_baseline(self, x, j = None, i=None, fixed_present = True, baseline_value = 0, **kwargs):
'''
set baseline prediction for original non-perturbed x value
'''
self.x_baseline = x
self.j = j
self.i = i
self.fixed_present = fixed_present
self.x_lens = torch.tensor(x.shape[1], dtype=torch.int64).reshape(1)
self.baseline = torch.sigmoid(self.model(numpy2cuda(x), self.x_lens))
self.baseline_value = baseline_value # if baseline is not zero
def forward(self, data, data_lens = None):
'''
forward pass of model, returns predictions.
args:
data: list of np arrays (note, this is different __call__)
return:
P(y|x) and predictions
'''
if type(data) == list:
x = []
x_len = []
for tkn_list in data:
if len(tkn_list[0, :]) < 400:
tmp = np.concatenate((tkn_list[0, :], np.zeros(400 - len(tkn_list[0, :]), dtype = 'int')), axis = 0)
tmp_len = len(tkn_list[0, :])
else:
tmp = tkn_list[0,:400]
tmp_len = 400
x.append(tmp)
x_len.append(tmp_len)
x = np.array(x, dtype = 'int')
x = numpy2cuda(x)
x_len = list2cuda(x_len)
elif type(data) == np.ndarray:
x = numpy2cuda(data.astype('intc'))
if data_lens is None:
x_len = tensor2cuda(torch.zeros(x.shape[0], dtype = torch.int32)+400)
else:
x_len = numpy2cuda(data_lens)
elif type(data) == torch.Tensor:
x = tensor2cuda(data)
if data_lens is None:
x_len = tensor2cuda(torch.zeros(x.shape[0], dtype = torch.int32)+400)
else:
x_len = tensor2cuda(data_lens)
with torch.no_grad():
output = self.model(x, x_len)
pred = output >= 0.0
return tensor2numpy(torch.sigmoid(output)), tensor2numpy(pred)
def eval_accy(self, data, label, data_lens = None):
'''
given samples and labels, calculate accuracy
args:
data: list of np arrays (note, this is different __call__)
label: np array of labels
'''
_, pred = self.forward(data, data_lens)
pred = numpy2cuda(pred)
label = numpy2cuda(label)
truth = label >= 0.5
accy = pred.eq(truth).sum().item()
return accy / len(label)
def __call__(self, x, **kwargs):
if self.baseline is None: raise Exception('Need to first initialize baseline in evaluation function!')
with torch.no_grad():
# Shapley Excess--------------------------------------
# feature i and j are assumed to be in the same coalition, therefore j is present if i is present
if self.i is not None:
j_indicator = (self.x_baseline[:, self.i] == x[:,self.i]).reshape(-1,1)*1 # 1 if j should be present, 0 if j should be absent
j_present = self.x_baseline[:, self.j].repeat(x.shape[0], axis = 0).reshape(-1, 1)
j_absent = (np.zeros((x.shape[0], self.x_baseline.shape[1])) + self.baseline_value)[:,self.j].reshape(-1,1)
j_vector = j_indicator * j_present + (1-j_indicator) * j_absent
x = np_insert(x, j_vector, index = self.j) #
#-----------------------------------------------------
# Interaction Shapley---------------------------------
if (self.j is not None) and (self.i is None): #
if self.fixed_present: #
j_vector = self.x_baseline[:, self.j].repeat(x.shape[0], axis = 0).reshape(x.shape[0], -1)
x = np_insert(x, j_vector, index = self.j) #
else: #
j_vector = np.zeros((x.shape[0], 1)) #
x = np_insert(x, j_vector, index = self.j) #
#-----------------------------------------------------
x = numpy2cuda(x.astype('int'))
#X_lens = torch.tensor(X.shape[1], dtype=torch.int64).reshape(1)
pred = self.model(x, self.x_lens.expand(x.shape[0]))
pred = torch.sigmoid(pred)
if self.reshape:
output = tensor2numpy(pred).reshape(-1, 1)
output = np.concatenate((np.ones_like(output) - output, output), axis = 1)
return output
if self.baseline < 0.5: pred = 1-pred
return pred.cpu().detach().numpy()
class eval_nlp_binary_cnn():
##### NEEDS TO BE UPDATED ####
def __init__(self, model, max_length = 400, **kwargs):
self.model = model
self.model.eval()
self.max_length = max_length
self.baseline = None
self.j = None
self.i = None
def init_baseline(self, x, j = None, fixed_present = True, baseline_value = 0, **kwargs):
'''
set baseline prediction for original non-perturbed x value
'''
self.x_baseline = x
self.j = j
self.fixed_present = fixed_present
self.baseline = torch.sigmoid(self.model(numpy2cuda(x)))
self.baseline_value = baseline_value # if baseline is not zero
def forward(self, data):
'''
forward pass of model, returns predictions.
args:
data: list of np arrays (note, this is different __call__)
return:
P(y|x) and predictions
'''
x = []
x_len = []
for tkn_list in data:
if len(tkn_list[0, :]) < 400:
tmp = np.concatenate((tkn_list[0, :], np.zeros(400 - len(tkn_list[0, :]), dtype = 'int')), axis = 0)
tmp_len = len(tkn_list[0, :])
else:
tmp = tkn_list[0,:400]
tmp_len = 400
x.append(tmp)
x_len.append(tmp_len)
x = np.array(x, dtype = 'int')
x = numpy2cuda(x)
x = x.long()
with torch.no_grad():
output = self.model(x)
pred = (output >= 0.0)*1
return tensor2numpy(torch.sigmoid(output)), tensor2numpy(pred)
def eval_accy(self, data, label):
'''
given samples and labels, calculate accuracy
args:
data: list of np arrays (note, this is different __call__)
label: np array of labels
'''
_, pred = self.forward(data)
pred = numpy2cuda(pred)
label = numpy2cuda(label)
truth = label >= 0.5
accy = pred.eq(truth).sum().item()
return accy / len(label)
def __call__(self, x, **kwargs):
if self.baseline is None: raise Exception('Need to first initialize baseline in evaluation function!')
with torch.no_grad():
# Interaction Shapley---------------------------------
if self.j is not None: #
if self.fixed_present: #
j_vector = self.x_baseline[:, self.j].repeat(x.shape[0], axis = 0).reshape(x.shape[0], -1)
x = np_insert(x, j_vector, index = self.j) #
else: #
j_vector = (np.zeros((x.shape[0], self.x_baseline.shape[1])) + self.baseline_value)[:,self.j]
x = np_insert(x, j_vector, index = self.j) #
#-----------------------------------------------------
x = numpy2cuda(x.astype('int'))
pred = self.model(x)
pred = torch.sigmoid(pred)
if self.baseline < 0.5: pred = 1-pred
return tensor2numpy(pred)
class eval_image():
def __init__(self, model, binary = True, reshape = False):
self.model = model
self.model.eval()
self.baseline = None
self.binary = binary
self.reshape = reshape
def init_baseline(self, x, **kwargs):
'''
set baseline prediction for original non-perturbed x value
args:
x: single sample. numpy array. 1 x c x h x w
'''
x = numpy2cuda(x)
_, self.c, self.h, self.w = x.shape
if self.binary:
self.baseline = torch.sigmoid(self.model(x))
else:
self.baseline = self.model(x).argmax(dim = 1)
def forward(self, x):
'''
forward pass of model, returns predictions.
args:
data: list of np arrays (note, this is different __call__)
return:
P(y|x) and predictions
'''
x = numpy2cuda(x)
with torch.no_grad():
output = self.model(x)
if self.binary:
pred = output >= 0.0
else:
pred = output.max(1, keepdim=True)[1] # Calculate Predictions
return tensor2numpy(output), tensor2numpy(pred)
def eval_accy(self, x, label):
'''
given samples and labels, calculate accuracy
args:
x: np matrix
label: np array of labels
'''
_, pred = self.forward(x)
pred = numpy2cuda(pred)
label = numpy2cuda(label)
if self.binary:
truth = label >= 0.5
accy = pred.eq(truth).sum().item()
else:
accy = pred.eq(label.view_as(pred)).sum().item()
return accy/len(label)
def __call__(self, x, **kwargs):
'''
Note: The input to Shapley Function will be flattened. Therefore, it may be necessary to reshape x prior to a forward pass.
'''
if self.baseline is None: raise Exception('Need to first initialize baseline in evaluation function!')
with torch.no_grad():
x = numpy2cuda(x)
x = x.reshape(-1, self.c, self.h, self.w).type(dtype=torch.float32)
pred = self.model(x)
if self.reshape:
pred = tensor2numpy(pred)
return pred
if self.binary:
pred = torch.sigmoid(pred)
if self.baseline < 0.5: pred = 1-pred
else:
pred = torch.exp(-F.cross_entropy(pred, self.baseline.expand(pred.shape[0]), reduction = 'none'))
return pred.cpu().detach().numpy()
class eval_image_superpixel():
def __init__(self, model, binary = True):
self.model = model
self.model.eval()
self.baseline = None
self.binary = binary
def init_baseline(self, x, num_superpixels, sp_mapping, baseline_value = 0, **kwargs):
'''
set baseline prediction for original non-perturbed x value
args:
x: single sample. numpy array. 1 x c x h x w
sp_mapping: superpixel to pixel decoder function
'''
x = numpy2cuda(x)
_, self.c, self.h, self.w = x.shape
self.x_baseline = x
# Superpixel mapping
self.sp_mapping = sp_mapping
# Calculate superpixel map for current sample
_, self.segment_mask = self.sp_mapping(torch.ones((1, num_superpixels)), x_orig = x)
if self.binary:
self.baseline = torch.sigmoid(self.model(x))
else:
self.baseline = self.model(x).argmax(dim = 1)
self.baseline_value = baseline_value # if baseline is not zero
def __call__(self, x, w, **kwargs):
'''
args:
x: superpixel indicator: numpy array
w: baseline value to set for "null" pixels.
'''
if self.baseline is None: raise Exception('Need to first initialize baseline in evaluation function!')
w = numpy2cuda(w)
if len(w[0, ...]) == len(x[0, ...]):
# zero baseline
w = torch.zeros((x.shape[0], self.c, self.h, self.w))
w = tensor2cuda(w)
else:
# mean baseline
w = w.reshape(-1, self.c, self.h, self.w)
with torch.no_grad():
x = numpy2cuda(x)
mask, _ = self.sp_mapping(x, x_orig = self.x_baseline, segment_mask = self.segment_mask)
mask = tensor2cuda(mask)
x = torch.mul(mask, self.x_baseline) + torch.mul(1-mask, w)
pred = self.model(x)
if self.binary:
pred = torch.sigmoid(pred)
if self.baseline < 0.5: pred = 1-pred
else:
pred = torch.exp(-F.cross_entropy(pred, self.baseline.expand(pred.shape[0]), reduction = 'none'))
return pred.cpu().detach().numpy()
import xgboost as xgb
from sklearn import metrics
class eval_XGB():
def __init__(self, model, reshape = False):
self.model = model
self.j = None
self.i = None
self.reshape = reshape
def init_baseline(self, x, j = None, i=None, fixed_present = True, baseline_value = 0, **kwargs):
'''
set baseline prediction for original non-perturbed x value
args:
x: single sample. numpy array. 1 x d
'''
_, self.d = x.shape
self.x_baseline = x
self.j = j
self.i = i
self.fixed_present = fixed_present
self.baseline = self.model.predict(xgb.DMatrix(x))
self.baseline_value = baseline_value # if baseline is not zero
def forward(self, x):
'''
forward pass of model, returns predictions.
args:
data: list of np arrays (note, this is different __call__)
return:
P(y|x) and predictions
'''
# Shapley Excess--------------------------------------
# feature i and j are assumed to be in the same coalition, therefore j is present if i is present
if self.i is not None:
j_indicator = (self.x_baseline[:, self.i] == x[:,self.i]).reshape(-1,1)*1 # 1 if j should be present, 0 if j should be absent
j_present = self.x_baseline[:, self.j].repeat(x.shape[0], axis = 0).reshape(-1, 1)
j_absent = (np.zeros((x.shape[0], self.x_baseline.shape[1])) + self.baseline_value)[:,self.j].reshape(-1,1)
j_vector = j_indicator * j_present + (1-j_indicator) * j_absent
x = np_insert(x, j_vector, index = self.j) #
#-----------------------------------------------------
# Interaction Shapley---------------------------------
if (self.j is not None) and (self.i is None): #
if self.fixed_present: #
j_vector = self.x_baseline[:, self.j].repeat(x.shape[0], axis = 0).reshape(x.shape[0], -1)
x = np_insert(x, j_vector, index = self.j) #
else: #
j_vector = np.zeros((x.shape[0], 1)) #
x = np_insert(x, j_vector, index = self.j) #
#-----------------------------------------------------
pred = self.model.predict(xgb.DMatrix(x))
return pred, (pred > 0.5)*1
def eval_accy(self, x, label):
_, pred = self.forward(x)
return metrics.accuracy_score(label, pred)
def __call__(self, x, **kwargs):
'''
Note: The input to Shapley Function will be flattened. Therefore, it may be necessary to reshape x prior to a forward pass.
'''
output, _ = self.forward(x)
if self.reshape:
output = output.reshape(-1, 1)
output = np.concatenate((np.ones_like(output) - output, output), axis = 1)
return output
if self.baseline < 0.5: output = 1-output
return output
'''
class eval_XGB_cox():
def __init__(self, model):
self.model = model
def init_baseline(self, x, **kwargs):
_, self.d = x.shape
def forward(self, x):
pred = self.model.predict(xgb.DMatrix(x), ntree_limit = 5000)
return None, pred
def eval_accy(self, x, label):
# adapted from https://github.com/slundberg/shap
_, pred = self.forward(x)
total = 0
matches = 0
for i in range(len(label)):
for j in range(len(label)):
if label[j] > 0 and abs(label[i]) > label[j]:
total += 1
if pred[j] > pred[i]:
matches += 1
return matches/total
def __call__(self, x, **kwargs):
#x = pd.DataFrame(x)
pred = self.model.predict(xgb.DMatrix(x), ntree_limit = 5000)
return pred
'''
from sklearn.ensemble import RandomForestClassifier
from sklearn import metrics
class eval_RF_binary():
def __init__(self, model, binary = True, reshape = False):
self.model = model
self.baseline = None
self.j = None
self.i = None
self.binary = binary
self.reshape = reshape
def init_baseline(self, x, j = None, i = None, fixed_present = True, baseline_value = 0, **kwargs):
'''
set baseline prediction for original non-perturbed x value
args:
x: single sample. numpy array. 1 x d
'''
_, self.d = x.shape
self.x_baseline = x
self.j = j
self.i = i
self.fixed_present = fixed_present
self.baseline = self.model.predict_proba(x)[:,1]
self.baseline_value = baseline_value # if baseline is not zero
def forward(self, x, logits = False):
'''
forward pass of model, returns predictions.
args:
data: list of np arrays (note, this is different __call__)
return:
P(y|x) and predictions
'''
# Shapley Excess--------------------------------------
# feature i and j are assumed to be in the same coalition, therefore j is present if i is present
if self.i is not None:
j_indicator = (self.x_baseline[:, self.i] == x[:,self.i]).reshape(-1,1)*1 # 1 if j should be present, 0 if j should be absent
j_present = self.x_baseline[:, self.j].repeat(x.shape[0], axis = 0).reshape(-1, 1)
j_absent = (np.zeros((x.shape[0], self.x_baseline.shape[1])) + self.baseline_value)[:,self.j].reshape(-1,1)
j_vector = j_indicator * j_present + (1-j_indicator) * j_absent
x = np_insert(x, j_vector, index = self.j) #
#-----------------------------------------------------
# Interaction Shapley---------------------------------
if (self.j is not None) and (self.i is None): #
if self.fixed_present: #
j_vector = self.x_baseline[:, self.j].repeat(x.shape[0], axis = 0).reshape(x.shape[0], -1)
x = np_insert(x, j_vector, index = self.j) #
else: #
j_vector = np.zeros((x.shape[0], 1)) #
x = np_insert(x, j_vector, index = self.j) #
#-----------------------------------------------------
x = tensor2numpy(x)
output = self.model.predict_proba(x)[:, 1]
if logits: output = np.log(np.minimum(np.maximum(output, 0.0001), 0.9999)) # logits
return output, self.model.predict(x)
def eval_accy(self, x, label):
'''
given samples and labels, calculate accuracy
args:
x: np matrix
label: np array of labels
'''
_, pred = self.forward(x)
return metrics.accuracy_score(label, pred)
def __call__(self, x,**kwargs):
'''
Note: The input to Shapley Function will be flattened. Therefore, it may be necessary to reshape x prior to a forward pass.
'''
if self.baseline is None: raise Exception('Need to first initialize baseline in evaluation function!')
output, _ = self.forward(x)
if self.reshape:
output = output.reshape(-1, 1)
output = np.concatenate((np.ones_like(output) - output, output), axis = 1)
return output
if self.baseline < 0.5: output = 1-output
return output
| 36.99354
| 142
| 0.497189
| 3,465
| 28,633
| 3.987013
| 0.066955
| 0.023525
| 0.031053
| 0.012305
| 0.869779
| 0.857039
| 0.835179
| 0.82063
| 0.806732
| 0.798118
| 0
| 0.020478
| 0.358747
| 28,633
| 773
| 143
| 37.041397
| 0.731932
| 0.187127
| 0
| 0.805226
| 0
| 0
| 0.018306
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.092637
| false
| 0.004751
| 0.016627
| 0
| 0.194774
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7aa3bc06ce88a6510c42ac13c32774a8c30eb09b
| 41,395
|
py
|
Python
|
python/getdist/gui/Resources_pyside.py
|
sjoudaki/CosmoJBD
|
3c1d029b74034b92cb2974de15e4c18637a5277e
|
[
"MIT"
] | 1
|
2020-06-04T15:29:37.000Z
|
2020-06-04T15:29:37.000Z
|
python/getdist/gui/Resources_pyside.py
|
sjoudaki/CosmoJBD
|
3c1d029b74034b92cb2974de15e4c18637a5277e
|
[
"MIT"
] | null | null | null |
python/getdist/gui/Resources_pyside.py
|
sjoudaki/CosmoJBD
|
3c1d029b74034b92cb2974de15e4c18637a5277e
|
[
"MIT"
] | null | null | null |
# Resource object code
#
# Created: sam. mars 28 17:53:16 2015
# by: The Resource Compiler for PySide (Qt v4.8.6)
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore
qt_resource_data = b"\x00\x00\x06\xe0\x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\x00\x00 \x00\x00\x00 \x08\x06\x00\x00\x00szz\xf4\x00\x00\x00\x09pHYs\x00\x00\x1b\xaf\x00\x00\x1b\xaf\x01^\x1a\x91\x1c\x00\x00\x00\x07tIME\x07\xd7\x0c\x1b\x16\x05\x11\x8ek\xb0\xdd\x00\x00\x00\x06bKGD\x00\xff\x00\xff\x00\xff\xa0\xbd\xa7\x93\x00\x00\x06mIDATx\xda\xcdW[lTU\x14]\xf7\xde\x99\xb9\xf3\xe8\xf4\x01\x08\x04\x8aR>JUb\xa6\x10\xc4\x86\xa2\x12\x22\x90HH0\x8d\xa1\xbc\x0a\x82<R\xa8\x06\x13\xd0\x0f\xe5\xcb\x98\x88\x06C\x0c\xef\xc4/\xf8 $\x02\xf1\xc3G\x08*J0\x80\x96\xd2\x82\xb4\xb4\xbc\x9f\xe9\xcbN\x87\x99{\xe7>\xdc\xfb\xf4\xe6\xdc\x19[\x22\x1f\x10\xdd\xc9\xea9=g\x9f\xbd\xd6\xde\xfb\xcc\x99\x0c\xfekS\xe0Y+\xcd\x8b\xc3\xe1\x90\x13\x8f\xebAMS\x95\xc7L\xe4\x12\xach\xd4U:;3\xbd}}f9-I\x01\xbd4Zuu\x09e\xd4\xa8}\xbd'O&\xb2\xf7\xef\xab\xde\xa1\xfc r\x1czM\xce\x1f\xb2\x17\x9b0\xc1\x1d^]\xddh65\xad\x8c\x1e<\xd8XL\xcb\x01vH\xeb\xba\x1e(-\xdd\x17\x98={\xb2VU\x05UQ\x06g\xf08\xca\xadR\xe4\xc2\xc2\xca\xcc\xb5k{\x15]\xaf\x86ad\x84\x80\xac\xaaFn\x1d9\x92\x88WT\xc04M<Is(\xb9\xd6c\xc7*\x9f'N\x00\x03\x02l\xd7\xd5z\x9a\x9bU=\x99\x84\x8d'k\xb6a\xa0\x8fZ\xcc\x9c \x1b\xa8\x80\xeb\xaa\x0e\x00+\x93\xc9\x13\xd0M\xcem\xe10\x82\xe94\x12\xba\xce\xady\xb4,]\x17\x8dt6\x1b\x89\xa0\x9cb\x96\xe8\xba/ \x9b\xe5\x84\x05\xa7\x14@\xe4\xaa\xcd\x9b9\x02\xfe\xb2m8\x89\x04\x16UW#M\x02~<t\x08e\xc9$\x8b\xf8W\xf2+\xf18\xe6\xd5\xd6\x22B\x02~;q\x02=\xe7\xce\xa1P\xd3\x06\xf6M\x93\xdb 8\x01\xef\x8f\xe38,\x80+ \x11\xa5\xcb8\x8d\xc8\x15r\x8eF\xa3x\xb5\xa6\x06\xb7JJ\x90\xe5\xfd\xa1!\xf6n\x16\x17\xb3/\x9f\x11g\xa7\xcd\x98\x81HU\x95\xf4q\xb8\x02\x1e\xa7\x14`;\x8e\xdf\x02\x0feEEPU\xb1\x0d\x97\xb2\xd2\xa9\x8c/\xcd\x9f\x8f\xae\xd2R\xe9'\xe1\x91w\x8e\x1d+|B\xa1\x10\x13\x80\x8dc\x94\x91(\xe9\xcb\x15\xf08\xa5\x00\xcbo\x81T\xdaz\xe0\x00\x1e\xb4\xb7\xc3\xab\x90@0\x18D\xe5\xdc\xb9HM\x9c\x08\xcb0dP\x9e\xa7\xca\xcb\x91\x983\x07\x81@\x00\xb6m3\x84\xf0\x07\x1d\x1dh\xdb\xbf?\xaf\x02\xdc\x02\xe6\xf4+\xe0_B\x89l*\x85\x96\xbd{\x91jk\x93\x228 \x13<7k\x16\x9c)\x95PlC\xc0\x9e\x9c@\xc5\xcc\x99\xd04-\x9f\xfc\xf2e\xb4\xec\xd9\x033\x95\x1a$\xc0\xce\xbd\x846\xa0\x88E\xc3\xe0\x0d\xff\xc6\x12\xce\xef\xd8\x81Ik\xd6 XV&+!\xca:}\x06n\x93\x18\xc0E\xe9\x8bU\xbc\xc6\xc4<\x8a\xde\x1b\x1d\xed\xb8\xb0{\x0f\x1cZ\xcb5\xdb\x13\xc0\x9cB\x80\xac\x00\x070M\x11D\x1a\xb9\xd02.\xee\xdc\x8eg\xd7\xd6C}\xa6LV\x82\x89FO\x9d\x06\xcfd\xcf\x99\xdc\xb9v\x05\x97v\xef\x80cZ\xd4\xeb\x9cg\x94\xf6\xf4\xe2\x22\xe2s\x04\xa7\x7f\x07|\x01~\x1b\x8c\x0c\x5c3\x035\x9b\x81\x92\xe9G\xfb\xce\xcf\xe1^mc\x02Y\x09\xef\x82\xf2\x5c\x0a\xd7n^A\xc7\xaem\x80\xd1\x0f\xc5\xcaP\xcb4\xc4\xc7\x8dCd\xc4\x08\xb8\xe4wf\xebV\x98\x19\x03\xd6?\xdf\x01WU\xd0}\xa1\x05J8\x82P<\x8e`8\x84\x80N\xe5t\x07T*\x06p}\xd7\xa7xz\xf5F\xb8cd;X\x00C\x08\x8b'\xbbq\xf7\xf0~\xe81\x1d\x0aGM\x1b\xe8\xbb~\x19\x1dG\x0f#\x9dL\x83-\x18\x8b\x82\xb8x7O\x80\xc2\x15H\xde\xb8\x8eL\xff\x03h\x9a\x82H,\x84Xa\x04\x91\x02\x1d\xe1h\x08z8\x08'\x12\xc2\xb1\x1f\xbeG\xd5\x92U\x928W\xc4\xaf\xdf~\x83\xe8\xd7_Q\xf5,\x98Y\xc0\xf0\xa0\x104\xa2\xb3\x99\x88\xc9]UpJ\x01B\x84\xea5\x1c\xecL=\xb6\x0d\xb8)\x036\x1d\xb6\xfa\xc9[\xd7\xd0\xf6\xda\x22T\xd7,\x91m\xc8\x05[\xd9\xdc\x05h\xee\xba\x8f\x91G\xf7\x01`a\x10\xe0m\xee\x10\x8f\x8aF\xe49\x17]\xcd\xfd\x96bu\xac!\xa0\xf9\x08\xf2\x18\xd2p\xe7\xf5\xe5x\xa5\xe1\x03\xc4b1x&o<g\xcfw\x80?\x86/,]\x87\xee7\xd6\x8a3\xc1@~,r\x17\x1c\xae\xa2\x0c\x16\xc0}au\x1a\xedi9\x224\x0a\xd4\xb5`5^\xde\xf0>\x0a\x0a\x0a\x98P\x92\x0f\xbf\xd1\x88\xa7n6\xf2\x5c\xb6\x83\xdf\x89D]=R\xb5\x0d|\xd6\x8f\xc3P!|\x1duh\x01\xb2\x02\xc2\x91A\xe9\xa7\x16\xae'\xf2\xcd\x9c9\x9338S\x22?\x0b\xfb\x8bep\xb6\xaf\xc0\xe8;M\xfcJ29\xef\x89g{\xca[\x1b\xe0\xae\xd8\xc41\xf2b*\x94\xa1;\x94\x00V\xc5\x9b\x14_@\x0dh\x14`#\x91obrV\xce\x10$\xc5WO\x0b\xf2\xb0j\x0a(_\xae\xc0\x98{\xe7\x11\x0e\x87\xa5\x10\x9eO}\xbb\x01\x91\xfa\x0fE,\x11\x93\xa1)\xc4\x85!\xef\x00\x11\xf8\x02b\xeb6\xa3\xba\xfe=I\xce\x99q\xe0X\xdb)d>[\x82\xa0kB\x0f\x01aB\x10&\xb2\xdb\x96SU\xfe\x18,b\xd5z\x0c{w\x8b\x88\x09\x16\xf0\xf0;\xc0\xff\xf9\x1bU\x8b\xebD\x002I\x1el\xf9\x05\xbd\x1f/\x02\xb2&\x06\x99e\x22\xf9\xc9RD[Oq\x0bX\x04\xb7K\x9c\xab\xacY(\xdd\x14U\xe0a\x97\x10\xf2\xa3sze\x0d\xd0\xdf'\x9fW\xfb\xf7\xe3\xb8\xfdQ-l\xc3\x14\x9f\xe7\xac\x05\xd0\x14\x19\x02\xcfm\x1b\xe2%\xbd\xbbe1p\xeeg\xf9U\xce1\xceP,\x8e\x09\x86w\xd7\x86h\x81 \x92\x02zZ\xce\xe3\xcc\xb2yP\x93\xbdH\x9f\xfc\x0e\xed\x9b\x16\xc2\x22\xb6\xac\x0d\xf9\xc8\xa4\x0d!@\xc0\xb4@{\x04R\xd5A\xbe|\x86\xcf\x9e\xad\x9bG\xb1\x9aDL\xc7\xf5\xb2\xf7\xf9\x11\xc8o\x81p\x12\x19:\x04>\xf8\xd3\xf4\xf1\x88\x84 \xfa\xad\x12\xbc\xf6\x09?\xcd\x93\xcf\xfe\x96\xc5\x22\xbc\x91*\xd1\xdc\xf0\xe6\x808\x83c\xf91!\x12\xcdo\x01\xaf\xd9j\xc107:\xb2\x90\x1d\x05,\xdbG\xd6b\x88\xcc\x05\x0c/p\xdaC\x86\xc1\xeb\xde>\xfbZ\x022\x86\x8c\x1b\x1dYD\xeb\x8a\xc3\x9c\xb2\x02.\xd0\xad\xc7\xe2\x97\xe2\x93\xc6Wh\xd1\x104\xc7\xe2W\xcc{\xc9\xfcQ#(\x04\xae\x96E\x90\x99p\xdb\xf8\x99%\xa8\x84\xa0Ms\x8b\xce\xd0\xa8\xd3\x18\xf5\x12\xb0\xb5 \xacx\x09\x94\x0b\xf7.1\xa7\x14\xa0\x00=\xa1\x8b\x7f6t\xf4\xf6l\xef\xe9\xea,\xcf\xa6\xd3\xea\xa3\xff\x0c{t\x0bE\xa2NX\xbdqit\xb2\xff\x1d\xe6D\xeeu8>\xd0\x8e\x12\xc20n/\x9e\x80ye\xe7\xcc{f\x02\x0e\xfe\x0f\xf67\x83v\xd2D\xe2\x1dh\x05\x00\x00\x00\x00IEND\xaeB`\x82\x00\x00\x05;\x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\x00\x00 \x00\x00\x00 \x08\x06\x00\x00\x00szz\xf4\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x00\x09pHYs\x00\x00\x03v\x00\x00\x03v\x01}\xd5\x82\xcc\x00\x00\x00\x19tEXtSoftware\x00www.inkscape.org\x9b\xee<\x1a\x00\x00\x04\xb8IDATX\x85\xb5VMh\x1bG\x18}\xb3\x92\x92\xba%%\x05\xbb\x07'\xc6\xc6\x14\x9b\x926\x86X=\xd4X\xe4\x1c\x1f]_\x02=\xb4:\xf4\xd2\x9ezh \x85H\x8bq\xa0\xed9\x86\x14\xe3\x8a8\xfd9$9\xa5D\x01\x1fbWV!\xd1\xa9n\x5cb\x82\x83\xf0R\xa52\xfe\xd1\xda\x8eV;\xb3\xf3\xf5\xe0\xdd\xf5x\xbdk\xc9\x85~\xf0\x98\x99O\xbb\xf3\xde\xf73\xb3b\x00\xde\x01p\x1e\xff\xaf\xfdAD\xcf\xc3~\x88\x038\xbfU\xab\xdd\xe5\xb6\x0d0\x06\xe6\x018\xb0\x06\xb0\xe7s\xfd{\x83\xef\xf1\x9f\x0fZ,\x16\xc3\xebmm\x1f\x01\x88\x14\x00ns\xd8\x5c\xec\x93\xbb\xd0\xb4}\x22_P`\x8c\x22g\x811\xca\xe2^D\x9a\xc6\x0e\x09`J\xa4,\x105\x0b!\xf7\xc8\x1a\x8d\x06\x8a\xc5\x22\xa4\x94\xb8x\xf1bs\x01Q\xe4\x87J\xd1,\x0b\x00\x1a\xb6\x8d\x85\x85\x05$\x93I\x08!0;;\x8b\xd3\xa7O\x9f\x8c\x12\xa0y/\xef\xa5\x5c\x8b\x16r\x044o\xaei(\x95J\xb8p\xe1\x02\xce\x9c9\x83\xee\xeen\x0c\x0c\x0c \x9dN\x7f1>>\x1e*B\xdb/A\x04\xb9\xa6\x1d \xd0\xc2Fu\x0e\xa0\xad\xad\xcd'\xe8\xeb\xeb\xc3\xd0\xd0\xd0\x1b\x00\xa6u]\x8f\x87\x0a\xf0\xc9\x81cE|\x88\x9c1\x0c\x0e\x0eb~~\x1e\xb6m\xfb$\xa3\xa3\xa3\xef%\x93\xc9N\x00\xdfg\xb3Y-\xbc\x04^\x19\x9a\xa5Y!\x0d\xfb\xed\xd4\xa9S\x18\x1c\x1cD>\x9f\x07\x11\xb9\x09f\xb1K\x97.}x\xee\xdc\xb9w\x01\xdc8\x5c\x02\xaf\x99\x5c4\xad\xb5\x9a\x05U\x88;\xef\xec\xecDWW\x17\x0a\x85\x82\xcaurll\xec\xfd\xde\xde\xde\xa1L&\xf3\xadO\x0b`\xb4f\x9aw\x1d\xc79\xf2$\xf8G\xd1]\xaf\xae\xae\xc20\x0c8\x8e\x03\xce9\x84\x10\x07F\x0f\xa9T\x0a\xfd\xfd\xfd\xbe\x0a\x22\xaaMMM\xfdc\x18\xc6-]\xd7'\x18\x80Qs{\xbbe\x01QwC\xd8]\x11eD\xb4699\xb9[\xadV\xbf\xd3\x82\x1b4#W\x89\x82BZ5\xc6XG:\x9d6\x01|}\xb0\x09\xc3\xd0\x22\xf1qD\x10\xd1\xda\xf4\xf4\xf4\x9b\x00&\xfcs\xd9\xca\xf1S\x9f-\x97\xcb0\x0c\x03B\x08\x1fj\xed\xbdu*\x95B__\x9fJ^\x9b\x9a\x9a\xda\xacV\xab\xb7t]\x9f\xf4\xbf\x05\xcdN@0\xca\x9e\x9e\x1e\xf4\xf4\xf4Df`qq\x11\xa6i\x1e \x07\xb0;33S6\x0c\xe3\xa1\xae\xeb\x13@\xc8=\x10&\x22H\xd0\xac\x07*\x95\x0aVWW1<<\xac\xba\x1bw\xee\xdcY\x5cYY)\xea\xba\xfe\x95\xe7\xf43\xe07\x9c\xf2FX]\x8f\x12\x02\x00;;;(\x95J\x18\x19\x19\xf1}D\xe4\xe4\xf3\xf9\xdf\x9f>}\xfa\x02\xc0\xe7\xea~q/\x03\x14\x12}p\xf3f>\x00x\xfc\xf81R\xa9\x14\x12\x89\x84\xef\xbbw\xef\xde\x9fKKK\x7f\x03\xf8,\x9b\xcdJ\xf5y\xffc\xa4F\x1f\x96\xfaV\xc8\xa5\x94 \x22\xd4\xebu\xdf\xb7\xbc\xbc\x8cb\xb1\xb8\x0b \x9d\xc9d\x04\x02\xb6\x9f\x01\x84\xd73ha\xe4RJH)\xc19\xc7\xc0\xc0\x00\x0a\x85\x02\x92\xc9$8\xe7x\xf2\xa4$s\xb9\xdc7\xeb\xeb\xeb\x8d\xb0\xfd\x0e\x1c\xc3(\x92\xa3\xb2!\xa5\x84\xe38\xb0,\x0b\x96e\xa1V3q\xf6\xecY<z4\x87x\x22A\xf9\xd9\x87\xd3\x1b\x1b\x1b\xbfE\x05\xa4\x05\x1d\xc7\xbcP \xa5D\xbd^\xc7\xda\xda\x1a\x9e=[\xc6\xd6\xd6&\xda\xdb;\x90J\x0d\xe3\xfe\x83\x07?\xdd\xce\xdd\xca\x10\xd1\xe6Q\xfb\x8c\xd6\xebuz\xf5\xea\x15Y\x96E\x8dF\x83l\xdb&\xdb\xb6\x89sN\x9cs\x12B\x90\x10\x82\x1c\xc7!)\xa5\x0f\xce9moo\x93a\x18477O\x8e\xe3\x90m7\xa8\x5c.\xd3\xc7\x9f~r\x1f@\xaf'4\x0a~\x06\xa2\x22\x8fj8\x22\x82\xe38\xb0m\x1b\xeb\x1b\x1b\x88'\xe2p\x1c\x81J\xe5%\xf4\xeb\xd7\x0b\xb7\x7f\xc8]\x01\xf0\xc2\xfbO\x10e\xfe)\x88\x22\x8e2\x22\x82\x10\x02\xf5z\x1d\xa6\xb9\x8d\xb7;:P\xa9\xbcD\xf6\xfaDa\xfa\xe6\xcd/\x01\xfcE\xcd\xd8\xa14a\xab\xc4\xaa\x00)%,\xab\x01\xe98\x88\xc5\xe2\xb8\x9a\xc9\xfc\xfac.w\xc5%\x97M7\x09\x13\xd0\x8a)7\x1c\x84\x10x\xab\xbd]^\xcd\x5c\xfb\xf9\x97\x99\x99k\xd8K{\xd3\xc8U\x1b1M\xd3\xf2\x9a/\xac\xf1T\xec7\xa0\xa0\xad\x9aIK\xcb\xcf\xad\xb1\xcb\x97o\x00\xe8\xf4D\x1d\x07\x0c@\x07\x80\x0f\x00\xbc\xf6_\xb2\x01`\x07\xc0\x93fG-\xca\x98\x9a-\xc6\x98\x06 \xe1\x22\xae\x8c\x1eb.4\x17j\xc3\x10\x00\xe9\xc2q!\x14pe\xe4^\x8f\xc4]b\xe6n\x18\x07pB!O\xb8\xeb\x04\x80\x93\xee\xfcD\xc0\x0f\x85\xccv\xc1\x95\xb9\x1d\x10*\x01H\xc6\x18\x88H\xfe\x0b\xbf\xa0\xaa\x91\xae\x13\xaf\xb4\x00\x00\x00\x00IEND\xaeB`\x82\x00\x00\x02\x9e\x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\x00\x00\x16\x00\x00\x00\x16\x08\x06\x00\x00\x00\xc4\xb4l;\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x00\x09pHYs\x00\x00\x03v\x00\x00\x03v\x01}\xd5\x82\xcc\x00\x00\x00\x19tEXtSoftware\x00www.inkscape.org\x9b\xee<\x1a\x00\x00\x02\x1bIDAT8\x8d\xb5\x94\xbdn\x13A\x14\x85\xbfc\xef\x9a\x8d\xf1\xe3\xa4\x08\x92\xa1\xc0?\x0b\x12\xce\x86T\x88\x0aAG\x87\xf2\x04\x94(\xb2\xa8\x92T DE\x15X\x88\x84\xe2$\x14\x10\x09J\x04\xe4M ^\x11\xe4K\xb1\xb3fY\xefZF(W\x1a\xcdh~>\xcd=s\xe6\xca\xcc8\x8f\xa8\x9d\x0b\xb5\x08~(\xb56\xa5\xd1#)\x5c\x140\x94\xc2Mi\xb4-\xb5\xf2\xf3\xca\xa4\xd8\x96Z?\xe1\xadA\x1bH\x80\xe8\x81\xd9h\x1e\xf4\xb1\xd4\xafAl\x10\x00\xc7\x0d\xb8~\xdf\xec\xfb_7\xfe\x05\xbbuh{\x80\x07\x81\x07\xf1\x96\xd4\xab\x82nI=\x1f\xe2z\xba\x17\x0f\xda\x13\xd8\x9d\x91\xa2\x01C\x0f\x12\x0f\xf0\xd3\x16\xd4!\xde\x91\xbaE\xe8\x8e\xd4\xadC\xec\xfd\x81\xe2\xce\x0eg\xa4\x00x*\xf5'\x10\x93\xa6\x96\xc5X0\xb8gv\x04\xf0D\xea\x18\xbc\x01\x96\xa6\x10H\x04\xd1\xdd\x9ct*\xda\xedY\x9a~\x9c?\x08\x8c\x0dn\xb8\x14\xf7J\xd6\xa2;f\x07y\xce\x0c\x18\xe0\xb9\xd4\xad\xc1\xeb\x0c\xa0t\xfa\xd4-7\x0b\xd9\xac\xde6;,2J\xc1\x00/\xa4\x8e\x0a)\x17bl0\xb8\xe5$Z\x18\x0c\xf0R\xba:I\xe1\xcd\xc2\xd2i\x0d\x067\xcd\xdeU\x9d\xf5*\xa9nq\x92\xbfE\xc5\xb8,*o\xbc\xe7\xa4\xd0\x1c)j0\xb8\xf6/R\xecK]\xe5\x1e\xcfE\xe9\xe3\x19\xac\x86\x8b<\xde\x91\xd4S\x89\xddpv#g7'\xc7x\x02Qg\x9e\xdd\xdeK}*>\xc8e\x97\xf2\x07\xa9\xc3\xac[\x12\x83\xe8J\xd9\x07\xf9(\x85\x06\xaf\xf2P9\x9f\xae\x14R\xfd$umV\xaa\x04X\xbbd\xb6\x0f\xb9Z\xe1\xc1\x86\x0f\x81\xab\x13\xf8\x90\xf8\x10\x15\xa1\x00+f\x87>DYmq\xf5%\xf0a#\xdb3\x05_\x84u\x1f\x8e\xb3\x82\xd2\x80h\xb9\xa0[>\x96\xcd\x0e\x1a\x105\xd2\x0b\xe0\xc1q\x13\xd6\xa7\x1b\xccl\xdaN\xa0\xf5\x05F\x9f!\xcc\xcf\xcfk\xdf \xfc\x0a\xa3\x13h\xe5\xe7\xe7\xfe\xbc\xff\x09\x0f@R\x1d\xb8@\xfa\x18\x81kK\xa4\x9e\xcd\xfa&\xa9tg\xa4\x9e\x1e\xbb>q\xe3\x04\xf8\xe1\xfa\xb3\xdf\xb1'\xfe::-RY\x00\x00\x00\x00IEND\xaeB`\x82\x00\x00\x02\xea\x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\x00\x00 \x00\x00\x00 \x08\x06\x00\x00\x00szz\xf4\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x00\x09pHYs\x00\x00\x03v\x00\x00\x03v\x01}\xd5\x82\xcc\x00\x00\x00\x19tEXtSoftware\x00www.inkscape.org\x9b\xee<\x1a\x00\x00\x02gIDATX\x85\xed\x97\xcbj\x14A\x14\x86\xbfS\x86\x09\xb34o\xe2\x22K7\xd9\xc4\x8d\xe0e\xe2\xc41!\x92\xc0\xc8\x88>\x8d \x88 ^\x13\x0d\x11\xc1\x95\x81\xe4\x09\xb2p\x9d\x8d\x8f\x10\x17\x8d\x91\x19\xa6\xeb\xb8\x98T\xa5\xaa\xba{n:\xc9\xc6\x03\x87\xae\xea)\xfa\xfb\xfb\x9c\xbf\xab\xa7EU\xb9\xcc0\x97J\x07\xe6\xdc\xe0\xe8\xe8\xfb7\x11Y\xbe\x08\xa8\xaa\xee/.^\xbb\x11\x09\xc8\xf3|ya\xe1*\xf3\xf3\xb5\x99\xc2\xbb\xdd\x1e''?\xfd\x8dz\x01\xfd~\x9f,\xcb\xc8\xb2\x99\xf2=\xabD@N\x96\xfd\x9a==\x89\xa0\x05\xfda\xebf/ ,\xcb%\x09\xc8\x01XZ\xbaN\xbd^\x07\xc0Z\x8b\xb5\x96<\xcf\xfd\xd8\xa5\xaa\xfa\x04\xa2\xb9\xaa\xfa5\xe1\xb1\xd7\xebq|\xfc\xa3J\xc0\xa0\x02\x0e\x0e`\x8cAU1\xe6|\xbbPUD$\xbaH\xb8\x99\xb9\xdf\xca\x8e\xb5Z\xadP\xe9\x91-H\xe1n\x9e\xe7yAH(&\x15`\x8c\xc1Z[- 5\xe1\xb3\xe7/J\x05\xa5\xb1\xdejFB\xb6?\xed\x01\xb0\xbar\x07\x80\xbd/_\x01\xb8{\xeb&\x22R\xe0\x14<\xe0\xe2\xe9\xe3G\xd1|\x94\x1f\x5c<X]\x89\xbc\xd1l\xdc\xf6kD\xa4\xc0\x19\xfb)\xf8W~\x98\xd8\x03\xa9\x88\x104\x8d\x1f*\x05\xa4\xaf\xe5*\x0f<\xe9\xb4#\xb8\x1b[k\x01x\xbf\xb3\x0b\x0cZ\x01\xb0\xb3\xfb\x19\x18\xb4\xc2U\xb1T@xwP\xf4@\x18)\xdc\x85\xb5\x96\xf5V\xd3{@Dh5\x1b\x91'RN\xa5\x80a\xf17~\x18\x22\xa0\xd8\xc3Q\x22B\xd0\xb8~H9\x95\x15\x18w\x1f\xe8\xb4\xb7\xa2\x96\xbc\xfd\xf0\x118\xdf\x1f\x9c'Z\xcdF)\xa7\xb2\x02\xc3<\x10\x863\x9f\xab\xc2\xe6\xc6Z\xb4?\xac\xdd\xbf\x17\xb5\xa2\xb2\x02\x22\xd3\xfd=\x9c\xd4\x0f)g*\x13\x96\x89\x08A\xc3\xfc0v\x0b\xaa<P\xd6\x1a\x11\xf1\x95x\xf9\xea\x0d\x00\x9b\x1bk\x18cx\xfdn\x1b\x18x\xa2\x8c3\xd5>P\x16ND\xa7\xbd\xe5\xdf\x17\x00\x0f\xd7[\xd1\xfb\x22\xe5\xf8\x991\x821\xc2\xe9\xe9\xef\x89\xc0\xd1\xc5\x8c\xf1B\x5c\x8a\x88\xcfn\xb7\xe79.\x0a\x15888\x9cZ\xc0\xb8\x22\xc3\x08\x04\x5c\xd9\x07\xbd\x90\x0f\x13\x90}?\xfa\xffm\x18N\xce\x9eY\x03H\x92\xee\x1c\xc1\xb9\xaa\xd0\xb3tc\x1b\x9csi]\xe5\xe7\x02p\x190\x9d\x9bd,\x01\xc8_<9\x86B\x82{\x15TU\xff\x00\xac\x02\x9au\xe3.\xd5G\x00\x00\x00\x00IEND\xaeB`\x82\x00\x00\x05\xcf\x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\x00\x00 \x00\x00\x00 \x08\x06\x00\x00\x00szz\xf4\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x00\x09pHYs\x00\x00\x03v\x00\x00\x03v\x01}\xd5\x82\xcc\x00\x00\x00\x19tEXtSoftware\x00www.inkscape.org\x9b\xee<\x1a\x00\x00\x05LIDATx\xda\xc5\x97\xdboTE\x1c\xc7\xbf3s\xce\x9e\xeeni\x0b\xbd@\x01C1\x05B\x10\x0d\xf4\x22\x18\x95D0i\xc4\x17|21\xc6\x17\xc3\x93\x89\xd1\xc8\x8b\xfaP#oj\x8c\x89O\xfc\x03\xc6K\x0c\xf1\x01!B\xa8\xc1j\x88D\x90@)\x14\xac\xb5\x86KK\xaf\xdb\xdd={\xce\xcc\xef\xe7\xec\x9cficb\xd2\x98\x13f\xf3\xdd93\xbf\x93\x9d\xcf\xfengW03\x1e\xe6\xf0\xb0\xc2\xf1\xca\xe9\x17wok\xda~lh\xe6\xe2\xd6\xbf\x0a#\xab\x94\x92h\xcb\xad\x9d{z\xdd\xfe\x9b\xf9 \xf7\xce\xe1\xad\xef\x0d`\x05Cb\x05\xa3\xe7\xcb\xce\xc7\x0emz\xf9\xfc\xab\x9d\x87\xbb\xf6\xb4\xec[\x15k\x82\x8e\x09\x9d\xf9\xed\x8d\x07\xda\x0fu=\xd5\xd2w\xe6\x83K\x87{S\xf3@N\xe4>\x9d)M{>\xd5\xa1\xab\xad\x17\x1b\x1a\xda\xdd~V\xe6\xb1)\xb7\x05\xe7\xee\x9e\x94\xf3\xa5\xe2'\x00\x9eI\x05\xe0^a\xa2\xe7\xdc\xdf\x03\xe8\x5c\xb3\x05\xf3\xb9k\x10A\xc5\xed\x87\x98\xc4\x99\xdb\xdf\xe1\xd4\xd8\xb7\x18-\x0e\xefL\xcd\x03aTi\x1c\x1c\xff\x11\xdd\x1bw\xa3I\x99\xe5F3\x87+\xf7/\xc2W\xb215\x00\x133 \x08\x11E(\xc7\xcb\x01<\xa3\x9d]2#5\x00\xd2\x04!$\x8c!\x94u\xb4\xccVG1\x8c6\x10@\x9a\x00\x0c\x08\x86!B\x18G\x80X\xea\x01\x03c\xed\x02\x94\x1e\x80Y\x04\xd0d`,\x80\x00j\x10\x01i\x18\xc3\x10\xd6\x9ej\x0e\x08\xc5 bD:^\xe6\x01M\xfa\xffy\xe0\xe8\xe0\xd1\x17\xaeN\x5c\xed\x1f\x18\x1d\xd869w\xafA\x92\x84d\xc0\xbeC\xb1\x80\x94\x02JHw81!2\x0e\xa0\xc6\xa0\x8dv9b \xd0ul\x03{\xbe\x84\xaf\x14<_\xc1\xf7\xecuF\xa15\xd76\xff\xc4\xda\x9e\xeb\x1d\xab\xb6\xf7\xbf\xb4\xf9\xf5\x13\xb5N\xd8\xf7E_\xefTi\xea\xf8\xc6\xfa\x8d=mA[\x03\x99$\xdel\xd8\xcd\xb48\x1bwM\xd0\xdaX\x00\x8d\xd8\x98%\x8a@D\xee^c\xc8\xddk(\xb9\xdfp\xb2W\xef564\xaa\xd6\x9e\xf9h\xea\xf8G\xc3o\xb8\x8e\xe9\x1eF\x1d\x9fw\xfc\xb0\xabm\xd7\x81\xbd\xeb\xf7\x02\xc2`.\x9aAu\x9f\x85\x15\x5c\xdc\x935\x0c\x84\x00r\xb9,\xee\x9a?!\x93$p{\x1b\xbcGQ\xa9\x84P\xd2\x83'\xfd\x9a\x94\xf2\x90\xb1{\x81\xca\xc2g\xcf\xda\x0d\xc6\xc2!\xdc\x89n\x9e\xf9\xec\xc9\xef\x0f\xb8\x10\x8c\xcf\x8dw#\x06z\xda\xbb0T\xb8\x00-4 Q\x93\x84\x80\x14\x02JJ7\xcb(Y\x0b'\xc7\x87\xb1\xe8\x06X\x00L\x9cx\x81\xaa\x22\x042\x8b\xbcX\x8d\x91\x89Q\x9c\x1a:\x8d\xf7\xf7\xbd\x85\xdb4\x8cyLv\xd5r\x80\x88\x9a\xc6\xa6\xc602u\x1dEQN\x0eVp\xb3\x10H\x0e\x96\x02\xcc\xb2\x06\xc2\xe2\x01Dm0\x83\x00x\xc2\xc3\xba\xecz\xcc\x95\x8b\xb81}\x0bgG\xbfF\x1c\x11\x00\xd8\xf50\x8a\xc1md|\xd9T\x03\x00[\x91k\xb5\xa8\xa88\x01 \x07\x91$\x1fK+\x07\x90\x1c\x0e\x86\xaa\x02A8\xefdT\x1d\x9a\x83V\x17\x8e0\x0a1\xb10\x81o\xfe\xf8\x0a\x85J\x11\xa5(\xb6\xa0\x12\x90\xe42V\xb3v\xf9@\x9e\xc0R\x80Y\x10\x9af\x0a\xb3\xb8^\xbc\x09?\xf0\x9c\x82L\x80l\x10\xc0>\xe7\x91\xf7\xb2\x8eI2\x01,]G\x0cD\x00\x22\x8d\xf9h\x1a\xc3\x93\xbf!\xd4\x15h\x22D\xc6\x00\xd2\xc0S\xca\xca@\x19W.N\x19\xcf\xc3\x02\xbb\xf0\xcc.-\xc3A\x10\x0e\x0e\x0e\xff\x82\x1d\xebw .\xc5@9\x09A$\x04H\x85(\x8b\x18\x9e'\xdc\x87\xd65H\xdc\xc1-\x04\x9erkea\x1e\xf1;Q\xd1\x06\xbc\x987\xe43L\x96\xa09)[cU\xefe1e\x93\x97du\x8f\x7f~\x00\xa0q\x04\xc0\xfe\x85\xf2B\xdd\xf9k\xe7\x81x1\x04\x9cP\x0b+)\x92^ \x94\xc0\xb3{z\xe1\xafV\xc8T3\xbc\x0a!%\xc2B\x8c\x9f.\xffj!%\xaa=@YyK\xe4\xfb\x0a\x85\x8cB&c\xd7\x19\xaf\xacY\x1f\xa9\xf5\x01\xfe\x90\xaf\x81\xd0\x03\xe0,\x08\x0b0@M\x1a`;SU\x94\x5ck\x13\xbbC}%\x1d@\xe0{\xaeD\x99\x01\x02\xbb\xba\xa7\x7f\x89\xacx\xce\xdaN\xda\xb9\xfbD\xdf\xc8\xd0\xb2N\xc8\x1f\xf3\x15\x00\xcf\xfdg\xdb|M2\x0b\xd7\xf5\x9cG\xbc*\x80\xb2\x00\x9e\x87Jr\x00$\x0b\x8c\xbd;#R\xf9MH&\xa9\xf3\x98b\xf0b|\x94L\xbc\x00h\x07@)\xfe\x1ep\x873\x0bT\xe2\x18\xc2\x18\x18J\xbe\xb5X\xecF\xc9+E\x80\x04\x02(\xeb\x0a8\xd2P2\xb2J\x1aR1\xa2\xa4\x9d\xa4\x0e \x18\xa5(D\x14F\xae\xe6+\xb1F!\xac ,\xf9 k\xb3<)\x02\x88D\x0bq\x08*VP\xac\xc4\xae\x17\xb8\xf2,f\xc0\x92\xacdz\x00^F\x15\x1b\xb2A\xbeE\x05\xb8Q\x9aK\xda\xb4U\xf5\xb5)\xee@=1B.\x15R\xfbg\x94\xad\xf7\x7f\xdf\xd9\xde\x82\x83\xcdk\xb03n\x86\x9cR\xc0\xb4D\xb7\xea\xc5V\xde\x82<\xea!H^H\x0d \xdf\x1c\xbc\xb9ym\xa0W7*\xb4\xe6\xf3 c\xc0Dx\xa2\xf9q\xc8@Add$`\xdeN\x0d\xe0N\xff\xec\x05\xd9\x1c=?\xee\xf3\xe5\xfb\x22Z\xa0,\x83\xeb\x18*\xab\xc2 \x9b\xb9\x12\xa0n\xffD\x7f\xf1\x12V0\x1e\xfa\xdf\xf3\x7f\x00j\xf0\xda\xe8\xbc\xba\xd0\x0a\x00\x00\x00\x00IEND\xaeB`\x82\x00\x00\x07\xc1\x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\x00\x00 \x00\x00\x00 \x08\x06\x00\x00\x00szz\xf4\x00\x00\x00\x01sRGB\x00\xae\xce\x1c\xe9\x00\x00\x00\x06bKGD\x00\xff\x00\xff\x00\xff\xa0\xbd\xa7\x93\x00\x00\x00\x09pHYs\x00\x00\x0d\xd7\x00\x00\x0d\xd7\x01B(\x9bx\x00\x00\x00\x07tIME\x07\xdb\x05\x1b\x00/\x07w\xad\xb4l\x00\x00\x07AIDATX\xc3\xbd\x97kpU\xd5\x15\xc7\x7f{\x9fs\xee#OB\x1eD%\x90\x84\xf0\x08\xa1@\xc0\xd1\xc4\x947\xa6L\x91\x19F\xedT\xd0\xa9C5\xd2Z\xa6\xd3\xb1\x1d\xfa\xc12\x8aX\xc7\x19\xa7\x9dQ\x99*\xb6\xa0-\xa1\x8e\xd62N\x19Z\xa0P\x98N\xe1\x03#B\x1b\xd2\x87\xd4\x84\x0b)\xc1\x90'\x09\xb9\xb9\xb9g\xef\xd5\x0f\xe7&\x04\x84\x00U\xbb\xbe\x9c}\xce\xdeg\xef\xb5\xd7\xff\xff_ko\xf8?X~~\xfeu\xfb\x14\xc0\x92%K\xbc\x03\x07\x0e\xe4\x03\xde\xe7\xbc\xb6\x02\xba7o\xde\xdc\xbdn\xdd\xbaQ\x07N\x93/\xc8:::\xfe>\xb4\xd1k\x99\x9bz\xa6\x03|\xf8q;\xbd\xc6C\xac\xc5\x1a\xc1\xf5<\x10\x8bR\x1a\xc1\x82\x0c\xedK\x0d\xb7\x05\xc1X\x83\x12A$\xf8h\x81\xbb\xc7k|\xabioo\xf7\x01\x0d\x98\xd1\x1c\x00 \x1c\x8e\xf0\xfe\xdb;\x984\xad\x82\xb2\xa938|p7\xc6\xf8\xb4\xb6\x9c\xa1\xb8l*ZkD\x84\xb6\xf3\xadD\xa3Q\xa2i\xe9\xb4\x7f\xd2J\xcd\xe2e\xe4\xe6\x15\xa0\x94\x06`\xd0\x08Z;h@k=j\xe8\xafp`p0A\xed\xca\x87\xb1bI\x1a\x9f\xaa\xc5\xcbq\x1d\x07\xad5\xbe\xf1A@\xa1p\x5c\x07D\x10\x04\xa5\x1d\x06\x13\x03$\x8da(,F@)\x85R7&\xc9\x15\x0e\x94\xe6@4\xa20Va\x8c\xc2s\x15Z\x03J\x00\x8dH\x10}\xa5\xc0Z\xc1\xd1\x1a\x94\xa0u\x14k-\xbe\xef#\xd6\x22\x02\xbe\x0d\x9c\x18\x82\xe5\xa6\x1cp\xbc0/o\xfe\x19UU\xd5TV\xce\xe6\x97\xf5\xbf&+;\x9b\xf6\x0b\x17\x18\x18\x18\xa0\xa6\xa6\x86#G\x8e\xe0\xb8.s*+illd``\x00+BNN\x0e\x8b\x16.$77\xf7\x0a\x09\xdc\x08\x82\xa1 \xcd\x15\x91\x0fz\xba:H\x8bF1\xc6`\xc5\x10\x0e\x87\x11\xc0\xd5.h\xcd\xc5\x9e\x1e\xb2\xc6\x8c\x01\x11\xac\xf1\xd1\x8e\x03\xca\x01\xb1\x80\xe0'}|?\x80\xc27\xc1\xec\xe7\xcf\x9fo\x98<yr\xe5M\x91\xb0\xa9\x1b\xfa:,b\x05k,\xa1\xb0`\xad\x05e\x10\x11\x14!\xb8\xd0\x1f\xb8\xad\xc0u\x04k\x13\x18k\xb1\xc6\x80\x5c\xe6@M\xb1\x87o\xd5\xadq \x14\x0a\xb3\xeb\xcd\xad\x14\x97N\xe6\xce\xea\x05\xec\xde\xb9\x9d\xc4\xc0\x00\xd1\xb4t\xb2\xc6\x8c\xa5\xbf\xf7\x22\x91\xb44\xbcP\x88\xb3\xb1fl\xd2'-3\x13%\xf0\x95\x95_\xbf\x1cO\xcbh\xd2\xbf>\x04\xc7\x9b;\xb8d\xc2\x00\xf8~\x12\xcf\xf5p\x5c\x0f+\x16D\x02R\x01\x88\xe0z.\xd6XTj\x8a\xc4`\x02\x11\x1b\xac/PS\x1c\xc2\xb7p\xee\xdc\xb9\x9b\x87\xa04G\x91\x1eu\xb0\xd6b\xc5\xc3u]\x1cG\xa3\x94\xc6Z!\x99\x1c\x1c\xf6Y\x91\xbc\xec\x10\xa0\x94{y;#TpK\x10x\xa1\x08ol}\x93\xf2\xf2r\xaa\xaa\xaax\xebW\xf5degs&\x16\xa3\xa8h\x02\xf7\xdd\xb7<\xe0\x82R\xc1\xe42\xb4\xf8\xe5\xf6\xd5vK*\xe8\xed\xe9&\x1a\x0d\x07$\x14K(\x14\x0e\x068A\xe2I&\x12#v\xac\x86\xb3\xf2P[\x13$\x09\x11!\x19d#ZZZ\x1a\xca\xca\xcanR\x05]\x96K\x9d`}\x83o|\xc2!\x8dEp\x1d\x17k-\x92\xcaI\xdaq\x82* A\xb8\xadX\xb4\x93\xda\xa9\x18\x06\x93>\xf3&E0V\xdd\x10\x86O\xa9\xe0\x17\xaf\xfe\x94\xb9\xd5\x0b(\x9f1\x8b\xdf\xef\xdcN$-\x9d\xd6\xb31\x0a\xef(\xa2\xbb\xbb\x93\xb2\xa9\x15\x9c<v\x94\xec\xb1\xb9\x8c\xcd\xcb'\xde\xdfGn^!\x9d\x1dm\xf4vw16\x7f\x1c\x15s\xef\xa1\xbb+LvN\xde\xad\xa9\xe0D\xac\x93>?\x8c\xb5\x06\xb1\x16\xcf\xf5PZ\xa3RUO;.\xc6\xf8\xb8\x8e;\x9cr\x83\xfa\xa3\xd0J\xa1\xb4\xc6\x18\x9fd\xd2\xf0\xe5\xb2t\xac\xb5\xc4b\xb1\x86\xd2\xd2\xd2\x9b\x83\xa0,\xc7%##\x84\xef\xfbX+x\xae\x8b\x00\xda\xd5\x80\x93\x12\xb8\x9b\xaa\xae\xa3\x07U\xaeA\xc0]\xc0\x8a\x11\xcfk\xd4\x02\x8fM?~\x91\xa5\xf7\xde\xcb\x9c\xcaJ\xde\xda\xbe\x83\xe2\xe2bZZZ\x88\xc7\xe3$\x93If\xce\x9c\xc9\x89\x13'\xc8\xc9\xc9\xa1\xbc\xbc\x9c\xdd\xbbwS[[KSS\x13\x1d\x9d\x9d\xac^\xb3\x86\xc4\xe1#\x84\x0b\x0a\xc8\x9d=\xeb\x0a'V\x00{\x97\xd6nj\xde\xbf\xef\xb5\xf7\xe0\xdc\x83#\xd6\x9e+\x22\xd2w\xb1G\x8c?(~\x22.\x83\xf1K\x22&)b}\x111W\x9ds\xccuO@'\x9f\xd9(\xa7\xea\x1e\x90C\x95\x93\xa4\xe3\x83\x0f%\xd6\xd2\xf2\xb7T\xf8x\x17\xb6wl~^\xf6\x94\xde\xd6\xff.\x14\xd4_\x1d\x81S\x1d\x86\xbeO\x06\x111\x18kp\xb4\xc1s\xbd\x14S\x14\x82\x0d\xf0\x17\x092\xa3v0~\x12\xa558\x9a\xf6\xd7_\xa6\xe4\xe4\x1f(\xacX\xca\x1d\x8f\xdc\xcd\xe1\xba\x07\xf1\xbf\xf9\x94\x05\xcc6\xa8\x9f\xff\xc2\x0f\x1evO_d\xfe\xf7\x7f\x18\xf9\xd3\xab?9\x13\xff\xe7\xd9\x82\xabNDa\xde\xff\xed\x0e\xa6L\x9fI\xd9\xb4\x194\x1c?\xca\xc9\xe3G\xc9\xcd+\xc0\x8apG\xd1D\x0e\x1f\xdc\xcb\xe4i3\xb8\xd4\xd7KFF&\xb3\xab\xe6q`\xf7N\x1c/D\xb4\xbd\x95\xf4\xd3\xa7\xc9,j#~\xf6\x0c\xd3\x97\xdd\xcf\xbe\xfaWf=\x06{\xe7m\xfcN\xed\xc5\xc66\xba\x8cO\xc1\xc41\xaa\xf7?m\xb1t\xe8\xbdB\x05\x7f=\xddE\xaf\xef\xa6R\xb1%\xe4\x84\xd0\x9e\x0b\xd6\x22\xa8@\x09Z\xe1h' \x9a\xd8\xa0\x1e\xa4p6\xda\xa1\xe3\xe0>\xf4K\xdf\xa0\xb4b\x1e\xfd]q\xa2\x13\xf2%9>\xac\x92\x7f\x8e!I\xc3\xed\x8b\xca\xe5\xc0K[\xfe\xfdh\xdcL\xd9v\xb5\x0c/\xf5\xf6\x92\x9e\x91\x86\xf1\x93\x81\x0a<\x0f\xb4\x93\x1a&\xa3T\xb8T~\xb4\x06\xa34g\xf6\x1f\xa2a\xfd*J\x0a\xa73hB\x10M#\xd9\x1f\xe7\xb6\xda\x89\xf2\xc7\x0do\x9c\xaaK0\xf5u\xe0[Ws\xc0\x0d\x85\xd8\xf4\xfc\x0b,X\xb0\x80\xaa\xaa*\xde~\xe77$\x12\x09\xb2\xb2\xb2hkk\xa3\xbf\xbf\x1f\xc7q\xa8\xa8\xa8\xa0\xa9\xa9\x89h4Juu5{\xf6\xec\xc1\xf3<222\xe8\x1f\x18\xc0D\xa2dd\xce@\x17%h\xfd\xf9!\x14\x10\xf1\xa01\xf2%u!\xc1c\xa4\x16\xff\xf4\x89\xa8\xa7\x87H$\x12@`-\x9e\xe7\x0d\xcb\xc8u\x03hnT\x5c\x00\xde\xbb\xffkL\x1b\xdbJ|\xeba,\xe0EB\xd8\x81A2\xca\xc6IC\xe1X\xf5\xaf\xbf\xfc\xe3\xce\x0dpl\xe4?s>\xeb\x05\xe4t,&\xfb\x0f\x1f\x91g\xa7W\xd8\xc6\xb5\xcb\xa4\x09\xa4\x19\xe4\xa3G\xbfj\x9fxh\xa1\xb4\x17\xdfn\x9bA\xda\xa6L\xb0\xf5K\xabe=\xcc\x19ND%%%-J\xa9'\x87.(\xff\xa3\xd9e\x9a\x076\xaf_{\xcf\xb8\x17\xb7 @\xdf\x13\xab\xe5\xa1wv5Gzz\xbf\xb7qE\xed\xef^\xd1\x9e\xf4}\x14S\xab\xac\x96\xbc\xef~\xfbX\xe6\x96m\x85W\x9cb?\xab=3>\xbfl\xcb]\x95\xbe\xdc5\xd7v\xaf]c\x17fe5I\xddj\x00\x16\xc2\xe2\x8d+\x97\x8b\x14\x8d\xb7\xadO?%\xcf)\xb5\xe7s\xbf\x05?\x07l\x80\x09\xaf-_$\x8f\x17\xe4},\x8f?\xa2V\x8d\xe8_\x0e\x8b\xf6>Y'\x1ba\x0f\xc0\xc6/\xe2*\xfe\xf4\x94R~\x94\x9b9nG(\xe4\xd4]\xa3\xff\xc0\xfc\xf9%\x00\xcf\xa6\xde\xff\x0b\xebg!\xe8\xca\xd1m\x8e\x00\x00\x00\x00IEND\xaeB`\x82\x00\x00\x08h\x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\x00\x00 \x00\x00\x00 \x08\x06\x00\x00\x00szz\xf4\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x00\x09pHYs\x00\x00\x03v\x00\x00\x03v\x01}\xd5\x82\xcc\x00\x00\x00\x19tEXtSoftware\x00www.inkscape.org\x9b\xee<\x1a\x00\x00\x07\xe5IDATx\xda\xc5WkpU\xd5\x15\xfe\xce\xf3\xbeonn\x12\x12C\x12\x02I\x0cv4\x12E\xb4Z\xf11\xe8L[\x19\xabV[0\xb5\xc2\x80\xb4\xc5JC\xcb\x80\x19m;@\xcb mGej\x09-M\x7ft\x1c*\xb6\xe3\xa8\xa5*L\xb5\x9a\x0c\x0de\x1aZ0$\x12%\x0fBH\xcc\xe3>rO\xee=\xe7\x9e\xb3\xbb\xf6\xb9w\x0e&\xb96\xf8\xcb5\xb3\xb2Ov\xce\xde\xdf\xb7\xd6\xfa\xd6\xd9;2c\x0c\x9f\xa7\xc9\x98n\x029\xfb<\x09\xb0\xcd\x8d\x8dG\x98\xc5V k\xcbnY\x8eE5\x8b\xa1H\xe2,j\x82\x90\xe1,\x8a\x02\xff\x09\xf0\xd1\xb2 \xc8\x12\xf8\x0c\xff\xbbH\x0e\xf2t\xda\xc4\xfb\xa7\xff\x8b\x7f\xb6\xbe\xeb\xac\x0f\x87\xc3Gg\x12\xc0\x946\xb5\xe2\xd4\xe9S(..\xc1\xbc\xa2\x22\x14\xcc\x9b\x87\xf2\xf2\x05p\xa9\x0arY\x86Cf\x8c\x1f:\x88\xf1\xdf\xed\x83Z]\x83\xa2\xef>\x0e\xcf\x92\xfa,\x09\x01ZJ\xc7\xc7#\xc3H&\x93\xce\xda\xb1\xb1\xb1\x15\xb3\x08X\x14\x81\xcf\xe7\x83\x22\xcb\xf6\xb3\x08fG\xd8?\x12\xc9\x05\xeeX\xb4\xff(\x16L\xfc\x15RA\x01\x94\xbe^t\xddu\x07\x02?j\x82\xf4\xc8z\xfb\xc5\xb2\xc2\x00\x0d\x8c\xef9\x0d+'\x81P^\x08.\x97\xcbyY\x92\x04\xd4\xcc\xcf\xcf\xd4h&8E\x17\xb9x\x12\xe5\xd6\x16\xf8nRq\xb6\xbd\x0a\x0b;\xcfS\xc9$L\xec\xfc1\xbeP\x7f5\xc2\xf7\xdc\x83\xa9\xa4\x0e\xb2\xb9\x09\xf0\xae\x08\x04\x02\xce\xb3@\x00\x12e@\xa5\xba\xe62-:\x00w\xcf7\x10\xf4{\xb1\xff5\x15\xcfv\xf4a-\xad\xb95\x1eGBU\xf1\xc1\x0f6\xe1\x96\x95+a1\x02\x84\xc5\xf7\x9c\x86\x95+\x033\xd2\xcc\xc0\xf5'\xcb\x02f\xa6@OFa\x9c\xfa\x1a\x0aB.\xbcu\x9c\xe1\xb9C\x06\x22\x91\x08\x9aFGq\xf0\xdeJ\xc4\xdf\x1c\xc2d\x22\x01\x83\x04\x986M0kz\x09L\xcb\x9c\x9b\x80\xc5\x887-<\xd3;:=S\x96\x01\xffG\xabP\x91o\xe0\xc4\x19\x03\x9b\xf7\x0a\x98\x9c\x9c\xb4\x09l\xdf\xb8\x10\xd7\xdc8\x80\xe4\xad\x95\x88\xd5\xb5\xa0\xab\x7f\x0c%a\x1f\x01\xce(\x01M\xccM\xc0\x02\x0cz\xb1\xbc8\xc8\xcb\xed\xd8`\xdbz\xcc\x0f\xeb\xe8\x1b4\xb0a\x8f\x80\x84\x96\xb2\xc1\xd7\xdeW\x82\xfb\x09<\x10\xca\x07\xab{\x0e\x15\x05\xd5TR?R\xba\x09\xd34/O\x03\x9f43m!\xcd]\xba\xb4\xf0\xc3c\xbbPW\xd0\x8b\x89\x98\x81\xd5\xdb\xd3\x88k\x82\x0d~\xdbu><\xber\x14yy^\x8c\x17\xed\x02\x5c\xb5\x10E\x89\xd2\xcf\xc8-\x98\x8c}v\x0d\xa4\xa9N\x06oG\xc3\x04\xb7\x81\xd3/\xe2\xeap\x1bRi7\xd6\xec\xfc\x18c1\x89\xc0\xc7QY\xc2\xb0k}\x0a\xe1\xa0\x88a\xff\x0f\x91\x94o@@\x94\x01r\xdd\xc8h\xc0\xb4r\xb4\xe1\xdc\x1a`\xb6\x88.\x8eNB\xd4\xbap\x95\xf7U0\xa5\x10\x9b\x9e\xe9\xc6\xd9\x01\x13qR\xbbKJ`\xdf\x16\x0f\x0a\x82)\xf4\xe3!\x9c\x8b\x7f\x09~AG\x8a<\xae'\xc0-?\xe8\xa2l^N\x09f\x100-\xcbN\x9fj\xf4\xa2J\xd8\x0f\xd5W\x89\x9f\xef\xeb@\xdbI\xcd\xfe\xaa\xe9\xc9\x18\x0e\xee\x0c\xa2\xac \x86\x88r'\xce\xa3\x81\xb2\x10\xa0\xba\x07\x91\x97\x1fr:\x87\xf6\xb0\x01\xd94\x11\xe6\xea\x82Y\x1a`H\xc4\x87\xb0\xd0<\x00ox1\x0e\xbd\xd6\x81\x13=\xf9\xb4\xd90b\xb1\x08\x9a\xb7\x06\xb1\xb84\x02M\xadCGb\x1d\xfc\x01\x09\xa2$\xc3\xed\xf3\x92\xe82}\xcf2\x05\xe7\x1a\x98\xb6\xbfu9\x1aho{\x0b7\x86G\x11Z\xb4\x14\xed\xed\xff\xc2\xcf\xf6\x7f\x08]\xcf\xf6{\x83\x84/\xd6N a\x15\xe3\xd7o\xd4\x83\xc9\xc7\xe0\xf1x\xed\xe8U\x97;\x13z\x06\x1b\x1e\xaf\x17}=]\x9f\xad\x04\x02\x18\xbe~\xfd)T\x5c\xd9\x80\xee\xce\x0e\xbc\xf4\x8f\x10\x07\xb7\xeb\xfe\xe0r\x0d\xdf\xbc\x93\x94\x0d\x1f\x9a\x0e\x14c\x22q\x06\x8a\xa2\xc2\xedv\xc3\xedr\x81\xe5P\xfc,\xac\xb9D\xb8\xea\xf6Q,\xbb\xe3\x09\x8cE\x93\xf8\xceO\xdb08\x14\xb5\xeb~\xd3\x95Qlk\xb0\xe0\xa2(\x1b\x9b\xe7\xe3\xe2\xb8D\xe0\x1c s\xf2\x19\x86\x81\xcb1\xd3\xfa?\x1a\xb8\xa1z\x18\x0f|\xebI\xc4\xa3CxxC3\x81k\xf6\x87\xa4\xb2p\x02{62\x04\xfd.4\xb5\x5c\x81\x9e!7\x81\xf3;\x81\x08\x97\x9b\x22w\xa2\x9d\xdb,\x8b\xe5.AYx\x04[\xb7l\xb4#Y\xd7\xb8\x0f\x1f\x9d\x9f\x02\xb7\x802\x8e\x17\x1a\xd3\x98\x17V\xf0\xcb\x97\x0bq\xbc\xcbC\xe0\x80\x08\x01^\x8f\x07\x02\xe3\xe0\xd6\x1c\xb0s\x94 \xe4\x19\xc3\x8eG\x87 \xb8+\xb1y\xd3f\xfc\xa7;\x03.ZQ\x1cx\x92\xa1\xa2TA{\xdfR\x08%\xcb\xb1\xba!`\x9f\x9c555\xfcv3+\xf2\xf1\xf1q4m\xdb\xc6\xb3\xc3\xa3\xb5[\xba\xb8\xa8\xe8\xd3E\xf8\xfb\xa7\xdd\xb5\xcf<\xb1\x1c\xf9K\xfe\x82\xedO}\x1fG\xdb\xe3\xd9V\xd4(r\x035\x15\x16:\x87\xaa\xf0\xc6\xfb\xf5\xf0\xfbY\xe6\xee\x10\x0aAUU$\x12\x09~tswDG\x17\x1b[\x94\x92$\x81sK\xa5RH\xa7\xd3\x0e\x1e#w\x08\xbc\xbe\xf7\x11\xd7\x8a\xa5\xfe\xbf\x15V\xde\x85gw\xacBkg%\x8f\x01\x8c\x84\xf2\xd4\xea\x09,\xbbJ\xc2\xf9\x89\x12l\xd8\x9d\x84\xc9\xde\x84\x22+\xf6M\xe9\xf9\xbd{y\x8460c\x19R|t\x0e\x1e\x9b\x94\xc8\xf3\xcd\xdf\xe7\xf3\xb9/\xa5\xa1\x92\xaa\x87'\xf3\x1b+\xffx\xe0W\xf8\xed\xeby\xf4b?\xb8\xad\xbd{\x18\xf7\xdf&\x22\x92\xccC\xf3\xdb7#\x16\x7f\x07\xb2$\x83\xa9\x16\xdf\xcci7\x8a\x8c\x00\xed9\xc7\xf9|V\x95\xc8\x0e\x9fN\xc0\x1b*Y\x1f,]\x22\x84ki\x8a\xb5\x80\xdb\x97\xebG\xf0\xbd\xfb\x04$\x0d\x15\xbb_\xa9'P/\xc0\xec\xa0l\xd1M%\x93\x1c\x94\xa7\x96\x8f\x5c\xb4\x1c`Z\x168\xaaC\x94\x13\xa3\xc5\x1eZ\xeb\xf3\xfb1A\x1a\x91\xb3\xe9\x97\xaa\x97\xdd{\xbd\x16\xe9AE\xb1\x81\xad\x8f]\x83W\x0f\xb7\xe2'kMH\x94\xea5;\x5c\x08\x95\xf9Q\xe4S\x00pp/\x98}H\x19\x98\x9a\x9ar\x00ht2A\xa3\xed:\x91\x92%)3G\x0e\xfe\xae\x00N\xde>!\xe5L\xf4\xc5_\x81\xa8)\x89h/\xb4\xe89\xcc\xcf\x1f\xc5\x1a\xbaX\x0cG\x06\xb0\xbd\x85\xa1{\xc0\x85\x07o\xae@UU\x15\xfe~\xe4\x08\x81\xf1hu\x0e\xea\x08\x8b\xa2wJ\x90\x05\xcf\x90\xd4);\xb6\x083w\x02\x81FY\x94\x10\x8bF\x11\x08\x063\x04N\x9c\x8d\xed\xbe\xce\xd3\x05\xaf4\x82\xd4\xe4\x05$4R\xfb\xb9\x02<\x7fP\xc0X\xd4DYi\x00\xd7\xd6]\x8b`^\x10S)\x1d\x1a)\xde\xccv\x80\xa6i\x0eh6\xfd\xce\xa8\xeb:\x11\xe3\xf3\x96#P1\xdb\x9e\x85\x85\x85\x18\x19\x19\xc9\x10x\xa7\xfd\x83\xc5/\x1f>\x86\xc7\x1e\x98\xcf\x0a\x02\xbe\x7f\xff\xe6\xa5\xf1E\xa3\x91H\xfe'\xfa\xd5I\xf7\x9e_\xec\x01\x99#4\xba\x07\xe6\x12\xa1\xf3l\xe8:oC\x87\x80$\x8a\xf6\xfc\xe0\xe0\xa0\xdd=\xf2\xe6u_}\xf4\xc2\xd0\xb0P[\xee\xee|\xbb\xf5\xe2C/\x1e>9\x9e\x17\x0c~\xbb\xac\xb4\xf4iI\x94\xbc \xd3\x0d\xdd\x06\x92eyZ\x9ai\xb4S\x9fM\xff\xb4C\x87oN\xc6\xeb\xec\xcc9\xc2\xbc\x14\x98.k\x93\x93\xe7\xea\xab\x02\xc5\x7fx\xe5x\x04\x80\x9b</\x1a\x8b\x9dL\xa6R-.E-\x81\x00VU]-\xb6\xbe\xf7\xde\x025c\x8a$\xcb\x8a\x22+\xaa$\x89\x0a\xf5\xbf$\x88\xfc\x08\x02\x83 \xf0\xc2\xeb\x96\xc5\xf4t\xda0\x22\xd1\xa8&\xabJ\xcf\xd0\x85\xa1\x14\xb3\xa5w\xe9bO\xebL\x22tLn\xfe\xd3\xbb\xad\x00\xae _H\xaed[3B\xe2\xfa3\xb9\x04\xc0\xec\xee\xee6\xfb\xfb\xfbS\x14\x95I\x0b-\xbe\x98\x88X\x14\x8d\xc5\xe7(\xc5&e\xc1\xa2\xaf\x1e\xf3z\xbd\x16e\xca\xe2\xbf\x0f\x0f\x0f\xa7)sR\xf6\xffA\x01\x8e9DR\xff\x03\x8c\xc5\xeaCX+lK\x00\x00\x00\x00IEND\xaeB`\x82\x00\x00\x02\x91\x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\x00\x00 \x00\x00\x00 \x08\x06\x00\x00\x00szz\xf4\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x00\x09pHYs\x00\x00\x03v\x00\x00\x03v\x01}\xd5\x82\xcc\x00\x00\x00\x19tEXtSoftware\x00www.inkscape.org\x9b\xee<\x1a\x00\x00\x02\x0eIDATX\x85\xed\x97?k\x94A\x10\xc6\x9fgvv\xdf\xf7\xbd\xcb\x09AI\xa1\xd8XDllT\xb0\x17\x1b\xfb\x14\x16\x22\xda\xd8\xf8\x01\xfc\x08~\x82X\xd8Y\x09\x96\xdahm!\x18\x10\xd2\x08\x22hq\x84\x83\xc0i\x8e\x97\xdc\xdd\xfbg\xc7B\x8e$$E\x8a\xbb=!N\xb5\xc5,\xf3\xdb\x99\x9dgvifX\xa6\xc9R\xa3\xff\x07\xf8\x17\x00t\xb6x\xf4\xa2\xff!\x1a\xee\x1esp\xf8U\xd7v\xff\xd5\xd3\xcb\xef\x17\x01\xc0Y\x17<\xdc\xec\xdb\xbd\x1b\xc51\x87a\xd9b\xeb{5\x11p\xe3\xe5\x93K\xef\x16\x0ap\xe7z~\xa2\xd3h?\xe2\xcb\x8f\x1aM;\x9f\x96\xed\xe6\xf2m\xf3\xf1\xc5\xab\xc0\xa1\x12\x00\xc0\xb4\x8e'n\xc8<p{\xdd\xcf%8\x00|\xfcZ\xad\xcf\xd6G\x01\x9a\xf4\xa2t\xaa\x0c\x9c\x1d\x80\xea\xec\x94\xe0@\xff\x8e\x00\x0c\xf6\xa6\x89\x00\x0e\xf4\x86\xb7\x9em\xedUM{.Q\xe4#\x16\xd4\x8d\x94\xc2\x95\xe7\x0f\xae\xed\x0b)1\xda\xc9J4g#\xd1\x92\x98\xbe\xfd<\xe8i\x91\x85\xfa\xf5\xa7\xb2\x0c\xde9X\x1a\x00\x80m\xd5\xb4\xe5\xcf\xc1\xd4i\x1e\xc2D\xd5K\x16\x02\xcc\xd2\x5cB\x92\x88\xa8%\x0fa\xa2E\xe6\xc7A%tsE\x8c\x89\xba\x80`\xdb\xb6Rd~\xacy\xa6e\xf0\xbc\xd0-\xc4\xda9\x0d\x9bS\xc4GUS\xf2LK\xedd~\xe4\x15k+\x05c\xd30\x0d\x00\xc9r\x02\xe9d~\xa4\xdd\x5c\x87\xde\x91\xbd\x9c\xa8\x9a4\x0f$\x12\xf4\x8e\xec\xe6:\xd4N\xe6\x86\xea(\x9dB\xa2\xaf\x13I1Iu\x94N\xe6\x86Z\xe4\xba\x1b#\xa4\x08Ba\xaa;\x00\x90\x22E.\xbb\xea\xd5\x0d\xc6\xd3(fF$J\x80\x11\x8cF\xc9T\x06\x1a\x9c\xdb\x19\x03\x12\x0d.\xd9,4\x10\x10\x09\xce\xed\xe8\xda\xaa\xf6\xcf\xf7\x84\xa3q\xa3mL7\x8e\xaf\xac\xa98\xef\xfa\xda[q\xdb\xab\xbe\xad\xab\x96\xc5\xdf\xea\xa41/\x16\x7f7n\x9bf\x06\x92\x1b\x00n\x02\x98M\xc5E\x92\x18\x80\x11\x80-3{3\x03Hw\xf4\xc3$f\xc6e\x7f\xcf\xff\x00\xda\xf7\xca$\x055\xebE\x00\x00\x00\x00IEND\xaeB`\x82\x00\x00\x04w\x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\x00\x00 \x00\x00\x00 \x08\x06\x00\x00\x00szz\xf4\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x00\x09pHYs\x00\x00\x03v\x00\x00\x03v\x01}\xd5\x82\xcc\x00\x00\x00\x19tEXtSoftware\x00www.inkscape.org\x9b\xee<\x1a\x00\x00\x03\xf4IDATX\x85\xbd\x97Ok$e\x10\xc6\x9f\xaa\xf7_\xf7\xccdau\x89\xe0AP\xfc{\xf0\xa4\x82\xe0M\x08\x01\xef\xde\x14\xd1\x0f\xe0\xd9\x8f\xe0\xd9\xc3\xfa\x11\x14<z\x8a\x88'\x85\x05\xf7\xb4\x97\x05\x11\xd6CX\x22\x91d3\x99I2\xdd\xef[\xe5\xa1{\x92\x9e\x9e\xee\x99\xc9\xba\xa6\x0e3M\xcf\xbc\xf5\xfc\xea\xa9\xea~\xbbIU\xd1\x0e\x22\x22\x00\xb4\xf4\xc3\x7f\x0b\xd5\x0e1j\x9f\xab\xc5\xef\xec\xee\xee\xbel\x8c!\x00\x10\x91\xa7\x86afM)\xe9\xde\xde\xde#\x00\xff\xb4!\xba\x00,\x80\x0f&\xd3\xe9/\x22\xc2T\x9d\x03\x88py\xdc\xf8n,\x5c\xb6l\xfe_@B\x08\x1f\x02\xf8MUc\xf3/\xb6\x07\xdc\xa8\xc8\x12\xdcBb\xd5\x05\xd1\xb6x\x0b\x90\x00\x98\xaeT]\x00U\xff\x89@\xaa \xa2e\x07Zn,\x80\xb4\x9di\xe7\xed\x03\xf8\xfc\xdb\xfd\x9fD\xb1\xf3\xc97\x8f\xf0\xf7\x9f\xf7\xae\x846\x00X!\xba6.\x01D\xb1\xf3\xd1;9R,\xf1\x90B\x85\xda\x03\xb0J\xf8\xba0\x0b-\x98\x95\x8a\x14\x15e\xd2\x05\x91>\x80k\x88\xd2\xce\x97\xdf\xfd\xfc\xc2\xab\xef\xe3\xb3\xbb\xfb\x18f\xfc\xc7\xdd/^|\xa3\x03@\x90\xa2\xa0\x8c\xba\x91\xf8u@\xde~\xc9\xe1\xb57\x1d\x8cu\xf8\xf5a\xf1z\xb7\x03\xb1r\xa0h8\xb0\x89\xf5\xebZ\xa1Z\xe5\x9cE\x85\xc1\xe2\x95\xd5\xef@}\xa9\xad\x12\xbf\x8e\x03eT\xccJ\x81QY\x03\x90\x14e\x92\xe5!\x5c!\xbe\x09H\x99\xa4r`\x15@\x11\x15\x92\x14\xb15\x84}\x82\xab \xda\x11\x93\xa2\x8c\x8a\xa4kZ IP4\x86\xb0\x1d\x9b\x88\xcf\xef\xa0\xcd;iQ\xb7\x80E\x00p7\xc0\xc1\xc9\x0c\x92\x22\x8e\xa7\xe5J\xd1\xbeaTU\x88H'\xc0\xf1\xb4\x84?\x99\x81M\x02\x90_\xe5~\xef\xab\xfb'EL\xb7\x96J\xbd\x81\xf0\xd6\x8c-1\x8d\xbe\xfe\xf4\xad3&b\x11\xcd\x00@4!\xf3}\xfb\xd4\x8a\xd0\xceC\x10\x80\x8b2\x82\xa9\xda\x8f\x88\x90\x880\xfb\xf1\xf7\x83-\x9b\x07_~\x7fo2\xf1\xce\x18\xa8f\x0a@b\x89\xe7n\xe5\xd84t.\xa7\x8b\xc7M\x82'\xa73\xb0u\xf5nD\xa9\x88i\xf2\xd7\xc1\xcc\xd8\xcc\xfb\x0bk\x1d\x07\xef\xa1\xf5%\x22\xcc\x08>,\x96\xb0\xa2j\xad>\xae`\x9a \xa8f!\x04\x80\x8d\xab\x1d \x08J\xce\xbc\xbf\xb0yp\xe7\xde\xb2\x1ff\xb6\x1a (\xc4\x08\x06Ys\xfb\xee#P\xcc\xe7\xecj\xf0\x04RO:\xd5F\x9c\x9e\xcd0\xcc\x03\x88x\x9e\x8eRJ\x9c\x07wn\xb3`'\xde\xd1\x9da\xce\x9a\x92\x02J\x10\xcb\x18f\xdc\xa5\xd8\x80Q(\xa8\xe1\x00AU\x91\x12\xe0}\x80\x88\x22\xa5\x88\xf1\xb4\xc0p\x10@\xcc\x8d\x0c\x84\xa2$\xce\x82\x9d\xd8Apcg\xb1=\xcaIb\xac\x92K\x22\x0cs\xea\x94\xbd\xaa\x9dj\xdb\x15\xaa\x04\xad\xddP!\x18\x03\xa4$8=+1\x1a9\x10->\x0c\x11\x11M.\xc0\x83\xe0\xc6v\x98\xd9#g\x88\xb62B\x11\xb9J\x98\x08\xa3^\x07\x16(\xea\xea+7Tk\x18\x15\x9c\x96\x05\x06\xb9\x03\xb1Y\xc2'\x029C4\xcc\xec\x91\x1d\x04sd\x0d\xf1 gqe\x9d(\xadjAC_\x15\xa8\x85\xe7\xf3 \x02\x8c\xa7\x05\x06\xb9\x07\xd8tO\x0f\x11YC<\x08\xe6\xc8\xe6\x99=\x14\x01\xe7\x9e\x89\xa9\x1e\xa4\xc4\xc8\xfc\xe5\xc0\xf4V\x7f9\xebZ\x89'\x11\x9cL.\x102_W\xde\x1d\xd5\x0e\xcb\x9cg|h\x9d5\x07\xe73a\xad\x1a\x09\xads\x1f\x1e\x8f\xd7:\xb0\x1c\x0c2\xae\x9a\xf6\x9e\x07j\x00P\x02\x89\x12\x07\xcb\x07\xd6\x1b\xf3\xf8\x1c`Q\x98\xf9\x1ab\x0b\xf0S\xdc\x09\xab\xd5\xab\xb4k\x02\x10\xc0\xec\x8dyl\xb7o\xdb\xfd\xe7\xb7\x98\xc6\xe7\xd1&Y\xbb\xf4\x99\xc5+\xdb\x96\x8d3\xfbvkd\x1e\xdcv\xa9,\x12\xe5\xcf\xfeu\xb0?\x1c\xab<\x89\xe6\x01i\xf5\xf2\xf11\x80w\x01\xccw\xc5\xff\x93D\x01\x8c\x01\xdcW\xd5\x1f\xe6\x007Wz\x93DU\xfb\xdf\xffn(\xfe\x059\xca\xfa\x84\xa9`%B\x00\x00\x00\x00IEND\xaeB`\x82\x00\x00\x06\x02\x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\x00\x00 \x00\x00\x00 \x08\x06\x00\x00\x00szz\xf4\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x00\x09pHYs\x00\x00\x03v\x00\x00\x03v\x01}\xd5\x82\xcc\x00\x00\x00\x19tEXtSoftware\x00www.inkscape.org\x9b\xee<\x1a\x00\x00\x05\x7fIDATX\x85\xc5\x97_\x88\x5c\xd5\x1d\xc7?\xbfs\xee\xbd;3\xd9\xcc\xce\xea&\x1acD\xb4,\x89\x0d\x06\x83\x95V\xc8\xae\xc4\xd8\x8a\xf1Utm\xa5\x08\xbe\xf8P\xfa \x82\x14\xc2\x92\x97\xd2\x12\xf2R\x10\xa1\xd2\x07\xb1\x1a\x82\xb4E\x88\xe0C\xbb\xe8\x06ZTL\x8c\x88MW\xf0OL\xcd\xdfn\xf6\xcfd\xee\xcc\xdc{\xcf\xcf\x87{g\xe6\xde\x99\xc9f\xed\x8b\x17~\xdc9s\xce\xef\xfb\xfb\x9c\xdf\xf9{EU\xf9>\x1f\xf3\xbdF\x07\xbc\xef\xd2Xf\xfer\x0f\xce<\x0e\xec\xc4\xc8v\x90\x9b\x11i\x02!\x22\x0b \xc7\xc1\xcc\xe9k\x8f\xcc\xaf[s=C 3\x7f}\x125\xcf!\xb2\x1b\xc0\xf7,\xb7\xdePf\xdbD\x19\x80\xaf\x17[\x9c]l\x129\x05\x04DN\xa1z\x88\x1f\xbc\x7fDgg\xdd\xff\x0d O\xfcm\x12\x91\x97\x10\xb3\xb7Z\xf6\xd9\xbf\xfb&\xb6o\x19\xe5\xa6Z\x09#\xa4\xc1\xb2\x97S\xb8\xb0\xdc\xe6\xf4\xb9\xab\xbc\xf5\xf1eV\xc2\x04\xc4\xcc\xe3\xf4)}e\xdf\x99\xef\x0c 3o\xee\xc1\x98c\xbe5\xd5\xa9\x1d\x13<\xf8\xc3\x1b)\x05\xb6\x1btq\xb5M3\x8a\xb1\xc6`\xada\xa2:\x92\xf5\x1e\x9a\x91\xe3\x1f\xff\xbe\xc2\xfc\x7f\x96\x89\x9c.\x81<\xa6\x7fz\xe0\xef\xeb\x06\x90\x9f\xbf\xb5\x0f\xe1\xcd-\xb5Re\xe6\xfe\xad\xd4*\x1e\x88t\xeb/\x5c\x09yzz\x1b\xbbo\x1fC\x04>>\xb3\xca\xcb\xef|\xcd\xe6\xf1JG\x01\x04\x96\x1a1G\xde\xbf\xc4\xb9\xe5\xa8\x01\xeea}y\xfa\xf8u\x01\xe4\x97\xc7n\xc3\xd9S\xd5\x8a_\xfb\xc5\xfd\xb70Z\xf6z\xa2@\xec\x1c;\xb7Txzz[\xc1\xef\x8d\xf7\xce\xf3\xcf/\xea\x04\x9e\xed\x8e\x0c\x08\xf5\x96\xe3\xcf\xef]d\xa5\xe9VP\xefG\xfa\xc7\xfb\x16\xf2~\x85e(\x07\x0f\x1a\xf0_\x0d\x02\xbf\xb6\xff\x9e\xcd`\x0c\xf5\x96\xa3\xde\xd2\xf4\xddv\x9c]l\xf1\xb3\xbb7\x0fd\xed\xa7wOp\xe6rH\xbd\xed\xa8\xb753\x07\x22\xec\xdf5A\x10xU<}\xa9\xdf\xaf\xb8\x0f|\xf1\x93\x19\xc4NM\xef\xb8\x01\xdf\xf3\xb2\xe0\xae \x8a\xb1\x9c\xf8ry\x00\xe0\xa3\xafV\x11\xcf\xe6\x82\xf7\xcc\xb7\x96\xe9\xc91\x10\xbbW~\xf5\xe1\x93\xd7\x060\xde\xf3\xe3\x1b\x036\x96\x83\xb4\xd7C\xc4b\x0cG?\xb8H3\xea\xad\xae(Q^\xfb\xd79\xd4\xf8i\xbbV\x07\x18\xea\x91R\x8f\x1c\x1b\xcb>\xe3\xa3\x01\x88y\xae\x90\xf5\xce\x1c\x90g\xe6\xa6P\xf3\xee][7p\xebx)\x1bG\xc9\xb5\x14\xb25N\x9c8\x5c\xd4\xe6\xa1\x1d5|kx\xfb\xd3+\xe0\x8d\xe0u\xc7_\xc8/\xd1\x8e\xdf\xd9\xa5\x88O/\xb4\xc0\xe9n\xfd\xc3\xae\x93\x90\xdf\x09\xc5\xdbk\x8cP\xad\x04i\xaa;\xb1\x07@\xb2\xcd\xc6\x968\xb6\xd0\x04\x041ep@\xbb\xb3\x11\x01ho\xe5d\xe5j\xd9\xc7\x98\x18gx\x1c\xe8\x03\xb0vO%\xb04\x22\xcd\xf58/\x08\x89K\x08\x9b\xad\xc1\xde\x01\xe5r\x09\xeb\xd9\x22\xe4\x90NTJ\x1e\xf5\xb6\xee\xec\x84\xcd\x9d\x05f\xb2\x1e\xc1g\x97\x226U}<C\xae\x07)T\x18\xb6\xf8\xe6\xf7\xf72\xec\xb9\xe5\x85\x93\x94G7\xe4\xe0\xa5\x90\xb8\xd8\xc1\xa5\xab1a, f\xfb \x80\xb1eD\x08\x13\xe1\xecrL\xc9\xb7\x94\x03\x8b5\xbdT\xb6\xe3\xa1\xb1S\xb8\x04\x92v?\xb4\x90\xa8\x10F\x8ef\x02N\x0d\xe9\x1e.7\x0f\x03(u\xe8\x1dB#\x16\x1a\xb1\xc3Z\x83\x150V\x11\x19\xa1\xf4\xeb\x0f\xd18\xa2\xf5\xe2\x8f\x8b\x00\xb1\xd0\x8e\xa4{.8\x84D!Q\x05L\x0a&\x9d\xacHs\x08\x809\x0frg1}B\x92\x09\x91d\xff{\x15H\x1a\x03\x19h9 \x81\xce\x8c\xefjH_9\xad\x0f\x87\x00x\xa7\x81;\xf3\xcb\xa67\xd9\xfa\x04\x8c\x1d2\x08&\xfb\xbf\xe3;\xc4\xafW^\xc8yu3\xf0\x09\xc6\x80\xd8TH,\x98L\xd4\xf4\xfd\x96!\x17\xa9k\xb5\x1d\xaey|\x10@\xe4h\xcfi\x8d\xe0\xc6\x16N\xc6\x9e\xbfI\xad\x10\xb0_\xa3[\x9e\x1b\x00\xd0\xc3w\x9dD\xec\x89T\xc0\x14\x89\x0b\x82\x9dT\xaf\x95\x81\xb5:\xe0\x9d\xd2\xd9M\xf3\x03\x00\x00X{x]\x22\xc3\x86\xa0\x0b}\x8d,H\xb6\x12p\x87\x0a\xdc\xf9\x82\xfe\xee\x8e\xd71v\xae\x90\xae|\x16\x14h^\x85\xb8=\x08\x10E\xd0\x5c\x05\xd5\xdc\xd8K\xdfp\xc9<:q\xa4\xc0=p!\xf9\xcd\x7f'1\xfa\x01Hu`6\x87+\xe8\xa1\xc9\xc1\xe0y\xff\x17>\x87\xca\xd8\xb0\xaa%\xd4\xec\xd2\xd9\xf1\xc2\xfdp \x97\xfa\xdb\xad\x0b\x18\xfb(\xc64\xfa\x87\xc0\xf3\xae\xff\x1916\x22\xf8\x83\xcd\x1a(\x8f\xf5\x07\x87!\x19\xe8V\x1c\xbc\xb8\x0f\x957\x10\xa9\x01X#\xd4\xfc\x84R\xd2`4\x106\x06\xc2h\x00e_\x08\xa3\xf4\xec_m+\x91\xbf\x81\xa5\xc8\xb0\x18vuW\x10\xf7\xa8\x1e\xd84p\x1f\x5c\x13 \x85\xb8r\x1b\xa2\xaf\x82N\x01\x94<\xa1V\x12\xc6F\x84\xd1@(\xfb`EHT\x09#\xf8_\xe8X\x0c\xd3\x8bK\xf6\x890\x87\xd3guvb\xe1\x9a1\xae\xf7a\x22\x071\xc8\xe5\x190\xcf\x83\xee\x82tc3\x92Zg\x9a\xc4.=\x03\xb2\xe7\x04\xa2\x87\xf5\xc0\xc4\xebk\x8a\xaf\x07\xa0\x08si\x0a\x91\xbd\x88\xecA\x99\x04\xca@\x098\x0fr\x1a\xf4\x13\xc4\x1d\xd5\x03\x9bN\xae[3\x0f \x22\x06\xf03\xf3ro\x0f\xb093\x99\xe5\xd7\x98\x92\xde\x8b:\xc7R\xc7\xe2\xcc\xa2\xdc;RUG&\x8c\x88H&\xe8\x01A.\xb8\x9f\x95\xfbm$W/Y\xa0\x08h\x0f\xb1\xa8\x0f\xd4\x01NDPU\xf7-\x11\x14@*\xd7Rh\xeb\x00\x00\x00\x00IEND\xaeB`\x82"
qt_resource_name = b"\x00\x06\x07\x03}\xc3\x00i\x00m\x00a\x00g\x00e\x00s\x00\x14\x07@\x8e\xc7\x00a\x00p\x00p\x00l\x00i\x00c\x00a\x00t\x00i\x00o\x00n\x00_\x00e\x00x\x00i\x00t\x00.\x00p\x00n\x00g\x00\x0f\x03\xfd}\xa7\x00f\x00i\x00l\x00e\x00_\x00e\x00x\x00p\x00o\x00r\x00t\x00.\x00p\x00n\x00g\x00\x0f\x03\xac\xf3\xc7\x00f\x00i\x00l\x00e\x00_\x00r\x00e\x00m\x00o\x00v\x00e\x00.\x00p\x00n\x00g\x00\x0d\x05\x0e\xfb\xe7\x00v\x00i\x00e\x00w\x00_\x00t\x00e\x00x\x00t\x00.\x00p\x00n\x00g\x00\x0c\x0a\x07\x01\xe7\x00f\x00i\x00l\x00e\x00_\x00a\x00d\x00d\x00.\x00p\x00n\x00g\x00\x0e\x04\x1f\xe4'\x00v\x00i\x00e\x00w\x00_\x00c\x00l\x00e\x00a\x00r\x00.\x00p\x00n\x00g\x00\x0d\x02\xc5;\xc7\x00f\x00i\x00l\x00e\x00_\x00s\x00a\x00v\x00e\x00.\x00p\x00n\x00g\x00\x0f\x04\x18\x96\x07\x00f\x00o\x00l\x00d\x00e\x00r\x00_\x00o\x00p\x00e\x00n\x00.\x00p\x00n\x00g\x00\x0d\x0c\xc4:'\x00f\x00i\x00l\x00e\x00_\x00o\x00p\x00e\x00n\x00.\x00p\x00n\x00g\x00\x0e\x0e\xab\xe3\xc7\x00h\x00e\x00l\x00p\x00_\x00a\x00b\x00o\x00u\x00t\x00.\x00p\x00n\x00g"
qt_resource_struct = b"\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x02\x00\x00\x00\x0a\x00\x00\x00\x02\x00\x00\x00\xe8\x00\x00\x00\x00\x00\x01\x00\x00\x1fK\x00\x00\x00d\x00\x00\x00\x00\x00\x01\x00\x00\x0c#\x00\x00\x00@\x00\x00\x00\x00\x00\x01\x00\x00\x06\xe4\x00\x00\x01\x08\x00\x00\x00\x00\x00\x01\x00\x00'\xb7\x00\x00\x00\xc6\x00\x00\x00\x00\x00\x01\x00\x00\x17\x86\x00\x00\x00\x88\x00\x00\x00\x00\x00\x01\x00\x00\x0e\xc5\x00\x00\x00\x12\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\xa8\x00\x00\x00\x00\x00\x01\x00\x00\x11\xb3\x00\x00\x01,\x00\x00\x00\x00\x00\x01\x00\x00*L\x00\x00\x01L\x00\x00\x00\x00\x00\x01\x00\x00.\xc7"
def qInitResources():
QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
def qCleanupResources():
QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
qInitResources()
| 2,069.75
| 39,249
| 0.744559
| 9,373
| 41,395
| 3.2807
| 0.213486
| 0.056195
| 0.041561
| 0.022634
| 0.10335
| 0.098504
| 0.092911
| 0.089951
| 0.076846
| 0.068618
| 0
| 0.261959
| 0.004131
| 41,395
| 19
| 39,250
| 2,178.684211
| 0.483966
| 0.003938
| 0
| 0
| 0
| 0.333333
| 0.991195
| 0.985931
| 0
| 0
| 0.000194
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.111111
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
8f8682388b990eefc83c6cd9ade9d11a4829e808
| 129
|
py
|
Python
|
visualize/example/__init__.py
|
rentainhe/visualization
|
d9a8aac82ac6049b3fd59754c6ccf3bd60206218
|
[
"MIT"
] | 169
|
2021-03-14T13:35:07.000Z
|
2022-03-29T12:21:18.000Z
|
visualize/example/__init__.py
|
liwanzhao/visualization
|
0cd047a02957019f9b551f016db21b5117e1cfcd
|
[
"MIT"
] | 6
|
2021-09-29T08:15:53.000Z
|
2022-03-13T10:08:29.000Z
|
visualize/example/__init__.py
|
liwanzhao/visualization
|
0cd047a02957019f9b551f016db21b5117e1cfcd
|
[
"MIT"
] | 31
|
2021-03-14T13:35:11.000Z
|
2022-03-25T11:10:45.000Z
|
from .grid_attention_example import run_grid_attention_example
from .region_attention_example import run_region_attention_example
| 64.5
| 66
| 0.930233
| 18
| 129
| 6.111111
| 0.388889
| 0.581818
| 0.363636
| 0.454545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054264
| 129
| 2
| 66
| 64.5
| 0.901639
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
8fb0c8f3215a2104752be7237a18dcc7867edf63
| 119
|
py
|
Python
|
1.py
|
orangeshushu/lable-tool
|
654ac3a3c033b1047fd05c38eaa4bc3176b430d2
|
[
"MIT"
] | null | null | null |
1.py
|
orangeshushu/lable-tool
|
654ac3a3c033b1047fd05c38eaa4bc3176b430d2
|
[
"MIT"
] | null | null | null |
1.py
|
orangeshushu/lable-tool
|
654ac3a3c033b1047fd05c38eaa4bc3176b430d2
|
[
"MIT"
] | null | null | null |
print("330 - (177.98 + 17.59 + 3.68 + 51.91/2 - 55 - 4.5) =" + str(330 - (177.98 + 17.59 + 3.68 + 51.91/2 - 55 - 4.5)))
| 119
| 119
| 0.470588
| 28
| 119
| 2
| 0.535714
| 0.214286
| 0.285714
| 0.357143
| 0.857143
| 0.857143
| 0.857143
| 0.857143
| 0.857143
| 0.857143
| 0
| 0.521739
| 0.226891
| 119
| 1
| 119
| 119
| 0.086957
| 0
| 0
| 0
| 0
| 1
| 0.433333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 17
|
8fb67d2c6f556dcd39ca4620235f0e4b3e555619
| 10,948
|
py
|
Python
|
game.py
|
ChristianBRPy/RollingDiceGame
|
a086e5a88350331b10d09fc8c1db6c89cdd8f5c9
|
[
"Apache-2.0"
] | null | null | null |
game.py
|
ChristianBRPy/RollingDiceGame
|
a086e5a88350331b10d09fc8c1db6c89cdd8f5c9
|
[
"Apache-2.0"
] | null | null | null |
game.py
|
ChristianBRPy/RollingDiceGame
|
a086e5a88350331b10d09fc8c1db6c89cdd8f5c9
|
[
"Apache-2.0"
] | null | null | null |
import os, sys, random, csv, getpass, platform
gamename = "Rolling Dice Game"
os.system('cls' if os.name == 'nt' else 'clear')
if platform.system() == "Linux":
os.system("PROMPT_COMMAND='echo -ne \"\033]0;"+gamename+"\007\"'")
else:
os.system('title '+gamename if os.name == 'nt' else 'title="'+gamename+'" && echo -n -e "\033]0;$title\007"')
P1acc = ""
P2acc = ""
P1s = 0
P2s = 0
import csv
data={}
with open('accdb.csv') as fin:
reader=csv.reader(fin, skipinitialspace=True, quotechar="'")
for row in reader:
data[row[0]]=row[1:]
def run():
print("Welcome to the rolling dice game")
print("Player 1:")
print("login or signup")
ans = ""
ans = input("Command: ")
while ans not in ("login","signup"):
ans = input("Command: ")
if (ans == "login"):
uname = input("Username: ")
if uname in data["uname"]:
uid = data["uname"].index(uname)
pwd = getpass.getpass()
if pwd == data["password"][uid]:
a = input(data["q"][uid])
if data["a"][uid] == a:
print("Player 1 logged in.")
P1acc = data["uname"][uid]
else:
print("Incorrect password.")
run()
return
else:
print("Incorrect Password.")
run()
return
else:
print("User does not exist")
run()
return
elif (ans == "signup"):
uname = input("Username: ")
pwd = getpass.getpass()
q = input("Security Question: ")
a = input("Answer: ")
open("accdb.csv", "w").close()
with open('accdb.csv', 'w') as f:
u = "uname,"+",".join(data["uname"])
p = "password,"+",".join(data["password"])
q = "q,"+",".join(data["q"])
a = "a,"+",".join(data["a"])
f.write(u+"\n"+p+"\n"+q+"\n"+a)
print("Player 2:")
print("login or signup")
ans = ""
ans = input("Command: ")
while ans not in ("login","signup"):
ans = input("Command: ")
if (ans == "login"):
uname = input("Username: ")
if uname in data["uname"]:
uid = data["uname"].index(uname)
pwd = getpass.getpass()
if pwd == data["password"][uid]:
a = input(data["q"][uid])
if data["a"][uid] == a:
print("Player 2 logged in.")
P2acc = data["uname"][uid]
else:
print("Incorrect password.")
run()
return
else:
print("Incorrect Password.")
run()
return
else:
print("User does not exist")
run()
return
elif (ans == "signup"):
uname = input("Username: ")
pwd = getpass.getpass()
q = input("Security Question: ")
a = input("Answer: ")
open("accdb.csv", "w").close()
with open('accdb.csv', 'w') as f:
u = "uname,"+",".join(data["uname"])
p = "password,"+",".join(data["password"])
q = "q,"+",".join(data["q"])
a = "a,"+",".join(data["a"])
f.write(u+"\n"+p+"\n"+q+"\n"+a)
print("Round 1")
print("Enter 'roll' to roll.")
print("Player 1's turn.")
ans = ""
ans = input("Command: ")
while ans not in ("roll","exit"):
ans = input("Command: ")
if ans == "roll":
dice = (random.randint(1,6),random.randint(1,6))
print("Player 1 rolled a "+str(dice[0])+" and a "+str(dice[1]))
if dice[0]+dice[1] in (2,4,6):
P1s + 10
elif dice[0]+dice[1] in (1,2,3):
P1s - 5
if P1s < 0:
P1s = 0
elif ans == "exit":
exit()
print("Player 2's turn.")
ans = ""
ans = input("Command: ")
while ans not in ("roll","exit"):
ans = input("Command: ")
if ans == "roll":
dice = (random.randint(1,6),random.randint(1,6))
print("Player 2 rolled a "+str(dice[0])+" and a "+str(dice[1]))
if dice[0]+dice[1] in (2,4,6):
P2s + 10
elif dice[0]+dice[1] in (1,2,3):
P2s - 5
if P2s < 0:
P1s = 0
print("Round 1 over.")
print("Round 2")
print("Enter 'roll' to roll.")
print("Player 1's turn.")
ans = ""
ans = input("Command: ")
while ans not in ("roll","exit"):
ans = input("Command: ")
if ans == "roll":
dice = (random.randint(1,6),random.randint(1,6))
print("Player 1 rolled a "+str(dice[0])+" and a "+str(dice[1]))
if dice[0]+dice[1] in (2,4,6):
P1s + 10
elif dice[0]+dice[1] in (1,2,3):
P1s - 5
if P1s < 0:
P1s = 0
elif ans == "exit":
exit()
print("Player 2's turn.")
ans = ""
ans = input("Command: ")
while ans not in ("roll","exit"):
ans = input("Command: ")
if ans == "roll":
dice = (random.randint(1,6),random.randint(1,6))
print("Player 2 rolled a "+str(dice[0])+" and a "+str(dice[1]))
if dice[0]+dice[1] in (2,4,6):
P2s + 10
elif dice[0]+dice[1] in (1,2,3):
P2s - 5
if P2s < 0:
P1s = 0
print("Round 2 over.")
print("Round 3")
print("Enter 'roll' to roll.")
print("Player 1's turn.")
ans = ""
ans = input("Command: ")
while ans not in ("roll","exit"):
ans = input("Command: ")
if ans == "roll":
dice = (random.randint(1,6),random.randint(1,6))
print("Player 1 rolled a "+str(dice[0])+" and a "+str(dice[1]))
if dice[0]+dice[1] in (2,4,6):
P1s + 10
elif dice[0]+dice[1] in (1,2,3):
P1s - 5
if P1s < 0:
P1s = 0
elif ans == "exit":
exit()
print("Player 2's turn.")
ans = ""
ans = input("Command: ")
while ans not in ("roll","exit"):
ans = input("Command: ")
if ans == "roll":
dice = (random.randint(1,6),random.randint(1,6))
print("Player 2 rolled a "+str(dice[0])+" and a "+str(dice[1]))
if dice[0]+dice[1] in (2,4,6):
P2s + 10
elif dice[0]+dice[1] in (1,2,3):
P2s - 5
if P2s < 0:
P1s = 0
print("Round 3 over.")
print("Round 4")
print("Enter 'roll' to roll.")
print("Player 1's turn.")
ans = ""
ans = input("Command: ")
while ans not in ("roll","exit"):
ans = input("Command: ")
if ans == "roll":
dice = (random.randint(1,6),random.randint(1,6))
print("Player 1 rolled a "+str(dice[0])+" and a "+str(dice[1]))
if dice[0]+dice[1] in (2,4,6):
P1s + 10
elif dice[0]+dice[1] in (1,2,3):
P1s - 5
if P1s < 0:
P1s = 0
elif ans == "exit":
exit()
print("Player 2's turn.")
ans = ""
ans = input("Command: ")
while ans not in ("roll","exit"):
ans = input("Command: ")
if ans == "roll":
dice = (random.randint(1,6),random.randint(1,6))
print("Player 2 rolled a "+str(dice[0])+" and a "+str(dice[1]))
if dice[0]+dice[1] in (2,4,6):
P2s + 10
elif dice[0]+dice[1] in (1,2,3):
P2s - 5
if P2s < 0:
P1s = 0
print("Round 4 over.")
print("Round 5")
print("Enter 'roll' to roll.")
print("Player 1's turn.")
ans = ""
ans = input("Command: ")
while ans not in ("roll","exit"):
ans = input("Command: ")
if ans == "roll":
dice = (random.randint(1,6),random.randint(1,6))
print("Player 1 rolled a "+str(dice[0])+" and a "+str(dice[1]))
if dice[0]+dice[1] in (2,4,6):
P1s + 10
elif dice[0]+dice[1] in (1,2,3):
P1s - 5
if P1s < 0:
P1s = 0
elif ans == "exit":
exit()
print("Player 2's turn.")
ans = ""
ans = input("Command: ")
while ans not in ("roll","exit"):
ans = input("Command: ")
if ans == "roll":
dice = (random.randint(1,6),random.randint(1,6))
print("Player 2 rolled a "+str(dice[0])+" and a "+str(dice[1]))
if dice[0]+dice[1] in (2,4,6):
P2s + 10
elif dice[0]+dice[1] in (1,2,3):
P2s - 5
if P2s < 0:
P1s = 0
elif ans == "exit":
exit()
print("Round 5 over.")
if P1s > P2s:
print("Player 1 wins!")
s = open("scores.csv", "w")
s.write("Score, Username\n"+P1s+","+P1acc+"\n"+P2s+","+P2acc)
print("Saved scores to: scores.csv")
exit()
elif P2s > P1s:
print("Player 2 wins!")
s = open("scores.csv", "w")
s.write("Score, Username\n"+P2s+","+P2acc+"\n"+P1s+","+P1acc)
print("Saved scores to: scores.csv")
exit()
elif P2s == P1s:
print("DRAW. Roll until someone wins")
while P2s == P1s:
print("Player 1's turn.")
ans = ""
ans = input("Command: ")
while ans not in ("roll","exit"):
ans = input("Command: ")
if ans == "roll":
dice = (random.randint(1,6),random.randint(1,6))
print("Player 1 rolled a "+str(dice[0])+" and a "+str(dice[1]))
if dice[0]+dice[1] in (2,4,6):
P1s + 10
elif dice[0]+dice[1] in (1,2,3):
P1s - 5
if P1s < 0:
P1s = 0
elif ans == "exit":
exit()
print("Player 2's turn.")
ans = ""
ans = input("Command: ")
while ans not in ("roll","exit"):
ans = input("Command: ")
if ans == "roll":
dice = (random.randint(1,6),random.randint(1,6))
print("Player 2 rolled a "+str(dice[0])+" and a "+str(dice[1]))
if dice[0]+dice[1] in (2,4,6):
P2s + 10
elif dice[0]+dice[1] in (1,2,3):
P2s - 5
if P2s < 0:
P1s = 0
if P1s > P2s:
print("Player 1 wins!")
s = open("scores.csv", "w")
s.write("Score, Username\n"+P1s+","+P1acc+"\n"+P2s+","+P2acc)
print("Saved scores to: scores.csv")
exit()
elif P2s > P1s:
print("Player 2 wins!")
s = open("scores.csv", "w")
s.write("Score, Username\n"+P2s+","+P2acc+"\n"+P1s+","+P1acc)
print("Saved scores to: scores.csv")
exit()
if __name__ == "__main__":
run()
| 32.390533
| 113
| 0.44145
| 1,433
| 10,948
| 3.366364
| 0.07746
| 0.037313
| 0.087065
| 0.074627
| 0.889925
| 0.884121
| 0.884121
| 0.884121
| 0.879975
| 0.879975
| 0
| 0.05751
| 0.374224
| 10,948
| 337
| 114
| 32.486647
| 0.646621
| 0
| 0
| 0.886154
| 0
| 0
| 0.194282
| 0
| 0.024615
| 0
| 0
| 0
| 0
| 1
| 0.003077
| false
| 0.04
| 0.006154
| 0
| 0.027692
| 0.187692
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8fca70e22f94237a43a7bec530cb4b3a9e50d977
| 16,859
|
py
|
Python
|
sdk/python/pulumi_azure/apimanagement/product_api.py
|
henriktao/pulumi-azure
|
f1cbcf100b42b916da36d8fe28be3a159abaf022
|
[
"ECL-2.0",
"Apache-2.0"
] | 109
|
2018-06-18T00:19:44.000Z
|
2022-02-20T05:32:57.000Z
|
sdk/python/pulumi_azure/apimanagement/product_api.py
|
henriktao/pulumi-azure
|
f1cbcf100b42b916da36d8fe28be3a159abaf022
|
[
"ECL-2.0",
"Apache-2.0"
] | 663
|
2018-06-18T21:08:46.000Z
|
2022-03-31T20:10:11.000Z
|
sdk/python/pulumi_azure/apimanagement/product_api.py
|
henriktao/pulumi-azure
|
f1cbcf100b42b916da36d8fe28be3a159abaf022
|
[
"ECL-2.0",
"Apache-2.0"
] | 41
|
2018-07-19T22:37:38.000Z
|
2022-03-14T10:56:26.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['ProductApiArgs', 'ProductApi']
@pulumi.input_type
class ProductApiArgs:
def __init__(__self__, *,
api_management_name: pulumi.Input[str],
api_name: pulumi.Input[str],
product_id: pulumi.Input[str],
resource_group_name: pulumi.Input[str]):
"""
The set of arguments for constructing a ProductApi resource.
:param pulumi.Input[str] api_management_name: The name of the API Management Service. Changing this forces a new resource to be created.
:param pulumi.Input[str] api_name: The Name of the API Management API within the API Management Service. Changing this forces a new resource to be created.
:param pulumi.Input[str] product_id: The ID of the API Management Product within the API Management Service. Changing this forces a new resource to be created.
:param pulumi.Input[str] resource_group_name: The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
"""
pulumi.set(__self__, "api_management_name", api_management_name)
pulumi.set(__self__, "api_name", api_name)
pulumi.set(__self__, "product_id", product_id)
pulumi.set(__self__, "resource_group_name", resource_group_name)
@property
@pulumi.getter(name="apiManagementName")
def api_management_name(self) -> pulumi.Input[str]:
"""
The name of the API Management Service. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "api_management_name")
@api_management_name.setter
def api_management_name(self, value: pulumi.Input[str]):
pulumi.set(self, "api_management_name", value)
@property
@pulumi.getter(name="apiName")
def api_name(self) -> pulumi.Input[str]:
"""
The Name of the API Management API within the API Management Service. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "api_name")
@api_name.setter
def api_name(self, value: pulumi.Input[str]):
pulumi.set(self, "api_name", value)
@property
@pulumi.getter(name="productId")
def product_id(self) -> pulumi.Input[str]:
"""
The ID of the API Management Product within the API Management Service. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "product_id")
@product_id.setter
def product_id(self, value: pulumi.Input[str]):
pulumi.set(self, "product_id", value)
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> pulumi.Input[str]:
"""
The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "resource_group_name")
@resource_group_name.setter
def resource_group_name(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_group_name", value)
@pulumi.input_type
class _ProductApiState:
def __init__(__self__, *,
api_management_name: Optional[pulumi.Input[str]] = None,
api_name: Optional[pulumi.Input[str]] = None,
product_id: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering ProductApi resources.
:param pulumi.Input[str] api_management_name: The name of the API Management Service. Changing this forces a new resource to be created.
:param pulumi.Input[str] api_name: The Name of the API Management API within the API Management Service. Changing this forces a new resource to be created.
:param pulumi.Input[str] product_id: The ID of the API Management Product within the API Management Service. Changing this forces a new resource to be created.
:param pulumi.Input[str] resource_group_name: The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
"""
if api_management_name is not None:
pulumi.set(__self__, "api_management_name", api_management_name)
if api_name is not None:
pulumi.set(__self__, "api_name", api_name)
if product_id is not None:
pulumi.set(__self__, "product_id", product_id)
if resource_group_name is not None:
pulumi.set(__self__, "resource_group_name", resource_group_name)
@property
@pulumi.getter(name="apiManagementName")
def api_management_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the API Management Service. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "api_management_name")
@api_management_name.setter
def api_management_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "api_management_name", value)
@property
@pulumi.getter(name="apiName")
def api_name(self) -> Optional[pulumi.Input[str]]:
"""
The Name of the API Management API within the API Management Service. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "api_name")
@api_name.setter
def api_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "api_name", value)
@property
@pulumi.getter(name="productId")
def product_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the API Management Product within the API Management Service. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "product_id")
@product_id.setter
def product_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "product_id", value)
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "resource_group_name")
@resource_group_name.setter
def resource_group_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "resource_group_name", value)
class ProductApi(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
api_management_name: Optional[pulumi.Input[str]] = None,
api_name: Optional[pulumi.Input[str]] = None,
product_id: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
Manages an API Management API Assignment to a Product.
## Example Usage
```python
import pulumi
import pulumi_azure as azure
example_service = azure.apimanagement.get_service(name="example-api",
resource_group_name="example-resources")
example_api = azure.apimanagement.get_api(name="search-api",
api_management_name=example_service.name,
resource_group_name=example_service.resource_group_name,
revision="2")
example_product = azure.apimanagement.get_product(product_id="my-product",
api_management_name=example_service.name,
resource_group_name=example_service.resource_group_name)
example_product_api = azure.apimanagement.ProductApi("exampleProductApi",
api_name=example_api.name,
product_id=example_product.product_id,
api_management_name=example_service.name,
resource_group_name=example_service.resource_group_name)
```
## Import
API Management Product API's can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:apimanagement/productApi:ProductApi example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/products/exampleId/apis/apiId
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] api_management_name: The name of the API Management Service. Changing this forces a new resource to be created.
:param pulumi.Input[str] api_name: The Name of the API Management API within the API Management Service. Changing this forces a new resource to be created.
:param pulumi.Input[str] product_id: The ID of the API Management Product within the API Management Service. Changing this forces a new resource to be created.
:param pulumi.Input[str] resource_group_name: The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: ProductApiArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages an API Management API Assignment to a Product.
## Example Usage
```python
import pulumi
import pulumi_azure as azure
example_service = azure.apimanagement.get_service(name="example-api",
resource_group_name="example-resources")
example_api = azure.apimanagement.get_api(name="search-api",
api_management_name=example_service.name,
resource_group_name=example_service.resource_group_name,
revision="2")
example_product = azure.apimanagement.get_product(product_id="my-product",
api_management_name=example_service.name,
resource_group_name=example_service.resource_group_name)
example_product_api = azure.apimanagement.ProductApi("exampleProductApi",
api_name=example_api.name,
product_id=example_product.product_id,
api_management_name=example_service.name,
resource_group_name=example_service.resource_group_name)
```
## Import
API Management Product API's can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:apimanagement/productApi:ProductApi example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/products/exampleId/apis/apiId
```
:param str resource_name: The name of the resource.
:param ProductApiArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(ProductApiArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
api_management_name: Optional[pulumi.Input[str]] = None,
api_name: Optional[pulumi.Input[str]] = None,
product_id: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = ProductApiArgs.__new__(ProductApiArgs)
if api_management_name is None and not opts.urn:
raise TypeError("Missing required property 'api_management_name'")
__props__.__dict__["api_management_name"] = api_management_name
if api_name is None and not opts.urn:
raise TypeError("Missing required property 'api_name'")
__props__.__dict__["api_name"] = api_name
if product_id is None and not opts.urn:
raise TypeError("Missing required property 'product_id'")
__props__.__dict__["product_id"] = product_id
if resource_group_name is None and not opts.urn:
raise TypeError("Missing required property 'resource_group_name'")
__props__.__dict__["resource_group_name"] = resource_group_name
super(ProductApi, __self__).__init__(
'azure:apimanagement/productApi:ProductApi',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
api_management_name: Optional[pulumi.Input[str]] = None,
api_name: Optional[pulumi.Input[str]] = None,
product_id: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None) -> 'ProductApi':
"""
Get an existing ProductApi resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] api_management_name: The name of the API Management Service. Changing this forces a new resource to be created.
:param pulumi.Input[str] api_name: The Name of the API Management API within the API Management Service. Changing this forces a new resource to be created.
:param pulumi.Input[str] product_id: The ID of the API Management Product within the API Management Service. Changing this forces a new resource to be created.
:param pulumi.Input[str] resource_group_name: The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _ProductApiState.__new__(_ProductApiState)
__props__.__dict__["api_management_name"] = api_management_name
__props__.__dict__["api_name"] = api_name
__props__.__dict__["product_id"] = product_id
__props__.__dict__["resource_group_name"] = resource_group_name
return ProductApi(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="apiManagementName")
def api_management_name(self) -> pulumi.Output[str]:
"""
The name of the API Management Service. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "api_management_name")
@property
@pulumi.getter(name="apiName")
def api_name(self) -> pulumi.Output[str]:
"""
The Name of the API Management API within the API Management Service. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "api_name")
@property
@pulumi.getter(name="productId")
def product_id(self) -> pulumi.Output[str]:
"""
The ID of the API Management Product within the API Management Service. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "product_id")
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> pulumi.Output[str]:
"""
The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "resource_group_name")
| 47.759207
| 229
| 0.675485
| 2,106
| 16,859
| 5.162868
| 0.080247
| 0.100432
| 0.06953
| 0.059229
| 0.855974
| 0.835832
| 0.823416
| 0.805665
| 0.780465
| 0.767038
| 0
| 0.005537
| 0.239457
| 16,859
| 352
| 230
| 47.894886
| 0.842458
| 0.42897
| 0
| 0.564972
| 1
| 0
| 0.121878
| 0.009598
| 0
| 0
| 0
| 0
| 0
| 1
| 0.152542
| false
| 0.00565
| 0.028249
| 0
| 0.271186
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
64fb59363fd93dd8d79973051858a98b2c36b7d9
| 186
|
py
|
Python
|
flaskcli_pkg/templates/restfull/__init__.py
|
guxal/Flask-CLI
|
a1408e271dda51c05fe0ae02bc3e269b0ef019c3
|
[
"MIT"
] | 1
|
2020-08-24T20:06:14.000Z
|
2020-08-24T20:06:14.000Z
|
flaskcli_pkg/templates/restfull/__init__.py
|
guxal/Flask-CLI
|
a1408e271dda51c05fe0ae02bc3e269b0ef019c3
|
[
"MIT"
] | 4
|
2020-03-06T19:11:53.000Z
|
2020-03-28T19:22:42.000Z
|
flaskcli_pkg/templates/restfull/__init__.py
|
guxal/Flask-CLI
|
a1408e271dda51c05fe0ae02bc3e269b0ef019c3
|
[
"MIT"
] | 2
|
2020-03-26T18:49:04.000Z
|
2020-08-25T17:55:11.000Z
|
from flask import Blueprint
app_views = Blueprint('app_views', __name__, url_prefix='/api/v1')
from api.v1.views.index import * # noqa
''' from api.v1.views.<file> import * # noqa '''
| 37.2
| 66
| 0.704301
| 28
| 186
| 4.428571
| 0.5
| 0.120968
| 0.274194
| 0.225806
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018634
| 0.134409
| 186
| 4
| 67
| 46.5
| 0.751553
| 0.021505
| 0
| 0
| 0
| 0
| 0.122137
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0.666667
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
8f43dbe7723d636ba742a7cadd179d52baf09618
| 256
|
py
|
Python
|
SBaaS_rnasequencing/stage01_rnasequencing_softwareParameters_execute.py
|
dmccloskey/SBaaS_rnasequencing
|
521ad0b671b0bca02e9cebfc1b372f2265955418
|
[
"MIT"
] | null | null | null |
SBaaS_rnasequencing/stage01_rnasequencing_softwareParameters_execute.py
|
dmccloskey/SBaaS_rnasequencing
|
521ad0b671b0bca02e9cebfc1b372f2265955418
|
[
"MIT"
] | null | null | null |
SBaaS_rnasequencing/stage01_rnasequencing_softwareParameters_execute.py
|
dmccloskey/SBaaS_rnasequencing
|
521ad0b671b0bca02e9cebfc1b372f2265955418
|
[
"MIT"
] | null | null | null |
from .stage01_rnasequencing_softwareParameters_io import stage01_rnasequencing_softwareParameters_io
class stage01_rnasequencing_softwareParameters_execute(stage01_rnasequencing_softwareParameters_io,
):
pass;
| 42.666667
| 100
| 0.765625
| 20
| 256
| 9.2
| 0.45
| 0.434783
| 0.826087
| 0.652174
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.039604
| 0.210938
| 256
| 6
| 101
| 42.666667
| 0.871287
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.25
| 0.25
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
8f6ed425538892edaa66f47cc3a79d0c10f0877d
| 6,821
|
py
|
Python
|
loldib/getratings/models/NA/na_pantheon/na_pantheon_bot.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_pantheon/na_pantheon_bot.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_pantheon/na_pantheon_bot.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
from getratings.models.ratings import Ratings
class NA_Pantheon_Bot_Aatrox(Ratings):
pass
class NA_Pantheon_Bot_Ahri(Ratings):
pass
class NA_Pantheon_Bot_Akali(Ratings):
pass
class NA_Pantheon_Bot_Alistar(Ratings):
pass
class NA_Pantheon_Bot_Amumu(Ratings):
pass
class NA_Pantheon_Bot_Anivia(Ratings):
pass
class NA_Pantheon_Bot_Annie(Ratings):
pass
class NA_Pantheon_Bot_Ashe(Ratings):
pass
class NA_Pantheon_Bot_AurelionSol(Ratings):
pass
class NA_Pantheon_Bot_Azir(Ratings):
pass
class NA_Pantheon_Bot_Bard(Ratings):
pass
class NA_Pantheon_Bot_Blitzcrank(Ratings):
pass
class NA_Pantheon_Bot_Brand(Ratings):
pass
class NA_Pantheon_Bot_Braum(Ratings):
pass
class NA_Pantheon_Bot_Caitlyn(Ratings):
pass
class NA_Pantheon_Bot_Camille(Ratings):
pass
class NA_Pantheon_Bot_Cassiopeia(Ratings):
pass
class NA_Pantheon_Bot_Chogath(Ratings):
pass
class NA_Pantheon_Bot_Corki(Ratings):
pass
class NA_Pantheon_Bot_Darius(Ratings):
pass
class NA_Pantheon_Bot_Diana(Ratings):
pass
class NA_Pantheon_Bot_Draven(Ratings):
pass
class NA_Pantheon_Bot_DrMundo(Ratings):
pass
class NA_Pantheon_Bot_Ekko(Ratings):
pass
class NA_Pantheon_Bot_Elise(Ratings):
pass
class NA_Pantheon_Bot_Evelynn(Ratings):
pass
class NA_Pantheon_Bot_Ezreal(Ratings):
pass
class NA_Pantheon_Bot_Fiddlesticks(Ratings):
pass
class NA_Pantheon_Bot_Fiora(Ratings):
pass
class NA_Pantheon_Bot_Fizz(Ratings):
pass
class NA_Pantheon_Bot_Galio(Ratings):
pass
class NA_Pantheon_Bot_Gangplank(Ratings):
pass
class NA_Pantheon_Bot_Garen(Ratings):
pass
class NA_Pantheon_Bot_Gnar(Ratings):
pass
class NA_Pantheon_Bot_Gragas(Ratings):
pass
class NA_Pantheon_Bot_Graves(Ratings):
pass
class NA_Pantheon_Bot_Hecarim(Ratings):
pass
class NA_Pantheon_Bot_Heimerdinger(Ratings):
pass
class NA_Pantheon_Bot_Illaoi(Ratings):
pass
class NA_Pantheon_Bot_Irelia(Ratings):
pass
class NA_Pantheon_Bot_Ivern(Ratings):
pass
class NA_Pantheon_Bot_Janna(Ratings):
pass
class NA_Pantheon_Bot_JarvanIV(Ratings):
pass
class NA_Pantheon_Bot_Jax(Ratings):
pass
class NA_Pantheon_Bot_Jayce(Ratings):
pass
class NA_Pantheon_Bot_Jhin(Ratings):
pass
class NA_Pantheon_Bot_Jinx(Ratings):
pass
class NA_Pantheon_Bot_Kalista(Ratings):
pass
class NA_Pantheon_Bot_Karma(Ratings):
pass
class NA_Pantheon_Bot_Karthus(Ratings):
pass
class NA_Pantheon_Bot_Kassadin(Ratings):
pass
class NA_Pantheon_Bot_Katarina(Ratings):
pass
class NA_Pantheon_Bot_Kayle(Ratings):
pass
class NA_Pantheon_Bot_Kayn(Ratings):
pass
class NA_Pantheon_Bot_Kennen(Ratings):
pass
class NA_Pantheon_Bot_Khazix(Ratings):
pass
class NA_Pantheon_Bot_Kindred(Ratings):
pass
class NA_Pantheon_Bot_Kled(Ratings):
pass
class NA_Pantheon_Bot_KogMaw(Ratings):
pass
class NA_Pantheon_Bot_Leblanc(Ratings):
pass
class NA_Pantheon_Bot_LeeSin(Ratings):
pass
class NA_Pantheon_Bot_Leona(Ratings):
pass
class NA_Pantheon_Bot_Lissandra(Ratings):
pass
class NA_Pantheon_Bot_Lucian(Ratings):
pass
class NA_Pantheon_Bot_Lulu(Ratings):
pass
class NA_Pantheon_Bot_Lux(Ratings):
pass
class NA_Pantheon_Bot_Malphite(Ratings):
pass
class NA_Pantheon_Bot_Malzahar(Ratings):
pass
class NA_Pantheon_Bot_Maokai(Ratings):
pass
class NA_Pantheon_Bot_MasterYi(Ratings):
pass
class NA_Pantheon_Bot_MissFortune(Ratings):
pass
class NA_Pantheon_Bot_MonkeyKing(Ratings):
pass
class NA_Pantheon_Bot_Mordekaiser(Ratings):
pass
class NA_Pantheon_Bot_Morgana(Ratings):
pass
class NA_Pantheon_Bot_Nami(Ratings):
pass
class NA_Pantheon_Bot_Nasus(Ratings):
pass
class NA_Pantheon_Bot_Nautilus(Ratings):
pass
class NA_Pantheon_Bot_Nidalee(Ratings):
pass
class NA_Pantheon_Bot_Nocturne(Ratings):
pass
class NA_Pantheon_Bot_Nunu(Ratings):
pass
class NA_Pantheon_Bot_Olaf(Ratings):
pass
class NA_Pantheon_Bot_Orianna(Ratings):
pass
class NA_Pantheon_Bot_Ornn(Ratings):
pass
class NA_Pantheon_Bot_Pantheon(Ratings):
pass
class NA_Pantheon_Bot_Poppy(Ratings):
pass
class NA_Pantheon_Bot_Quinn(Ratings):
pass
class NA_Pantheon_Bot_Rakan(Ratings):
pass
class NA_Pantheon_Bot_Rammus(Ratings):
pass
class NA_Pantheon_Bot_RekSai(Ratings):
pass
class NA_Pantheon_Bot_Renekton(Ratings):
pass
class NA_Pantheon_Bot_Rengar(Ratings):
pass
class NA_Pantheon_Bot_Riven(Ratings):
pass
class NA_Pantheon_Bot_Rumble(Ratings):
pass
class NA_Pantheon_Bot_Ryze(Ratings):
pass
class NA_Pantheon_Bot_Sejuani(Ratings):
pass
class NA_Pantheon_Bot_Shaco(Ratings):
pass
class NA_Pantheon_Bot_Shen(Ratings):
pass
class NA_Pantheon_Bot_Shyvana(Ratings):
pass
class NA_Pantheon_Bot_Singed(Ratings):
pass
class NA_Pantheon_Bot_Sion(Ratings):
pass
class NA_Pantheon_Bot_Sivir(Ratings):
pass
class NA_Pantheon_Bot_Skarner(Ratings):
pass
class NA_Pantheon_Bot_Sona(Ratings):
pass
class NA_Pantheon_Bot_Soraka(Ratings):
pass
class NA_Pantheon_Bot_Swain(Ratings):
pass
class NA_Pantheon_Bot_Syndra(Ratings):
pass
class NA_Pantheon_Bot_TahmKench(Ratings):
pass
class NA_Pantheon_Bot_Taliyah(Ratings):
pass
class NA_Pantheon_Bot_Talon(Ratings):
pass
class NA_Pantheon_Bot_Taric(Ratings):
pass
class NA_Pantheon_Bot_Teemo(Ratings):
pass
class NA_Pantheon_Bot_Thresh(Ratings):
pass
class NA_Pantheon_Bot_Tristana(Ratings):
pass
class NA_Pantheon_Bot_Trundle(Ratings):
pass
class NA_Pantheon_Bot_Tryndamere(Ratings):
pass
class NA_Pantheon_Bot_TwistedFate(Ratings):
pass
class NA_Pantheon_Bot_Twitch(Ratings):
pass
class NA_Pantheon_Bot_Udyr(Ratings):
pass
class NA_Pantheon_Bot_Urgot(Ratings):
pass
class NA_Pantheon_Bot_Varus(Ratings):
pass
class NA_Pantheon_Bot_Vayne(Ratings):
pass
class NA_Pantheon_Bot_Veigar(Ratings):
pass
class NA_Pantheon_Bot_Velkoz(Ratings):
pass
class NA_Pantheon_Bot_Vi(Ratings):
pass
class NA_Pantheon_Bot_Viktor(Ratings):
pass
class NA_Pantheon_Bot_Vladimir(Ratings):
pass
class NA_Pantheon_Bot_Volibear(Ratings):
pass
class NA_Pantheon_Bot_Warwick(Ratings):
pass
class NA_Pantheon_Bot_Xayah(Ratings):
pass
class NA_Pantheon_Bot_Xerath(Ratings):
pass
class NA_Pantheon_Bot_XinZhao(Ratings):
pass
class NA_Pantheon_Bot_Yasuo(Ratings):
pass
class NA_Pantheon_Bot_Yorick(Ratings):
pass
class NA_Pantheon_Bot_Zac(Ratings):
pass
class NA_Pantheon_Bot_Zed(Ratings):
pass
class NA_Pantheon_Bot_Ziggs(Ratings):
pass
class NA_Pantheon_Bot_Zilean(Ratings):
pass
class NA_Pantheon_Bot_Zyra(Ratings):
pass
| 16.357314
| 46
| 0.776133
| 972
| 6,821
| 5.020576
| 0.151235
| 0.197951
| 0.42418
| 0.509016
| 0.814139
| 0.814139
| 0
| 0
| 0
| 0
| 0
| 0
| 0.162879
| 6,821
| 416
| 47
| 16.396635
| 0.854641
| 0
| 0
| 0.498195
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.498195
| 0.00361
| 0
| 0.501805
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
8f7a753bbb8c7d230421f16a2061f1d3d9d0a028
| 143
|
py
|
Python
|
extension/__init__.py
|
Gilgamesh666666/Dgr-ncnet
|
3ad2d0fdb35ba0d23e5040d74347c600b1a8b72b
|
[
"MIT"
] | null | null | null |
extension/__init__.py
|
Gilgamesh666666/Dgr-ncnet
|
3ad2d0fdb35ba0d23e5040d74347c600b1a8b72b
|
[
"MIT"
] | null | null | null |
extension/__init__.py
|
Gilgamesh666666/Dgr-ncnet
|
3ad2d0fdb35ba0d23e5040d74347c600b1a8b72b
|
[
"MIT"
] | null | null | null |
from extension.knn import knnModule
from extension.sms import soft_mutual_score_Module
from extension.sms_On import soft_mutual_score_Module_On
| 47.666667
| 56
| 0.902098
| 23
| 143
| 5.26087
| 0.478261
| 0.322314
| 0.264463
| 0.347107
| 0.446281
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 143
| 3
| 56
| 47.666667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
56df3e6c377a3b7cddeff188f85e495e6e7a3047
| 52,525
|
py
|
Python
|
OpenGLCffi/FFI/_gles2ffi.py
|
cydenix/OpenGLCffi
|
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
|
[
"MIT"
] | null | null | null |
OpenGLCffi/FFI/_gles2ffi.py
|
cydenix/OpenGLCffi
|
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
|
[
"MIT"
] | null | null | null |
OpenGLCffi/FFI/_gles2ffi.py
|
cydenix/OpenGLCffi
|
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
|
[
"MIT"
] | null | null | null |
# auto-generated file
import _cffi_backend
ffi = _cffi_backend.FFI('FFI._gles2ffi',
_version = 0x2601,
_types = b'\x00\x00\x31\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x00\x02\x0D\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x00\x02\x0D\x00\x00\x08\x01\x00\x06\x1A\x03\x00\x00\x00\x0F\x00\x00\x02\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x0A\x11\x00\x00\x00\x0F\x00\x00\x27\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x00\x2A\x0D\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x00\x2A\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x04\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x00\x2A\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x02\xEF\x0D\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x00\x1B\x0D\x00\x06\x20\x03\x00\x00\x00\x0F\x00\x00\x1B\x0D\x00\x00\x18\x01\x00\x00\x00\x0F\x00\x00\x1B\x0D\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x00\x1B\x0D\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x00\x1B\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x0D\x01\x00\x00\x31\x03\x00\x00\x39\x11\x00\x00\x39\x11\x00\x00\x39\x11\x00\x00\x00\x0F\x00\x00\x1B\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x00\x1B\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x27\x11\x00\x00\x08\x01\x00\x00\x18\x01\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x08\x01\x00\x00\x0A\x11\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x0A\x03\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x01\x03\x00\x00\x5F\x11\x00\x00\x5F\x11\x00\x00\x5F\x11\x00\x00\x02\x03\x00\x06\x1A\x03\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x09\x01\x00\x06\x26\x03\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x5F\x11\x00\x00\x00\x0F\x00\x00\x01\x0D\x00\x00\x00\x0F\x00\x01\x11\x0D\x00\x00\x08\x01\x00\x00\x09\x01\x00\x00\x09\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x01\x11\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x64\x11\x00\x00\x5F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x0D\x01\x00\x00\x04\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x63\x11\x00\x00\x07\x01\x00\x00\x5F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x0A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x39\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x31\x03\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x02\x03\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x06\x26\x03\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x01\x11\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x01\x33\x03\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x2A\x03\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x04\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x01\x03\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x17\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x17\x01\x00\x00\x17\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x17\x01\x00\x00\x17\x01\x00\x00\x17\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x17\x01\x00\x00\x17\x01\x00\x00\x17\x01\x00\x00\x17\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x18\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x18\x01\x00\x00\x18\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x18\x01\x00\x00\x18\x01\x00\x00\x18\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x18\x01\x00\x00\x18\x01\x00\x00\x18\x01\x00\x00\x18\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x5F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x01\x2F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x01\x2F\x11\x00\x00\xE9\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x01\x2F\x11\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x27\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x27\x11\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x63\x11\x00\x00\x63\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x27\x11\x00\x00\x08\x01\x00\x00\x18\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x18\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x18\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x04\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x04\x01\x00\x00\x04\x01\x00\x00\x04\x01\x00\x00\x04\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x5F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x5F\x11\x00\x00\x07\x01\x00\x00\x63\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x39\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x63\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x63\x11\x00\x00\x63\x11\x00\x00\x07\x01\x00\x00\x5F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\xE9\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\xE9\x11\x00\x00\xE9\x11\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\xE9\x11\x00\x00\x08\x01\x00\x00\x6A\x03\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\xE9\x11\x00\x00\x08\x01\x00\x02\x05\x11\x00\x00\x07\x01\x00\x00\xE9\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x0A\x03\x00\x00\xE9\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x39\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x63\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x63\x11\x00\x00\x64\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x63\x11\x00\x00\x5F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x63\x11\x00\x00\x5F\x11\x00\x01\x11\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\xE9\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x39\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x63\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\xE9\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x04\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x01\x11\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x1B\x03\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x01\x1F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x01\x24\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x04\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x5F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x01\x2F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x01\x33\x03\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x17\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x17\x01\x00\x00\x17\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x17\x01\x00\x00\x17\x01\x00\x00\x17\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x17\x01\x00\x00\x17\x01\x00\x00\x17\x01\x00\x00\x17\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x18\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x18\x01\x00\x00\x18\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x18\x01\x00\x00\x18\x01\x00\x00\x18\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x18\x01\x00\x00\x18\x01\x00\x00\x18\x01\x00\x00\x18\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x02\xEF\x11\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x01\x2F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x01\x2F\x11\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x04\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x04\x01\x00\x00\x07\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x0D\x01\x00\x00\x08\x01\x00\x00\x39\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x39\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x03\x24\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x09\x01\x00\x00\x09\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x09\x01\x00\x00\x09\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x09\x01\x00\x00\x6A\x11\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x1B\x03\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x04\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x04\x01\x00\x00\x04\x01\x00\x00\x04\x01\x00\x00\x04\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x04\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x5F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x5F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x64\x11\x00\x00\x63\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x64\x11\x00\x00\x5F\x11\x00\x00\x5F\x11\x00\x00\x5F\x11\x00\x00\x5F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x0A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x39\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x63\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x63\x11\x00\x00\x63\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\xE9\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x0A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x63\x11\x00\x00\x64\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x63\x11\x00\x00\x63\x11\x00\x00\x5F\x11\x00\x00\x64\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x39\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x5F\x11\x00\x00\x63\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x63\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x63\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x01\x11\x11\x00\x00\x5F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x03\x24\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x09\x01\x00\x00\x09\x01\x00\x00\x09\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x2A\x03\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x5F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x01\x2F\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x64\x11\x00\x00\x08\x01\x00\x00\x64\x11\x00\x00\x5F\x11\x00\x00\x5F\x11\x00\x00\x5F\x11\x00\x00\x5F\x11\x00\x05\x15\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x0A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\xC5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x63\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x0A\x11\x00\x01\x11\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x01\x2F\x11\x00\x00\x07\x01\x00\x00\x63\x11\x00\x00\x39\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x01\x2F\x11\x00\x00\x04\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x09\x01\x00\x00\x09\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x0A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x0A\x11\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x01\x11\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x01\x11\x03\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x07\x01\x00\x00\x08\x01\x00\x00\x08\x01\x00\x00\x0D\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x05\xD5\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x01\x11\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x08\x01\x00\x00\x6A\x11\x00\x00\x07\x01\x00\x00\x07\x01\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x6A\x11\x00\x00\x07\x01\x00\x00\x0A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x6A\x11\x00\x00\x07\x01\x00\x00\x63\x11\x00\x00\x64\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x05\xA1\x03\x00\x00\x6A\x11\x00\x00\x00\x0F\x00\x06\x26\x0D\x00\x00\x00\x0F\x00\x00\x02\x01\x00\x00\x0E\x01\x00\x00\x15\x01\x00\x00\x1B\x01\x00\x00\x05\x01\x00\x00\x03\x01\x00\x00\x00\x09\x00\x00\x01\x09\x00\x00\x02\x09\x00\x00\x16\x01\x00\x00\x0A\x01\x00\x00\x06\x01\x00\x00\x00\x01',
_globals = (b'\x00\x01\xCB\x23glActiveProgramEXT',0,b'\x00\x04\x4F\x23glActiveShaderProgramEXT',0,b'\x00\x01\xCB\x23glActiveTexture',0,b'\x00\x01\xD6\x23glAlphaFuncQCOM',0,b'\x00\x06\x18\x23glApplyFramebufferAttachmentCMAAINTEL',0,b'\x00\x04\x4F\x23glAttachShader',0,b'\x00\x04\x4F\x23glBeginConditionalRenderNV',0,b'\x00\x01\xCB\x23glBeginPerfMonitorAMD',0,b'\x00\x01\xCB\x23glBeginPerfQueryINTEL',0,b'\x00\x04\x4F\x23glBeginQueryEXT',0,b'\x00\x04\x62\x23glBindAttribLocation',0,b'\x00\x04\x4F\x23glBindBuffer',0,b'\x00\x04\x62\x23glBindFragDataLocationEXT',0,b'\x00\x05\x33\x23glBindFragDataLocationIndexedEXT',0,b'\x00\x04\x4F\x23glBindFramebuffer',0,b'\x00\x01\xCB\x23glBindProgramPipelineEXT',0,b'\x00\x04\x4F\x23glBindRenderbuffer',0,b'\x00\x04\x4F\x23glBindTexture',0,b'\x00\x01\xCB\x23glBindVertexArrayOES',0,b'\x00\x06\x18\x23glBlendBarrierKHR',0,b'\x00\x06\x18\x23glBlendBarrierNV',0,b'\x00\x00\x9F\x23glBlendColor',0,b'\x00\x01\xCB\x23glBlendEquation',0,b'\x00\x01\xCB\x23glBlendEquationEXT',0,b'\x00\x04\x4F\x23glBlendEquationSeparate',0,b'\x00\x05\x21\x23glBlendEquationSeparateiEXT',0,b'\x00\x05\x21\x23glBlendEquationSeparateiOES',0,b'\x00\x04\x4F\x23glBlendEquationiEXT',0,b'\x00\x04\x4F\x23glBlendEquationiOES',0,b'\x00\x04\x4F\x23glBlendFunc',0,b'\x00\x05\x8C\x23glBlendFuncSeparate',0,b'\x00\x05\xBB\x23glBlendFuncSeparateiEXT',0,b'\x00\x05\xBB\x23glBlendFuncSeparateiOES',0,b'\x00\x05\x21\x23glBlendFunciEXT',0,b'\x00\x05\x21\x23glBlendFunciOES',0,b'\x00\x02\x10\x23glBlendParameteriNV',0,b'\x00\x00\xFD\x23glBlitFramebufferANGLE',0,b'\x00\x00\xFD\x23glBlitFramebufferNV',0,b'\x00\x04\x2F\x23glBufferData',0,b'\x00\x04\x2F\x23glBufferStorageEXT',0,b'\x00\x04\x29\x23glBufferSubData',0,b'\x00\x00\x50\x23glCheckFramebufferStatus',0,b'\x00\x01\xCB\x23glClear',0,b'\x00\x00\x9F\x23glClearColor',0,b'\x00\x00\x93\x23glClearDepthf',0,b'\x00\x01\x2C\x23glClearPixelLocalStorageuiEXT',0,b'\x00\x00\xB8\x23glClearStencil',0,b'\x00\x03\xDF\x23glClearTexImageEXT',0,b'\x00\x02\xC7\x23glClearTexSubImageEXT',0,b'\x00\x00\x4B\x23glClientWaitSyncAPPLE',0,b'\x00\x01\xBD\x23glColorMask',0,b'\x00\x04\x3D\x23glColorMaskiEXT',0,b'\x00\x04\x3D\x23glColorMaskiOES',0,b'\x00\x01\xCB\x23glCompileShader',0,b'\x00\x03\xAF\x23glCompressedTexImage2D',0,b'\x00\x03\x98\x23glCompressedTexImage3DOES',0,b'\x00\x02\xD4\x23glCompressedTexSubImage2D',0,b'\x00\x02\xAD\x23glCompressedTexSubImage3DOES',0,b'\x00\x02\x10\x23glConservativeRasterParameteriNV',0,b'\x00\x05\x0B\x23glCopyBufferSubDataNV',0,b'\x00\x04\xB4\x23glCopyImageSubDataEXT',0,b'\x00\x04\xB4\x23glCopyImageSubDataOES',0,b'\x00\x04\x4F\x23glCopyPathNV',0,b'\x00\x03\x8E\x23glCopyTexImage2D',0,b'\x00\x02\x8D\x23glCopyTexSubImage2D',0,b'\x00\x02\x97\x23glCopyTexSubImage3DOES',0,b'\x00\x04\xA7\x23glCopyTextureLevelsAPPLE',0,b'\x00\x01\x86\x23glCoverFillPathInstancedNV',0,b'\x00\x04\x4F\x23glCoverFillPathNV',0,b'\x00\x01\x86\x23glCoverStrokePathInstancedNV',0,b'\x00\x04\x4F\x23glCoverStrokePathNV',0,b'\x00\x01\xBA\x23glCoverageMaskNV',0,b'\x00\x01\xCB\x23glCoverageModulationNV',0,b'\x00\x00\xC3\x23glCoverageModulationTableNV',0,b'\x00\x01\xCB\x23glCoverageOperationNV',0,b'\x00\x04\x4B\x23glCreatePerfQueryINTEL',0,b'\x00\x00\x83\x23glCreateProgram',0,b'\x00\x00\x50\x23glCreateShader',0,b'\x00\x00\x53\x23glCreateShaderProgramEXT',0,b'\x00\x00\x57\x23glCreateShaderProgramvEXT',0,b'\x00\x01\xCB\x23glCullFace',0,b'\x00\x06\x14\x23glDebugMessageCallback',0,b'\x00\x06\x14\x23glDebugMessageCallbackKHR',0,b'\x00\x05\x74\x23glDebugMessageControl',0,b'\x00\x05\x74\x23glDebugMessageControlKHR',0,b'\x00\x05\x99\x23glDebugMessageInsert',0,b'\x00\x05\x99\x23glDebugMessageInsertKHR',0,b'\x00\x01\x61\x23glDeleteBuffers',0,b'\x00\x01\x61\x23glDeleteFencesNV',0,b'\x00\x01\x61\x23glDeleteFramebuffers',0,b'\x00\x02\x10\x23glDeletePathsNV',0,b'\x00\x01\x5D\x23glDeletePerfMonitorsAMD',0,b'\x00\x01\xCB\x23glDeletePerfQueryINTEL',0,b'\x00\x01\xCB\x23glDeleteProgram',0,b'\x00\x01\x61\x23glDeleteProgramPipelinesEXT',0,b'\x00\x01\x61\x23glDeleteQueriesEXT',0,b'\x00\x01\x61\x23glDeleteRenderbuffers',0,b'\x00\x01\xCB\x23glDeleteShader',0,b'\x00\x01\xA4\x23glDeleteSyncAPPLE',0,b'\x00\x01\x61\x23glDeleteTextures',0,b'\x00\x01\x61\x23glDeleteVertexArraysOES',0,b'\x00\x01\xCB\x23glDepthFunc',0,b'\x00\x01\xBA\x23glDepthMask',0,b'\x00\x02\x1F\x23glDepthRangeArrayfvNV',0,b'\x00\x02\x1F\x23glDepthRangeArrayfvOES',0,b'\x00\x01\xDA\x23glDepthRangeIndexedfNV',0,b'\x00\x01\xDA\x23glDepthRangeIndexedfOES',0,b'\x00\x00\x96\x23glDepthRangef',0,b'\x00\x04\x4F\x23glDetachShader',0,b'\x00\x01\xCB\x23glDisable',0,b'\x00\x01\xCB\x23glDisableDriverControlQCOM',0,b'\x00\x01\xCB\x23glDisableVertexAttribArray',0,b'\x00\x04\x4F\x23glDisableiEXT',0,b'\x00\x04\x4F\x23glDisableiNV',0,b'\x00\x04\x4F\x23glDisableiOES',0,b'\x00\x03\x62\x23glDiscardFramebufferEXT',0,b'\x00\x02\x5B\x23glDrawArrays',0,b'\x00\x02\x78\x23glDrawArraysInstancedANGLE',0,b'\x00\x02\xF4\x23glDrawArraysInstancedBaseInstanceEXT',0,b'\x00\x02\x78\x23glDrawArraysInstancedEXT',0,b'\x00\x02\x78\x23glDrawArraysInstancedNV',0,b'\x00\x01\x61\x23glDrawBuffersEXT',0,b'\x00\x01\x65\x23glDrawBuffersIndexedEXT',0,b'\x00\x01\x61\x23glDrawBuffersNV',0,b'\x00\x03\xE6\x23glDrawElements',0,b'\x00\x03\xEC\x23glDrawElementsBaseVertexEXT',0,b'\x00\x03\xEC\x23glDrawElementsBaseVertexOES',0,b'\x00\x03\xEC\x23glDrawElementsInstancedANGLE',0,b'\x00\x04\x04\x23glDrawElementsInstancedBaseInstanceEXT',0,b'\x00\x03\xFB\x23glDrawElementsInstancedBaseVertexBaseInstanceEXT',0,b'\x00\x03\xF3\x23glDrawElementsInstancedBaseVertexEXT',0,b'\x00\x03\xF3\x23glDrawElementsInstancedBaseVertexOES',0,b'\x00\x03\xEC\x23glDrawElementsInstancedEXT',0,b'\x00\x03\xEC\x23glDrawElementsInstancedNV',0,b'\x00\x05\x7C\x23glDrawRangeElementsBaseVertexEXT',0,b'\x00\x05\x7C\x23glDrawRangeElementsBaseVertexOES',0,b'\x00\x04\x4F\x23glDrawTransformFeedbackEXT',0,b'\x00\x04\x86\x23glDrawTransformFeedbackInstancedEXT',0,b'\x00\x05\xFF\x23glEGLImageTargetRenderbufferStorageOES',0,b'\x00\x05\xFF\x23glEGLImageTargetTexture2DOES',0,b'\x00\x01\xCB\x23glEnable',0,b'\x00\x01\xCB\x23glEnableDriverControlQCOM',0,b'\x00\x01\xCB\x23glEnableVertexAttribArray',0,b'\x00\x04\x4F\x23glEnableiEXT',0,b'\x00\x04\x4F\x23glEnableiNV',0,b'\x00\x04\x4F\x23glEnableiOES',0,b'\x00\x06\x18\x23glEndConditionalRenderNV',0,b'\x00\x01\xCB\x23glEndPerfMonitorAMD',0,b'\x00\x01\xCB\x23glEndPerfQueryINTEL',0,b'\x00\x01\xCB\x23glEndQueryEXT',0,b'\x00\x01\xCB\x23glEndTilingQCOM',0,b'\x00\x05\xFB\x23glExtGetBufferPointervQCOM',0,b'\x00\x01\xC6\x23glExtGetBuffersQCOM',0,b'\x00\x01\xC6\x23glExtGetFramebuffersQCOM',0,b'\x00\x04\x53\x23glExtGetProgramBinarySourceQCOM',0,b'\x00\x01\xC6\x23glExtGetProgramsQCOM',0,b'\x00\x01\xC6\x23glExtGetRenderbuffersQCOM',0,b'\x00\x01\xC6\x23glExtGetShadersQCOM',0,b'\x00\x04\xD2\x23glExtGetTexLevelParameterivQCOM',0,b'\x00\x02\xBA\x23glExtGetTexSubImageQCOM',0,b'\x00\x01\xC6\x23glExtGetTexturesQCOM',0,b'\x00\x00\x2C\x23glExtIsProgramBinaryQCOM',0,b'\x00\x04\x86\x23glExtTexObjectStateOverrideiQCOM',0,b'\x00\x00\x11\x23glFenceSyncAPPLE',0,b'\x00\x06\x18\x23glFinish',0,b'\x00\x01\xCB\x23glFinishFenceNV',0,b'\x00\x06\x18\x23glFlush',0,b'\x00\x04\x24\x23glFlushMappedBufferRangeEXT',0,b'\x00\x01\xCB\x23glFragmentCoverageColorNV',0,b'\x00\x02\x10\x23glFramebufferPixelLocalStorageSizeEXT',0,b'\x00\x05\x8C\x23glFramebufferRenderbuffer',0,b'\x00\x04\x91\x23glFramebufferSampleLocationsfvNV',0,b'\x00\x05\x92\x23glFramebufferTexture2D',0,b'\x00\x05\xB2\x23glFramebufferTexture2DDownsampleIMG',0,b'\x00\x05\xAA\x23glFramebufferTexture2DMultisampleEXT',0,b'\x00\x05\xAA\x23glFramebufferTexture2DMultisampleIMG',0,b'\x00\x05\xAA\x23glFramebufferTexture3DOES',0,b'\x00\x05\x4B\x23glFramebufferTextureEXT',0,b'\x00\x05\x61\x23glFramebufferTextureLayerDownsampleIMG',0,b'\x00\x05\x61\x23glFramebufferTextureMultisampleMultiviewOVR',0,b'\x00\x05\x59\x23glFramebufferTextureMultiviewOVR',0,b'\x00\x05\x4B\x23glFramebufferTextureOES',0,b'\x00\x01\xCB\x23glFrontFace',0,b'\x00\x01\x5D\x23glGenBuffers',0,b'\x00\x01\x5D\x23glGenFencesNV',0,b'\x00\x01\x5D\x23glGenFramebuffers',0,b'\x00\x00\x48\x23glGenPathsNV',0,b'\x00\x01\x5D\x23glGenPerfMonitorsAMD',0,b'\x00\x01\x5D\x23glGenProgramPipelinesEXT',0,b'\x00\x01\x5D\x23glGenQueriesEXT',0,b'\x00\x01\x5D\x23glGenRenderbuffers',0,b'\x00\x01\x5D\x23glGenTextures',0,b'\x00\x01\x5D\x23glGenVertexArraysOES',0,b'\x00\x01\xCB\x23glGenerateMipmap',0,b'\x00\x04\x9E\x23glGetActiveAttrib',0,b'\x00\x04\x9E\x23glGetActiveUniform',0,b'\x00\x02\x49\x23glGetAttachedShaders',0,b'\x00\x00\x08\x23glGetAttribLocation',0,b'\x00\x04\x35\x23glGetBooleanv',0,b'\x00\x04\x76\x23glGetBufferParameteriv',0,b'\x00\x05\xD2\x23glGetBufferPointervOES',0,b'\x00\x00\xBF\x23glGetCoverageModulationTableNV',0,b'\x00\x00\x5C\x23glGetDebugMessageLog',0,b'\x00\x00\x5C\x23glGetDebugMessageLogKHR',0,b'\x00\x02\x43\x23glGetDriverControlStringQCOM',0,b'\x00\x00\xB3\x23glGetDriverControlsQCOM',0,b'\x00\x00\x83\x23glGetError',0,b'\x00\x04\x76\x23glGetFenceivNV',0,b'\x00\x01\xC3\x23glGetFirstPerfQueryIdINTEL',0,b'\x00\x04\x67\x23glGetFloati_vNV',0,b'\x00\x04\x67\x23glGetFloati_vOES',0,b'\x00\x01\xCE\x23glGetFloatv',0,b'\x00\x00\x08\x23glGetFragDataIndexEXT',0,b'\x00\x05\x45\x23glGetFramebufferAttachmentParameteriv',0,b'\x00\x00\x05\x23glGetFramebufferPixelLocalStorageSizeEXT',0,b'\x00\x00\x83\x23glGetGraphicsResetStatus',0,b'\x00\x00\x83\x23glGetGraphicsResetStatusEXT',0,b'\x00\x00\x83\x23glGetGraphicsResetStatusKHR',0,b'\x00\x00\x18\x23glGetImageHandleNV',0,b'\x00\x04\x20\x23glGetInteger64vAPPLE',0,b'\x00\x04\x76\x23glGetIntegeri_vEXT',0,b'\x00\x01\xEC\x23glGetIntegerv',0,b'\x00\x04\xE0\x23glGetInternalformatSampleivNV',0,b'\x00\x04\x4B\x23glGetNextPerfQueryIdINTEL',0,b'\x00\x04\x97\x23glGetObjectLabel',0,b'\x00\x04\x97\x23glGetObjectLabelEXT',0,b'\x00\x04\x97\x23glGetObjectLabelKHR',0,b'\x00\x06\x0E\x23glGetObjectPtrLabel',0,b'\x00\x06\x0E\x23glGetObjectPtrLabelKHR',0,b'\x00\x04\x67\x23glGetPathColorGenfvNV',0,b'\x00\x04\x76\x23glGetPathColorGenivNV',0,b'\x00\x04\x35\x23glGetPathCommandsNV',0,b'\x00\x01\xCE\x23glGetPathCoordsNV',0,b'\x00\x01\xCE\x23glGetPathDashArrayNV',0,b'\x00\x00\x00\x23glGetPathLengthNV',0,b'\x00\x04\xAD\x23glGetPathMetricRangeNV',0,b'\x00\x04\x17\x23glGetPathMetricsNV',0,b'\x00\x04\x67\x23glGetPathParameterfvNV',0,b'\x00\x04\x76\x23glGetPathParameterivNV',0,b'\x00\x04\x0C\x23glGetPathSpacingNV',0,b'\x00\x04\x67\x23glGetPathTexGenfvNV',0,b'\x00\x04\x76\x23glGetPathTexGenivNV',0,b'\x00\x05\x26\x23glGetPerfCounterInfoINTEL',0,b'\x00\x04\xC5\x23glGetPerfMonitorCounterDataAMD',0,b'\x00\x05\xCC\x23glGetPerfMonitorCounterInfoAMD',0,b'\x00\x04\x97\x23glGetPerfMonitorCounterStringAMD',0,b'\x00\x01\xF0\x23glGetPerfMonitorCountersAMD',0,b'\x00\x02\x43\x23glGetPerfMonitorGroupStringAMD',0,b'\x00\x00\xB3\x23glGetPerfMonitorGroupsAMD',0,b'\x00\x04\xF9\x23glGetPerfQueryDataINTEL',0,b'\x00\x00\x8F\x23glGetPerfQueryIdByNameINTEL',0,b'\x00\x04\x59\x23glGetPerfQueryInfoINTEL',0,b'\x00\x05\xFB\x23glGetPointerv',0,b'\x00\x05\xFB\x23glGetPointervKHR',0,b'\x00\x02\x4F\x23glGetProgramBinaryOES',0,b'\x00\x02\x43\x23glGetProgramInfoLog',0,b'\x00\x02\x43\x23glGetProgramPipelineInfoLogEXT',0,b'\x00\x04\x76\x23glGetProgramPipelineivEXT',0,b'\x00\x00\x0C\x23glGetProgramResourceLocationIndexEXT',0,b'\x00\x05\x6A\x23glGetProgramResourcefvNV',0,b'\x00\x04\x76\x23glGetProgramiv',0,b'\x00\x05\x06\x23glGetQueryObjecti64vEXT',0,b'\x00\x04\x76\x23glGetQueryObjectivEXT',0,b'\x00\x05\x12\x23glGetQueryObjectui64vEXT',0,b'\x00\x05\x17\x23glGetQueryObjectuivEXT',0,b'\x00\x04\x76\x23glGetQueryivEXT',0,b'\x00\x04\x76\x23glGetRenderbufferParameteriv',0,b'\x00\x04\x76\x23glGetSamplerParameterIivEXT',0,b'\x00\x04\x76\x23glGetSamplerParameterIivOES',0,b'\x00\x05\x17\x23glGetSamplerParameterIuivEXT',0,b'\x00\x05\x17\x23glGetSamplerParameterIuivOES',0,b'\x00\x02\x43\x23glGetShaderInfoLog',0,b'\x00\x04\x7B\x23glGetShaderPrecisionFormat',0,b'\x00\x02\x43\x23glGetShaderSource',0,b'\x00\x04\x76\x23glGetShaderiv',0,b'\x00\x00\x23\x23glGetString',0,b'\x00\x01\xA7\x23glGetSyncivAPPLE',0,b'\x00\x04\x76\x23glGetTexParameterIivEXT',0,b'\x00\x04\x76\x23glGetTexParameterIivOES',0,b'\x00\x05\x17\x23glGetTexParameterIuivEXT',0,b'\x00\x05\x17\x23glGetTexParameterIuivOES',0,b'\x00\x04\x67\x23glGetTexParameterfv',0,b'\x00\x04\x76\x23glGetTexParameteriv',0,b'\x00\x00\x15\x23glGetTextureHandleIMG',0,b'\x00\x00\x15\x23glGetTextureHandleNV',0,b'\x00\x00\x1F\x23glGetTextureSamplerHandleIMG',0,b'\x00\x00\x1F\x23glGetTextureSamplerHandleNV',0,b'\x00\x02\x43\x23glGetTranslatedShaderSourceANGLE',0,b'\x00\x00\x08\x23glGetUniformLocation',0,b'\x00\x02\x1A\x23glGetUniformfv',0,b'\x00\x03\x21\x23glGetUniformi64vNV',0,b'\x00\x02\x3E\x23glGetUniformiv',0,b'\x00\x05\xD2\x23glGetVertexAttribPointerv',0,b'\x00\x04\x67\x23glGetVertexAttribfv',0,b'\x00\x04\x76\x23glGetVertexAttribiv',0,b'\x00\x02\x60\x23glGetnUniformfv',0,b'\x00\x02\x60\x23glGetnUniformfvEXT',0,b'\x00\x02\x60\x23glGetnUniformfvKHR',0,b'\x00\x02\x6C\x23glGetnUniformiv',0,b'\x00\x02\x6C\x23glGetnUniformivEXT',0,b'\x00\x02\x6C\x23glGetnUniformivKHR',0,b'\x00\x03\x0E\x23glGetnUniformuiv',0,b'\x00\x03\x0E\x23glGetnUniformuivKHR',0,b'\x00\x04\x4F\x23glHint',0,b'\x00\x00\xBB\x23glInsertEventMarkerEXT',0,b'\x00\x05\x3F\x23glInterpolatePathsNV',0,b'\x00\x00\x2C\x23glIsBuffer',0,b'\x00\x00\x2C\x23glIsEnabled',0,b'\x00\x00\x3E\x23glIsEnablediEXT',0,b'\x00\x00\x3E\x23glIsEnablediNV',0,b'\x00\x00\x3E\x23glIsEnablediOES',0,b'\x00\x00\x2C\x23glIsFenceNV',0,b'\x00\x00\x2C\x23glIsFramebuffer',0,b'\x00\x00\x29\x23glIsImageHandleResidentNV',0,b'\x00\x00\x2C\x23glIsPathNV',0,b'\x00\x00\x42\x23glIsPointInFillPathNV',0,b'\x00\x00\x2F\x23glIsPointInStrokePathNV',0,b'\x00\x00\x2C\x23glIsProgram',0,b'\x00\x00\x2C\x23glIsProgramPipelineEXT',0,b'\x00\x00\x2C\x23glIsQueryEXT',0,b'\x00\x00\x2C\x23glIsRenderbuffer',0,b'\x00\x00\x2C\x23glIsShader',0,b'\x00\x00\x26\x23glIsSyncAPPLE',0,b'\x00\x00\x2C\x23glIsTexture',0,b'\x00\x00\x29\x23glIsTextureHandleResidentNV',0,b'\x00\x00\x2C\x23glIsVertexArrayOES',0,b'\x00\x04\x8B\x23glLabelObjectEXT',0,b'\x00\x00\x93\x23glLineWidth',0,b'\x00\x01\xCB\x23glLinkProgram',0,b'\x00\x01\xB3\x23glMakeImageHandleNonResidentNV',0,b'\x00\x01\xB6\x23glMakeImageHandleResidentNV',0,b'\x00\x01\xB3\x23glMakeTextureHandleNonResidentNV',0,b'\x00\x01\xB3\x23glMakeTextureHandleResidentNV',0,b'\x00\x00\x8B\x23glMapBufferOES',0,b'\x00\x00\x85\x23glMapBufferRangeEXT',0,b'\x00\x01\xD2\x23glMatrixLoad3x2fNV',0,b'\x00\x01\xD2\x23glMatrixLoad3x3fNV',0,b'\x00\x01\xD2\x23glMatrixLoadTranspose3x3fNV',0,b'\x00\x01\xD2\x23glMatrixMult3x2fNV',0,b'\x00\x01\xD2\x23glMatrixMult3x3fNV',0,b'\x00\x01\xD2\x23glMatrixMultTranspose3x3fNV',0,b'\x00\x00\x93\x23glMinSampleShadingOES',0,b'\x00\x01\xFB\x23glMultiDrawArraysEXT',0,b'\x00\x06\x03\x23glMultiDrawArraysIndirectEXT',0,b'\x00\x02\x08\x23glMultiDrawElementsBaseVertexEXT',0,b'\x00\x02\x08\x23glMultiDrawElementsBaseVertexOES',0,b'\x00\x02\x01\x23glMultiDrawElementsEXT',0,b'\x00\x05\xDD\x23glMultiDrawElementsIndirectEXT',0,b'\x00\x04\x91\x23glNamedFramebufferSampleLocationsfvNV',0,b'\x00\x04\x8B\x23glObjectLabel',0,b'\x00\x04\x8B\x23glObjectLabelKHR',0,b'\x00\x06\x09\x23glObjectPtrLabel',0,b'\x00\x06\x09\x23glObjectPtrLabelKHR',0,b'\x00\x02\x10\x23glPatchParameteriEXT',0,b'\x00\x02\x10\x23glPatchParameteriOES',0,b'\x00\x05\x39\x23glPathColorGenNV',0,b'\x00\x03\x5A\x23glPathCommandsNV',0,b'\x00\x03\xE6\x23glPathCoordsNV',0,b'\x00\x01\xCB\x23glPathCoverDepthFuncNV',0,b'\x00\x02\x1F\x23glPathDashArrayNV',0,b'\x00\x01\xCB\x23glPathFogGenNV',0,b'\x00\x00\x71\x23glPathGlyphIndexArrayNV',0,b'\x00\x00\x7B\x23glPathGlyphIndexRangeNV',0,b'\x00\x05\xF0\x23glPathGlyphRangeNV',0,b'\x00\x05\xE4\x23glPathGlyphsNV',0,b'\x00\x00\x66\x23glPathMemoryGlyphIndexArrayNV',0,b'\x00\x04\x71\x23glPathParameterfNV',0,b'\x00\x04\x6C\x23glPathParameterfvNV',0,b'\x00\x04\x86\x23glPathParameteriNV',0,b'\x00\x04\x81\x23glPathParameterivNV',0,b'\x00\x00\x96\x23glPathStencilDepthOffsetNV',0,b'\x00\x03\x6D\x23glPathStencilFuncNV',0,b'\x00\x05\x00\x23glPathStringNV',0,b'\x00\x02\xEA\x23glPathSubCommandsNV',0,b'\x00\x03\x1A\x23glPathSubCoordsNV',0,b'\x00\x04\x91\x23glPathTexGenNV',0,b'\x00\x02\x10\x23glPixelStorei',0,b'\x00\x00\x34\x23glPointAlongPathNV',0,b'\x00\x04\x4F\x23glPolygonModeNV',0,b'\x00\x00\x96\x23glPolygonOffset',0,b'\x00\x00\x9A\x23glPolygonOffsetClampEXT',0,b'\x00\x06\x18\x23glPopDebugGroup',0,b'\x00\x06\x18\x23glPopDebugGroupKHR',0,b'\x00\x06\x18\x23glPopGroupMarkerEXT',0,b'\x00\x00\xA5\x23glPrimitiveBoundingBoxEXT',0,b'\x00\x00\xA5\x23glPrimitiveBoundingBoxOES',0,b'\x00\x05\xD7\x23glProgramBinaryOES',0,b'\x00\x04\x86\x23glProgramParameteriEXT',0,b'\x00\x03\x78\x23glProgramPathFragmentInputGenNV',0,b'\x00\x02\x24\x23glProgramUniform1fEXT',0,b'\x00\x02\x66\x23glProgramUniform1fvEXT',0,b'\x00\x03\x26\x23glProgramUniform1i64NV',0,b'\x00\x02\xFB\x23glProgramUniform1i64vNV',0,b'\x00\x02\x5B\x23glProgramUniform1iEXT',0,b'\x00\x02\x72\x23glProgramUniform1ivEXT',0,b'\x00\x03\x40\x23glProgramUniform1ui64NV',0,b'\x00\x03\x01\x23glProgramUniform1ui64vNV',0,b'\x00\x03\x6D\x23glProgramUniform1uiEXT',0,b'\x00\x03\x14\x23glProgramUniform1uivEXT',0,b'\x00\x02\x29\x23glProgramUniform2fEXT',0,b'\x00\x02\x66\x23glProgramUniform2fvEXT',0,b'\x00\x03\x2B\x23glProgramUniform2i64NV',0,b'\x00\x02\xFB\x23glProgramUniform2i64vNV',0,b'\x00\x02\x78\x23glProgramUniform2iEXT',0,b'\x00\x02\x72\x23glProgramUniform2ivEXT',0,b'\x00\x03\x45\x23glProgramUniform2ui64NV',0,b'\x00\x03\x01\x23glProgramUniform2ui64vNV',0,b'\x00\x03\xCA\x23glProgramUniform2uiEXT',0,b'\x00\x03\x14\x23glProgramUniform2uivEXT',0,b'\x00\x02\x2F\x23glProgramUniform3fEXT',0,b'\x00\x02\x66\x23glProgramUniform3fvEXT',0,b'\x00\x03\x31\x23glProgramUniform3i64NV',0,b'\x00\x02\xFB\x23glProgramUniform3i64vNV',0,b'\x00\x02\x7E\x23glProgramUniform3iEXT',0,b'\x00\x02\x72\x23glProgramUniform3ivEXT',0,b'\x00\x03\x4B\x23glProgramUniform3ui64NV',0,b'\x00\x03\x01\x23glProgramUniform3ui64vNV',0,b'\x00\x03\xD0\x23glProgramUniform3uiEXT',0,b'\x00\x03\x14\x23glProgramUniform3uivEXT',0,b'\x00\x02\x36\x23glProgramUniform4fEXT',0,b'\x00\x02\x66\x23glProgramUniform4fvEXT',0,b'\x00\x03\x38\x23glProgramUniform4i64NV',0,b'\x00\x02\xFB\x23glProgramUniform4i64vNV',0,b'\x00\x02\x85\x23glProgramUniform4iEXT',0,b'\x00\x02\x72\x23glProgramUniform4ivEXT',0,b'\x00\x03\x52\x23glProgramUniform4ui64NV',0,b'\x00\x03\x01\x23glProgramUniform4ui64vNV',0,b'\x00\x03\xD7\x23glProgramUniform4uiEXT',0,b'\x00\x03\x14\x23glProgramUniform4uivEXT',0,b'\x00\x03\x40\x23glProgramUniformHandleui64IMG',0,b'\x00\x03\x40\x23glProgramUniformHandleui64NV',0,b'\x00\x03\x01\x23glProgramUniformHandleui64vIMG',0,b'\x00\x03\x01\x23glProgramUniformHandleui64vNV',0,b'\x00\x03\x07\x23glProgramUniformMatrix2fvEXT',0,b'\x00\x03\x07\x23glProgramUniformMatrix2x3fvEXT',0,b'\x00\x03\x07\x23glProgramUniformMatrix2x4fvEXT',0,b'\x00\x03\x07\x23glProgramUniformMatrix3fvEXT',0,b'\x00\x03\x07\x23glProgramUniformMatrix3x2fvEXT',0,b'\x00\x03\x07\x23glProgramUniformMatrix3x4fvEXT',0,b'\x00\x03\x07\x23glProgramUniformMatrix4fvEXT',0,b'\x00\x03\x07\x23glProgramUniformMatrix4x2fvEXT',0,b'\x00\x03\x07\x23glProgramUniformMatrix4x3fvEXT',0,b'\x00\x04\x8B\x23glPushDebugGroup',0,b'\x00\x04\x8B\x23glPushDebugGroupKHR',0,b'\x00\x00\xBB\x23glPushGroupMarkerEXT',0,b'\x00\x04\x4F\x23glQueryCounterEXT',0,b'\x00\x04\x39\x23glRasterSamplesEXT',0,b'\x00\x02\x10\x23glReadBufferIndexedEXT',0,b'\x00\x01\xCB\x23glReadBufferNV',0,b'\x00\x01\x13\x23glReadPixels',0,b'\x00\x01\x09\x23glReadnPixels',0,b'\x00\x01\x09\x23glReadnPixelsEXT',0,b'\x00\x01\x09\x23glReadnPixelsKHR',0,b'\x00\x06\x18\x23glReleaseShaderCompiler',0,b'\x00\x04\xA7\x23glRenderbufferStorage',0,b'\x00\x03\x7F\x23glRenderbufferStorageMultisampleANGLE',0,b'\x00\x03\x7F\x23glRenderbufferStorageMultisampleAPPLE',0,b'\x00\x03\x7F\x23glRenderbufferStorageMultisampleEXT',0,b'\x00\x03\x7F\x23glRenderbufferStorageMultisampleIMG',0,b'\x00\x03\x7F\x23glRenderbufferStorageMultisampleNV',0,b'\x00\x06\x18\x23glResolveDepthValuesNV',0,b'\x00\x06\x18\x23glResolveMultisampleFramebufferAPPLE',0,b'\x00\x00\xAF\x23glSampleCoverage',0,b'\x00\x04\x81\x23glSamplerParameterIivEXT',0,b'\x00\x04\x81\x23glSamplerParameterIivOES',0,b'\x00\x05\x1C\x23glSamplerParameterIuivEXT',0,b'\x00\x05\x1C\x23glSamplerParameterIuivOES',0,b'\x00\x00\xF0\x23glScissor',0,b'\x00\x02\x56\x23glScissorArrayvNV',0,b'\x00\x02\x56\x23glScissorArrayvOES',0,b'\x00\x02\x7E\x23glScissorIndexedNV',0,b'\x00\x02\x7E\x23glScissorIndexedOES',0,b'\x00\x01\xF7\x23glScissorIndexedvNV',0,b'\x00\x01\xF7\x23glScissorIndexedvOES',0,b'\x00\x04\x44\x23glSelectPerfMonitorCountersAMD',0,b'\x00\x04\x4F\x23glSetFenceNV',0,b'\x00\x01\x6A\x23glShaderBinary',0,b'\x00\x02\x14\x23glShaderSource',0,b'\x00\x05\xBB\x23glStartTilingQCOM',0,b'\x00\x01\x8F\x23glStencilFillPathInstancedNV',0,b'\x00\x05\x21\x23glStencilFillPathNV',0,b'\x00\x03\x6D\x23glStencilFunc',0,b'\x00\x04\xCC\x23glStencilFuncSeparate',0,b'\x00\x01\xCB\x23glStencilMask',0,b'\x00\x04\x4F\x23glStencilMaskSeparate',0,b'\x00\x05\x21\x23glStencilOp',0,b'\x00\x05\x8C\x23glStencilOpSeparate',0,b'\x00\x01\x71\x23glStencilStrokePathInstancedNV',0,b'\x00\x03\x6D\x23glStencilStrokePathNV',0,b'\x00\x01\x99\x23glStencilThenCoverFillPathInstancedNV',0,b'\x00\x05\x8C\x23glStencilThenCoverFillPathNV',0,b'\x00\x01\x7B\x23glStencilThenCoverStrokePathInstancedNV',0,b'\x00\x03\xCA\x23glStencilThenCoverStrokePathNV',0,b'\x00\x04\x4F\x23glSubpixelPrecisionBiasNV',0,b'\x00\x00\x2C\x23glTestFenceNV',0,b'\x00\x05\x21\x23glTexBufferEXT',0,b'\x00\x05\x21\x23glTexBufferOES',0,b'\x00\x05\x85\x23glTexBufferRangeEXT',0,b'\x00\x05\x85\x23glTexBufferRangeOES',0,b'\x00\x02\xDF\x23glTexImage2D',0,b'\x00\x03\xA3\x23glTexImage3DOES',0,b'\x00\x02\xA2\x23glTexPageCommitmentEXT',0,b'\x00\x04\x81\x23glTexParameterIivEXT',0,b'\x00\x04\x81\x23glTexParameterIivOES',0,b'\x00\x05\x1C\x23glTexParameterIuivEXT',0,b'\x00\x05\x1C\x23glTexParameterIuivOES',0,b'\x00\x04\x71\x23glTexParameterf',0,b'\x00\x04\x6C\x23glTexParameterfv',0,b'\x00\x04\x86\x23glTexParameteri',0,b'\x00\x04\x81\x23glTexParameteriv',0,b'\x00\x03\x72\x23glTexStorage1DEXT',0,b'\x00\x03\x7F\x23glTexStorage2DEXT',0,b'\x00\x03\x86\x23glTexStorage3DEXT',0,b'\x00\x03\xB9\x23glTexStorage3DMultisampleOES',0,b'\x00\x02\xDF\x23glTexSubImage2D',0,b'\x00\x02\xC7\x23glTexSubImage3DOES',0,b'\x00\x04\xD9\x23glTextureStorage1DEXT',0,b'\x00\x04\xE8\x23glTextureStorage2DEXT',0,b'\x00\x04\xF0\x23glTextureStorage3DEXT',0,b'\x00\x05\xC2\x23glTextureViewEXT',0,b'\x00\x05\xC2\x23glTextureViewOES',0,b'\x00\x05\x39\x23glTransformPathNV',0,b'\x00\x00\xC7\x23glUniform1f',0,b'\x00\x00\xE1\x23glUniform1fv',0,b'\x00\x00\xDD\x23glUniform1i',0,b'\x00\x01\x31\x23glUniform1i64NV',0,b'\x00\x01\x1C\x23glUniform1i64vNV',0,b'\x00\x00\xE6\x23glUniform1iv',0,b'\x00\x01\x47\x23glUniform1ui64NV',0,b'\x00\x01\x21\x23glUniform1ui64vNV',0,b'\x00\x00\xCB\x23glUniform2f',0,b'\x00\x00\xE1\x23glUniform2fv',0,b'\x00\x00\xEB\x23glUniform2i',0,b'\x00\x01\x35\x23glUniform2i64NV',0,b'\x00\x01\x1C\x23glUniform2i64vNV',0,b'\x00\x00\xE6\x23glUniform2iv',0,b'\x00\x01\x4B\x23glUniform2ui64NV',0,b'\x00\x01\x21\x23glUniform2ui64vNV',0,b'\x00\x00\xD0\x23glUniform3f',0,b'\x00\x00\xE1\x23glUniform3fv',0,b'\x00\x00\xF0\x23glUniform3i',0,b'\x00\x01\x3A\x23glUniform3i64NV',0,b'\x00\x01\x1C\x23glUniform3i64vNV',0,b'\x00\x00\xE6\x23glUniform3iv',0,b'\x00\x01\x50\x23glUniform3ui64NV',0,b'\x00\x01\x21\x23glUniform3ui64vNV',0,b'\x00\x00\xD6\x23glUniform4f',0,b'\x00\x00\xE1\x23glUniform4fv',0,b'\x00\x00\xF6\x23glUniform4i',0,b'\x00\x01\x40\x23glUniform4i64NV',0,b'\x00\x01\x1C\x23glUniform4i64vNV',0,b'\x00\x00\xE6\x23glUniform4iv',0,b'\x00\x01\x56\x23glUniform4ui64NV',0,b'\x00\x01\x21\x23glUniform4ui64vNV',0,b'\x00\x01\x47\x23glUniformHandleui64IMG',0,b'\x00\x01\x47\x23glUniformHandleui64NV',0,b'\x00\x01\x21\x23glUniformHandleui64vIMG',0,b'\x00\x01\x21\x23glUniformHandleui64vNV',0,b'\x00\x01\x26\x23glUniformMatrix2fv',0,b'\x00\x01\x26\x23glUniformMatrix2x3fvNV',0,b'\x00\x01\x26\x23glUniformMatrix2x4fvNV',0,b'\x00\x01\x26\x23glUniformMatrix3fv',0,b'\x00\x01\x26\x23glUniformMatrix3x2fvNV',0,b'\x00\x01\x26\x23glUniformMatrix3x4fvNV',0,b'\x00\x01\x26\x23glUniformMatrix4fv',0,b'\x00\x01\x26\x23glUniformMatrix4x2fvNV',0,b'\x00\x01\x26\x23glUniformMatrix4x3fvNV',0,b'\x00\x00\x2C\x23glUnmapBufferOES',0,b'\x00\x01\xCB\x23glUseProgram',0,b'\x00\x05\x21\x23glUseProgramStagesEXT',0,b'\x00\x04\x4F\x23glUseShaderProgramEXT',0,b'\x00\x01\xCB\x23glValidateProgram',0,b'\x00\x01\xCB\x23glValidateProgramPipelineEXT',0,b'\x00\x01\xD6\x23glVertexAttrib1f',0,b'\x00\x01\xD2\x23glVertexAttrib1fv',0,b'\x00\x01\xDA\x23glVertexAttrib2f',0,b'\x00\x01\xD2\x23glVertexAttrib2fv',0,b'\x00\x01\xDF\x23glVertexAttrib3f',0,b'\x00\x01\xD2\x23glVertexAttrib3fv',0,b'\x00\x01\xE5\x23glVertexAttrib4f',0,b'\x00\x01\xD2\x23glVertexAttrib4fv',0,b'\x00\x04\x4F\x23glVertexAttribDivisorANGLE',0,b'\x00\x04\x4F\x23glVertexAttribDivisorEXT',0,b'\x00\x04\x4F\x23glVertexAttribDivisorNV',0,b'\x00\x03\xC2\x23glVertexAttribPointer',0,b'\x00\x00\xF0\x23glViewport',0,b'\x00\x02\x1F\x23glViewportArrayvNV',0,b'\x00\x02\x1F\x23glViewportArrayvOES',0,b'\x00\x01\xE5\x23glViewportIndexedfNV',0,b'\x00\x01\xE5\x23glViewportIndexedfOES',0,b'\x00\x01\xD2\x23glViewportIndexedfvNV',0,b'\x00\x01\xD2\x23glViewportIndexedfvOES',0,b'\x00\x05\xBB\x23glViewportSwizzleNV',0,b'\x00\x01\xAE\x23glWaitSyncAPPLE',0,b'\x00\x03\x67\x23glWeightPathsNV',0,b'\x00\x02\x56\x23glWindowRectanglesEXT',0),
_struct_unions = ((b'\x00\x00\x06\x20\x00\x00\x00\x10__GLsync',),(b'\x00\x00\x06\x21\x00\x00\x00\x10_cl_context',),(b'\x00\x00\x06\x22\x00\x00\x00\x10_cl_event',)),
_typenames = (b'\x00\x00\x05\xA1GLDEBUGPROC',b'\x00\x00\x05\x51GLDEBUGPROCAMD',b'\x00\x00\x05\xA1GLDEBUGPROCARB',b'\x00\x00\x05\xA1GLDEBUGPROCKHR',b'\x00\x00\x00\x01GLbitfield',b'\x00\x00\x00\x1BGLboolean',b'\x00\x00\x06\x1FGLbyte',b'\x00\x00\x06\x1AGLchar',b'\x00\x00\x06\x1AGLcharARB',b'\x00\x00\x06\x1BGLclampd',b'\x00\x00\x00\x31GLclampf',b'\x00\x00\x00\x02GLclampx',b'\x00\x00\x06\x1BGLdouble',b'\x00\x00\x01\x11GLeglImageOES',b'\x00\x00\x00\x01GLenum',b'\x00\x00\x06\x1CGLfixed',b'\x00\x00\x00\x31GLfloat',b'\x00\x00\x06\x25GLhalf',b'\x00\x00\x06\x25GLhalfARB',b'\x00\x00\x06\x25GLhalfNV',b'\x00\x00\x00\x01GLhandleARB',b'\x00\x00\x00\x02GLint',b'\x00\x00\x01\x33GLint64',b'\x00\x00\x01\x33GLint64EXT',b'\x00\x00\x00\x69GLintptr',b'\x00\x00\x06\x1DGLintptrARB',b'\x00\x00\x06\x1EGLshort',b'\x00\x00\x00\x02GLsizei',b'\x00\x00\x00\x69GLsizeiptr',b'\x00\x00\x06\x1DGLsizeiptrARB',b'\x00\x00\x00\x27GLsync',b'\x00\x00\x00\x1BGLubyte',b'\x00\x00\x00\x01GLuint',b'\x00\x00\x00\x2AGLuint64',b'\x00\x00\x00\x2AGLuint64EXT',b'\x00\x00\x06\x25GLushort',b'\x00\x00\x00\x69GLvdpauSurfaceNV',b'\x00\x00\x06\x26GLvoid',b'\x00\x00\x00\x31khronos_float_t',b'\x00\x00\x06\x1Ekhronos_int16_t',b'\x00\x00\x06\x1Ckhronos_int32_t',b'\x00\x00\x01\x33khronos_int64_t',b'\x00\x00\x06\x1Fkhronos_int8_t',b'\x00\x00\x00\x69khronos_intptr_t',b'\x00\x00\x00\x69khronos_ssize_t',b'\x00\x00\x01\x33khronos_stime_nanoseconds_t',b'\x00\x00\x06\x25khronos_uint16_t',b'\x00\x00\x06\x23khronos_uint32_t',b'\x00\x00\x00\x2Akhronos_uint64_t',b'\x00\x00\x00\x1Bkhronos_uint8_t',b'\x00\x00\x06\x24khronos_uintptr_t',b'\x00\x00\x06\x24khronos_usize_t',b'\x00\x00\x00\x2Akhronos_utime_nanoseconds_t'),
)
| 4,775
| 25,355
| 0.780086
| 10,228
| 52,525
| 4.000978
| 0.083692
| 0.256586
| 0.188481
| 0.116417
| 0.586457
| 0.461903
| 0.456576
| 0.455183
| 0.455036
| 0.455036
| 0
| 0.334451
| 0.000857
| 52,525
| 10
| 25,356
| 5,252.5
| 0.445313
| 0.000362
| 0
| 0
| 1
| 0.125
| 0.924482
| 0.924234
| 0
| 1
| 0.000114
| 0
| 0
| 1
| 0
| false
| 0
| 0.125
| 0
| 0.125
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
713c6daee549d2235de17eaa0ca36443477d9389
| 168
|
py
|
Python
|
matsuri_monitor/handlers/__init__.py
|
vancassa/matsuri-monitor
|
0ad639303dbc9098098a87743b4bd115e8a855f2
|
[
"MIT"
] | 15
|
2020-05-14T09:05:41.000Z
|
2022-01-07T09:46:17.000Z
|
matsuri_monitor/handlers/__init__.py
|
uwupp/matsuri-monitor
|
e54adbda5cbbb99b312f1dd42f2aa4a0b9c358d5
|
[
"MIT"
] | 2
|
2021-03-31T19:37:06.000Z
|
2021-12-13T20:36:35.000Z
|
matsuri_monitor/handlers/__init__.py
|
uwupp/matsuri-monitor
|
e54adbda5cbbb99b312f1dd42f2aa4a0b9c358d5
|
[
"MIT"
] | 14
|
2020-03-30T13:06:27.000Z
|
2021-10-08T09:31:33.000Z
|
from matsuri_monitor.handlers.api import APIHandler
from matsuri_monitor.handlers.archives import ArchivesHandler
from matsuri_monitor.handlers.main import MainHandler
| 42
| 61
| 0.892857
| 21
| 168
| 7
| 0.52381
| 0.22449
| 0.367347
| 0.530612
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 168
| 3
| 62
| 56
| 0.942308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
85560f8e9667df8da60f39cf544982e14c620c44
| 69
|
py
|
Python
|
test/integration/samples_in/percent_numerics.py
|
krajkumard/flynt
|
ebe437edf5b3d812d43d2e8662eef36cc230dcd9
|
[
"MIT"
] | null | null | null |
test/integration/samples_in/percent_numerics.py
|
krajkumard/flynt
|
ebe437edf5b3d812d43d2e8662eef36cc230dcd9
|
[
"MIT"
] | null | null | null |
test/integration/samples_in/percent_numerics.py
|
krajkumard/flynt
|
ebe437edf5b3d812d43d2e8662eef36cc230dcd9
|
[
"MIT"
] | null | null | null |
a, b, c, d, e = tuple(range(5))
print('%d %f %e %g %s' % (a,b,c,d,e))
| 34.5
| 37
| 0.449275
| 19
| 69
| 1.631579
| 0.631579
| 0.129032
| 0.193548
| 0.258065
| 0.322581
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017857
| 0.188406
| 69
| 2
| 37
| 34.5
| 0.535714
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 1
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
85b9d73931a1a3a5f2a12915b8b01497ab128c23
| 521,619
|
py
|
Python
|
sympy/integrals/rubi/rules/inverse_hyperbolic.py
|
STALKER2010/sympy-bleeding-edge
|
81233029a9a30866747f6da2c0e9604d1681d474
|
[
"BSD-3-Clause"
] | 2
|
2018-12-05T02:30:43.000Z
|
2020-11-14T01:43:15.000Z
|
sympy/integrals/rubi/rules/inverse_hyperbolic.py
|
STALKER2010/sympy-bleeding-edge
|
81233029a9a30866747f6da2c0e9604d1681d474
|
[
"BSD-3-Clause"
] | 1
|
2017-10-23T06:56:43.000Z
|
2017-10-23T06:56:43.000Z
|
sympy/integrals/rubi/rules/inverse_hyperbolic.py
|
STALKER2010/sympy-bleeding-edge
|
81233029a9a30866747f6da2c0e9604d1681d474
|
[
"BSD-3-Clause"
] | 1
|
2020-10-02T15:05:03.000Z
|
2020-10-02T15:05:03.000Z
|
from sympy.external import import_module
matchpy = import_module("matchpy")
from sympy.utilities.decorator import doctest_depends_on
if matchpy:
from matchpy import Pattern, ReplacementRule, CustomConstraint
from sympy.integrals.rubi.utility_function import (Int, Set, With, Module, Scan, MapAnd, FalseQ, ZeroQ, NegativeQ, NonzeroQ, FreeQ, NFreeQ, List, Log, PositiveQ, PositiveIntegerQ, NegativeIntegerQ, IntegerQ, IntegersQ, ComplexNumberQ, PureComplexNumberQ, RealNumericQ, PositiveOrZeroQ, NegativeOrZeroQ, FractionOrNegativeQ, NegQ, Equal, Unequal, IntPart, FracPart, RationalQ, ProductQ, SumQ, NonsumQ, Subst, First, Rest, SqrtNumberQ, SqrtNumberSumQ, LinearQ, Sqrt, ArcCosh, Coefficient, Denominator, Hypergeometric2F1, Not, Simplify, FractionalPart, IntegerPart, AppellF1, EllipticPi, EllipticE, EllipticF, ArcTan, ArcCot, ArcCoth, ArcTanh, ArcSin, ArcSinh, ArcCos, ArcCsc, ArcSec, ArcCsch, ArcSech, Sinh, Tanh, Cosh, Sech, Csch, Coth, LessEqual, Less, Greater, GreaterEqual, FractionQ, IntLinearcQ, Expand, IndependentQ, PowerQ, IntegerPowerQ, PositiveIntegerPowerQ, FractionalPowerQ, AtomQ, ExpQ, LogQ, Head, MemberQ, TrigQ, SinQ, CosQ, TanQ, CotQ, SecQ, CscQ, Sin, Cos, Tan, Cot, Sec, Csc, HyperbolicQ, SinhQ, CoshQ, TanhQ, CothQ, SechQ, CschQ, InverseTrigQ, SinCosQ, SinhCoshQ, LeafCount, Numerator, NumberQ, NumericQ, Length, ListQ, Im, Re, InverseHyperbolicQ, InverseFunctionQ, TrigHyperbolicFreeQ, InverseFunctionFreeQ, RealQ, EqQ, FractionalPowerFreeQ, ComplexFreeQ, PolynomialQ, FactorSquareFree, PowerOfLinearQ, Exponent, QuadraticQ, LinearPairQ, BinomialParts, TrinomialParts, PolyQ, EvenQ, OddQ, PerfectSquareQ, NiceSqrtAuxQ, NiceSqrtQ, Together, PosAux, PosQ, CoefficientList, ReplaceAll, ExpandLinearProduct, GCD, ContentFactor, NumericFactor, NonnumericFactors, MakeAssocList, GensymSubst, KernelSubst, ExpandExpression, Apart, SmartApart, MatchQ, PolynomialQuotientRemainder, FreeFactors, NonfreeFactors, RemoveContentAux, RemoveContent, FreeTerms, NonfreeTerms, ExpandAlgebraicFunction, CollectReciprocals, ExpandCleanup, AlgebraicFunctionQ, Coeff, LeadTerm, RemainingTerms, LeadFactor, RemainingFactors, LeadBase, LeadDegree, Numer, Denom, hypergeom, Expon, MergeMonomials, PolynomialDivide, BinomialQ, TrinomialQ, GeneralizedBinomialQ, GeneralizedTrinomialQ, FactorSquareFreeList, PerfectPowerTest, SquareFreeFactorTest, RationalFunctionQ, RationalFunctionFactors, NonrationalFunctionFactors, Reverse, RationalFunctionExponents, RationalFunctionExpand, ExpandIntegrand, SimplerQ, SimplerSqrtQ, SumSimplerQ, BinomialDegree, TrinomialDegree, CancelCommonFactors, SimplerIntegrandQ, GeneralizedBinomialDegree, GeneralizedBinomialParts, GeneralizedTrinomialDegree, GeneralizedTrinomialParts, MonomialQ, MonomialSumQ, MinimumMonomialExponent, MonomialExponent, LinearMatchQ, PowerOfLinearMatchQ, QuadraticMatchQ, CubicMatchQ, BinomialMatchQ, TrinomialMatchQ, GeneralizedBinomialMatchQ, GeneralizedTrinomialMatchQ, QuotientOfLinearsMatchQ, PolynomialTermQ, PolynomialTerms, NonpolynomialTerms, PseudoBinomialParts, NormalizePseudoBinomial, PseudoBinomialPairQ, PseudoBinomialQ, PolynomialGCD, PolyGCD, AlgebraicFunctionFactors, NonalgebraicFunctionFactors, QuotientOfLinearsP, QuotientOfLinearsParts, QuotientOfLinearsQ, Flatten, Sort, AbsurdNumberQ, AbsurdNumberFactors, NonabsurdNumberFactors, SumSimplerAuxQ, Prepend, Drop, CombineExponents, FactorInteger, FactorAbsurdNumber, SubstForInverseFunction, SubstForFractionalPower, SubstForFractionalPowerOfQuotientOfLinears, FractionalPowerOfQuotientOfLinears, SubstForFractionalPowerQ, SubstForFractionalPowerAuxQ, FractionalPowerOfSquareQ, FractionalPowerSubexpressionQ, Apply, FactorNumericGcd, MergeableFactorQ, MergeFactor, MergeFactors, TrigSimplifyQ, TrigSimplify, TrigSimplifyRecur, Order, FactorOrder, Smallest, OrderedQ, MinimumDegree, PositiveFactors, Sign, NonpositiveFactors, PolynomialInAuxQ, PolynomialInQ, ExponentInAux, ExponentIn, PolynomialInSubstAux, PolynomialInSubst, Distrib, DistributeDegree, FunctionOfPower, DivideDegreesOfFactors, MonomialFactor, FullSimplify, FunctionOfLinearSubst, FunctionOfLinear, NormalizeIntegrand, NormalizeIntegrandAux, NormalizeIntegrandFactor, NormalizeIntegrandFactorBase, NormalizeTogether, NormalizeLeadTermSigns, AbsorbMinusSign, NormalizeSumFactors, SignOfFactor, NormalizePowerOfLinear, SimplifyIntegrand, SimplifyTerm, TogetherSimplify, SmartSimplify, SubstForExpn, ExpandToSum, UnifySum, UnifyTerms, UnifyTerm, CalculusQ, FunctionOfInverseLinear, PureFunctionOfSinhQ, PureFunctionOfTanhQ, PureFunctionOfCoshQ, IntegerQuotientQ, OddQuotientQ, EvenQuotientQ, FindTrigFactor, FunctionOfSinhQ, FunctionOfCoshQ, OddHyperbolicPowerQ, FunctionOfTanhQ, FunctionOfTanhWeight, FunctionOfHyperbolicQ, SmartNumerator, SmartDenominator, SubstForAux, ActivateTrig, ExpandTrig, TrigExpand, SubstForTrig, SubstForHyperbolic, InertTrigFreeQ, LCM, SubstForFractionalPowerOfLinear, FractionalPowerOfLinear, InverseFunctionOfLinear, InertTrigQ, InertReciprocalQ, DeactivateTrig, FixInertTrigFunction, DeactivateTrigAux, PowerOfInertTrigSumQ, PiecewiseLinearQ, KnownTrigIntegrandQ, KnownSineIntegrandQ, KnownTangentIntegrandQ, KnownCotangentIntegrandQ, KnownSecantIntegrandQ, TryPureTanSubst, TryTanhSubst, TryPureTanhSubst, AbsurdNumberGCD, AbsurdNumberGCDList, ExpandTrigExpand, ExpandTrigReduce, ExpandTrigReduceAux, NormalizeTrig, TrigToExp, ExpandTrigToExp, TrigReduce, FunctionOfTrig, AlgebraicTrigFunctionQ, FunctionOfHyperbolic, FunctionOfQ, FunctionOfExpnQ, PureFunctionOfSinQ, PureFunctionOfCosQ, PureFunctionOfTanQ, PureFunctionOfCotQ, FunctionOfCosQ, FunctionOfSinQ, OddTrigPowerQ, FunctionOfTanQ, FunctionOfTanWeight, FunctionOfTrigQ, FunctionOfDensePolynomialsQ, FunctionOfLog, PowerVariableExpn, PowerVariableDegree, PowerVariableSubst, EulerIntegrandQ, FunctionOfSquareRootOfQuadratic, SquareRootOfQuadraticSubst, Divides, EasyDQ, ProductOfLinearPowersQ, Rt, NthRoot, AtomBaseQ, SumBaseQ, NegSumBaseQ, AllNegTermQ, SomeNegTermQ, TrigSquareQ, RtAux, TrigSquare, IntSum, IntTerm, Map2, ConstantFactor, SameQ, ReplacePart, CommonFactors, MostMainFactorPosition, FunctionOfExponentialQ, FunctionOfExponential, FunctionOfExponentialFunction, FunctionOfExponentialFunctionAux, FunctionOfExponentialTest, FunctionOfExponentialTestAux, stdev, rubi_test, If, IntQuadraticQ, IntBinomialQ, RectifyTangent, RectifyCotangent, Inequality, Condition, Simp, SimpHelp, SplitProduct, SplitSum, SubstFor, SubstForAux, FresnelS, FresnelC, Erfc, Erfi, Gamma, FunctionOfTrigOfLinearQ, ElementaryFunctionQ, Complex, UnsameQ, _SimpFixFactor, SimpFixFactor, _FixSimplify, FixSimplify, _SimplifyAntiderivativeSum, SimplifyAntiderivativeSum, _SimplifyAntiderivative, SimplifyAntiderivative, _TrigSimplifyAux, TrigSimplifyAux, Cancel, Part, PolyLog, D, Dist)
from sympy import Integral, S, sqrt
from sympy.integrals.rubi.symbol import WC
from sympy.core.symbol import symbols, Symbol
from sympy.functions import (log, sin, cos, tan, cot, csc, sec, sqrt, erf, exp, log)
from sympy.functions.elementary.hyperbolic import (acosh, asinh, atanh, acoth, acsch, asech, cosh, sinh, tanh, coth, sech, csch)
from sympy.functions.elementary.trigonometric import (atan, acsc, asin, acot, acos, asec)
A_, B_, C_, F_, G_, H_, a_, b_, c_, d_, e_, f_, g_, h_, i_, j_, k_, l_, m_, n_, p_, q_, r_, t_, u_, v_, s_, w_, x_, y_, z_ = [WC(i) for i in 'ABCFGHabcdefghijklmnpqrtuvswxyz']
a1_, a2_, b1_, b2_, c1_, c2_, d1_, d2_, n1_, n2_, e1_, e2_, f1_, f2_, g1_, g2_, n1_, n2_, n3_, Pq_, Pm_, Px_, Qm_, Qr_, Qx_, jn_, mn_, non2_, RFx_, RGx_ = [WC(i) for i in ['a1', 'a2', 'b1', 'b2', 'c1', 'c2', 'd1', 'd2', 'n1', 'n2', 'e1', 'e2', 'f1', 'f2', 'g1', 'g2', 'n1', 'n2', 'n3', 'Pq', 'Pm', 'Px', 'Qm', 'Qr', 'Qx', 'jn', 'mn', 'non2', 'RFx', 'RGx']]
_UseGamma = False
def inverse_hyperbolic(rubi):
pattern1 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule1 = ReplacementRule(pattern1, lambda x, b, c, a, n : -b*c*n*Int(x*(a + b*asinh(c*x))**(n + S(-1))/sqrt(c**S(2)*x**S(2) + S(1)), x) + x*(a + b*asinh(c*x))**n)
rubi.add(rule1)
pattern2 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule2 = ReplacementRule(pattern2, lambda x, b, c, a, n : -b*c*n*Int(x*(a + b*acosh(c*x))**(n + S(-1))/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x) + x*(a + b*acosh(c*x))**n)
rubi.add(rule2)
pattern3 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))))
rule3 = ReplacementRule(pattern3, lambda x, b, c, a, n : -c*Int(x*(a + b*asinh(c*x))**(n + S(1))/sqrt(c**S(2)*x**S(2) + S(1)), x)/(b*(n + S(1))) + (a + b*asinh(c*x))**(n + S(1))*sqrt(c**S(2)*x**S(2) + S(1))/(b*c*(n + S(1))))
rubi.add(rule3)
pattern4 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))))
rule4 = ReplacementRule(pattern4, lambda x, b, c, a, n : -c*Int(x*(a + b*acosh(c*x))**(n + S(1))/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/(b*(n + S(1))) + (a + b*acosh(c*x))**(n + S(1))*sqrt(c*x + S(-1))*sqrt(c*x + S(1))/(b*c*(n + S(1))))
rubi.add(rule4)
pattern5 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule5 = ReplacementRule(pattern5, lambda x, b, c, a, n : Subst(Int(x**n*Cosh(a/b - x/b), x), x, a + b*asinh(c*x))/(b*c))
rubi.add(rule5)
pattern6 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule6 = ReplacementRule(pattern6, lambda x, b, c, a, n : -Subst(Int(x**n*sinh(a/b - x/b), x), x, a + b*acosh(c*x))/(b*c))
rubi.add(rule6)
pattern7 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule7 = ReplacementRule(pattern7, lambda x, b, c, a, n : Subst(Int((a + b*x)**n/tanh(x), x), x, asinh(c*x)))
rubi.add(rule7)
pattern8 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule8 = ReplacementRule(pattern8, lambda x, b, c, a, n : Subst(Int((a + b*x)**n/coth(x), x), x, acosh(c*x)))
rubi.add(rule8)
pattern9 = Pattern(Integral((x_*WC('d', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule9 = ReplacementRule(pattern9, lambda x, b, m, c, a, d, n : -b*c*n*Int((d*x)**(m + S(1))*(a + b*asinh(c*x))**(n + S(-1))/sqrt(c**S(2)*x**S(2) + S(1)), x)/(d*(m + S(1))) + (d*x)**(m + S(1))*(a + b*asinh(c*x))**n/(d*(m + S(1))))
rubi.add(rule9)
pattern10 = Pattern(Integral((x_*WC('d', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule10 = ReplacementRule(pattern10, lambda x, b, m, c, a, d, n : -b*c*n*Int((d*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/(d*(m + S(1))) + (d*x)**(m + S(1))*(a + b*acosh(c*x))**n/(d*(m + S(1))))
rubi.add(rule10)
pattern11 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule11 = ReplacementRule(pattern11, lambda x, b, m, c, a, n : -b*c*n*Int(x**(m + S(1))*(a + b*asinh(c*x))**(n + S(-1))/sqrt(c**S(2)*x**S(2) + S(1)), x)/(m + S(1)) + x**(m + S(1))*(a + b*asinh(c*x))**n/(m + S(1)))
rubi.add(rule11)
pattern12 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule12 = ReplacementRule(pattern12, lambda x, b, m, c, a, n : -b*c*n*Int(x**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/(m + S(1)) + x**(m + S(1))*(a + b*acosh(c*x))**n/(m + S(1)))
rubi.add(rule12)
pattern13 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Inequality(S(-2), LessEqual, n, Less, S(-1))))
rule13 = ReplacementRule(pattern13, lambda x, b, m, c, a, n : -c**(-m + S(-1))*Subst(Int(ExpandTrigReduce((a + b*x)**(n + S(1)), (m + (m + S(1))*sinh(x)**S(2))*sinh(x)**(m + S(-1)), x), x), x, asinh(c*x))/(b*(n + S(1))) + x**m*(a + b*asinh(c*x))**(n + S(1))*sqrt(c**S(2)*x**S(2) + S(1))/(b*c*(n + S(1))))
rubi.add(rule13)
pattern14 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Inequality(S(-2), LessEqual, n, Less, S(-1))))
rule14 = ReplacementRule(pattern14, lambda x, b, m, c, a, n : c**(-m + S(-1))*Subst(Int(ExpandTrigReduce((a + b*x)**(n + S(1))*(m - (m + S(1))*Cosh(x)**S(2))*Cosh(x)**(m + S(-1)), x), x), x, acosh(c*x))/(b*(n + S(1))) + x**m*(a + b*acosh(c*x))**(n + S(1))*sqrt(c*x + S(-1))*sqrt(c*x + S(1))/(b*c*(n + S(1))))
rubi.add(rule14)
pattern15 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-2))))
rule15 = ReplacementRule(pattern15, lambda x, b, m, c, a, n : -c*(m + S(1))*Int(x**(m + S(1))*(a + b*asinh(c*x))**(n + S(1))/sqrt(c**S(2)*x**S(2) + S(1)), x)/(b*(n + S(1))) - m*Int(x**(m + S(-1))*(a + b*asinh(c*x))**(n + S(1))/sqrt(c**S(2)*x**S(2) + S(1)), x)/(b*c*(n + S(1))) + x**m*(a + b*asinh(c*x))**(n + S(1))*sqrt(c**S(2)*x**S(2) + S(1))/(b*c*(n + S(1))))
rubi.add(rule15)
pattern16 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-2))))
rule16 = ReplacementRule(pattern16, lambda x, b, m, c, a, n : -c*(m + S(1))*Int(x**(m + S(1))*(a + b*acosh(c*x))**(n + S(1))/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/(b*(n + S(1))) + m*Int(x**(m + S(-1))*(a + b*acosh(c*x))**(n + S(1))/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/(b*c*(n + S(1))) + x**m*(a + b*acosh(c*x))**(n + S(1))*sqrt(c*x + S(-1))*sqrt(c*x + S(1))/(b*c*(n + S(1))))
rubi.add(rule16)
pattern17 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)))
rule17 = ReplacementRule(pattern17, lambda x, b, m, c, a, n : c**(-m + S(-1))*Subst(Int((a + b*x)**n*Cosh(x)*sinh(x)**m, x), x, asinh(c*x)))
rubi.add(rule17)
pattern18 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)))
rule18 = ReplacementRule(pattern18, lambda x, b, m, c, a, n : c**(-m + S(-1))*Subst(Int((a + b*x)**n*Cosh(x)**m*sinh(x), x), x, acosh(c*x)))
rubi.add(rule18)
pattern19 = Pattern(Integral((x_*WC('d', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule19 = ReplacementRule(pattern19, lambda x, b, m, c, a, d, n : Int((d*x)**m*(a + b*asinh(c*x))**n, x))
rubi.add(rule19)
pattern20 = Pattern(Integral((x_*WC('d', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule20 = ReplacementRule(pattern20, lambda x, b, m, c, a, d, n : Int((d*x)**m*(a + b*acosh(c*x))**n, x))
rubi.add(rule20)
pattern21 = Pattern(Integral(S(1)/(sqrt(d_ + x_**S(2)*WC('e', S(1)))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda d: PositiveQ(d)))
rule21 = ReplacementRule(pattern21, lambda x, b, c, a, d, e : log(a + b*asinh(c*x))/(b*c*sqrt(d)))
rubi.add(rule21)
pattern22 = Pattern(Integral(S(1)/(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)))
rule22 = ReplacementRule(pattern22, lambda e2, e1, d1, x, b, c, a, d2 : log(a + b*acosh(c*x))/(b*c*sqrt(-d1*d2)))
rubi.add(rule22)
pattern23 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda d: PositiveQ(d)), CustomConstraint(lambda n: NonzeroQ(n + S(1))))
rule23 = ReplacementRule(pattern23, lambda x, b, c, a, d, e, n : (a + b*asinh(c*x))**(n + S(1))/(b*c*sqrt(d)*(n + S(1))))
rubi.add(rule23)
pattern24 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))/(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), CustomConstraint(lambda n: NonzeroQ(n + S(1))))
rule24 = ReplacementRule(pattern24, lambda e2, e1, d1, x, b, c, a, d2, n : (a + b*acosh(c*x))**(n + S(1))/(b*c*sqrt(-d1*d2)*(n + S(1))))
rubi.add(rule24)
pattern25 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda d: Not(PositiveQ(d))))
rule25 = ReplacementRule(pattern25, lambda x, b, c, a, d, e, n : sqrt(c**S(2)*x**S(2) + S(1))*Int((a + b*asinh(c*x))**n/sqrt(c**S(2)*x**S(2) + S(1)), x)/sqrt(d + e*x**S(2)))
rubi.add(rule25)
pattern26 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))/(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda d2, d1: Not(NegativeQ(d2) & PositiveQ(d1))))
rule26 = ReplacementRule(pattern26, lambda e2, e1, d1, x, b, c, a, d2, n : sqrt(c*x + S(-1))*sqrt(c*x + S(1))*Int((a + b*acosh(c*x))**n/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/(sqrt(d1 + e1*x)*sqrt(d2 + e2*x)))
rubi.add(rule26)
pattern27 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p)), )
def With27(p, x, b, c, a, d, e):
u = IntHide((d + e*x**S(2))**p, x)
return -b*c*Int(SimplifyIntegrand(u/sqrt(c**S(2)*x**S(2) + S(1)), x), x) + Dist(a + b*asinh(c*x), u, x)
rule27 = ReplacementRule(pattern27, lambda p, x, b, c, a, d, e : With27(p, x, b, c, a, d, e))
rubi.add(rule27)
pattern28 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p)), )
def With28(p, x, b, c, a, d, e):
u = IntHide((d + e*x**S(2))**p, x)
return -b*c*Int(SimplifyIntegrand(u/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x), x) + Dist(a + b*acosh(c*x), u, x)
rule28 = ReplacementRule(pattern28, lambda p, x, b, c, a, d, e : With28(p, x, b, c, a, d, e))
rubi.add(rule28)
pattern29 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Greater(p, S(0))), CustomConstraint(lambda p: IntegerQ(p)))
rule29 = ReplacementRule(pattern29, lambda p, x, b, c, a, d, e, n : -b*c*n*(-d)**p*Int(x*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(-1)/2)*(c*x + S(1))**(p + S(-1)/2), x)/(S(2)*p + S(1)) + S(2)*d*p*Int((a + b*acosh(c*x))**n*(d + e*x**S(2))**(p + S(-1)), x)/(S(2)*p + S(1)) + x*(a + b*acosh(c*x))**n*(d + e*x**S(2))**p/(S(2)*p + S(1)))
rubi.add(rule29)
pattern30 = Pattern(Integral(sqrt(d_ + x_**S(2)*WC('e', S(1)))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule30 = ReplacementRule(pattern30, lambda x, b, c, a, d, e, n : -b*c*n*sqrt(d + e*x**S(2))*Int(x*(a + b*asinh(c*x))**(n + S(-1)), x)/(S(2)*sqrt(c**S(2)*x**S(2) + S(1))) + x*(a + b*asinh(c*x))**n*sqrt(d + e*x**S(2))/S(2) + sqrt(d + e*x**S(2))*Int((a + b*asinh(c*x))**n/sqrt(c**S(2)*x**S(2) + S(1)), x)/(S(2)*sqrt(c**S(2)*x**S(2) + S(1))))
rubi.add(rule30)
pattern31 = Pattern(Integral(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule31 = ReplacementRule(pattern31, lambda e2, e1, d1, x, b, c, a, d2, n : -b*c*n*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*Int(x*(a + b*acosh(c*x))**(n + S(-1)), x)/(S(2)*sqrt(c*x + S(-1))*sqrt(c*x + S(1))) + x*(a + b*acosh(c*x))**n*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)/S(2) - sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*Int((a + b*acosh(c*x))**n/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/(S(2)*sqrt(c*x + S(-1))*sqrt(c*x + S(1))))
rubi.add(rule31)
pattern32 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Greater(p, S(0))))
rule32 = ReplacementRule(pattern32, lambda p, x, b, c, a, d, e, n : -b*c*d**IntPart(p)*n*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int(x*(a + b*asinh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(1))**(p + S(-1)/2), x)/(S(2)*p + S(1)) + S(2)*d*p*Int((a + b*asinh(c*x))**n*(d + e*x**S(2))**(p + S(-1)), x)/(S(2)*p + S(1)) + x*(a + b*asinh(c*x))**n*(d + e*x**S(2))**p/(S(2)*p + S(1)))
rubi.add(rule32)
pattern33 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Greater(p, S(0))), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)))
rule33 = ReplacementRule(pattern33, lambda p, e2, e1, d1, x, b, c, a, d2, n : -b*c*n*(-d1*d2)**(p + S(-1)/2)*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*Int(x*(a + b*acosh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(-1))**(p + S(-1)/2), x)/((S(2)*p + S(1))*sqrt(c*x + S(-1))*sqrt(c*x + S(1))) + S(2)*d1*d2*p*Int((a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(-1))*(d2 + e2*x)**(p + S(-1)), x)/(S(2)*p + S(1)) + x*(a + b*acosh(c*x))**n*(d1 + e1*x)**p*(d2 + e2*x)**p/(S(2)*p + S(1)))
rubi.add(rule33)
pattern34 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Greater(p, S(0))))
rule34 = ReplacementRule(pattern34, lambda p, e2, e1, d1, x, b, c, a, d2, n : -b*c*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int(x*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(-1)/2)*(c*x + S(1))**(p + S(-1)/2), x)/(S(2)*p + S(1)) + S(2)*d1*d2*p*Int((a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(-1))*(d2 + e2*x)**(p + S(-1)), x)/(S(2)*p + S(1)) + x*(a + b*acosh(c*x))**n*(d1 + e1*x)**p*(d2 + e2*x)**p/(S(2)*p + S(1)))
rubi.add(rule34)
pattern35 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1)))**(S(3)/2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule35 = ReplacementRule(pattern35, lambda x, b, c, a, d, e, n : -b*c*n*sqrt(c**S(2)*x**S(2) + S(1))*Int(x*(a + b*asinh(c*x))**(n + S(-1))/(c**S(2)*x**S(2) + S(1)), x)/(d*sqrt(d + e*x**S(2))) + x*(a + b*asinh(c*x))**n/(d*sqrt(d + e*x**S(2))))
rubi.add(rule35)
pattern36 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))/((d1_ + x_*WC('e1', S(1)))**(S(3)/2)*(d2_ + x_*WC('e2', S(1)))**(S(3)/2)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule36 = ReplacementRule(pattern36, lambda e2, e1, d1, x, b, c, a, d2, n : b*c*n*sqrt(c*x + S(-1))*sqrt(c*x + S(1))*Int(x*(a + b*acosh(c*x))**(n + S(-1))/(-c**S(2)*x**S(2) + S(1)), x)/(d1*d2*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)) + x*(a + b*acosh(c*x))**n/(d1*d2*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)))
rubi.add(rule36)
pattern37 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda p: IntegerQ(p)))
rule37 = ReplacementRule(pattern37, lambda p, x, b, c, a, d, e, n : -b*c*n*(-d)**p*Int(x*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(S(2)*p + S(2)) - x*(a + b*acosh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(S(2)*d*(p + S(1))) + (S(2)*p + S(3))*Int((a + b*acosh(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/(S(2)*d*(p + S(1))))
rubi.add(rule37)
pattern38 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda p: Unequal(p, S(-3)/2)))
rule38 = ReplacementRule(pattern38, lambda p, x, b, c, a, d, e, n : b*c*d**IntPart(p)*n*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int(x*(a + b*asinh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(1))**(p + S(1)/2), x)/(S(2)*(p + S(1))) - x*(a + b*asinh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(S(2)*d*(p + S(1))) + (S(2)*p + S(3))*Int((a + b*asinh(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/(S(2)*d*(p + S(1))))
rubi.add(rule38)
pattern39 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda p: Unequal(p, S(-3)/2)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)))
rule39 = ReplacementRule(pattern39, lambda p, e2, e1, d1, x, b, c, a, d2, n : -b*c*n*(-d1*d2)**(p + S(1)/2)*sqrt(c*x + S(-1))*sqrt(c*x + S(1))*Int(x*(a + b*acosh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(-1))**(p + S(1)/2), x)/(S(2)*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*(p + S(1))) - x*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(S(2)*d1*d2*(p + S(1))) + (S(2)*p + S(3))*Int((a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1)), x)/(S(2)*d1*d2*(p + S(1))))
rubi.add(rule39)
pattern40 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda p: Unequal(p, S(-3)/2)))
rule40 = ReplacementRule(pattern40, lambda p, e2, e1, d1, x, b, c, a, d2, n : -b*c*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int(x*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(S(2)*(p + S(1))) - x*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(S(2)*d1*d2*(p + S(1))) + (S(2)*p + S(3))*Int((a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1)), x)/(S(2)*d1*d2*(p + S(1))))
rubi.add(rule40)
pattern41 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule41 = ReplacementRule(pattern41, lambda x, b, c, a, d, e, n : Subst(Int((a + b*x)**n*sech(x), x), x, asinh(c*x))/(c*d))
rubi.add(rule41)
pattern42 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule42 = ReplacementRule(pattern42, lambda x, b, c, a, d, e, n : -Subst(Int((a + b*x)**n*csch(x), x), x, acosh(c*x))/(c*d))
rubi.add(rule42)
pattern43 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda p: IntegerQ(p)))
rule43 = ReplacementRule(pattern43, lambda p, x, b, c, a, d, e, n : -c*(-d)**p*(S(2)*p + S(1))*Int(x*(a + b*acosh(c*x))**(n + S(1))*(c*x + S(-1))**(p + S(-1)/2)*(c*x + S(1))**(p + S(-1)/2), x)/(b*(n + S(1))) + (-d)**p*(a + b*acosh(c*x))**(n + S(1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2)/(b*c*(n + S(1))))
rubi.add(rule43)
pattern44 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))))
rule44 = ReplacementRule(pattern44, lambda p, x, b, c, a, d, e, n : -c*d**IntPart(p)*(d + e*x**S(2))**FracPart(p)*(S(2)*p + S(1))*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int(x*(a + b*asinh(c*x))**(n + S(1))*(c**S(2)*x**S(2) + S(1))**(p + S(-1)/2), x)/(b*(n + S(1))) + (a + b*asinh(c*x))**(n + S(1))*(d + e*x**S(2))**p*sqrt(c**S(2)*x**S(2) + S(1))/(b*c*(n + S(1))))
rubi.add(rule44)
pattern45 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)))
rule45 = ReplacementRule(pattern45, lambda p, e2, e1, d1, x, b, c, a, d2, n : -c*(-d1*d2)**(p + S(-1)/2)*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*(S(2)*p + S(1))*Int(x*(a + b*acosh(c*x))**(n + S(1))*(c**S(2)*x**S(2) + S(-1))**(p + S(-1)/2), x)/(b*(n + S(1))*sqrt(c*x + S(-1))*sqrt(c*x + S(1))) + (a + b*acosh(c*x))**(n + S(1))*(d1 + e1*x)**p*(d2 + e2*x)**p*sqrt(c*x + S(-1))*sqrt(c*x + S(1))/(b*c*(n + S(1))))
rubi.add(rule45)
pattern46 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))))
rule46 = ReplacementRule(pattern46, lambda p, e2, e1, d1, x, b, c, a, d2, n : -c*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(S(2)*p + S(1))*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int(x*(a + b*acosh(c*x))**(n + S(1))*(c*x + S(-1))**(p + S(-1)/2)*(c*x + S(1))**(p + S(-1)/2), x)/(b*(n + S(1))) + (a + b*acosh(c*x))**(n + S(1))*(d1 + e1*x)**p*(d2 + e2*x)**p*sqrt(c*x + S(-1))*sqrt(c*x + S(1))/(b*c*(n + S(1))))
rubi.add(rule46)
pattern47 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(S(2)*p)), CustomConstraint(lambda d, p: IntegerQ(p) | PositiveQ(d)))
rule47 = ReplacementRule(pattern47, lambda p, x, b, c, a, d, e, n : d**p*Subst(Int((a + b*x)**n*Cosh(x)**(S(2)*p + S(1)), x), x, asinh(c*x))/c)
rubi.add(rule47)
pattern48 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p)))
rule48 = ReplacementRule(pattern48, lambda p, x, b, c, a, d, e, n : (-d)**p*Subst(Int((a + b*x)**n*sinh(x)**(S(2)*p + S(1)), x), x, acosh(c*x))/c)
rubi.add(rule48)
pattern49 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p: PositiveIntegerQ(p + S(1)/2)), CustomConstraint(lambda d2, d1: NegativeQ(d2) & PositiveQ(d1)))
rule49 = ReplacementRule(pattern49, lambda p, e2, e1, d1, x, b, c, a, d2, n : (-d1*d2)**p*Subst(Int((a + b*x)**n*sinh(x)**(S(2)*p + S(1)), x), x, acosh(c*x))/c)
rubi.add(rule49)
pattern50 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(S(2)*p)), CustomConstraint(lambda d, p: Not(IntegerQ(p) | PositiveQ(d))))
rule50 = ReplacementRule(pattern50, lambda p, x, b, c, a, d, e, n : d**(p + S(-1)/2)*sqrt(d + e*x**S(2))*Int((a + b*asinh(c*x))**n*(c**S(2)*x**S(2) + S(1))**p, x)/sqrt(c**S(2)*x**S(2) + S(1)))
rubi.add(rule50)
pattern51 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p: PositiveIntegerQ(S(2)*p)), CustomConstraint(lambda d2, d1: Not(NegativeQ(d2) & PositiveQ(d1))))
rule51 = ReplacementRule(pattern51, lambda p, e2, e1, d1, x, b, c, a, d2, n : (-d1*d2)**(p + S(-1)/2)*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*Int((a + b*acosh(c*x))**n*(c*x + S(-1))**p*(c*x + S(1))**p, x)/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))))
rubi.add(rule51)
pattern52 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: NonzeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p) | NegativeIntegerQ(p + S(1)/2)), )
def With52(p, x, b, c, a, d, e):
u = IntHide((d + e*x**S(2))**p, x)
return -b*c*Int(SimplifyIntegrand(u/sqrt(c**S(2)*x**S(2) + S(1)), x), x) + Dist(a + b*asinh(c*x), u, x)
rule52 = ReplacementRule(pattern52, lambda p, x, b, c, a, d, e : With52(p, x, b, c, a, d, e))
rubi.add(rule52)
pattern53 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: NonzeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p) | NegativeIntegerQ(p + S(1)/2)), )
def With53(p, x, b, c, a, d, e):
u = IntHide((d + e*x**S(2))**p, x)
return -b*c*Int(SimplifyIntegrand(u/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x), x) + Dist(a + b*acosh(c*x), u, x)
rule53 = ReplacementRule(pattern53, lambda p, x, b, c, a, d, e : With53(p, x, b, c, a, d, e))
rubi.add(rule53)
pattern54 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: NonzeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda p, n: PositiveIntegerQ(n) | Greater(p, S(0))))
rule54 = ReplacementRule(pattern54, lambda p, x, b, c, a, d, e, n : Int(ExpandIntegrand((a + b*asinh(c*x))**n, (d + e*x**S(2))**p, x), x))
rubi.add(rule54)
pattern55 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: NonzeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda p, n: PositiveIntegerQ(n) | Greater(p, S(0))))
rule55 = ReplacementRule(pattern55, lambda p, x, b, c, a, d, e, n : Int(ExpandIntegrand((a + b*acosh(c*x))**n, (d + e*x**S(2))**p, x), x))
rubi.add(rule55)
pattern56 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule56 = ReplacementRule(pattern56, lambda p, x, b, c, a, d, e, n : Int((a + b*asinh(c*x))**n*(d + e*x**S(2))**p, x))
rubi.add(rule56)
pattern57 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda p: IntegerQ(p)))
rule57 = ReplacementRule(pattern57, lambda p, x, b, c, a, d, e, n : Int((a + b*acosh(c*x))**n*(d + e*x**S(2))**p, x))
rubi.add(rule57)
pattern58 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule58 = ReplacementRule(pattern58, lambda p, e2, e1, d1, x, b, c, a, d2, n : Int((a + b*acosh(c*x))**n*(d1 + e1*x)**p*(d2 + e2*x)**p, x))
rubi.add(rule58)
pattern59 = Pattern(Integral((d_ + x_*WC('e', S(1)))**p_*(f_ + x_*WC('g', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda g, f, d, e: ZeroQ(d*g + e*f)), CustomConstraint(lambda g, c, f: ZeroQ(c**S(2)*f**S(2) + g**S(2))), CustomConstraint(lambda p: Not(IntegerQ(p))))
rule59 = ReplacementRule(pattern59, lambda p, x, b, g, c, f, a, d, e, n : (d + e*x)**FracPart(p)*(f + g*x)**FracPart(p)*(d*f + e*g*x**S(2))**(-FracPart(p))*Int((a + b*asinh(c*x))**n*(d*f + e*g*x**S(2))**p, x))
rubi.add(rule59)
pattern60 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: Not(IntegerQ(p))))
rule60 = ReplacementRule(pattern60, lambda p, x, b, c, a, d, e, n : (-d)**IntPart(p)*(d + e*x**S(2))**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((a + b*acosh(c*x))**n*(c*x + S(-1))**p*(c*x + S(1))**p, x))
rubi.add(rule60)
pattern61 = Pattern(Integral(x_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule61 = ReplacementRule(pattern61, lambda x, b, c, a, d, e, n : Subst(Int((a + b*x)**n*tanh(x), x), x, asinh(c*x))/e)
rubi.add(rule61)
pattern62 = Pattern(Integral(x_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule62 = ReplacementRule(pattern62, lambda x, b, c, a, d, e, n : Subst(Int((a + b*x)**n*coth(x), x), x, acosh(c*x))/e)
rubi.add(rule62)
pattern63 = Pattern(Integral(x_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: NonzeroQ(p + S(1))), CustomConstraint(lambda p: IntegerQ(p)))
rule63 = ReplacementRule(pattern63, lambda p, x, b, c, a, d, e, n : -b*n*(-d)**p*Int((a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(S(2)*c*(p + S(1))) + (a + b*acosh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(S(2)*e*(p + S(1))))
rubi.add(rule63)
pattern64 = Pattern(Integral(x_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: NonzeroQ(p + S(1))))
rule64 = ReplacementRule(pattern64, lambda p, x, b, c, a, d, e, n : -b*d**IntPart(p)*n*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((a + b*asinh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(1))**(p + S(1)/2), x)/(S(2)*c*(p + S(1))) + (a + b*asinh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(S(2)*e*(p + S(1))))
rubi.add(rule64)
pattern65 = Pattern(Integral(x_*(d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: NonzeroQ(p + S(1))), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)))
rule65 = ReplacementRule(pattern65, lambda p, e2, e1, d1, x, b, c, a, d2, n : -b*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((a + b*acosh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(-1))**(p + S(1)/2), x)/(S(2)*c*(p + S(1))) + (a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(S(2)*e1*e2*(p + S(1))))
rubi.add(rule65)
pattern66 = Pattern(Integral(x_*(d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: NonzeroQ(p + S(1))))
rule66 = ReplacementRule(pattern66, lambda p, e2, e1, d1, x, b, c, a, d2, n : -b*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(S(2)*c*(p + S(1))) + (a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(S(2)*e1*e2*(p + S(1))))
rubi.add(rule66)
pattern67 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))/(x_*(d_ + x_**S(2)*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule67 = ReplacementRule(pattern67, lambda x, b, c, a, d, e, n : Subst(Int((a + b*x)**n/(Cosh(x)*sinh(x)), x), x, asinh(c*x))/d)
rubi.add(rule67)
pattern68 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))/(x_*(d_ + x_**S(2)*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule68 = ReplacementRule(pattern68, lambda x, b, c, a, d, e, n : -Subst(Int((a + b*x)**n/(Cosh(x)*sinh(x)), x), x, acosh(c*x))/d)
rubi.add(rule68)
pattern69 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(3))), CustomConstraint(lambda m: NonzeroQ(m + S(1))), CustomConstraint(lambda p: IntegerQ(p)))
rule69 = ReplacementRule(pattern69, lambda p, x, b, m, c, f, a, d, e, n : b*c*n*(-d)**p*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(f*(m + S(1))) + (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(d*f*(m + S(1))))
rubi.add(rule69)
pattern70 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(3))), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule70 = ReplacementRule(pattern70, lambda p, x, b, m, c, f, a, d, e, n : -b*c*d**IntPart(p)*n*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((f*x)**(m + S(1))*(a + b*asinh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(1))**(p + S(1)/2), x)/(f*(m + S(1))) + (f*x)**(m + S(1))*(a + b*asinh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(d*f*(m + S(1))))
rubi.add(rule70)
pattern71 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(3))), CustomConstraint(lambda m: NonzeroQ(m + S(1))), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)))
rule71 = ReplacementRule(pattern71, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : b*c*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(-1))**(p + S(1)/2), x)/(f*(m + S(1))) + (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(d1*d2*f*(m + S(1))))
rubi.add(rule71)
pattern72 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(3))), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule72 = ReplacementRule(pattern72, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : b*c*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(f*(m + S(1))) + (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(d1*d2*f*(m + S(1))))
rubi.add(rule72)
pattern73 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p)))
rule73 = ReplacementRule(pattern73, lambda p, x, b, c, a, d, e : -b*c*d**p*Int((c**S(2)*x**S(2) + S(1))**(p + S(-1)/2), x)/(S(2)*p) + d*Int((a + b*asinh(c*x))*(d + e*x**S(2))**(p + S(-1))/x, x) + (a + b*asinh(c*x))*(d + e*x**S(2))**p/(S(2)*p))
rubi.add(rule73)
pattern74 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p)))
rule74 = ReplacementRule(pattern74, lambda p, x, b, c, a, d, e : -b*c*(-d)**p*Int((c*x + S(-1))**(p + S(-1)/2)*(c*x + S(1))**(p + S(-1)/2), x)/(S(2)*p) + d*Int((a + b*acosh(c*x))*(d + e*x**S(2))**(p + S(-1))/x, x) + (a + b*acosh(c*x))*(d + e*x**S(2))**p/(S(2)*p))
rubi.add(rule74)
pattern75 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p)), CustomConstraint(lambda m: NegativeIntegerQ(m/S(2) + S(1)/2)))
rule75 = ReplacementRule(pattern75, lambda p, x, b, m, c, f, a, d, e : -b*c*d**p*Int((f*x)**(m + S(1))*(c**S(2)*x**S(2) + S(1))**(p + S(-1)/2), x)/(f*(m + S(1))) - S(2)*e*p*Int((f*x)**(m + S(2))*(a + b*asinh(c*x))*(d + e*x**S(2))**(p + S(-1)), x)/(f**S(2)*(m + S(1))) + (f*x)**(m + S(1))*(a + b*asinh(c*x))*(d + e*x**S(2))**p/(f*(m + S(1))))
rubi.add(rule75)
pattern76 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p)), CustomConstraint(lambda m: NegativeIntegerQ(m/S(2) + S(1)/2)))
rule76 = ReplacementRule(pattern76, lambda p, x, b, m, c, f, a, d, e : -b*c*(-d)**p*Int((f*x)**(m + S(1))*(c*x + S(-1))**(p + S(-1)/2)*(c*x + S(1))**(p + S(-1)/2), x)/(f*(m + S(1))) - S(2)*e*p*Int((f*x)**(m + S(2))*(a + b*acosh(c*x))*(d + e*x**S(2))**(p + S(-1)), x)/(f**S(2)*(m + S(1))) + (f*x)**(m + S(1))*(a + b*acosh(c*x))*(d + e*x**S(2))**p/(f*(m + S(1))))
rubi.add(rule76)
pattern77 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p)), )
def With77(p, x, b, m, c, f, a, d, e):
u = IntHide((f*x)**m*(d + e*x**S(2))**p, x)
return -b*c*Int(SimplifyIntegrand(u/sqrt(c**S(2)*x**S(2) + S(1)), x), x) + Dist(a + b*asinh(c*x), u, x)
rule77 = ReplacementRule(pattern77, lambda p, x, b, m, c, f, a, d, e : With77(p, x, b, m, c, f, a, d, e))
rubi.add(rule77)
pattern78 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p)), )
def With78(p, x, b, m, c, f, a, d, e):
u = IntHide((f*x)**m*(d + e*x**S(2))**p, x)
return -b*c*Int(SimplifyIntegrand(u/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x), x) + Dist(a + b*acosh(c*x), u, x)
rule78 = ReplacementRule(pattern78, lambda p, x, b, m, c, f, a, d, e : With78(p, x, b, m, c, f, a, d, e))
rubi.add(rule78)
pattern79 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)), CustomConstraint(lambda p, m: PositiveIntegerQ(m/S(2) + S(1)/2) | NegativeIntegerQ(m/S(2) + p + S(3)/2)), CustomConstraint(lambda p: Unequal(p, S(-1)/2)), CustomConstraint(lambda d: PositiveQ(d)), )
def With79(p, x, b, m, c, a, d, e):
u = IntHide(x**m*(c**S(2)*x**S(2) + S(1))**p, x)
return -b*c*d**p*Int(SimplifyIntegrand(u/sqrt(c**S(2)*x**S(2) + S(1)), x), x) + Dist(d**p*(a + b*asinh(c*x)), u, x)
rule79 = ReplacementRule(pattern79, lambda p, x, b, m, c, a, d, e : With79(p, x, b, m, c, a, d, e))
rubi.add(rule79)
pattern80 = Pattern(Integral(x_**m_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)), CustomConstraint(lambda p, m: PositiveIntegerQ(m/S(2) + S(1)/2) | NegativeIntegerQ(m/S(2) + p + S(3)/2)), CustomConstraint(lambda p: Unequal(p, S(-1)/2)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), )
def With80(p, e2, e1, d1, x, b, m, c, a, d2):
u = IntHide(x**m*(c*x + S(-1))**p*(c*x + S(1))**p, x)
return -b*c*(-d1*d2)**p*Int(SimplifyIntegrand(u/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x), x) + Dist((-d1*d2)**p*(a + b*acosh(c*x)), u, x)
rule80 = ReplacementRule(pattern80, lambda p, e2, e1, d1, x, b, m, c, a, d2 : With80(p, e2, e1, d1, x, b, m, c, a, d2))
rubi.add(rule80)
pattern81 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p + S(1)/2)), CustomConstraint(lambda p, m: PositiveIntegerQ(m/S(2) + S(1)/2) | NegativeIntegerQ(m/S(2) + p + S(3)/2)), )
def With81(p, x, b, m, c, a, d, e):
u = IntHide(x**m*(c**S(2)*x**S(2) + S(1))**p, x)
return -b*c*d**(p + S(-1)/2)*sqrt(d + e*x**S(2))*Int(SimplifyIntegrand(u/sqrt(c**S(2)*x**S(2) + S(1)), x), x)/sqrt(c**S(2)*x**S(2) + S(1)) + (a + b*asinh(c*x))*Int(x**m*(d + e*x**S(2))**p, x)
rule81 = ReplacementRule(pattern81, lambda p, x, b, m, c, a, d, e : With81(p, x, b, m, c, a, d, e))
rubi.add(rule81)
pattern82 = Pattern(Integral(x_**m_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p: PositiveIntegerQ(p + S(1)/2)), CustomConstraint(lambda p, m: PositiveIntegerQ(m/S(2) + S(1)/2) | NegativeIntegerQ(m/S(2) + p + S(3)/2)), )
def With82(p, e2, e1, d1, x, b, m, c, a, d2):
u = IntHide(x**m*(c*x + S(-1))**p*(c*x + S(1))**p, x)
return -b*c*(-d1*d2)**(p + S(-1)/2)*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*Int(SimplifyIntegrand(u/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x), x)/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))) + (a + b*acosh(c*x))*Int(x**m*(d1 + e1*x)**p*(d2 + e2*x)**p, x)
rule82 = ReplacementRule(pattern82, lambda p, e2, e1, d1, x, b, m, c, a, d2 : With82(p, e2, e1, d1, x, b, m, c, a, d2))
rubi.add(rule82)
pattern83 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, p, m: RationalQ(m, n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Greater(p, S(0))), CustomConstraint(lambda m: Less(m, S(-1))), CustomConstraint(lambda p: IntegerQ(p)))
rule83 = ReplacementRule(pattern83, lambda p, x, b, m, c, f, a, d, e, n : -b*c*n*(-d)**p*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(-1)/2)*(c*x + S(1))**(p + S(-1)/2), x)/(f*(m + S(1))) - S(2)*e*p*Int((f*x)**(m + S(2))*(a + b*acosh(c*x))**n*(d + e*x**S(2))**(p + S(-1)), x)/(f**S(2)*(m + S(1))) + (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*(d + e*x**S(2))**p/(f*(m + S(1))))
rubi.add(rule83)
pattern84 = Pattern(Integral((x_*WC('f', S(1)))**m_*sqrt(d_ + x_**S(2)*WC('e', S(1)))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Less(m, S(-1))))
rule84 = ReplacementRule(pattern84, lambda x, b, m, c, f, a, d, e, n : -b*c*n*sqrt(d + e*x**S(2))*Int((f*x)**(m + S(1))*(a + b*asinh(c*x))**(n + S(-1)), x)/(f*(m + S(1))*sqrt(c**S(2)*x**S(2) + S(1))) - c**S(2)*sqrt(d + e*x**S(2))*Int((f*x)**(m + S(2))*(a + b*asinh(c*x))**n/sqrt(c**S(2)*x**S(2) + S(1)), x)/(f**S(2)*(m + S(1))*sqrt(c**S(2)*x**S(2) + S(1))) + (f*x)**(m + S(1))*(a + b*asinh(c*x))**n*sqrt(d + e*x**S(2))/(f*(m + S(1))))
rubi.add(rule84)
pattern85 = Pattern(Integral((x_*WC('f', S(1)))**m_*sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Less(m, S(-1))))
rule85 = ReplacementRule(pattern85, lambda e2, e1, d1, x, b, m, c, f, a, d2, n : -b*c*n*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1)), x)/(f*(m + S(1))*sqrt(c*x + S(-1))*sqrt(c*x + S(1))) - c**S(2)*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*Int((f*x)**(m + S(2))*(a + b*acosh(c*x))**n/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/(f**S(2)*(m + S(1))*sqrt(c*x + S(-1))*sqrt(c*x + S(1))) + (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)/(f*(m + S(1))))
rubi.add(rule85)
pattern86 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n, p, m: RationalQ(m, n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Greater(p, S(0))), CustomConstraint(lambda m: Less(m, S(-1))))
rule86 = ReplacementRule(pattern86, lambda p, x, b, m, c, f, a, d, e, n : -b*c*d**IntPart(p)*n*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((f*x)**(m + S(1))*(a + b*asinh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(1))**(p + S(-1)/2), x)/(f*(m + S(1))) - S(2)*e*p*Int((f*x)**(m + S(2))*(a + b*asinh(c*x))**n*(d + e*x**S(2))**(p + S(-1)), x)/(f**S(2)*(m + S(1))) + (f*x)**(m + S(1))*(a + b*asinh(c*x))**n*(d + e*x**S(2))**p/(f*(m + S(1))))
rubi.add(rule86)
pattern87 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n, p, m: RationalQ(m, n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Greater(p, S(0))), CustomConstraint(lambda m: Less(m, S(-1))), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)))
rule87 = ReplacementRule(pattern87, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : -b*c*n*(-d1*d2)**(p + S(-1)/2)*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(-1))**(p + S(-1)/2), x)/(f*(m + S(1))*sqrt(c*x + S(-1))*sqrt(c*x + S(1))) - S(2)*e1*e2*p*Int((f*x)**(m + S(2))*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(-1))*(d2 + e2*x)**(p + S(-1)), x)/(f**S(2)*(m + S(1))) + (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*(d1 + e1*x)**p*(d2 + e2*x)**p/(f*(m + S(1))))
rubi.add(rule87)
pattern88 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Greater(p, S(0))), CustomConstraint(lambda m: Not(RationalQ(m) & Less(m, S(-1)))), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda n, m: RationalQ(m) | ZeroQ(n + S(-1))))
rule88 = ReplacementRule(pattern88, lambda p, x, b, m, c, f, a, d, e, n : -b*c*n*(-d)**p*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(-1)/2)*(c*x + S(1))**(p + S(-1)/2), x)/(f*(m + S(2)*p + S(1))) + S(2)*d*p*Int((f*x)**m*(a + b*acosh(c*x))**n*(d + e*x**S(2))**(p + S(-1)), x)/(m + S(2)*p + S(1)) + (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*(d + e*x**S(2))**p/(f*(m + S(2)*p + S(1))))
rubi.add(rule88)
pattern89 = Pattern(Integral((x_*WC('f', S(1)))**m_*sqrt(d_ + x_**S(2)*WC('e', S(1)))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Not(RationalQ(m) & Less(m, S(-1)))), CustomConstraint(lambda n, m: RationalQ(m) | ZeroQ(n + S(-1))))
rule89 = ReplacementRule(pattern89, lambda x, b, m, c, f, a, d, e, n : -b*c*n*sqrt(d + e*x**S(2))*Int((f*x)**(m + S(1))*(a + b*asinh(c*x))**(n + S(-1)), x)/(f*(m + S(2))*sqrt(c**S(2)*x**S(2) + S(1))) + sqrt(d + e*x**S(2))*Int((f*x)**m*(a + b*asinh(c*x))**n/sqrt(c**S(2)*x**S(2) + S(1)), x)/((m + S(2))*sqrt(c**S(2)*x**S(2) + S(1))) + (f*x)**(m + S(1))*(a + b*asinh(c*x))**n*sqrt(d + e*x**S(2))/(f*(m + S(2))))
rubi.add(rule89)
pattern90 = Pattern(Integral((x_*WC('f', S(1)))**m_*sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Not(RationalQ(m) & Less(m, S(-1)))), CustomConstraint(lambda n, m: RationalQ(m) | ZeroQ(n + S(-1))))
rule90 = ReplacementRule(pattern90, lambda e2, e1, d1, x, b, m, c, f, a, d2, n : -b*c*n*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1)), x)/(f*(m + S(2))*sqrt(c*x + S(-1))*sqrt(c*x + S(1))) - sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*Int((f*x)**m*(a + b*acosh(c*x))**n/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/((m + S(2))*sqrt(c*x + S(-1))*sqrt(c*x + S(1))) + (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)/(f*(m + S(2))))
rubi.add(rule90)
pattern91 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Greater(p, S(0))), CustomConstraint(lambda m: Not(RationalQ(m) & Less(m, S(-1)))), CustomConstraint(lambda n, m: RationalQ(m) | ZeroQ(n + S(-1))))
rule91 = ReplacementRule(pattern91, lambda p, x, b, m, c, f, a, d, e, n : -b*c*d**IntPart(p)*n*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((f*x)**(m + S(1))*(a + b*asinh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(1))**(p + S(-1)/2), x)/(f*(m + S(2)*p + S(1))) + S(2)*d*p*Int((f*x)**m*(a + b*asinh(c*x))**n*(d + e*x**S(2))**(p + S(-1)), x)/(m + S(2)*p + S(1)) + (f*x)**(m + S(1))*(a + b*asinh(c*x))**n*(d + e*x**S(2))**p/(f*(m + S(2)*p + S(1))))
rubi.add(rule91)
pattern92 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Greater(p, S(0))), CustomConstraint(lambda m: Not(RationalQ(m) & Less(m, S(-1)))), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)), CustomConstraint(lambda n, m: RationalQ(m) | ZeroQ(n + S(-1))))
rule92 = ReplacementRule(pattern92, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : -b*c*n*(-d1*d2)**(p + S(-1)/2)*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(-1))**(p + S(-1)/2), x)/(f*sqrt(c*x + S(-1))*sqrt(c*x + S(1))*(m + S(2)*p + S(1))) + S(2)*d1*d2*p*Int((f*x)**m*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(-1))*(d2 + e2*x)**(p + S(-1)), x)/(m + S(2)*p + S(1)) + (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*(d1 + e1*x)**p*(d2 + e2*x)**p/(f*(m + S(2)*p + S(1))))
rubi.add(rule92)
pattern93 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Less(m, S(-1))), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: IntegerQ(p)))
rule93 = ReplacementRule(pattern93, lambda p, x, b, m, c, f, a, d, e, n : b*c*n*(-d)**p*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(f*(m + S(1))) + c**S(2)*(m + S(2)*p + S(3))*Int((f*x)**(m + S(2))*(a + b*acosh(c*x))**n*(d + e*x**S(2))**p, x)/(f**S(2)*(m + S(1))) + (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(d*f*(m + S(1))))
rubi.add(rule93)
pattern94 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Less(m, S(-1))), CustomConstraint(lambda m: IntegerQ(m)))
rule94 = ReplacementRule(pattern94, lambda p, x, b, m, c, f, a, d, e, n : -b*c*d**IntPart(p)*n*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((f*x)**(m + S(1))*(a + b*asinh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(1))**(p + S(1)/2), x)/(f*(m + S(1))) - c**S(2)*(m + S(2)*p + S(3))*Int((f*x)**(m + S(2))*(a + b*asinh(c*x))**n*(d + e*x**S(2))**p, x)/(f**S(2)*(m + S(1))) + (f*x)**(m + S(1))*(a + b*asinh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(d*f*(m + S(1))))
rubi.add(rule94)
pattern95 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Less(m, S(-1))), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)))
rule95 = ReplacementRule(pattern95, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : b*c*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(-1))**(p + S(1)/2), x)/(f*(m + S(1))) + c**S(2)*(m + S(2)*p + S(3))*Int((f*x)**(m + S(2))*(a + b*acosh(c*x))**n*(d1 + e1*x)**p*(d2 + e2*x)**p, x)/(f**S(2)*(m + S(1))) + (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(d1*d2*f*(m + S(1))))
rubi.add(rule95)
pattern96 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Less(m, S(-1))), CustomConstraint(lambda m: IntegerQ(m)))
rule96 = ReplacementRule(pattern96, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : b*c*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(f*(m + S(1))) + c**S(2)*(m + S(2)*p + S(3))*Int((f*x)**(m + S(2))*(a + b*acosh(c*x))**n*(d1 + e1*x)**p*(d2 + e2*x)**p, x)/(f**S(2)*(m + S(1))) + (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(d1*d2*f*(m + S(1))))
rubi.add(rule96)
pattern97 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda m: Greater(m, S(1))), CustomConstraint(lambda p: IntegerQ(p)))
rule97 = ReplacementRule(pattern97, lambda p, x, b, m, c, f, a, d, e, n : -b*f*n*(-d)**p*Int((f*x)**(m + S(-1))*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(S(2)*c*(p + S(1))) - f**S(2)*(m + S(-1))*Int((f*x)**(m + S(-2))*(a + b*acosh(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/(S(2)*e*(p + S(1))) + f*(f*x)**(m + S(-1))*(a + b*acosh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(S(2)*e*(p + S(1))))
rubi.add(rule97)
pattern98 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n, p, m: RationalQ(m, n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda m: Greater(m, S(1))))
rule98 = ReplacementRule(pattern98, lambda p, x, b, m, c, f, a, d, e, n : -b*d**IntPart(p)*f*n*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((f*x)**(m + S(-1))*(a + b*asinh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(1))**(p + S(1)/2), x)/(S(2)*c*(p + S(1))) - f**S(2)*(m + S(-1))*Int((f*x)**(m + S(-2))*(a + b*asinh(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/(S(2)*e*(p + S(1))) + f*(f*x)**(m + S(-1))*(a + b*asinh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(S(2)*e*(p + S(1))))
rubi.add(rule98)
pattern99 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n, p, m: RationalQ(m, n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda m: Greater(m, S(1))), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)))
rule99 = ReplacementRule(pattern99, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : -b*f*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**(m + S(-1))*(a + b*acosh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(-1))**(p + S(1)/2), x)/(S(2)*c*(p + S(1))) - f**S(2)*(m + S(-1))*Int((f*x)**(m + S(-2))*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1)), x)/(S(2)*e1*e2*(p + S(1))) + f*(f*x)**(m + S(-1))*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(S(2)*e1*e2*(p + S(1))))
rubi.add(rule99)
pattern100 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n, p, m: RationalQ(m, n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda p: Not(IntegerQ(p))), CustomConstraint(lambda m: Greater(m, S(1))))
rule100 = ReplacementRule(pattern100, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : -b*f*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**(m + S(-1))*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(S(2)*c*(p + S(1))) - f**S(2)*(m + S(-1))*Int((f*x)**(m + S(-2))*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1)), x)/(S(2)*e1*e2*(p + S(1))) + f*(f*x)**(m + S(-1))*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(S(2)*e1*e2*(p + S(1))))
rubi.add(rule100)
pattern101 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda m: Not(RationalQ(m) & Greater(m, S(1)))), CustomConstraint(lambda p: IntegerQ(p)))
rule101 = ReplacementRule(pattern101, lambda p, x, b, m, c, f, a, d, e, n : -b*c*n*(-d)**p*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(S(2)*f*(p + S(1))) + (m + S(2)*p + S(3))*Int((f*x)**m*(a + b*acosh(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/(S(2)*d*(p + S(1))) - (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(S(2)*d*f*(p + S(1))))
rubi.add(rule101)
pattern102 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda m: Not(RationalQ(m) & Greater(m, S(1)))), CustomConstraint(lambda n, p, m: IntegerQ(m) | IntegerQ(p) | Equal(n, S(1))))
rule102 = ReplacementRule(pattern102, lambda p, x, b, m, c, f, a, d, e, n : b*c*d**IntPart(p)*n*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((f*x)**(m + S(1))*(a + b*asinh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(1))**(p + S(1)/2), x)/(S(2)*f*(p + S(1))) + (m + S(2)*p + S(3))*Int((f*x)**m*(a + b*asinh(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/(S(2)*d*(p + S(1))) - (f*x)**(m + S(1))*(a + b*asinh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(S(2)*d*f*(p + S(1))))
rubi.add(rule102)
pattern103 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda m: Not(RationalQ(m) & Greater(m, S(1)))), CustomConstraint(lambda n, m: IntegerQ(m) | Equal(n, S(1))), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)))
rule103 = ReplacementRule(pattern103, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : -b*c*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(-1))**(p + S(1)/2), x)/(S(2)*f*(p + S(1))) + (m + S(2)*p + S(3))*Int((f*x)**m*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1)), x)/(S(2)*d1*d2*(p + S(1))) - (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(S(2)*d1*d2*f*(p + S(1))))
rubi.add(rule103)
pattern104 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda m: Not(RationalQ(m) & Greater(m, S(1)))), CustomConstraint(lambda n, p, m: IntegerQ(m) | IntegerQ(p) | Equal(n, S(1))))
rule104 = ReplacementRule(pattern104, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : -b*c*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(S(2)*f*(p + S(1))) + (m + S(2)*p + S(3))*Int((f*x)**m*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1)), x)/(S(2)*d1*d2*(p + S(1))) - (f*x)**(m + S(1))*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(S(2)*d1*d2*f*(p + S(1))))
rubi.add(rule104)
pattern105 = Pattern(Integral((x_*WC('f', S(1)))**m_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Greater(m, S(1))), CustomConstraint(lambda m: IntegerQ(m)))
rule105 = ReplacementRule(pattern105, lambda x, b, m, c, f, a, d, e, n : -b*f*n*sqrt(c**S(2)*x**S(2) + S(1))*Int((f*x)**(m + S(-1))*(a + b*asinh(c*x))**(n + S(-1)), x)/(c*m*sqrt(d + e*x**S(2))) + f*(f*x)**(m + S(-1))*(a + b*asinh(c*x))**n*sqrt(d + e*x**S(2))/(e*m) - f**S(2)*(m + S(-1))*Int((f*x)**(m + S(-2))*(a + b*asinh(c*x))**n/sqrt(d + e*x**S(2)), x)/(c**S(2)*m))
rubi.add(rule105)
pattern106 = Pattern(Integral((x_*WC('f', S(1)))**m_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))/(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Greater(m, S(1))), CustomConstraint(lambda m: IntegerQ(m)))
rule106 = ReplacementRule(pattern106, lambda e2, e1, d1, x, b, m, c, f, a, d2, n : b*f*n*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*Int((f*x)**(m + S(-1))*(a + b*acosh(c*x))**(n + S(-1)), x)/(c*d1*d2*m*sqrt(c*x + S(-1))*sqrt(c*x + S(1))) + f*(f*x)**(m + S(-1))*(a + b*acosh(c*x))**n*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)/(e1*e2*m) + f**S(2)*(m + S(-1))*Int((f*x)**(m + S(-2))*(a + b*acosh(c*x))**n/(sqrt(d1 + e1*x)*sqrt(d2 + e2*x)), x)/(c**S(2)*m))
rubi.add(rule106)
pattern107 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda d: PositiveQ(d)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: IntegerQ(m)))
rule107 = ReplacementRule(pattern107, lambda x, b, m, c, a, d, e, n : c**(-m + S(-1))*Subst(Int((a + b*x)**n*sinh(x)**m, x), x, asinh(c*x))/sqrt(d))
rubi.add(rule107)
pattern108 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))/(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), CustomConstraint(lambda m: IntegerQ(m)))
rule108 = ReplacementRule(pattern108, lambda e2, e1, d1, x, b, m, c, a, d2, n : c**(-m + S(-1))*Subst(Int((a + b*x)**n*Cosh(x)**m, x), x, acosh(c*x))/sqrt(-d1*d2))
rubi.add(rule108)
pattern109 = Pattern(Integral((x_*WC('f', S(1)))**m_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda d: PositiveQ(d)), CustomConstraint(lambda m: Not(IntegerQ(m))))
rule109 = ReplacementRule(pattern109, lambda x, b, m, c, f, a, d, e : -b*c*(f*x)**(m + S(2))*HypergeometricPFQ(List(S(1), m/S(2) + S(1), m/S(2) + S(1)), List(m/S(2) + S(3)/2, m/S(2) + S(2)), -c**S(2)*x**S(2))/(sqrt(d)*f**S(2)*(m + S(1))*(m + S(2))) + (f*x)**(m + S(1))*(a + b*asinh(c*x))*Hypergeometric2F1(S(1)/2, m/S(2) + S(1)/2, m/S(2) + S(3)/2, -c**S(2)*x**S(2))/(sqrt(d)*f*(m + S(1))))
rubi.add(rule109)
pattern110 = Pattern(Integral((x_*WC('f', S(1)))**m_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))/(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), CustomConstraint(lambda m: Not(IntegerQ(m))))
rule110 = ReplacementRule(pattern110, lambda e2, e1, d1, x, b, m, c, f, a, d2 : b*c*(f*x)**(m + S(2))*HypergeometricPFQ(List(S(1), m/S(2) + S(1), m/S(2) + S(1)), List(m/S(2) + S(3)/2, m/S(2) + S(2)), c**S(2)*x**S(2))/(f**S(2)*sqrt(-d1*d2)*(m + S(1))*(m + S(2))) + (f*x)**(m + S(1))*(a + b*acosh(c*x))*sqrt(-c**S(2)*x**S(2) + S(1))*Hypergeometric2F1(S(1)/2, m/S(2) + S(1)/2, m/S(2) + S(3)/2, c**S(2)*x**S(2))/(f*sqrt(d1 + e1*x)*sqrt(d2 + e2*x)*(m + S(1))))
rubi.add(rule110)
pattern111 = Pattern(Integral((x_*WC('f', S(1)))**m_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda d: Not(PositiveQ(d))), CustomConstraint(lambda n, m: IntegerQ(m) | Equal(n, S(1))))
rule111 = ReplacementRule(pattern111, lambda x, b, m, c, f, a, d, e, n : sqrt(c**S(2)*x**S(2) + S(1))*Int((f*x)**m*(a + b*asinh(c*x))**n/sqrt(c**S(2)*x**S(2) + S(1)), x)/sqrt(d + e*x**S(2)))
rubi.add(rule111)
pattern112 = Pattern(Integral((x_*WC('f', S(1)))**m_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))/(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda d2, d1: Not(NegativeQ(d2) & PositiveQ(d1))), CustomConstraint(lambda n, m: IntegerQ(m) | Equal(n, S(1))))
rule112 = ReplacementRule(pattern112, lambda e2, e1, d1, x, b, m, c, f, a, d2, n : sqrt(c*x + S(-1))*sqrt(c*x + S(1))*Int((f*x)**m*(a + b*acosh(c*x))**n/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/(sqrt(d1 + e1*x)*sqrt(d2 + e2*x)))
rubi.add(rule112)
pattern113 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Greater(m, S(1))), CustomConstraint(lambda p, m: NonzeroQ(m + S(2)*p + S(1))), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda m: IntegerQ(m)))
rule113 = ReplacementRule(pattern113, lambda p, x, b, m, c, f, a, d, e, n : -b*f*n*(-d)**p*Int((f*x)**(m + S(-1))*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(c*(m + S(2)*p + S(1))) + f*(f*x)**(m + S(-1))*(a + b*acosh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(e*(m + S(2)*p + S(1))) + f**S(2)*(m + S(-1))*Int((f*x)**(m + S(-2))*(a + b*acosh(c*x))**n*(d + e*x**S(2))**p, x)/(c**S(2)*(m + S(2)*p + S(1))))
rubi.add(rule113)
pattern114 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Greater(m, S(1))), CustomConstraint(lambda p, m: NonzeroQ(m + S(2)*p + S(1))), CustomConstraint(lambda m: IntegerQ(m)))
rule114 = ReplacementRule(pattern114, lambda p, x, b, m, c, f, a, d, e, n : -b*d**IntPart(p)*f*n*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((f*x)**(m + S(-1))*(a + b*asinh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(1))**(p + S(1)/2), x)/(c*(m + S(2)*p + S(1))) + f*(f*x)**(m + S(-1))*(a + b*asinh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(e*(m + S(2)*p + S(1))) - f**S(2)*(m + S(-1))*Int((f*x)**(m + S(-2))*(a + b*asinh(c*x))**n*(d + e*x**S(2))**p, x)/(c**S(2)*(m + S(2)*p + S(1))))
rubi.add(rule114)
pattern115 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Greater(m, S(1))), CustomConstraint(lambda p, m: NonzeroQ(m + S(2)*p + S(1))), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)))
rule115 = ReplacementRule(pattern115, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : -b*f*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**(m + S(-1))*(a + b*acosh(c*x))**(n + S(-1))*(c**S(2)*x**S(2) + S(-1))**(p + S(1)/2), x)/(c*(m + S(2)*p + S(1))) + f*(f*x)**(m + S(-1))*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(e1*e2*(m + S(2)*p + S(1))) + f**S(2)*(m + S(-1))*Int((f*x)**(m + S(-2))*(a + b*acosh(c*x))**n*(d1 + e1*x)**p*(d2 + e2*x)**p, x)/(c**S(2)*(m + S(2)*p + S(1))))
rubi.add(rule115)
pattern116 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Greater(m, S(1))), CustomConstraint(lambda p, m: NonzeroQ(m + S(2)*p + S(1))), CustomConstraint(lambda m: IntegerQ(m)))
rule116 = ReplacementRule(pattern116, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : -b*f*n*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**(m + S(-1))*(a + b*acosh(c*x))**(n + S(-1))*(c*x + S(-1))**(p + S(1)/2)*(c*x + S(1))**(p + S(1)/2), x)/(c*(m + S(2)*p + S(1))) + f*(f*x)**(m + S(-1))*(a + b*acosh(c*x))**n*(d1 + e1*x)**(p + S(1))*(d2 + e2*x)**(p + S(1))/(e1*e2*(m + S(2)*p + S(1))) + f**S(2)*(m + S(-1))*Int((f*x)**(m + S(-2))*(a + b*acosh(c*x))**n*(d1 + e1*x)**p*(d2 + e2*x)**p, x)/(c**S(2)*(m + S(2)*p + S(1))))
rubi.add(rule116)
pattern117 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(1))), CustomConstraint(lambda p: IntegerQ(p)))
rule117 = ReplacementRule(pattern117, lambda p, x, m, b, c, f, a, d, e, n : f*m*(-d)**p*Int((f*x)**(m + S(-1))*(a + b*acosh(c*x))**(n + S(1))*(c*x + S(-1))**(p + S(-1)/2)*(c*x + S(1))**(p + S(-1)/2), x)/(b*c*(n + S(1))) + (f*x)**m*(a + b*acosh(c*x))**(n + S(1))*(d + e*x**S(2))**p*sqrt(c*x + S(-1))*sqrt(c*x + S(1))/(b*c*(n + S(1))))
rubi.add(rule117)
pattern118 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(1))))
rule118 = ReplacementRule(pattern118, lambda p, x, m, b, c, f, a, d, e, n : -d**IntPart(p)*f*m*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((f*x)**(m + S(-1))*(a + b*asinh(c*x))**(n + S(1))*(c**S(2)*x**S(2) + S(1))**(p + S(-1)/2), x)/(b*c*(n + S(1))) + (f*x)**m*(a + b*asinh(c*x))**(n + S(1))*(d + e*x**S(2))**p*sqrt(c**S(2)*x**S(2) + S(1))/(b*c*(n + S(1))))
rubi.add(rule118)
pattern119 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(1))), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)))
rule119 = ReplacementRule(pattern119, lambda p, e2, e1, d1, x, m, b, c, f, a, d2, n : f*m*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**(m + S(-1))*(a + b*acosh(c*x))**(n + S(1))*(c**S(2)*x**S(2) + S(-1))**(p + S(-1)/2), x)/(b*c*(n + S(1))) + (f*x)**m*(a + b*acosh(c*x))**(n + S(1))*(d1 + e1*x)**p*(d2 + e2*x)**p*sqrt(c*x + S(-1))*sqrt(c*x + S(1))/(b*c*(n + S(1))))
rubi.add(rule119)
pattern120 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(1))))
rule120 = ReplacementRule(pattern120, lambda p, e2, e1, d1, x, m, b, c, f, a, d2, n : f*m*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**(m + S(-1))*(a + b*acosh(c*x))**(n + S(1))*(c*x + S(-1))**(p + S(-1)/2)*(c*x + S(1))**(p + S(-1)/2), x)/(b*c*(n + S(1))) + (f*x)**m*(a + b*acosh(c*x))**(n + S(1))*(d1 + e1*x)**p*(d2 + e2*x)**p*sqrt(c*x + S(-1))*sqrt(c*x + S(1))/(b*c*(n + S(1))))
rubi.add(rule120)
pattern121 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda d: PositiveQ(d)))
rule121 = ReplacementRule(pattern121, lambda x, m, b, c, f, a, d, e, n : -f*m*Int((f*x)**(m + S(-1))*(a + b*asinh(c*x))**(n + S(1)), x)/(b*c*sqrt(d)*(n + S(1))) + (f*x)**m*(a + b*asinh(c*x))**(n + S(1))/(b*c*sqrt(d)*(n + S(1))))
rubi.add(rule121)
pattern122 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_/(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)))
rule122 = ReplacementRule(pattern122, lambda e2, e1, d1, x, m, b, c, f, a, d2, n : -f*m*Int((f*x)**(m + S(-1))*(a + b*acosh(c*x))**(n + S(1)), x)/(b*c*sqrt(-d1*d2)*(n + S(1))) + (f*x)**m*(a + b*acosh(c*x))**(n + S(1))/(b*c*sqrt(-d1*d2)*(n + S(1))))
rubi.add(rule122)
pattern123 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda d: Not(PositiveQ(d))))
rule123 = ReplacementRule(pattern123, lambda x, m, b, c, f, a, d, e, n : sqrt(c**S(2)*x**S(2) + S(1))*Int((f*x)**m*(a + b*asinh(c*x))**n/sqrt(c**S(2)*x**S(2) + S(1)), x)/sqrt(d + e*x**S(2)))
rubi.add(rule123)
pattern124 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_/(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda d2, d1: Not(NegativeQ(d2) & PositiveQ(d1))))
rule124 = ReplacementRule(pattern124, lambda e2, e1, d1, x, m, b, c, f, a, d2, n : sqrt(c*x + S(-1))*sqrt(c*x + S(1))*Int((f*x)**m*(a + b*acosh(c*x))**n/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/(sqrt(d1 + e1*x)*sqrt(d2 + e2*x)))
rubi.add(rule124)
pattern125 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda m: Greater(m, S(-3))), CustomConstraint(lambda p: PositiveIntegerQ(p)))
rule125 = ReplacementRule(pattern125, lambda p, x, m, b, c, f, a, d, e, n : -c*(-d)**p*(m + S(2)*p + S(1))*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(1))*(c*x + S(-1))**(p + S(-1)/2)*(c*x + S(1))**(p + S(-1)/2), x)/(b*f*(n + S(1))) + f*m*(-d)**p*Int((f*x)**(m + S(-1))*(a + b*acosh(c*x))**(n + S(1))*(c*x + S(-1))**(p + S(-1)/2)*(c*x + S(1))**(p + S(-1)/2), x)/(b*c*(n + S(1))) + (f*x)**m*(a + b*acosh(c*x))**(n + S(1))*(d + e*x**S(2))**p*sqrt(c*x + S(-1))*sqrt(c*x + S(1))/(b*c*(n + S(1))))
rubi.add(rule125)
pattern126 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda m: Greater(m, S(-3))), CustomConstraint(lambda p: PositiveIntegerQ(S(2)*p)))
rule126 = ReplacementRule(pattern126, lambda p, x, m, b, c, f, a, d, e, n : -c*d**IntPart(p)*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*(m + S(2)*p + S(1))*Int((f*x)**(m + S(1))*(a + b*asinh(c*x))**(n + S(1))*(c**S(2)*x**S(2) + S(1))**(p + S(-1)/2), x)/(b*f*(n + S(1))) - d**IntPart(p)*f*m*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((f*x)**(m + S(-1))*(a + b*asinh(c*x))**(n + S(1))*(c**S(2)*x**S(2) + S(1))**(p + S(-1)/2), x)/(b*c*(n + S(1))) + (f*x)**m*(a + b*asinh(c*x))**(n + S(1))*(d + e*x**S(2))**p*sqrt(c**S(2)*x**S(2) + S(1))/(b*c*(n + S(1))))
rubi.add(rule126)
pattern127 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda m: Greater(m, S(-3))), CustomConstraint(lambda p: PositiveIntegerQ(p + S(1)/2)))
rule127 = ReplacementRule(pattern127, lambda p, e2, e1, d1, x, m, b, c, f, a, d2, n : -c*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*(m + S(2)*p + S(1))*Int((f*x)**(m + S(1))*(a + b*acosh(c*x))**(n + S(1))*(c**S(2)*x**S(2) + S(-1))**(p + S(-1)/2), x)/(b*f*(n + S(1))) + f*m*(-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**(m + S(-1))*(a + b*acosh(c*x))**(n + S(1))*(c**S(2)*x**S(2) + S(-1))**(p + S(-1)/2), x)/(b*c*(n + S(1))) + (f*x)**m*(a + b*acosh(c*x))**(n + S(1))*(d1 + e1*x)**p*(d2 + e2*x)**p*sqrt(c*x + S(-1))*sqrt(c*x + S(1))/(b*c*(n + S(1))))
rubi.add(rule127)
pattern128 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(S(2)*p)), CustomConstraint(lambda p: Greater(p, S(-1))), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda d, p: IntegerQ(p) | PositiveQ(d)))
rule128 = ReplacementRule(pattern128, lambda p, x, b, m, c, a, d, e, n : c**(-m + S(-1))*d**p*Subst(Int((a + b*x)**n*Cosh(x)**(S(2)*p + S(1))*sinh(x)**m, x), x, asinh(c*x)))
rubi.add(rule128)
pattern129 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p)), CustomConstraint(lambda m: PositiveIntegerQ(m)))
rule129 = ReplacementRule(pattern129, lambda p, x, b, m, c, a, d, e, n : c**(-m + S(-1))*(-d)**p*Subst(Int((a + b*x)**n*Cosh(x)**m*sinh(x)**(S(2)*p + S(1)), x), x, acosh(c*x)))
rubi.add(rule129)
pattern130 = Pattern(Integral(x_**WC('m', S(1))*(d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)), CustomConstraint(lambda p: Greater(p, S(-1))), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda d2, d1: NegativeQ(d2) & PositiveQ(d1)))
rule130 = ReplacementRule(pattern130, lambda p, e2, e1, d1, x, b, m, c, a, d2, n : c**(-m + S(-1))*(-d1*d2)**p*Subst(Int((a + b*x)**n*Cosh(x)**m*sinh(x)**(S(2)*p + S(1)), x), x, acosh(c*x)))
rubi.add(rule130)
pattern131 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(S(2)*p)), CustomConstraint(lambda p: Greater(p, S(-1))), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda d, p: Not(IntegerQ(p) | PositiveQ(d))))
rule131 = ReplacementRule(pattern131, lambda p, x, b, m, c, a, d, e, n : d**IntPart(p)*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int(x**m*(a + b*asinh(c*x))**n*(c**S(2)*x**S(2) + S(1))**p, x))
rubi.add(rule131)
pattern132 = Pattern(Integral(x_**WC('m', S(1))*(d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p: IntegerQ(S(2)*p)), CustomConstraint(lambda p: Greater(p, S(-1))), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda d2, p, d1: Not(IntegerQ(p) | (NegativeQ(d2) & PositiveQ(d1)))))
rule132 = ReplacementRule(pattern132, lambda p, e2, e1, d1, x, b, m, c, a, d2, n : (-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int(x**m*(a + b*acosh(c*x))**n*(c*x + S(-1))**p*(c*x + S(1))**p, x))
rubi.add(rule132)
pattern133 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda d: PositiveQ(d)), CustomConstraint(lambda p: PositiveIntegerQ(p + S(1)/2)), CustomConstraint(lambda m: Not(PositiveIntegerQ(m/S(2) + S(1)/2))), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda m: Less(S(-3), m, S(0))))
rule133 = ReplacementRule(pattern133, lambda p, x, b, m, c, f, a, d, e, n : Int(ExpandIntegrand((a + b*asinh(c*x))**n/sqrt(d + e*x**S(2)), (f*x)**m*(d + e*x**S(2))**(p + S(1)/2), x), x))
rubi.add(rule133)
pattern134 = Pattern(Integral((x_*WC('f', S(1)))**m_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), CustomConstraint(lambda p: PositiveIntegerQ(p + S(1)/2)), CustomConstraint(lambda m: Not(PositiveIntegerQ(m/S(2) + S(1)/2))), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda m: Less(S(-3), m, S(0))))
rule134 = ReplacementRule(pattern134, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : Int(ExpandIntegrand((a + b*acosh(c*x))**n/(sqrt(d1 + e1*x)*sqrt(d2 + e2*x)), (f*x)**m*(d1 + e1*x)**(p + S(1)/2)*(d2 + e2*x)**(p + S(1)/2), x), x))
rubi.add(rule134)
pattern135 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: NonzeroQ(c**S(2)*d + e)), CustomConstraint(lambda m: NonzeroQ(m + S(1))), CustomConstraint(lambda m: NonzeroQ(m + S(3))))
rule135 = ReplacementRule(pattern135, lambda x, m, b, c, f, a, d, e : -b*c*Int((f*x)**(m + S(1))*(d*(m + S(3)) + e*x**S(2)*(m + S(1)))/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/(f*(m + S(1))*(m + S(3))) + d*(f*x)**(m + S(1))*(a + b*acosh(c*x))/(f*(m + S(1))) + e*(f*x)**(m + S(3))*(a + b*acosh(c*x))/(f**S(3)*(m + S(3))))
rubi.add(rule135)
pattern136 = Pattern(Integral(x_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, d, e: NonzeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: NonzeroQ(p + S(1))))
rule136 = ReplacementRule(pattern136, lambda p, x, b, c, a, d, e : -b*c*Int((d + e*x**S(2))**(p + S(1))/sqrt(c**S(2)*x**S(2) + S(1)), x)/(S(2)*e*(p + S(1))) + (a + b*asinh(c*x))*(d + e*x**S(2))**(p + S(1))/(S(2)*e*(p + S(1))))
rubi.add(rule136)
pattern137 = Pattern(Integral(x_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: NonzeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: NonzeroQ(p + S(1))))
rule137 = ReplacementRule(pattern137, lambda p, x, b, c, a, d, e : -b*c*Int((d + e*x**S(2))**(p + S(1))/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/(S(2)*e*(p + S(1))) + (a + b*acosh(c*x))*(d + e*x**S(2))**(p + S(1))/(S(2)*e*(p + S(1))))
rubi.add(rule137)
pattern138 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d, e: NonzeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda p, m: Greater(p, S(0)) | (LessEqual(m + p, S(0)) & PositiveIntegerQ(m/S(2) + S(-1)/2))), )
def With138(p, x, m, b, c, f, a, d, e):
u = IntHide((f*x)**m*(d + e*x**S(2))**p, x)
return -b*c*Int(SimplifyIntegrand(u/sqrt(c**S(2)*x**S(2) + S(1)), x), x) + Dist(a + b*asinh(c*x), u, x)
rule138 = ReplacementRule(pattern138, lambda p, x, m, b, c, f, a, d, e : With138(p, x, m, b, c, f, a, d, e))
rubi.add(rule138)
pattern139 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: NonzeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda p, m: Greater(p, S(0)) | (LessEqual(m + p, S(0)) & PositiveIntegerQ(m/S(2) + S(-1)/2))), )
def With139(p, x, m, b, c, f, a, d, e):
u = IntHide((f*x)**m*(d + e*x**S(2))**p, x)
return -b*c*Int(SimplifyIntegrand(u/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x), x) + Dist(a + b*acosh(c*x), u, x)
rule139 = ReplacementRule(pattern139, lambda p, x, m, b, c, f, a, d, e : With139(p, x, m, b, c, f, a, d, e))
rubi.add(rule139)
pattern140 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, d, e: NonzeroQ(-c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda m: IntegerQ(m)))
rule140 = ReplacementRule(pattern140, lambda p, x, b, m, c, f, a, d, e, n : Int(ExpandIntegrand((a + b*asinh(c*x))**n, (f*x)**m*(d + e*x**S(2))**p, x), x))
rubi.add(rule140)
pattern141 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda c, e, d: NonzeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda m: IntegerQ(m)))
rule141 = ReplacementRule(pattern141, lambda p, x, b, m, c, f, a, d, e, n : Int(ExpandIntegrand((a + b*acosh(c*x))**n, (f*x)**m*(d + e*x**S(2))**p, x), x))
rubi.add(rule141)
pattern142 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule142 = ReplacementRule(pattern142, lambda p, x, b, m, c, f, a, d, e, n : Int((f*x)**m*(a + b*asinh(c*x))**n*(d + e*x**S(2))**p, x))
rubi.add(rule142)
pattern143 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda p: IntegerQ(p)))
rule143 = ReplacementRule(pattern143, lambda p, x, b, m, c, f, a, d, e, n : Int((f*x)**m*(a + b*acosh(c*x))**n*(d + e*x**S(2))**p, x))
rubi.add(rule143)
pattern144 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d1_ + x_*WC('e1', S(1)))**WC('p', S(1))*(d2_ + x_*WC('e2', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule144 = ReplacementRule(pattern144, lambda p, e2, e1, d1, x, b, m, c, f, a, d2, n : Int((f*x)**m*(a + b*acosh(c*x))**n*(d1 + e1*x)**p*(d2 + e2*x)**p, x))
rubi.add(rule144)
pattern145 = Pattern(Integral((x_*WC('h', S(1)))**WC('m', S(1))*(d_ + x_*WC('e', S(1)))**p_*(f_ + x_*WC('g', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda h, x: FreeQ(h, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda g, f, d, e: ZeroQ(d*g + e*f)), CustomConstraint(lambda g, c, f: ZeroQ(c**S(2)*f**S(2) + g**S(2))), CustomConstraint(lambda p: Not(IntegerQ(p))))
rule145 = ReplacementRule(pattern145, lambda p, h, x, b, m, g, c, f, a, d, e, n : (d + e*x)**FracPart(p)*(f + g*x)**FracPart(p)*(d*f + e*g*x**S(2))**(-FracPart(p))*Int((h*x)**m*(a + b*asinh(c*x))**n*(d*f + e*g*x**S(2))**p, x))
rubi.add(rule145)
pattern146 = Pattern(Integral((x_*WC('f', S(1)))**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: Not(IntegerQ(p))))
rule146 = ReplacementRule(pattern146, lambda p, x, b, m, c, f, a, d, e, n : (-d)**IntPart(p)*(d + e*x**S(2))**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((f*x)**m*(a + b*acosh(c*x))**n*(c*x + S(-1))**p*(c*x + S(1))**p, x))
rubi.add(rule146)
pattern147 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))/(x_*WC('e', S(1)) + WC('d', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule147 = ReplacementRule(pattern147, lambda x, b, c, a, d, e, n : Subst(Int((a + b*x)**n*Cosh(x)/(c*d + e*sinh(x)), x), x, asinh(c*x)))
rubi.add(rule147)
pattern148 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))/(x_*WC('e', S(1)) + WC('d', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule148 = ReplacementRule(pattern148, lambda x, b, c, a, d, e, n : Subst(Int((a + b*x)**n*sinh(x)/(c*d + e*Cosh(x)), x), x, acosh(c*x)))
rubi.add(rule148)
pattern149 = Pattern(Integral((x_*WC('e', S(1)) + WC('d', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule149 = ReplacementRule(pattern149, lambda x, b, m, c, a, d, e, n : -b*c*n*Int((a + b*asinh(c*x))**(n + S(-1))*(d + e*x)**(m + S(1))/sqrt(c**S(2)*x**S(2) + S(1)), x)/(e*(m + S(1))) + (a + b*asinh(c*x))**n*(d + e*x)**(m + S(1))/(e*(m + S(1))))
rubi.add(rule149)
pattern150 = Pattern(Integral((x_*WC('e', S(1)) + WC('d', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule150 = ReplacementRule(pattern150, lambda x, b, m, c, a, d, e, n : -b*c*n*Int((a + b*acosh(c*x))**(n + S(-1))*(d + e*x)**(m + S(1))/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x)/(e*(m + S(1))) + (a + b*acosh(c*x))**n*(d + e*x)**(m + S(1))/(e*(m + S(1))))
rubi.add(rule150)
pattern151 = Pattern(Integral((d_ + x_*WC('e', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))))
rule151 = ReplacementRule(pattern151, lambda x, b, m, c, a, d, e, n : Int(ExpandIntegrand((a + b*asinh(c*x))**n*(d + e*x)**m, x), x))
rubi.add(rule151)
pattern152 = Pattern(Integral((d_ + x_*WC('e', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))))
rule152 = ReplacementRule(pattern152, lambda x, b, m, c, a, d, e, n : Int(ExpandIntegrand((a + b*acosh(c*x))**n*(d + e*x)**m, x), x))
rubi.add(rule152)
pattern153 = Pattern(Integral((x_*WC('e', S(1)) + WC('d', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)))
rule153 = ReplacementRule(pattern153, lambda x, b, m, c, a, d, e, n : c**(-m + S(-1))*Subst(Int((a + b*x)**n*(c*d + e*sinh(x))**m*Cosh(x), x), x, asinh(c*x)))
rubi.add(rule153)
pattern154 = Pattern(Integral((x_*WC('e', S(1)) + WC('d', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)))
rule154 = ReplacementRule(pattern154, lambda x, b, m, c, a, d, e, n : c**(-m + S(-1))*Subst(Int((a + b*x)**n*(c*d + e*Cosh(x))**m*sinh(x), x), x, acosh(c*x)))
rubi.add(rule154)
pattern155 = Pattern(Integral(Px_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda x, Px: PolynomialQ(Px, x)), )
def With155(Px, x, b, c, a):
u = IntHide(Px, x)
return -b*c*Int(SimplifyIntegrand(u/sqrt(c**S(2)*x**S(2) + S(1)), x), x) + Dist(a + b*asinh(c*x), u, x)
rule155 = ReplacementRule(pattern155, lambda Px, x, b, c, a : With155(Px, x, b, c, a))
rubi.add(rule155)
pattern156 = Pattern(Integral(Px_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda x, Px: PolynomialQ(Px, x)), )
def With156(Px, x, b, c, a):
u = IntHide(Px, x)
return -b*c*sqrt(-c**S(2)*x**S(2) + S(1))*Int(SimplifyIntegrand(u/sqrt(-c**S(2)*x**S(2) + S(1)), x), x)/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))) + Dist(a + b*acosh(c*x), u, x)
rule156 = ReplacementRule(pattern156, lambda Px, x, b, c, a : With156(Px, x, b, c, a))
rubi.add(rule156)
pattern157 = Pattern(Integral(Px_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda x, Px: PolynomialQ(Px, x)))
rule157 = ReplacementRule(pattern157, lambda Px, x, b, c, a, n : Int(ExpandIntegrand(Px*(a + b*asinh(c*x))**n, x), x))
rubi.add(rule157)
pattern158 = Pattern(Integral(Px_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda x, Px: PolynomialQ(Px, x)))
rule158 = ReplacementRule(pattern158, lambda Px, x, b, c, a, n : Int(ExpandIntegrand(Px*(a + b*acosh(c*x))**n, x), x))
rubi.add(rule158)
pattern159 = Pattern(Integral(Px_*(x_*WC('e', S(1)) + WC('d', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda x, Px: PolynomialQ(Px, x)), )
def With159(Px, x, b, m, c, a, d, e):
u = IntHide(Px*(d + e*x)**m, x)
return -b*c*Int(SimplifyIntegrand(u/sqrt(c**S(2)*x**S(2) + S(1)), x), x) + Dist(a + b*asinh(c*x), u, x)
rule159 = ReplacementRule(pattern159, lambda Px, x, b, m, c, a, d, e : With159(Px, x, b, m, c, a, d, e))
rubi.add(rule159)
pattern160 = Pattern(Integral(Px_*(x_*WC('e', S(1)) + WC('d', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda x, Px: PolynomialQ(Px, x)), )
def With160(Px, x, b, m, c, a, d, e):
u = IntHide(Px*(d + e*x)**m, x)
return -b*c*sqrt(-c**S(2)*x**S(2) + S(1))*Int(SimplifyIntegrand(u/sqrt(-c**S(2)*x**S(2) + S(1)), x), x)/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))) + Dist(a + b*acosh(c*x), u, x)
rule160 = ReplacementRule(pattern160, lambda Px, x, b, m, c, a, d, e : With160(Px, x, b, m, c, a, d, e))
rubi.add(rule160)
pattern161 = Pattern(Integral((d_ + x_*WC('e', S(1)))**m_*(x_*WC('g', S(1)) + WC('f', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda p, n: PositiveIntegerQ(n, p)), CustomConstraint(lambda m: NegativeIntegerQ(m)), CustomConstraint(lambda p, m: Less(m + p + S(1), S(0))), )
def With161(p, x, b, m, g, c, f, a, d, e, n):
u = IntHide((d + e*x)**m*(f + g*x)**p, x)
return -b*c*n*Int(SimplifyIntegrand(u*(a + b*asinh(c*x))**(n + S(-1))/sqrt(c**S(2)*x**S(2) + S(1)), x), x) + Dist((a + b*asinh(c*x))**n, u, x)
rule161 = ReplacementRule(pattern161, lambda p, x, b, m, g, c, f, a, d, e, n : With161(p, x, b, m, g, c, f, a, d, e, n))
rubi.add(rule161)
pattern162 = Pattern(Integral((d_ + x_*WC('e', S(1)))**m_*(x_*WC('g', S(1)) + WC('f', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda p, n: PositiveIntegerQ(n, p)), CustomConstraint(lambda m: NegativeIntegerQ(m)), CustomConstraint(lambda p, m: Less(m + p + S(1), S(0))), )
def With162(p, x, b, m, g, c, f, a, d, e, n):
u = IntHide((d + e*x)**m*(f + g*x)**p, x)
return -b*c*n*Int(SimplifyIntegrand(u*(a + b*acosh(c*x))**(n + S(-1))/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x), x) + Dist((a + b*acosh(c*x))**n, u, x)
rule162 = ReplacementRule(pattern162, lambda p, x, b, m, g, c, f, a, d, e, n : With162(p, x, b, m, g, c, f, a, d, e, n))
rubi.add(rule162)
pattern163 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_*(x_**S(2)*WC('h', S(1)) + x_*WC('g', S(1)) + WC('f', S(0)))**WC('p', S(1))/(d_ + x_*WC('e', S(1)))**S(2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda h, x: FreeQ(h, x)), CustomConstraint(lambda p, n: PositiveIntegerQ(n, p)), CustomConstraint(lambda g, d, e, h: ZeroQ(-S(2)*d*h + e*g)), )
def With163(p, h, x, b, g, c, f, a, d, e, n):
u = IntHide((f + g*x + h*x**S(2))**p/(d + e*x)**S(2), x)
return -b*c*n*Int(SimplifyIntegrand(u*(a + b*asinh(c*x))**(n + S(-1))/sqrt(c**S(2)*x**S(2) + S(1)), x), x) + Dist((a + b*asinh(c*x))**n, u, x)
rule163 = ReplacementRule(pattern163, lambda p, h, x, b, g, c, f, a, d, e, n : With163(p, h, x, b, g, c, f, a, d, e, n))
rubi.add(rule163)
pattern164 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_*(x_**S(2)*WC('h', S(1)) + x_*WC('g', S(1)) + WC('f', S(0)))**WC('p', S(1))/(d_ + x_*WC('e', S(1)))**S(2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda h, x: FreeQ(h, x)), CustomConstraint(lambda p, n: PositiveIntegerQ(n, p)), CustomConstraint(lambda g, d, e, h: ZeroQ(-S(2)*d*h + e*g)), )
def With164(p, h, x, b, g, c, f, a, d, e, n):
u = IntHide((f + g*x + h*x**S(2))**p/(d + e*x)**S(2), x)
return -b*c*n*Int(SimplifyIntegrand(u*(a + b*acosh(c*x))**(n + S(-1))/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), x), x) + Dist((a + b*acosh(c*x))**n, u, x)
rule164 = ReplacementRule(pattern164, lambda p, h, x, b, g, c, f, a, d, e, n : With164(p, h, x, b, g, c, f, a, d, e, n))
rubi.add(rule164)
pattern165 = Pattern(Integral(Px_*(d_ + x_*WC('e', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda x, Px: PolynomialQ(Px, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: IntegerQ(m)))
rule165 = ReplacementRule(pattern165, lambda Px, x, b, m, c, a, d, e, n : Int(ExpandIntegrand(Px*(a + b*asinh(c*x))**n*(d + e*x)**m, x), x))
rubi.add(rule165)
pattern166 = Pattern(Integral(Px_*(d_ + x_*WC('e', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda x, Px: PolynomialQ(Px, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: IntegerQ(m)))
rule166 = ReplacementRule(pattern166, lambda Px, x, b, m, c, a, d, e, n : Int(ExpandIntegrand(Px*(a + b*acosh(c*x))**n*(d + e*x)**m, x), x))
rubi.add(rule166)
pattern167 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: NegativeIntegerQ(p + S(1)/2)), CustomConstraint(lambda d: PositiveQ(d)), CustomConstraint(lambda m: Greater(m, S(0))), CustomConstraint(lambda p, m: Greater(m, S(3)) | Less(m, -S(2)*p + S(-1))), )
def With167(p, x, b, m, g, c, f, a, d, e):
u = IntHide((d + e*x**S(2))**p*(f + g*x)**m, x)
return -b*c*Int(Dist(1/sqrt(c**S(2)*x**S(2) + S(1)), u, x), x) + Dist(a + b*asinh(c*x), u, x)
rule167 = ReplacementRule(pattern167, lambda p, x, b, m, g, c, f, a, d, e : With167(p, x, b, m, g, c, f, a, d, e))
rubi.add(rule167)
pattern168 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: NegativeIntegerQ(p + S(1)/2)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), CustomConstraint(lambda m: Greater(m, S(0))), CustomConstraint(lambda p, m: Greater(m, S(3)) | Less(m, -S(2)*p + S(-1))), )
def With168(p, e2, e1, d1, x, b, m, g, c, f, a, d2):
u = IntHide((d1 + e1*x)**p*(d2 + e2*x)**p*(f + g*x)**m, x)
return -b*c*Int(Dist(S(1)/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), u, x), x) + Dist(a + b*acosh(c*x), u, x)
rule168 = ReplacementRule(pattern168, lambda p, e2, e1, d1, x, b, m, g, c, f, a, d2 : With168(p, e2, e1, d1, x, b, m, g, c, f, a, d2))
rubi.add(rule168)
pattern169 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)), CustomConstraint(lambda d: PositiveQ(d)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: Greater(m, S(0))), CustomConstraint(lambda p, n, m: Equal(m, S(1)) | Greater(p, S(0)) | (Equal(m, S(2)) & Less(p, S(-2))) | (Equal(n, S(1)) & Greater(p, S(-1)))))
rule169 = ReplacementRule(pattern169, lambda p, x, b, m, g, c, f, a, d, e, n : Int(ExpandIntegrand((a + b*asinh(c*x))**n*(d + e*x**S(2))**p, (f + g*x)**m, x), x))
rubi.add(rule169)
pattern170 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: Greater(m, S(0))), CustomConstraint(lambda p, n, m: Equal(m, S(1)) | Greater(p, S(0)) | (Equal(m, S(2)) & Less(p, S(-2))) | (Equal(n, S(1)) & Greater(p, S(-1)))))
rule170 = ReplacementRule(pattern170, lambda p, e2, e1, d1, x, b, m, g, c, f, a, d2, n : Int(ExpandIntegrand((a + b*acosh(c*x))**n*(d1 + e1*x)**p*(d2 + e2*x)**p, (f + g*x)**m, x), x))
rubi.add(rule170)
pattern171 = Pattern(Integral(sqrt(d_ + x_**S(2)*WC('e', S(1)))*(x_*WC('g', S(1)) + WC('f', S(0)))**m_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda d: PositiveQ(d)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: Less(m, S(0))))
rule171 = ReplacementRule(pattern171, lambda x, b, m, g, c, f, a, d, e, n : (a + b*asinh(c*x))**(n + S(1))*(d + e*x**S(2))*(f + g*x)**m/(b*c*sqrt(d)*(n + S(1))) - Int((a + b*asinh(c*x))**(n + S(1))*(f + g*x)**(m + S(-1))*(d*g*m + S(2)*e*f*x + e*g*x**S(2)*(m + S(2))), x)/(b*c*sqrt(d)*(n + S(1))))
rubi.add(rule171)
pattern172 = Pattern(Integral(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))*(f_ + x_*WC('g', S(1)))**m_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: Less(m, S(0))))
rule172 = ReplacementRule(pattern172, lambda e2, e1, d1, x, b, m, g, c, f, a, d2, n : (a + b*acosh(c*x))**(n + S(1))*(f + g*x)**m*(d1*d2 + e1*e2*x**S(2))/(b*c*sqrt(-d1*d2)*(n + S(1))) - Int((a + b*acosh(c*x))**(n + S(1))*(f + g*x)**(m + S(-1))*(d1*d2*g*m + S(2)*e1*e2*f*x + e1*e2*g*x**S(2)*(m + S(2))), x)/(b*c*sqrt(-d1*d2)*(n + S(1))))
rubi.add(rule172)
pattern173 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: PositiveIntegerQ(p + S(1)/2)), CustomConstraint(lambda d: PositiveQ(d)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule173 = ReplacementRule(pattern173, lambda p, x, b, m, g, c, f, a, d, e, n : Int(ExpandIntegrand((a + b*asinh(c*x))**n*sqrt(d + e*x**S(2)), (d + e*x**S(2))**(p + S(-1)/2)*(f + g*x)**m, x), x))
rubi.add(rule173)
pattern174 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: PositiveIntegerQ(p + S(1)/2)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule174 = ReplacementRule(pattern174, lambda p, e2, e1, d1, x, b, m, g, c, f, a, d2, n : Int(ExpandIntegrand((a + b*acosh(c*x))**n*sqrt(d1 + e1*x)*sqrt(d2 + e2*x), (d1 + e1*x)**(p + S(-1)/2)*(d2 + e2*x)**(p + S(-1)/2)*(f + g*x)**m, x), x))
rubi.add(rule174)
pattern175 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: PositiveIntegerQ(p + S(-1)/2)), CustomConstraint(lambda d: PositiveQ(d)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: Less(m, S(0))))
rule175 = ReplacementRule(pattern175, lambda p, x, b, m, g, c, f, a, d, e, n : (a + b*asinh(c*x))**(n + S(1))*(d + e*x**S(2))**(p + S(1)/2)*(f + g*x)**m/(b*c*sqrt(d)*(n + S(1))) - Int(ExpandIntegrand((a + b*asinh(c*x))**(n + S(1))*(f + g*x)**(m + S(-1)), (d + e*x**S(2))**(p + S(-1)/2)*(d*g*m + e*f*x*(S(2)*p + S(1)) + e*g*x**S(2)*(m + S(2)*p + S(1))), x), x)/(b*c*sqrt(d)*(n + S(1))))
rubi.add(rule175)
pattern176 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: PositiveIntegerQ(p + S(-1)/2)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: Less(m, S(0))))
rule176 = ReplacementRule(pattern176, lambda p, e2, e1, d1, x, b, m, g, c, f, a, d2, n : (a + b*acosh(c*x))**(n + S(1))*(d1 + e1*x)**(p + S(1)/2)*(d2 + e2*x)**(p + S(1)/2)*(f + g*x)**m/(b*c*sqrt(-d1*d2)*(n + S(1))) - Int(ExpandIntegrand((a + b*acosh(c*x))**(n + S(1))*(f + g*x)**(m + S(-1)), (d1 + e1*x)**(p + S(-1)/2)*(d2 + e2*x)**(p + S(-1)/2)*(d1*d2*g*m + e1*e2*f*x*(S(2)*p + S(1)) + e1*e2*g*x**S(2)*(m + S(2)*p + S(1))), x), x)/(b*c*sqrt(-d1*d2)*(n + S(1))))
rubi.add(rule176)
pattern177 = Pattern(Integral((f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda d: PositiveQ(d)), CustomConstraint(lambda m: Greater(m, S(0))), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))))
rule177 = ReplacementRule(pattern177, lambda x, b, m, g, c, f, a, d, e, n : -g*m*Int((a + b*asinh(c*x))**(n + S(1))*(f + g*x)**(m + S(-1)), x)/(b*c*sqrt(d)*(n + S(1))) + (a + b*asinh(c*x))**(n + S(1))*(f + g*x)**m/(b*c*sqrt(d)*(n + S(1))))
rubi.add(rule177)
pattern178 = Pattern(Integral((f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_/(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), CustomConstraint(lambda m: Greater(m, S(0))), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))))
rule178 = ReplacementRule(pattern178, lambda e2, e1, d1, x, b, m, g, c, f, a, d2, n : -g*m*Int((a + b*acosh(c*x))**(n + S(1))*(f + g*x)**(m + S(-1)), x)/(b*c*sqrt(-d1*d2)*(n + S(1))) + (a + b*acosh(c*x))**(n + S(1))*(f + g*x)**m/(b*c*sqrt(-d1*d2)*(n + S(1))))
rubi.add(rule178)
pattern179 = Pattern(Integral((f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda d: PositiveQ(d)), CustomConstraint(lambda n, m: PositiveIntegerQ(n) | Greater(m, S(0))))
rule179 = ReplacementRule(pattern179, lambda x, b, m, g, c, f, a, d, e, n : c**(-m + S(-1))*Subst(Int((a + b*x)**n*(c*f + g*sinh(x))**m, x), x, asinh(c*x))/sqrt(d))
rubi.add(rule179)
pattern180 = Pattern(Integral((f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))/(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), CustomConstraint(lambda n, m: PositiveIntegerQ(n) | Greater(m, S(0))))
rule180 = ReplacementRule(pattern180, lambda e2, e1, d1, x, b, m, g, c, f, a, d2, n : c**(-m + S(-1))*Subst(Int((a + b*x)**n*(c*f + g*Cosh(x))**m, x), x, acosh(c*x))/sqrt(-d1*d2))
rubi.add(rule180)
pattern181 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: NegativeIntegerQ(p + S(1)/2)), CustomConstraint(lambda d: PositiveQ(d)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule181 = ReplacementRule(pattern181, lambda p, x, b, m, g, c, f, a, d, e, n : Int(ExpandIntegrand((a + b*asinh(c*x))**n/sqrt(d + e*x**S(2)), (d + e*x**S(2))**(p + S(1)/2)*(f + g*x)**m, x), x))
rubi.add(rule181)
pattern182 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: NegativeIntegerQ(p + S(1)/2)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule182 = ReplacementRule(pattern182, lambda p, e2, e1, d1, x, b, m, g, c, f, a, d2, n : Int(ExpandIntegrand((a + b*acosh(c*x))**n/(sqrt(d1 + e1*x)*sqrt(d2 + e2*x)), (d1 + e1*x)**(p + S(1)/2)*(d2 + e2*x)**(p + S(1)/2)*(f + g*x)**m, x), x))
rubi.add(rule182)
pattern183 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)), CustomConstraint(lambda d: Not(PositiveQ(d))))
rule183 = ReplacementRule(pattern183, lambda p, x, b, m, g, c, f, a, d, e, n : d**IntPart(p)*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((a + b*asinh(c*x))**n*(f + g*x)**m*(c**S(2)*x**S(2) + S(1))**p, x))
rubi.add(rule183)
pattern184 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)))
rule184 = ReplacementRule(pattern184, lambda p, x, b, m, g, c, f, a, d, e, n : (-d)**IntPart(p)*(d + e*x**S(2))**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((a + b*acosh(c*x))**n*(f + g*x)**m*(c*x + S(-1))**p*(c*x + S(1))**p, x))
rubi.add(rule184)
pattern185 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)), CustomConstraint(lambda d2, d1: Not(NegativeQ(d2) & PositiveQ(d1))))
rule185 = ReplacementRule(pattern185, lambda p, e2, e1, d1, x, b, m, g, c, f, a, d2, n : (-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(-c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((a + b*acosh(c*x))**n*(f + g*x)**m*(c*x + S(-1))**p*(c*x + S(1))**p, x))
rubi.add(rule185)
pattern186 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))*log((x_*WC('g', S(1)) + WC('f', S(0)))**WC('m', S(1))*WC('h', S(1)))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda h, x: FreeQ(h, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda d: PositiveQ(d)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule186 = ReplacementRule(pattern186, lambda h, x, m, b, g, f, c, a, d, e, n : -g*m*Int((a + b*asinh(c*x))**(n + S(1))/(f + g*x), x)/(b*c*sqrt(d)*(n + S(1))) + (a + b*asinh(c*x))**(n + S(1))*log(h*(f + g*x)**m)/(b*c*sqrt(d)*(n + S(1))))
rubi.add(rule186)
pattern187 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))*log((x_*WC('g', S(1)) + WC('f', S(0)))**WC('m', S(1))*WC('h', S(1)))/(sqrt(d1_ + x_*WC('e1', S(1)))*sqrt(d2_ + x_*WC('e2', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda h, x: FreeQ(h, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda d1: PositiveQ(d1)), CustomConstraint(lambda d2: NegativeQ(d2)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule187 = ReplacementRule(pattern187, lambda e2, h, e1, x, d1, m, b, g, f, c, a, d2, n : -g*m*Int((a + b*acosh(c*x))**(n + S(1))/(f + g*x), x)/(b*c*sqrt(-d1*d2)*(n + S(1))) + (a + b*acosh(c*x))**(n + S(1))*log(h*(f + g*x)**m)/(b*c*sqrt(-d1*d2)*(n + S(1))))
rubi.add(rule187)
pattern188 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))*log((x_*WC('g', S(1)) + WC('f', S(0)))**WC('m', S(1))*WC('h', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda h, x: FreeQ(h, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)), CustomConstraint(lambda d: Not(PositiveQ(d))))
rule188 = ReplacementRule(pattern188, lambda p, h, x, m, b, g, f, c, a, d, e, n : d**IntPart(p)*(d + e*x**S(2))**FracPart(p)*(c**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((a + b*asinh(c*x))**n*(c**S(2)*x**S(2) + S(1))**p*log(h*(f + g*x)**m), x))
rubi.add(rule188)
pattern189 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))*log((x_*WC('g', S(1)) + WC('f', S(0)))**WC('m', S(1))*WC('h', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda h, x: FreeQ(h, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)))
rule189 = ReplacementRule(pattern189, lambda p, h, x, m, b, g, f, c, a, d, e, n : (-d)**IntPart(p)*(d + e*x**S(2))**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((a + b*acosh(c*x))**n*(c*x + S(-1))**p*(c*x + S(1))**p*log(h*(f + g*x)**m), x))
rubi.add(rule189)
pattern190 = Pattern(Integral((d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))*log((x_*WC('g', S(1)) + WC('f', S(0)))**WC('m', S(1))*WC('h', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda h, x: FreeQ(h, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)), CustomConstraint(lambda d2, d1: Not(NegativeQ(d2) & PositiveQ(d1))))
rule190 = ReplacementRule(pattern190, lambda p, e2, h, e1, x, d1, m, b, g, f, c, a, d2, n : (-d1*d2)**IntPart(p)*(d1 + e1*x)**FracPart(p)*(d2 + e2*x)**FracPart(p)*(c*x + S(-1))**(-FracPart(p))*(c*x + S(1))**(-FracPart(p))*Int((a + b*acosh(c*x))**n*(c*x + S(-1))**p*(c*x + S(1))**p*log(h*(f + g*x)**m), x))
rubi.add(rule190)
pattern191 = Pattern(Integral((d_ + x_*WC('e', S(1)))**m_*(f_ + x_*WC('g', S(1)))**m_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda m: NegativeIntegerQ(m + S(1)/2)), )
def With191(x, b, m, g, c, f, a, d, e):
u = IntHide((d + e*x)**m*(f + g*x)**m, x)
return -b*c*Int(Dist(1/sqrt(c**S(2)*x**S(2) + S(1)), u, x), x) + Dist(a + b*asinh(c*x), u, x)
rule191 = ReplacementRule(pattern191, lambda x, b, m, g, c, f, a, d, e : With191(x, b, m, g, c, f, a, d, e))
rubi.add(rule191)
pattern192 = Pattern(Integral((d_ + x_*WC('e', S(1)))**m_*(f_ + x_*WC('g', S(1)))**m_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda m: NegativeIntegerQ(m + S(1)/2)), )
def With192(x, b, m, g, c, f, a, d, e):
u = IntHide((d + e*x)**m*(f + g*x)**m, x)
return -b*c*Int(Dist(S(1)/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))), u, x), x) + Dist(a + b*acosh(c*x), u, x)
rule192 = ReplacementRule(pattern192, lambda x, b, m, g, c, f, a, d, e : With192(x, b, m, g, c, f, a, d, e))
rubi.add(rule192)
pattern193 = Pattern(Integral((d_ + x_*WC('e', S(1)))**WC('m', S(1))*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m: IntegerQ(m)))
rule193 = ReplacementRule(pattern193, lambda x, b, m, g, c, f, a, d, e, n : Int(ExpandIntegrand((a + b*asinh(c*x))**n, (d + e*x)**m*(f + g*x)**m, x), x))
rubi.add(rule193)
pattern194 = Pattern(Integral((d_ + x_*WC('e', S(1)))**WC('m', S(1))*(f_ + x_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m: IntegerQ(m)))
rule194 = ReplacementRule(pattern194, lambda x, b, m, g, c, f, a, d, e, n : Int(ExpandIntegrand((a + b*acosh(c*x))**n, (d + e*x)**m*(f + g*x)**m, x), x))
rubi.add(rule194)
pattern195 = Pattern(Integral(u_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda a, v, x, b, c: InverseFunctionFreeQ(v, x)))
def With195(x, b, c, a, u):
v = IntHide(u, x)
return -b*c*Int(SimplifyIntegrand(v/sqrt(c**S(2)*x**S(2) + S(1)), x), x) + Dist(a + b*asinh(c*x), v, x)
rule195 = ReplacementRule(pattern195, lambda x, b, c, a, u : With195(x, b, c, a, u))
rubi.add(rule195)
pattern196 = Pattern(Integral(u_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda a, v, x, b, c: InverseFunctionFreeQ(v, x)))
def With196(x, b, c, a, u):
v = IntHide(u, x)
return -b*c*sqrt(-c**S(2)*x**S(2) + S(1))*Int(SimplifyIntegrand(v/sqrt(-c**S(2)*x**S(2) + S(1)), x), x)/(sqrt(c*x + S(-1))*sqrt(c*x + S(1))) + Dist(a + b*acosh(c*x), v, x)
rule196 = ReplacementRule(pattern196, lambda x, b, c, a, u : With196(x, b, c, a, u))
rubi.add(rule196)
pattern197 = Pattern(Integral(Px_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda x, Px: PolynomialQ(Px, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)), CustomConstraint(lambda x, u: SumQ(u)))
def With197(Px, p, x, b, c, a, d, e, n):
u = ExpandIntegrand(Px*(a + b*asinh(c*x))**n*(d + e*x**S(2))**p, x)
return Int(u, x)
rule197 = ReplacementRule(pattern197, lambda Px, p, x, b, c, a, d, e, n : With197(Px, p, x, b, c, a, d, e, n))
rubi.add(rule197)
pattern198 = Pattern(Integral(Px_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda x, Px: PolynomialQ(Px, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)), CustomConstraint(lambda x, u: SumQ(u)))
def With198(Px, p, e2, e1, d1, x, b, c, a, d2, n):
u = ExpandIntegrand(Px*(a + b*acosh(c*x))**n*(d1 + e1*x)**p*(d2 + e2*x)**p, x)
return Int(u, x)
rule198 = ReplacementRule(pattern198, lambda Px, p, e2, e1, d1, x, b, c, a, d2, n : With198(Px, p, e2, e1, d1, x, b, c, a, d2, n))
rubi.add(rule198)
pattern199 = Pattern(Integral((f_ + (d_ + x_**S(2)*WC('e', S(1)))**p_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))*WC('Px', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda x, Px: PolynomialQ(Px, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: PositiveIntegerQ(p + S(1)/2)), CustomConstraint(lambda n, m: IntegersQ(m, n)), CustomConstraint(lambda x, u: SumQ(u)))
def With199(Px, p, x, b, m, g, c, f, a, d, e, n):
u = ExpandIntegrand(Px*(a + b*asinh(c*x))**n*(f + g*(d + e*x**S(2))**p)**m, x)
return Int(u, x)
rule199 = ReplacementRule(pattern199, lambda Px, p, x, b, m, g, c, f, a, d, e, n : With199(Px, p, x, b, m, g, c, f, a, d, e, n))
rubi.add(rule199)
pattern200 = Pattern(Integral((f_ + (d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*WC('g', S(1)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))*WC('Px', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda x, Px: PolynomialQ(Px, x)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p: PositiveIntegerQ(p + S(1)/2)), CustomConstraint(lambda n, m: IntegersQ(m, n)), CustomConstraint(lambda x, u: SumQ(u)))
def With200(Px, p, e2, e1, d1, x, b, m, g, c, f, a, d2, n):
u = ExpandIntegrand(Px*(a + b*acosh(c*x))**n*(f + g*(d1 + e1*x)**p*(d2 + e2*x)**p)**m, x)
return Int(u, x)
rule200 = ReplacementRule(pattern200, lambda Px, p, e2, e1, d1, x, b, m, g, c, f, a, d2, n : With200(Px, p, e2, e1, d1, x, b, m, g, c, f, a, d2, n))
rubi.add(rule200)
pattern201 = Pattern(Integral(RFx_*asinh(x_*WC('c', S(1)))**WC('n', S(1)), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda RFx, x: RationalFunctionQ(RFx, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda x, u: SumQ(u)))
def With201(RFx, c, n, x):
u = ExpandIntegrand(asinh(c*x)**n, RFx, x)
return Int(u, x)
rule201 = ReplacementRule(pattern201, lambda RFx, c, n, x : With201(RFx, c, n, x))
rubi.add(rule201)
pattern202 = Pattern(Integral(RFx_*acosh(x_*WC('c', S(1)))**WC('n', S(1)), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda RFx, x: RationalFunctionQ(RFx, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda x, u: SumQ(u)))
def With202(RFx, c, n, x):
u = ExpandIntegrand(acosh(c*x)**n, RFx, x)
return Int(u, x)
rule202 = ReplacementRule(pattern202, lambda RFx, c, n, x : With202(RFx, c, n, x))
rubi.add(rule202)
pattern203 = Pattern(Integral(RFx_*(a_ + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda RFx, x: RationalFunctionQ(RFx, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule203 = ReplacementRule(pattern203, lambda RFx, x, b, c, a, n : Int(ExpandIntegrand(RFx*(a + b*asinh(c*x))**n, x), x))
rubi.add(rule203)
pattern204 = Pattern(Integral(RFx_*(a_ + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda RFx, x: RationalFunctionQ(RFx, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule204 = ReplacementRule(pattern204, lambda RFx, x, b, c, a, n : Int(ExpandIntegrand(RFx*(a + b*acosh(c*x))**n, x), x))
rubi.add(rule204)
pattern205 = Pattern(Integral(RFx_*(d_ + x_**S(2)*WC('e', S(1)))**p_*asinh(x_*WC('c', S(1)))**WC('n', S(1)), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda RFx, x: RationalFunctionQ(RFx, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)), CustomConstraint(lambda x, u: SumQ(u)))
def With205(RFx, p, x, c, d, e, n):
u = ExpandIntegrand((d + e*x**S(2))**p*asinh(c*x)**n, RFx, x)
return Int(u, x)
rule205 = ReplacementRule(pattern205, lambda RFx, p, x, c, d, e, n : With205(RFx, p, x, c, d, e, n))
rubi.add(rule205)
pattern206 = Pattern(Integral(RFx_*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_*acosh(x_*WC('c', S(1)))**WC('n', S(1)), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda RFx, x: RationalFunctionQ(RFx, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)), CustomConstraint(lambda x, u: SumQ(u)))
def With206(RFx, p, e2, e1, d1, x, c, d2, n):
u = ExpandIntegrand((d1 + e1*x)**p*(d2 + e2*x)**p*acosh(c*x)**n, RFx, x)
return Int(u, x)
rule206 = ReplacementRule(pattern206, lambda RFx, p, e2, e1, d1, x, c, d2, n : With206(RFx, p, e2, e1, d1, x, c, d2, n))
rubi.add(rule206)
pattern207 = Pattern(Integral(RFx_*(a_ + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**p_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda RFx, x: RationalFunctionQ(RFx, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)))
rule207 = ReplacementRule(pattern207, lambda RFx, p, x, b, c, a, d, e, n : Int(ExpandIntegrand((d + e*x**S(2))**p, RFx*(a + b*asinh(c*x))**n, x), x))
rubi.add(rule207)
pattern208 = Pattern(Integral(RFx_*(a_ + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))*(d1_ + x_*WC('e1', S(1)))**p_*(d2_ + x_*WC('e2', S(1)))**p_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d1, x: FreeQ(d1, x)), CustomConstraint(lambda e1, x: FreeQ(e1, x)), CustomConstraint(lambda d2, x: FreeQ(d2, x)), CustomConstraint(lambda e2, x: FreeQ(e2, x)), CustomConstraint(lambda RFx, x: RationalFunctionQ(RFx, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda c, d1, e1: ZeroQ(-c*d1 + e1)), CustomConstraint(lambda d2, c, e2: ZeroQ(c*d2 + e2)), CustomConstraint(lambda p: IntegerQ(p + S(-1)/2)))
rule208 = ReplacementRule(pattern208, lambda RFx, p, e2, e1, d1, x, b, c, a, d2, n : Int(ExpandIntegrand((d1 + e1*x)**p*(d2 + e2*x)**p, RFx*(a + b*acosh(c*x))**n, x), x))
rubi.add(rule208)
pattern209 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(x_*WC('c', S(1))))**WC('n', S(1))*WC('u', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule209 = ReplacementRule(pattern209, lambda x, b, c, a, u, n : Int(u*(a + b*asinh(c*x))**n, x))
rubi.add(rule209)
pattern210 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_*WC('c', S(1))))**WC('n', S(1))*WC('u', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule210 = ReplacementRule(pattern210, lambda x, b, c, a, u, n : Int(u*(a + b*acosh(c*x))**n, x))
rubi.add(rule210)
pattern211 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(c_ + x_*WC('d', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule211 = ReplacementRule(pattern211, lambda x, b, c, a, d, n : Subst(Int((a + b*asinh(x))**n, x), x, c + d*x)/d)
rubi.add(rule211)
pattern212 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(c_ + x_*WC('d', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule212 = ReplacementRule(pattern212, lambda x, b, c, a, d, n : Subst(Int((a + b*acosh(x))**n, x), x, c + d*x)/d)
rubi.add(rule212)
pattern213 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(c_ + x_*WC('d', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule213 = ReplacementRule(pattern213, lambda x, b, m, f, c, a, d, e, n : Subst(Int((a + b*asinh(x))**n*(f*x/d + (-c*f + d*e)/d)**m, x), x, c + d*x)/d)
rubi.add(rule213)
pattern214 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(c_ + x_*WC('d', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule214 = ReplacementRule(pattern214, lambda x, b, m, f, c, a, d, e, n : Subst(Int((a + b*acosh(x))**n*(f*x/d + (-c*f + d*e)/d)**m, x), x, c + d*x)/d)
rubi.add(rule214)
pattern215 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(c_ + x_*WC('d', S(1))))**WC('n', S(1))*(x_**S(2)*WC('C', S(1)) + x_*WC('B', S(1)) + WC('A', S(0)))**WC('p', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda A, x: FreeQ(A, x)), CustomConstraint(lambda B, x: FreeQ(B, x)), CustomConstraint(lambda C, x: FreeQ(C, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda B, c, A, d: ZeroQ(-S(2)*A*c*d + B*(c**S(2) + S(1)))), CustomConstraint(lambda B, c, C, d: ZeroQ(-B*d + S(2)*C*c)))
rule215 = ReplacementRule(pattern215, lambda B, A, C, p, x, b, c, a, d, n : Subst(Int((a + b*asinh(x))**n*(C*x**S(2)/d**S(2) + C/d**S(2))**p, x), x, c + d*x)/d)
rubi.add(rule215)
pattern216 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(c_ + x_*WC('d', S(1))))**WC('n', S(1))*(x_**S(2)*WC('C', S(1)) + x_*WC('B', S(1)) + WC('A', S(0)))**WC('p', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda A, x: FreeQ(A, x)), CustomConstraint(lambda B, x: FreeQ(B, x)), CustomConstraint(lambda C, x: FreeQ(C, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda B, c, A, d: ZeroQ(S(2)*A*c*d + B*(-c**S(2) + S(1)))), CustomConstraint(lambda B, c, C, d: ZeroQ(-B*d + S(2)*C*c)))
rule216 = ReplacementRule(pattern216, lambda B, A, C, p, x, b, c, a, d, n : Subst(Int((a + b*acosh(x))**n*(C*x**S(2)/d**S(2) - C/d**S(2))**p, x), x, c + d*x)/d)
rubi.add(rule216)
pattern217 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(c_ + x_*WC('d', S(1))))**WC('n', S(1))*(x_**S(2)*WC('C', S(1)) + x_*WC('B', S(1)) + WC('A', S(0)))**WC('p', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda A, x: FreeQ(A, x)), CustomConstraint(lambda B, x: FreeQ(B, x)), CustomConstraint(lambda C, x: FreeQ(C, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda B, c, A, d: ZeroQ(-S(2)*A*c*d + B*(c**S(2) + S(1)))), CustomConstraint(lambda B, c, C, d: ZeroQ(-B*d + S(2)*C*c)))
rule217 = ReplacementRule(pattern217, lambda B, A, C, p, x, b, m, f, c, a, d, e, n : Subst(Int((a + b*asinh(x))**n*(C*x**S(2)/d**S(2) + C/d**S(2))**p*(f*x/d + (-c*f + d*e)/d)**m, x), x, c + d*x)/d)
rubi.add(rule217)
pattern218 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(c_ + x_*WC('d', S(1))))**WC('n', S(1))*(x_**S(2)*WC('C', S(1)) + x_*WC('B', S(1)) + WC('A', S(0)))**WC('p', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda A, x: FreeQ(A, x)), CustomConstraint(lambda B, x: FreeQ(B, x)), CustomConstraint(lambda C, x: FreeQ(C, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda B, c, A, d: ZeroQ(S(2)*A*c*d + B*(-c**S(2) + S(1)))), CustomConstraint(lambda B, c, C, d: ZeroQ(-B*d + S(2)*C*c)))
rule218 = ReplacementRule(pattern218, lambda B, A, C, p, x, b, m, f, c, a, d, e, n : Subst(Int((a + b*acosh(x))**n*(C*x**S(2)/d**S(2) - C/d**S(2))**p*(f*x/d + (-c*f + d*e)/d)**m, x), x, c + d*x)/d)
rubi.add(rule218)
pattern219 = Pattern(Integral(sqrt(WC('a', S(0)) + WC('b', S(1))*asinh(c_ + x_**S(2)*WC('d', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c: ZeroQ(c**S(2) + S(1))))
rule219 = ReplacementRule(pattern219, lambda x, b, c, a, d : -sqrt(Pi)*x*(-c*sinh(a/(S(2)*b)) + Cosh(a/(S(2)*b)))*FresnelC(sqrt(-c/(Pi*b))*sqrt(a + b*asinh(c + d*x**S(2))))/(sqrt(-c/b)*(c*sinh(asinh(c + d*x**S(2))/S(2)) + Cosh(asinh(c + d*x**S(2))/S(2)))) + sqrt(Pi)*x*(c*sinh(a/(S(2)*b)) + Cosh(a/(S(2)*b)))*FresnelS(sqrt(-c/(Pi*b))*sqrt(a + b*asinh(c + d*x**S(2))))/(sqrt(-c/b)*(c*sinh(asinh(c + d*x**S(2))/S(2)) + Cosh(asinh(c + d*x**S(2))/S(2)))) + x*sqrt(a + b*asinh(c + d*x**S(2))))
rubi.add(rule219)
pattern220 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(c_ + x_**S(2)*WC('d', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c: ZeroQ(c**S(2) + S(1))), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(1))))
rule220 = ReplacementRule(pattern220, lambda x, b, c, a, d, n : S(4)*b**S(2)*n*(n + S(-1))*Int((a + b*asinh(c + d*x**S(2)))**(n + S(-2)), x) - S(2)*b*n*(a + b*asinh(c + d*x**S(2)))**(n + S(-1))*sqrt(S(2)*c*d*x**S(2) + d**S(2)*x**S(4))/(d*x) + x*(a + b*asinh(c + d*x**S(2)))**n)
rubi.add(rule220)
pattern221 = Pattern(Integral(1/(WC('a', S(0)) + WC('b', S(1))*asinh(c_ + x_**S(2)*WC('d', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c: ZeroQ(c**S(2) + S(1))))
rule221 = ReplacementRule(pattern221, lambda x, b, c, a, d : x*(c*Cosh(a/(S(2)*b)) - sinh(a/(S(2)*b)))*CoshIntegral((a + b*asinh(c + d*x**S(2)))/(S(2)*b))/(S(2)*b*(c*sinh(asinh(c + d*x**S(2))/S(2)) + Cosh(asinh(c + d*x**S(2))/S(2)))) + x*(-c*sinh(a/(S(2)*b)) + Cosh(a/(S(2)*b)))*SinhIntegral((a + b*asinh(c + d*x**S(2)))/(S(2)*b))/(S(2)*b*(c*sinh(asinh(c + d*x**S(2))/S(2)) + Cosh(asinh(c + d*x**S(2))/S(2)))))
rubi.add(rule221)
pattern222 = Pattern(Integral(1/sqrt(WC('a', S(0)) + WC('b', S(1))*asinh(c_ + x_**S(2)*WC('d', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c: ZeroQ(c**S(2) + S(1))))
rule222 = ReplacementRule(pattern222, lambda x, b, c, a, d : sqrt(S(2))*sqrt(Pi)*x*(c + S(-1))*(Cosh(a/(S(2)*b)) + sinh(a/(S(2)*b)))*Erf(sqrt(S(2))*sqrt(a + b*asinh(c + d*x**S(2)))/(S(2)*sqrt(b)))/(S(4)*sqrt(b)*(c*sinh(asinh(c + d*x**S(2))/S(2)) + Cosh(asinh(c + d*x**S(2))/S(2)))) + sqrt(S(2))*sqrt(Pi)*x*(c + S(1))*(Cosh(a/(S(2)*b)) - sinh(a/(S(2)*b)))*Erfi(sqrt(S(2))*sqrt(a + b*asinh(c + d*x**S(2)))/(S(2)*sqrt(b)))/(S(4)*sqrt(b)*(c*sinh(asinh(c + d*x**S(2))/S(2)) + Cosh(asinh(c + d*x**S(2))/S(2)))))
rubi.add(rule222)
pattern223 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(c_ + x_**S(2)*WC('d', S(1))))**(S(-3)/2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c: ZeroQ(c**S(2) + S(1))))
rule223 = ReplacementRule(pattern223, lambda x, b, c, a, d : -sqrt(Pi)*x*(-c/b)**(S(3)/2)*(-c*sinh(a/(S(2)*b)) + Cosh(a/(S(2)*b)))*FresnelC(sqrt(-c/(Pi*b))*sqrt(a + b*asinh(c + d*x**S(2))))/(c*sinh(asinh(c + d*x**S(2))/S(2)) + Cosh(asinh(c + d*x**S(2))/S(2))) + sqrt(Pi)*x*(-c/b)**(S(3)/2)*(c*sinh(a/(S(2)*b)) + Cosh(a/(S(2)*b)))*FresnelS(sqrt(-c/(Pi*b))*sqrt(a + b*asinh(c + d*x**S(2))))/(c*sinh(asinh(c + d*x**S(2))/S(2)) + Cosh(asinh(c + d*x**S(2))/S(2))) - sqrt(S(2)*c*d*x**S(2) + d**S(2)*x**S(4))/(b*d*x*sqrt(a + b*asinh(c + d*x**S(2)))))
rubi.add(rule223)
pattern224 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(c_ + x_**S(2)*WC('d', S(1))))**(S(-2)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c: ZeroQ(c**S(2) + S(1))))
rule224 = ReplacementRule(pattern224, lambda x, b, c, a, d : -sqrt(S(2)*c*d*x**S(2) + d**S(2)*x**S(4))/(S(2)*b*d*x*(a + b*asinh(c + d*x**S(2)))) + x*(c*Cosh(a/(S(2)*b)) - sinh(a/(S(2)*b)))*SinhIntegral((a + b*asinh(c + d*x**S(2)))/(S(2)*b))/(S(4)*b**S(2)*(c*sinh(asinh(c + d*x**S(2))/S(2)) + Cosh(asinh(c + d*x**S(2))/S(2)))) + x*(-c*sinh(a/(S(2)*b)) + Cosh(a/(S(2)*b)))*CoshIntegral((a + b*asinh(c + d*x**S(2)))/(S(2)*b))/(S(4)*b**S(2)*(c*sinh(asinh(c + d*x**S(2))/S(2)) + Cosh(asinh(c + d*x**S(2))/S(2)))))
rubi.add(rule224)
pattern225 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asinh(c_ + x_**S(2)*WC('d', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c: ZeroQ(c**S(2) + S(1))), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda n: Unequal(n, S(-2))))
rule225 = ReplacementRule(pattern225, lambda x, b, c, a, d, n : (a + b*asinh(c + d*x**S(2)))**(n + S(1))*sqrt(S(2)*c*d*x**S(2) + d**S(2)*x**S(4))/(S(2)*b*d*x*(n + S(1))) - x*(a + b*asinh(c + d*x**S(2)))**(n + S(2))/(S(4)*b**S(2)*(n + S(1))*(n + S(2))) + Int((a + b*asinh(c + d*x**S(2)))**(n + S(2)), x)/(S(4)*b**S(2)*(n + S(1))*(n + S(2))))
rubi.add(rule225)
pattern226 = Pattern(Integral(sqrt(WC('a', S(0)) + WC('b', S(1))*acosh(x_**S(2)*WC('d', S(1)) + S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda d, x: FreeQ(d, x)))
rule226 = ReplacementRule(pattern226, lambda x, a, d, b : -sqrt(S(2))*sqrt(Pi)*sqrt(b)*(Cosh(a/(S(2)*b)) - sinh(a/(S(2)*b)))*Erfi(sqrt(S(2))*sqrt(a + b*acosh(d*x**S(2) + S(1)))/(S(2)*sqrt(b)))*sinh(acosh(d*x**S(2) + S(1))/S(2))/(S(2)*d*x) + sqrt(S(2))*sqrt(Pi)*sqrt(b)*(Cosh(a/(S(2)*b)) + sinh(a/(S(2)*b)))*Erf(sqrt(S(2))*sqrt(a + b*acosh(d*x**S(2) + S(1)))/(S(2)*sqrt(b)))*sinh(acosh(d*x**S(2) + S(1))/S(2))/(S(2)*d*x) + S(2)*sqrt(a + b*acosh(d*x**S(2) + S(1)))*sinh(acosh(d*x**S(2) + S(1))/S(2))**S(2)/(d*x))
rubi.add(rule226)
pattern227 = Pattern(Integral(sqrt(WC('a', S(0)) + WC('b', S(1))*acosh(x_**S(2)*WC('d', S(1)) + S(-1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda d, x: FreeQ(d, x)))
rule227 = ReplacementRule(pattern227, lambda x, a, d, b : -sqrt(S(2))*sqrt(Pi)*sqrt(b)*(Cosh(a/(S(2)*b)) - sinh(a/(S(2)*b)))*Cosh(acosh(d*x**S(2) + S(-1))/S(2))*Erfi(sqrt(S(2))*sqrt(a + b*acosh(d*x**S(2) + S(-1)))/(S(2)*sqrt(b)))/(S(2)*d*x) - sqrt(S(2))*sqrt(Pi)*sqrt(b)*(Cosh(a/(S(2)*b)) + sinh(a/(S(2)*b)))*Cosh(acosh(d*x**S(2) + S(-1))/S(2))*Erf(sqrt(S(2))*sqrt(a + b*acosh(d*x**S(2) + S(-1)))/(S(2)*sqrt(b)))/(S(2)*d*x) + S(2)*sqrt(a + b*acosh(d*x**S(2) + S(-1)))*Cosh(acosh(d*x**S(2) + S(-1))/S(2))**S(2)/(d*x))
rubi.add(rule227)
pattern228 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(c_ + x_**S(2)*WC('d', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c: ZeroQ(c**S(2) + S(-1))), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(1))))
rule228 = ReplacementRule(pattern228, lambda x, b, c, a, d, n : S(4)*b**S(2)*n*(n + S(-1))*Int((a + b*acosh(c + d*x**S(2)))**(n + S(-2)), x) - S(2)*b*n*(a + b*acosh(c + d*x**S(2)))**(n + S(-1))*(S(2)*c*d*x**S(2) + d**S(2)*x**S(4))/(d*x*sqrt(c + d*x**S(2) + S(-1))*sqrt(c + d*x**S(2) + S(1))) + x*(a + b*acosh(c + d*x**S(2)))**n)
rubi.add(rule228)
pattern229 = Pattern(Integral(1/(WC('a', S(0)) + WC('b', S(1))*acosh(x_**S(2)*WC('d', S(1)) + S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda d, x: FreeQ(d, x)))
rule229 = ReplacementRule(pattern229, lambda x, a, d, b : sqrt(S(2))*x*Cosh(a/(S(2)*b))*CoshIntegral((a + b*acosh(d*x**S(2) + S(1)))/(S(2)*b))/(S(2)*b*sqrt(d*x**S(2))) - sqrt(S(2))*x*SinhIntegral((a + b*acosh(d*x**S(2) + S(1)))/(S(2)*b))*sinh(a/(S(2)*b))/(S(2)*b*sqrt(d*x**S(2))))
rubi.add(rule229)
pattern230 = Pattern(Integral(1/(WC('a', S(0)) + WC('b', S(1))*acosh(x_**S(2)*WC('d', S(1)) + S(-1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda d, x: FreeQ(d, x)))
rule230 = ReplacementRule(pattern230, lambda x, a, d, b : sqrt(S(2))*x*Cosh(a/(S(2)*b))*SinhIntegral((a + b*acosh(d*x**S(2) + S(-1)))/(S(2)*b))/(S(2)*b*sqrt(d*x**S(2))) - sqrt(S(2))*x*CoshIntegral((a + b*acosh(d*x**S(2) + S(-1)))/(S(2)*b))*sinh(a/(S(2)*b))/(S(2)*b*sqrt(d*x**S(2))))
rubi.add(rule230)
pattern231 = Pattern(Integral(1/sqrt(WC('a', S(0)) + WC('b', S(1))*acosh(x_**S(2)*WC('d', S(1)) + S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda d, x: FreeQ(d, x)))
rule231 = ReplacementRule(pattern231, lambda x, a, d, b : sqrt(S(2))*sqrt(Pi)*(Cosh(a/(S(2)*b)) - sinh(a/(S(2)*b)))*Erfi(sqrt(S(2))*sqrt(a + b*acosh(d*x**S(2) + S(1)))/(S(2)*sqrt(b)))*sinh(acosh(d*x**S(2) + S(1))/S(2))/(S(2)*sqrt(b)*d*x) + sqrt(S(2))*sqrt(Pi)*(Cosh(a/(S(2)*b)) + sinh(a/(S(2)*b)))*Erf(sqrt(S(2))*sqrt(a + b*acosh(d*x**S(2) + S(1)))/(S(2)*sqrt(b)))*sinh(acosh(d*x**S(2) + S(1))/S(2))/(S(2)*sqrt(b)*d*x))
rubi.add(rule231)
pattern232 = Pattern(Integral(1/sqrt(WC('a', S(0)) + WC('b', S(1))*acosh(x_**S(2)*WC('d', S(1)) + S(-1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda d, x: FreeQ(d, x)))
rule232 = ReplacementRule(pattern232, lambda x, a, d, b : sqrt(S(2))*sqrt(Pi)*(Cosh(a/(S(2)*b)) - sinh(a/(S(2)*b)))*Cosh(acosh(d*x**S(2) + S(-1))/S(2))*Erfi(sqrt(S(2))*sqrt(a + b*acosh(d*x**S(2) + S(-1)))/(S(2)*sqrt(b)))/(S(2)*sqrt(b)*d*x) - sqrt(S(2))*sqrt(Pi)*(Cosh(a/(S(2)*b)) + sinh(a/(S(2)*b)))*Cosh(acosh(d*x**S(2) + S(-1))/S(2))*Erf(sqrt(S(2))*sqrt(a + b*acosh(d*x**S(2) + S(-1)))/(S(2)*sqrt(b)))/(S(2)*sqrt(b)*d*x))
rubi.add(rule232)
pattern233 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_**S(2)*WC('d', S(1)) + S(1)))**(S(-3)/2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda d, x: FreeQ(d, x)))
rule233 = ReplacementRule(pattern233, lambda x, a, d, b : sqrt(S(2))*sqrt(Pi)*(Cosh(a/(S(2)*b)) - sinh(a/(S(2)*b)))*Erfi(sqrt(S(2))*sqrt(a + b*acosh(d*x**S(2) + S(1)))/(S(2)*sqrt(b)))*sinh(acosh(d*x**S(2) + S(1))/S(2))/(S(2)*b**(S(3)/2)*d*x) - sqrt(S(2))*sqrt(Pi)*(Cosh(a/(S(2)*b)) + sinh(a/(S(2)*b)))*Erf(sqrt(S(2))*sqrt(a + b*acosh(d*x**S(2) + S(1)))/(S(2)*sqrt(b)))*sinh(acosh(d*x**S(2) + S(1))/S(2))/(S(2)*b**(S(3)/2)*d*x) - sqrt(d*x**S(2))*sqrt(d*x**S(2) + S(2))/(b*d*x*sqrt(a + b*acosh(d*x**S(2) + S(1)))))
rubi.add(rule233)
pattern234 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_**S(2)*WC('d', S(1)) + S(-1)))**(S(-3)/2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda d, x: FreeQ(d, x)))
rule234 = ReplacementRule(pattern234, lambda x, a, d, b : sqrt(S(2))*sqrt(Pi)*(Cosh(a/(S(2)*b)) - sinh(a/(S(2)*b)))*Cosh(acosh(d*x**S(2) + S(-1))/S(2))*Erfi(sqrt(S(2))*sqrt(a + b*acosh(d*x**S(2) + S(-1)))/(S(2)*sqrt(b)))/(S(2)*b**(S(3)/2)*d*x) + sqrt(S(2))*sqrt(Pi)*(Cosh(a/(S(2)*b)) + sinh(a/(S(2)*b)))*Cosh(acosh(d*x**S(2) + S(-1))/S(2))*Erf(sqrt(S(2))*sqrt(a + b*acosh(d*x**S(2) + S(-1)))/(S(2)*sqrt(b)))/(S(2)*b**(S(3)/2)*d*x) - sqrt(d*x**S(2))*sqrt(d*x**S(2) + S(-2))/(b*d*x*sqrt(a + b*acosh(d*x**S(2) + S(-1)))))
rubi.add(rule234)
pattern235 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_**S(2)*WC('d', S(1)) + S(1)))**(S(-2)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda d, x: FreeQ(d, x)))
rule235 = ReplacementRule(pattern235, lambda x, a, d, b : -sqrt(d*x**S(2))*sqrt(d*x**S(2) + S(2))/(S(2)*b*d*x*(a + b*acosh(d*x**S(2) + S(1)))) + sqrt(S(2))*x*Cosh(a/(S(2)*b))*SinhIntegral((a + b*acosh(d*x**S(2) + S(1)))/(S(2)*b))/(S(4)*b**S(2)*sqrt(d*x**S(2))) - sqrt(S(2))*x*CoshIntegral((a + b*acosh(d*x**S(2) + S(1)))/(S(2)*b))*sinh(a/(S(2)*b))/(S(4)*b**S(2)*sqrt(d*x**S(2))))
rubi.add(rule235)
pattern236 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(x_**S(2)*WC('d', S(1)) + S(-1)))**(S(-2)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda d, x: FreeQ(d, x)))
rule236 = ReplacementRule(pattern236, lambda x, a, d, b : -sqrt(d*x**S(2))*sqrt(d*x**S(2) + S(-2))/(S(2)*b*d*x*(a + b*acosh(d*x**S(2) + S(-1)))) + sqrt(S(2))*x*Cosh(a/(S(2)*b))*CoshIntegral((a + b*acosh(d*x**S(2) + S(-1)))/(S(2)*b))/(S(4)*b**S(2)*sqrt(d*x**S(2))) - sqrt(S(2))*x*SinhIntegral((a + b*acosh(d*x**S(2) + S(-1)))/(S(2)*b))*sinh(a/(S(2)*b))/(S(4)*b**S(2)*sqrt(d*x**S(2))))
rubi.add(rule236)
pattern237 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acosh(c_ + x_**S(2)*WC('d', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c: ZeroQ(c**S(2) + S(-1))), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda n: Unequal(n, S(-2))))
rule237 = ReplacementRule(pattern237, lambda x, b, c, a, d, n : (a + b*acosh(c + d*x**S(2)))**(n + S(1))*(S(2)*c*x**S(2) + d*x**S(4))/(S(2)*b*x*(n + S(1))*sqrt(c + d*x**S(2) + S(-1))*sqrt(c + d*x**S(2) + S(1))) - x*(a + b*acosh(c + d*x**S(2)))**(n + S(2))/(S(4)*b**S(2)*(n + S(1))*(n + S(2))) + Int((a + b*acosh(c + d*x**S(2)))**(n + S(2)), x)/(S(4)*b**S(2)*(n + S(1))*(n + S(2))))
rubi.add(rule237)
pattern238 = Pattern(Integral(asinh(x_**p_*WC('a', S(1)))**WC('n', S(1))/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule238 = ReplacementRule(pattern238, lambda x, a, p, n : Subst(Int(x**n*coth(x), x), x, asinh(a*x**p))/p)
rubi.add(rule238)
pattern239 = Pattern(Integral(acosh(x_**p_*WC('a', S(1)))**WC('n', S(1))/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule239 = ReplacementRule(pattern239, lambda x, a, p, n : Subst(Int(x**n*tanh(x), x), x, acosh(a*x**p))/p)
rubi.add(rule239)
pattern240 = Pattern(Integral(WC('u', S(1))*asinh(WC('c', S(1))/(x_**WC('n', S(1))*WC('b', S(1)) + WC('a', S(0))))**WC('m', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m, x: FreeQ(m, x)))
rule240 = ReplacementRule(pattern240, lambda x, b, m, c, a, u, n : Int(u*acsch(a/c + b*x**n/c)**m, x))
rubi.add(rule240)
pattern241 = Pattern(Integral(WC('u', S(1))*acosh(WC('c', S(1))/(x_**WC('n', S(1))*WC('b', S(1)) + WC('a', S(0))))**WC('m', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m, x: FreeQ(m, x)))
rule241 = ReplacementRule(pattern241, lambda x, b, m, c, a, u, n : Int(u*asech(a/c + b*x**n/c)**m, x))
rubi.add(rule241)
pattern242 = Pattern(Integral(asinh(sqrt(x_**S(2)*WC('b', S(1)) + S(-1)))**WC('n', S(1))/sqrt(x_**S(2)*WC('b', S(1)) + S(-1)), x_), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule242 = ReplacementRule(pattern242, lambda x, n, b : sqrt(b*x**S(2))*Subst(Int(asinh(x)**n/sqrt(x**S(2) + S(1)), x), x, sqrt(b*x**S(2) + S(-1)))/(b*x))
rubi.add(rule242)
pattern243 = Pattern(Integral(acosh(sqrt(x_**S(2)*WC('b', S(1)) + S(1)))**WC('n', S(1))/sqrt(x_**S(2)*WC('b', S(1)) + S(1)), x_), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule243 = ReplacementRule(pattern243, lambda x, n, b : sqrt(sqrt(b*x**S(2) + S(1)) + S(-1))*sqrt(sqrt(b*x**S(2) + S(1)) + S(1))*Subst(Int(acosh(x)**n/(sqrt(x + S(-1))*sqrt(x + S(1))), x), x, sqrt(b*x**S(2) + S(1)))/(b*x))
rubi.add(rule243)
pattern244 = Pattern(Integral(f_**(WC('c', S(1))*asinh(x_*WC('b', S(1)) + WC('a', S(0)))**WC('n', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule244 = ReplacementRule(pattern244, lambda x, b, c, f, a, n : Subst(Int(f**(c*x**n)*Cosh(x), x), x, asinh(a + b*x))/b)
rubi.add(rule244)
pattern245 = Pattern(Integral(f_**(WC('c', S(1))*acosh(x_*WC('b', S(1)) + WC('a', S(0)))**WC('n', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule245 = ReplacementRule(pattern245, lambda x, b, c, f, a, n : Subst(Int(f**(c*x**n)*sinh(x), x), x, acosh(a + b*x))/b)
rubi.add(rule245)
pattern246 = Pattern(Integral(f_**(WC('c', S(1))*asinh(x_*WC('b', S(1)) + WC('a', S(0)))**WC('n', S(1)))*x_**WC('m', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda n, m: PositiveIntegerQ(m, n)))
rule246 = ReplacementRule(pattern246, lambda x, b, m, c, f, a, n : Subst(Int(f**(c*x**n)*(-a/b + sinh(x)/b)**m*Cosh(x), x), x, asinh(a + b*x))/b)
rubi.add(rule246)
pattern247 = Pattern(Integral(f_**(WC('c', S(1))*acosh(x_*WC('b', S(1)) + WC('a', S(0)))**WC('n', S(1)))*x_**WC('m', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda n, m: PositiveIntegerQ(m, n)))
rule247 = ReplacementRule(pattern247, lambda x, b, m, c, f, a, n : Subst(Int(f**(c*x**n)*(-a/b + Cosh(x)/b)**m*sinh(x), x), x, acosh(a + b*x))/b)
rubi.add(rule247)
pattern248 = Pattern(Integral(asinh(u_), x_), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda x, u: Not(FunctionOfExponentialQ(u, x))))
rule248 = ReplacementRule(pattern248, lambda x, u : x*asinh(u) - Int(SimplifyIntegrand(x*D(u, x)/sqrt(u**S(2) + S(1)), x), x))
rubi.add(rule248)
pattern249 = Pattern(Integral(acosh(u_), x_), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda x, u: Not(FunctionOfExponentialQ(u, x))))
rule249 = ReplacementRule(pattern249, lambda x, u : x*acosh(u) - Int(SimplifyIntegrand(x*D(u, x)/(sqrt(u + S(-1))*sqrt(u + S(1))), x), x))
rubi.add(rule249)
pattern250 = Pattern(Integral((x_*WC('d', S(1)) + WC('c', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asinh(u_)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda m: NonzeroQ(m + S(1))), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda x, m, c, d, u: Not(FunctionOfQ((c + d*x)**(m + S(1)), u, x))), CustomConstraint(lambda x, u: Not(FunctionOfExponentialQ(u, x))))
rule250 = ReplacementRule(pattern250, lambda x, b, m, c, a, d, u : -b*Int(SimplifyIntegrand((c + d*x)**(m + S(1))*D(u, x)/sqrt(u**S(2) + S(1)), x), x)/(d*(m + S(1))) + (a + b*asinh(u))*(c + d*x)**(m + S(1))/(d*(m + S(1))))
rubi.add(rule250)
pattern251 = Pattern(Integral((x_*WC('d', S(1)) + WC('c', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acosh(u_)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda m: NonzeroQ(m + S(1))), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda x, m, c, d, u: Not(FunctionOfQ((c + d*x)**(m + S(1)), u, x))), CustomConstraint(lambda x, u: Not(FunctionOfExponentialQ(u, x))))
rule251 = ReplacementRule(pattern251, lambda x, b, m, c, a, d, u : -b*Int(SimplifyIntegrand((c + d*x)**(m + S(1))*D(u, x)/(sqrt(u + S(-1))*sqrt(u + S(1))), x), x)/(d*(m + S(1))) + (a + b*acosh(u))*(c + d*x)**(m + S(1))/(d*(m + S(1))))
rubi.add(rule251)
pattern252 = Pattern(Integral(v_*(WC('a', S(0)) + WC('b', S(1))*asinh(u_)), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda v, x: Not(MatchQ(v, Condition((x*Optional(Pattern(d, Blank)) + Optional(Pattern(c, Blank)))**Optional(Pattern(m, Blank)))))), CustomConstraint(lambda a, u, x, b, w: InverseFunctionFreeQ(w, x)))
def With252(x, b, v, a, u):
w = IntHide(v, x)
return -b*Int(SimplifyIntegrand(w*D(u, x)/sqrt(u**S(2) + S(1)), x), x) + Dist(a + b*asinh(u), w, x)
rule252 = ReplacementRule(pattern252, lambda x, b, v, a, u : With252(x, b, v, a, u))
rubi.add(rule252)
pattern253 = Pattern(Integral(v_*(WC('a', S(0)) + WC('b', S(1))*acosh(u_)), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda v, x: Not(MatchQ(v, Condition((x*Optional(Pattern(d, Blank)) + Optional(Pattern(c, Blank)))**Optional(Pattern(m, Blank)))))), CustomConstraint(lambda a, u, x, b, w: InverseFunctionFreeQ(w, x)))
def With253(x, b, v, a, u):
w = IntHide(v, x)
return -b*Int(SimplifyIntegrand(w*D(u, x)/(sqrt(u + S(-1))*sqrt(u + S(1))), x), x) + Dist(a + b*acosh(u), w, x)
rule253 = ReplacementRule(pattern253, lambda x, b, v, a, u : With253(x, b, v, a, u))
rubi.add(rule253)
pattern254 = Pattern(Integral(exp(WC('n', S(1))*asinh(u_)), x_), CustomConstraint(lambda n: IntegerQ(n)), CustomConstraint(lambda x, u: PolynomialQ(u, x)))
rule254 = ReplacementRule(pattern254, lambda x, u, n : Int((u + sqrt(u**S(2) + S(1)))**n, x))
rubi.add(rule254)
pattern255 = Pattern(Integral(x_**WC('m', S(1))*exp(WC('n', S(1))*asinh(u_)), x_), CustomConstraint(lambda m: RationalQ(m)), CustomConstraint(lambda n: IntegerQ(n)), CustomConstraint(lambda x, u: PolynomialQ(u, x)))
rule255 = ReplacementRule(pattern255, lambda x, u, n, m : Int(x**m*(u + sqrt(u**S(2) + S(1)))**n, x))
rubi.add(rule255)
pattern256 = Pattern(Integral(exp(WC('n', S(1))*acosh(u_)), x_), CustomConstraint(lambda n: IntegerQ(n)), CustomConstraint(lambda x, u: PolynomialQ(u, x)))
rule256 = ReplacementRule(pattern256, lambda x, u, n : Int((u + sqrt(u + S(-1))*sqrt(u + S(1)))**n, x))
rubi.add(rule256)
pattern257 = Pattern(Integral(x_**WC('m', S(1))*exp(WC('n', S(1))*acosh(u_)), x_), CustomConstraint(lambda m: RationalQ(m)), CustomConstraint(lambda n: IntegerQ(n)), CustomConstraint(lambda x, u: PolynomialQ(u, x)))
rule257 = ReplacementRule(pattern257, lambda x, u, n, m : Int(x**m*(u + sqrt(u + S(-1))*sqrt(u + S(1)))**n, x))
rubi.add(rule257)
pattern258 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule258 = ReplacementRule(pattern258, lambda x, b, c, a, n : -b*c*n*Int(x*(a + b*atanh(c*x))**(n + S(-1))/(-c**S(2)*x**S(2) + S(1)), x) + x*(a + b*atanh(c*x))**n)
rubi.add(rule258)
pattern259 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule259 = ReplacementRule(pattern259, lambda x, b, c, a, n : -b*c*n*Int(x*(a + b*acoth(c*x))**(n + S(-1))/(-c**S(2)*x**S(2) + S(1)), x) + x*(a + b*acoth(c*x))**n)
rubi.add(rule259)
pattern260 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(PositiveIntegerQ(n))))
rule260 = ReplacementRule(pattern260, lambda x, b, c, a, n : Int((a + b*atanh(c*x))**n, x))
rubi.add(rule260)
pattern261 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(PositiveIntegerQ(n))))
rule261 = ReplacementRule(pattern261, lambda x, b, c, a, n : Int((a + b*acoth(c*x))**n, x))
rubi.add(rule261)
pattern262 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d**S(2) - e**S(2))), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule262 = ReplacementRule(pattern262, lambda x, b, c, a, d, e, n : b*c*n*Int((a + b*atanh(c*x))**(n + S(-1))*log(S(2)*d/(d + e*x))/(-c**S(2)*x**S(2) + S(1)), x)/e - (a + b*atanh(c*x))**n*log(S(2)*d/(d + e*x))/e)
rubi.add(rule262)
pattern263 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d**S(2) - e**S(2))), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule263 = ReplacementRule(pattern263, lambda x, b, c, a, d, e, n : b*c*n*Int((a + b*acoth(c*x))**(n + S(-1))*log(S(2)*d/(d + e*x))/(-c**S(2)*x**S(2) + S(1)), x)/e - (a + b*acoth(c*x))**n*log(S(2)*d/(d + e*x))/e)
rubi.add(rule263)
pattern264 = Pattern(Integral(atanh(x_*WC('c', S(1)))/(d_ + x_*WC('e', S(1))), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: PositiveQ(c*d/e + S(1))), CustomConstraint(lambda c, e, d: NegativeQ(c*d/e + S(-1))))
rule264 = ReplacementRule(pattern264, lambda c, d, e, x : -PolyLog(S(2), Simp(c*(d + e*x)/(c*d - e), x))/(S(2)*e) + PolyLog(S(2), Simp(c*(d + e*x)/(c*d + e), x))/(S(2)*e) - log(d + e*x)*atanh(c*d/e)/e)
rubi.add(rule264)
pattern265 = Pattern(Integral(atanh(x_*WC('c', S(1)))/(x_*WC('e', S(1)) + WC('d', S(0))), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)))
rule265 = ReplacementRule(pattern265, lambda c, e, d, x : -Int(log(-c*x + S(1))/(d + e*x), x)/S(2) + Int(log(c*x + S(1))/(d + e*x), x)/S(2))
rubi.add(rule265)
pattern266 = Pattern(Integral(acoth(x_*WC('c', S(1)))/(x_*WC('e', S(1)) + WC('d', S(0))), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)))
rule266 = ReplacementRule(pattern266, lambda c, e, d, x : -Int(log(S(1) - S(1)/(c*x))/(d + e*x), x)/S(2) + Int(log(S(1) + S(1)/(c*x))/(d + e*x), x)/S(2))
rubi.add(rule266)
pattern267 = Pattern(Integral((a_ + WC('b', S(1))*atanh(x_*WC('c', S(1))))/(x_*WC('e', S(1)) + WC('d', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)))
rule267 = ReplacementRule(pattern267, lambda x, b, c, a, d, e : a*log(RemoveContent(d + e*x, x))/e + b*Int(atanh(c*x)/(d + e*x), x))
rubi.add(rule267)
pattern268 = Pattern(Integral((a_ + WC('b', S(1))*acoth(x_*WC('c', S(1))))/(x_*WC('e', S(1)) + WC('d', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)))
rule268 = ReplacementRule(pattern268, lambda x, b, c, a, d, e : a*log(RemoveContent(d + e*x, x))/e + b*Int(acoth(c*x)/(d + e*x), x))
rubi.add(rule268)
pattern269 = Pattern(Integral((x_*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda p: NonzeroQ(p + S(1))))
rule269 = ReplacementRule(pattern269, lambda p, x, b, c, a, d, e : -b*c*Int((d + e*x)**(p + S(1))/(-c**S(2)*x**S(2) + S(1)), x)/(e*(p + S(1))) + (a + b*atanh(c*x))*(d + e*x)**(p + S(1))/(e*(p + S(1))))
rubi.add(rule269)
pattern270 = Pattern(Integral((x_*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda p: NonzeroQ(p + S(1))))
rule270 = ReplacementRule(pattern270, lambda p, x, b, c, a, d, e : -b*c*Int((d + e*x)**(p + S(1))/(-c**S(2)*x**S(2) + S(1)), x)/(e*(p + S(1))) + (a + b*acoth(c*x))*(d + e*x)**(p + S(1))/(e*(p + S(1))))
rubi.add(rule270)
pattern271 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n: IntegerQ(n)), CustomConstraint(lambda n: Greater(n, S(1))))
rule271 = ReplacementRule(pattern271, lambda x, b, c, a, n : -S(2)*b*c*n*Int((a + b*atanh(c*x))**(n + S(-1))*atanh(S(1) - S(2)/(-c*x + S(1)))/(-c**S(2)*x**S(2) + S(1)), x) + S(2)*(a + b*atanh(c*x))**n*atanh(S(1) - S(2)/(-c*x + S(1))))
rubi.add(rule271)
pattern272 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n: IntegerQ(n)), CustomConstraint(lambda n: Greater(n, S(1))))
rule272 = ReplacementRule(pattern272, lambda x, b, c, a, n : -S(2)*b*c*n*Int((a + b*acoth(c*x))**(n + S(-1))*acoth(S(1) - S(2)/(-c*x + S(1)))/(-c**S(2)*x**S(2) + S(1)), x) + S(2)*(a + b*acoth(c*x))**n*acoth(S(1) - S(2)/(-c*x + S(1))))
rubi.add(rule272)
pattern273 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n: IntegerQ(n)), CustomConstraint(lambda n: Greater(n, S(1))), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule273 = ReplacementRule(pattern273, lambda x, b, m, c, a, n : -b*c*n*Int(x**(m + S(1))*(a + b*atanh(c*x))**(n + S(-1))/(-c**S(2)*x**S(2) + S(1)), x)/(m + S(1)) + x**(m + S(1))*(a + b*atanh(c*x))**n/(m + S(1)))
rubi.add(rule273)
pattern274 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n: IntegerQ(n)), CustomConstraint(lambda n: Greater(n, S(1))), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule274 = ReplacementRule(pattern274, lambda x, b, m, c, a, n : -b*c*n*Int(x**(m + S(1))*(a + b*acoth(c*x))**(n + S(-1))/(-c**S(2)*x**S(2) + S(1)), x)/(m + S(1)) + x**(m + S(1))*(a + b*acoth(c*x))**n/(m + S(1)))
rubi.add(rule274)
pattern275 = Pattern(Integral((d_ + x_*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, n: PositiveIntegerQ(n, p)))
rule275 = ReplacementRule(pattern275, lambda p, x, b, c, a, d, e, n : Int(ExpandIntegrand((a + b*atanh(c*x))**n*(d + e*x)**p, x), x))
rubi.add(rule275)
pattern276 = Pattern(Integral((d_ + x_*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, n: PositiveIntegerQ(n, p)))
rule276 = ReplacementRule(pattern276, lambda p, x, b, c, a, d, e, n : Int(ExpandIntegrand((a + b*acoth(c*x))**n*(d + e*x)**p, x), x))
rubi.add(rule276)
pattern277 = Pattern(Integral((x_*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda n: Not(PositiveIntegerQ(n))))
rule277 = ReplacementRule(pattern277, lambda p, x, b, c, a, d, e, n : Int((a + b*atanh(c*x))**n*(d + e*x)**p, x))
rubi.add(rule277)
pattern278 = Pattern(Integral((x_*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda n: Not(PositiveIntegerQ(n))))
rule278 = ReplacementRule(pattern278, lambda p, x, b, c, a, d, e, n : Int((a + b*acoth(c*x))**n*(d + e*x)**p, x))
rubi.add(rule278)
pattern279 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d**S(2) - e**S(2))), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: RationalQ(m)), CustomConstraint(lambda m: Greater(m, S(0))))
rule279 = ReplacementRule(pattern279, lambda x, b, m, c, a, d, e, n : -d*Int(x**(m + S(-1))*(a + b*atanh(c*x))**n/(d + e*x), x)/e + Int(x**(m + S(-1))*(a + b*atanh(c*x))**n, x)/e)
rubi.add(rule279)
pattern280 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d**S(2) - e**S(2))), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: RationalQ(m)), CustomConstraint(lambda m: Greater(m, S(0))))
rule280 = ReplacementRule(pattern280, lambda x, b, m, c, a, d, e, n : -d*Int(x**(m + S(-1))*(a + b*acoth(c*x))**n/(d + e*x), x)/e + Int(x**(m + S(-1))*(a + b*acoth(c*x))**n, x)/e)
rubi.add(rule280)
pattern281 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(x_*(d_ + x_*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d**S(2) - e**S(2))), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule281 = ReplacementRule(pattern281, lambda x, b, c, a, d, e, n : -b*c*n*Int((a + b*atanh(c*x))**(n + S(-1))*log(S(2)*e*x/(d + e*x))/(-c**S(2)*x**S(2) + S(1)), x)/d + (a + b*atanh(c*x))**n*log(S(2)*e*x/(d + e*x))/d)
rubi.add(rule281)
pattern282 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(x_*(d_ + x_*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d**S(2) - e**S(2))), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule282 = ReplacementRule(pattern282, lambda x, b, c, a, d, e, n : -b*c*n*Int((a + b*acoth(c*x))**(n + S(-1))*log(S(2)*e*x/(d + e*x))/(-c**S(2)*x**S(2) + S(1)), x)/d + (a + b*acoth(c*x))**n*log(S(2)*e*x/(d + e*x))/d)
rubi.add(rule282)
pattern283 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d**S(2) - e**S(2))), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: RationalQ(m)), CustomConstraint(lambda m: Less(m, S(-1))))
rule283 = ReplacementRule(pattern283, lambda x, b, m, c, a, d, e, n : -e*Int(x**(m + S(1))*(a + b*atanh(c*x))**n/(d + e*x), x)/d + Int(x**m*(a + b*atanh(c*x))**n, x)/d)
rubi.add(rule283)
pattern284 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d**S(2) - e**S(2))), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda m: RationalQ(m)), CustomConstraint(lambda m: Less(m, S(-1))))
rule284 = ReplacementRule(pattern284, lambda x, b, m, c, a, d, e, n : -e*Int(x**(m + S(1))*(a + b*acoth(c*x))**n/(d + e*x), x)/d + Int(x**m*(a + b*acoth(c*x))**n, x)/d)
rubi.add(rule284)
pattern285 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda a, p, m: IntegerQ(m) | NonzeroQ(a) | Greater(p, S(0))))
rule285 = ReplacementRule(pattern285, lambda p, x, b, m, c, a, d, e, n : Int(ExpandIntegrand(x**m*(a + b*atanh(c*x))**n*(d + e*x)**p, x), x))
rubi.add(rule285)
pattern286 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda a, p, m: IntegerQ(m) | NonzeroQ(a) | Greater(p, S(0))))
rule286 = ReplacementRule(pattern286, lambda p, x, b, m, c, a, d, e, n : Int(ExpandIntegrand(x**m*(a + b*acoth(c*x))**n*(d + e*x)**p, x), x))
rubi.add(rule286)
pattern287 = Pattern(Integral(x_**WC('m', S(1))*(x_*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule287 = ReplacementRule(pattern287, lambda p, x, b, m, c, a, d, e, n : Int(x**m*(a + b*atanh(c*x))**n*(d + e*x)**p, x))
rubi.add(rule287)
pattern288 = Pattern(Integral(x_**WC('m', S(1))*(x_*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule288 = ReplacementRule(pattern288, lambda p, x, b, m, c, a, d, e, n : Int(x**m*(a + b*acoth(c*x))**n*(d + e*x)**p, x))
rubi.add(rule288)
pattern289 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Greater(p, S(0))))
rule289 = ReplacementRule(pattern289, lambda p, x, b, c, a, d, e : b*(d + e*x**S(2))**p/(S(2)*c*p*(S(2)*p + S(1))) + S(2)*d*p*Int((a + b*atanh(c*x))*(d + e*x**S(2))**(p + S(-1)), x)/(S(2)*p + S(1)) + x*(a + b*atanh(c*x))*(d + e*x**S(2))**p/(S(2)*p + S(1)))
rubi.add(rule289)
pattern290 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Greater(p, S(0))))
rule290 = ReplacementRule(pattern290, lambda p, x, b, c, a, d, e : b*(d + e*x**S(2))**p/(S(2)*c*p*(S(2)*p + S(1))) + S(2)*d*p*Int((a + b*acoth(c*x))*(d + e*x**S(2))**(p + S(-1)), x)/(S(2)*p + S(1)) + x*(a + b*acoth(c*x))*(d + e*x**S(2))**p/(S(2)*p + S(1)))
rubi.add(rule290)
pattern291 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda p: Greater(p, S(0))), CustomConstraint(lambda n: Greater(n, S(1))))
rule291 = ReplacementRule(pattern291, lambda p, x, b, c, a, d, e, n : -b**S(2)*d*n*(n + S(-1))*Int((a + b*atanh(c*x))**(n + S(-2))*(d + e*x**S(2))**(p + S(-1)), x)/(S(2)*p*(S(2)*p + S(1))) + b*n*(a + b*atanh(c*x))**(n + S(-1))*(d + e*x**S(2))**p/(S(2)*c*p*(S(2)*p + S(1))) + S(2)*d*p*Int((a + b*atanh(c*x))**n*(d + e*x**S(2))**(p + S(-1)), x)/(S(2)*p + S(1)) + x*(a + b*atanh(c*x))**n*(d + e*x**S(2))**p/(S(2)*p + S(1)))
rubi.add(rule291)
pattern292 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda p: Greater(p, S(0))), CustomConstraint(lambda n: Greater(n, S(1))))
rule292 = ReplacementRule(pattern292, lambda p, x, b, c, a, d, e, n : -b**S(2)*d*n*(n + S(-1))*Int((a + b*acoth(c*x))**(n + S(-2))*(d + e*x**S(2))**(p + S(-1)), x)/(S(2)*p*(S(2)*p + S(1))) + b*n*(a + b*acoth(c*x))**(n + S(-1))*(d + e*x**S(2))**p/(S(2)*c*p*(S(2)*p + S(1))) + S(2)*d*p*Int((a + b*acoth(c*x))**n*(d + e*x**S(2))**(p + S(-1)), x)/(S(2)*p + S(1)) + x*(a + b*acoth(c*x))**n*(d + e*x**S(2))**p/(S(2)*p + S(1)))
rubi.add(rule292)
pattern293 = Pattern(Integral(S(1)/((d_ + x_**S(2)*WC('e', S(1)))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)))
rule293 = ReplacementRule(pattern293, lambda x, b, c, a, d, e : log(RemoveContent(a + b*atanh(c*x), x))/(b*c*d))
rubi.add(rule293)
pattern294 = Pattern(Integral(S(1)/((d_ + x_**S(2)*WC('e', S(1)))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)))
rule294 = ReplacementRule(pattern294, lambda x, b, c, a, d, e : log(RemoveContent(a + b*acoth(c*x), x))/(b*c*d))
rubi.add(rule294)
pattern295 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: NonzeroQ(n + S(1))))
rule295 = ReplacementRule(pattern295, lambda x, b, c, a, d, e, n : (a + b*atanh(c*x))**(n + S(1))/(b*c*d*(n + S(1))))
rubi.add(rule295)
pattern296 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: NonzeroQ(n + S(1))))
rule296 = ReplacementRule(pattern296, lambda x, b, c, a, d, e, n : (a + b*acoth(c*x))**(n + S(1))/(b*c*d*(n + S(1))))
rubi.add(rule296)
pattern297 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda d: PositiveQ(d)))
rule297 = ReplacementRule(pattern297, lambda x, b, c, a, d, e : -ImaginaryI*b*PolyLog(S(2), -ImaginaryI*sqrt(-c*x + S(1))/sqrt(c*x + S(1)))/(c*sqrt(d)) + ImaginaryI*b*PolyLog(S(2), ImaginaryI*sqrt(-c*x + S(1))/sqrt(c*x + S(1)))/(c*sqrt(d)) - S(2)*(a + b*atanh(c*x))*ArcTan(sqrt(-c*x + S(1))/sqrt(c*x + S(1)))/(c*sqrt(d)))
rubi.add(rule297)
pattern298 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda d: PositiveQ(d)))
rule298 = ReplacementRule(pattern298, lambda x, b, c, a, d, e : -ImaginaryI*b*PolyLog(S(2), -ImaginaryI*sqrt(-c*x + S(1))/sqrt(c*x + S(1)))/(c*sqrt(d)) + ImaginaryI*b*PolyLog(S(2), ImaginaryI*sqrt(-c*x + S(1))/sqrt(c*x + S(1)))/(c*sqrt(d)) - S(2)*(a + b*acoth(c*x))*ArcTan(sqrt(-c*x + S(1))/sqrt(c*x + S(1)))/(c*sqrt(d)))
rubi.add(rule298)
pattern299 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda d: PositiveQ(d)))
rule299 = ReplacementRule(pattern299, lambda x, b, c, a, d, e, n : Subst(Int((a + b*x)**n*sech(x), x), x, atanh(c*x))/(c*sqrt(d)))
rubi.add(rule299)
pattern300 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda d: PositiveQ(d)))
rule300 = ReplacementRule(pattern300, lambda x, b, c, a, d, e, n : -x*sqrt(S(1) - S(1)/(c**S(2)*x**S(2)))*Subst(Int((a + b*x)**n*csch(x), x), x, acoth(c*x))/sqrt(d + e*x**S(2)))
rubi.add(rule300)
pattern301 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda d: Not(PositiveQ(d))))
rule301 = ReplacementRule(pattern301, lambda x, b, c, a, d, e, n : sqrt(-c**S(2)*x**S(2) + S(1))*Int((a + b*atanh(c*x))**n/sqrt(-c**S(2)*x**S(2) + S(1)), x)/sqrt(d + e*x**S(2)))
rubi.add(rule301)
pattern302 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda d: Not(PositiveQ(d))))
rule302 = ReplacementRule(pattern302, lambda x, b, c, a, d, e, n : sqrt(-c**S(2)*x**S(2) + S(1))*Int((a + b*acoth(c*x))**n/sqrt(-c**S(2)*x**S(2) + S(1)), x)/sqrt(d + e*x**S(2)))
rubi.add(rule302)
pattern303 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1)))**S(2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule303 = ReplacementRule(pattern303, lambda x, b, c, a, d, e, n : -b*c*n*Int(x*(a + b*atanh(c*x))**(n + S(-1))/(d + e*x**S(2))**S(2), x)/S(2) + x*(a + b*atanh(c*x))**n/(S(2)*d*(d + e*x**S(2))) + (a + b*atanh(c*x))**(n + S(1))/(S(2)*b*c*d**S(2)*(n + S(1))))
rubi.add(rule303)
pattern304 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1)))**S(2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule304 = ReplacementRule(pattern304, lambda x, b, c, a, d, e, n : -b*c*n*Int(x*(a + b*acoth(c*x))**(n + S(-1))/(d + e*x**S(2))**S(2), x)/S(2) + x*(a + b*acoth(c*x))**n/(S(2)*d*(d + e*x**S(2))) + (a + b*acoth(c*x))**(n + S(1))/(S(2)*b*c*d**S(2)*(n + S(1))))
rubi.add(rule304)
pattern305 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))/(d_ + x_**S(2)*WC('e', S(1)))**(S(3)/2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)))
rule305 = ReplacementRule(pattern305, lambda x, b, c, a, d, e : -b/(c*d*sqrt(d + e*x**S(2))) + x*(a + b*atanh(c*x))/(d*sqrt(d + e*x**S(2))))
rubi.add(rule305)
pattern306 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))/(d_ + x_**S(2)*WC('e', S(1)))**(S(3)/2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)))
rule306 = ReplacementRule(pattern306, lambda x, b, c, a, d, e : -b/(c*d*sqrt(d + e*x**S(2))) + x*(a + b*acoth(c*x))/(d*sqrt(d + e*x**S(2))))
rubi.add(rule306)
pattern307 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda p: Unequal(p, S(-3)/2)))
rule307 = ReplacementRule(pattern307, lambda p, x, b, c, a, d, e : -b*(d + e*x**S(2))**(p + S(1))/(S(4)*c*d*(p + S(1))**S(2)) - x*(a + b*atanh(c*x))*(d + e*x**S(2))**(p + S(1))/(S(2)*d*(p + S(1))) + (S(2)*p + S(3))*Int((a + b*atanh(c*x))*(d + e*x**S(2))**(p + S(1)), x)/(S(2)*d*(p + S(1))))
rubi.add(rule307)
pattern308 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda p: Unequal(p, S(-3)/2)))
rule308 = ReplacementRule(pattern308, lambda p, x, b, c, a, d, e : -b*(d + e*x**S(2))**(p + S(1))/(S(4)*c*d*(p + S(1))**S(2)) - x*(a + b*acoth(c*x))*(d + e*x**S(2))**(p + S(1))/(S(2)*d*(p + S(1))) + (S(2)*p + S(3))*Int((a + b*acoth(c*x))*(d + e*x**S(2))**(p + S(1)), x)/(S(2)*d*(p + S(1))))
rubi.add(rule308)
pattern309 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_/(d_ + x_**S(2)*WC('e', S(1)))**(S(3)/2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(1))))
rule309 = ReplacementRule(pattern309, lambda x, b, c, a, d, e, n : b**S(2)*n*(n + S(-1))*Int((a + b*atanh(c*x))**(n + S(-2))/(d + e*x**S(2))**(S(3)/2), x) - b*n*(a + b*atanh(c*x))**(n + S(-1))/(c*d*sqrt(d + e*x**S(2))) + x*(a + b*atanh(c*x))**n/(d*sqrt(d + e*x**S(2))))
rubi.add(rule309)
pattern310 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_/(d_ + x_**S(2)*WC('e', S(1)))**(S(3)/2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(1))))
rule310 = ReplacementRule(pattern310, lambda x, b, c, a, d, e, n : b**S(2)*n*(n + S(-1))*Int((a + b*acoth(c*x))**(n + S(-2))/(d + e*x**S(2))**(S(3)/2), x) - b*n*(a + b*acoth(c*x))**(n + S(-1))/(c*d*sqrt(d + e*x**S(2))) + x*(a + b*acoth(c*x))**n/(d*sqrt(d + e*x**S(2))))
rubi.add(rule310)
pattern311 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda n: Greater(n, S(1))), CustomConstraint(lambda p: Unequal(p, S(-3)/2)))
rule311 = ReplacementRule(pattern311, lambda p, x, b, c, a, d, e, n : b**S(2)*n*(n + S(-1))*Int((a + b*atanh(c*x))**(n + S(-2))*(d + e*x**S(2))**p, x)/(S(4)*(p + S(1))**S(2)) - b*n*(a + b*atanh(c*x))**(n + S(-1))*(d + e*x**S(2))**(p + S(1))/(S(4)*c*d*(p + S(1))**S(2)) - x*(a + b*atanh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(S(2)*d*(p + S(1))) + (S(2)*p + S(3))*Int((a + b*atanh(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/(S(2)*d*(p + S(1))))
rubi.add(rule311)
pattern312 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda n: Greater(n, S(1))), CustomConstraint(lambda p: Unequal(p, S(-3)/2)))
rule312 = ReplacementRule(pattern312, lambda p, x, b, c, a, d, e, n : b**S(2)*n*(n + S(-1))*Int((a + b*acoth(c*x))**(n + S(-2))*(d + e*x**S(2))**p, x)/(S(4)*(p + S(1))**S(2)) - b*n*(a + b*acoth(c*x))**(n + S(-1))*(d + e*x**S(2))**(p + S(1))/(S(4)*c*d*(p + S(1))**S(2)) - x*(a + b*acoth(c*x))**n*(d + e*x**S(2))**(p + S(1))/(S(2)*d*(p + S(1))) + (S(2)*p + S(3))*Int((a + b*acoth(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/(S(2)*d*(p + S(1))))
rubi.add(rule312)
pattern313 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda n: Less(n, S(-1))))
rule313 = ReplacementRule(pattern313, lambda p, x, b, c, a, d, e, n : S(2)*c*(p + S(1))*Int(x*(a + b*atanh(c*x))**(n + S(1))*(d + e*x**S(2))**p, x)/(b*(n + S(1))) + (a + b*atanh(c*x))**(n + S(1))*(d + e*x**S(2))**(p + S(1))/(b*c*d*(n + S(1))))
rubi.add(rule313)
pattern314 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda n: Less(n, S(-1))))
rule314 = ReplacementRule(pattern314, lambda p, x, b, c, a, d, e, n : S(2)*c*(p + S(1))*Int(x*(a + b*acoth(c*x))**(n + S(1))*(d + e*x**S(2))**p, x)/(b*(n + S(1))) + (a + b*acoth(c*x))**(n + S(1))*(d + e*x**S(2))**(p + S(1))/(b*c*d*(n + S(1))))
rubi.add(rule314)
pattern315 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: NegativeIntegerQ(S(2)*p + S(2))), CustomConstraint(lambda d, p: IntegerQ(p) | PositiveQ(d)))
rule315 = ReplacementRule(pattern315, lambda p, x, b, c, a, d, e, n : d**p*Subst(Int((a + b*x)**n*Cosh(x)**(-S(2)*p + S(-2)), x), x, atanh(c*x))/c)
rubi.add(rule315)
pattern316 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: NegativeIntegerQ(S(2)*p + S(2))), CustomConstraint(lambda d, p: Not(IntegerQ(p) | PositiveQ(d))))
rule316 = ReplacementRule(pattern316, lambda p, x, b, c, a, d, e, n : d**(p + S(1)/2)*sqrt(-c**S(2)*x**S(2) + S(1))*Int((a + b*atanh(c*x))**n*(-c**S(2)*x**S(2) + S(1))**p, x)/sqrt(d + e*x**S(2)))
rubi.add(rule316)
pattern317 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: NegativeIntegerQ(S(2)*p + S(2))), CustomConstraint(lambda p: IntegerQ(p)))
rule317 = ReplacementRule(pattern317, lambda p, x, b, c, a, d, e, n : -(-d)**p*Subst(Int((a + b*x)**n*sinh(x)**(-S(2)*p + S(-2)), x), x, acoth(c*x))/c)
rubi.add(rule317)
pattern318 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: NegativeIntegerQ(S(2)*p + S(2))), CustomConstraint(lambda p: Not(IntegerQ(p))))
rule318 = ReplacementRule(pattern318, lambda p, x, b, c, a, d, e, n : -x*(-d)**(p + S(1)/2)*sqrt((c**S(2)*x**S(2) + S(-1))/(c**S(2)*x**S(2)))*Subst(Int((a + b*x)**n*sinh(x)**(-S(2)*p + S(-2)), x), x, acoth(c*x))/sqrt(d + e*x**S(2)))
rubi.add(rule318)
pattern319 = Pattern(Integral(atanh(x_*WC('c', S(1)))/(x_**S(2)*WC('e', S(1)) + WC('d', S(0))), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)))
rule319 = ReplacementRule(pattern319, lambda c, e, d, x : -Int(log(-c*x + S(1))/(d + e*x**S(2)), x)/S(2) + Int(log(c*x + S(1))/(d + e*x**S(2)), x)/S(2))
rubi.add(rule319)
pattern320 = Pattern(Integral(acoth(x_*WC('c', S(1)))/(x_**S(2)*WC('e', S(1)) + WC('d', S(0))), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)))
rule320 = ReplacementRule(pattern320, lambda c, e, d, x : -Int(log(S(1) - S(1)/(c*x))/(d + e*x**S(2)), x)/S(2) + Int(log(S(1) + S(1)/(c*x))/(d + e*x**S(2)), x)/S(2))
rubi.add(rule320)
pattern321 = Pattern(Integral((a_ + WC('b', S(1))*atanh(x_*WC('c', S(1))))/(x_**S(2)*WC('e', S(1)) + WC('d', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)))
rule321 = ReplacementRule(pattern321, lambda x, b, c, a, d, e : a*Int(1/(d + e*x**S(2)), x) + b*Int(atanh(c*x)/(d + e*x**S(2)), x))
rubi.add(rule321)
pattern322 = Pattern(Integral((a_ + WC('b', S(1))*acoth(x_*WC('c', S(1))))/(x_**S(2)*WC('e', S(1)) + WC('d', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)))
rule322 = ReplacementRule(pattern322, lambda x, b, c, a, d, e : a*Int(1/(d + e*x**S(2)), x) + b*Int(acoth(c*x)/(d + e*x**S(2)), x))
rubi.add(rule322)
pattern323 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p: IntegerQ(p) | NegativeIntegerQ(p + S(1)/2)), )
def With323(p, x, b, c, a, d, e):
u = IntHide((d + e*x**S(2))**p, x)
return -b*c*Int(ExpandIntegrand(u/(-c**S(2)*x**S(2) + S(1)), x), x) + Dist(a + b*atanh(c*x), u, x)
rule323 = ReplacementRule(pattern323, lambda p, x, b, c, a, d, e : With323(p, x, b, c, a, d, e))
rubi.add(rule323)
pattern324 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p: IntegerQ(p) | NegativeIntegerQ(p + S(1)/2)), )
def With324(p, x, b, c, a, d, e):
u = IntHide((d + e*x**S(2))**p, x)
return -b*c*Int(ExpandIntegrand(u/(-c**S(2)*x**S(2) + S(1)), x), x) + Dist(a + b*acoth(c*x), u, x)
rule324 = ReplacementRule(pattern324, lambda p, x, b, c, a, d, e : With324(p, x, b, c, a, d, e))
rubi.add(rule324)
pattern325 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule325 = ReplacementRule(pattern325, lambda p, x, b, c, a, d, e, n : Int(ExpandIntegrand((a + b*atanh(c*x))**n*(d + e*x**S(2))**p, x), x))
rubi.add(rule325)
pattern326 = Pattern(Integral((d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule326 = ReplacementRule(pattern326, lambda p, x, b, c, a, d, e, n : Int(ExpandIntegrand((a + b*acoth(c*x))**n*(d + e*x**S(2))**p, x), x))
rubi.add(rule326)
pattern327 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule327 = ReplacementRule(pattern327, lambda p, x, b, c, a, d, e, n : Int((a + b*atanh(c*x))**n*(d + e*x**S(2))**p, x))
rubi.add(rule327)
pattern328 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule328 = ReplacementRule(pattern328, lambda p, x, b, c, a, d, e, n : Int((a + b*acoth(c*x))**n*(d + e*x**S(2))**p, x))
rubi.add(rule328)
pattern329 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Greater(m, S(1))))
rule329 = ReplacementRule(pattern329, lambda x, b, m, c, a, d, e, n : -d*Int(x**(m + S(-2))*(a + b*atanh(c*x))**n/(d + e*x**S(2)), x)/e + Int(x**(m + S(-2))*(a + b*atanh(c*x))**n, x)/e)
rubi.add(rule329)
pattern330 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Greater(m, S(1))))
rule330 = ReplacementRule(pattern330, lambda x, b, m, c, a, d, e, n : -d*Int(x**(m + S(-2))*(a + b*acoth(c*x))**n/(d + e*x**S(2)), x)/e + Int(x**(m + S(-2))*(a + b*acoth(c*x))**n, x)/e)
rubi.add(rule330)
pattern331 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Less(m, S(-1))))
rule331 = ReplacementRule(pattern331, lambda x, b, m, c, a, d, e, n : -e*Int(x**(m + S(2))*(a + b*atanh(c*x))**n/(d + e*x**S(2)), x)/d + Int(x**m*(a + b*atanh(c*x))**n, x)/d)
rubi.add(rule331)
pattern332 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Less(m, S(-1))))
rule332 = ReplacementRule(pattern332, lambda x, b, m, c, a, d, e, n : -e*Int(x**(m + S(2))*(a + b*acoth(c*x))**n/(d + e*x**S(2)), x)/d + Int(x**m*(a + b*acoth(c*x))**n, x)/d)
rubi.add(rule332)
pattern333 = Pattern(Integral(x_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule333 = ReplacementRule(pattern333, lambda x, b, c, a, d, e, n : Int((a + b*atanh(c*x))**n/(-c*x + S(1)), x)/(c*d) + (a + b*atanh(c*x))**(n + S(1))/(b*e*(n + S(1))))
rubi.add(rule333)
pattern334 = Pattern(Integral(x_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule334 = ReplacementRule(pattern334, lambda x, b, c, a, d, e, n : Int((a + b*acoth(c*x))**n/(-c*x + S(1)), x)/(c*d) + (a + b*acoth(c*x))**(n + S(1))/(b*e*(n + S(1))))
rubi.add(rule334)
pattern335 = Pattern(Integral(x_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: Not(PositiveIntegerQ(n))), CustomConstraint(lambda n: NonzeroQ(n + S(1))))
rule335 = ReplacementRule(pattern335, lambda x, b, c, a, d, e, n : x*(a + b*atanh(c*x))**(n + S(1))/(b*c*d*(n + S(1))) - Int((a + b*atanh(c*x))**(n + S(1)), x)/(b*c*d*(n + S(1))))
rubi.add(rule335)
pattern336 = Pattern(Integral(x_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: Not(PositiveIntegerQ(n))), CustomConstraint(lambda n: NonzeroQ(n + S(1))))
rule336 = ReplacementRule(pattern336, lambda x, b, c, a, d, e, n : -x*(a + b*acoth(c*x))**(n + S(1))/(b*c*d*(n + S(1))) - Int((a + b*acoth(c*x))**(n + S(1)), x)/(b*c*d*(n + S(1))))
rubi.add(rule336)
pattern337 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Greater(m, S(1))))
rule337 = ReplacementRule(pattern337, lambda x, b, m, c, a, d, e, n : -d*Int(x**(m + S(-2))*(a + b*atanh(c*x))**n/(d + e*x**S(2)), x)/e + Int(x**(m + S(-2))*(a + b*atanh(c*x))**n, x)/e)
rubi.add(rule337)
pattern338 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Greater(m, S(1))))
rule338 = ReplacementRule(pattern338, lambda x, b, m, c, a, d, e, n : -d*Int(x**(m + S(-2))*(a + b*acoth(c*x))**n/(d + e*x**S(2)), x)/e + Int(x**(m + S(-2))*(a + b*acoth(c*x))**n, x)/e)
rubi.add(rule338)
pattern339 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(x_*(d_ + x_**S(2)*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule339 = ReplacementRule(pattern339, lambda x, b, c, a, d, e, n : Int((a + b*atanh(c*x))**n/(x*(c*x + S(1))), x)/d + (a + b*atanh(c*x))**(n + S(1))/(b*d*(n + S(1))))
rubi.add(rule339)
pattern340 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(x_*(d_ + x_**S(2)*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule340 = ReplacementRule(pattern340, lambda x, b, c, a, d, e, n : Int((a + b*acoth(c*x))**n/(x*(c*x + S(1))), x)/d + (a + b*acoth(c*x))**(n + S(1))/(b*d*(n + S(1))))
rubi.add(rule340)
pattern341 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Less(m, S(-1))))
rule341 = ReplacementRule(pattern341, lambda x, b, m, c, a, d, e, n : -e*Int(x**(m + S(2))*(a + b*atanh(c*x))**n/(d + e*x**S(2)), x)/d + Int(x**m*(a + b*atanh(c*x))**n, x)/d)
rubi.add(rule341)
pattern342 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Less(m, S(-1))))
rule342 = ReplacementRule(pattern342, lambda x, b, m, c, a, d, e, n : -e*Int(x**(m + S(2))*(a + b*acoth(c*x))**n/(d + e*x**S(2)), x)/d + Int(x**m*(a + b*acoth(c*x))**n, x)/d)
rubi.add(rule342)
pattern343 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))))
rule343 = ReplacementRule(pattern343, lambda x, b, m, c, a, d, e, n : -m*Int(x**(m + S(-1))*(a + b*atanh(c*x))**(n + S(1)), x)/(b*c*d*(n + S(1))) + x**m*(a + b*atanh(c*x))**(n + S(1))/(b*c*d*(n + S(1))))
rubi.add(rule343)
pattern344 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))))
rule344 = ReplacementRule(pattern344, lambda x, b, m, c, a, d, e, n : -m*Int(x**(m + S(-1))*(a + b*acoth(c*x))**(n + S(1)), x)/(b*c*d*(n + S(1))) + x**m*(a + b*acoth(c*x))**(n + S(1))/(b*c*d*(n + S(1))))
rubi.add(rule344)
pattern345 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda a, m: Not(NonzeroQ(a) & Equal(m, S(1)))))
rule345 = ReplacementRule(pattern345, lambda x, b, m, c, a, d, e : Int(ExpandIntegrand(a + b*atanh(c*x), x**m/(d + e*x**S(2)), x), x))
rubi.add(rule345)
pattern346 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda a, m: Not(NonzeroQ(a) & Equal(m, S(1)))))
rule346 = ReplacementRule(pattern346, lambda x, b, m, c, a, d, e : Int(ExpandIntegrand(a + b*acoth(c*x), x**m/(d + e*x**S(2)), x), x))
rubi.add(rule346)
pattern347 = Pattern(Integral(x_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: NonzeroQ(p + S(1))))
rule347 = ReplacementRule(pattern347, lambda p, x, b, c, a, d, e, n : b*n*Int((a + b*atanh(c*x))**(n + S(-1))*(d + e*x**S(2))**p, x)/(S(2)*c*(p + S(1))) + (a + b*atanh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(S(2)*e*(p + S(1))))
rubi.add(rule347)
pattern348 = Pattern(Integral(x_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda p: NonzeroQ(p + S(1))))
rule348 = ReplacementRule(pattern348, lambda p, x, b, c, a, d, e, n : b*n*Int((a + b*acoth(c*x))**(n + S(-1))*(d + e*x**S(2))**p, x)/(S(2)*c*(p + S(1))) + (a + b*acoth(c*x))**n*(d + e*x**S(2))**(p + S(1))/(S(2)*e*(p + S(1))))
rubi.add(rule348)
pattern349 = Pattern(Integral(x_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_/(d_ + x_**S(2)*WC('e', S(1)))**S(2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda n: Unequal(n, S(-2))))
rule349 = ReplacementRule(pattern349, lambda x, b, c, a, d, e, n : x*(a + b*atanh(c*x))**(n + S(1))/(b*c*d*(d + e*x**S(2))*(n + S(1))) + S(4)*Int(x*(a + b*atanh(c*x))**(n + S(2))/(d + e*x**S(2))**S(2), x)/(b**S(2)*(n + S(1))*(n + S(2))) + (a + b*atanh(c*x))**(n + S(2))*(c**S(2)*x**S(2) + S(1))/(b**S(2)*e*(d + e*x**S(2))*(n + S(1))*(n + S(2))))
rubi.add(rule349)
pattern350 = Pattern(Integral(x_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_/(d_ + x_**S(2)*WC('e', S(1)))**S(2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda n: Unequal(n, S(-2))))
rule350 = ReplacementRule(pattern350, lambda x, b, c, a, d, e, n : x*(a + b*acoth(c*x))**(n + S(1))/(b*c*d*(d + e*x**S(2))*(n + S(1))) + S(4)*Int(x*(a + b*acoth(c*x))**(n + S(2))/(d + e*x**S(2))**S(2), x)/(b**S(2)*(n + S(1))*(n + S(2))) + (a + b*acoth(c*x))**(n + S(2))*(c**S(2)*x**S(2) + S(1))/(b**S(2)*e*(d + e*x**S(2))*(n + S(1))*(n + S(2))))
rubi.add(rule350)
pattern351 = Pattern(Integral(x_**S(2)*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda p: Unequal(p, S(-5)/2)))
rule351 = ReplacementRule(pattern351, lambda p, x, b, c, a, d, e : -b*(d + e*x**S(2))**(p + S(1))/(S(4)*c**S(3)*d*(p + S(1))**S(2)) - x*(a + b*atanh(c*x))*(d + e*x**S(2))**(p + S(1))/(S(2)*c**S(2)*d*(p + S(1))) + Int((a + b*atanh(c*x))*(d + e*x**S(2))**(p + S(1)), x)/(S(2)*c**S(2)*d*(p + S(1))))
rubi.add(rule351)
pattern352 = Pattern(Integral(x_**S(2)*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda p: Unequal(p, S(-5)/2)))
rule352 = ReplacementRule(pattern352, lambda p, x, b, c, a, d, e : -b*(d + e*x**S(2))**(p + S(1))/(S(4)*c**S(3)*d*(p + S(1))**S(2)) - x*(a + b*acoth(c*x))*(d + e*x**S(2))**(p + S(1))/(S(2)*c**S(2)*d*(p + S(1))) + Int((a + b*acoth(c*x))*(d + e*x**S(2))**(p + S(1)), x)/(S(2)*c**S(2)*d*(p + S(1))))
rubi.add(rule352)
pattern353 = Pattern(Integral(x_**S(2)*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1)))**S(2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule353 = ReplacementRule(pattern353, lambda x, b, c, a, d, e, n : -b*n*Int(x*(a + b*atanh(c*x))**(n + S(-1))/(d + e*x**S(2))**S(2), x)/(S(2)*c) + x*(a + b*atanh(c*x))**n/(S(2)*c**S(2)*d*(d + e*x**S(2))) - (a + b*atanh(c*x))**(n + S(1))/(S(2)*b*c**S(3)*d**S(2)*(n + S(1))))
rubi.add(rule353)
pattern354 = Pattern(Integral(x_**S(2)*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1)))**S(2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule354 = ReplacementRule(pattern354, lambda x, b, c, a, d, e, n : -b*n*Int(x*(a + b*acoth(c*x))**(n + S(-1))/(d + e*x**S(2))**S(2), x)/(S(2)*c) + x*(a + b*acoth(c*x))**n/(S(2)*c**S(2)*d*(d + e*x**S(2))) - (a + b*acoth(c*x))**(n + S(1))/(S(2)*b*c**S(3)*d**S(2)*(n + S(1))))
rubi.add(rule354)
pattern355 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(2))), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Less(p, S(-1))))
rule355 = ReplacementRule(pattern355, lambda p, x, b, m, c, a, d, e : -b*x**m*(d + e*x**S(2))**(p + S(1))/(c*d*m**S(2)) + x**(m + S(-1))*(a + b*atanh(c*x))*(d + e*x**S(2))**(p + S(1))/(c**S(2)*d*m) - (m + S(-1))*Int(x**(m + S(-2))*(a + b*atanh(c*x))*(d + e*x**S(2))**(p + S(1)), x)/(c**S(2)*d*m))
rubi.add(rule355)
pattern356 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(2))), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Less(p, S(-1))))
rule356 = ReplacementRule(pattern356, lambda p, x, b, m, c, a, d, e : -b*x**m*(d + e*x**S(2))**(p + S(1))/(c*d*m**S(2)) + x**(m + S(-1))*(a + b*acoth(c*x))*(d + e*x**S(2))**(p + S(1))/(c**S(2)*d*m) - (m + S(-1))*Int(x**(m + S(-2))*(a + b*acoth(c*x))*(d + e*x**S(2))**(p + S(1)), x)/(c**S(2)*d*m))
rubi.add(rule356)
pattern357 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(2))), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda n: Greater(n, S(1))))
rule357 = ReplacementRule(pattern357, lambda p, x, b, m, c, a, d, e, n : b**S(2)*n*(n + S(-1))*Int(x**m*(a + b*atanh(c*x))**(n + S(-2))*(d + e*x**S(2))**p, x)/m**S(2) - b*n*x**m*(a + b*atanh(c*x))**(n + S(-1))*(d + e*x**S(2))**(p + S(1))/(c*d*m**S(2)) + x**(m + S(-1))*(a + b*atanh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(c**S(2)*d*m) - (m + S(-1))*Int(x**(m + S(-2))*(a + b*atanh(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/(c**S(2)*d*m))
rubi.add(rule357)
pattern358 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(2))), CustomConstraint(lambda p, n: RationalQ(n, p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda n: Greater(n, S(1))))
rule358 = ReplacementRule(pattern358, lambda p, x, b, m, c, a, d, e, n : b**S(2)*n*(n + S(-1))*Int(x**m*(a + b*acoth(c*x))**(n + S(-2))*(d + e*x**S(2))**p, x)/m**S(2) - b*n*x**m*(a + b*acoth(c*x))**(n + S(-1))*(d + e*x**S(2))**(p + S(1))/(c*d*m**S(2)) + x**(m + S(-1))*(a + b*acoth(c*x))**n*(d + e*x**S(2))**(p + S(1))/(c**S(2)*d*m) - (m + S(-1))*Int(x**(m + S(-2))*(a + b*acoth(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/(c**S(2)*d*m))
rubi.add(rule358)
pattern359 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(2))), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))))
rule359 = ReplacementRule(pattern359, lambda p, x, b, m, c, a, d, e, n : -m*Int(x**(m + S(-1))*(a + b*atanh(c*x))**(n + S(1))*(d + e*x**S(2))**p, x)/(b*c*(n + S(1))) + x**m*(a + b*atanh(c*x))**(n + S(1))*(d + e*x**S(2))**(p + S(1))/(b*c*d*(n + S(1))))
rubi.add(rule359)
pattern360 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(2))), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(n, S(-1))))
rule360 = ReplacementRule(pattern360, lambda p, x, b, m, c, a, d, e, n : -m*Int(x**(m + S(-1))*(a + b*acoth(c*x))**(n + S(1))*(d + e*x**S(2))**p, x)/(b*c*(n + S(1))) + x**m*(a + b*acoth(c*x))**(n + S(1))*(d + e*x**S(2))**(p + S(1))/(b*c*d*(n + S(1))))
rubi.add(rule360)
pattern361 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(3))), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule361 = ReplacementRule(pattern361, lambda p, x, b, m, c, a, d, e, n : -b*c*n*Int(x**(m + S(1))*(a + b*atanh(c*x))**(n + S(-1))*(d + e*x**S(2))**p, x)/(m + S(1)) + x**(m + S(1))*(a + b*atanh(c*x))**n*(d + e*x**S(2))**(p + S(1))/(d*(m + S(1))))
rubi.add(rule361)
pattern362 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p, m: ZeroQ(m + S(2)*p + S(3))), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule362 = ReplacementRule(pattern362, lambda p, x, b, m, c, a, d, e, n : -b*c*n*Int(x**(m + S(1))*(a + b*acoth(c*x))**(n + S(-1))*(d + e*x**S(2))**p, x)/(m + S(1)) + x**(m + S(1))*(a + b*acoth(c*x))**n*(d + e*x**S(2))**(p + S(1))/(d*(m + S(1))))
rubi.add(rule362)
pattern363 = Pattern(Integral(x_**m_*sqrt(d_ + x_**S(2)*WC('e', S(1)))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda m: NonzeroQ(m + S(2))))
rule363 = ReplacementRule(pattern363, lambda x, b, m, c, a, d, e : -b*c*d*Int(x**(m + S(1))/sqrt(d + e*x**S(2)), x)/(m + S(2)) + d*Int(x**m*(a + b*atanh(c*x))/sqrt(d + e*x**S(2)), x)/(m + S(2)) + x**(m + S(1))*(a + b*atanh(c*x))*sqrt(d + e*x**S(2))/(m + S(2)))
rubi.add(rule363)
pattern364 = Pattern(Integral(x_**m_*sqrt(d_ + x_**S(2)*WC('e', S(1)))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda m: NonzeroQ(m + S(2))))
rule364 = ReplacementRule(pattern364, lambda x, b, m, c, a, d, e : -b*c*d*Int(x**(m + S(1))/sqrt(d + e*x**S(2)), x)/(m + S(2)) + d*Int(x**m*(a + b*acoth(c*x))/sqrt(d + e*x**S(2)), x)/(m + S(2)) + x**(m + S(1))*(a + b*acoth(c*x))*sqrt(d + e*x**S(2))/(m + S(2)))
rubi.add(rule364)
pattern365 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda p: Greater(p, S(1))))
rule365 = ReplacementRule(pattern365, lambda p, x, b, m, c, a, d, e, n : Int(ExpandIntegrand(x**m*(a + b*atanh(c*x))**n*(d + e*x**S(2))**p, x), x))
rubi.add(rule365)
pattern366 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda p: Greater(p, S(1))))
rule366 = ReplacementRule(pattern366, lambda p, x, b, m, c, a, d, e, n : Int(ExpandIntegrand(x**m*(a + b*acoth(c*x))**n*(d + e*x**S(2))**p, x), x))
rubi.add(rule366)
pattern367 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Greater(p, S(0))), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda n, p, m: RationalQ(m) | (IntegerQ(p) & EqQ(n, S(1)))))
rule367 = ReplacementRule(pattern367, lambda p, x, b, m, c, a, d, e, n : -c**S(2)*d*Int(x**(m + S(2))*(a + b*atanh(c*x))**n*(d + e*x**S(2))**(p + S(-1)), x) + d*Int(x**m*(a + b*atanh(c*x))**n*(d + e*x**S(2))**(p + S(-1)), x))
rubi.add(rule367)
pattern368 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Greater(p, S(0))), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda n, p, m: RationalQ(m) | (IntegerQ(p) & EqQ(n, S(1)))))
rule368 = ReplacementRule(pattern368, lambda p, x, b, m, c, a, d, e, n : -c**S(2)*d*Int(x**(m + S(2))*(a + b*acoth(c*x))**n*(d + e*x**S(2))**(p + S(-1)), x) + d*Int(x**m*(a + b*acoth(c*x))**n*(d + e*x**S(2))**(p + S(-1)), x))
rubi.add(rule368)
pattern369 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Greater(m, S(1))))
rule369 = ReplacementRule(pattern369, lambda x, b, m, c, a, d, e, n : b*n*Int(x**(m + S(-1))*(a + b*atanh(c*x))**(n + S(-1))/sqrt(d + e*x**S(2)), x)/(c*m) + (m + S(-1))*Int(x**(m + S(-2))*(a + b*atanh(c*x))**n/sqrt(d + e*x**S(2)), x)/(c**S(2)*m) - x**(m + S(-1))*(a + b*atanh(c*x))**n*sqrt(d + e*x**S(2))/(c**S(2)*d*m))
rubi.add(rule369)
pattern370 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Greater(m, S(1))))
rule370 = ReplacementRule(pattern370, lambda x, b, m, c, a, d, e, n : b*n*Int(x**(m + S(-1))*(a + b*acoth(c*x))**(n + S(-1))/sqrt(d + e*x**S(2)), x)/(c*m) + (m + S(-1))*Int(x**(m + S(-2))*(a + b*acoth(c*x))**n/sqrt(d + e*x**S(2)), x)/(c**S(2)*m) - x**(m + S(-1))*(a + b*acoth(c*x))**n*sqrt(d + e*x**S(2))/(c**S(2)*d*m))
rubi.add(rule370)
pattern371 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))/(x_*sqrt(d_ + x_**S(2)*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda d: PositiveQ(d)))
rule371 = ReplacementRule(pattern371, lambda x, b, c, a, d, e : b*PolyLog(S(2), -sqrt(-c*x + S(1))/sqrt(c*x + S(1)))/sqrt(d) - b*PolyLog(S(2), sqrt(-c*x + S(1))/sqrt(c*x + S(1)))/sqrt(d) - S(2)*(a + b*atanh(c*x))*atanh(sqrt(-c*x + S(1))/sqrt(c*x + S(1)))/sqrt(d))
rubi.add(rule371)
pattern372 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))/(x_*sqrt(d_ + x_**S(2)*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda d: PositiveQ(d)))
rule372 = ReplacementRule(pattern372, lambda x, b, c, a, d, e : b*PolyLog(S(2), -sqrt(-c*x + S(1))/sqrt(c*x + S(1)))/sqrt(d) - b*PolyLog(S(2), sqrt(-c*x + S(1))/sqrt(c*x + S(1)))/sqrt(d) - S(2)*(a + b*acoth(c*x))*atanh(sqrt(-c*x + S(1))/sqrt(c*x + S(1)))/sqrt(d))
rubi.add(rule372)
pattern373 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**n_/(x_*sqrt(d_ + x_**S(2)*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda d: PositiveQ(d)))
rule373 = ReplacementRule(pattern373, lambda x, b, c, a, d, e, n : Subst(Int((a + b*x)**n*csch(x), x), x, atanh(c*x))/sqrt(d))
rubi.add(rule373)
pattern374 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**n_/(x_*sqrt(d_ + x_**S(2)*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda d: PositiveQ(d)))
rule374 = ReplacementRule(pattern374, lambda x, b, c, a, d, e, n : -c*x*sqrt(S(1) - S(1)/(c**S(2)*x**S(2)))*Subst(Int((a + b*x)**n*sech(x), x), x, acoth(c*x))/sqrt(d + e*x**S(2)))
rubi.add(rule374)
pattern375 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(x_*sqrt(d_ + x_**S(2)*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda d: Not(PositiveQ(d))))
rule375 = ReplacementRule(pattern375, lambda x, b, c, a, d, e, n : sqrt(-c**S(2)*x**S(2) + S(1))*Int((a + b*atanh(c*x))**n/(x*sqrt(-c**S(2)*x**S(2) + S(1))), x)/sqrt(d + e*x**S(2)))
rubi.add(rule375)
pattern376 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(x_*sqrt(d_ + x_**S(2)*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda d: Not(PositiveQ(d))))
rule376 = ReplacementRule(pattern376, lambda x, b, c, a, d, e, n : sqrt(-c**S(2)*x**S(2) + S(1))*Int((a + b*acoth(c*x))**n/(x*sqrt(-c**S(2)*x**S(2) + S(1))), x)/sqrt(d + e*x**S(2)))
rubi.add(rule376)
pattern377 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(x_**S(2)*sqrt(d_ + x_**S(2)*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule377 = ReplacementRule(pattern377, lambda x, b, c, a, d, e, n : b*c*n*Int((a + b*atanh(c*x))**(n + S(-1))/(x*sqrt(d + e*x**S(2))), x) - (a + b*atanh(c*x))**n*sqrt(d + e*x**S(2))/(d*x))
rubi.add(rule377)
pattern378 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/(x_**S(2)*sqrt(d_ + x_**S(2)*WC('e', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))))
rule378 = ReplacementRule(pattern378, lambda x, b, c, a, d, e, n : b*c*n*Int((a + b*acoth(c*x))**(n + S(-1))/(x*sqrt(d + e*x**S(2))), x) - (a + b*acoth(c*x))**n*sqrt(d + e*x**S(2))/(d*x))
rubi.add(rule378)
pattern379 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Less(m, S(-1))), CustomConstraint(lambda m: Unequal(m, S(-2))))
rule379 = ReplacementRule(pattern379, lambda x, b, m, c, a, d, e, n : -b*c*n*Int(x**(m + S(1))*(a + b*atanh(c*x))**(n + S(-1))/sqrt(d + e*x**S(2)), x)/(m + S(1)) + c**S(2)*(m + S(2))*Int(x**(m + S(2))*(a + b*atanh(c*x))**n/sqrt(d + e*x**S(2)), x)/(m + S(1)) + x**(m + S(1))*(a + b*atanh(c*x))**n*sqrt(d + e*x**S(2))/(d*(m + S(1))))
rubi.add(rule379)
pattern380 = Pattern(Integral(x_**m_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))/sqrt(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda m: Less(m, S(-1))), CustomConstraint(lambda m: Unequal(m, S(-2))))
rule380 = ReplacementRule(pattern380, lambda x, b, m, c, a, d, e, n : -b*c*n*Int(x**(m + S(1))*(a + b*acoth(c*x))**(n + S(-1))/sqrt(d + e*x**S(2)), x)/(m + S(1)) + c**S(2)*(m + S(2))*Int(x**(m + S(2))*(a + b*acoth(c*x))**n/sqrt(d + e*x**S(2)), x)/(m + S(1)) + x**(m + S(1))*(a + b*acoth(c*x))**n*sqrt(d + e*x**S(2))/(d*(m + S(1))))
rubi.add(rule380)
pattern381 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, p, m: IntegersQ(m, n, S(2)*p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda m: Greater(m, S(1))), CustomConstraint(lambda n: Unequal(n, S(-1))))
rule381 = ReplacementRule(pattern381, lambda p, x, b, m, c, a, d, e, n : -d*Int(x**(m + S(-2))*(a + b*atanh(c*x))**n*(d + e*x**S(2))**p, x)/e + Int(x**(m + S(-2))*(a + b*atanh(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/e)
rubi.add(rule381)
pattern382 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, p, m: IntegersQ(m, n, S(2)*p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda m: Greater(m, S(1))), CustomConstraint(lambda n: Unequal(n, S(-1))))
rule382 = ReplacementRule(pattern382, lambda p, x, b, m, c, a, d, e, n : -d*Int(x**(m + S(-2))*(a + b*acoth(c*x))**n*(d + e*x**S(2))**p, x)/e + Int(x**(m + S(-2))*(a + b*acoth(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/e)
rubi.add(rule382)
pattern383 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, p, m: IntegersQ(m, n, S(2)*p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda m: Less(m, S(0))), CustomConstraint(lambda n: Unequal(n, S(-1))))
rule383 = ReplacementRule(pattern383, lambda p, x, b, m, c, a, d, e, n : -e*Int(x**(m + S(2))*(a + b*atanh(c*x))**n*(d + e*x**S(2))**p, x)/d + Int(x**m*(a + b*atanh(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/d)
rubi.add(rule383)
pattern384 = Pattern(Integral(x_**m_*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, p, m: IntegersQ(m, n, S(2)*p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda m: Less(m, S(0))), CustomConstraint(lambda n: Unequal(n, S(-1))))
rule384 = ReplacementRule(pattern384, lambda p, x, b, m, c, a, d, e, n : -e*Int(x**(m + S(2))*(a + b*acoth(c*x))**n*(d + e*x**S(2))**p, x)/d + Int(x**m*(a + b*acoth(c*x))**n*(d + e*x**S(2))**(p + S(1)), x)/d)
rubi.add(rule384)
pattern385 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, p, m: RationalQ(m, n, p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda p, m: NonzeroQ(m + S(2)*p + S(2))))
rule385 = ReplacementRule(pattern385, lambda p, x, b, m, c, a, d, e, n : c*(m + S(2)*p + S(2))*Int(x**(m + S(1))*(a + b*atanh(c*x))**(n + S(1))*(d + e*x**S(2))**p, x)/(b*(n + S(1))) - m*Int(x**(m + S(-1))*(a + b*atanh(c*x))**(n + S(1))*(d + e*x**S(2))**p, x)/(b*c*(n + S(1))) + x**m*(a + b*atanh(c*x))**(n + S(1))*(d + e*x**S(2))**(p + S(1))/(b*c*d*(n + S(1))))
rubi.add(rule385)
pattern386 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, p, m: RationalQ(m, n, p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda n: Less(n, S(-1))), CustomConstraint(lambda p, m: NonzeroQ(m + S(2)*p + S(2))))
rule386 = ReplacementRule(pattern386, lambda p, x, b, m, c, a, d, e, n : c*(m + S(2)*p + S(2))*Int(x**(m + S(1))*(a + b*acoth(c*x))**(n + S(1))*(d + e*x**S(2))**p, x)/(b*(n + S(1))) - m*Int(x**(m + S(-1))*(a + b*acoth(c*x))**(n + S(1))*(d + e*x**S(2))**p, x)/(b*c*(n + S(1))) + x**m*(a + b*acoth(c*x))**(n + S(1))*(d + e*x**S(2))**(p + S(1))/(b*c*d*(n + S(1))))
rubi.add(rule386)
pattern387 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda p, m: NegativeIntegerQ(m + S(2)*p + S(1))), CustomConstraint(lambda d, p: IntegerQ(p) | PositiveQ(d)))
rule387 = ReplacementRule(pattern387, lambda p, x, b, m, c, a, d, e, n : c**(-m + S(-1))*d**p*Subst(Int((a + b*x)**n*Cosh(x)**(-m - S(2)*p + S(-2))*sinh(x)**m, x), x, atanh(c*x)))
rubi.add(rule387)
pattern388 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda p, m: NegativeIntegerQ(m + S(2)*p + S(1))), CustomConstraint(lambda d, p: Not(IntegerQ(p) | PositiveQ(d))))
rule388 = ReplacementRule(pattern388, lambda p, x, b, m, c, a, d, e, n : d**(p + S(1)/2)*sqrt(-c**S(2)*x**S(2) + S(1))*Int(x**m*(a + b*atanh(c*x))**n*(-c**S(2)*x**S(2) + S(1))**p, x)/sqrt(d + e*x**S(2)))
rubi.add(rule388)
pattern389 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda p, m: NegativeIntegerQ(m + S(2)*p + S(1))), CustomConstraint(lambda p: IntegerQ(p)))
rule389 = ReplacementRule(pattern389, lambda p, x, b, m, c, a, d, e, n : -c**(-m + S(-1))*(-d)**p*Subst(Int((a + b*x)**n*Cosh(x)**m*sinh(x)**(-m - S(2)*p + S(-2)), x), x, acoth(c*x)))
rubi.add(rule389)
pattern390 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**p_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda p, m: NegativeIntegerQ(m + S(2)*p + S(1))), CustomConstraint(lambda p: Not(IntegerQ(p))))
rule390 = ReplacementRule(pattern390, lambda p, x, b, m, c, a, d, e, n : -c**(-m)*x*(-d)**(p + S(1)/2)*sqrt((c**S(2)*x**S(2) + S(-1))/(c**S(2)*x**S(2)))*Subst(Int((a + b*x)**n*Cosh(x)**m*sinh(x)**(-m - S(2)*p + S(-2)), x), x, acoth(c*x))/sqrt(d + e*x**S(2)))
rubi.add(rule390)
pattern391 = Pattern(Integral(x_*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda p: NonzeroQ(p + S(1))))
rule391 = ReplacementRule(pattern391, lambda p, x, b, c, a, d, e : -b*c*Int((d + e*x**S(2))**(p + S(1))/(-c**S(2)*x**S(2) + S(1)), x)/(S(2)*e*(p + S(1))) + (a + b*atanh(c*x))*(d + e*x**S(2))**(p + S(1))/(S(2)*e*(p + S(1))))
rubi.add(rule391)
pattern392 = Pattern(Integral(x_*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda p: NonzeroQ(p + S(1))))
rule392 = ReplacementRule(pattern392, lambda p, x, b, c, a, d, e : -b*c*Int((d + e*x**S(2))**(p + S(1))/(-c**S(2)*x**S(2) + S(1)), x)/(S(2)*e*(p + S(1))) + (a + b*acoth(c*x))*(d + e*x**S(2))**(p + S(1))/(S(2)*e*(p + S(1))))
rubi.add(rule392)
pattern393 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda p, m: (NegativeIntegerQ(m/S(2) + p + S(1)/2) & Not(NegativeIntegerQ(m/S(2) + S(-1)/2))) | (PositiveIntegerQ(p) & Not(NegativeIntegerQ(m/S(2) + S(-1)/2) & Greater(m + S(2)*p + S(3), S(0)))) | (PositiveIntegerQ(m/S(2) + S(1)/2) & Not(NegativeIntegerQ(p) & Greater(m + S(2)*p + S(3), S(0))))), )
def With393(p, x, b, m, c, a, d, e):
u = IntHide(x**m*(d + e*x**S(2))**p, x)
return -b*c*Int(SimplifyIntegrand(u/(-c**S(2)*x**S(2) + S(1)), x), x) + Dist(a + b*atanh(c*x), u, x)
rule393 = ReplacementRule(pattern393, lambda p, x, b, m, c, a, d, e : With393(p, x, b, m, c, a, d, e))
rubi.add(rule393)
pattern394 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda p, m: (NegativeIntegerQ(m/S(2) + p + S(1)/2) & Not(NegativeIntegerQ(m/S(2) + S(-1)/2))) | (PositiveIntegerQ(p) & Not(NegativeIntegerQ(m/S(2) + S(-1)/2) & Greater(m + S(2)*p + S(3), S(0)))) | (PositiveIntegerQ(m/S(2) + S(1)/2) & Not(NegativeIntegerQ(p) & Greater(m + S(2)*p + S(3), S(0))))), )
def With394(p, x, b, m, c, a, d, e):
u = IntHide(x**m*(d + e*x**S(2))**p, x)
return -b*c*Int(SimplifyIntegrand(u/(-c**S(2)*x**S(2) + S(1)), x), x) + Dist(a + b*acoth(c*x), u, x)
rule394 = ReplacementRule(pattern394, lambda p, x, b, m, c, a, d, e : With394(p, x, b, m, c, a, d, e))
rubi.add(rule394)
pattern395 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda p, m: Greater(p, S(0)) | (IntegerQ(m) & Less(p, S(-1)) & Unequal(m, S(1)))))
rule395 = ReplacementRule(pattern395, lambda p, x, b, m, c, a, d, e, n : Int(ExpandIntegrand((a + b*atanh(c*x))**n, x**m*(d + e*x**S(2))**p, x), x))
rubi.add(rule395)
pattern396 = Pattern(Integral(x_**WC('m', S(1))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda n: PositiveIntegerQ(n)), CustomConstraint(lambda p, m: Greater(p, S(0)) | (IntegerQ(m) & Less(p, S(-1)) & Unequal(m, S(1)))))
rule396 = ReplacementRule(pattern396, lambda p, x, b, m, c, a, d, e, n : Int(ExpandIntegrand((a + b*acoth(c*x))**n, x**m*(d + e*x**S(2))**p, x), x))
rubi.add(rule396)
pattern397 = Pattern(Integral(x_**WC('m', S(1))*(a_ + WC('b', S(1))*atanh(x_*WC('c', S(1))))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule397 = ReplacementRule(pattern397, lambda p, x, b, m, c, a, d, e : a*Int(x**m*(d + e*x**S(2))**p, x) + b*Int(x**m*(d + e*x**S(2))**p*atanh(c*x), x))
rubi.add(rule397)
pattern398 = Pattern(Integral(x_**WC('m', S(1))*(a_ + WC('b', S(1))*acoth(x_*WC('c', S(1))))*(d_ + x_**S(2)*WC('e', S(1)))**WC('p', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule398 = ReplacementRule(pattern398, lambda p, x, b, m, c, a, d, e : a*Int(x**m*(d + e*x**S(2))**p, x) + b*Int(x**m*(d + e*x**S(2))**p*acoth(c*x), x))
rubi.add(rule398)
pattern399 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule399 = ReplacementRule(pattern399, lambda p, x, b, m, c, a, d, e, n : Int(x**m*(a + b*atanh(c*x))**n*(d + e*x**S(2))**p, x))
rubi.add(rule399)
pattern400 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule400 = ReplacementRule(pattern400, lambda p, x, b, m, c, a, d, e, n : Int(x**m*(a + b*acoth(c*x))**n*(d + e*x**S(2))**p, x))
rubi.add(rule400)
pattern401 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))*atanh(u_)/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda c, u, x: ZeroQ(u**S(2) - (S(1) - S(2)/(c*x + S(1)))**S(2))))
rule401 = ReplacementRule(pattern401, lambda x, b, c, a, d, u, e, n : -Int((a + b*atanh(c*x))**n*log(-u + S(1))/(d + e*x**S(2)), x)/S(2) + Int((a + b*atanh(c*x))**n*log(u + S(1))/(d + e*x**S(2)), x)/S(2))
rubi.add(rule401)
pattern402 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))*acoth(u_)/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda c, u, x: ZeroQ(u**S(2) - (S(1) - S(2)/(c*x + S(1)))**S(2))))
rule402 = ReplacementRule(pattern402, lambda x, b, c, a, d, u, e, n : -Int((a + b*acoth(c*x))**n*log(SimplifyIntegrand(S(1) - S(1)/u, x))/(d + e*x**S(2)), x)/S(2) + Int((a + b*acoth(c*x))**n*log(SimplifyIntegrand(S(1) + 1/u, x))/(d + e*x**S(2)), x)/S(2))
rubi.add(rule402)
pattern403 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))*atanh(u_)/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda c, u, x: ZeroQ(u**S(2) - (S(1) - S(2)/(-c*x + S(1)))**S(2))))
rule403 = ReplacementRule(pattern403, lambda x, b, c, a, d, u, e, n : -Int((a + b*atanh(c*x))**n*log(-u + S(1))/(d + e*x**S(2)), x)/S(2) + Int((a + b*atanh(c*x))**n*log(u + S(1))/(d + e*x**S(2)), x)/S(2))
rubi.add(rule403)
pattern404 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))*acoth(u_)/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda c, u, x: ZeroQ(u**S(2) - (S(1) - S(2)/(-c*x + S(1)))**S(2))))
rule404 = ReplacementRule(pattern404, lambda x, b, c, a, d, u, e, n : -Int((a + b*acoth(c*x))**n*log(SimplifyIntegrand(S(1) - S(1)/u, x))/(d + e*x**S(2)), x)/S(2) + Int((a + b*acoth(c*x))**n*log(SimplifyIntegrand(S(1) + 1/u, x))/(d + e*x**S(2)), x)/S(2))
rubi.add(rule404)
pattern405 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))*log(u_)/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda c, u, x: ZeroQ(-(S(1) - S(2)/(c*x + S(1)))**S(2) + (-u + S(1))**S(2))))
rule405 = ReplacementRule(pattern405, lambda x, b, c, a, d, u, e, n : -b*n*Int((a + b*atanh(c*x))**(n + S(-1))*PolyLog(S(2), -u + S(1))/(d + e*x**S(2)), x)/S(2) + (a + b*atanh(c*x))**n*PolyLog(S(2), -u + S(1))/(S(2)*c*d))
rubi.add(rule405)
pattern406 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))*log(u_)/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda c, u, x: ZeroQ(-(S(1) - S(2)/(c*x + S(1)))**S(2) + (-u + S(1))**S(2))))
rule406 = ReplacementRule(pattern406, lambda x, b, c, a, d, u, e, n : -b*n*Int((a + b*acoth(c*x))**(n + S(-1))*PolyLog(S(2), -u + S(1))/(d + e*x**S(2)), x)/S(2) + (a + b*acoth(c*x))**n*PolyLog(S(2), -u + S(1))/(S(2)*c*d))
rubi.add(rule406)
pattern407 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))*log(u_)/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda c, u, x: ZeroQ(-(S(1) - S(2)/(-c*x + S(1)))**S(2) + (-u + S(1))**S(2))))
rule407 = ReplacementRule(pattern407, lambda x, b, c, a, d, u, e, n : b*n*Int((a + b*atanh(c*x))**(n + S(-1))*PolyLog(S(2), -u + S(1))/(d + e*x**S(2)), x)/S(2) - (a + b*atanh(c*x))**n*PolyLog(S(2), -u + S(1))/(S(2)*c*d))
rubi.add(rule407)
pattern408 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))*log(u_)/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda c, u, x: ZeroQ(-(S(1) - S(2)/(-c*x + S(1)))**S(2) + (-u + S(1))**S(2))))
rule408 = ReplacementRule(pattern408, lambda x, b, c, a, d, u, e, n : b*n*Int((a + b*acoth(c*x))**(n + S(-1))*PolyLog(S(2), -u + S(1))/(d + e*x**S(2)), x)/S(2) - (a + b*acoth(c*x))**n*PolyLog(S(2), -u + S(1))/(S(2)*c*d))
rubi.add(rule408)
pattern409 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))*PolyLog(p_, u_)/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda c, u, x: ZeroQ(u**S(2) - (S(1) - S(2)/(c*x + S(1)))**S(2))))
rule409 = ReplacementRule(pattern409, lambda p, x, b, c, a, d, u, e, n : b*n*Int((a + b*atanh(c*x))**(n + S(-1))*PolyLog(p + S(1), u)/(d + e*x**S(2)), x)/S(2) - (a + b*atanh(c*x))**n*PolyLog(p + S(1), u)/(S(2)*c*d))
rubi.add(rule409)
pattern410 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))*PolyLog(p_, u_)/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda c, u, x: ZeroQ(u**S(2) - (S(1) - S(2)/(c*x + S(1)))**S(2))))
rule410 = ReplacementRule(pattern410, lambda p, x, b, c, a, d, u, e, n : b*n*Int((a + b*acoth(c*x))**(n + S(-1))*PolyLog(p + S(1), u)/(d + e*x**S(2)), x)/S(2) - (a + b*acoth(c*x))**n*PolyLog(p + S(1), u)/(S(2)*c*d))
rubi.add(rule410)
pattern411 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))*PolyLog(p_, u_)/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda c, u, x: ZeroQ(u**S(2) - (S(1) - S(2)/(-c*x + S(1)))**S(2))))
rule411 = ReplacementRule(pattern411, lambda p, x, b, c, a, d, u, e, n : -b*n*Int((a + b*atanh(c*x))**(n + S(-1))*PolyLog(p + S(1), u)/(d + e*x**S(2)), x)/S(2) + (a + b*atanh(c*x))**n*PolyLog(p + S(1), u)/(S(2)*c*d))
rubi.add(rule411)
pattern412 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))*PolyLog(p_, u_)/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Greater(n, S(0))), CustomConstraint(lambda c, u, x: ZeroQ(u**S(2) - (S(1) - S(2)/(-c*x + S(1)))**S(2))))
rule412 = ReplacementRule(pattern412, lambda p, x, b, c, a, d, u, e, n : -b*n*Int((a + b*acoth(c*x))**(n + S(-1))*PolyLog(p + S(1), u)/(d + e*x**S(2)), x)/S(2) + (a + b*acoth(c*x))**n*PolyLog(p + S(1), u)/(S(2)*c*d))
rubi.add(rule412)
pattern413 = Pattern(Integral(S(1)/((d_ + x_**S(2)*WC('e', S(1)))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)))
rule413 = ReplacementRule(pattern413, lambda x, b, c, a, d, e : (-log(a + b*acoth(c*x)) + log(a + b*atanh(c*x)))/(b**S(2)*c*d*(acoth(c*x) - atanh(c*x))))
rubi.add(rule413)
pattern414 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('n', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, m: IntegersQ(m, n)), CustomConstraint(lambda n, m: Inequality(S(0), Less, n, LessEqual, m)))
rule414 = ReplacementRule(pattern414, lambda x, b, m, c, a, d, e, n : -n*Int((a + b*acoth(c*x))**(m + S(1))*(a + b*atanh(c*x))**(n + S(-1))/(d + e*x**S(2)), x)/(m + S(1)) + (a + b*acoth(c*x))**(m + S(1))*(a + b*atanh(c*x))**n/(b*c*d*(m + S(1))))
rubi.add(rule414)
pattern415 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**WC('n', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**WC('m', S(1))/(d_ + x_**S(2)*WC('e', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda n, m: IntegersQ(m, n)), CustomConstraint(lambda n, m: Less(S(0), n, m)))
rule415 = ReplacementRule(pattern415, lambda x, b, m, c, a, d, e, n : -n*Int((a + b*acoth(c*x))**(n + S(-1))*(a + b*atanh(c*x))**(m + S(1))/(d + e*x**S(2)), x)/(m + S(1)) + (a + b*acoth(c*x))**n*(a + b*atanh(c*x))**(m + S(1))/(b*c*d*(m + S(1))))
rubi.add(rule415)
pattern416 = Pattern(Integral(atanh(x_*WC('a', S(1)))/(c_ + x_**WC('n', S(1))*WC('d', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n: IntegerQ(n)), CustomConstraint(lambda c, a, d, n: Not(Equal(n, S(2)) & ZeroQ(a**S(2)*c + d))))
rule416 = ReplacementRule(pattern416, lambda x, c, a, d, n : -Int(log(-a*x + S(1))/(c + d*x**n), x)/S(2) + Int(log(a*x + S(1))/(c + d*x**n), x)/S(2))
rubi.add(rule416)
pattern417 = Pattern(Integral(acoth(x_*WC('a', S(1)))/(c_ + x_**WC('n', S(1))*WC('d', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n: IntegerQ(n)), CustomConstraint(lambda c, a, d, n: Not(Equal(n, S(2)) & ZeroQ(a**S(2)*c + d))))
rule417 = ReplacementRule(pattern417, lambda x, c, a, d, n : -Int(log(S(1) - S(1)/(a*x))/(c + d*x**n), x)/S(2) + Int(log(S(1) + S(1)/(a*x))/(c + d*x**n), x)/S(2))
rubi.add(rule417)
pattern418 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))*(WC('d', S(0)) + WC('e', S(1))*log(x_**S(2)*WC('g', S(1)) + WC('f', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)))
rule418 = ReplacementRule(pattern418, lambda x, b, g, c, f, a, d, e : -b*c*Int(x*(d + e*log(f + g*x**S(2)))/(-c**S(2)*x**S(2) + S(1)), x) - S(2)*e*g*Int(x**S(2)*(a + b*atanh(c*x))/(f + g*x**S(2)), x) + x*(a + b*atanh(c*x))*(d + e*log(f + g*x**S(2))))
rubi.add(rule418)
pattern419 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))*(WC('d', S(0)) + WC('e', S(1))*log(x_**S(2)*WC('g', S(1)) + WC('f', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)))
rule419 = ReplacementRule(pattern419, lambda x, b, g, c, f, a, d, e : -b*c*Int(x*(d + e*log(f + g*x**S(2)))/(-c**S(2)*x**S(2) + S(1)), x) - S(2)*e*g*Int(x**S(2)*(a + b*acoth(c*x))/(f + g*x**S(2)), x) + x*(a + b*acoth(c*x))*(d + e*log(f + g*x**S(2))))
rubi.add(rule419)
pattern420 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))*(WC('d', S(0)) + WC('e', S(1))*log(x_**S(2)*WC('g', S(1)) + WC('f', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda m: NegativeIntegerQ(m/S(2))))
rule420 = ReplacementRule(pattern420, lambda x, b, m, g, c, f, a, d, e : -b*c*Int(x**(m + S(1))*(d + e*log(f + g*x**S(2)))/(-c**S(2)*x**S(2) + S(1)), x)/(m + S(1)) - S(2)*e*g*Int(x**(m + S(2))*(a + b*atanh(c*x))/(f + g*x**S(2)), x)/(m + S(1)) + x**(m + S(1))*(a + b*atanh(c*x))*(d + e*log(f + g*x**S(2)))/(m + S(1)))
rubi.add(rule420)
pattern421 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))*(WC('d', S(0)) + WC('e', S(1))*log(x_**S(2)*WC('g', S(1)) + WC('f', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda m: NegativeIntegerQ(m/S(2))))
rule421 = ReplacementRule(pattern421, lambda x, b, m, g, c, f, a, d, e : -b*c*Int(x**(m + S(1))*(d + e*log(f + g*x**S(2)))/(-c**S(2)*x**S(2) + S(1)), x)/(m + S(1)) - S(2)*e*g*Int(x**(m + S(2))*(a + b*acoth(c*x))/(f + g*x**S(2)), x)/(m + S(1)) + x**(m + S(1))*(a + b*acoth(c*x))*(d + e*log(f + g*x**S(2)))/(m + S(1)))
rubi.add(rule421)
pattern422 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))*(WC('d', S(0)) + WC('e', S(1))*log(x_**S(2)*WC('g', S(1)) + WC('f', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda m: PositiveIntegerQ(m/S(2) + S(1)/2)), )
def With422(x, b, m, g, c, f, a, d, e):
u = IntHide(x**m*(d + e*log(f + g*x**S(2))), x)
return -b*c*Int(ExpandIntegrand(u/(-c**S(2)*x**S(2) + S(1)), x), x) + Dist(a + b*atanh(c*x), u, x)
rule422 = ReplacementRule(pattern422, lambda x, b, m, g, c, f, a, d, e : With422(x, b, m, g, c, f, a, d, e))
rubi.add(rule422)
pattern423 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))*(WC('d', S(0)) + WC('e', S(1))*log(x_**S(2)*WC('g', S(1)) + WC('f', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda m: PositiveIntegerQ(m/S(2) + S(1)/2)), )
def With423(x, b, m, g, c, f, a, d, e):
u = IntHide(x**m*(d + e*log(f + g*x**S(2))), x)
return -b*c*Int(ExpandIntegrand(u/(-c**S(2)*x**S(2) + S(1)), x), x) + Dist(a + b*acoth(c*x), u, x)
rule423 = ReplacementRule(pattern423, lambda x, b, m, g, c, f, a, d, e : With423(x, b, m, g, c, f, a, d, e))
rubi.add(rule423)
pattern424 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))*(WC('d', S(0)) + WC('e', S(1))*log(x_**S(2)*WC('g', S(1)) + WC('f', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda m: Unequal(m, S(-1))), )
def With424(x, b, m, g, c, f, a, d, e):
u = IntHide(x**m*(a + b*atanh(c*x)), x)
return -S(2)*e*g*Int(ExpandIntegrand(u*x/(f + g*x**S(2)), x), x) + Dist(d + e*log(f + g*x**S(2)), u, x)
rule424 = ReplacementRule(pattern424, lambda x, b, m, g, c, f, a, d, e : With424(x, b, m, g, c, f, a, d, e))
rubi.add(rule424)
pattern425 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))*(WC('d', S(0)) + WC('e', S(1))*log(x_**S(2)*WC('g', S(1)) + WC('f', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda m: Unequal(m, S(-1))), )
def With425(x, b, m, g, c, f, a, d, e):
u = IntHide(x**m*(a + b*acoth(c*x)), x)
return -S(2)*e*g*Int(ExpandIntegrand(u*x/(f + g*x**S(2)), x), x) + Dist(d + e*log(f + g*x**S(2)), u, x)
rule425 = ReplacementRule(pattern425, lambda x, b, m, g, c, f, a, d, e : With425(x, b, m, g, c, f, a, d, e))
rubi.add(rule425)
pattern426 = Pattern(Integral(x_*(WC('a', S(0)) + WC('b', S(1))*atanh(x_*WC('c', S(1))))**S(2)*(WC('d', S(0)) + WC('e', S(1))*log(f_ + x_**S(2)*WC('g', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda g, c, f: ZeroQ(c**S(2)*f + g)))
rule426 = ReplacementRule(pattern426, lambda x, b, g, c, f, a, d, e : b*c*e*Int(x**S(2)*(a + b*atanh(c*x))/(-c**S(2)*x**S(2) + S(1)), x) + b*Int((a + b*atanh(c*x))*(d + e*log(f + g*x**S(2))), x)/c - e*x**S(2)*(a + b*atanh(c*x))**S(2)/S(2) + (a + b*atanh(c*x))**S(2)*(d + e*log(f + g*x**S(2)))*(f + g*x**S(2))/(S(2)*g))
rubi.add(rule426)
pattern427 = Pattern(Integral(x_*(WC('a', S(0)) + WC('b', S(1))*acoth(x_*WC('c', S(1))))**S(2)*(WC('d', S(0)) + WC('e', S(1))*log(f_ + x_**S(2)*WC('g', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda g, x: FreeQ(g, x)), CustomConstraint(lambda g, c, f: ZeroQ(c**S(2)*f + g)))
rule427 = ReplacementRule(pattern427, lambda x, b, g, c, f, a, d, e : b*c*e*Int(x**S(2)*(a + b*acoth(c*x))/(-c**S(2)*x**S(2) + S(1)), x) + b*Int((a + b*acoth(c*x))*(d + e*log(f + g*x**S(2))), x)/c - e*x**S(2)*(a + b*acoth(c*x))**S(2)/S(2) + (a + b*acoth(c*x))**S(2)*(d + e*log(f + g*x**S(2)))*(f + g*x**S(2))/(S(2)*g))
rubi.add(rule427)
pattern428 = Pattern(Integral(exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda n: OddQ(n)))
rule428 = ReplacementRule(pattern428, lambda x, a, n : Int((-a*x + S(1))**(-n/S(2) + S(1)/2)*(a*x + S(1))**(n/S(2) + S(1)/2)/sqrt(-a**S(2)*x**S(2) + S(1)), x))
rubi.add(rule428)
pattern429 = Pattern(Integral(x_**WC('m', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n: OddQ(n)))
rule429 = ReplacementRule(pattern429, lambda x, a, n, m : Int(x**m*(-a*x + S(1))**(-n/S(2) + S(1)/2)*(a*x + S(1))**(n/S(2) + S(1)/2)/sqrt(-a**S(2)*x**S(2) + S(1)), x))
rubi.add(rule429)
pattern430 = Pattern(Integral(exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(OddQ(n))))
rule430 = ReplacementRule(pattern430, lambda x, a, n : Int((-a*x + S(1))**(-n/S(2))*(a*x + S(1))**(n/S(2)), x))
rubi.add(rule430)
pattern431 = Pattern(Integral(x_**WC('m', S(1))*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(OddQ(n))))
rule431 = ReplacementRule(pattern431, lambda x, a, n, m : Int(x**m*(-a*x + S(1))**(-n/S(2))*(a*x + S(1))**(n/S(2)), x))
rubi.add(rule431)
pattern432 = Pattern(Integral((c_ + x_*WC('d', S(1)))**WC('p', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a*c + d)), CustomConstraint(lambda n: IntegerQ(n/S(2) + S(-1)/2)), CustomConstraint(lambda p: IntegerQ(S(2)*p)))
rule432 = ReplacementRule(pattern432, lambda p, x, c, a, d, n : c**n*Int((c + d*x)**(-n + p)*(-a**S(2)*x**S(2) + S(1))**(n/S(2)), x))
rubi.add(rule432)
pattern433 = Pattern(Integral((c_ + x_*WC('d', S(1)))**WC('p', S(1))*(x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a*c + d)), CustomConstraint(lambda n: IntegerQ(n/S(2) + S(-1)/2)), CustomConstraint(lambda p, n: IntegerQ(p) | ZeroQ(-n/S(2) + p) | ZeroQ(-n/S(2) + p + S(-1))), CustomConstraint(lambda p: IntegerQ(S(2)*p)))
rule433 = ReplacementRule(pattern433, lambda p, x, m, f, c, a, d, e, n : c**n*Int((c + d*x)**(-n + p)*(e + f*x)**m*(-a**S(2)*x**S(2) + S(1))**(n/S(2)), x))
rubi.add(rule433)
pattern434 = Pattern(Integral((c_ + x_*WC('d', S(1)))**WC('p', S(1))*WC('u', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c**S(2) - d**S(2))), CustomConstraint(lambda c, p: IntegerQ(p) | PositiveQ(c)))
rule434 = ReplacementRule(pattern434, lambda p, x, c, a, d, u, n : c**p*Int(u*(S(1) + d*x/c)**p*(-a*x + S(1))**(-n/S(2))*(a*x + S(1))**(n/S(2)), x))
rubi.add(rule434)
pattern435 = Pattern(Integral((c_ + x_*WC('d', S(1)))**WC('p', S(1))*WC('u', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c**S(2) - d**S(2))), CustomConstraint(lambda c, p: Not(IntegerQ(p) | PositiveQ(c))))
rule435 = ReplacementRule(pattern435, lambda p, x, c, a, d, u, n : Int(u*(c + d*x)**p*(-a*x + S(1))**(-n/S(2))*(a*x + S(1))**(n/S(2)), x))
rubi.add(rule435)
pattern436 = Pattern(Integral((c_ + WC('d', S(1))/x_)**WC('p', S(1))*WC('u', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(-a**S(2)*d**S(2) + c**S(2))), CustomConstraint(lambda p: IntegerQ(p)))
rule436 = ReplacementRule(pattern436, lambda p, x, c, a, d, u, n : d**p*Int(u*x**(-p)*(c*x/d + S(1))**p*exp(n*atanh(a*x)), x))
rubi.add(rule436)
pattern437 = Pattern(Integral((c_ + WC('d', S(1))/x_)**p_*WC('u', S(1))*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(-a**S(2)*d**S(2) + c**S(2))), CustomConstraint(lambda p: Not(IntegerQ(p))), CustomConstraint(lambda n: IntegerQ(n/S(2))), CustomConstraint(lambda c: PositiveQ(c)))
rule437 = ReplacementRule(pattern437, lambda p, x, c, a, d, u, n : (S(-1))**(n/S(2))*c**p*Int(u*(S(1) - S(1)/(a*x))**(-n/S(2))*(S(1) + S(1)/(a*x))**(n/S(2))*(S(1) + d/(c*x))**p, x))
rubi.add(rule437)
pattern438 = Pattern(Integral((c_ + WC('d', S(1))/x_)**p_*WC('u', S(1))*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(-a**S(2)*d**S(2) + c**S(2))), CustomConstraint(lambda p: Not(IntegerQ(p))), CustomConstraint(lambda n: IntegerQ(n/S(2))), CustomConstraint(lambda c: Not(PositiveQ(c))))
rule438 = ReplacementRule(pattern438, lambda p, x, c, a, d, u, n : Int(u*(c + d/x)**p*(-a*x + S(1))**(-n/S(2))*(a*x + S(1))**(n/S(2)), x))
rubi.add(rule438)
pattern439 = Pattern(Integral((c_ + WC('d', S(1))/x_)**p_*WC('u', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(-a**S(2)*d**S(2) + c**S(2))), CustomConstraint(lambda p: Not(IntegerQ(p))))
rule439 = ReplacementRule(pattern439, lambda p, x, c, a, d, u, n : x**p*(c + d/x)**p*(c*x/d + S(1))**(-p)*Int(u*x**(-p)*(c*x/d + S(1))**p*exp(n*atanh(a*x)), x))
rubi.add(rule439)
pattern440 = Pattern(Integral(exp(n_*atanh(x_*WC('a', S(1))))/(c_ + x_**S(2)*WC('d', S(1)))**(S(3)/2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda n: Not(IntegerQ(n))))
rule440 = ReplacementRule(pattern440, lambda x, c, a, d, n : (-a*x + n)*exp(n*atanh(a*x))/(a*c*sqrt(c + d*x**S(2))*(n**S(2) + S(-1))))
rubi.add(rule440)
pattern441 = Pattern(Integral((c_ + x_**S(2)*WC('d', S(1)))**p_*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda n: Not(IntegerQ(n))), CustomConstraint(lambda p, n: NonzeroQ(n**S(2) - S(4)*(p + S(1))**S(2))), CustomConstraint(lambda p: IntegerQ(S(2)*p)))
rule441 = ReplacementRule(pattern441, lambda p, x, c, a, d, n : -S(2)*(p + S(1))*(S(2)*p + S(3))*Int((c + d*x**S(2))**(p + S(1))*exp(n*atanh(a*x)), x)/(c*(n**S(2) - S(4)*(p + S(1))**S(2))) + (c + d*x**S(2))**(p + S(1))*(S(2)*a*x*(p + S(1)) + n)*exp(n*atanh(a*x))/(a*c*(n**S(2) - S(4)*(p + S(1))**S(2))))
rubi.add(rule441)
pattern442 = Pattern(Integral(exp(WC('n', S(1))*atanh(x_*WC('a', S(1))))/(c_ + x_**S(2)*WC('d', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))))
rule442 = ReplacementRule(pattern442, lambda x, c, a, d, n : exp(n*atanh(a*x))/(a*c*n))
rubi.add(rule442)
pattern443 = Pattern(Integral((c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda n: PositiveIntegerQ(n/S(2) + S(1)/2)), CustomConstraint(lambda p, n: Not(IntegerQ(-n/S(2) + p))))
rule443 = ReplacementRule(pattern443, lambda p, x, c, a, d, n : c**p*Int((a*x + S(1))**n*(-a**S(2)*x**S(2) + S(1))**(-n/S(2) + p), x))
rubi.add(rule443)
pattern444 = Pattern(Integral((c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda p: IntegerQ(p)), CustomConstraint(lambda n: NegativeIntegerQ(n/S(2) + S(-1)/2)), CustomConstraint(lambda p, n: Not(IntegerQ(-n/S(2) + p))))
rule444 = ReplacementRule(pattern444, lambda p, x, c, a, d, n : c**p*Int((-a*x + S(1))**(-n)*(-a**S(2)*x**S(2) + S(1))**(n/S(2) + p), x))
rubi.add(rule444)
pattern445 = Pattern(Integral((c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda c, p: IntegerQ(p) | PositiveQ(c)))
rule445 = ReplacementRule(pattern445, lambda p, x, c, a, d, n : c**p*Int((-a*x + S(1))**(-n/S(2) + p)*(a*x + S(1))**(n/S(2) + p), x))
rubi.add(rule445)
pattern446 = Pattern(Integral((c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda c, p: Not(IntegerQ(p) | PositiveQ(c))), CustomConstraint(lambda n: PositiveIntegerQ(n/S(2))))
rule446 = ReplacementRule(pattern446, lambda p, x, c, a, d, n : c**(n/S(2))*Int((c + d*x**S(2))**(-n/S(2) + p)*(a*x + S(1))**n, x))
rubi.add(rule446)
pattern447 = Pattern(Integral((c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda c, p: Not(IntegerQ(p) | PositiveQ(c))), CustomConstraint(lambda n: NegativeIntegerQ(n/S(2))))
rule447 = ReplacementRule(pattern447, lambda p, x, c, a, d, n : c**(-n/S(2))*Int((c + d*x**S(2))**(n/S(2) + p)*(-a*x + S(1))**(-n), x))
rubi.add(rule447)
pattern448 = Pattern(Integral((c_ + x_**S(2)*WC('d', S(1)))**p_*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda c, p: Not(IntegerQ(p) | PositiveQ(c))))
rule448 = ReplacementRule(pattern448, lambda p, x, c, a, d, n : c**IntPart(p)*(c + d*x**S(2))**FracPart(p)*(-a**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int((-a**S(2)*x**S(2) + S(1))**p*exp(n*atanh(a*x)), x))
rubi.add(rule448)
pattern449 = Pattern(Integral(x_*exp(n_*atanh(x_*WC('a', S(1))))/(c_ + x_**S(2)*WC('d', S(1)))**(S(3)/2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda n: Not(IntegerQ(n))))
rule449 = ReplacementRule(pattern449, lambda x, c, a, d, n : (-a*n*x + S(1))*exp(n*atanh(a*x))/(d*sqrt(c + d*x**S(2))*(n**S(2) + S(-1))))
rubi.add(rule449)
pattern450 = Pattern(Integral(x_*(c_ + x_**S(2)*WC('d', S(1)))**p_*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda n: Not(IntegerQ(n))), CustomConstraint(lambda p: IntegerQ(S(2)*p)))
rule450 = ReplacementRule(pattern450, lambda p, x, c, a, d, n : -a*c*n*Int((c + d*x**S(2))**p*exp(n*atanh(a*x)), x)/(S(2)*d*(p + S(1))) + (c + d*x**S(2))**(p + S(1))*exp(n*atanh(a*x))/(S(2)*d*(p + S(1))))
rubi.add(rule450)
pattern451 = Pattern(Integral(x_**S(2)*(c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda p, n: ZeroQ(n**S(2) + S(2)*p + S(2))), CustomConstraint(lambda n: Not(IntegerQ(n))))
rule451 = ReplacementRule(pattern451, lambda p, x, c, a, d, n : (c + d*x**S(2))**(p + S(1))*(-a*n*x + S(1))*exp(n*atanh(a*x))/(a*d*n*(n**S(2) + S(-1))))
rubi.add(rule451)
pattern452 = Pattern(Integral(x_**S(2)*(c_ + x_**S(2)*WC('d', S(1)))**p_*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda n: Not(IntegerQ(n))), CustomConstraint(lambda p, n: NonzeroQ(n**S(2) - S(4)*(p + S(1))**S(2))), CustomConstraint(lambda p: IntegerQ(S(2)*p)))
rule452 = ReplacementRule(pattern452, lambda p, x, c, a, d, n : (n**S(2) + S(2)*p + S(2))*Int((c + d*x**S(2))**(p + S(1))*exp(n*atanh(a*x)), x)/(d*(n**S(2) - S(4)*(p + S(1))**S(2))) + (c + d*x**S(2))**(p + S(1))*(-S(2)*a*x*(p + S(1)) - n)*exp(n*atanh(a*x))/(a*d*(n**S(2) - S(4)*(p + S(1))**S(2))))
rubi.add(rule452)
pattern453 = Pattern(Integral(x_**WC('m', S(1))*(c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda c, p: IntegerQ(p) | PositiveQ(c)), CustomConstraint(lambda n: PositiveIntegerQ(n/S(2) + S(1)/2)), CustomConstraint(lambda p, n: Not(IntegerQ(-n/S(2) + p))))
rule453 = ReplacementRule(pattern453, lambda p, x, m, c, a, d, n : c**p*Int(x**m*(a*x + S(1))**n*(-a**S(2)*x**S(2) + S(1))**(-n/S(2) + p), x))
rubi.add(rule453)
pattern454 = Pattern(Integral(x_**WC('m', S(1))*(c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda c, p: IntegerQ(p) | PositiveQ(c)), CustomConstraint(lambda n: NegativeIntegerQ(n/S(2) + S(-1)/2)), CustomConstraint(lambda p, n: Not(IntegerQ(-n/S(2) + p))))
rule454 = ReplacementRule(pattern454, lambda p, x, m, c, a, d, n : c**p*Int(x**m*(-a*x + S(1))**(-n)*(-a**S(2)*x**S(2) + S(1))**(n/S(2) + p), x))
rubi.add(rule454)
pattern455 = Pattern(Integral(x_**WC('m', S(1))*(c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda c, p: IntegerQ(p) | PositiveQ(c)))
rule455 = ReplacementRule(pattern455, lambda p, x, m, c, a, d, n : c**p*Int(x**m*(-a*x + S(1))**(-n/S(2) + p)*(a*x + S(1))**(n/S(2) + p), x))
rubi.add(rule455)
pattern456 = Pattern(Integral(x_**WC('m', S(1))*(c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda c, p: Not(IntegerQ(p) | PositiveQ(c))), CustomConstraint(lambda n: PositiveIntegerQ(n/S(2))))
rule456 = ReplacementRule(pattern456, lambda p, x, m, c, a, d, n : c**(n/S(2))*Int(x**m*(c + d*x**S(2))**(-n/S(2) + p)*(a*x + S(1))**n, x))
rubi.add(rule456)
pattern457 = Pattern(Integral(x_**WC('m', S(1))*(c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda c, p: Not(IntegerQ(p) | PositiveQ(c))), CustomConstraint(lambda n: NegativeIntegerQ(n/S(2))))
rule457 = ReplacementRule(pattern457, lambda p, x, m, c, a, d, n : c**(-n/S(2))*Int(x**m*(c + d*x**S(2))**(n/S(2) + p)*(-a*x + S(1))**(-n), x))
rubi.add(rule457)
pattern458 = Pattern(Integral(x_**WC('m', S(1))*(c_ + x_**S(2)*WC('d', S(1)))**p_*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda c, p: Not(IntegerQ(p) | PositiveQ(c))), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))))
rule458 = ReplacementRule(pattern458, lambda p, x, m, c, a, d, n : c**IntPart(p)*(c + d*x**S(2))**FracPart(p)*(-a**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int(x**m*(-a**S(2)*x**S(2) + S(1))**p*exp(n*atanh(a*x)), x))
rubi.add(rule458)
pattern459 = Pattern(Integral(u_*(c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda c, p: IntegerQ(p) | PositiveQ(c)))
rule459 = ReplacementRule(pattern459, lambda p, x, c, a, d, u, n : c**p*Int(u*(-a*x + S(1))**(-n/S(2) + p)*(a*x + S(1))**(n/S(2) + p), x))
rubi.add(rule459)
pattern460 = Pattern(Integral(u_*(c_ + x_**S(2)*WC('d', S(1)))**p_*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda c, p: Not(IntegerQ(p) | PositiveQ(c))), CustomConstraint(lambda n: IntegerQ(n/S(2))))
rule460 = ReplacementRule(pattern460, lambda p, x, c, a, d, u, n : c**IntPart(p)*(c + d*x**S(2))**FracPart(p)*(-a*x + S(1))**(-FracPart(p))*(a*x + S(1))**(-FracPart(p))*Int(u*(-a*x + S(1))**(-n/S(2) + p)*(a*x + S(1))**(n/S(2) + p), x))
rubi.add(rule460)
pattern461 = Pattern(Integral(u_*(c_ + x_**S(2)*WC('d', S(1)))**p_*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda c, p: Not(IntegerQ(p) | PositiveQ(c))), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))))
rule461 = ReplacementRule(pattern461, lambda p, x, c, a, d, u, n : c**IntPart(p)*(c + d*x**S(2))**FracPart(p)*(-a**S(2)*x**S(2) + S(1))**(-FracPart(p))*Int(u*(-a**S(2)*x**S(2) + S(1))**p*exp(n*atanh(a*x)), x))
rubi.add(rule461)
pattern462 = Pattern(Integral((c_ + WC('d', S(1))/x_**S(2))**WC('p', S(1))*WC('u', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*d + c)), CustomConstraint(lambda p: IntegerQ(p)))
rule462 = ReplacementRule(pattern462, lambda p, x, c, a, d, u, n : d**p*Int(u*x**(-S(2)*p)*(-a**S(2)*x**S(2) + S(1))**p*exp(n*atanh(a*x)), x))
rubi.add(rule462)
pattern463 = Pattern(Integral((c_ + WC('d', S(1))/x_**S(2))**p_*WC('u', S(1))*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*d + c)), CustomConstraint(lambda p: Not(IntegerQ(p))), CustomConstraint(lambda n: IntegerQ(n/S(2))), CustomConstraint(lambda c: PositiveQ(c)))
rule463 = ReplacementRule(pattern463, lambda p, x, c, a, d, u, n : c**p*Int(u*(S(1) - S(1)/(a*x))**p*(S(1) + S(1)/(a*x))**p*exp(n*atanh(a*x)), x))
rubi.add(rule463)
pattern464 = Pattern(Integral((c_ + WC('d', S(1))/x_**S(2))**p_*WC('u', S(1))*exp(n_*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*d + c)), CustomConstraint(lambda p: Not(IntegerQ(p))), CustomConstraint(lambda n: IntegerQ(n/S(2))), CustomConstraint(lambda c: Not(PositiveQ(c))))
rule464 = ReplacementRule(pattern464, lambda p, x, c, a, d, u, n : x**(S(2)*p)*(c + d/x**S(2))**p*(-a*x + S(1))**(-p)*(a*x + S(1))**(-p)*Int(u*x**(-S(2)*p)*(-a*x + S(1))**p*(a*x + S(1))**p*exp(n*atanh(a*x)), x))
rubi.add(rule464)
pattern465 = Pattern(Integral((c_ + WC('d', S(1))/x_**S(2))**p_*WC('u', S(1))*exp(WC('n', S(1))*atanh(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*d + c)), CustomConstraint(lambda p: Not(IntegerQ(p))), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))))
rule465 = ReplacementRule(pattern465, lambda p, x, c, a, d, u, n : x**(S(2)*p)*(c + d/x**S(2))**p*(c*x**S(2)/d + S(1))**(-p)*Int(u*x**(-S(2)*p)*(c*x**S(2)/d + S(1))**p*exp(n*atanh(a*x)), x))
rubi.add(rule465)
pattern466 = Pattern(Integral(exp(WC('n', S(1))*atanh((a_ + x_*WC('b', S(1)))*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule466 = ReplacementRule(pattern466, lambda x, b, c, a, n : Int((-a*c - b*c*x + S(1))**(-n/S(2))*(a*c + b*c*x + S(1))**(n/S(2)), x))
rubi.add(rule466)
pattern467 = Pattern(Integral(x_**m_*exp(n_*atanh((a_ + x_*WC('b', S(1)))*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m: NegativeIntegerQ(m)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(S(-1), n, S(1))))
rule467 = ReplacementRule(pattern467, lambda x, b, m, c, a, n : S(4)*b**(-m + S(-1))*c**(-m + S(-1))*Subst(Int(x**(S(2)/n)*(x**(S(2)/n) + S(1))**(-m + S(-2))*(-a*c + x**(S(2)/n)*(-a*c + S(1)) + S(-1))**m, x), x, (-c*(a + b*x) + S(1))**(-n/S(2))*(c*(a + b*x) + S(1))**(n/S(2)))/n)
rubi.add(rule467)
pattern468 = Pattern(Integral((x_*WC('e', S(1)) + WC('d', S(0)))**WC('m', S(1))*exp(WC('n', S(1))*atanh((a_ + x_*WC('b', S(1)))*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule468 = ReplacementRule(pattern468, lambda x, b, m, c, a, d, e, n : Int((d + e*x)**m*(-a*c - b*c*x + S(1))**(-n/S(2))*(a*c + b*c*x + S(1))**(n/S(2)), x))
rubi.add(rule468)
pattern469 = Pattern(Integral((c_ + x_**S(2)*WC('e', S(1)) + x_*WC('d', S(1)))**WC('p', S(1))*WC('u', S(1))*exp(WC('n', S(1))*atanh(a_ + x_*WC('b', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda e, a, d, b: ZeroQ(-S(2)*a*e + b*d)), CustomConstraint(lambda c, a, e, b: ZeroQ(b**S(2)*c + e*(-a**S(2) + S(1)))), CustomConstraint(lambda c, a, p: IntegerQ(p) | PositiveQ(c/(-a**S(2) + S(1)))))
rule469 = ReplacementRule(pattern469, lambda p, x, b, c, a, d, u, e, n : (c/(-a**S(2) + S(1)))**p*Int(u*(-a - b*x + S(1))**(-n/S(2) + p)*(a + b*x + S(1))**(n/S(2) + p), x))
rubi.add(rule469)
pattern470 = Pattern(Integral((c_ + x_**S(2)*WC('e', S(1)) + x_*WC('d', S(1)))**WC('p', S(1))*WC('u', S(1))*exp(WC('n', S(1))*atanh(a_ + x_*WC('b', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda e, a, d, b: ZeroQ(-S(2)*a*e + b*d)), CustomConstraint(lambda c, a, e, b: ZeroQ(b**S(2)*c + e*(-a**S(2) + S(1)))), CustomConstraint(lambda c, a, p: Not(IntegerQ(p) | PositiveQ(c/(-a**S(2) + S(1))))))
rule470 = ReplacementRule(pattern470, lambda p, x, b, c, a, d, u, e, n : (c + d*x + e*x**S(2))**p*(-a**S(2) - S(2)*a*b*x - b**S(2)*x**S(2) + S(1))**(-p)*Int(u*(-a**S(2) - S(2)*a*b*x - b**S(2)*x**S(2) + S(1))**p*exp(n*atanh(a*x)), x))
rubi.add(rule470)
pattern471 = Pattern(Integral(WC('u', S(1))*exp(WC('n', S(1))*atanh(WC('c', S(1))/(x_*WC('b', S(1)) + WC('a', S(0))))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule471 = ReplacementRule(pattern471, lambda x, b, c, a, u, n : Int(u*exp(n*acoth(a/c + b*x/c)), x))
rubi.add(rule471)
pattern472 = Pattern(Integral(WC('u', S(1))*exp(n_*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda n: IntegerQ(n/S(2))))
rule472 = ReplacementRule(pattern472, lambda x, u, a, n : (S(-1))**(n/S(2))*Int(u*exp(n*atanh(a*x)), x))
rubi.add(rule472)
pattern473 = Pattern(Integral(exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda n: OddQ(n)))
rule473 = ReplacementRule(pattern473, lambda x, a, n : -Subst(Int((S(1) - x/a)**(-n/S(2) + S(1)/2)*(S(1) + x/a)**(n/S(2) + S(1)/2)/(x**S(2)*sqrt(S(1) - x**S(2)/a**S(2))), x), x, 1/x))
rubi.add(rule473)
pattern474 = Pattern(Integral(x_**WC('m', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda n: OddQ(n)), CustomConstraint(lambda m: IntegerQ(m)))
rule474 = ReplacementRule(pattern474, lambda x, a, n, m : -Subst(Int(x**(-m + S(-2))*(S(1) - x/a)**(-n/S(2) + S(1)/2)*(S(1) + x/a)**(n/S(2) + S(1)/2)/sqrt(S(1) - x**S(2)/a**S(2)), x), x, 1/x))
rubi.add(rule474)
pattern475 = Pattern(Integral(exp(n_*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(IntegerQ(n))))
rule475 = ReplacementRule(pattern475, lambda x, a, n : -Subst(Int((S(1) - x/a)**(-n/S(2))*(S(1) + x/a)**(n/S(2))/x**S(2), x), x, 1/x))
rubi.add(rule475)
pattern476 = Pattern(Integral(x_**WC('m', S(1))*exp(n_*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(IntegerQ(n))), CustomConstraint(lambda m: IntegerQ(m)))
rule476 = ReplacementRule(pattern476, lambda x, a, n, m : -Subst(Int(x**(-m + S(-2))*(S(1) - x/a)**(-n/S(2))*(S(1) + x/a)**(n/S(2)), x), x, 1/x))
rubi.add(rule476)
pattern477 = Pattern(Integral(x_**m_*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n: OddQ(n)), CustomConstraint(lambda m: Not(IntegerQ(m))))
rule477 = ReplacementRule(pattern477, lambda x, a, n, m : -x**m*(1/x)**m*Subst(Int(x**(-m + S(-2))*(S(1) - x/a)**(-n/S(2) + S(1)/2)*(S(1) + x/a)**(n/S(2) + S(1)/2)/sqrt(S(1) - x**S(2)/a**S(2)), x), x, 1/x))
rubi.add(rule477)
pattern478 = Pattern(Integral(x_**m_*exp(n_*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(IntegerQ(n))), CustomConstraint(lambda m: Not(IntegerQ(m))))
rule478 = ReplacementRule(pattern478, lambda x, a, n, m : -x**m*(1/x)**m*Subst(Int(x**(-m + S(-2))*(S(1) - x/a)**(-n/S(2))*(S(1) + x/a)**(n/S(2)), x), x, 1/x))
rubi.add(rule478)
pattern479 = Pattern(Integral((c_ + x_*WC('d', S(1)))**WC('p', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a*c + d)), CustomConstraint(lambda p, n: ZeroQ(-n/S(2) + p)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))))
rule479 = ReplacementRule(pattern479, lambda p, x, c, a, d, n : (c + d*x)**p*(a*x + S(1))*exp(n*acoth(a*x))/(a*(p + S(1))))
rubi.add(rule479)
pattern480 = Pattern(Integral((c_ + x_*WC('d', S(1)))**WC('p', S(1))*WC('u', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c**S(2) - d**S(2))), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda p: IntegerQ(p)))
rule480 = ReplacementRule(pattern480, lambda p, x, c, a, d, u, n : d**p*Int(u*x**p*(c/(d*x) + S(1))**p*exp(n*acoth(a*x)), x))
rubi.add(rule480)
pattern481 = Pattern(Integral((c_ + x_*WC('d', S(1)))**p_*WC('u', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c**S(2) - d**S(2))), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda p: Not(IntegerQ(p))))
rule481 = ReplacementRule(pattern481, lambda p, x, c, a, d, u, n : x**(-p)*(c + d*x)**p*(c/(d*x) + S(1))**(-p)*Int(u*x**p*(c/(d*x) + S(1))**p*exp(n*acoth(a*x)), x))
rubi.add(rule481)
pattern482 = Pattern(Integral((c_ + WC('d', S(1))/x_)**WC('p', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a*d + c)), CustomConstraint(lambda n: IntegerQ(n/S(2) + S(-1)/2)), CustomConstraint(lambda p, n: IntegerQ(p) | ZeroQ(-n/S(2) + p) | ZeroQ(-n/S(2) + p + S(-1))), CustomConstraint(lambda p: IntegerQ(S(2)*p)))
rule482 = ReplacementRule(pattern482, lambda p, x, c, a, d, n : -c**n*Subst(Int((S(1) - x**S(2)/a**S(2))**(n/S(2))*(c + d*x)**(-n + p)/x**S(2), x), x, 1/x))
rubi.add(rule482)
pattern483 = Pattern(Integral(x_**WC('m', S(1))*(c_ + WC('d', S(1))/x_)**WC('p', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a*d + c)), CustomConstraint(lambda n: IntegerQ(n/S(2) + S(-1)/2)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p, n, m: IntegerQ(p) | Less(S(-5), m, S(-1)) | ZeroQ(-n/S(2) + p) | ZeroQ(-n/S(2) + p + S(-1))), CustomConstraint(lambda p: IntegerQ(S(2)*p)))
rule483 = ReplacementRule(pattern483, lambda p, x, m, c, a, d, n : -c**n*Subst(Int(x**(-m + S(-2))*(S(1) - x**S(2)/a**S(2))**(n/S(2))*(c + d*x)**(-n + p), x), x, 1/x))
rubi.add(rule483)
pattern484 = Pattern(Integral((c_ + WC('d', S(1))/x_)**WC('p', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(-a**S(2)*d**S(2) + c**S(2))), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda c, p: IntegerQ(p) | PositiveQ(c)))
rule484 = ReplacementRule(pattern484, lambda p, x, c, a, d, n : -c**p*Subst(Int((S(1) - x/a)**(-n/S(2))*(S(1) + x/a)**(n/S(2))*(S(1) + d*x/c)**p/x**S(2), x), x, 1/x))
rubi.add(rule484)
pattern485 = Pattern(Integral(x_**WC('m', S(1))*(c_ + WC('d', S(1))/x_)**WC('p', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(-a**S(2)*d**S(2) + c**S(2))), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda c, p: IntegerQ(p) | PositiveQ(c)), CustomConstraint(lambda m: IntegerQ(m)))
rule485 = ReplacementRule(pattern485, lambda p, x, m, c, a, d, n : -c**p*Subst(Int(x**(-m + S(-2))*(S(1) - x/a)**(-n/S(2))*(S(1) + x/a)**(n/S(2))*(S(1) + d*x/c)**p, x), x, 1/x))
rubi.add(rule485)
pattern486 = Pattern(Integral(x_**m_*(c_ + WC('d', S(1))/x_)**WC('p', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(-a**S(2)*d**S(2) + c**S(2))), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda c, p: IntegerQ(p) | PositiveQ(c)), CustomConstraint(lambda m: Not(IntegerQ(m))))
rule486 = ReplacementRule(pattern486, lambda p, x, m, c, a, d, n : -c**p*x**m*(1/x)**m*Subst(Int(x**(-m + S(-2))*(S(1) - x/a)**(-n/S(2))*(S(1) + x/a)**(n/S(2))*(S(1) + d*x/c)**p, x), x, 1/x))
rubi.add(rule486)
pattern487 = Pattern(Integral((c_ + WC('d', S(1))/x_)**p_*WC('u', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(-a**S(2)*d**S(2) + c**S(2))), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda c, p: Not(IntegerQ(p) | PositiveQ(c))))
rule487 = ReplacementRule(pattern487, lambda p, x, c, a, d, u, n : (S(1) + d/(c*x))**(-p)*(c + d/x)**p*Int(u*(S(1) + d/(c*x))**p*exp(n*acoth(a*x)), x))
rubi.add(rule487)
pattern488 = Pattern(Integral(exp(WC('n', S(1))*acoth(x_*WC('a', S(1))))/(c_ + x_**S(2)*WC('d', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))))
rule488 = ReplacementRule(pattern488, lambda x, c, a, d, n : exp(n*acoth(a*x))/(a*c*n))
rubi.add(rule488)
pattern489 = Pattern(Integral(exp(n_*acoth(x_*WC('a', S(1))))/(c_ + x_**S(2)*WC('d', S(1)))**(S(3)/2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda n: Not(IntegerQ(n))))
rule489 = ReplacementRule(pattern489, lambda x, c, a, d, n : (-a*x + n)*exp(n*acoth(a*x))/(a*c*sqrt(c + d*x**S(2))*(n**S(2) + S(-1))))
rubi.add(rule489)
pattern490 = Pattern(Integral((c_ + x_**S(2)*WC('d', S(1)))**p_*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: Less(p, S(-1))), CustomConstraint(lambda p: Unequal(p, S(-3)/2)), CustomConstraint(lambda p, n: NonzeroQ(n**S(2) - S(4)*(p + S(1))**S(2))), CustomConstraint(lambda p, n: IntegerQ(p) | Not(IntegerQ(n))))
rule490 = ReplacementRule(pattern490, lambda p, x, c, a, d, n : -S(2)*(p + S(1))*(S(2)*p + S(3))*Int((c + d*x**S(2))**(p + S(1))*exp(n*acoth(a*x)), x)/(c*(n**S(2) - S(4)*(p + S(1))**S(2))) + (c + d*x**S(2))**(p + S(1))*(S(2)*a*x*(p + S(1)) + n)*exp(n*acoth(a*x))/(a*c*(n**S(2) - S(4)*(p + S(1))**S(2))))
rubi.add(rule490)
pattern491 = Pattern(Integral(x_*exp(n_*acoth(x_*WC('a', S(1))))/(c_ + x_**S(2)*WC('d', S(1)))**(S(3)/2), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda n: Not(IntegerQ(n))))
rule491 = ReplacementRule(pattern491, lambda x, c, a, d, n : (a*n*x + S(-1))*exp(n*acoth(a*x))/(a**S(2)*c*sqrt(c + d*x**S(2))*(n**S(2) + S(-1))))
rubi.add(rule491)
pattern492 = Pattern(Integral(x_*(c_ + x_**S(2)*WC('d', S(1)))**p_*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: LessEqual(p, S(-1))), CustomConstraint(lambda p: Unequal(p, S(-3)/2)), CustomConstraint(lambda p, n: NonzeroQ(n**S(2) - S(4)*(p + S(1))**S(2))), CustomConstraint(lambda p, n: IntegerQ(p) | Not(IntegerQ(n))))
rule492 = ReplacementRule(pattern492, lambda p, x, c, a, d, n : -n*(S(2)*p + S(3))*Int((c + d*x**S(2))**(p + S(1))*exp(n*acoth(a*x)), x)/(a*c*(n**S(2) - S(4)*(p + S(1))**S(2))) + (c + d*x**S(2))**(p + S(1))*(a*n*x + S(2)*p + S(2))*exp(n*acoth(a*x))/(a**S(2)*c*(n**S(2) - S(4)*(p + S(1))**S(2))))
rubi.add(rule492)
pattern493 = Pattern(Integral(x_**S(2)*(c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda p, n: ZeroQ(n**S(2) + S(2)*p + S(2))), CustomConstraint(lambda n: NonzeroQ(n**S(2) + S(-1))))
rule493 = ReplacementRule(pattern493, lambda p, x, c, a, d, n : (c + d*x**S(2))**(p + S(1))*(-S(2)*a*x*(p + S(1)) - n)*exp(n*acoth(a*x))/(a**S(3)*c*n**S(2)*(n**S(2) + S(-1))))
rubi.add(rule493)
pattern494 = Pattern(Integral(x_**S(2)*(c_ + x_**S(2)*WC('d', S(1)))**p_*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p: LessEqual(p, S(-1))), CustomConstraint(lambda p, n: NonzeroQ(n**S(2) + S(2)*p + S(2))), CustomConstraint(lambda p, n: NonzeroQ(n**S(2) - S(4)*(p + S(1))**S(2))), CustomConstraint(lambda p, n: IntegerQ(p) | Not(IntegerQ(n))))
rule494 = ReplacementRule(pattern494, lambda p, x, c, a, d, n : -(n**S(2) + S(2)*p + S(2))*Int((c + d*x**S(2))**(p + S(1))*exp(n*acoth(a*x)), x)/(a**S(2)*c*(n**S(2) - S(4)*(p + S(1))**S(2))) + (c + d*x**S(2))**(p + S(1))*(S(2)*a*x*(p + S(1)) + n)*exp(n*acoth(a*x))/(a**S(3)*c*(n**S(2) - S(4)*(p + S(1))**S(2))))
rubi.add(rule494)
pattern495 = Pattern(Integral(x_**WC('m', S(1))*(c_ + x_**S(2)*WC('d', S(1)))**p_*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: RationalQ(p)), CustomConstraint(lambda p, m: LessEqual(S(3), m, -S(2)*p + S(-2))), CustomConstraint(lambda p: IntegerQ(p)))
rule495 = ReplacementRule(pattern495, lambda p, x, m, c, a, d, n : -a**(-m + S(-1))*(-c)**p*Subst(Int(Cosh(x)**(-S(2)*p + S(-2))*exp(n*x)*coth(x)**(m + S(2)*p + S(2)), x), x, acoth(a*x)))
rubi.add(rule495)
pattern496 = Pattern(Integral((c_ + x_**S(2)*WC('d', S(1)))**WC('p', S(1))*WC('u', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda p: IntegerQ(p)))
rule496 = ReplacementRule(pattern496, lambda p, x, c, a, d, u, n : d**p*Int(u*x**(S(2)*p)*(S(1) - S(1)/(a**S(2)*x**S(2)))**p*exp(n*acoth(a*x)), x))
rubi.add(rule496)
pattern497 = Pattern(Integral((c_ + x_**S(2)*WC('d', S(1)))**p_*WC('u', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*c + d)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda p: Not(IntegerQ(p))))
rule497 = ReplacementRule(pattern497, lambda p, x, c, a, d, u, n : x**(-S(2)*p)*(S(1) - S(1)/(a**S(2)*x**S(2)))**(-p)*(c + d*x**S(2))**p*Int(u*x**(S(2)*p)*(S(1) - S(1)/(a**S(2)*x**S(2)))**p*exp(n*acoth(a*x)), x))
rubi.add(rule497)
pattern498 = Pattern(Integral((c_ + WC('d', S(1))/x_**S(2))**WC('p', S(1))*WC('u', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*d + c)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda c, p: IntegerQ(p) | PositiveQ(c)), CustomConstraint(lambda p, n: IntegersQ(S(2)*p, n/S(2) + p)))
rule498 = ReplacementRule(pattern498, lambda p, x, c, a, d, u, n : a**(-S(2)*p)*c**p*Int(u*x**(-S(2)*p)*(a*x + S(-1))**(-n/S(2) + p)*(a*x + S(1))**(n/S(2) + p), x))
rubi.add(rule498)
pattern499 = Pattern(Integral((c_ + WC('d', S(1))/x_**S(2))**WC('p', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*d + c)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda c, p: IntegerQ(p) | PositiveQ(c)), CustomConstraint(lambda p, n: Not(IntegersQ(S(2)*p, n/S(2) + p))))
rule499 = ReplacementRule(pattern499, lambda p, x, c, a, d, n : -c**p*Subst(Int((S(1) - x/a)**(-n/S(2) + p)*(S(1) + x/a)**(n/S(2) + p)/x**S(2), x), x, 1/x))
rubi.add(rule499)
pattern500 = Pattern(Integral(x_**WC('m', S(1))*(c_ + WC('d', S(1))/x_**S(2))**WC('p', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*d + c)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda c, p: IntegerQ(p) | PositiveQ(c)), CustomConstraint(lambda p, n: Not(IntegersQ(S(2)*p, n/S(2) + p))), CustomConstraint(lambda m: IntegerQ(m)))
rule500 = ReplacementRule(pattern500, lambda p, x, m, c, a, d, n : -c**p*Subst(Int(x**(-m + S(-2))*(S(1) - x/a)**(-n/S(2) + p)*(S(1) + x/a)**(n/S(2) + p), x), x, 1/x))
rubi.add(rule500)
pattern501 = Pattern(Integral(x_**m_*(c_ + WC('d', S(1))/x_**S(2))**WC('p', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*d + c)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda c, p: IntegerQ(p) | PositiveQ(c)), CustomConstraint(lambda p, n: Not(IntegersQ(S(2)*p, n/S(2) + p))), CustomConstraint(lambda m: Not(IntegerQ(m))))
rule501 = ReplacementRule(pattern501, lambda p, x, m, c, a, d, n : -c**p*x**m*(1/x)**m*Subst(Int(x**(-m + S(-2))*(S(1) - x/a)**(-n/S(2) + p)*(S(1) + x/a)**(n/S(2) + p), x), x, 1/x))
rubi.add(rule501)
pattern502 = Pattern(Integral((c_ + WC('d', S(1))/x_**S(2))**p_*WC('u', S(1))*exp(WC('n', S(1))*acoth(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda c, a, d: ZeroQ(a**S(2)*d + c)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda c, p: Not(IntegerQ(p) | PositiveQ(c))))
rule502 = ReplacementRule(pattern502, lambda p, x, c, a, d, u, n : c**IntPart(p)*(S(1) - S(1)/(a**S(2)*x**S(2)))**(-FracPart(p))*(c + d/x**S(2))**FracPart(p)*Int(u*(S(1) - S(1)/(a**S(2)*x**S(2)))**p*exp(n*acoth(a*x)), x))
rubi.add(rule502)
pattern503 = Pattern(Integral(WC('u', S(1))*exp(n_*acoth((a_ + x_*WC('b', S(1)))*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n: IntegerQ(n/S(2))))
rule503 = ReplacementRule(pattern503, lambda x, b, c, a, u, n : (S(-1))**(n/S(2))*Int(u*exp(n*atanh(c*(a + b*x))), x))
rubi.add(rule503)
pattern504 = Pattern(Integral(exp(WC('n', S(1))*acoth((a_ + x_*WC('b', S(1)))*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))))
rule504 = ReplacementRule(pattern504, lambda x, b, c, a, n : (c*(a + b*x))**(n/S(2))*(S(1) + S(1)/(c*(a + b*x)))**(n/S(2))*(a*c + b*c*x + S(1))**(-n/S(2))*Int((a*c + b*c*x + S(-1))**(-n/S(2))*(a*c + b*c*x + S(1))**(n/S(2)), x))
rubi.add(rule504)
pattern505 = Pattern(Integral(x_**m_*exp(n_*acoth((a_ + x_*WC('b', S(1)))*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m: NegativeIntegerQ(m)), CustomConstraint(lambda n: RationalQ(n)), CustomConstraint(lambda n: Less(S(-1), n, S(1))))
rule505 = ReplacementRule(pattern505, lambda x, b, m, c, a, n : -S(4)*b**(-m + S(-1))*c**(-m + S(-1))*Subst(Int(x**(S(2)/n)*(x**(S(2)/n) + S(-1))**(-m + S(-2))*(a*c + x**(S(2)/n)*(-a*c + S(1)) + S(1))**m, x), x, (S(1) - S(1)/(c*(a + b*x)))**(-n/S(2))*(S(1) + S(1)/(c*(a + b*x)))**(n/S(2)))/n)
rubi.add(rule505)
pattern506 = Pattern(Integral((x_*WC('e', S(1)) + WC('d', S(0)))**WC('m', S(1))*exp(WC('n', S(1))*acoth((a_ + x_*WC('b', S(1)))*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))))
rule506 = ReplacementRule(pattern506, lambda x, b, m, c, a, d, e, n : (c*(a + b*x))**(n/S(2))*(S(1) + S(1)/(c*(a + b*x)))**(n/S(2))*(a*c + b*c*x + S(1))**(-n/S(2))*Int((d + e*x)**m*(a*c + b*c*x + S(-1))**(-n/S(2))*(a*c + b*c*x + S(1))**(n/S(2)), x))
rubi.add(rule506)
pattern507 = Pattern(Integral((c_ + x_**S(2)*WC('e', S(1)) + x_*WC('d', S(1)))**WC('p', S(1))*WC('u', S(1))*exp(WC('n', S(1))*acoth(a_ + x_*WC('b', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda e, a, d, b: ZeroQ(-S(2)*a*e + b*d)), CustomConstraint(lambda c, a, e, b: ZeroQ(b**S(2)*c + e*(-a**S(2) + S(1)))), CustomConstraint(lambda c, a, p: IntegerQ(p) | PositiveQ(c/(-a**S(2) + S(1)))))
rule507 = ReplacementRule(pattern507, lambda p, x, b, c, a, d, u, e, n : (c/(-a**S(2) + S(1)))**p*((a + b*x + S(1))/(a + b*x))**(n/S(2))*((a + b*x)/(a + b*x + S(1)))**(n/S(2))*(-a - b*x + S(1))**(n/S(2))*(a + b*x + S(-1))**(-n/S(2))*Int(u*(-a - b*x + S(1))**(-n/S(2) + p)*(a + b*x + S(1))**(n/S(2) + p), x))
rubi.add(rule507)
pattern508 = Pattern(Integral((c_ + x_**S(2)*WC('e', S(1)) + x_*WC('d', S(1)))**WC('p', S(1))*WC('u', S(1))*exp(WC('n', S(1))*acoth(a_ + x_*WC('b', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda n: Not(IntegerQ(n/S(2)))), CustomConstraint(lambda e, a, d, b: ZeroQ(-S(2)*a*e + b*d)), CustomConstraint(lambda c, a, e, b: ZeroQ(b**S(2)*c + e*(-a**S(2) + S(1)))), CustomConstraint(lambda c, a, p: Not(IntegerQ(p) | PositiveQ(c/(-a**S(2) + S(1))))))
rule508 = ReplacementRule(pattern508, lambda p, x, b, c, a, d, u, e, n : (c + d*x + e*x**S(2))**p*(-a**S(2) - S(2)*a*b*x - b**S(2)*x**S(2) + S(1))**(-p)*Int(u*(-a**S(2) - S(2)*a*b*x - b**S(2)*x**S(2) + S(1))**p*exp(n*acoth(a*x)), x))
rubi.add(rule508)
pattern509 = Pattern(Integral(WC('u', S(1))*exp(WC('n', S(1))*acoth(WC('c', S(1))/(x_*WC('b', S(1)) + WC('a', S(0))))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule509 = ReplacementRule(pattern509, lambda x, b, c, a, u, n : Int(u*exp(n*atanh(a/c + b*x/c)), x))
rubi.add(rule509)
pattern510 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(c_ + x_*WC('d', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule510 = ReplacementRule(pattern510, lambda x, b, c, a, d, n : Subst(Int((a + b*atanh(x))**n, x), x, c + d*x)/d)
rubi.add(rule510)
pattern511 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(c_ + x_*WC('d', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule511 = ReplacementRule(pattern511, lambda x, b, c, a, d, n : Subst(Int((a + b*acoth(x))**n, x), x, c + d*x)/d)
rubi.add(rule511)
pattern512 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(c_ + x_*WC('d', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(PositiveIntegerQ(n))))
rule512 = ReplacementRule(pattern512, lambda x, b, c, a, d, n : Int((a + b*atanh(c + d*x))**n, x))
rubi.add(rule512)
pattern513 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(c_ + x_*WC('d', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(PositiveIntegerQ(n))))
rule513 = ReplacementRule(pattern513, lambda x, b, c, a, d, n : Int((a + b*acoth(c + d*x))**n, x))
rubi.add(rule513)
pattern514 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(c_ + x_*WC('d', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule514 = ReplacementRule(pattern514, lambda x, b, m, f, c, a, d, e, n : Subst(Int((a + b*atanh(x))**n*(f*x/d + (-c*f + d*e)/d)**m, x), x, c + d*x)/d)
rubi.add(rule514)
pattern515 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(c_ + x_*WC('d', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: PositiveIntegerQ(n)))
rule515 = ReplacementRule(pattern515, lambda x, b, m, f, c, a, d, e, n : Subst(Int((a + b*acoth(x))**n*(f*x/d + (-c*f + d*e)/d)**m, x), x, c + d*x)/d)
rubi.add(rule515)
pattern516 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**m_*(WC('a', S(0)) + WC('b', S(1))*atanh(c_ + x_*WC('d', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(PositiveIntegerQ(n))))
rule516 = ReplacementRule(pattern516, lambda x, b, m, f, c, a, d, e, n : Int((a + b*atanh(c + d*x))**n*(e + f*x)**m, x))
rubi.add(rule516)
pattern517 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**m_*(WC('a', S(0)) + WC('b', S(1))*acoth(c_ + x_*WC('d', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(PositiveIntegerQ(n))))
rule517 = ReplacementRule(pattern517, lambda x, b, m, f, c, a, d, e, n : Int((a + b*acoth(c + d*x))**n*(e + f*x)**m, x))
rubi.add(rule517)
pattern518 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*atanh(c_ + x_*WC('d', S(1))))**WC('n', S(1))*(x_**S(2)*WC('C', S(1)) + x_*WC('B', S(1)) + WC('A', S(0)))**WC('p', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda A, x: FreeQ(A, x)), CustomConstraint(lambda B, x: FreeQ(B, x)), CustomConstraint(lambda C, x: FreeQ(C, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda B, c, A, d: ZeroQ(S(2)*A*c*d + B*(-c**S(2) + S(1)))), CustomConstraint(lambda B, c, C, d: ZeroQ(-B*d + S(2)*C*c)))
rule518 = ReplacementRule(pattern518, lambda B, A, C, p, x, b, c, a, d, n : Subst(Int((a + b*atanh(x))**n*(C*x**S(2)/d**S(2) - C/d**S(2))**p, x), x, c + d*x)/d)
rubi.add(rule518)
pattern519 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acoth(c_ + x_*WC('d', S(1))))**WC('n', S(1))*(x_**S(2)*WC('C', S(1)) + x_*WC('B', S(1)) + WC('A', S(0)))**WC('p', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda A, x: FreeQ(A, x)), CustomConstraint(lambda B, x: FreeQ(B, x)), CustomConstraint(lambda C, x: FreeQ(C, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda B, c, A, d: ZeroQ(S(2)*A*c*d + B*(-c**S(2) + S(1)))), CustomConstraint(lambda B, c, C, d: ZeroQ(-B*d + S(2)*C*c)))
rule519 = ReplacementRule(pattern519, lambda B, A, C, p, x, b, c, a, d, n : Subst(Int((a + b*acoth(x))**n*(C*x**S(2)/d**S(2) + C/d**S(2))**p, x), x, c + d*x)/d)
rubi.add(rule519)
pattern520 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(c_ + x_*WC('d', S(1))))**WC('n', S(1))*(x_**S(2)*WC('C', S(1)) + x_*WC('B', S(1)) + WC('A', S(0)))**WC('p', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda A, x: FreeQ(A, x)), CustomConstraint(lambda B, x: FreeQ(B, x)), CustomConstraint(lambda C, x: FreeQ(C, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda B, c, A, d: ZeroQ(S(2)*A*c*d + B*(-c**S(2) + S(1)))), CustomConstraint(lambda B, c, C, d: ZeroQ(-B*d + S(2)*C*c)))
rule520 = ReplacementRule(pattern520, lambda B, A, C, p, x, b, m, f, c, a, d, e, n : Subst(Int((a + b*atanh(x))**n*(C*x**S(2)/d**S(2) - C/d**S(2))**p*(f*x/d + (-c*f + d*e)/d)**m, x), x, c + d*x)/d)
rubi.add(rule520)
pattern521 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(c_ + x_*WC('d', S(1))))**WC('n', S(1))*(x_**S(2)*WC('C', S(1)) + x_*WC('B', S(1)) + WC('A', S(0)))**WC('p', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda A, x: FreeQ(A, x)), CustomConstraint(lambda B, x: FreeQ(B, x)), CustomConstraint(lambda C, x: FreeQ(C, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda B, c, A, d: ZeroQ(S(2)*A*c*d + B*(-c**S(2) + S(1)))), CustomConstraint(lambda B, c, C, d: ZeroQ(-B*d + S(2)*C*c)))
rule521 = ReplacementRule(pattern521, lambda B, A, C, p, x, b, m, f, c, a, d, e, n : Subst(Int((a + b*acoth(x))**n*(C*x**S(2)/d**S(2) - C/d**S(2))**p*(f*x/d + (-c*f + d*e)/d)**m, x), x, c + d*x)/d)
rubi.add(rule521)
pattern522 = Pattern(Integral(atanh(a_ + x_*WC('b', S(1)))/(c_ + x_**WC('n', S(1))*WC('d', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n: RationalQ(n)))
rule522 = ReplacementRule(pattern522, lambda x, b, c, a, d, n : -Int(log(-a - b*x + S(1))/(c + d*x**n), x)/S(2) + Int(log(a + b*x + S(1))/(c + d*x**n), x)/S(2))
rubi.add(rule522)
pattern523 = Pattern(Integral(acoth(a_ + x_*WC('b', S(1)))/(c_ + x_**WC('n', S(1))*WC('d', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n: RationalQ(n)))
rule523 = ReplacementRule(pattern523, lambda x, b, c, a, d, n : -Int(log((a + b*x + S(-1))/(a + b*x))/(c + d*x**n), x)/S(2) + Int(log((a + b*x + S(1))/(a + b*x))/(c + d*x**n), x)/S(2))
rubi.add(rule523)
pattern524 = Pattern(Integral(atanh(a_ + x_*WC('b', S(1)))/(c_ + x_**n_*WC('d', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(RationalQ(n))))
rule524 = ReplacementRule(pattern524, lambda x, b, c, a, d, n : Int(atanh(a + b*x)/(c + d*x**n), x))
rubi.add(rule524)
pattern525 = Pattern(Integral(acoth(a_ + x_*WC('b', S(1)))/(c_ + x_**n_*WC('d', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda n: Not(RationalQ(n))))
rule525 = ReplacementRule(pattern525, lambda x, b, c, a, d, n : Int(acoth(a + b*x)/(c + d*x**n), x))
rubi.add(rule525)
pattern526 = Pattern(Integral(atanh(a_ + x_**n_*WC('b', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule526 = ReplacementRule(pattern526, lambda x, a, n, b : -b*n*Int(x**n/(-a**S(2) - S(2)*a*b*x**n - b**S(2)*x**(S(2)*n) + S(1)), x) + x*atanh(a + b*x**n))
rubi.add(rule526)
pattern527 = Pattern(Integral(acoth(a_ + x_**n_*WC('b', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule527 = ReplacementRule(pattern527, lambda x, a, n, b : -b*n*Int(x**n/(-a**S(2) - S(2)*a*b*x**n - b**S(2)*x**(S(2)*n) + S(1)), x) + x*acoth(a + b*x**n))
rubi.add(rule527)
pattern528 = Pattern(Integral(atanh(x_**WC('n', S(1))*WC('b', S(1)) + WC('a', S(0)))/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule528 = ReplacementRule(pattern528, lambda x, a, n, b : -Int(log(-a - b*x**n + S(1))/x, x)/S(2) + Int(log(a + b*x**n + S(1))/x, x)/S(2))
rubi.add(rule528)
pattern529 = Pattern(Integral(acoth(x_**WC('n', S(1))*WC('b', S(1)) + WC('a', S(0)))/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule529 = ReplacementRule(pattern529, lambda x, a, n, b : -Int(log(S(1) - S(1)/(a + b*x**n))/x, x)/S(2) + Int(log(S(1) + 1/(a + b*x**n))/x, x)/S(2))
rubi.add(rule529)
pattern530 = Pattern(Integral(x_**WC('m', S(1))*atanh(a_ + x_**n_*WC('b', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda m: Unequal(m + S(1), S(0))), CustomConstraint(lambda n, m: Unequal(m + S(1), n)))
rule530 = ReplacementRule(pattern530, lambda x, b, m, a, n : -b*n*Int(x**(m + n)/(-a**S(2) - S(2)*a*b*x**n - b**S(2)*x**(S(2)*n) + S(1)), x)/(m + S(1)) + x**(m + S(1))*atanh(a + b*x**n)/(m + S(1)))
rubi.add(rule530)
pattern531 = Pattern(Integral(x_**WC('m', S(1))*acoth(a_ + x_**n_*WC('b', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda n, m: RationalQ(m, n)), CustomConstraint(lambda m: Unequal(m + S(1), S(0))), CustomConstraint(lambda n, m: Unequal(m + S(1), n)))
rule531 = ReplacementRule(pattern531, lambda x, b, m, a, n : -b*n*Int(x**(m + n)/(-a**S(2) - S(2)*a*b*x**n - b**S(2)*x**(S(2)*n) + S(1)), x)/(m + S(1)) + x**(m + S(1))*acoth(a + b*x**n)/(m + S(1)))
rubi.add(rule531)
pattern532 = Pattern(Integral(atanh(f_**(x_*WC('d', S(1)) + WC('c', S(0)))*WC('b', S(1)) + WC('a', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda f, x: FreeQ(f, x)))
rule532 = ReplacementRule(pattern532, lambda x, b, c, f, a, d : -Int(log(-a - b*f**(c + d*x) + S(1)), x)/S(2) + Int(log(a + b*f**(c + d*x) + S(1)), x)/S(2))
rubi.add(rule532)
pattern533 = Pattern(Integral(acoth(f_**(x_*WC('d', S(1)) + WC('c', S(0)))*WC('b', S(1)) + WC('a', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda f, x: FreeQ(f, x)))
rule533 = ReplacementRule(pattern533, lambda x, b, c, f, a, d : -Int(log(S(1) - S(1)/(a + b*f**(c + d*x))), x)/S(2) + Int(log(S(1) + 1/(a + b*f**(c + d*x))), x)/S(2))
rubi.add(rule533)
pattern534 = Pattern(Integral(x_**WC('m', S(1))*atanh(f_**(x_*WC('d', S(1)) + WC('c', S(0)))*WC('b', S(1)) + WC('a', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda m: Greater(m, S(0))))
rule534 = ReplacementRule(pattern534, lambda x, b, m, c, f, a, d : -Int(x**m*log(-a - b*f**(c + d*x) + S(1)), x)/S(2) + Int(x**m*log(a + b*f**(c + d*x) + S(1)), x)/S(2))
rubi.add(rule534)
pattern535 = Pattern(Integral(x_**WC('m', S(1))*acoth(f_**(x_*WC('d', S(1)) + WC('c', S(0)))*WC('b', S(1)) + WC('a', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda m: Greater(m, S(0))))
rule535 = ReplacementRule(pattern535, lambda x, b, m, c, f, a, d : -Int(x**m*log(S(1) - S(1)/(a + b*f**(c + d*x))), x)/S(2) + Int(x**m*log(S(1) + 1/(a + b*f**(c + d*x))), x)/S(2))
rubi.add(rule535)
pattern536 = Pattern(Integral(WC('u', S(1))*atanh(WC('c', S(1))/(x_**WC('n', S(1))*WC('b', S(1)) + WC('a', S(0))))**WC('m', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m, x: FreeQ(m, x)))
rule536 = ReplacementRule(pattern536, lambda x, b, m, c, a, u, n : Int(u*acoth(a/c + b*x**n/c)**m, x))
rubi.add(rule536)
pattern537 = Pattern(Integral(WC('u', S(1))*acoth(WC('c', S(1))/(x_**WC('n', S(1))*WC('b', S(1)) + WC('a', S(0))))**WC('m', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m, x: FreeQ(m, x)))
rule537 = ReplacementRule(pattern537, lambda x, b, m, c, a, u, n : Int(u*atanh(a/c + b*x**n/c)**m, x))
rubi.add(rule537)
pattern538 = Pattern(Integral(S(1)/(sqrt(x_**S(2)*WC('b', S(1)) + WC('a', S(0)))*atanh(x_*WC('c', S(1))/sqrt(x_**S(2)*WC('b', S(1)) + WC('a', S(0))))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda c, b: ZeroQ(b - c**S(2))))
rule538 = ReplacementRule(pattern538, lambda c, a, b, x : log(atanh(c*x/sqrt(a + b*x**S(2))))/c)
rubi.add(rule538)
pattern539 = Pattern(Integral(S(1)/(sqrt(x_**S(2)*WC('b', S(1)) + WC('a', S(0)))*acoth(x_*WC('c', S(1))/sqrt(x_**S(2)*WC('b', S(1)) + WC('a', S(0))))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda c, b: ZeroQ(b - c**S(2))))
rule539 = ReplacementRule(pattern539, lambda c, a, b, x : -log(acoth(c*x/sqrt(a + b*x**S(2))))/c)
rubi.add(rule539)
pattern540 = Pattern(Integral(atanh(x_*WC('c', S(1))/sqrt(x_**S(2)*WC('b', S(1)) + WC('a', S(0))))**WC('m', S(1))/sqrt(x_**S(2)*WC('b', S(1)) + WC('a', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, b: ZeroQ(b - c**S(2))), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule540 = ReplacementRule(pattern540, lambda x, b, m, c, a : atanh(c*x/sqrt(a + b*x**S(2)))**(m + S(1))/(c*(m + S(1))))
rubi.add(rule540)
pattern541 = Pattern(Integral(acoth(x_*WC('c', S(1))/sqrt(x_**S(2)*WC('b', S(1)) + WC('a', S(0))))**WC('m', S(1))/sqrt(x_**S(2)*WC('b', S(1)) + WC('a', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, b: ZeroQ(b - c**S(2))), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule541 = ReplacementRule(pattern541, lambda x, b, m, c, a : -acoth(c*x/sqrt(a + b*x**S(2)))**(m + S(1))/(c*(m + S(1))))
rubi.add(rule541)
pattern542 = Pattern(Integral(atanh(x_*WC('c', S(1))/sqrt(x_**S(2)*WC('b', S(1)) + WC('a', S(0))))**WC('m', S(1))/sqrt(x_**S(2)*WC('e', S(1)) + WC('d', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, b: ZeroQ(b - c**S(2))), CustomConstraint(lambda e, a, d, b: ZeroQ(-a*e + b*d)))
rule542 = ReplacementRule(pattern542, lambda x, b, m, c, a, d, e : sqrt(a + b*x**S(2))*Int(atanh(c*x/sqrt(a + b*x**S(2)))**m/sqrt(a + b*x**S(2)), x)/sqrt(d + e*x**S(2)))
rubi.add(rule542)
pattern543 = Pattern(Integral(acoth(x_*WC('c', S(1))/sqrt(x_**S(2)*WC('b', S(1)) + WC('a', S(0))))**WC('m', S(1))/sqrt(x_**S(2)*WC('e', S(1)) + WC('d', S(0))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda c, b: ZeroQ(b - c**S(2))), CustomConstraint(lambda e, a, d, b: ZeroQ(-a*e + b*d)))
rule543 = ReplacementRule(pattern543, lambda x, b, m, c, a, d, e : sqrt(a + b*x**S(2))*Int(acoth(c*x/sqrt(a + b*x**S(2)))**m/sqrt(a + b*x**S(2)), x)/sqrt(d + e*x**S(2)))
rubi.add(rule543)
pattern544 = Pattern(Integral((x_**S(2)*WC('d', S(1)) + WC('c', S(0)))**n_*atanh(x_*WC('a', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n: IntegerQ(S(2)*n)), CustomConstraint(lambda n: LessEqual(n, S(-1))), )
def With544(x, c, a, d, n):
u = IntHide((c + d*x**S(2))**n, x)
return -a*Int(Dist(1/(-a**S(2)*x**S(2) + S(1)), u, x), x) + Dist(atanh(a*x), u, x)
rule544 = ReplacementRule(pattern544, lambda x, c, a, d, n : With544(x, c, a, d, n))
rubi.add(rule544)
pattern545 = Pattern(Integral((x_**S(2)*WC('d', S(1)) + WC('c', S(0)))**n_*acoth(x_*WC('a', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda n: IntegerQ(S(2)*n)), CustomConstraint(lambda n: LessEqual(n, S(-1))), )
def With545(x, c, a, d, n):
u = IntHide((c + d*x**S(2))**n, x)
return -a*Int(Dist(1/(-a**S(2)*x**S(2) + S(1)), u, x), x) + Dist(acoth(a*x), u, x)
rule545 = ReplacementRule(pattern545, lambda x, c, a, d, n : With545(x, c, a, d, n))
rubi.add(rule545)
pattern546 = Pattern(Integral(u_*v_**WC('n', S(1)), x_), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda v, x: QuadraticQ(v, x)), CustomConstraint(lambda n: IntegerQ(n)), CustomConstraint(lambda n: Less(n, S(0))), CustomConstraint(lambda v, x: PosQ(Discriminant(v, x))), CustomConstraint(lambda x, u: MatchQ(u, Condition(Optional(Pattern(r, Blank))*Pattern(f, Blank)**Pattern(w, Blank)))), CustomConstraint(lambda u, n, v, tmp, x, ArcTanh: Not(FalseQ(tmp)) & SameQ(Head(tmp), ArcTanh) & ZeroQ(-D(v, x)**S(2) + Discriminant(v, x)*Part(tmp, S(1))**S(2))))
def With546(v, x, u, n):
tmp = InverseFunctionOfLinear(u, x)
return (-Discriminant(v, x)/(S(4)*Coefficient(v, x, S(2))))**n*Subst(Int(SimplifyIntegrand(SubstForInverseFunction(u, tmp, x)*sech(x)**(S(2)*n + S(2)), x), x), x, tmp)/Coefficient(Part(tmp, S(1)), x, S(1))
rule546 = ReplacementRule(pattern546, lambda v, x, u, n : With546(v, x, u, n))
rubi.add(rule546)
pattern547 = Pattern(Integral(u_*v_**WC('n', S(1)), x_), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda v, x: QuadraticQ(v, x)), CustomConstraint(lambda n: IntegerQ(n)), CustomConstraint(lambda n: Less(n, S(0))), CustomConstraint(lambda v, x: PosQ(Discriminant(v, x))), CustomConstraint(lambda x, u: MatchQ(u, Condition(Optional(Pattern(r, Blank))*Pattern(f, Blank)**Pattern(w, Blank)))), CustomConstraint(lambda u, n, ArcCoth, v, tmp, x: Not(FalseQ(tmp)) & SameQ(Head(tmp), ArcCoth) & ZeroQ(-D(v, x)**S(2) + Discriminant(v, x)*Part(tmp, S(1))**S(2))))
def With547(v, x, u, n):
tmp = InverseFunctionOfLinear(u, x)
return (-Discriminant(v, x)/(S(4)*Coefficient(v, x, S(2))))**n*Subst(Int(SimplifyIntegrand((-csch(x)**S(2))**(n + S(1))*SubstForInverseFunction(u, tmp, x), x), x), x, tmp)/Coefficient(Part(tmp, S(1)), x, S(1))
rule547 = ReplacementRule(pattern547, lambda v, x, u, n : With547(v, x, u, n))
rubi.add(rule547)
pattern548 = Pattern(Integral(atanh(WC('c', S(0)) + WC('d', S(1))*tanh(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: ZeroQ((c - d)**S(2) + S(-1))))
rule548 = ReplacementRule(pattern548, lambda x, b, c, a, d : b*Int(x/(c*exp(S(2)*a + S(2)*b*x) + c - d), x) + x*atanh(c + d*tanh(a + b*x)))
rubi.add(rule548)
pattern549 = Pattern(Integral(acoth(WC('c', S(0)) + WC('d', S(1))*tanh(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: ZeroQ((c - d)**S(2) + S(-1))))
rule549 = ReplacementRule(pattern549, lambda x, b, c, a, d : b*Int(x/(c*exp(S(2)*a + S(2)*b*x) + c - d), x) + x*acoth(c + d*tanh(a + b*x)))
rubi.add(rule549)
pattern550 = Pattern(Integral(atanh(WC('c', S(0)) + WC('d', S(1))*coth(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: ZeroQ((c - d)**S(2) + S(-1))))
rule550 = ReplacementRule(pattern550, lambda x, b, c, a, d : b*Int(x/(-c*exp(S(2)*a + S(2)*b*x) + c - d), x) + x*atanh(c + d*coth(a + b*x)))
rubi.add(rule550)
pattern551 = Pattern(Integral(acoth(WC('c', S(0)) + WC('d', S(1))*coth(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: ZeroQ((c - d)**S(2) + S(-1))))
rule551 = ReplacementRule(pattern551, lambda x, b, c, a, d : b*Int(x/(-c*exp(S(2)*a + S(2)*b*x) + c - d), x) + x*acoth(c + d*coth(a + b*x)))
rubi.add(rule551)
pattern552 = Pattern(Integral(atanh(WC('c', S(0)) + WC('d', S(1))*tanh(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: NonzeroQ((c - d)**S(2) + S(-1))))
rule552 = ReplacementRule(pattern552, lambda x, b, c, a, d : b*(-c - d + S(1))*Int(x*exp(S(2)*a + S(2)*b*x)/(-c + d + (-c - d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x) - b*(c + d + S(1))*Int(x*exp(S(2)*a + S(2)*b*x)/(c - d + (c + d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x) + x*atanh(c + d*tanh(a + b*x)))
rubi.add(rule552)
pattern553 = Pattern(Integral(acoth(WC('c', S(0)) + WC('d', S(1))*tanh(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: NonzeroQ((c - d)**S(2) + S(-1))))
rule553 = ReplacementRule(pattern553, lambda x, b, c, a, d : b*(-c - d + S(1))*Int(x*exp(S(2)*a + S(2)*b*x)/(-c + d + (-c - d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x) - b*(c + d + S(1))*Int(x*exp(S(2)*a + S(2)*b*x)/(c - d + (c + d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x) + x*acoth(c + d*tanh(a + b*x)))
rubi.add(rule553)
pattern554 = Pattern(Integral(atanh(WC('c', S(0)) + WC('d', S(1))*coth(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: NonzeroQ((c - d)**S(2) + S(-1))))
rule554 = ReplacementRule(pattern554, lambda x, b, c, a, d : -b*(-c - d + S(1))*Int(x*exp(S(2)*a + S(2)*b*x)/(-c + d - (-c - d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x) + b*(c + d + S(1))*Int(x*exp(S(2)*a + S(2)*b*x)/(c - d - (c + d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x) + x*atanh(c + d*coth(a + b*x)))
rubi.add(rule554)
pattern555 = Pattern(Integral(acoth(WC('c', S(0)) + WC('d', S(1))*coth(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: NonzeroQ((c - d)**S(2) + S(-1))))
rule555 = ReplacementRule(pattern555, lambda x, b, c, a, d : -b*(-c - d + S(1))*Int(x*exp(S(2)*a + S(2)*b*x)/(-c + d - (-c - d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x) + b*(c + d + S(1))*Int(x*exp(S(2)*a + S(2)*b*x)/(c - d - (c + d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x) + x*acoth(c + d*coth(a + b*x)))
rubi.add(rule555)
pattern556 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*atanh(WC('c', S(0)) + WC('d', S(1))*tanh(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: ZeroQ((c - d)**S(2) + S(-1))))
rule556 = ReplacementRule(pattern556, lambda x, b, m, c, f, a, d, e : b*Int((e + f*x)**(m + S(1))/(c*exp(S(2)*a + S(2)*b*x) + c - d), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*atanh(c + d*tanh(a + b*x))/(f*(m + S(1))))
rubi.add(rule556)
pattern557 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*acoth(WC('c', S(0)) + WC('d', S(1))*tanh(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: ZeroQ((c - d)**S(2) + S(-1))))
rule557 = ReplacementRule(pattern557, lambda x, b, m, c, f, a, d, e : b*Int((e + f*x)**(m + S(1))/(c*exp(S(2)*a + S(2)*b*x) + c - d), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*acoth(c + d*tanh(a + b*x))/(f*(m + S(1))))
rubi.add(rule557)
pattern558 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*atanh(WC('c', S(0)) + WC('d', S(1))*coth(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: ZeroQ((c - d)**S(2) + S(-1))))
rule558 = ReplacementRule(pattern558, lambda x, b, m, c, f, a, d, e : b*Int((e + f*x)**(m + S(1))/(-c*exp(S(2)*a + S(2)*b*x) + c - d), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*atanh(c + d*coth(a + b*x))/(f*(m + S(1))))
rubi.add(rule558)
pattern559 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*acoth(WC('c', S(0)) + WC('d', S(1))*coth(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: ZeroQ((c - d)**S(2) + S(-1))))
rule559 = ReplacementRule(pattern559, lambda x, b, m, c, f, a, d, e : b*Int((e + f*x)**(m + S(1))/(-c*exp(S(2)*a + S(2)*b*x) + c - d), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*acoth(c + d*coth(a + b*x))/(f*(m + S(1))))
rubi.add(rule559)
pattern560 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*atanh(WC('c', S(0)) + WC('d', S(1))*tanh(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: NonzeroQ((c - d)**S(2) + S(-1))))
rule560 = ReplacementRule(pattern560, lambda x, b, m, c, f, a, d, e : b*(-c - d + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*a + S(2)*b*x)/(-c + d + (-c - d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x)/(f*(m + S(1))) - b*(c + d + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*a + S(2)*b*x)/(c - d + (c + d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*atanh(c + d*tanh(a + b*x))/(f*(m + S(1))))
rubi.add(rule560)
pattern561 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*acoth(WC('c', S(0)) + WC('d', S(1))*tanh(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: NonzeroQ((c - d)**S(2) + S(-1))))
rule561 = ReplacementRule(pattern561, lambda x, b, m, c, f, a, d, e : b*(-c - d + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*a + S(2)*b*x)/(-c + d + (-c - d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x)/(f*(m + S(1))) - b*(c + d + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*a + S(2)*b*x)/(c - d + (c + d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*acoth(c + d*tanh(a + b*x))/(f*(m + S(1))))
rubi.add(rule561)
pattern562 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*atanh(WC('c', S(0)) + WC('d', S(1))*coth(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: NonzeroQ((c - d)**S(2) + S(-1))))
rule562 = ReplacementRule(pattern562, lambda x, b, m, c, f, a, d, e : -b*(-c - d + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*a + S(2)*b*x)/(-c + d - (-c - d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x)/(f*(m + S(1))) + b*(c + d + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*a + S(2)*b*x)/(c - d - (c + d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*atanh(c + d*coth(a + b*x))/(f*(m + S(1))))
rubi.add(rule562)
pattern563 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*acoth(WC('c', S(0)) + WC('d', S(1))*coth(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: NonzeroQ((c - d)**S(2) + S(-1))))
rule563 = ReplacementRule(pattern563, lambda x, b, m, c, f, a, d, e : -b*(-c - d + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*a + S(2)*b*x)/(-c + d - (-c - d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x)/(f*(m + S(1))) + b*(c + d + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*a + S(2)*b*x)/(c - d - (c + d + S(1))*exp(S(2)*a + S(2)*b*x) + S(1)), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*acoth(c + d*coth(a + b*x))/(f*(m + S(1))))
rubi.add(rule563)
pattern564 = Pattern(Integral(atanh(tan(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)))
rule564 = ReplacementRule(pattern564, lambda x, a, b : -b*Int(x*sec(S(2)*a + S(2)*b*x), x) + x*atanh(tan(a + b*x)))
rubi.add(rule564)
pattern565 = Pattern(Integral(acoth(tan(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)))
rule565 = ReplacementRule(pattern565, lambda x, a, b : -b*Int(x*sec(S(2)*a + S(2)*b*x), x) + x*acoth(tan(a + b*x)))
rubi.add(rule565)
pattern566 = Pattern(Integral(atanh(cot(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)))
rule566 = ReplacementRule(pattern566, lambda x, a, b : -b*Int(x*sec(S(2)*a + S(2)*b*x), x) + x*atanh(cot(a + b*x)))
rubi.add(rule566)
pattern567 = Pattern(Integral(acoth(cot(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)))
rule567 = ReplacementRule(pattern567, lambda x, a, b : -b*Int(x*sec(S(2)*a + S(2)*b*x), x) + x*acoth(cot(a + b*x)))
rubi.add(rule567)
pattern568 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*atanh(tan(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)))
rule568 = ReplacementRule(pattern568, lambda x, b, m, f, a, e : -b*Int((e + f*x)**(m + S(1))*sec(S(2)*a + S(2)*b*x), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*atanh(tan(a + b*x))/(f*(m + S(1))))
rubi.add(rule568)
pattern569 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*acoth(tan(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)))
rule569 = ReplacementRule(pattern569, lambda x, b, m, f, a, e : -b*Int((e + f*x)**(m + S(1))*sec(S(2)*a + S(2)*b*x), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*acoth(tan(a + b*x))/(f*(m + S(1))))
rubi.add(rule569)
pattern570 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*atanh(cot(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)))
rule570 = ReplacementRule(pattern570, lambda x, b, m, f, a, e : -b*Int((e + f*x)**(m + S(1))*sec(S(2)*a + S(2)*b*x), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*atanh(cot(a + b*x))/(f*(m + S(1))))
rubi.add(rule570)
pattern571 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*acoth(cot(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)))
rule571 = ReplacementRule(pattern571, lambda x, b, m, f, a, e : -b*Int((e + f*x)**(m + S(1))*sec(S(2)*a + S(2)*b*x), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*acoth(cot(a + b*x))/(f*(m + S(1))))
rubi.add(rule571)
pattern572 = Pattern(Integral(atanh(WC('c', S(0)) + WC('d', S(1))*tan(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: ZeroQ((ImaginaryI*d + c)**S(2) + S(-1))))
rule572 = ReplacementRule(pattern572, lambda x, b, c, a, d : ImaginaryI*b*Int(x/(ImaginaryI*d + c*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + c), x) + x*atanh(c + d*tan(a + b*x)))
rubi.add(rule572)
pattern573 = Pattern(Integral(acoth(WC('c', S(0)) + WC('d', S(1))*tan(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: ZeroQ((ImaginaryI*d + c)**S(2) + S(-1))))
rule573 = ReplacementRule(pattern573, lambda x, b, c, a, d : ImaginaryI*b*Int(x/(ImaginaryI*d + c*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + c), x) + x*acoth(c + d*tan(a + b*x)))
rubi.add(rule573)
pattern574 = Pattern(Integral(atanh(WC('c', S(0)) + WC('d', S(1))*cot(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: ZeroQ((-ImaginaryI*d + c)**S(2) + S(-1))))
rule574 = ReplacementRule(pattern574, lambda x, b, c, a, d : ImaginaryI*b*Int(x/(-ImaginaryI*d - c*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + c), x) + x*atanh(c + d*cot(a + b*x)))
rubi.add(rule574)
pattern575 = Pattern(Integral(acoth(WC('c', S(0)) + WC('d', S(1))*cot(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: ZeroQ((-ImaginaryI*d + c)**S(2) + S(-1))))
rule575 = ReplacementRule(pattern575, lambda x, b, c, a, d : ImaginaryI*b*Int(x/(-ImaginaryI*d - c*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + c), x) + x*acoth(c + d*cot(a + b*x)))
rubi.add(rule575)
pattern576 = Pattern(Integral(atanh(WC('c', S(0)) + WC('d', S(1))*tan(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: NonzeroQ((ImaginaryI*d + c)**S(2) + S(-1))))
rule576 = ReplacementRule(pattern576, lambda x, b, c, a, d : -ImaginaryI*b*(-ImaginaryI*d + c + S(1))*Int(x*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(ImaginaryI*d + c + (-ImaginaryI*d + c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x) + ImaginaryI*b*(ImaginaryI*d - c + S(1))*Int(x*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(-ImaginaryI*d - c + (ImaginaryI*d - c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x) + x*atanh(c + d*tan(a + b*x)))
rubi.add(rule576)
pattern577 = Pattern(Integral(acoth(WC('c', S(0)) + WC('d', S(1))*tan(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: NonzeroQ((ImaginaryI*d + c)**S(2) + S(-1))))
rule577 = ReplacementRule(pattern577, lambda x, b, c, a, d : -ImaginaryI*b*(-ImaginaryI*d + c + S(1))*Int(x*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(ImaginaryI*d + c + (-ImaginaryI*d + c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x) + ImaginaryI*b*(ImaginaryI*d - c + S(1))*Int(x*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(-ImaginaryI*d - c + (ImaginaryI*d - c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x) + x*acoth(c + d*tan(a + b*x)))
rubi.add(rule577)
pattern578 = Pattern(Integral(atanh(WC('c', S(0)) + WC('d', S(1))*cot(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: NonzeroQ((-ImaginaryI*d + c)**S(2) + S(-1))))
rule578 = ReplacementRule(pattern578, lambda x, b, c, a, d : -ImaginaryI*b*(-ImaginaryI*d - c + S(1))*Int(x*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(ImaginaryI*d - c - (-ImaginaryI*d - c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x) + ImaginaryI*b*(ImaginaryI*d + c + S(1))*Int(x*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(-ImaginaryI*d + c - (ImaginaryI*d + c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x) + x*atanh(c + d*cot(a + b*x)))
rubi.add(rule578)
pattern579 = Pattern(Integral(acoth(WC('c', S(0)) + WC('d', S(1))*cot(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda c, d: NonzeroQ((-ImaginaryI*d + c)**S(2) + S(-1))))
rule579 = ReplacementRule(pattern579, lambda x, b, c, a, d : -ImaginaryI*b*(-ImaginaryI*d - c + S(1))*Int(x*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(ImaginaryI*d - c - (-ImaginaryI*d - c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x) + ImaginaryI*b*(ImaginaryI*d + c + S(1))*Int(x*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(-ImaginaryI*d + c - (ImaginaryI*d + c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x) + x*acoth(c + d*cot(a + b*x)))
rubi.add(rule579)
pattern580 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*atanh(WC('c', S(0)) + WC('d', S(1))*tan(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: ZeroQ((ImaginaryI*d + c)**S(2) + S(-1))))
rule580 = ReplacementRule(pattern580, lambda x, b, m, c, f, a, d, e : ImaginaryI*b*Int((e + f*x)**(m + S(1))/(ImaginaryI*d + c*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + c), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*atanh(c + d*tan(a + b*x))/(f*(m + S(1))))
rubi.add(rule580)
pattern581 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*acoth(WC('c', S(0)) + WC('d', S(1))*tan(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: ZeroQ((ImaginaryI*d + c)**S(2) + S(-1))))
rule581 = ReplacementRule(pattern581, lambda x, b, m, c, f, a, d, e : ImaginaryI*b*Int((e + f*x)**(m + S(1))/(ImaginaryI*d + c*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + c), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*acoth(c + d*tan(a + b*x))/(f*(m + S(1))))
rubi.add(rule581)
pattern582 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*atanh(WC('c', S(0)) + WC('d', S(1))*cot(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: ZeroQ((-ImaginaryI*d + c)**S(2) + S(-1))))
rule582 = ReplacementRule(pattern582, lambda x, b, m, c, f, a, d, e : ImaginaryI*b*Int((e + f*x)**(m + S(1))/(-ImaginaryI*d - c*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + c), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*atanh(c + d*cot(a + b*x))/(f*(m + S(1))))
rubi.add(rule582)
pattern583 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*acoth(WC('c', S(0)) + WC('d', S(1))*cot(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: ZeroQ((-ImaginaryI*d + c)**S(2) + S(-1))))
rule583 = ReplacementRule(pattern583, lambda x, b, m, c, f, a, d, e : ImaginaryI*b*Int((e + f*x)**(m + S(1))/(-ImaginaryI*d - c*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + c), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*acoth(c + d*cot(a + b*x))/(f*(m + S(1))))
rubi.add(rule583)
pattern584 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*atanh(WC('c', S(0)) + WC('d', S(1))*tan(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: NonzeroQ((ImaginaryI*d + c)**S(2) + S(-1))))
rule584 = ReplacementRule(pattern584, lambda x, b, m, c, f, a, d, e : -ImaginaryI*b*(-ImaginaryI*d + c + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(ImaginaryI*d + c + (-ImaginaryI*d + c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x)/(f*(m + S(1))) + ImaginaryI*b*(ImaginaryI*d - c + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(-ImaginaryI*d - c + (ImaginaryI*d - c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*atanh(c + d*tan(a + b*x))/(f*(m + S(1))))
rubi.add(rule584)
pattern585 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*acoth(WC('c', S(0)) + WC('d', S(1))*tan(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: NonzeroQ((ImaginaryI*d + c)**S(2) + S(-1))))
rule585 = ReplacementRule(pattern585, lambda x, b, m, c, f, a, d, e : -ImaginaryI*b*(-ImaginaryI*d + c + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(ImaginaryI*d + c + (-ImaginaryI*d + c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x)/(f*(m + S(1))) + ImaginaryI*b*(ImaginaryI*d - c + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(-ImaginaryI*d - c + (ImaginaryI*d - c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*acoth(c + d*tan(a + b*x))/(f*(m + S(1))))
rubi.add(rule585)
pattern586 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*atanh(WC('c', S(0)) + WC('d', S(1))*cot(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: NonzeroQ((-ImaginaryI*d + c)**S(2) + S(-1))))
rule586 = ReplacementRule(pattern586, lambda x, b, m, c, f, a, d, e : -ImaginaryI*b*(-ImaginaryI*d - c + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(ImaginaryI*d - c - (-ImaginaryI*d - c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x)/(f*(m + S(1))) + ImaginaryI*b*(ImaginaryI*d + c + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(-ImaginaryI*d + c - (ImaginaryI*d + c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*atanh(c + d*cot(a + b*x))/(f*(m + S(1))))
rubi.add(rule586)
pattern587 = Pattern(Integral((x_*WC('f', S(1)) + WC('e', S(0)))**WC('m', S(1))*acoth(WC('c', S(0)) + WC('d', S(1))*cot(x_*WC('b', S(1)) + WC('a', S(0)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda f, x: FreeQ(f, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)), CustomConstraint(lambda c, d: NonzeroQ((-ImaginaryI*d + c)**S(2) + S(-1))))
rule587 = ReplacementRule(pattern587, lambda x, b, m, c, f, a, d, e : -ImaginaryI*b*(-ImaginaryI*d - c + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(ImaginaryI*d - c - (-ImaginaryI*d - c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x)/(f*(m + S(1))) + ImaginaryI*b*(ImaginaryI*d + c + S(1))*Int((e + f*x)**(m + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x)/(-ImaginaryI*d + c - (ImaginaryI*d + c + S(1))*exp(S(2)*ImaginaryI*a + S(2)*ImaginaryI*b*x) + S(1)), x)/(f*(m + S(1))) + (e + f*x)**(m + S(1))*acoth(c + d*cot(a + b*x))/(f*(m + S(1))))
rubi.add(rule587)
pattern588 = Pattern(Integral(atanh(u_), x_), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)))
rule588 = ReplacementRule(pattern588, lambda x, u : x*atanh(u) - Int(SimplifyIntegrand(x*D(u, x)/(-u**S(2) + S(1)), x), x))
rubi.add(rule588)
pattern589 = Pattern(Integral(acoth(u_), x_), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)))
rule589 = ReplacementRule(pattern589, lambda x, u : x*acoth(u) - Int(SimplifyIntegrand(x*D(u, x)/(-u**S(2) + S(1)), x), x))
rubi.add(rule589)
pattern590 = Pattern(Integral((x_*WC('d', S(1)) + WC('c', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*atanh(u_)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda m: NonzeroQ(m + S(1))), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda x, m, c, d, u: Not(FunctionOfQ((c + d*x)**(m + S(1)), u, x))), CustomConstraint(lambda x, u, m: FalseQ(PowerVariableExpn(u, m + S(1), x))))
rule590 = ReplacementRule(pattern590, lambda x, b, m, c, a, d, u : -b*Int(SimplifyIntegrand((c + d*x)**(m + S(1))*D(u, x)/(-u**S(2) + S(1)), x), x)/(d*(m + S(1))) + (a + b*atanh(u))*(c + d*x)**(m + S(1))/(d*(m + S(1))))
rubi.add(rule590)
pattern591 = Pattern(Integral((x_*WC('d', S(1)) + WC('c', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acoth(u_)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda m: NonzeroQ(m + S(1))), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda x, m, c, d, u: Not(FunctionOfQ((c + d*x)**(m + S(1)), u, x))), CustomConstraint(lambda x, u, m: FalseQ(PowerVariableExpn(u, m + S(1), x))))
rule591 = ReplacementRule(pattern591, lambda x, b, m, c, a, d, u : -b*Int(SimplifyIntegrand((c + d*x)**(m + S(1))*D(u, x)/(-u**S(2) + S(1)), x), x)/(d*(m + S(1))) + (a + b*acoth(u))*(c + d*x)**(m + S(1))/(d*(m + S(1))))
rubi.add(rule591)
pattern592 = Pattern(Integral(v_*(WC('a', S(0)) + WC('b', S(1))*atanh(u_)), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda v, x: Not(MatchQ(v, Condition((x*Optional(Pattern(d, Blank)) + Optional(Pattern(c, Blank)))**Optional(Pattern(m, Blank)))))), CustomConstraint(lambda x, b, v, a, u: FalseQ(FunctionOfLinear(v*(a + b*atanh(u)), x))), CustomConstraint(lambda a, u, x, b, w: InverseFunctionFreeQ(w, x)))
def With592(x, b, v, a, u):
w = IntHide(v, x)
return -b*Int(SimplifyIntegrand(w*D(u, x)/(-u**S(2) + S(1)), x), x) + Dist(a + b*atanh(u), w, x)
rule592 = ReplacementRule(pattern592, lambda x, b, v, a, u : With592(x, b, v, a, u))
rubi.add(rule592)
pattern593 = Pattern(Integral(v_*(WC('a', S(0)) + WC('b', S(1))*acoth(u_)), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda v, x: Not(MatchQ(v, Condition((x*Optional(Pattern(d, Blank)) + Optional(Pattern(c, Blank)))**Optional(Pattern(m, Blank)))))), CustomConstraint(lambda x, b, v, a, u: FalseQ(FunctionOfLinear(v*(a + b*acoth(u)), x))), CustomConstraint(lambda a, u, x, b, w: InverseFunctionFreeQ(w, x)))
def With593(x, b, v, a, u):
w = IntHide(v, x)
return -b*Int(SimplifyIntegrand(w*D(u, x)/(-u**S(2) + S(1)), x), x) + Dist(a + b*acoth(u), w, x)
rule593 = ReplacementRule(pattern593, lambda x, b, v, a, u : With593(x, b, v, a, u))
rubi.add(rule593)
pattern594 = Pattern(Integral(asech(x_*WC('c', S(1))), x_), CustomConstraint(lambda c, x: FreeQ(c, x)))
rule594 = ReplacementRule(pattern594, lambda c, x : x*asech(c*x) + sqrt(c*x + S(1))*sqrt(1/(c*x + S(1)))*Int(S(1)/(sqrt(-c*x + S(1))*sqrt(c*x + S(1))), x))
rubi.add(rule594)
pattern595 = Pattern(Integral(acsch(x_*WC('c', S(1))), x_), CustomConstraint(lambda c, x: FreeQ(c, x)))
rule595 = ReplacementRule(pattern595, lambda c, x : x*acsch(c*x) + Int(S(1)/(x*sqrt(S(1) + S(1)/(c**S(2)*x**S(2)))), x)/c)
rubi.add(rule595)
pattern596 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule596 = ReplacementRule(pattern596, lambda x, b, c, a, n : -Subst(Int((a + b*x)**n*tanh(x)*sech(x), x), x, asech(c*x))/c)
rubi.add(rule596)
pattern597 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule597 = ReplacementRule(pattern597, lambda x, b, c, a, n : -Subst(Int((a + b*x)**n*coth(x)*csch(x), x), x, acsch(c*x))/c)
rubi.add(rule597)
pattern598 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1))))/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)))
rule598 = ReplacementRule(pattern598, lambda c, a, b, x : -Subst(Int((a + b*acosh(x/c))/x, x), x, 1/x))
rubi.add(rule598)
pattern599 = Pattern(Integral((WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1))))/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)))
rule599 = ReplacementRule(pattern599, lambda c, a, b, x : -Subst(Int((a + b*asinh(x/c))/x, x), x, 1/x))
rubi.add(rule599)
pattern600 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule600 = ReplacementRule(pattern600, lambda x, b, m, c, a : b*sqrt(c*x + S(1))*sqrt(1/(c*x + S(1)))*Int(x**m/(sqrt(-c*x + S(1))*sqrt(c*x + S(1))), x)/(m + S(1)) + x**(m + S(1))*(a + b*asech(c*x))/(m + S(1)))
rubi.add(rule600)
pattern601 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule601 = ReplacementRule(pattern601, lambda x, b, m, c, a : b*Int(x**(m + S(-1))/sqrt(S(1) + S(1)/(c**S(2)*x**S(2))), x)/(c*(m + S(1))) + x**(m + S(1))*(a + b*acsch(c*x))/(m + S(1)))
rubi.add(rule601)
pattern602 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m: IntegerQ(m)))
rule602 = ReplacementRule(pattern602, lambda x, b, m, c, a, n : -c**(-m + S(-1))*Subst(Int((a + b*x)**n*tanh(x)*sech(x)**(m + S(1)), x), x, asech(c*x)))
rubi.add(rule602)
pattern603 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1))))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m: IntegerQ(m)))
rule603 = ReplacementRule(pattern603, lambda x, b, m, c, a, n : -c**(-m + S(-1))*Subst(Int((a + b*x)**n*coth(x)*csch(x)**(m + S(1)), x), x, acsch(c*x)))
rubi.add(rule603)
pattern604 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule604 = ReplacementRule(pattern604, lambda x, b, m, c, a, n : Int(x**m*(a + b*asech(c*x))**n, x))
rubi.add(rule604)
pattern605 = Pattern(Integral(x_**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule605 = ReplacementRule(pattern605, lambda x, b, m, c, a, n : Int(x**m*(a + b*acsch(c*x))**n, x))
rubi.add(rule605)
pattern606 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p: PositiveIntegerQ(p) | NegativeIntegerQ(p + S(1)/2)), )
def With606(p, x, b, c, a, d, e):
u = IntHide((d + e*x**S(2))**p, x)
return b*sqrt(c*x + S(1))*sqrt(1/(c*x + S(1)))*Int(SimplifyIntegrand(u/(x*sqrt(-c*x + S(1))*sqrt(c*x + S(1))), x), x) + Dist(a + b*asech(c*x), u, x)
rule606 = ReplacementRule(pattern606, lambda p, x, b, c, a, d, e : With606(p, x, b, c, a, d, e))
rubi.add(rule606)
pattern607 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p: PositiveIntegerQ(p) | NegativeIntegerQ(p + S(1)/2)), )
def With607(p, x, b, c, a, d, e):
u = IntHide((d + e*x**S(2))**p, x)
return -b*c*x*Int(SimplifyIntegrand(u/(x*sqrt(-c**S(2)*x**S(2) + S(-1))), x), x)/sqrt(-c**S(2)*x**S(2)) + Dist(a + b*acsch(c*x), u, x)
rule607 = ReplacementRule(pattern607, lambda p, x, b, c, a, d, e : With607(p, x, b, c, a, d, e))
rubi.add(rule607)
pattern608 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p: IntegerQ(p)))
rule608 = ReplacementRule(pattern608, lambda p, x, b, c, a, d, e, n : -Subst(Int(x**(-S(2)*p + S(-2))*(a + b*acosh(x/c))**n*(d*x**S(2) + e)**p, x), x, 1/x))
rubi.add(rule608)
pattern609 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p: IntegerQ(p)))
rule609 = ReplacementRule(pattern609, lambda p, x, b, c, a, d, e, n : -Subst(Int(x**(-S(2)*p + S(-2))*(a + b*asinh(x/c))**n*(d*x**S(2) + e)**p, x), x, 1/x))
rubi.add(rule609)
pattern610 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**p_*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)), CustomConstraint(lambda e: PositiveQ(e)), CustomConstraint(lambda d: Negative(d)))
rule610 = ReplacementRule(pattern610, lambda p, x, b, c, a, d, e, n : -sqrt(x**S(2))*Subst(Int(x**(-S(2)*p + S(-2))*(a + b*acosh(x/c))**n*(d*x**S(2) + e)**p, x), x, 1/x)/x)
rubi.add(rule610)
pattern611 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**p_*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)), CustomConstraint(lambda e: PositiveQ(e)), CustomConstraint(lambda d: Negative(d)))
rule611 = ReplacementRule(pattern611, lambda p, x, b, c, a, d, e, n : -sqrt(x**S(2))*Subst(Int(x**(-S(2)*p + S(-2))*(a + b*asinh(x/c))**n*(d*x**S(2) + e)**p, x), x, 1/x)/x)
rubi.add(rule611)
pattern612 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**p_*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)), CustomConstraint(lambda d, e: Not(Negative(d) & PositiveQ(e))))
rule612 = ReplacementRule(pattern612, lambda p, x, b, c, a, d, e, n : -sqrt(d + e*x**S(2))*Subst(Int(x**(-S(2)*p + S(-2))*(a + b*acosh(x/c))**n*(d*x**S(2) + e)**p, x), x, 1/x)/(x*sqrt(d/x**S(2) + e)))
rubi.add(rule612)
pattern613 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**p_*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)), CustomConstraint(lambda d, e: Not(Negative(d) & PositiveQ(e))))
rule613 = ReplacementRule(pattern613, lambda p, x, b, c, a, d, e, n : -sqrt(d + e*x**S(2))*Subst(Int(x**(-S(2)*p + S(-2))*(a + b*asinh(x/c))**n*(d*x**S(2) + e)**p, x), x, 1/x)/(x*sqrt(d/x**S(2) + e)))
rubi.add(rule613)
pattern614 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule614 = ReplacementRule(pattern614, lambda p, x, b, c, a, d, e, n : Int((a + b*asech(c*x))**n*(d + e*x**S(2))**p, x))
rubi.add(rule614)
pattern615 = Pattern(Integral((x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule615 = ReplacementRule(pattern615, lambda p, x, b, c, a, d, e, n : Int((a + b*acsch(c*x))**n*(d + e*x**S(2))**p, x))
rubi.add(rule615)
pattern616 = Pattern(Integral(x_*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda p: NonzeroQ(p + S(1))))
rule616 = ReplacementRule(pattern616, lambda p, x, b, c, a, d, e : b*sqrt(c*x + S(1))*sqrt(1/(c*x + S(1)))*Int((d + e*x**S(2))**(p + S(1))/(x*sqrt(-c*x + S(1))*sqrt(c*x + S(1))), x)/(S(2)*e*(p + S(1))) + (a + b*asech(c*x))*(d + e*x**S(2))**(p + S(1))/(S(2)*e*(p + S(1))))
rubi.add(rule616)
pattern617 = Pattern(Integral(x_*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda p: NonzeroQ(p + S(1))))
rule617 = ReplacementRule(pattern617, lambda p, x, b, c, a, d, e : -b*c*x*Int((d + e*x**S(2))**(p + S(1))/(x*sqrt(-c**S(2)*x**S(2) + S(-1))), x)/(S(2)*e*sqrt(-c**S(2)*x**S(2))*(p + S(1))) + (a + b*acsch(c*x))*(d + e*x**S(2))**(p + S(1))/(S(2)*e*(p + S(1))))
rubi.add(rule617)
pattern618 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda p, m: (NegativeIntegerQ(m/S(2) + p + S(1)/2) & Not(NegativeIntegerQ(m/S(2) + S(-1)/2))) | (PositiveIntegerQ(p) & Not(NegativeIntegerQ(m/S(2) + S(-1)/2) & Greater(m + S(2)*p + S(3), S(0)))) | (PositiveIntegerQ(m/S(2) + S(1)/2) & Not(NegativeIntegerQ(p) & Greater(m + S(2)*p + S(3), S(0))))), )
def With618(p, x, b, m, c, a, d, e):
u = IntHide(x**m*(d + e*x**S(2))**p, x)
return b*sqrt(c*x + S(1))*sqrt(1/(c*x + S(1)))*Int(SimplifyIntegrand(u/(x*sqrt(-c*x + S(1))*sqrt(c*x + S(1))), x), x) + Dist(a + b*asech(c*x), u, x)
rule618 = ReplacementRule(pattern618, lambda p, x, b, m, c, a, d, e : With618(p, x, b, m, c, a, d, e))
rubi.add(rule618)
pattern619 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda p, m: (NegativeIntegerQ(m/S(2) + p + S(1)/2) & Not(NegativeIntegerQ(m/S(2) + S(-1)/2))) | (PositiveIntegerQ(p) & Not(NegativeIntegerQ(m/S(2) + S(-1)/2) & Greater(m + S(2)*p + S(3), S(0)))) | (PositiveIntegerQ(m/S(2) + S(1)/2) & Not(NegativeIntegerQ(p) & Greater(m + S(2)*p + S(3), S(0))))), )
def With619(p, x, b, m, c, a, d, e):
u = IntHide(x**m*(d + e*x**S(2))**p, x)
return -b*c*x*Int(SimplifyIntegrand(u/(x*sqrt(-c**S(2)*x**S(2) + S(-1))), x), x)/sqrt(-c**S(2)*x**S(2)) + Dist(a + b*acsch(c*x), u, x)
rule619 = ReplacementRule(pattern619, lambda p, x, b, m, c, a, d, e : With619(p, x, b, m, c, a, d, e))
rubi.add(rule619)
pattern620 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, m: IntegersQ(m, p)))
rule620 = ReplacementRule(pattern620, lambda p, x, b, m, c, a, d, e, n : -Subst(Int(x**(-m - S(2)*p + S(-2))*(a + b*acosh(x/c))**n*(d*x**S(2) + e)**p, x), x, 1/x))
rubi.add(rule620)
pattern621 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, m: IntegersQ(m, p)))
rule621 = ReplacementRule(pattern621, lambda p, x, b, m, c, a, d, e, n : -Subst(Int(x**(-m - S(2)*p + S(-2))*(a + b*asinh(x/c))**n*(d*x**S(2) + e)**p, x), x, 1/x))
rubi.add(rule621)
pattern622 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**p_*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)), CustomConstraint(lambda e: PositiveQ(e)), CustomConstraint(lambda d: Negative(d)))
rule622 = ReplacementRule(pattern622, lambda p, x, b, m, c, a, d, e, n : -sqrt(x**S(2))*Subst(Int(x**(-m - S(2)*p + S(-2))*(a + b*acosh(x/c))**n*(d*x**S(2) + e)**p, x), x, 1/x)/x)
rubi.add(rule622)
pattern623 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**p_*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)), CustomConstraint(lambda e: PositiveQ(e)), CustomConstraint(lambda d: Negative(d)))
rule623 = ReplacementRule(pattern623, lambda p, x, b, m, c, a, d, e, n : -sqrt(x**S(2))*Subst(Int(x**(-m - S(2)*p + S(-2))*(a + b*asinh(x/c))**n*(d*x**S(2) + e)**p, x), x, 1/x)/x)
rubi.add(rule623)
pattern624 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**p_*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, e, d: ZeroQ(c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)), CustomConstraint(lambda d, e: Not(Negative(d) & PositiveQ(e))))
rule624 = ReplacementRule(pattern624, lambda p, x, b, m, c, a, d, e, n : -sqrt(d + e*x**S(2))*Subst(Int(x**(-m - S(2)*p + S(-2))*(a + b*acosh(x/c))**n*(d*x**S(2) + e)**p, x), x, 1/x)/(x*sqrt(d/x**S(2) + e)))
rubi.add(rule624)
pattern625 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**p_*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda c, d, e: ZeroQ(-c**S(2)*d + e)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda p: IntegerQ(p + S(1)/2)), CustomConstraint(lambda d, e: Not(Negative(d) & PositiveQ(e))))
rule625 = ReplacementRule(pattern625, lambda p, x, b, m, c, a, d, e, n : -sqrt(d + e*x**S(2))*Subst(Int(x**(-m - S(2)*p + S(-2))*(a + b*asinh(x/c))**n*(d*x**S(2) + e)**p, x), x, 1/x)/(x*sqrt(d/x**S(2) + e)))
rubi.add(rule625)
pattern626 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*asech(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule626 = ReplacementRule(pattern626, lambda p, x, b, m, c, a, d, e, n : Int(x**m*(a + b*asech(c*x))**n*(d + e*x**S(2))**p, x))
rubi.add(rule626)
pattern627 = Pattern(Integral(x_**WC('m', S(1))*(x_**S(2)*WC('e', S(1)) + WC('d', S(0)))**WC('p', S(1))*(WC('a', S(0)) + WC('b', S(1))*acsch(x_*WC('c', S(1))))**WC('n', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda e, x: FreeQ(e, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule627 = ReplacementRule(pattern627, lambda p, x, b, m, c, a, d, e, n : Int(x**m*(a + b*acsch(c*x))**n*(d + e*x**S(2))**p, x))
rubi.add(rule627)
pattern628 = Pattern(Integral(asech(a_ + x_*WC('b', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)))
rule628 = ReplacementRule(pattern628, lambda x, a, b : Int(sqrt((-a - b*x + S(1))/(a + b*x + S(1)))/(-a - b*x + S(1)), x) + (a + b*x)*asech(a + b*x)/b)
rubi.add(rule628)
pattern629 = Pattern(Integral(acsch(a_ + x_*WC('b', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)))
rule629 = ReplacementRule(pattern629, lambda x, a, b : Int(S(1)/(sqrt(S(1) + (a + b*x)**(S(-2)))*(a + b*x)), x) + (a + b*x)*acsch(a + b*x)/b)
rubi.add(rule629)
pattern630 = Pattern(Integral(asech(a_ + x_*WC('b', S(1)))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule630 = ReplacementRule(pattern630, lambda x, a, n, b : -Subst(Int(x**n*tanh(x)*sech(x), x), x, asech(a + b*x))/b)
rubi.add(rule630)
pattern631 = Pattern(Integral(acsch(a_ + x_*WC('b', S(1)))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda n, x: FreeQ(n, x)))
rule631 = ReplacementRule(pattern631, lambda x, a, n, b : -Subst(Int(x**n*coth(x)*csch(x), x), x, acsch(a + b*x))/b)
rubi.add(rule631)
pattern632 = Pattern(Integral(asech(a_ + x_*WC('b', S(1)))/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)))
rule632 = ReplacementRule(pattern632, lambda x, a, b : -PolyLog(S(2), (-sqrt(-a**S(2) + S(1)) + S(1))*exp(-asech(a + b*x))/a) - PolyLog(S(2), (sqrt(-a**S(2) + S(1)) + S(1))*exp(-asech(a + b*x))/a) + PolyLog(S(2), -exp(-S(2)*asech(a + b*x)))/S(2) + log(S(1) - (-sqrt(-a**S(2) + S(1)) + S(1))*exp(-asech(a + b*x))/a)*asech(a + b*x) + log(S(1) - (sqrt(-a**S(2) + S(1)) + S(1))*exp(-asech(a + b*x))/a)*asech(a + b*x) - log(S(1) + exp(-S(2)*asech(a + b*x)))*asech(a + b*x))
rubi.add(rule632)
pattern633 = Pattern(Integral(acsch(a_ + x_*WC('b', S(1)))/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)))
rule633 = ReplacementRule(pattern633, lambda x, a, b : PolyLog(S(2), (-sqrt(a**S(2) + S(1)) + S(-1))*exp(acsch(a + b*x))/a) + PolyLog(S(2), (sqrt(a**S(2) + S(1)) + S(-1))*exp(acsch(a + b*x))/a) + PolyLog(S(2), exp(-S(2)*acsch(a + b*x)))/S(2) + log(S(1) + (-sqrt(a**S(2) + S(1)) + S(1))*exp(acsch(a + b*x))/a)*acsch(a + b*x) + log(S(1) + (sqrt(a**S(2) + S(1)) + S(1))*exp(acsch(a + b*x))/a)*acsch(a + b*x) - log(S(1) - exp(-S(2)*acsch(a + b*x)))*acsch(a + b*x) - acsch(a + b*x)**S(2))
rubi.add(rule633)
pattern634 = Pattern(Integral(x_**WC('m', S(1))*asech(a_ + x_*WC('b', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule634 = ReplacementRule(pattern634, lambda x, a, b, m : b**(-m + S(-1))*(b**(m + S(1))*x**(m + S(1)) - (-a)**(m + S(1)))*asech(a + b*x)/(m + S(1)) + b**(-m + S(-1))*Subst(Int(x**(-m + S(-1))*((-a*x)**(m + S(1)) - (-a*x + S(1))**(m + S(1)))/(sqrt(x + S(-1))*sqrt(x + S(1))), x), x, 1/(a + b*x))/(m + S(1)))
rubi.add(rule634)
pattern635 = Pattern(Integral(x_**WC('m', S(1))*acsch(a_ + x_*WC('b', S(1))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda m: IntegerQ(m)), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule635 = ReplacementRule(pattern635, lambda x, a, b, m : b**(-m + S(-1))*(b**(m + S(1))*x**(m + S(1)) - (-a)**(m + S(1)))*acsch(a + b*x)/(m + S(1)) + b**(-m + S(-1))*Subst(Int(x**(-m + S(-1))*((-a*x)**(m + S(1)) - (-a*x + S(1))**(m + S(1)))/sqrt(x**S(2) + S(1)), x), x, 1/(a + b*x))/(m + S(1)))
rubi.add(rule635)
pattern636 = Pattern(Integral(x_**WC('m', S(1))*asech(a_ + x_*WC('b', S(1)))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)))
rule636 = ReplacementRule(pattern636, lambda x, b, m, a, n : -b**(-m + S(-1))*Subst(Int(x**n*(-a + sech(x))**m*tanh(x)*sech(x), x), x, asech(a + b*x)))
rubi.add(rule636)
pattern637 = Pattern(Integral(x_**WC('m', S(1))*acsch(a_ + x_*WC('b', S(1)))**n_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m: PositiveIntegerQ(m)))
rule637 = ReplacementRule(pattern637, lambda x, b, m, a, n : -b**(-m + S(-1))*Subst(Int(x**n*(-a + csch(x))**m*coth(x)*csch(x), x), x, acsch(a + b*x)))
rubi.add(rule637)
pattern638 = Pattern(Integral(WC('u', S(1))*asech(WC('c', S(1))/(x_**WC('n', S(1))*WC('b', S(1)) + WC('a', S(0))))**WC('m', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m, x: FreeQ(m, x)))
rule638 = ReplacementRule(pattern638, lambda x, b, m, c, a, u, n : Int(u*acosh(a/c + b*x**n/c)**m, x))
rubi.add(rule638)
pattern639 = Pattern(Integral(WC('u', S(1))*acsch(WC('c', S(1))/(x_**WC('n', S(1))*WC('b', S(1)) + WC('a', S(0))))**WC('m', S(1)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda n, x: FreeQ(n, x)), CustomConstraint(lambda m, x: FreeQ(m, x)))
rule639 = ReplacementRule(pattern639, lambda x, b, m, c, a, u, n : Int(u*asinh(a/c + b*x**n/c)**m, x))
rubi.add(rule639)
pattern640 = Pattern(Integral(exp(asech(x_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)))
rule640 = ReplacementRule(pattern640, lambda x, a : x*exp(asech(a*x)) + Int(sqrt((-a*x + S(1))/(a*x + S(1)))/(x*(-a*x + S(1))), x)/a + log(x)/a)
rubi.add(rule640)
pattern641 = Pattern(Integral(exp(asech(x_**p_*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule641 = ReplacementRule(pattern641, lambda x, a, p : x*exp(asech(a*x**p)) + p*sqrt(a*x**p + S(1))*sqrt(1/(a*x**p + S(1)))*Int(x**(-p)/(sqrt(-a*x**p + S(1))*sqrt(a*x**p + S(1))), x)/a + p*Int(x**(-p), x)/a)
rubi.add(rule641)
pattern642 = Pattern(Integral(exp(acsch(x_**WC('p', S(1))*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule642 = ReplacementRule(pattern642, lambda x, a, p : Int(sqrt(S(1) + x**(-S(2)*p)/a**S(2)), x) + Int(x**(-p), x)/a)
rubi.add(rule642)
pattern643 = Pattern(Integral(exp(WC('n', S(1))*asech(u_)), x_), CustomConstraint(lambda n: IntegerQ(n)))
rule643 = ReplacementRule(pattern643, lambda x, u, n : Int((sqrt((-u + S(1))/(u + S(1))) + sqrt((-u + S(1))/(u + S(1)))/u + 1/u)**n, x))
rubi.add(rule643)
pattern644 = Pattern(Integral(exp(WC('n', S(1))*acsch(u_)), x_), CustomConstraint(lambda n: IntegerQ(n)))
rule644 = ReplacementRule(pattern644, lambda x, u, n : Int((sqrt(S(1) + u**(S(-2))) + 1/u)**n, x))
rubi.add(rule644)
pattern645 = Pattern(Integral(exp(asech(x_**WC('p', S(1))*WC('a', S(1))))/x_, x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule645 = ReplacementRule(pattern645, lambda x, a, p : sqrt(a*x**p + S(1))*sqrt(1/(a*x**p + S(1)))*Int(x**(-p + S(-1))*sqrt(-a*x**p + S(1))*sqrt(a*x**p + S(1)), x)/a - x**(-p)/(a*p))
rubi.add(rule645)
pattern646 = Pattern(Integral(x_**WC('m', S(1))*exp(asech(x_**WC('p', S(1))*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)), CustomConstraint(lambda m: NonzeroQ(m + S(1))))
rule646 = ReplacementRule(pattern646, lambda x, a, p, m : x**(m + S(1))*exp(asech(a*x**p))/(m + S(1)) + p*sqrt(a*x**p + S(1))*sqrt(1/(a*x**p + S(1)))*Int(x**(m - p)/(sqrt(-a*x**p + S(1))*sqrt(a*x**p + S(1))), x)/(a*(m + S(1))) + p*Int(x**(m - p), x)/(a*(m + S(1))))
rubi.add(rule646)
pattern647 = Pattern(Integral(x_**WC('m', S(1))*exp(acsch(x_**WC('p', S(1))*WC('a', S(1)))), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda p, x: FreeQ(p, x)))
rule647 = ReplacementRule(pattern647, lambda x, a, p, m : Int(x**m*sqrt(S(1) + x**(-S(2)*p)/a**S(2)), x) + Int(x**(m - p), x)/a)
rubi.add(rule647)
pattern648 = Pattern(Integral(x_**WC('m', S(1))*exp(WC('n', S(1))*asech(u_)), x_), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n: IntegerQ(n)))
rule648 = ReplacementRule(pattern648, lambda x, u, n, m : Int(x**m*(sqrt((-u + S(1))/(u + S(1))) + sqrt((-u + S(1))/(u + S(1)))/u + 1/u)**n, x))
rubi.add(rule648)
pattern649 = Pattern(Integral(x_**WC('m', S(1))*exp(WC('n', S(1))*acsch(u_)), x_), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda n: IntegerQ(n)))
rule649 = ReplacementRule(pattern649, lambda x, u, n, m : Int(x**m*(sqrt(S(1) + u**(S(-2))) + 1/u)**n, x))
rubi.add(rule649)
pattern650 = Pattern(Integral(asech(u_), x_), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda x, u: Not(FunctionOfExponentialQ(u, x))))
rule650 = ReplacementRule(pattern650, lambda x, u : x*asech(u) + sqrt(-u**S(2) + S(1))*Int(SimplifyIntegrand(x*D(u, x)/(u*sqrt(-u**S(2) + S(1))), x), x)/(u*sqrt(S(-1) + 1/u)*sqrt(S(1) + 1/u)))
rubi.add(rule650)
pattern651 = Pattern(Integral(acsch(u_), x_), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda x, u: Not(FunctionOfExponentialQ(u, x))))
rule651 = ReplacementRule(pattern651, lambda x, u : -u*Int(SimplifyIntegrand(x*D(u, x)/(u*sqrt(-u**S(2) + S(-1))), x), x)/sqrt(-u**S(2)) + x*acsch(u))
rubi.add(rule651)
pattern652 = Pattern(Integral((x_*WC('d', S(1)) + WC('c', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*asech(u_)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda m: NonzeroQ(m + S(1))), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda x, m, c, d, u: Not(FunctionOfQ((c + d*x)**(m + S(1)), u, x))), CustomConstraint(lambda x, u: Not(FunctionOfExponentialQ(u, x))))
rule652 = ReplacementRule(pattern652, lambda x, b, m, c, a, d, u : b*sqrt(-u**S(2) + S(1))*Int(SimplifyIntegrand((c + d*x)**(m + S(1))*D(u, x)/(u*sqrt(-u**S(2) + S(1))), x), x)/(d*u*sqrt(S(-1) + 1/u)*sqrt(S(1) + 1/u)*(m + S(1))) + (a + b*asech(u))*(c + d*x)**(m + S(1))/(d*(m + S(1))))
rubi.add(rule652)
pattern653 = Pattern(Integral((x_*WC('d', S(1)) + WC('c', S(0)))**WC('m', S(1))*(WC('a', S(0)) + WC('b', S(1))*acsch(u_)), x_), CustomConstraint(lambda a, x: FreeQ(a, x)), CustomConstraint(lambda b, x: FreeQ(b, x)), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda m: NonzeroQ(m + S(1))), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda x, m, c, d, u: Not(FunctionOfQ((c + d*x)**(m + S(1)), u, x))), CustomConstraint(lambda x, u: Not(FunctionOfExponentialQ(u, x))))
rule653 = ReplacementRule(pattern653, lambda x, b, m, c, a, d, u : -b*u*Int(SimplifyIntegrand((c + d*x)**(m + S(1))*D(u, x)/(u*sqrt(-u**S(2) + S(-1))), x), x)/(d*sqrt(-u**S(2))*(m + S(1))) + (a + b*acsch(u))*(c + d*x)**(m + S(1))/(d*(m + S(1))))
rubi.add(rule653)
pattern654 = Pattern(Integral(v_*(WC('a', S(0)) + WC('b', S(1))*asech(u_)), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda v, x: Not(MatchQ(v, Condition((x*Optional(Pattern(d, Blank)) + Optional(Pattern(c, Blank)))**Optional(Pattern(m, Blank)))))), CustomConstraint(lambda a, u, x, b, w: InverseFunctionFreeQ(w, x)))
def With654(x, b, v, a, u):
w = IntHide(v, x)
return b*sqrt(-u**S(2) + S(1))*Int(SimplifyIntegrand(w*D(u, x)/(u*sqrt(-u**S(2) + S(1))), x), x)/(u*sqrt(S(-1) + 1/u)*sqrt(S(1) + 1/u)) + Dist(a + b*asech(u), w, x)
rule654 = ReplacementRule(pattern654, lambda x, b, v, a, u : With654(x, b, v, a, u))
rubi.add(rule654)
pattern655 = Pattern(Integral(v_*(WC('a', S(0)) + WC('b', S(1))*acsch(u_)), x_), CustomConstraint(lambda c, x: FreeQ(c, x)), CustomConstraint(lambda d, x: FreeQ(d, x)), CustomConstraint(lambda m, x: FreeQ(m, x)), CustomConstraint(lambda x, u: InverseFunctionFreeQ(u, x)), CustomConstraint(lambda v, x: Not(MatchQ(v, Condition((x*Optional(Pattern(d, Blank)) + Optional(Pattern(c, Blank)))**Optional(Pattern(m, Blank)))))), CustomConstraint(lambda a, u, x, b, w: InverseFunctionFreeQ(w, x)))
def With655(x, b, v, a, u):
w = IntHide(v, x)
return -b*u*Int(SimplifyIntegrand(w*D(u, x)/(u*sqrt(-u**S(2) + S(-1))), x), x)/sqrt(-u**S(2)) + Dist(a + b*acsch(u), w, x)
rule655 = ReplacementRule(pattern655, lambda x, b, v, a, u : With655(x, b, v, a, u))
rubi.add(rule655)
return rubi
| 185.563501
| 6,553
| 0.591269
| 98,220
| 521,619
| 3.107616
| 0.019558
| 0.376962
| 0.307516
| 0.074305
| 0.871363
| 0.868099
| 0.863401
| 0.860122
| 0.854949
| 0.847702
| 0
| 0.043318
| 0.129117
| 521,619
| 2,810
| 6,554
| 185.629537
| 0.628597
| 0
| 0
| 0.03814
| 0
| 0
| 0.006695
| 0.000059
| 0
| 0
| 0
| 0
| 0
| 1
| 0.026512
| false
| 0
| 0.005116
| 0
| 0.05814
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
a4333fa56aa32283420d3b251efd39d130b3d048
| 170
|
py
|
Python
|
old_code/src_python/nmpccodegen/example_models/__init__.py
|
kul-forbes/nmpc-codegen
|
0b96da0840504817472b2bdc62c29c98bdf29c8f
|
[
"MIT"
] | 24
|
2017-11-13T02:17:10.000Z
|
2021-03-15T13:47:20.000Z
|
old_code/src_python/nmpccodegen/example_models/__init__.py
|
kul-optec/nmpc-codegen
|
0b96da0840504817472b2bdc62c29c98bdf29c8f
|
[
"MIT"
] | 14
|
2018-01-13T20:20:47.000Z
|
2020-05-12T11:21:12.000Z
|
old_code/src_python/nmpccodegen/example_models/__init__.py
|
kul-optec/nmpc-codegen
|
0b96da0840504817472b2bdc62c29c98bdf29c8f
|
[
"MIT"
] | 5
|
2018-08-14T14:27:41.000Z
|
2020-12-17T08:13:41.000Z
|
from .example_model import get_chain_model,get_trailer_model
from .trailer_printer import trailer_print,draw_rectangular_obstacle,draw_rectangular_obstacle_around_center
| 85
| 109
| 0.923529
| 24
| 170
| 6
| 0.583333
| 0.208333
| 0.319444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047059
| 170
| 2
| 109
| 85
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0.5
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 7
|
a4440ecfd59d5c586b8a71aa35706350a290fc0b
| 143
|
py
|
Python
|
toggldash/__init__.py
|
bigpappathanos-web/Toggl-Dashboard
|
1c52191efb3bcbcff0cb941640979201d035d9a1
|
[
"MIT"
] | 13
|
2020-12-30T18:19:58.000Z
|
2022-03-02T11:58:18.000Z
|
toggldash/__init__.py
|
bigpappathanos-web/Toggl-Dashboard
|
1c52191efb3bcbcff0cb941640979201d035d9a1
|
[
"MIT"
] | 4
|
2021-02-28T06:28:11.000Z
|
2021-04-06T18:22:51.000Z
|
toggldash/__init__.py
|
bigpappathanos-web/Toggl-Dashboard
|
1c52191efb3bcbcff0cb941640979201d035d9a1
|
[
"MIT"
] | 1
|
2021-02-21T04:05:40.000Z
|
2021-02-21T04:05:40.000Z
|
from .response import process_response
from .response import get_response
from .app import run
# __all__ = ["process_response", "get_response"]
| 35.75
| 48
| 0.804196
| 19
| 143
| 5.631579
| 0.421053
| 0.224299
| 0.336449
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111888
| 143
| 4
| 48
| 35.75
| 0.84252
| 0.321678
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
f106143a7db16b5f00e1dab51a69a934bb8ab617
| 212
|
py
|
Python
|
Lib/Scripts/font/layers/import.py
|
gferreira/hTools2
|
a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c
|
[
"BSD-3-Clause"
] | 11
|
2015-01-06T15:43:56.000Z
|
2019-07-27T00:35:20.000Z
|
hTools2.roboFontExt/lib/Scripts/current font/layers/import.py
|
gferreira/hTools2_extension
|
9e5150082a0a39847c1078aac3dc38d914a44f83
|
[
"BSD-3-Clause"
] | 2
|
2017-08-08T21:02:17.000Z
|
2019-12-18T15:55:48.000Z
|
Lib/Scripts/font/layers/import.py
|
gferreira/hTools2
|
a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c
|
[
"BSD-3-Clause"
] | 4
|
2015-01-10T13:58:50.000Z
|
2019-12-18T15:40:14.000Z
|
# [h] import ufo into layer
import hTools2.dialogs.font.layer_import
reload(hTools2.dialogs.font.layer_import)
from hTools2.dialogs.font.layer_import import importUFOIntoLayerDialog
importUFOIntoLayerDialog()
| 23.555556
| 70
| 0.84434
| 26
| 212
| 6.769231
| 0.423077
| 0.25
| 0.306818
| 0.392045
| 0.494318
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015385
| 0.080189
| 212
| 8
| 71
| 26.5
| 0.887179
| 0.117925
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
74e482e2705d6fd41d57114ce472fcffb99ab95d
| 81,410
|
py
|
Python
|
lib/tests/test_transaction.py
|
TheCharlatan/vialectrum
|
c54cd9aa08835db985d77ead9d91a00d66afa4b0
|
[
"MIT"
] | null | null | null |
lib/tests/test_transaction.py
|
TheCharlatan/vialectrum
|
c54cd9aa08835db985d77ead9d91a00d66afa4b0
|
[
"MIT"
] | null | null | null |
lib/tests/test_transaction.py
|
TheCharlatan/vialectrum
|
c54cd9aa08835db985d77ead9d91a00d66afa4b0
|
[
"MIT"
] | null | null | null |
import unittest
from lib import transaction
from lib.bitcoin import TYPE_ADDRESS
from lib.keystore import xpubkey_to_address
from lib.util import bh2u
unsigned_blob = '01000000012a5c9a94fcde98f5581cd00162c60a13936ceb75389ea65bf38633b424eb4031000000005701ff4c53ff0488b21e03ef2afea18000000089689bff23e1e7fb2f161daa37270a97a3d8c2e537584b2d304ecb47b86d21fc021b010d3bd425f8cf2e04824bfdf1f1f5ff1d51fadd9a41f9e3fb8dd3403b1bfe00000000ffffffff0140420f00000000001976a914230ac37834073a42146f11ef8414ae929feaafc388ac00000000'
signed_blob = '01000000012a5c9a94fcde98f5581cd00162c60a13936ceb75389ea65bf38633b424eb4031000000006c493046022100a82bbc57a0136751e5433f41cf000b3f1a99c6744775e76ec764fb78c54ee100022100f9e80b7de89de861dc6fb0c1429d5da72c2b6b2ee2406bc9bfb1beedd729d985012102e61d176da16edd1d258a200ad9759ef63adf8e14cd97f53227bae35cdb84d2f6ffffffff0140420f00000000001976a914230ac37834073a42146f11ef8414ae929feaafc388ac00000000'
v2_blob = "0200000001191601a44a81e061502b7bfbc6eaa1cef6d1e6af5308ef96c9342f71dbf4b9b5000000006b483045022100a6d44d0a651790a477e75334adfb8aae94d6612d01187b2c02526e340a7fd6c8022028bdf7a64a54906b13b145cd5dab21a26bd4b85d6044e9b97bceab5be44c2a9201210253e8e0254b0c95776786e40984c1aa32a7d03efa6bdacdea5f421b774917d346feffffff026b20fa04000000001976a914024db2e87dd7cfd0e5f266c5f212e21a31d805a588aca0860100000000001976a91421919b94ae5cefcdf0271191459157cdb41c4cbf88aca6240700"
signed_segwit_blob = "01000000000101b66d722484f2db63e827ebf41d02684fed0c6550e85015a6c9d41ef216a8a6f00000000000fdffffff0280c3c90100000000160014b65ce60857f7e7892b983851c2a8e3526d09e4ab64bac30400000000160014c478ebbc0ab2097706a98e10db7cf101839931c4024730440220789c7d47f876638c58d98733c30ae9821c8fa82b470285dcdf6db5994210bf9f02204163418bbc44af701212ad42d884cc613f3d3d831d2d0cc886f767cca6e0235e012103083a6dc250816d771faa60737bfe78b23ad619f6b458e0a1f1688e3a0605e79c00000000"
class TestBCDataStream(unittest.TestCase):
def test_compact_size(self):
s = transaction.BCDataStream()
values = [0, 1, 252, 253, 2**16-1, 2**16, 2**32-1, 2**32, 2**64-1]
for v in values:
s.write_compact_size(v)
with self.assertRaises(transaction.SerializationError):
s.write_compact_size(-1)
self.assertEqual(bh2u(s.input),
'0001fcfdfd00fdfffffe00000100feffffffffff0000000001000000ffffffffffffffffff')
for v in values:
self.assertEqual(s.read_compact_size(), v)
with self.assertRaises(transaction.SerializationError):
s.read_compact_size()
def test_string(self):
s = transaction.BCDataStream()
with self.assertRaises(transaction.SerializationError):
s.read_string()
msgs = ['Hello', ' ', 'World', '', '!']
for msg in msgs:
s.write_string(msg)
for msg in msgs:
self.assertEqual(s.read_string(), msg)
with self.assertRaises(transaction.SerializationError):
s.read_string()
def test_bytes(self):
s = transaction.BCDataStream()
s.write(b'foobar')
self.assertEqual(s.read_bytes(3), b'foo')
self.assertEqual(s.read_bytes(2), b'ba')
self.assertEqual(s.read_bytes(4), b'r')
self.assertEqual(s.read_bytes(1), b'')
class TestTransaction(unittest.TestCase):
def test_tx_unsigned(self):
expected = {
'inputs': [{
'type': 'p2pkh',
'address': 'LNH44gMp6kNHu4Npo5JDNY6FPjewvMKDnz',
'num_sig': 1,
'prevout_hash': '3140eb24b43386f35ba69e3875eb6c93130ac66201d01c58f598defc949a5c2a',
'prevout_n': 0,
'pubkeys': ['02e61d176da16edd1d258a200ad9759ef63adf8e14cd97f53227bae35cdb84d2f6'],
'scriptSig': '01ff4c53ff0488b21e03ef2afea18000000089689bff23e1e7fb2f161daa37270a97a3d8c2e537584b2d304ecb47b86d21fc021b010d3bd425f8cf2e04824bfdf1f1f5ff1d51fadd9a41f9e3fb8dd3403b1bfe00000000',
'sequence': 4294967295,
'signatures': [None],
'x_pubkeys': ['ff0488b21e03ef2afea18000000089689bff23e1e7fb2f161daa37270a97a3d8c2e537584b2d304ecb47b86d21fc021b010d3bd425f8cf2e04824bfdf1f1f5ff1d51fadd9a41f9e3fb8dd3403b1bfe00000000']}],
'lockTime': 0,
'outputs': [{
'address': 'LNREont24PYd5kkxTKoxVNhbugLowNb7H8',
'prevout_n': 0,
'scriptPubKey': '76a914230ac37834073a42146f11ef8414ae929feaafc388ac',
'type': TYPE_ADDRESS,
'value': 1000000}],
'version': 1
}
tx = transaction.Transaction(unsigned_blob)
self.assertEqual(tx.deserialize(), expected)
self.assertEqual(tx.deserialize(), None)
self.assertEqual(tx.as_dict(), {'hex': unsigned_blob, 'complete': False, 'final': True})
self.assertEqual(tx.get_outputs(), [('LNREont24PYd5kkxTKoxVNhbugLowNb7H8', 1000000)])
self.assertEqual(tx.get_output_addresses(), ['LNREont24PYd5kkxTKoxVNhbugLowNb7H8'])
self.assertTrue(tx.has_address('LNREont24PYd5kkxTKoxVNhbugLowNb7H8'))
self.assertTrue(tx.has_address('LNH44gMp6kNHu4Npo5JDNY6FPjewvMKDnz'))
self.assertFalse(tx.has_address('LWdgGJGqSmaGYcp6e21RvpGmcuexJorNEH'))
self.assertEqual(tx.serialize(), unsigned_blob)
tx.update_signatures(signed_blob)
self.assertEqual(tx.raw, signed_blob)
tx.update(unsigned_blob)
tx.raw = None
blob = str(tx)
self.assertEqual(transaction.deserialize(blob), expected)
def test_tx_signed(self):
expected = {
'inputs': [{
'type': 'p2pkh',
'address': 'LNH44gMp6kNHu4Npo5JDNY6FPjewvMKDnz',
'num_sig': 1,
'prevout_hash': '3140eb24b43386f35ba69e3875eb6c93130ac66201d01c58f598defc949a5c2a',
'prevout_n': 0,
'pubkeys': ['02e61d176da16edd1d258a200ad9759ef63adf8e14cd97f53227bae35cdb84d2f6'],
'scriptSig': '493046022100a82bbc57a0136751e5433f41cf000b3f1a99c6744775e76ec764fb78c54ee100022100f9e80b7de89de861dc6fb0c1429d5da72c2b6b2ee2406bc9bfb1beedd729d985012102e61d176da16edd1d258a200ad9759ef63adf8e14cd97f53227bae35cdb84d2f6',
'sequence': 4294967295,
'signatures': ['3046022100a82bbc57a0136751e5433f41cf000b3f1a99c6744775e76ec764fb78c54ee100022100f9e80b7de89de861dc6fb0c1429d5da72c2b6b2ee2406bc9bfb1beedd729d98501'],
'x_pubkeys': ['02e61d176da16edd1d258a200ad9759ef63adf8e14cd97f53227bae35cdb84d2f6']}],
'lockTime': 0,
'outputs': [{
'address': 'LNREont24PYd5kkxTKoxVNhbugLowNb7H8',
'prevout_n': 0,
'scriptPubKey': '76a914230ac37834073a42146f11ef8414ae929feaafc388ac',
'type': TYPE_ADDRESS,
'value': 1000000}],
'version': 1
}
tx = transaction.Transaction(signed_blob)
self.assertEqual(tx.deserialize(), expected)
self.assertEqual(tx.deserialize(), None)
self.assertEqual(tx.as_dict(), {'hex': signed_blob, 'complete': True, 'final': True})
self.assertEqual(tx.serialize(), signed_blob)
tx.update_signatures(signed_blob)
self.assertEqual(tx.estimated_total_size(), 193)
self.assertEqual(tx.estimated_base_size(), 193)
self.assertEqual(tx.estimated_witness_size(), 0)
self.assertEqual(tx.estimated_weight(), 772)
self.assertEqual(tx.estimated_size(), 193)
def test_estimated_output_size(self):
estimated_output_size = transaction.Transaction.estimated_output_size
self.assertEqual(estimated_output_size('LNuZh2Eeps3L114Lu4PVCxBR61UvrUKgze'), 34)
self.assertEqual(estimated_output_size('MBmyiC29MUQSfPC2gKtdrazbSWHvGqJCnU'), 32)
self.assertEqual(estimated_output_size('ltc1q3g5tmkmlvxryhh843v4dz026avatc0zz8xd49e'), 31)
self.assertEqual(estimated_output_size('ltc1qnvks7gfdu72de8qv6q6rhkkzu70fqz4wpjzuxjf6aydsx7wxfwcqsmgvk5'), 43)
# TODO other tests for segwit tx
def test_tx_signed_segwit(self):
tx = transaction.Transaction(signed_segwit_blob)
self.assertEqual(tx.estimated_total_size(), 222)
self.assertEqual(tx.estimated_base_size(), 113)
self.assertEqual(tx.estimated_witness_size(), 109)
self.assertEqual(tx.estimated_weight(), 561)
self.assertEqual(tx.estimated_size(), 141)
def test_errors(self):
with self.assertRaises(TypeError):
transaction.Transaction.pay_script(output_type=None, addr='')
with self.assertRaises(BaseException):
xpubkey_to_address('')
def test_parse_xpub(self):
res = xpubkey_to_address('fe4e13b0f311a55b8a5db9a32e959da9f011b131019d4cebe6141b9e2c93edcbfc0954c358b062a9f94111548e50bde5847a3096b8b7872dcffadb0e9579b9017b01000200')
self.assertEqual(res, ('04ee98d63800824486a1cf5b4376f2f574d86e0a3009a6448105703453f3368e8e1d8d090aaecdd626a45cc49876709a3bbb6dc96a4311b3cac03e225df5f63dfc', 'LTv6KFwtiNafLvxggFFQMRSQEXtBUru9eG'))
def test_version_field(self):
tx = transaction.Transaction(v2_blob)
self.assertEqual(tx.txid(), "b97f9180173ab141b61b9f944d841e60feec691d6daab4d4d932b24dd36606fe")
def test_txid_coinbase_to_p2pk(self):
tx = transaction.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4103400d0302ef02062f503253482f522cfabe6d6dd90d39663d10f8fd25ec88338295d4c6ce1c90d4aeb368d8bdbadcc1da3b635801000000000000000474073e03ffffffff013c25cf2d01000000434104b0bd634234abbb1ba1e986e884185c61cf43e001f9137f23c2c409273eb16e6537a576782eba668a7ef8bd3b3cfb1edb7117ab65129b8a2e681f3c1e0908ef7bac00000000')
self.assertEqual('dbaf14e1c476e76ea05a8b71921a46d6b06f0a950f17c5f9f1a03b8fae467f10', tx.txid())
def test_txid_coinbase_to_p2pkh(self):
tx = transaction.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff25033ca0030400001256124d696e656420627920425443204775696c640800000d41000007daffffffff01c00d1298000000001976a91427a1f12771de5cc3b73941664b2537c15316be4388ac00000000')
self.assertEqual('4328f9311c6defd9ae1bd7f4516b62acf64b361eb39dfcf09d9925c5fd5c61e8', tx.txid())
def test_txid_segwit_coinbase_to_p2pk(self):
tx = transaction.Transaction('020000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff0502cd010101ffffffff0240be402500000000232103f4e686cdfc96f375e7c338c40c9b85f4011bb843a3e62e46a1de424ef87e9385ac0000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90120000000000000000000000000000000000000000000000000000000000000000000000000')
self.assertEqual('fb5a57c24e640a6d8d831eb6e41505f3d54363c507da3733b098d820e3803301', tx.txid())
def test_txid_segwit_coinbase_to_p2pkh(self):
tx = transaction.Transaction('020000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff0502c3010101ffffffff0240be4025000000001976a9141ea896d897483e0eb33dd6423f4a07970d0a0a2788ac0000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90120000000000000000000000000000000000000000000000000000000000000000000000000')
self.assertEqual('ed3d100577477d799107eba97e76770b3efa253c7200e9abfb43da5d2b33513e', tx.txid())
def test_txid_p2pk_to_p2pkh(self):
tx = transaction.Transaction('010000000118231a31d2df84f884ced6af11dc24306319577d4d7c340124a7e2dd9c314077000000004847304402200b6c45891aed48937241907bc3e3868ee4c792819821fcde33311e5a3da4789a02205021b59692b652a01f5f009bd481acac2f647a7d9c076d71d85869763337882e01fdffffff016c95052a010000001976a9149c4891e7791da9e622532c97f43863768264faaf88ac00000000')
self.assertEqual('90ba90a5b115106d26663fce6c6215b8699c5d4b2672dd30756115f3337dddf9', tx.txid())
def test_txid_p2pk_to_p2sh(self):
tx = transaction.Transaction('0100000001e4643183d6497823576d17ac2439fb97eba24be8137f312e10fcc16483bb2d070000000048473044022032bbf0394dfe3b004075e3cbb3ea7071b9184547e27f8f73f967c4b3f6a21fa4022073edd5ae8b7b638f25872a7a308bb53a848baa9b9cc70af45fcf3c683d36a55301fdffffff011821814a0000000017a9143c640bc28a346749c09615b50211cb051faff00f8700000000')
self.assertEqual('172bdf5a690b874385b98d7ab6f6af807356f03a26033c6a65ab79b4ac2085b5', tx.txid())
def test_txid_p2pk_to_p2wpkh(self):
tx = transaction.Transaction('01000000015e5e2bf15f5793fdfd01e0ccd380033797ed2d4dba9498426ca84904176c26610000000049483045022100c77aff69f7ab4bb148f9bccffc5a87ee893c4f7f7f96c97ba98d2887a0f632b9022046367bdb683d58fa5b2e43cfc8a9c6d57724a27e03583942d8e7b9afbfeea5ab01fdffffff017289824a00000000160014460fc70f208bffa9abf3ae4abbd2f629d9cdcf5900000000')
self.assertEqual('ca554b1014952f900aa8cf6e7ab02137a6fdcf933ad6a218de3891a2ef0c350d', tx.txid())
def test_txid_p2pkh_to_p2pkh(self):
tx = transaction.Transaction('0100000001f9dd7d33f315617530dd72264b5d9c69b815626cce3f66266d1015b1a590ba90000000006a4730440220699bfee3d280a499daf4af5593e8750b54fef0557f3c9f717bfa909493a84f60022057718eec7985b7796bb8630bf6ea2e9bf2892ac21bd6ab8f741a008537139ffe012103b4289890b40590447b57f773b5843bf0400e9cead08be225fac587b3c2a8e973fdffffff01ec24052a010000001976a914ce9ff3d15ed5f3a3d94b583b12796d063879b11588ac00000000')
self.assertEqual('24737c68f53d4b519939119ed83b2a8d44d716d7f3ca98bcecc0fbb92c2085ce', tx.txid())
def test_txid_p2pkh_to_p2sh(self):
tx = transaction.Transaction('010000000195232c30f6611b9f2f82ec63f5b443b132219c425e1824584411f3d16a7a54bc000000006b4830450221009f39ac457dc8ff316e5cc03161c9eff6212d8694ccb88d801dbb32e85d8ed100022074230bb05e99b85a6a50d2b71e7bf04d80be3f1d014ea038f93943abd79421d101210317be0f7e5478e087453b9b5111bdad586038720f16ac9658fd16217ffd7e5785fdffffff0200e40b540200000017a914d81df3751b9e7dca920678cc19cac8d7ec9010b08718dfd63c2c0000001976a914303c42b63569ff5b390a2016ff44651cd84c7c8988acc7010000')
self.assertEqual('155e4740fa59f374abb4e133b87247dccc3afc233cb97c2bf2b46bba3094aedc', tx.txid())
def test_txid_p2pkh_to_p2wpkh(self):
tx = transaction.Transaction('0100000001ce85202cb9fbc0ecbc98caf3d716d7448d2a3bd89e113999514b3df5687c7324000000006b483045022100adab7b6cb1179079c9dfc0021f4db0346730b7c16555fcc4363059dcdd95f653022028bcb816f4fb98615fb8f4b18af3ad3708e2d72f94a6466cc2736055860422cf012102a16a25148dd692462a691796db0a4a5531bcca970a04107bf184a2c9f7fd8b12fdffffff012eb6042a010000001600147d0170de18eecbe84648979d52b666dddee0b47400000000')
self.assertEqual('ed29e100499e2a3a64a2b0cb3a68655b9acd690d29690fa541be530462bf3d3c', tx.txid())
def test_txid_p2sh_to_p2pkh(self):
tx = transaction.Transaction('01000000000101f9823f87af35d158e7dc81a67011f4e511e3f6cab07ac108e524b0ff8b950b39000000002322002041f0237866eb72e4a75cd6faf5ccd738703193907d883aa7b3a8169c636706a9fdffffff020065cd1d000000001976a9148150cd6cf729e7e262699875fec1f760b0aab3cc88acc46f9a3b0000000017a91433ccd0f95a7b9d8eef68be40bb59c64d6e14d87287040047304402205ca97126a5956c2deaa956a2006d79a348775d727074a04b71d9c18eb5e5525402207b9353497af15881100a2786adab56c8930c02d46cc1a8b55496c06e22d3459b01483045022100b4fa898057927c2d920ae79bca752dda58202ea8617d3e6ed96cbd5d1c0eb2fc02200824c0e742d1b4d643cec439444f5d8779c18d4f42c2c87cce24044a3babf2df0147522102db78786b3c214826bd27010e3c663b02d67144499611ee3f2461c633eb8f1247210377082028c124098b59a5a1e0ea7fd3ebca72d59c793aecfeedd004304bac15cd52aec9010000')
self.assertEqual('17e1d498ba82503e3bfa81ac4897a57e33f3d36b41bcf4765ba604466c478986', tx.txid())
def test_txid_p2sh_to_p2sh(self):
tx = transaction.Transaction('01000000000101b58520acb479ab656a3c03263af0567380aff6b67a8db98543870b695adf2b170000000017160014cfd2b9f7ed9d4d4429ed6946dbb3315f75e85f14fdffffff020065cd1d0000000017a91485f5681bec38f9f07ae9790d7f27c2bb90b5b63c87106ab32c0000000017a914ff402e164dfce874435641ae9ac41fc6fb14c4e18702483045022100b3d1c89c7c92151ed1df78815924569446782776b6a2c170ca5d74c5dd1ad9b102201d7bab1974fd2aa66546dd15c1f1e276d787453cec31b55a2bd97b050abf20140121024a1742ece86df3dbce4717c228cf51e625030cef7f5e6dde33a4fffdd17569eac7010000')
self.assertEqual('ead0e7abfb24ddbcd6b89d704d7a6091e43804a458baa930adf6f1cb5b6b42f7', tx.txid())
def test_txid_p2sh_to_p2wpkh(self):
tx = transaction.Transaction('010000000001018689476c4604a65b76f4bc416bd3f3337ea59748ac81fa3b3e5082ba98d4e1170100000023220020ae40340707f9726c0f453c3d47c96e7f3b7b4b85608eb3668b69bbef9c7ab374fdffffff0218b2cc1d0000000017a914f2fdd81e606ff2ab804d7bb46bf8838a711c277b870065cd1d0000000016001496ad8959c1f0382984ecc4da61c118b4c8751e5104004730440220387b9e7d402fbcada9ba55a27a8d0563eafa9904ebd2f8f7e3d86e4b45bc0ec202205f37fa0e2bf8cbd384f804562651d7c6f69adce5db4c1a5b9103250a47f73e6b01473044022074903f4dd4fd6b32289be909eb5109924740daa55e79be6dbd728687683f9afa02205d934d981ca12cbec450611ca81dc4127f8da5e07dd63d41049380502de3f15401475221025c3810b37147105106cef970f9b91d3735819dee4882d515c1187dbd0b8f0c792103e007c492323084f1c103beff255836408af89bb9ae7f2fcf60502c28ff4b0c9152aeca010000')
self.assertEqual('6f294c84cbd0241650931b4c1be3dfb2f175d682c7a9538b30b173e1083deed3', tx.txid())
def test_txid_p2wpkh_to_p2pkh(self):
tx = transaction.Transaction('0100000000010197e6bf4a70bc118e3a8d9842ed80422e335679dfc29b5ba0f9123f6a5863b8470000000000fdffffff02402bca7f130000001600146f579c953d9e7e7719f2baa20bde22eb5f24119200e87648170000001976a9140cd8fa5fd81c3acf33f93efd179b388de8dd693388ac0247304402204ff33b3ea8fb270f62409bfc257457ca5eb1fec5e4d3a7c11aa487207e131d4d022032726b998e338e5245746716e5cd0b40d32b69d1535c3d841f049d98a5d819b1012102dc3ce3220363aff579eb2c45c973e8b186a829c987c3caea77c61975666e7d1bc8010000')
self.assertEqual('c721ed35767a3a209b688e68e3bb136a72d2b631fe81c56be8bdbb948c343dbc', tx.txid())
def test_txid_p2wpkh_to_p2sh(self):
tx = transaction.Transaction('010000000001013c3dbf620453be41a50f69290d69cd9a5b65683acbb0a2643a2a9e4900e129ed0000000000fdffffff02002f68590000000017a914c7c4dcd0ddf70f15c6df13b4a4d56e9f13c49b2787a0429cd000000000160014e514e3ecf89731e7853e4f3a20983484c569d3910247304402205368cc548209303db5a8f2ebc282bd0f7af0d080ce0f7637758587f94d3971fb0220098cec5752554758bc5fa4de332b980d5e0054a807541581dc5e4de3ed29647501210233717cd73d95acfdf6bd72c4fb5df27cd6bd69ce947daa3f4a442183a97877efc8010000')
self.assertEqual('390b958bffb024e508c17ab0caf6e311e5f41170a681dce758d135af873f82f9', tx.txid())
def test_txid_p2wpkh_to_p2wpkh(self):
tx = transaction.Transaction('010000000001010d350cefa29138de18a2d63a93cffda63721b07a6ecfa80a902f9514104b55ca0000000000fdffffff012a4a824a00000000160014b869999d342a5d42d6dc7af1efc28456da40297a024730440220475bb55814a52ea1036919e4408218c693b8bf93637b9f54c821b5baa3b846e102207276ed7a79493142c11fb01808a4142bbdd525ae7bdccdf8ecb7b8e3c856b4d90121024cdeaca7a53a7e23a1edbe9260794eaa83063534b5f111ee3c67d8b0cb88f0eec8010000')
self.assertEqual('51087ece75c697cc872d2e643d646b0f3e1f2666fa1820b7bff4343d50dd680e', tx.txid())
def test_txid_input_p2wsh_p2sh_not_multisig(self):
tx = transaction.Transaction('0100000000010160f84fdcda039c3ca1b20038adea2d49a53db92f7c467e8def13734232bb610804000000232200202814720f16329ab81cb8867c4d447bd13255931f23e6655944c9ada1797fcf88ffffffff0ba3dcfc04000000001976a91488124a57c548c9e7b1dd687455af803bd5765dea88acc9f44900000000001976a914da55045a0ccd40a56ce861946d13eb861eb5f2d788ac49825e000000000017a914ca34d4b190e36479aa6e0023cfe0a8537c6aa8dd87680c0d00000000001976a914651102524c424b2e7c44787c4f21e4c54dffafc088acf02fa9000000000017a914ee6c596e6f7066466d778d4f9ba633a564a6e95d874d250900000000001976a9146ca7976b48c04fd23867748382ee8401b1d27c2988acf5119600000000001976a914cf47d5dcdba02fd547c600697097252d38c3214a88ace08a12000000000017a914017bef79d92d5ec08c051786bad317e5dd3befcf87e3d76201000000001976a9148ec1b88b66d142bcbdb42797a0fd402c23e0eec288ac718f6900000000001976a914e66344472a224ce6f843f2989accf435ae6a808988ac65e51300000000001976a914cad6717c13a2079066f876933834210ebbe68c3f88ac0347304402201a4907c4706104320313e182ecbb1b265b2d023a79586671386de86bb47461590220472c3db9fc99a728ebb9b555a72e3481d20b181bd059a9c1acadfb853d90c96c01210338a46f2a54112fef8803c8478bc17e5f8fc6a5ec276903a946c1fafb2e3a8b181976a914eda8660085bf607b82bd18560ca8f3a9ec49178588ac00000000')
self.assertEqual('e9933221a150f78f9f224899f8568ff6422ffcc28ca3d53d87936368ff7c4b1d', tx.txid())
# input: p2sh, not multisig
def test_txid_regression_issue_3899(self):
tx = transaction.Transaction('0100000004328685b0352c981d3d451b471ae3bfc78b82565dc2a54049a81af273f0a9fd9c010000000b0009630330472d5fae685bffffffff328685b0352c981d3d451b471ae3bfc78b82565dc2a54049a81af273f0a9fd9c020000000b0009630359646d5fae6858ffffffff328685b0352c981d3d451b471ae3bfc78b82565dc2a54049a81af273f0a9fd9c030000000b000963034bd4715fae6854ffffffff328685b0352c981d3d451b471ae3bfc78b82565dc2a54049a81af273f0a9fd9c040000000b000963036de8705fae6860ffffffff0130750000000000001976a914b5abca61d20f9062fb1fdbb880d9d93bac36675188ac00000000')
self.assertEqual('f570d5d1e965ee61bcc7005f8fefb1d3abbed9d7ddbe035e2a68fa07e5fc4a0d', tx.txid())
# these transactions are from Bitcoin Core unit tests --->
# https://github.com/bitcoin/bitcoin/blob/11376b5583a283772c82f6d32d0007cdbf5b8ef0/src/test/data/tx_valid.json
def test_txid_bitcoin_core_0001(self):
tx = transaction.Transaction('0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000490047304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000')
self.assertEqual('23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63', tx.txid())
def test_txid_bitcoin_core_0002(self):
tx = transaction.Transaction('0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004a0048304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2bab01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000')
self.assertEqual('fcabc409d8e685da28536e1e5ccc91264d755cd4c57ed4cae3dbaa4d3b93e8ed', tx.txid())
def test_txid_bitcoin_core_0003(self):
tx = transaction.Transaction('0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004a01ff47304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000')
self.assertEqual('c9aa95f2c48175fdb70b34c23f1c3fc44f869b073a6f79b1343fbce30c3cb575', tx.txid())
def test_txid_bitcoin_core_0004(self):
tx = transaction.Transaction('0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000495147304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000')
self.assertEqual('da94fda32b55deb40c3ed92e135d69df7efc4ee6665e0beb07ef500f407c9fd2', tx.txid())
def test_txid_bitcoin_core_0005(self):
tx = transaction.Transaction('0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000494f47304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000')
self.assertEqual('f76f897b206e4f78d60fe40f2ccb542184cfadc34354d3bb9bdc30cc2f432b86', tx.txid())
def test_txid_bitcoin_core_0006(self):
tx = transaction.Transaction('01000000010276b76b07f4935c70acf54fbf1f438a4c397a9fb7e633873c4dd3bc062b6b40000000008c493046022100d23459d03ed7e9511a47d13292d3430a04627de6235b6e51a40f9cd386f2abe3022100e7d25b080f0bb8d8d5f878bba7d54ad2fda650ea8d158a33ee3cbd11768191fd004104b0e2c879e4daf7b9ab68350228c159766676a14f5815084ba166432aab46198d4cca98fa3e9981d0a90b2effc514b76279476550ba3663fdcaff94c38420e9d5000000000100093d00000000001976a9149a7b0f3b80c6baaeedce0a0842553800f832ba1f88ac00000000')
self.assertEqual('c99c49da4c38af669dea436d3e73780dfdb6c1ecf9958baa52960e8baee30e73', tx.txid())
def test_txid_bitcoin_core_0007(self):
tx = transaction.Transaction('01000000010001000000000000000000000000000000000000000000000000000000000000000000006a473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000')
self.assertEqual('e41ffe19dff3cbedb413a2ca3fbbcd05cb7fd7397ffa65052f8928aa9c700092', tx.txid())
def test_txid_bitcoin_core_0008(self):
tx = transaction.Transaction('01000000023d6cf972d4dff9c519eff407ea800361dd0a121de1da8b6f4138a2f25de864b4000000008a4730440220ffda47bfc776bcd269da4832626ac332adfca6dd835e8ecd83cd1ebe7d709b0e022049cffa1cdc102a0b56e0e04913606c70af702a1149dc3b305ab9439288fee090014104266abb36d66eb4218a6dd31f09bb92cf3cfa803c7ea72c1fc80a50f919273e613f895b855fb7465ccbc8919ad1bd4a306c783f22cd3227327694c4fa4c1c439affffffff21ebc9ba20594737864352e95b727f1a565756f9d365083eb1a8596ec98c97b7010000008a4730440220503ff10e9f1e0de731407a4a245531c9ff17676eda461f8ceeb8c06049fa2c810220c008ac34694510298fa60b3f000df01caa244f165b727d4896eb84f81e46bcc4014104266abb36d66eb4218a6dd31f09bb92cf3cfa803c7ea72c1fc80a50f919273e613f895b855fb7465ccbc8919ad1bd4a306c783f22cd3227327694c4fa4c1c439affffffff01f0da5200000000001976a914857ccd42dded6df32949d4646dfa10a92458cfaa88ac00000000')
self.assertEqual('f7fdd091fa6d8f5e7a8c2458f5c38faffff2d3f1406b6e4fe2c99dcc0d2d1cbb', tx.txid())
def test_txid_bitcoin_core_0009(self):
tx = transaction.Transaction('01000000020002000000000000000000000000000000000000000000000000000000000000000000000151ffffffff0001000000000000000000000000000000000000000000000000000000000000000000006b483045022100c9cdd08798a28af9d1baf44a6c77bcc7e279f47dc487c8c899911bc48feaffcc0220503c5c50ae3998a733263c5c0f7061b483e2b56c4c41b456e7d2f5a78a74c077032102d5c25adb51b61339d2b05315791e21bbe80ea470a49db0135720983c905aace0ffffffff010000000000000000015100000000')
self.assertEqual('b56471690c3ff4f7946174e51df68b47455a0d29344c351377d712e6d00eabe5', tx.txid())
def test_txid_bitcoin_core_0010(self):
tx = transaction.Transaction('010000000100010000000000000000000000000000000000000000000000000000000000000000000009085768617420697320ffffffff010000000000000000015100000000')
self.assertEqual('99517e5b47533453cc7daa332180f578be68b80370ecfe84dbfff7f19d791da4', tx.txid())
def test_txid_bitcoin_core_0011(self):
tx = transaction.Transaction('01000000010001000000000000000000000000000000000000000000000000000000000000000000006e493046022100c66c9cdf4c43609586d15424c54707156e316d88b0a1534c9e6b0d4f311406310221009c0fe51dbc9c4ab7cc25d3fdbeccf6679fe6827f08edf2b4a9f16ee3eb0e438a0123210338e8034509af564c62644c07691942e0c056752008a173c89f60ab2a88ac2ebfacffffffff010000000000000000015100000000')
self.assertEqual('ab097537b528871b9b64cb79a769ae13c3c3cd477cc9dddeebe657eabd7fdcea', tx.txid())
def test_txid_bitcoin_core_0012(self):
tx = transaction.Transaction('01000000010001000000000000000000000000000000000000000000000000000000000000000000006e493046022100e1eadba00d9296c743cb6ecc703fd9ddc9b3cd12906176a226ae4c18d6b00796022100a71aef7d2874deff681ba6080f1b278bac7bb99c61b08a85f4311970ffe7f63f012321030c0588dc44d92bdcbf8e72093466766fdc265ead8db64517b0c542275b70fffbacffffffff010040075af0750700015100000000')
self.assertEqual('4d163e00f1966e9a1eab8f9374c3e37f4deb4857c247270e25f7d79a999d2dc9', tx.txid())
def test_txid_bitcoin_core_0013(self):
tx = transaction.Transaction('01000000010001000000000000000000000000000000000000000000000000000000000000000000006d483045022027deccc14aa6668e78a8c9da3484fbcd4f9dcc9bb7d1b85146314b21b9ae4d86022100d0b43dece8cfb07348de0ca8bc5b86276fa88f7f2138381128b7c36ab2e42264012321029bb13463ddd5d2cc05da6e84e37536cb9525703cfd8f43afdb414988987a92f6acffffffff020040075af075070001510000000000000000015100000000')
self.assertEqual('9fe2ef9dde70e15d78894a4800b7df3bbfb1addb9a6f7d7c204492fdb6ee6cc4', tx.txid())
def test_txid_bitcoin_core_0014(self):
tx = transaction.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff025151ffffffff010000000000000000015100000000')
self.assertEqual('99d3825137602e577aeaf6a2e3c9620fd0e605323dc5265da4a570593be791d4', tx.txid())
def test_txid_bitcoin_core_0015(self):
tx = transaction.Transaction('01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff6451515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151ffffffff010000000000000000015100000000')
self.assertEqual('c0d67409923040cc766bbea12e4c9154393abef706db065ac2e07d91a9ba4f84', tx.txid())
def test_txid_bitcoin_core_0016(self):
tx = transaction.Transaction('010000000200010000000000000000000000000000000000000000000000000000000000000000000049483045022100d180fd2eb9140aeb4210c9204d3f358766eb53842b2a9473db687fa24b12a3cc022079781799cd4f038b85135bbe49ec2b57f306b2bb17101b17f71f000fcab2b6fb01ffffffff0002000000000000000000000000000000000000000000000000000000000000000000004847304402205f7530653eea9b38699e476320ab135b74771e1c48b81a5d041e2ca84b9be7a802200ac8d1f40fb026674fe5a5edd3dea715c27baa9baca51ed45ea750ac9dc0a55e81ffffffff010100000000000000015100000000')
self.assertEqual('c610d85d3d5fdf5046be7f123db8a0890cee846ee58de8a44667cfd1ab6b8666', tx.txid())
def test_txid_bitcoin_core_0017(self):
tx = transaction.Transaction('01000000020001000000000000000000000000000000000000000000000000000000000000000000004948304502203a0f5f0e1f2bdbcd04db3061d18f3af70e07f4f467cbc1b8116f267025f5360b022100c792b6e215afc5afc721a351ec413e714305cb749aae3d7fee76621313418df101010000000002000000000000000000000000000000000000000000000000000000000000000000004847304402205f7530653eea9b38699e476320ab135b74771e1c48b81a5d041e2ca84b9be7a802200ac8d1f40fb026674fe5a5edd3dea715c27baa9baca51ed45ea750ac9dc0a55e81ffffffff010100000000000000015100000000')
self.assertEqual('a647a7b3328d2c698bfa1ee2dd4e5e05a6cea972e764ccb9bd29ea43817ca64f', tx.txid())
def test_txid_bitcoin_core_0018(self):
tx = transaction.Transaction('010000000370ac0a1ae588aaf284c308d67ca92c69a39e2db81337e563bf40c59da0a5cf63000000006a4730440220360d20baff382059040ba9be98947fd678fb08aab2bb0c172efa996fd8ece9b702201b4fb0de67f015c90e7ac8a193aeab486a1f587e0f54d0fb9552ef7f5ce6caec032103579ca2e6d107522f012cd00b52b9a65fb46f0c57b9b8b6e377c48f526a44741affffffff7d815b6447e35fbea097e00e028fb7dfbad4f3f0987b4734676c84f3fcd0e804010000006b483045022100c714310be1e3a9ff1c5f7cacc65c2d8e781fc3a88ceb063c6153bf950650802102200b2d0979c76e12bb480da635f192cc8dc6f905380dd4ac1ff35a4f68f462fffd032103579ca2e6d107522f012cd00b52b9a65fb46f0c57b9b8b6e377c48f526a44741affffffff3f1f097333e4d46d51f5e77b53264db8f7f5d2e18217e1099957d0f5af7713ee010000006c493046022100b663499ef73273a3788dea342717c2640ac43c5a1cf862c9e09b206fcb3f6bb8022100b09972e75972d9148f2bdd462e5cb69b57c1214b88fc55ca638676c07cfc10d8032103579ca2e6d107522f012cd00b52b9a65fb46f0c57b9b8b6e377c48f526a44741affffffff0380841e00000000001976a914bfb282c70c4191f45b5a6665cad1682f2c9cfdfb88ac80841e00000000001976a9149857cc07bed33a5cf12b9c5e0500b675d500c81188ace0fd1c00000000001976a91443c52850606c872403c0601e69fa34b26f62db4a88ac00000000')
self.assertEqual('afd9c17f8913577ec3509520bd6e5d63e9c0fd2a5f70c787993b097ba6ca9fae', tx.txid())
def test_txid_bitcoin_core_0019(self):
tx = transaction.Transaction('01000000012312503f2491a2a97fcd775f11e108a540a5528b5d4dee7a3c68ae4add01dab300000000fdfe0000483045022100f6649b0eddfdfd4ad55426663385090d51ee86c3481bdc6b0c18ea6c0ece2c0b0220561c315b07cffa6f7dd9df96dbae9200c2dee09bf93cc35ca05e6cdf613340aa0148304502207aacee820e08b0b174e248abd8d7a34ed63b5da3abedb99934df9fddd65c05c4022100dfe87896ab5ee3df476c2655f9fbe5bd089dccbef3e4ea05b5d121169fe7f5f4014c695221031d11db38972b712a9fe1fc023577c7ae3ddb4a3004187d41c45121eecfdbb5b7210207ec36911b6ad2382860d32989c7b8728e9489d7bbc94a6b5509ef0029be128821024ea9fac06f666a4adc3fc1357b7bec1fd0bdece2b9d08579226a8ebde53058e453aeffffffff0180380100000000001976a914c9b99cddf847d10685a4fabaa0baf505f7c3dfab88ac00000000')
self.assertEqual('f4b05f978689c89000f729cae187dcfbe64c9819af67a4f05c0b4d59e717d64d', tx.txid())
def test_txid_bitcoin_core_0020(self):
tx = transaction.Transaction('0100000001f709fa82596e4f908ee331cb5e0ed46ab331d7dcfaf697fe95891e73dac4ebcb000000008c20ca42095840735e89283fec298e62ac2ddea9b5f34a8cbb7097ad965b87568100201b1b01dc829177da4a14551d2fc96a9db00c6501edfa12f22cd9cefd335c227f483045022100a9df60536df5733dd0de6bc921fab0b3eee6426501b43a228afa2c90072eb5ca02201c78b74266fac7d1db5deff080d8a403743203f109fbcabf6d5a760bf87386d20100ffffffff01c075790000000000232103611f9a45c18f28f06f19076ad571c344c82ce8fcfe34464cf8085217a2d294a6ac00000000')
self.assertEqual('cc60b1f899ec0a69b7c3f25ddf32c4524096a9c5b01cbd84c6d0312a0c478984', tx.txid())
def test_txid_bitcoin_core_0021(self):
tx = transaction.Transaction('01000000012c651178faca83be0b81c8c1375c4b0ad38d53c8fe1b1c4255f5e795c25792220000000049483045022100d6044562284ac76c985018fc4a90127847708c9edb280996c507b28babdc4b2a02203d74eca3f1a4d1eea7ff77b528fde6d5dc324ec2dbfdb964ba885f643b9704cd01ffffffff010100000000000000232102c2410f8891ae918cab4ffc4bb4a3b0881be67c7a1e7faa8b5acf9ab8932ec30cac00000000')
self.assertEqual('1edc7f214659d52c731e2016d258701911bd62a0422f72f6c87a1bc8dd3f8667', tx.txid())
def test_txid_bitcoin_core_0022(self):
tx = transaction.Transaction('0100000001f725ea148d92096a79b1709611e06e94c63c4ef61cbae2d9b906388efd3ca99c000000000100ffffffff0101000000000000002321028a1d66975dbdf97897e3a4aef450ebeb5b5293e4a0b4a6d3a2daaa0b2b110e02ac00000000')
self.assertEqual('018adb7133fde63add9149a2161802a1bcf4bdf12c39334e880c073480eda2ff', tx.txid())
def test_txid_bitcoin_core_0023(self):
tx = transaction.Transaction('0100000001be599efaa4148474053c2fa031c7262398913f1dc1d9ec201fd44078ed004e44000000004900473044022022b29706cb2ed9ef0cb3c97b72677ca2dfd7b4160f7b4beb3ba806aa856c401502202d1e52582412eba2ed474f1f437a427640306fd3838725fab173ade7fe4eae4a01ffffffff010100000000000000232103ac4bba7e7ca3e873eea49e08132ad30c7f03640b6539e9b59903cf14fd016bbbac00000000')
self.assertEqual('1464caf48c708a6cc19a296944ded9bb7f719c9858986d2501cf35068b9ce5a2', tx.txid())
def test_txid_bitcoin_core_0024(self):
tx = transaction.Transaction('010000000112b66d5e8c7d224059e946749508efea9d66bf8d0c83630f080cf30be8bb6ae100000000490047304402206ffe3f14caf38ad5c1544428e99da76ffa5455675ec8d9780fac215ca17953520220779502985e194d84baa36b9bd40a0dbd981163fa191eb884ae83fc5bd1c86b1101ffffffff010100000000000000232103905380c7013e36e6e19d305311c1b81fce6581f5ee1c86ef0627c68c9362fc9fac00000000')
self.assertEqual('1fb73fbfc947d52f5d80ba23b67c06a232ad83fdd49d1c0a657602f03fbe8f7a', tx.txid())
def test_txid_bitcoin_core_0025(self):
tx = transaction.Transaction('0100000001b0ef70cc644e0d37407e387e73bfad598d852a5aa6d691d72b2913cebff4bceb000000004a00473044022068cd4851fc7f9a892ab910df7a24e616f293bcb5c5fbdfbc304a194b26b60fba022078e6da13d8cb881a22939b952c24f88b97afd06b4c47a47d7f804c9a352a6d6d0100ffffffff0101000000000000002321033bcaa0a602f0d44cc9d5637c6e515b0471db514c020883830b7cefd73af04194ac00000000')
self.assertEqual('24cecfce0fa880b09c9b4a66c5134499d1b09c01cc5728cd182638bea070e6ab', tx.txid())
def test_txid_bitcoin_core_0026(self):
tx = transaction.Transaction('0100000001c188aa82f268fcf08ba18950f263654a3ea6931dabc8bf3ed1d4d42aaed74cba000000004b0000483045022100940378576e069aca261a6b26fb38344e4497ca6751bb10905c76bb689f4222b002204833806b014c26fd801727b792b1260003c55710f87c5adbd7a9cb57446dbc9801ffffffff0101000000000000002321037c615d761e71d38903609bf4f46847266edc2fb37532047d747ba47eaae5ffe1ac00000000')
self.assertEqual('9eaa819e386d6a54256c9283da50c230f3d8cd5376d75c4dcc945afdeb157dd7', tx.txid())
def test_txid_bitcoin_core_0027(self):
tx = transaction.Transaction('01000000012432b60dc72cebc1a27ce0969c0989c895bdd9e62e8234839117f8fc32d17fbc000000004a493046022100a576b52051962c25e642c0fd3d77ee6c92487048e5d90818bcf5b51abaccd7900221008204f8fb121be4ec3b24483b1f92d89b1b0548513a134e345c5442e86e8617a501ffffffff010000000000000000016a00000000')
self.assertEqual('46224764c7870f95b58f155bce1e38d4da8e99d42dbb632d0dd7c07e092ee5aa', tx.txid())
def test_txid_bitcoin_core_0028(self):
tx = transaction.Transaction('01000000014710b0e7cf9f8930de259bdc4b84aa5dfb9437b665a3e3a21ff26e0bf994e183000000004a493046022100a166121a61b4eeb19d8f922b978ff6ab58ead8a5a5552bf9be73dc9c156873ea02210092ad9bc43ee647da4f6652c320800debcf08ec20a094a0aaf085f63ecb37a17201ffffffff010000000000000000016a00000000')
self.assertEqual('8d66836045db9f2d7b3a75212c5e6325f70603ee27c8333a3bce5bf670d9582e', tx.txid())
def test_txid_bitcoin_core_0029(self):
tx = transaction.Transaction('01000000015ebaa001d8e4ec7a88703a3bcf69d98c874bca6299cca0f191512bf2a7826832000000004948304502203bf754d1c6732fbf87c5dcd81258aefd30f2060d7bd8ac4a5696f7927091dad1022100f5bcb726c4cf5ed0ed34cc13dadeedf628ae1045b7cb34421bc60b89f4cecae701ffffffff010000000000000000016a00000000')
self.assertEqual('aab7ef280abbb9cc6fbaf524d2645c3daf4fcca2b3f53370e618d9cedf65f1f8', tx.txid())
def test_txid_bitcoin_core_0030(self):
tx = transaction.Transaction('010000000144490eda355be7480f2ec828dcc1b9903793a8008fad8cfe9b0c6b4d2f0355a900000000924830450221009c0a27f886a1d8cb87f6f595fbc3163d28f7a81ec3c4b252ee7f3ac77fd13ffa02203caa8dfa09713c8c4d7ef575c75ed97812072405d932bd11e6a1593a98b679370148304502201e3861ef39a526406bad1e20ecad06be7375ad40ddb582c9be42d26c3a0d7b240221009d0a3985e96522e59635d19cc4448547477396ce0ef17a58e7d74c3ef464292301ffffffff010000000000000000016a00000000')
self.assertEqual('6327783a064d4e350c454ad5cd90201aedf65b1fc524e73709c52f0163739190', tx.txid())
def test_txid_bitcoin_core_0031(self):
tx = transaction.Transaction('010000000144490eda355be7480f2ec828dcc1b9903793a8008fad8cfe9b0c6b4d2f0355a9000000004a48304502207a6974a77c591fa13dff60cabbb85a0de9e025c09c65a4b2285e47ce8e22f761022100f0efaac9ff8ac36b10721e0aae1fb975c90500b50c56e8a0cc52b0403f0425dd0100ffffffff010000000000000000016a00000000')
self.assertEqual('892464645599cc3c2d165adcc612e5f982a200dfaa3e11e9ce1d228027f46880', tx.txid())
def test_txid_bitcoin_core_0032(self):
tx = transaction.Transaction('010000000144490eda355be7480f2ec828dcc1b9903793a8008fad8cfe9b0c6b4d2f0355a9000000004a483045022100fa4a74ba9fd59c59f46c3960cf90cbe0d2b743c471d24a3d5d6db6002af5eebb02204d70ec490fd0f7055a7c45f86514336e3a7f03503dacecabb247fc23f15c83510151ffffffff010000000000000000016a00000000')
self.assertEqual('578db8c6c404fec22c4a8afeaf32df0e7b767c4dda3478e0471575846419e8fc', tx.txid())
def test_txid_bitcoin_core_0033(self):
tx = transaction.Transaction('0100000001e0be9e32f1f89c3d916c4f21e55cdcd096741b895cc76ac353e6023a05f4f7cc00000000d86149304602210086e5f736a2c3622ebb62bd9d93d8e5d76508b98be922b97160edc3dcca6d8c47022100b23c312ac232a4473f19d2aeb95ab7bdf2b65518911a0d72d50e38b5dd31dc820121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ac4730440220508fa761865c8abd81244a168392876ee1d94e8ed83897066b5e2df2400dad24022043f5ee7538e87e9c6aef7ef55133d3e51da7cc522830a9c4d736977a76ef755c0121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ffffffff010000000000000000016a00000000')
self.assertEqual('974f5148a0946f9985e75a240bb24c573adbbdc25d61e7b016cdbb0a5355049f', tx.txid())
def test_txid_bitcoin_core_0034(self):
tx = transaction.Transaction('01000000013c6f30f99a5161e75a2ce4bca488300ca0c6112bde67f0807fe983feeff0c91001000000e608646561646265656675ab61493046022100ce18d384221a731c993939015e3d1bcebafb16e8c0b5b5d14097ec8177ae6f28022100bcab227af90bab33c3fe0a9abfee03ba976ee25dc6ce542526e9b2e56e14b7f10121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ac493046022100c3b93edcc0fd6250eb32f2dd8a0bba1754b0f6c3be8ed4100ed582f3db73eba2022100bf75b5bd2eff4d6bf2bda2e34a40fcc07d4aa3cf862ceaa77b47b81eff829f9a01ab21038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ffffffff010000000000000000016a00000000')
self.assertEqual('b0097ec81df231893a212657bf5fe5a13b2bff8b28c0042aca6fc4159f79661b', tx.txid())
def test_txid_bitcoin_core_0035(self):
tx = transaction.Transaction('01000000016f3dbe2ca96fa217e94b1017860be49f20820dea5c91bdcb103b0049d5eb566000000000fd1d0147304402203989ac8f9ad36b5d0919d97fa0a7f70c5272abee3b14477dc646288a8b976df5022027d19da84a066af9053ad3d1d7459d171b7e3a80bc6c4ef7a330677a6be548140147304402203989ac8f9ad36b5d0919d97fa0a7f70c5272abee3b14477dc646288a8b976df5022027d19da84a066af9053ad3d1d7459d171b7e3a80bc6c4ef7a330677a6be548140121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ac47304402203757e937ba807e4a5da8534c17f9d121176056406a6465054bdd260457515c1a02200f02eccf1bec0f3a0d65df37889143c2e88ab7acec61a7b6f5aa264139141a2b0121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ffffffff010000000000000000016a00000000')
self.assertEqual('feeba255656c80c14db595736c1c7955c8c0a497622ec96e3f2238fbdd43a7c9', tx.txid())
def test_txid_bitcoin_core_0036(self):
tx = transaction.Transaction('01000000012139c555ccb81ee5b1e87477840991ef7b386bc3ab946b6b682a04a621006b5a01000000fdb40148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a5800390148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a5800390121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f2204148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a5800390175ac4830450220646b72c35beeec51f4d5bc1cbae01863825750d7f490864af354e6ea4f625e9c022100f04b98432df3a9641719dbced53393022e7249fb59db993af1118539830aab870148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a580039017521038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ffffffff010000000000000000016a00000000')
self.assertEqual('a0c984fc820e57ddba97f8098fa640c8a7eb3fe2f583923da886b7660f505e1e', tx.txid())
def test_txid_bitcoin_core_0037(self):
tx = transaction.Transaction('0100000002f9cbafc519425637ba4227f8d0a0b7160b4e65168193d5af39747891de98b5b5000000006b4830450221008dd619c563e527c47d9bd53534a770b102e40faa87f61433580e04e271ef2f960220029886434e18122b53d5decd25f1f4acb2480659fea20aabd856987ba3c3907e0121022b78b756e2258af13779c1a1f37ea6800259716ca4b7f0b87610e0bf3ab52a01ffffffff42e7988254800876b69f24676b3e0205b77be476512ca4d970707dd5c60598ab00000000fd260100483045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a53034930460221008431bdfa72bc67f9d41fe72e94c88fb8f359ffa30b33c72c121c5a877d922e1002210089ef5fc22dd8bfc6bf9ffdb01a9862d27687d424d1fefbab9e9c7176844a187a014c9052483045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a5303210378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c71210378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c7153aeffffffff01a08601000000000017a914d8dacdadb7462ae15cd906f1878706d0da8660e68700000000')
self.assertEqual('5df1375ffe61ac35ca178ebb0cab9ea26dedbd0e96005dfcee7e379fa513232f', tx.txid())
def test_txid_bitcoin_core_0038(self):
tx = transaction.Transaction('0100000002dbb33bdf185b17f758af243c5d3c6e164cc873f6bb9f40c0677d6e0f8ee5afce000000006b4830450221009627444320dc5ef8d7f68f35010b4c050a6ed0d96b67a84db99fda9c9de58b1e02203e4b4aaa019e012e65d69b487fdf8719df72f488fa91506a80c49a33929f1fd50121022b78b756e2258af13779c1a1f37ea6800259716ca4b7f0b87610e0bf3ab52a01ffffffffdbb33bdf185b17f758af243c5d3c6e164cc873f6bb9f40c0677d6e0f8ee5afce010000009300483045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a5303483045022015bd0139bcccf990a6af6ec5c1c52ed8222e03a0d51c334df139968525d2fcd20221009f9efe325476eb64c3958e4713e9eefe49bf1d820ed58d2112721b134e2a1a5303ffffffff01a0860100000000001976a9149bc0bbdd3024da4d0c38ed1aecf5c68dd1d3fa1288ac00000000')
self.assertEqual('ded7ff51d89a4e1ec48162aee5a96447214d93dfb3837946af2301a28f65dbea', tx.txid())
def test_txid_bitcoin_core_0039(self):
tx = transaction.Transaction('010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000')
self.assertEqual('3444be2e216abe77b46015e481d8cc21abd4c20446aabf49cd78141c9b9db87e', tx.txid())
def test_txid_bitcoin_core_0040(self):
tx = transaction.Transaction('0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ff64cd1d')
self.assertEqual('abd62b4627d8d9b2d95fcfd8c87e37d2790637ce47d28018e3aece63c1d62649', tx.txid())
def test_txid_bitcoin_core_0041(self):
tx = transaction.Transaction('01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d')
self.assertEqual('58b6de8413603b7f556270bf48caedcf17772e7105f5419f6a80be0df0b470da', tx.txid())
def test_txid_bitcoin_core_0042(self):
tx = transaction.Transaction('0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ffffffff')
self.assertEqual('5f99c0abf511294d76cbe144d86b77238a03e086974bc7a8ea0bdb2c681a0324', tx.txid())
def test_txid_bitcoin_core_0043(self):
tx = transaction.Transaction('010000000100010000000000000000000000000000000000000000000000000000000000000000000000feffffff0100000000000000000000000000')
self.assertEqual('25d35877eaba19497710666473c50d5527d38503e3521107a3fc532b74cd7453', tx.txid())
def test_txid_bitcoin_core_0044(self):
tx = transaction.Transaction('0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000feffffff')
self.assertEqual('1b9aef851895b93c62c29fbd6ca4d45803f4007eff266e2f96ff11e9b6ef197b', tx.txid())
def test_txid_bitcoin_core_0045(self):
tx = transaction.Transaction('010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000')
self.assertEqual('3444be2e216abe77b46015e481d8cc21abd4c20446aabf49cd78141c9b9db87e', tx.txid())
def test_txid_bitcoin_core_0046(self):
tx = transaction.Transaction('01000000010001000000000000000000000000000000000000000000000000000000000000000000000251b1000000000100000000000000000001000000')
self.assertEqual('f53761038a728b1f17272539380d96e93f999218f8dcb04a8469b523445cd0fd', tx.txid())
def test_txid_bitcoin_core_0047(self):
tx = transaction.Transaction('0100000001000100000000000000000000000000000000000000000000000000000000000000000000030251b1000000000100000000000000000001000000')
self.assertEqual('d193f0f32fceaf07bb25c897c8f99ca6f69a52f6274ca64efc2a2e180cb97fc1', tx.txid())
def test_txid_bitcoin_core_0048(self):
tx = transaction.Transaction('010000000132211bdd0d568506804eef0d8cc3db68c3d766ab9306cdfcc0a9c89616c8dbb1000000006c493045022100c7bb0faea0522e74ff220c20c022d2cb6033f8d167fb89e75a50e237a35fd6d202203064713491b1f8ad5f79e623d0219ad32510bfaa1009ab30cbee77b59317d6e30001210237af13eb2d84e4545af287b919c2282019c9691cc509e78e196a9d8274ed1be0ffffffff0100000000000000001976a914f1b3ed2eda9a2ebe5a9374f692877cdf87c0f95b88ac00000000')
self.assertEqual('50a1e0e6a134a564efa078e3bd088e7e8777c2c0aec10a752fd8706470103b89', tx.txid())
def test_txid_bitcoin_core_0049(self):
tx = transaction.Transaction('020000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000')
self.assertEqual('e2207d1aaf6b74e5d98c2fa326d2dc803b56b30a3f90ce779fa5edb762f38755', tx.txid())
def test_txid_bitcoin_core_0050(self):
tx = transaction.Transaction('020000000100010000000000000000000000000000000000000000000000000000000000000000000000ffff00000100000000000000000000000000')
self.assertEqual('f335864f7c12ec7946d2c123deb91eb978574b647af125a414262380c7fbd55c', tx.txid())
def test_txid_bitcoin_core_0051(self):
tx = transaction.Transaction('020000000100010000000000000000000000000000000000000000000000000000000000000000000000ffffbf7f0100000000000000000000000000')
self.assertEqual('d1edbcde44691e98a7b7f556bd04966091302e29ad9af3c2baac38233667e0d2', tx.txid())
def test_txid_bitcoin_core_0052(self):
tx = transaction.Transaction('020000000100010000000000000000000000000000000000000000000000000000000000000000000000000040000100000000000000000000000000')
self.assertEqual('3a13e1b6371c545147173cc4055f0ed73686a9f73f092352fb4b39ca27d360e6', tx.txid())
def test_txid_bitcoin_core_0053(self):
tx = transaction.Transaction('020000000100010000000000000000000000000000000000000000000000000000000000000000000000ffff40000100000000000000000000000000')
self.assertEqual('bffda23e40766d292b0510a1b556453c558980c70c94ab158d8286b3413e220d', tx.txid())
def test_txid_bitcoin_core_0054(self):
tx = transaction.Transaction('020000000100010000000000000000000000000000000000000000000000000000000000000000000000ffffff7f0100000000000000000000000000')
self.assertEqual('01a86c65460325dc6699714d26df512a62a854a669f6ed2e6f369a238e048cfd', tx.txid())
def test_txid_bitcoin_core_0055(self):
tx = transaction.Transaction('020000000100010000000000000000000000000000000000000000000000000000000000000000000000000000800100000000000000000000000000')
self.assertEqual('f6d2359c5de2d904e10517d23e7c8210cca71076071bbf46de9fbd5f6233dbf1', tx.txid())
def test_txid_bitcoin_core_0056(self):
tx = transaction.Transaction('020000000100010000000000000000000000000000000000000000000000000000000000000000000000feffffff0100000000000000000000000000')
self.assertEqual('19c2b7377229dae7aa3e50142a32fd37cef7171a01682f536e9ffa80c186f6c9', tx.txid())
def test_txid_bitcoin_core_0057(self):
tx = transaction.Transaction('020000000100010000000000000000000000000000000000000000000000000000000000000000000000ffffffff0100000000000000000000000000')
self.assertEqual('c9dda3a24cc8a5acb153d1085ecd2fecf6f87083122f8cdecc515b1148d4c40d', tx.txid())
def test_txid_bitcoin_core_0058(self):
tx = transaction.Transaction('020000000100010000000000000000000000000000000000000000000000000000000000000000000000ffffbf7f0100000000000000000000000000')
self.assertEqual('d1edbcde44691e98a7b7f556bd04966091302e29ad9af3c2baac38233667e0d2', tx.txid())
def test_txid_bitcoin_core_0059(self):
tx = transaction.Transaction('020000000100010000000000000000000000000000000000000000000000000000000000000000000000ffffff7f0100000000000000000000000000')
self.assertEqual('01a86c65460325dc6699714d26df512a62a854a669f6ed2e6f369a238e048cfd', tx.txid())
def test_txid_bitcoin_core_0060(self):
tx = transaction.Transaction('02000000010001000000000000000000000000000000000000000000000000000000000000000000000251b2010000000100000000000000000000000000')
self.assertEqual('4b5e0aae1251a9dc66b4d5f483f1879bf518ea5e1765abc5a9f2084b43ed1ea7', tx.txid())
def test_txid_bitcoin_core_0061(self):
tx = transaction.Transaction('0200000001000100000000000000000000000000000000000000000000000000000000000000000000030251b2010000000100000000000000000000000000')
self.assertEqual('5f16eb3ca4581e2dfb46a28140a4ee15f85e4e1c032947da8b93549b53c105f5', tx.txid())
def test_txid_bitcoin_core_0062(self):
tx = transaction.Transaction('0100000000010100010000000000000000000000000000000000000000000000000000000000000000000000ffffffff01e8030000000000001976a9144c9c3dfac4207d5d8cb89df5722cb3d712385e3f88ac02483045022100cfb07164b36ba64c1b1e8c7720a56ad64d96f6ef332d3d37f9cb3c96477dc44502200a464cd7a9cf94cd70f66ce4f4f0625ef650052c7afcfe29d7d7e01830ff91ed012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc7100000000')
self.assertEqual('b2ce556154e5ab22bec0a2f990b2b843f4f4085486c0d2cd82873685c0012004', tx.txid())
def test_txid_bitcoin_core_0063(self):
tx = transaction.Transaction('0100000000010100010000000000000000000000000000000000000000000000000000000000000000000000ffffffff01e8030000000000001976a9144c9c3dfac4207d5d8cb89df5722cb3d712385e3f88ac02483045022100aa5d8aa40a90f23ce2c3d11bc845ca4a12acd99cbea37de6b9f6d86edebba8cb022022dedc2aa0a255f74d04c0b76ece2d7c691f9dd11a64a8ac49f62a99c3a05f9d01232103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc71ac00000000')
self.assertEqual('b2ce556154e5ab22bec0a2f990b2b843f4f4085486c0d2cd82873685c0012004', tx.txid())
def test_txid_bitcoin_core_0064(self):
tx = transaction.Transaction('01000000000101000100000000000000000000000000000000000000000000000000000000000000000000171600144c9c3dfac4207d5d8cb89df5722cb3d712385e3fffffffff01e8030000000000001976a9144c9c3dfac4207d5d8cb89df5722cb3d712385e3f88ac02483045022100cfb07164b36ba64c1b1e8c7720a56ad64d96f6ef332d3d37f9cb3c96477dc44502200a464cd7a9cf94cd70f66ce4f4f0625ef650052c7afcfe29d7d7e01830ff91ed012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc7100000000')
self.assertEqual('fee125c6cd142083fabd0187b1dd1f94c66c89ec6e6ef6da1374881c0c19aece', tx.txid())
def test_txid_bitcoin_core_0065(self):
tx = transaction.Transaction('0100000000010100010000000000000000000000000000000000000000000000000000000000000000000023220020ff25429251b5a84f452230a3c75fd886b7fc5a7865ce4a7bb7a9d7c5be6da3dbffffffff01e8030000000000001976a9144c9c3dfac4207d5d8cb89df5722cb3d712385e3f88ac02483045022100aa5d8aa40a90f23ce2c3d11bc845ca4a12acd99cbea37de6b9f6d86edebba8cb022022dedc2aa0a255f74d04c0b76ece2d7c691f9dd11a64a8ac49f62a99c3a05f9d01232103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc71ac00000000')
self.assertEqual('5f32557914351fee5f89ddee6c8983d476491d29e601d854e3927299e50450da', tx.txid())
def test_txid_bitcoin_core_0066(self):
tx = transaction.Transaction('0100000000010400010000000000000000000000000000000000000000000000000000000000000200000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff00010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000300000000ffffffff05540b0000000000000151d0070000000000000151840300000000000001513c0f00000000000001512c010000000000000151000248304502210092f4777a0f17bf5aeb8ae768dec5f2c14feabf9d1fe2c89c78dfed0f13fdb86902206da90a86042e252bcd1e80a168c719e4a1ddcc3cebea24b9812c5453c79107e9832103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc71000000000000')
self.assertEqual('07dfa2da3d67c8a2b9f7bd31862161f7b497829d5da90a88ba0f1a905e7a43f7', tx.txid())
def test_txid_bitcoin_core_0067(self):
tx = transaction.Transaction('0100000000010300010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff00010000000000000000000000000000000000000000000000000000000000000200000000ffffffff03e8030000000000000151d0070000000000000151b80b0000000000000151000248304502210092f4777a0f17bf5aeb8ae768dec5f2c14feabf9d1fe2c89c78dfed0f13fdb86902206da90a86042e252bcd1e80a168c719e4a1ddcc3cebea24b9812c5453c79107e9832103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710000000000')
self.assertEqual('8a1bddf924d24570074b09d7967c145e54dc4cee7972a92fd975a2ad9e64b424', tx.txid())
def test_txid_bitcoin_core_0068(self):
tx = transaction.Transaction('0100000000010300010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff00010000000000000000000000000000000000000000000000000000000000000200000000ffffffff0484030000000000000151d0070000000000000151540b0000000000000151c800000000000000015100024730440220699e6b0cfe015b64ca3283e6551440a34f901ba62dd4c72fe1cb815afb2e6761022021cc5e84db498b1479de14efda49093219441adc6c543e5534979605e273d80b032103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710000000000')
self.assertEqual('f92bb6e4f3ff89172f23ef647f74c13951b665848009abb5862cdf7a0412415a', tx.txid())
def test_txid_bitcoin_core_0069(self):
tx = transaction.Transaction('0100000000010300010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff00010000000000000000000000000000000000000000000000000000000000000200000000ffffffff03e8030000000000000151d0070000000000000151b80b000000000000015100024730440220699e6b0cfe015b64ca3283e6551440a34f901ba62dd4c72fe1cb815afb2e6761022021cc5e84db498b1479de14efda49093219441adc6c543e5534979605e273d80b032103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710000000000')
self.assertEqual('8a1bddf924d24570074b09d7967c145e54dc4cee7972a92fd975a2ad9e64b424', tx.txid())
def test_txid_bitcoin_core_0070(self):
tx = transaction.Transaction('0100000000010400010000000000000000000000000000000000000000000000000000000000000200000000ffffffff00010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff00010000000000000000000000000000000000000000000000000000000000000300000000ffffffff04b60300000000000001519e070000000000000151860b00000000000001009600000000000000015100000248304502210091b32274295c2a3fa02f5bce92fb2789e3fc6ea947fbe1a76e52ea3f4ef2381a022079ad72aefa3837a2e0c033a8652a59731da05fa4a813f4fc48e87c075037256b822103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710000000000')
self.assertEqual('e657e25fc9f2b33842681613402759222a58cf7dd504d6cdc0b69a0b8c2e7dcb', tx.txid())
def test_txid_bitcoin_core_0071(self):
tx = transaction.Transaction('0100000000010300010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff00010000000000000000000000000000000000000000000000000000000000000200000000ffffffff03e8030000000000000151d0070000000000000151b80b0000000000000151000248304502210091b32274295c2a3fa02f5bce92fb2789e3fc6ea947fbe1a76e52ea3f4ef2381a022079ad72aefa3837a2e0c033a8652a59731da05fa4a813f4fc48e87c075037256b822103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710000000000')
self.assertEqual('8a1bddf924d24570074b09d7967c145e54dc4cee7972a92fd975a2ad9e64b424', tx.txid())
def test_txid_bitcoin_core_0072(self):
tx = transaction.Transaction('0100000000010300010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff00010000000000000000000000000000000000000000000000000000000000000200000000ffffffff04b60300000000000001519e070000000000000151860b0000000000000100960000000000000001510002473044022022fceb54f62f8feea77faac7083c3b56c4676a78f93745adc8a35800bc36adfa022026927df9abcf0a8777829bcfcce3ff0a385fa54c3f9df577405e3ef24ee56479022103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710000000000')
self.assertEqual('4ede5e22992d43d42ccdf6553fb46e448aa1065ba36423f979605c1e5ab496b8', tx.txid())
def test_txid_bitcoin_core_0073(self):
tx = transaction.Transaction('0100000000010300010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff00010000000000000000000000000000000000000000000000000000000000000200000000ffffffff03e8030000000000000151d0070000000000000151b80b00000000000001510002473044022022fceb54f62f8feea77faac7083c3b56c4676a78f93745adc8a35800bc36adfa022026927df9abcf0a8777829bcfcce3ff0a385fa54c3f9df577405e3ef24ee56479022103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710000000000')
self.assertEqual('8a1bddf924d24570074b09d7967c145e54dc4cee7972a92fd975a2ad9e64b424', tx.txid())
def test_txid_bitcoin_core_0074(self):
tx = transaction.Transaction('01000000000103000100000000000000000000000000000000000000000000000000000000000000000000000200000000010000000000000000000000000000000000000000000000000000000000000100000000ffffffff000100000000000000000000000000000000000000000000000000000000000002000000000200000003e8030000000000000151d0070000000000000151b80b00000000000001510002473044022022fceb54f62f8feea77faac7083c3b56c4676a78f93745adc8a35800bc36adfa022026927df9abcf0a8777829bcfcce3ff0a385fa54c3f9df577405e3ef24ee56479022103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710000000000')
self.assertEqual('cfe9f4b19f52b8366860aec0d2b5815e329299b2e9890d477edd7f1182be7ac8', tx.txid())
def test_txid_bitcoin_core_0075(self):
tx = transaction.Transaction('0100000000010400010000000000000000000000000000000000000000000000000000000000000200000000ffffffff00010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff00010000000000000000000000000000000000000000000000000000000000000300000000ffffffff03e8030000000000000151d0070000000000000151b80b0000000000000151000002483045022100a3cec69b52cba2d2de623eeef89e0ba1606184ea55476c0f8189fda231bc9cbb022003181ad597f7c380a7d1c740286b1d022b8b04ded028b833282e055e03b8efef812103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710000000000')
self.assertEqual('aee8f4865ca40fa77ff2040c0d7de683bea048b103d42ca406dc07dd29d539cb', tx.txid())
def test_txid_bitcoin_core_0076(self):
tx = transaction.Transaction('0100000000010300010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff00010000000000000000000000000000000000000000000000000000000000000200000000ffffffff03e8030000000000000151d0070000000000000151b80b00000000000001510002483045022100a3cec69b52cba2d2de623eeef89e0ba1606184ea55476c0f8189fda231bc9cbb022003181ad597f7c380a7d1c740286b1d022b8b04ded028b833282e055e03b8efef812103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710000000000')
self.assertEqual('8a1bddf924d24570074b09d7967c145e54dc4cee7972a92fd975a2ad9e64b424', tx.txid())
def test_txid_bitcoin_core_0077(self):
tx = transaction.Transaction('0100000000010300010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff00010000000000000000000000000000000000000000000000000000000000000200000000ffffffff03e8030000000000000151d0070000000000000151b80b00000000000001510002483045022100a3cec69b52cba2d2de623ffffffffff1606184ea55476c0f8189fda231bc9cbb022003181ad597f7c380a7d1c740286b1d022b8b04ded028b833282e055e03b8efef812103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710000000000')
self.assertEqual('8a1bddf924d24570074b09d7967c145e54dc4cee7972a92fd975a2ad9e64b424', tx.txid())
def test_txid_bitcoin_core_0078(self):
tx = transaction.Transaction('0100000000010100010000000000000000000000000000000000000000000000000000000000000000000000ffffffff010000000000000000015102fd08020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002755100000000')
self.assertEqual('d93ab9e12d7c29d2adc13d5cdf619d53eec1f36eb6612f55af52be7ba0448e97', tx.txid())
def test_txid_bitcoin_core_0079(self):
tx = transaction.Transaction('0100000000010c00010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff0001000000000000000000000000000000000000000000000000000000000000020000006a473044022026c2e65b33fcd03b2a3b0f25030f0244bd23cc45ae4dec0f48ae62255b1998a00220463aa3982b718d593a6b9e0044513fd67a5009c2fdccc59992cffc2b167889f4012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc71ffffffff0001000000000000000000000000000000000000000000000000000000000000030000006a4730440220008bd8382911218dcb4c9f2e75bf5c5c3635f2f2df49b36994fde85b0be21a1a02205a539ef10fb4c778b522c1be852352ea06c67ab74200977c722b0bc68972575a012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc71ffffffff0001000000000000000000000000000000000000000000000000000000000000040000006b483045022100d9436c32ff065127d71e1a20e319e4fe0a103ba0272743dbd8580be4659ab5d302203fd62571ee1fe790b182d078ecfd092a509eac112bea558d122974ef9cc012c7012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc71ffffffff0001000000000000000000000000000000000000000000000000000000000000050000006a47304402200e2c149b114ec546015c13b2b464bbcb0cdc5872e6775787527af6cbc4830b6c02207e9396c6979fb15a9a2b96ca08a633866eaf20dc0ff3c03e512c1d5a1654f148012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc71ffffffff0001000000000000000000000000000000000000000000000000000000000000060000006b483045022100b20e70d897dc15420bccb5e0d3e208d27bdd676af109abbd3f88dbdb7721e6d6022005836e663173fbdfe069f54cde3c2decd3d0ea84378092a5d9d85ec8642e8a41012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc71ffffffff00010000000000000000000000000000000000000000000000000000000000000700000000ffffffff00010000000000000000000000000000000000000000000000000000000000000800000000ffffffff00010000000000000000000000000000000000000000000000000000000000000900000000ffffffff00010000000000000000000000000000000000000000000000000000000000000a00000000ffffffff00010000000000000000000000000000000000000000000000000000000000000b0000006a47304402206639c6e05e3b9d2675a7f3876286bdf7584fe2bbd15e0ce52dd4e02c0092cdc60220757d60b0a61fc95ada79d23746744c72bac1545a75ff6c2c7cdb6ae04e7e9592012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc71ffffffff0ce8030000000000000151e9030000000000000151ea030000000000000151eb030000000000000151ec030000000000000151ed030000000000000151ee030000000000000151ef030000000000000151f0030000000000000151f1030000000000000151f2030000000000000151f30300000000000001510248304502210082219a54f61bf126bfc3fa068c6e33831222d1d7138c6faa9d33ca87fd4202d6022063f9902519624254d7c2c8ea7ba2d66ae975e4e229ae38043973ec707d5d4a83012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc7102473044022017fb58502475848c1b09f162cb1688d0920ff7f142bed0ef904da2ccc88b168f02201798afa61850c65e77889cbcd648a5703b487895517c88f85cdd18b021ee246a012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc7100000000000247304402202830b7926e488da75782c81a54cd281720890d1af064629ebf2e31bf9f5435f30220089afaa8b455bbeb7d9b9c3fe1ed37d07685ade8455c76472cda424d93e4074a012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc7102473044022026326fcdae9207b596c2b05921dbac11d81040c4d40378513670f19d9f4af893022034ecd7a282c0163b89aaa62c22ec202cef4736c58cd251649bad0d8139bcbf55012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc71024730440220214978daeb2f38cd426ee6e2f44131a33d6b191af1c216247f1dd7d74c16d84a02205fdc05529b0bc0c430b4d5987264d9d075351c4f4484c16e91662e90a72aab24012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710247304402204a6e9f199dc9672cf2ff8094aaa784363be1eb62b679f7ff2df361124f1dca3302205eeb11f70fab5355c9c8ad1a0700ea355d315e334822fa182227e9815308ee8f012103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710000000000')
self.assertEqual('b83579db5246aa34255642768167132a0c3d2932b186cd8fb9f5490460a0bf91', tx.txid())
def test_txid_bitcoin_core_0080(self):
tx = transaction.Transaction('010000000100010000000000000000000000000000000000000000000000000000000000000000000000ffffffff01e803000000000000015100000000')
self.assertEqual('2b1e44fff489d09091e5e20f9a01bbc0e8d80f0662e629fd10709cdb4922a874', tx.txid())
def test_txid_bitcoin_core_0081(self):
tx = transaction.Transaction('0100000000010200010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff01d00700000000000001510003483045022100e078de4e96a0e05dcdc0a414124dd8475782b5f3f0ed3f607919e9a5eeeb22bf02201de309b3a3109adb3de8074b3610d4cf454c49b61247a2779a0bcbf31c889333032103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc711976a9144c9c3dfac4207d5d8cb89df5722cb3d712385e3f88ac00000000')
self.assertEqual('60ebb1dd0b598e20dd0dd462ef6723dd49f8f803b6a2492926012360119cfdd7', tx.txid())
def test_txid_bitcoin_core_0082(self):
tx = transaction.Transaction('0100000000010200010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00010000000000000000000000000000000000000000000000000000000000000100000000ffffffff02e8030000000000000151e90300000000000001510247304402206d59682663faab5e4cb733c562e22cdae59294895929ec38d7c016621ff90da0022063ef0af5f970afe8a45ea836e3509b8847ed39463253106ac17d19c437d3d56b832103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710248304502210085001a820bfcbc9f9de0298af714493f8a37b3b354bfd21a7097c3e009f2018c022050a8b4dbc8155d4d04da2f5cdd575dcf8dd0108de8bec759bd897ea01ecb3af7832103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc7100000000')
self.assertEqual('ed0c7f4163e275f3f77064f471eac861d01fdf55d03aa6858ebd3781f70bf003', tx.txid())
def test_txid_bitcoin_core_0083(self):
tx = transaction.Transaction('0100000000010200010000000000000000000000000000000000000000000000000000000000000100000000ffffffff00010000000000000000000000000000000000000000000000000000000000000000000000ffffffff02e9030000000000000151e80300000000000001510248304502210085001a820bfcbc9f9de0298af714493f8a37b3b354bfd21a7097c3e009f2018c022050a8b4dbc8155d4d04da2f5cdd575dcf8dd0108de8bec759bd897ea01ecb3af7832103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc710247304402206d59682663faab5e4cb733c562e22cdae59294895929ec38d7c016621ff90da0022063ef0af5f970afe8a45ea836e3509b8847ed39463253106ac17d19c437d3d56b832103596d3451025c19dbbdeb932d6bf8bfb4ad499b95b6f88db8899efac102e5fc7100000000')
self.assertEqual('f531ddf5ce141e1c8a7fdfc85cc634e5ff686f446a5cf7483e9dbe076b844862', tx.txid())
def test_txid_bitcoin_core_0084(self):
tx = transaction.Transaction('01000000020001000000000000000000000000000000000000000000000000000000000000000000004847304402202a0b4b1294d70540235ae033d78e64b4897ec859c7b6f1b2b1d8a02e1d46006702201445e756d2254b0f1dfda9ab8e1e1bc26df9668077403204f32d16a49a36eb6983ffffffff00010000000000000000000000000000000000000000000000000000000000000100000049483045022100acb96cfdbda6dc94b489fd06f2d720983b5f350e31ba906cdbd800773e80b21c02200d74ea5bdf114212b4bbe9ed82c36d2e369e302dff57cb60d01c428f0bd3daab83ffffffff02e8030000000000000151e903000000000000015100000000')
self.assertEqual('98229b70948f1c17851a541f1fe532bf02c408267fecf6d7e174c359ae870654', tx.txid())
def test_txid_bitcoin_core_0085(self):
tx = transaction.Transaction('01000000000102fe3dc9208094f3ffd12645477b3dc56f60ec4fa8e6f5d67c565d1c6b9216b36e000000004847304402200af4e47c9b9629dbecc21f73af989bdaa911f7e6f6c2e9394588a3aa68f81e9902204f3fcf6ade7e5abb1295b6774c8e0abd94ae62217367096bc02ee5e435b67da201ffffffff0815cf020f013ed6cf91d29f4202e8a58726b1ac6c79da47c23d1bee0a6925f80000000000ffffffff0100f2052a010000001976a914a30741f8145e5acadf23f751864167f32e0963f788ac000347304402200de66acf4527789bfda55fc5459e214fa6083f936b430a762c629656216805ac0220396f550692cd347171cbc1ef1f51e15282e837bb2b30860dc77c8f78bc8501e503473044022027dc95ad6b740fe5129e7e62a75dd00f291a2aeb1200b84b09d9e3789406b6c002201a9ecd315dd6a0e632ab20bbb98948bc0c6fb204f2c286963bb48517a7058e27034721026dccc749adc2a9d0d89497ac511f760f45c47dc5ed9cf352a58ac706453880aeadab210255a9626aebf5e29c0e6538428ba0d1dcf6ca98ffdf086aa8ced5e0d0215ea465ac00000000')
self.assertEqual('570e3730deeea7bd8bc92c836ccdeb4dd4556f2c33f2a1f7b889a4cb4e48d3ab', tx.txid())
def test_txid_bitcoin_core_0086(self):
tx = transaction.Transaction('01000000000102e9b542c5176808107ff1df906f46bb1f2583b16112b95ee5380665ba7fcfc0010000000000ffffffff80e68831516392fcd100d186b3c2c7b95c80b53c77e77c35ba03a66b429a2a1b0000000000ffffffff0280969800000000001976a914de4b231626ef508c9a74a8517e6783c0546d6b2888ac80969800000000001976a9146648a8cd4531e1ec47f35916de8e259237294d1e88ac02483045022100f6a10b8604e6dc910194b79ccfc93e1bc0ec7c03453caaa8987f7d6c3413566002206216229ede9b4d6ec2d325be245c5b508ff0339bf1794078e20bfe0babc7ffe683270063ab68210392972e2eb617b2388771abe27235fd5ac44af8e61693261550447a4c3e39da98ac024730440220032521802a76ad7bf74d0e2c218b72cf0cbc867066e2e53db905ba37f130397e02207709e2188ed7f08f4c952d9d13986da504502b8c3be59617e043552f506c46ff83275163ab68210392972e2eb617b2388771abe27235fd5ac44af8e61693261550447a4c3e39da98ac00000000')
self.assertEqual('e0b8142f587aaa322ca32abce469e90eda187f3851043cc4f2a0fff8c13fc84e', tx.txid())
def test_txid_bitcoin_core_0087(self):
tx = transaction.Transaction('0100000000010280e68831516392fcd100d186b3c2c7b95c80b53c77e77c35ba03a66b429a2a1b0000000000ffffffffe9b542c5176808107ff1df906f46bb1f2583b16112b95ee5380665ba7fcfc0010000000000ffffffff0280969800000000001976a9146648a8cd4531e1ec47f35916de8e259237294d1e88ac80969800000000001976a914de4b231626ef508c9a74a8517e6783c0546d6b2888ac024730440220032521802a76ad7bf74d0e2c218b72cf0cbc867066e2e53db905ba37f130397e02207709e2188ed7f08f4c952d9d13986da504502b8c3be59617e043552f506c46ff83275163ab68210392972e2eb617b2388771abe27235fd5ac44af8e61693261550447a4c3e39da98ac02483045022100f6a10b8604e6dc910194b79ccfc93e1bc0ec7c03453caaa8987f7d6c3413566002206216229ede9b4d6ec2d325be245c5b508ff0339bf1794078e20bfe0babc7ffe683270063ab68210392972e2eb617b2388771abe27235fd5ac44af8e61693261550447a4c3e39da98ac00000000')
self.assertEqual('b9ecf72df06b8f98f8b63748d1aded5ffc1a1186f8a302e63cf94f6250e29f4d', tx.txid())
def test_txid_bitcoin_core_0088(self):
tx = transaction.Transaction('0100000000010136641869ca081e70f394c6948e8af409e18b619df2ed74aa106c1ca29787b96e0100000023220020a16b5755f7f6f96dbd65f5f0d6ab9418b89af4b1f14a1bb8a09062c35f0dcb54ffffffff0200e9a435000000001976a914389ffce9cd9ae88dcc0631e88a821ffdbe9bfe2688acc0832f05000000001976a9147480a33f950689af511e6e84c138dbbd3c3ee41588ac080047304402206ac44d672dac41f9b00e28f4df20c52eeb087207e8d758d76d92c6fab3b73e2b0220367750dbbe19290069cba53d096f44530e4f98acaa594810388cf7409a1870ce01473044022068c7946a43232757cbdf9176f009a928e1cd9a1a8c212f15c1e11ac9f2925d9002205b75f937ff2f9f3c1246e547e54f62e027f64eefa2695578cc6432cdabce271502473044022059ebf56d98010a932cf8ecfec54c48e6139ed6adb0728c09cbe1e4fa0915302e022007cd986c8fa870ff5d2b3a89139c9fe7e499259875357e20fcbb15571c76795403483045022100fbefd94bd0a488d50b79102b5dad4ab6ced30c4069f1eaa69a4b5a763414067e02203156c6a5c9cf88f91265f5a942e96213afae16d83321c8b31bb342142a14d16381483045022100a5263ea0553ba89221984bd7f0b13613db16e7a70c549a86de0cc0444141a407022005c360ef0ae5a5d4f9f2f87a56c1546cc8268cab08c73501d6b3be2e1e1a8a08824730440220525406a1482936d5a21888260dc165497a90a15669636d8edca6b9fe490d309c022032af0c646a34a44d1f4576bf6a4a74b67940f8faa84c7df9abe12a01a11e2b4783cf56210307b8ae49ac90a048e9b53357a2354b3334e9c8bee813ecb98e99a7e07e8c3ba32103b28f0c28bfab54554ae8c658ac5c3e0ce6e79ad336331f78c428dd43eea8449b21034b8113d703413d57761b8b9781957b8c0ac1dfe69f492580ca4195f50376ba4a21033400f6afecb833092a9a21cfdf1ed1376e58c5d1f47de74683123987e967a8f42103a6d48b1131e94ba04d9737d61acdaa1322008af9602b3b14862c07a1789aac162102d8b661b0b3302ee2f162b09e07a55ad5dfbe673a9f01d9f0c19617681024306b56ae00000000')
self.assertEqual('27eae69aff1dd4388c0fa05cbbfe9a3983d1b0b5811ebcd4199b86f299370aac', tx.txid())
def test_txid_bitcoin_core_0089(self):
tx = transaction.Transaction('010000000169c12106097dc2e0526493ef67f21269fe888ef05c7a3a5dacab38e1ac8387f1581b0000b64830450220487fb382c4974de3f7d834c1b617fe15860828c7f96454490edd6d891556dcc9022100baf95feb48f845d5bfc9882eb6aeefa1bc3790e39f59eaa46ff7f15ae626c53e0121037a3fb04bcdb09eba90f69961ba1692a3528e45e67c85b200df820212d7594d334aad4830450220487fb382c4974de3f7d834c1b617fe15860828c7f96454490edd6d891556dcc9022100baf95feb48f845d5bfc9882eb6aeefa1bc3790e39f59eaa46ff7f15ae626c53e01ffffffff0101000000000000000000000000')
self.assertEqual('22d020638e3b7e1f2f9a63124ac76f5e333c74387862e3675f64b25e960d3641', tx.txid())
def test_txid_bitcoin_core_0090(self):
tx = transaction.Transaction('0100000000010169c12106097dc2e0526493ef67f21269fe888ef05c7a3a5dacab38e1ac8387f14c1d000000ffffffff01010000000000000000034830450220487fb382c4974de3f7d834c1b617fe15860828c7f96454490edd6d891556dcc9022100baf95feb48f845d5bfc9882eb6aeefa1bc3790e39f59eaa46ff7f15ae626c53e012102a9781d66b61fb5a7ef00ac5ad5bc6ffc78be7b44a566e3c87870e1079368df4c4aad4830450220487fb382c4974de3f7d834c1b617fe15860828c7f96454490edd6d891556dcc9022100baf95feb48f845d5bfc9882eb6aeefa1bc3790e39f59eaa46ff7f15ae626c53e0100000000')
self.assertEqual('2862bc0c69d2af55da7284d1b16a7cddc03971b77e5a97939cca7631add83bf5', tx.txid())
def test_txid_bitcoin_core_0091(self):
tx = transaction.Transaction('01000000019275cb8d4a485ce95741c013f7c0d28722160008021bb469a11982d47a662896581b0000fd6f01004830450220487fb382c4974de3f7d834c1b617fe15860828c7f96454490edd6d891556dcc9022100baf95feb48f845d5bfc9882eb6aeefa1bc3790e39f59eaa46ff7f15ae626c53e0148304502205286f726690b2e9b0207f0345711e63fa7012045b9eb0f19c2458ce1db90cf43022100e89f17f86abc5b149eba4115d4f128bcf45d77fb3ecdd34f594091340c03959601522102cd74a2809ffeeed0092bc124fd79836706e41f048db3f6ae9df8708cefb83a1c2102e615999372426e46fd107b76eaf007156a507584aa2cc21de9eee3bdbd26d36c4c9552af4830450220487fb382c4974de3f7d834c1b617fe15860828c7f96454490edd6d891556dcc9022100baf95feb48f845d5bfc9882eb6aeefa1bc3790e39f59eaa46ff7f15ae626c53e0148304502205286f726690b2e9b0207f0345711e63fa7012045b9eb0f19c2458ce1db90cf43022100e89f17f86abc5b149eba4115d4f128bcf45d77fb3ecdd34f594091340c0395960175ffffffff0101000000000000000000000000')
self.assertEqual('1aebf0c98f01381765a8c33d688f8903e4d01120589ac92b78f1185dc1f4119c', tx.txid())
def test_txid_bitcoin_core_0092(self):
tx = transaction.Transaction('010000000001019275cb8d4a485ce95741c013f7c0d28722160008021bb469a11982d47a6628964c1d000000ffffffff0101000000000000000007004830450220487fb382c4974de3f7d834c1b617fe15860828c7f96454490edd6d891556dcc9022100baf95feb48f845d5bfc9882eb6aeefa1bc3790e39f59eaa46ff7f15ae626c53e0148304502205286f726690b2e9b0207f0345711e63fa7012045b9eb0f19c2458ce1db90cf43022100e89f17f86abc5b149eba4115d4f128bcf45d77fb3ecdd34f594091340c0395960101022102966f109c54e85d3aee8321301136cedeb9fc710fdef58a9de8a73942f8e567c021034ffc99dd9a79dd3cb31e2ab3e0b09e0e67db41ac068c625cd1f491576016c84e9552af4830450220487fb382c4974de3f7d834c1b617fe15860828c7f96454490edd6d891556dcc9022100baf95feb48f845d5bfc9882eb6aeefa1bc3790e39f59eaa46ff7f15ae626c53e0148304502205286f726690b2e9b0207f0345711e63fa7012045b9eb0f19c2458ce1db90cf43022100e89f17f86abc5b149eba4115d4f128bcf45d77fb3ecdd34f594091340c039596017500000000')
self.assertEqual('45d17fb7db86162b2b6ca29fa4e163acf0ef0b54110e49b819bda1f948d423a3', tx.txid())
# txns from Bitcoin Core ends <---
class NetworkMock(object):
def __init__(self, unspent):
self.unspent = unspent
def synchronous_get(self, arg):
return self.unspent
| 130.256
| 3,862
| 0.90683
| 2,419
| 81,410
| 30.286482
| 0.200496
| 0.029688
| 0.037345
| 0.042805
| 0.104377
| 0.097757
| 0.088694
| 0.052496
| 0.049957
| 0.046927
| 0
| 0.58147
| 0.059096
| 81,410
| 624
| 3,863
| 130.464744
| 0.374979
| 0.003132
| 0
| 0.154661
| 0
| 0
| 0.764569
| 0.760133
| 0
| 1
| 0
| 0.001603
| 0.326271
| 1
| 0.258475
| false
| 0
| 0.010593
| 0.002119
| 0.277542
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
745be9afbf20554842d59bbe7c124be4cf0bfdab
| 97,830
|
py
|
Python
|
alibabacloud/clients/smartag_20180313.py
|
wallisyan/alibabacloud-python-sdk-v2
|
6e024c97cded2403025a7dd8fea8261e41872156
|
[
"Apache-2.0"
] | 21
|
2018-12-20T07:34:13.000Z
|
2020-03-05T14:32:08.000Z
|
alibabacloud/clients/smartag_20180313.py
|
wallisyan/alibabacloud-python-sdk-v2
|
6e024c97cded2403025a7dd8fea8261e41872156
|
[
"Apache-2.0"
] | 22
|
2018-12-21T13:22:33.000Z
|
2020-06-29T08:37:09.000Z
|
alibabacloud/clients/smartag_20180313.py
|
wallisyan/alibabacloud-python-sdk-v2
|
6e024c97cded2403025a7dd8fea8261e41872156
|
[
"Apache-2.0"
] | 12
|
2018-12-29T05:45:55.000Z
|
2022-01-05T09:59:30.000Z
|
# Copyright 2019 Alibaba Cloud Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from alibabacloud.client import AlibabaCloudClient
from alibabacloud.request import APIRequest
from alibabacloud.utils.parameter_validation import verify_params
class SmartagClient(AlibabaCloudClient):
def __init__(self, client_config, credentials_provider=None, retry_policy=None,
endpoint_resolver=None):
AlibabaCloudClient.__init__(self, client_config,
credentials_provider=credentials_provider,
retry_policy=retry_policy,
endpoint_resolver=endpoint_resolver)
self.product_code = 'Smartag'
self.api_version = '2018-03-13'
self.location_service_code = 'smartag'
self.location_endpoint_type = 'openAPI'
def describe_bindable_smart_access_gateways(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
cross_account=None,
owner_account=None,
ccn_id=None,
page_size=None,
owner_id=None,
page_number=None):
api_request = APIRequest('DescribeBindableSmartAccessGateways',
'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"CrossAccount": cross_account,
"OwnerAccount": owner_account,
"CcnId": ccn_id,
"PageSize": page_size,
"OwnerId": owner_id,
"PageNumber": page_number}
return self._handle_request(api_request).result
def describe_unbind_flow_log_sags(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
owner_id=None):
api_request = APIRequest('DescribeUnbindFlowLogSags', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def modify_sag_remote_access(
self,
resource_owner_id=None,
serial_number=None,
resource_owner_account=None,
owner_account=None,
remote_access_ip=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('ModifySagRemoteAccess', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"SerialNumber": serial_number,
"ResourceOwnerAccount": resource_owner_account,
"OwnerAccount": owner_account,
"RemoteAccessIp": remote_access_ip,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def associate_qos(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
qos_id=None):
api_request = APIRequest('AssociateQos', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"QosId": qos_id}
return self._handle_request(api_request).result
def disassociate_qos(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
qos_id=None):
api_request = APIRequest('DisassociateQos', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"QosId": qos_id}
return self._handle_request(api_request).result
def modify_smart_access_gateway_up_bandwidth(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
up_bandwidth4_g=None,
smart_ag_id=None,
up_bandwidth_wan=None,
owner_id=None):
api_request = APIRequest('ModifySmartAccessGatewayUpBandwidth',
'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"UpBandwidth4G": up_bandwidth4_g,
"SmartAGId": smart_ag_id,
"UpBandwidthWan": up_bandwidth_wan,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def deactive_flow_log(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
owner_id=None,
flow_log_id=None):
api_request = APIRequest('DeactiveFlowLog', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id,
"FlowLogId": flow_log_id}
return self._handle_request(api_request).result
def associate_flow_log(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
flow_log_id=None):
api_request = APIRequest('AssociateFlowLog', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"FlowLogId": flow_log_id}
return self._handle_request(api_request).result
def describe_flow_log_sags(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
page_size=None,
owner_id=None,
flow_log_id=None,
page_number=None):
api_request = APIRequest('DescribeFlowLogSags', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"PageSize": page_size,
"OwnerId": owner_id,
"FlowLogId": flow_log_id,
"PageNumber": page_number}
return self._handle_request(api_request).result
def active_flow_log(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
owner_id=None,
flow_log_id=None):
api_request = APIRequest('ActiveFlowLog', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id,
"FlowLogId": flow_log_id}
return self._handle_request(api_request).result
def delete_flow_log(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
owner_id=None,
flow_log_id=None):
api_request = APIRequest('DeleteFlowLog', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id,
"FlowLogId": flow_log_id}
return self._handle_request(api_request).result
def describe_flow_logs(
self,
resource_owner_id=None,
resource_owner_account=None,
owner_account=None,
description=None,
owner_id=None,
page_number=None,
region_id=None,
page_size=None,
output_type=None,
flow_log_id=None,
flow_log_name=None,
status=None):
api_request = APIRequest('DescribeFlowLogs', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"OwnerAccount": owner_account,
"Description": description,
"OwnerId": owner_id,
"PageNumber": page_number,
"RegionId": region_id,
"PageSize": page_size,
"OutputType": output_type,
"FlowLogId": flow_log_id,
"FlowLogName": flow_log_name,
"Status": status}
return self._handle_request(api_request).result
def modify_flow_log_attribute(
self,
resource_owner_id=None,
project_name=None,
logstore_name=None,
resource_owner_account=None,
owner_account=None,
netflow_server_port=None,
netflow_version=None,
description=None,
owner_id=None,
inactive_aging=None,
netflow_server_ip=None,
region_id=None,
name=None,
sls_region_id=None,
active_aging=None,
output_type=None,
flow_log_id=None):
api_request = APIRequest('ModifyFlowLogAttribute', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ProjectName": project_name,
"LogstoreName": logstore_name,
"ResourceOwnerAccount": resource_owner_account,
"OwnerAccount": owner_account,
"NetflowServerPort": netflow_server_port,
"NetflowVersion": netflow_version,
"Description": description,
"OwnerId": owner_id,
"InactiveAging": inactive_aging,
"NetflowServerIp": netflow_server_ip,
"RegionId": region_id,
"Name": name,
"SlsRegionId": sls_region_id,
"ActiveAging": active_aging,
"OutputType": output_type,
"FlowLogId": flow_log_id}
return self._handle_request(api_request).result
def create_flow_log(
self,
resource_owner_id=None,
project_name=None,
logstore_name=None,
resource_owner_account=None,
owner_account=None,
netflow_server_port=None,
netflow_version=None,
description=None,
owner_id=None,
inactive_aging=None,
netflow_server_ip=None,
region_id=None,
name=None,
sls_region_id=None,
active_aging=None,
output_type=None):
api_request = APIRequest('CreateFlowLog', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ProjectName": project_name,
"LogstoreName": logstore_name,
"ResourceOwnerAccount": resource_owner_account,
"OwnerAccount": owner_account,
"NetflowServerPort": netflow_server_port,
"NetflowVersion": netflow_version,
"Description": description,
"OwnerId": owner_id,
"InactiveAging": inactive_aging,
"NetflowServerIp": netflow_server_ip,
"RegionId": region_id,
"Name": name,
"SlsRegionId": sls_region_id,
"ActiveAging": active_aging,
"OutputType": output_type}
return self._handle_request(api_request).result
def disassociate_flow_log(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
flow_log_id=None):
api_request = APIRequest('DisassociateFlowLog', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"FlowLogId": flow_log_id}
return self._handle_request(api_request).result
def describe_grant_sag_rules(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
page_size=None,
smart_ag_id=None,
owner_id=None,
page_number=None):
api_request = APIRequest('DescribeGrantSagRules', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"PageSize": page_size,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"PageNumber": page_number}
return self._handle_request(api_request).result
def grant_sag_instance_to_ccn(
self,
resource_owner_id=None,
ccn_uid=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
ccn_instance_id=None,
owner_id=None):
api_request = APIRequest('GrantSagInstanceToCcn', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"CcnUid": ccn_uid,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"CcnInstanceId": ccn_instance_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def revoke_sag_instance_from_ccn(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
ccn_instance_id=None,
owner_id=None):
api_request = APIRequest('RevokeSagInstanceFromCcn', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"CcnInstanceId": ccn_instance_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def describe_smart_access_gateway_attribute(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('DescribeSmartAccessGatewayAttribute',
'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def describe_qoses(
self,
resource_owner_id=None,
qos_name=None,
resource_owner_account=None,
region_id=None,
qos_ids=None,
owner_account=None,
page_size=None,
owner_id=None,
page_number=None):
api_request = APIRequest('DescribeQoses', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"QosName": qos_name,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"QosIds": qos_ids,
"OwnerAccount": owner_account,
"PageSize": page_size,
"OwnerId": owner_id,
"PageNumber": page_number}
return self._handle_request(api_request).result
def delete_qos(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
owner_id=None,
qos_id=None):
api_request = APIRequest('DeleteQos', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id,
"QosId": qos_id}
return self._handle_request(api_request).result
def create_qos(
self,
resource_owner_id=None,
qos_name=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
owner_id=None):
api_request = APIRequest('CreateQos', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"QosName": qos_name,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def modify_qos(
self,
resource_owner_id=None,
qos_name=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
owner_id=None,
qos_id=None):
api_request = APIRequest('ModifyQos', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"QosName": qos_name,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id,
"QosId": qos_id}
return self._handle_request(api_request).result
def create_qos_policy(
self,
resource_owner_id=None,
source_port_range=None,
resource_owner_account=None,
ip_protocol=None,
owner_account=None,
source_cidr=None,
description=None,
end_time=None,
start_time=None,
owner_id=None,
priority=None,
dest_cidr=None,
dest_port_range=None,
region_id=None,
qos_id=None):
api_request = APIRequest('CreateQosPolicy', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"SourcePortRange": source_port_range,
"ResourceOwnerAccount": resource_owner_account,
"IpProtocol": ip_protocol,
"OwnerAccount": owner_account,
"SourceCidr": source_cidr,
"Description": description,
"EndTime": end_time,
"StartTime": start_time,
"OwnerId": owner_id,
"Priority": priority,
"DestCidr": dest_cidr,
"DestPortRange": dest_port_range,
"RegionId": region_id,
"QosId": qos_id}
return self._handle_request(api_request).result
def delete_qos_policy(
self,
resource_owner_id=None,
qos_policy_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
owner_id=None,
qos_id=None):
api_request = APIRequest('DeleteQosPolicy', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"QosPolicyId": qos_policy_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id,
"QosId": qos_id}
return self._handle_request(api_request).result
def modify_qos_policy(
self,
resource_owner_id=None,
source_port_range=None,
qos_policy_id=None,
resource_owner_account=None,
ip_protocol=None,
owner_account=None,
source_cidr=None,
end_time=None,
description=None,
start_time=None,
owner_id=None,
priority=None,
dest_cidr=None,
dest_port_range=None,
region_id=None,
qos_id=None):
api_request = APIRequest('ModifyQosPolicy', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"SourcePortRange": source_port_range,
"QosPolicyId": qos_policy_id,
"ResourceOwnerAccount": resource_owner_account,
"IpProtocol": ip_protocol,
"OwnerAccount": owner_account,
"SourceCidr": source_cidr,
"EndTime": end_time,
"Description": description,
"StartTime": start_time,
"OwnerId": owner_id,
"Priority": priority,
"DestCidr": dest_cidr,
"DestPortRange": dest_port_range,
"RegionId": region_id,
"QosId": qos_id}
return self._handle_request(api_request).result
def modify_qos_car(
self,
max_bandwidth_abs=None,
resource_owner_id=None,
resource_owner_account=None,
min_bandwidth_abs=None,
max_bandwidth_percent=None,
owner_account=None,
description=None,
owner_id=None,
qos_car_id=None,
priority=None,
min_bandwidth_percent=None,
limit_type=None,
region_id=None,
percent_source_type=None,
qos_id=None):
api_request = APIRequest('ModifyQosCar', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"MaxBandwidthAbs": max_bandwidth_abs,
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"MinBandwidthAbs": min_bandwidth_abs,
"MaxBandwidthPercent": max_bandwidth_percent,
"OwnerAccount": owner_account,
"Description": description,
"OwnerId": owner_id,
"QosCarId": qos_car_id,
"Priority": priority,
"MinBandwidthPercent": min_bandwidth_percent,
"LimitType": limit_type,
"RegionId": region_id,
"PercentSourceType": percent_source_type,
"QosId": qos_id}
return self._handle_request(api_request).result
def delete_qos_car(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
owner_id=None,
qos_id=None,
qos_car_id=None):
api_request = APIRequest('DeleteQosCar', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id,
"QosId": qos_id,
"QosCarId": qos_car_id}
return self._handle_request(api_request).result
def create_qos_car(
self,
max_bandwidth_abs=None,
resource_owner_id=None,
resource_owner_account=None,
min_bandwidth_abs=None,
max_bandwidth_percent=None,
owner_account=None,
description=None,
owner_id=None,
priority=None,
min_bandwidth_percent=None,
limit_type=None,
region_id=None,
percent_source_type=None,
qos_id=None):
api_request = APIRequest('CreateQosCar', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"MaxBandwidthAbs": max_bandwidth_abs,
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"MinBandwidthAbs": min_bandwidth_abs,
"MaxBandwidthPercent": max_bandwidth_percent,
"OwnerAccount": owner_account,
"Description": description,
"OwnerId": owner_id,
"Priority": priority,
"MinBandwidthPercent": min_bandwidth_percent,
"LimitType": limit_type,
"RegionId": region_id,
"PercentSourceType": percent_source_type,
"QosId": qos_id}
return self._handle_request(api_request).result
def describe_qos_policies(
self,
resource_owner_id=None,
qos_policy_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
page_size=None,
description=None,
owner_id=None,
qos_id=None,
page_number=None,
order=None):
api_request = APIRequest('DescribeQosPolicies', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"QosPolicyId": qos_policy_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"PageSize": page_size,
"Description": description,
"OwnerId": owner_id,
"QosId": qos_id,
"PageNumber": page_number,
"Order": order}
return self._handle_request(api_request).result
def describe_qos_cars(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
page_size=None,
description=None,
owner_id=None,
qos_id=None,
qos_car_id=None,
page_number=None,
order=None):
api_request = APIRequest('DescribeQosCars', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"PageSize": page_size,
"Description": description,
"OwnerId": owner_id,
"QosId": qos_id,
"QosCarId": qos_car_id,
"PageNumber": page_number,
"Order": order}
return self._handle_request(api_request).result
def describe_smart_access_gateway_routes(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
page_size=None,
smart_ag_id=None,
owner_id=None,
page_nubmer=None):
api_request = APIRequest('DescribeSmartAccessGatewayRoutes', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"PageSize": page_size,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"PageNubmer": page_nubmer}
return self._handle_request(api_request).result
def describe_snat_entries(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
page_size=None,
smart_ag_id=None,
owner_id=None,
page_number=None):
api_request = APIRequest('DescribeSnatEntries', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"PageSize": page_size,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"PageNumber": page_number}
return self._handle_request(api_request).result
def delete_snat_entry(
self,
resource_owner_id=None,
instance_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('DeleteSnatEntry', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"InstanceId": instance_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def add_snat_entry(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
cidr_block=None,
smart_ag_id=None,
owner_id=None,
snat_ip=None):
api_request = APIRequest('AddSnatEntry', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"CidrBlock": cidr_block,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"SnatIp": snat_ip}
return self._handle_request(api_request).result
def delete_dnat_entry(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
sag_id=None,
owner_account=None,
owner_id=None,
dnat_entry_id=None):
api_request = APIRequest('DeleteDnatEntry', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"SagId": sag_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id,
"DnatEntryId": dnat_entry_id}
return self._handle_request(api_request).result
def add_dnat_entry(
self,
resource_owner_id=None,
resource_owner_account=None,
ip_protocol=None,
owner_account=None,
owner_id=None,
type_=None,
internal_ip=None,
region_id=None,
sag_id=None,
internal_port=None,
external_ip=None,
external_port=None):
api_request = APIRequest('AddDnatEntry', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"IpProtocol": ip_protocol,
"OwnerAccount": owner_account,
"OwnerId": owner_id,
"Type": type_,
"InternalIp": internal_ip,
"RegionId": region_id,
"SagId": sag_id,
"InternalPort": internal_port,
"ExternalIp": external_ip,
"ExternalPort": external_port}
return self._handle_request(api_request).result
def describe_dnat_entries(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
sag_id=None,
owner_account=None,
page_size=None,
owner_id=None,
type_=None,
page_number=None):
api_request = APIRequest('DescribeDnatEntries', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"SagId": sag_id,
"OwnerAccount": owner_account,
"PageSize": page_size,
"OwnerId": owner_id,
"Type": type_,
"PageNumber": page_number}
return self._handle_request(api_request).result
def bind_vbr(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
vbr_id=None,
vbr_region_id=None):
api_request = APIRequest('BindVbr', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"VbrId": vbr_id,
"VbrRegionId": vbr_region_id}
return self._handle_request(api_request).result
def unbind_vbr(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
vbr_id=None,
vbr_region_id=None):
api_request = APIRequest('UnbindVbr', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"VbrId": vbr_id,
"VbrRegionId": vbr_region_id}
return self._handle_request(api_request).result
def enable_smart_access_gateway_user(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
user_name=None):
api_request = APIRequest('EnableSmartAccessGatewayUser', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"UserName": user_name}
return self._handle_request(api_request).result
def disable_smart_access_gateway_user(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
user_name=None):
api_request = APIRequest('DisableSmartAccessGatewayUser', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"UserName": user_name}
return self._handle_request(api_request).result
def create_smart_access_gateway_software(
self,
resource_owner_id=None,
period=None,
auto_pay=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
user_count=None,
charge_type=None,
owner_id=None,
data_plan=None):
api_request = APIRequest('CreateSmartAccessGatewaySoftware', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"Period": period,
"AutoPay": auto_pay,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"UserCount": user_count,
"ChargeType": charge_type,
"OwnerId": owner_id,
"DataPlan": data_plan}
return self._handle_request(api_request).result
def describe_network_optimizations(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
network_opt_id=None,
owner_account=None,
ccn_id=None,
name=None,
page_size=None,
owner_id=None,
page_number=None):
api_request = APIRequest('DescribeNetworkOptimizations', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"NetworkOptId": network_opt_id,
"OwnerAccount": owner_account,
"CcnId": ccn_id,
"Name": name,
"PageSize": page_size,
"OwnerId": owner_id,
"PageNumber": page_number}
return self._handle_request(api_request).result
def add_network_optimization_setting(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
network_opt_id=None,
owner_account=None,
domain=None,
owner_id=None,
type_=None):
api_request = APIRequest('AddNetworkOptimizationSetting', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"NetworkOptId": network_opt_id,
"OwnerAccount": owner_account,
"Domain": domain,
"OwnerId": owner_id,
"Type": type_}
return self._handle_request(api_request).result
def attach_network_optimization_sags(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
network_opt_id=None,
owner_account=None,
list_of_smart_ag_ids=None,
owner_id=None):
api_request = APIRequest('AttachNetworkOptimizationSags', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"NetworkOptId": network_opt_id,
"OwnerAccount": owner_account,
"SmartAGIds": list_of_smart_ag_ids,
"OwnerId": owner_id}
repeat_info = {"SmartAGIds": ('SmartAGIds', 'list', 'str', None),
}
verify_params(api_request._params, repeat_info)
return self._handle_request(api_request).result
def delete_network_optimization_setting(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
network_opt_id=None,
owner_account=None,
domain=None,
owner_id=None,
type_=None):
api_request = APIRequest('DeleteNetworkOptimizationSetting', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"NetworkOptId": network_opt_id,
"OwnerAccount": owner_account,
"Domain": domain,
"OwnerId": owner_id,
"Type": type_}
return self._handle_request(api_request).result
def describe_network_optimization_sags(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
network_opt_id=None,
owner_account=None,
page_size=None,
owner_id=None,
page_number=None):
api_request = APIRequest('DescribeNetworkOptimizationSags', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"NetworkOptId": network_opt_id,
"OwnerAccount": owner_account,
"PageSize": page_size,
"OwnerId": owner_id,
"PageNumber": page_number}
return self._handle_request(api_request).result
def detach_network_optimization_sags(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
network_opt_id=None,
owner_account=None,
list_of_smart_ag_ids=None,
owner_id=None):
api_request = APIRequest('DetachNetworkOptimizationSags', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"NetworkOptId": network_opt_id,
"OwnerAccount": owner_account,
"SmartAGIds": list_of_smart_ag_ids,
"OwnerId": owner_id}
repeat_info = {"SmartAGIds": ('SmartAGIds', 'list', 'str', None),
}
verify_params(api_request._params, repeat_info)
return self._handle_request(api_request).result
def modify_network_optimization(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
network_opt_id=None,
owner_account=None,
name=None,
owner_id=None):
api_request = APIRequest('ModifyNetworkOptimization', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"NetworkOptId": network_opt_id,
"OwnerAccount": owner_account,
"Name": name,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def describe_network_optimization_settings(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
network_opt_id=None,
owner_account=None,
page_size=None,
owner_id=None,
page_number=None):
api_request = APIRequest('DescribeNetworkOptimizationSettings',
'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"NetworkOptId": network_opt_id,
"OwnerAccount": owner_account,
"PageSize": page_size,
"OwnerId": owner_id,
"PageNumber": page_number}
return self._handle_request(api_request).result
def delete_network_optimization(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
network_opt_id=None,
owner_account=None,
owner_id=None):
api_request = APIRequest('DeleteNetworkOptimization', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"NetworkOptId": network_opt_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def kick_out_clients(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
username=None):
api_request = APIRequest('KickOutClients', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"Username": username}
return self._handle_request(api_request).result
def set_sag_routeable_address(
self,
access_key_id=None,
resource_owner_id=None,
region_id=None,
resource_owner_account=None,
sag_id=None,
owner_account=None,
owner_id=None,
routeable_address=None):
api_request = APIRequest('SetSagRouteableAddress', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"access_key_id": access_key_id,
"ResourceOwnerId": resource_owner_id,
"RegionId": region_id,
"ResourceOwnerAccount": resource_owner_account,
"SagId": sag_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id,
"RouteableAddress": routeable_address}
return self._handle_request(api_request).result
def clear_sag_routeable_address(
self,
access_key_id=None,
resource_owner_id=None,
region_id=None,
resource_owner_account=None,
sag_id=None,
owner_account=None,
owner_id=None):
api_request = APIRequest('ClearSagRouteableAddress', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"access_key_id": access_key_id,
"ResourceOwnerId": resource_owner_id,
"RegionId": region_id,
"ResourceOwnerAccount": resource_owner_account,
"SagId": sag_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def describe_sag_routeable_address(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
sag_id=None,
owner_account=None,
owner_id=None):
api_request = APIRequest('DescribeSagRouteableAddress', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"SagId": sag_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def create_network_optimization(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
name=None,
ccn_id=None,
owner_id=None):
api_request = APIRequest('CreateNetworkOptimization', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"Name": name,
"CcnId": ccn_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def delete_smart_access_gateway_client_user(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
user_name=None):
api_request = APIRequest('DeleteSmartAccessGatewayClientUser',
'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"UserName": user_name}
return self._handle_request(api_request).result
def reset_smart_access_gateway_client_user_password(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
user_name=None):
api_request = APIRequest(
'ResetSmartAccessGatewayClientUserPassword',
'GET',
'http',
'RPC',
'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"UserName": user_name}
return self._handle_request(api_request).result
def describe_user_flow_statistics(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
statistics_date=None,
list_of_user_names=None,
owner_id=None):
api_request = APIRequest('DescribeUserFlowStatistics', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"StatisticsDate": statistics_date,
"UserNames": list_of_user_names,
"OwnerId": owner_id}
repeat_info = {"UserNames": ('UserNames', 'list', 'str', None),
}
verify_params(api_request._params, repeat_info)
return self._handle_request(api_request).result
def describe_user_online_clients(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
user_name=None):
api_request = APIRequest('DescribeUserOnlineClients', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"UserName": user_name}
return self._handle_request(api_request).result
def describe_user_online_client_statistics(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
list_of_user_names=None,
owner_id=None):
api_request = APIRequest('DescribeUserOnlineClientStatistics',
'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"UserNames": list_of_user_names,
"OwnerId": owner_id}
repeat_info = {"UserNames": ('UserNames', 'list', 'str', None),
}
verify_params(api_request._params, repeat_info)
return self._handle_request(api_request).result
def describe_sag_online_client_statistics(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
list_of_smart_ag_ids=None,
owner_id=None):
api_request = APIRequest('DescribeSagOnlineClientStatistics', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGIds": list_of_smart_ag_ids,
"OwnerId": owner_id}
repeat_info = {"SmartAGIds": ('SmartAGIds', 'list', 'str', None),
}
verify_params(api_request._params, repeat_info)
return self._handle_request(api_request).result
def describe_smart_access_gateway_client_users(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
page_size=None,
smart_ag_id=None,
owner_id=None,
page_number=None,
user_name=None):
api_request = APIRequest('DescribeSmartAccessGatewayClientUsers',
'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"PageSize": page_size,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"PageNumber": page_number,
"UserName": user_name}
return self._handle_request(api_request).result
def modify_smart_access_gateway_client_user(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
bandwidth=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
user_name=None):
api_request = APIRequest('ModifySmartAccessGatewayClientUser',
'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"Bandwidth": bandwidth,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"UserName": user_name}
return self._handle_request(api_request).result
def create_smart_access_gateway_client_user(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
bandwidth=None,
owner_account=None,
client_ip=None,
smart_ag_id=None,
user_mail=None,
owner_id=None,
user_name=None):
api_request = APIRequest('CreateSmartAccessGatewayClientUser',
'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"Bandwidth": bandwidth,
"OwnerAccount": owner_account,
"ClientIp": client_ip,
"SmartAGId": smart_ag_id,
"UserMail": user_mail,
"OwnerId": owner_id,
"UserName": user_name}
return self._handle_request(api_request).result
def modify_serial_number(
self,
resource_owner_id=None,
serial_number=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('ModifySerialNumber', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"SerialNumber": serial_number,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def create_acl(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
name=None,
owner_id=None):
api_request = APIRequest('CreateACL', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"Name": name,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def describe_ac_ls(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
acl_ids=None,
owner_account=None,
name=None,
page_size=None,
owner_id=None,
page_number=None):
api_request = APIRequest('DescribeACLs', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"AclIds": acl_ids,
"OwnerAccount": owner_account,
"Name": name,
"PageSize": page_size,
"OwnerId": owner_id,
"PageNumber": page_number}
return self._handle_request(api_request).result
def associate_acl(
self,
acl_id=None,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('AssociateACL', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"AclId": acl_id,
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def add_acl_rule(
self,
acl_id=None,
resource_owner_id=None,
source_port_range=None,
resource_owner_account=None,
ip_protocol=None,
owner_account=None,
source_cidr=None,
description=None,
owner_id=None,
priority=None,
type_=None,
dest_cidr=None,
dest_port_range=None,
region_id=None,
direction=None,
policy=None):
api_request = APIRequest('AddACLRule', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"AclId": acl_id,
"ResourceOwnerId": resource_owner_id,
"SourcePortRange": source_port_range,
"ResourceOwnerAccount": resource_owner_account,
"IpProtocol": ip_protocol,
"OwnerAccount": owner_account,
"SourceCidr": source_cidr,
"Description": description,
"OwnerId": owner_id,
"Priority": priority,
"Type": type_,
"DestCidr": dest_cidr,
"DestPortRange": dest_port_range,
"RegionId": region_id,
"Direction": direction,
"Policy": policy}
return self._handle_request(api_request).result
def disassociate_acl(
self,
acl_id=None,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('DisassociateACL', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"AclId": acl_id,
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def delete_acl_rule(
self,
acl_id=None,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
owner_id=None,
acr_id=None):
api_request = APIRequest('DeleteACLRule', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"AclId": acl_id,
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id,
"AcrId": acr_id}
return self._handle_request(api_request).result
def modify_acl_rule(
self,
acl_id=None,
resource_owner_id=None,
source_port_range=None,
resource_owner_account=None,
ip_protocol=None,
owner_account=None,
source_cidr=None,
description=None,
owner_id=None,
priority=None,
type_=None,
acr_id=None,
dest_cidr=None,
dest_port_range=None,
region_id=None,
direction=None,
policy=None):
api_request = APIRequest('ModifyACLRule', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"AclId": acl_id,
"ResourceOwnerId": resource_owner_id,
"SourcePortRange": source_port_range,
"ResourceOwnerAccount": resource_owner_account,
"IpProtocol": ip_protocol,
"OwnerAccount": owner_account,
"SourceCidr": source_cidr,
"Description": description,
"OwnerId": owner_id,
"Priority": priority,
"Type": type_,
"AcrId": acr_id,
"DestCidr": dest_cidr,
"DestPortRange": dest_port_range,
"RegionId": region_id,
"Direction": direction,
"Policy": policy}
return self._handle_request(api_request).result
def describe_acl_attribute(
self,
acl_id=None,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
page_size=None,
owner_id=None,
page_number=None,
direction=None,
order=None):
api_request = APIRequest('DescribeACLAttribute', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"AclId": acl_id,
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"PageSize": page_size,
"OwnerId": owner_id,
"PageNumber": page_number,
"Direction": direction,
"Order": order}
return self._handle_request(api_request).result
def delete_acl(
self,
acl_id=None,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
owner_id=None):
api_request = APIRequest('DeleteACL', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"AclId": acl_id,
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def modify_acl(
self,
acl_id=None,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
name=None,
owner_id=None):
api_request = APIRequest('ModifyACL', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"AclId": acl_id,
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"Name": name,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def unicom_order_confirm(
self,
tms_code=None,
resource_owner_id=None,
list_of_order_item=None,
owner_user_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
order_post_fee=None,
owner_id=None,
tms_order_code=None,
trade_id=None):
api_request = APIRequest('UnicomOrderConfirm', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"TmsCode": tms_code,
"ResourceOwnerId": resource_owner_id,
"OrderItem": list_of_order_item,
"OwnerUserId": owner_user_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OrderPostFee": order_post_fee,
"OwnerId": owner_id,
"TmsOrderCode": tms_order_code,
"TradeId": trade_id}
repeat_info = {"OrderItem": ('OrderItem',
'list',
'dict',
[('ScItemName',
'str',
None,
None),
('ItemAmount',
'str',
None,
None),
('SnList',
'list',
'str',
None),
('OrderItemId',
'str',
None,
None),
('ScItemCode',
'str',
None,
None),
('ItemQuantity',
'str',
None,
None),
('TradeId',
'str',
None,
None),
('TradeItemId',
'str',
None,
None),
]),
}
verify_params(api_request._params, repeat_info)
return self._handle_request(api_request).result
def unicom_sign_confirm(
self,
resource_owner_id=None,
resource_owner_account=None,
owner_account=None,
list_of_tms_order=None,
owner_id=None):
api_request = APIRequest('UnicomSignConfirm', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"OwnerAccount": owner_account,
"TmsOrder": list_of_tms_order,
"OwnerId": owner_id}
repeat_info = {"TmsOrder": ('TmsOrder',
'list',
'dict',
[('TmsCode',
'str',
None,
None),
('SigningTime',
'str',
None,
None),
('TmsOrderCode',
'str',
None,
None),
('TradeId',
'str',
None,
None),
]),
}
verify_params(api_request._params, repeat_info)
return self._handle_request(api_request).result
def downgrade_smart_access_gateway(
self,
resource_owner_id=None,
auto_pay=None,
band_width_spec=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
user_count=None,
smart_ag_id=None,
owner_id=None,
data_plan=None):
api_request = APIRequest('DowngradeSmartAccessGateway', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"AutoPay": auto_pay,
"BandWidthSpec": band_width_spec,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"UserCount": user_count,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"DataPlan": data_plan}
return self._handle_request(api_request).result
def upgrade_smart_access_gateway(
self,
resource_owner_id=None,
auto_pay=None,
band_width_spec=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
user_count=None,
smart_ag_id=None,
owner_id=None,
data_plan=None):
api_request = APIRequest('UpgradeSmartAccessGateway', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"AutoPay": auto_pay,
"BandWidthSpec": band_width_spec,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"UserCount": user_count,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"DataPlan": data_plan}
return self._handle_request(api_request).result
def describe_grant_rules(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
page_size=None,
associated_ccn_id=None,
owner_id=None,
page_number=None):
api_request = APIRequest('DescribeGrantRules', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"PageSize": page_size,
"AssociatedCcnId": associated_ccn_id,
"OwnerId": owner_id,
"PageNumber": page_number}
return self._handle_request(api_request).result
def grant_instance_to_cbn(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
cen_uid=None,
cen_instance_id=None,
owner_account=None,
ccn_instance_id=None,
owner_id=None):
api_request = APIRequest('GrantInstanceToCbn', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"CenUid": cen_uid,
"CenInstanceId": cen_instance_id,
"OwnerAccount": owner_account,
"CcnInstanceId": ccn_instance_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def revoke_instance_from_cbn(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
cen_instance_id=None,
owner_account=None,
ccn_instance_id=None,
owner_id=None):
api_request = APIRequest('RevokeInstanceFromCbn', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"CenInstanceId": cen_instance_id,
"OwnerAccount": owner_account,
"CcnInstanceId": ccn_instance_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def create_sag_link_level_ha(
self,
resource_owner_id=None,
backup_link_id=None,
resource_owner_account=None,
ha_type=None,
owner_account=None,
main_link_region_id=None,
smart_ag_id=None,
owner_id=None,
main_link_id=None,
backup_link_region_id=None):
api_request = APIRequest('CreateSAGLinkLevelHa', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"BackupLinkId": backup_link_id,
"ResourceOwnerAccount": resource_owner_account,
"HaType": ha_type,
"OwnerAccount": owner_account,
"MainLinkRegionId": main_link_region_id,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"MainLinkId": main_link_id,
"BackupLinkRegionId": backup_link_region_id}
return self._handle_request(api_request).result
def switch_sag_ha_state(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
ha_type=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('SwitchSAGHaState', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"HaType": ha_type,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def delete_sag_link_level_ha(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
ha_type=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('DeleteSAGLinkLevelHa', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"HaType": ha_type,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def delete_dedicated_line_backup(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('DeleteDedicatedLineBackup', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def create_dedicated_line_backup(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
vbr_id=None,
vbr_region_id=None):
api_request = APIRequest('CreateDedicatedLineBackup', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"VbrId": vbr_id,
"VbrRegionId": vbr_region_id}
return self._handle_request(api_request).result
def describe_smart_access_gateway_ha(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('DescribeSmartAccessGatewayHa', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def switch_cloud_box_ha_state(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('SwitchCloudBoxHaState', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def reboot_smart_access_gateway(
self,
resource_owner_id=None,
serial_number=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('RebootSmartAccessGateway', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"SerialNumber": serial_number,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def create_smart_access_gateway(
self,
max_band_width=None,
resource_owner_id=None,
description=None,
receiver_town=None,
receiver_district=None,
region_id=None,
user_count=None,
receiver_address=None,
instance_type=None,
buyer_message=None,
hard_ware_spec=None,
receiver_email=None,
receiver_state=None,
receiver_city=None,
period=None,
auto_pay=None,
receiver_mobile=None,
resource_owner_account=None,
owner_account=None,
owner_id=None,
receiver_phone=None,
receiver_name=None,
ha_type=None,
name=None,
receiver_country=None,
charge_type=None,
data_plan=None,
receiver_zip=None):
api_request = APIRequest('CreateSmartAccessGateway', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"MaxBandWidth": max_band_width,
"ResourceOwnerId": resource_owner_id,
"Description": description,
"ReceiverTown": receiver_town,
"ReceiverDistrict": receiver_district,
"RegionId": region_id,
"UserCount": user_count,
"ReceiverAddress": receiver_address,
"InstanceType": instance_type,
"BuyerMessage": buyer_message,
"HardWareSpec": hard_ware_spec,
"ReceiverEmail": receiver_email,
"ReceiverState": receiver_state,
"ReceiverCity": receiver_city,
"Period": period,
"AutoPay": auto_pay,
"ReceiverMobile": receiver_mobile,
"ResourceOwnerAccount": resource_owner_account,
"OwnerAccount": owner_account,
"OwnerId": owner_id,
"ReceiverPhone": receiver_phone,
"ReceiverName": receiver_name,
"HaType": ha_type,
"Name": name,
"ReceiverCountry": receiver_country,
"ChargeType": charge_type,
"DataPlan": data_plan,
"ReceiverZip": receiver_zip}
return self._handle_request(api_request).result
def activate_smart_access_gateway(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('ActivateSmartAccessGateway', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def unlock_smart_access_gateway(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('UnlockSmartAccessGateway', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def bind_smart_access_gateway(
self,
resource_owner_id=None,
smart_ag_uid=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
ccn_id=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('BindSmartAccessGateway', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"SmartAGUid": smart_ag_uid,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"CcnId": ccn_id,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def create_cloud_connect_network(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
name=None,
cidr_block=None,
description=None,
snat_cidr_block=None,
is_default=None,
owner_id=None):
api_request = APIRequest('CreateCloudConnectNetwork', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"Name": name,
"CidrBlock": cidr_block,
"Description": description,
"SnatCidrBlock": snat_cidr_block,
"IsDefault": is_default,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def delete_cloud_connect_network(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
ccn_id=None,
owner_id=None):
api_request = APIRequest('DeleteCloudConnectNetwork', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"CcnId": ccn_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def describe_cloud_connect_networks(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
name=None,
ccn_id=None,
page_size=None,
list_of_tag=None,
owner_id=None,
page_number=None):
api_request = APIRequest('DescribeCloudConnectNetworks', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"Name": name,
"CcnId": ccn_id,
"PageSize": page_size,
"Tag": list_of_tag,
"OwnerId": owner_id,
"PageNumber": page_number}
repeat_info = {"Tag": ('Tag', 'list', 'dict', [('Value', 'str', None, None),
('Key', 'str', None, None),
]),
}
verify_params(api_request._params, repeat_info)
return self._handle_request(api_request).result
def describe_regions(
self,
resource_owner_id=None,
resource_owner_account=None,
owner_account=None,
accept_language=None,
owner_id=None):
api_request = APIRequest('DescribeRegions', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"OwnerAccount": owner_account,
"AcceptLanguage": accept_language,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def describe_smart_access_gateways(
self,
resource_owner_id=None,
serial_number=None,
resource_owner_account=None,
acl_ids=None,
owner_account=None,
associated_ccn_id=None,
owner_id=None,
unbound_acl_ids=None,
page_number=None,
region_id=None,
name=None,
page_size=None,
smart_ag_id=None,
instance_type=None,
status=None):
api_request = APIRequest('DescribeSmartAccessGateways', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"SerialNumber": serial_number,
"ResourceOwnerAccount": resource_owner_account,
"AclIds": acl_ids,
"OwnerAccount": owner_account,
"AssociatedCcnId": associated_ccn_id,
"OwnerId": owner_id,
"UnboundAclIds": unbound_acl_ids,
"PageNumber": page_number,
"RegionId": region_id,
"Name": name,
"PageSize": page_size,
"SmartAGId": smart_ag_id,
"InstanceType": instance_type,
"Status": status}
return self._handle_request(api_request).result
def get_cloud_connect_network_use_limit(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
owner_id=None):
api_request = APIRequest('GetCloudConnectNetworkUseLimit', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def get_smart_access_gateway_use_limit(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
owner_id=None):
api_request = APIRequest('GetSmartAccessGatewayUseLimit', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def modify_cloud_connect_network(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
ccn_id=None,
name=None,
cidr_block=None,
description=None,
owner_id=None,
interworking_status=None):
api_request = APIRequest('ModifyCloudConnectNetwork', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"CcnId": ccn_id,
"Name": name,
"CidrBlock": cidr_block,
"Description": description,
"OwnerId": owner_id,
"InterworkingStatus": interworking_status}
return self._handle_request(api_request).result
def modify_smart_access_gateway(
self,
resource_owner_id=None,
resource_owner_account=None,
city=None,
owner_account=None,
description=None,
owner_id=None,
security_lock_threshold=None,
routing_strategy=None,
region_id=None,
name=None,
cidr_block=None,
smart_ag_id=None):
api_request = APIRequest('ModifySmartAccessGateway', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"City": city,
"OwnerAccount": owner_account,
"Description": description,
"OwnerId": owner_id,
"SecurityLockThreshold": security_lock_threshold,
"RoutingStrategy": routing_strategy,
"RegionId": region_id,
"Name": name,
"CidrBlock": cidr_block,
"SmartAGId": smart_ag_id}
return self._handle_request(api_request).result
def unbind_smart_access_gateway(
self,
resource_owner_id=None,
smart_ag_uid=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
ccn_id=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('UnbindSmartAccessGateway', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"SmartAGUid": smart_ag_uid,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"CcnId": ccn_id,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
def update_smart_access_gateway_version(
self,
resource_owner_id=None,
serial_number=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None,
version_code=None):
api_request = APIRequest('UpdateSmartAccessGatewayVersion', 'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"SerialNumber": serial_number,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id,
"VersionCode": version_code}
return self._handle_request(api_request).result
def describe_smart_access_gateway_versions(
self,
resource_owner_id=None,
resource_owner_account=None,
region_id=None,
owner_account=None,
smart_ag_id=None,
owner_id=None):
api_request = APIRequest('DescribeSmartAccessGatewayVersions',
'GET', 'http', 'RPC', 'query')
api_request._params = {
"ResourceOwnerId": resource_owner_id,
"ResourceOwnerAccount": resource_owner_account,
"RegionId": region_id,
"OwnerAccount": owner_account,
"SmartAGId": smart_ag_id,
"OwnerId": owner_id}
return self._handle_request(api_request).result
| 37.525892
| 100
| 0.560258
| 9,006
| 97,830
| 5.700644
| 0.05885
| 0.052941
| 0.063109
| 0.039969
| 0.870978
| 0.861258
| 0.847059
| 0.827367
| 0.813907
| 0.80487
| 0
| 0.000299
| 0.349586
| 97,830
| 2,606
| 101
| 37.540292
| 0.806554
| 0.005878
| 0
| 0.846433
| 0
| 0
| 0.149628
| 0.016804
| 0
| 0
| 0
| 0
| 0
| 1
| 0.043934
| false
| 0.000806
| 0.001209
| 0
| 0.089077
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
748208d04ccc90e28a70df11bc98d994623d97c1
| 197
|
py
|
Python
|
Django/views.py
|
haohoangtran/Django
|
8396262df750616ee9ea9812497fec29437f93c9
|
[
"MIT"
] | null | null | null |
Django/views.py
|
haohoangtran/Django
|
8396262df750616ee9ea9812497fec29437f93c9
|
[
"MIT"
] | null | null | null |
Django/views.py
|
haohoangtran/Django
|
8396262df750616ee9ea9812497fec29437f93c9
|
[
"MIT"
] | null | null | null |
from django.http import HttpResponse
from django.shortcuts import render
def home(request):
return render(request,'index.html')
def table(request):
return render(request,"basic-table.html")
| 32.833333
| 45
| 0.77665
| 27
| 197
| 5.666667
| 0.555556
| 0.130719
| 0.248366
| 0.339869
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.116751
| 197
| 6
| 45
| 32.833333
| 0.87931
| 0
| 0
| 0
| 0
| 0
| 0.131313
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 7
|
77703fb45d0a75511022bbf6e166214534c095cb
| 12,081
|
py
|
Python
|
netbox/dcim/migrations/0002_auto_20190830_1742.py
|
rinsekloek/netbox
|
ad52065de2d25e2684383327be01910b2bf76ae8
|
[
"Apache-2.0"
] | 1
|
2020-06-15T00:09:10.000Z
|
2020-06-15T00:09:10.000Z
|
netbox/dcim/migrations/0002_auto_20190830_1742.py
|
rinsekloek/netbox
|
ad52065de2d25e2684383327be01910b2bf76ae8
|
[
"Apache-2.0"
] | 1
|
2019-09-19T15:10:06.000Z
|
2019-09-19T15:10:06.000Z
|
netbox/dcim/migrations/0002_auto_20190830_1742.py
|
rinsekloek/netbox
|
ad52065de2d25e2684383327be01910b2bf76ae8
|
[
"Apache-2.0"
] | 1
|
2019-09-20T08:12:17.000Z
|
2019-09-20T08:12:17.000Z
|
# Generated by Django 2.2.4 on 2019-08-30 17:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import mptt.fields
import taggit.managers
class Migration(migrations.Migration):
initial = True
dependencies = [
('tenancy', '0001_initial'),
('circuits', '0002_auto_20190830_1742'),
('dcim', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('extras', '0002_auto_20190830_1742'),
]
operations = [
migrations.AddField(
model_name='virtualchassis',
name='tags',
field=taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag'),
),
migrations.AddField(
model_name='site',
name='region',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='sites', to='dcim.Region'),
),
migrations.AddField(
model_name='site',
name='tags',
field=taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag'),
),
migrations.AddField(
model_name='site',
name='tenant',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='sites', to='tenancy.Tenant'),
),
migrations.AddField(
model_name='region',
name='parent',
field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='dcim.Region'),
),
migrations.AddField(
model_name='rearporttemplate',
name='device_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rearport_templates', to='dcim.DeviceType'),
),
migrations.AddField(
model_name='rearport',
name='cable',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.Cable'),
),
migrations.AddField(
model_name='rearport',
name='device',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rearports', to='dcim.Device'),
),
migrations.AddField(
model_name='rearport',
name='tags',
field=taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag'),
),
migrations.AddField(
model_name='rackreservation',
name='rack',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reservations', to='dcim.Rack'),
),
migrations.AddField(
model_name='rackreservation',
name='tenant',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='rackreservations', to='tenancy.Tenant'),
),
migrations.AddField(
model_name='rackreservation',
name='user',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
),
migrations.AddField(
model_name='rackgroup',
name='site',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rack_groups', to='dcim.Site'),
),
migrations.AddField(
model_name='rack',
name='group',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='racks', to='dcim.RackGroup'),
),
migrations.AddField(
model_name='rack',
name='role',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='racks', to='dcim.RackRole'),
),
migrations.AddField(
model_name='rack',
name='site',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='racks', to='dcim.Site'),
),
migrations.AddField(
model_name='rack',
name='tags',
field=taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag'),
),
migrations.AddField(
model_name='rack',
name='tenant',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='racks', to='tenancy.Tenant'),
),
migrations.AddField(
model_name='powerporttemplate',
name='device_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='powerport_templates', to='dcim.DeviceType'),
),
migrations.AddField(
model_name='powerport',
name='_connected_powerfeed',
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.PowerFeed'),
),
migrations.AddField(
model_name='powerport',
name='_connected_poweroutlet',
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='connected_endpoint', to='dcim.PowerOutlet'),
),
migrations.AddField(
model_name='powerport',
name='cable',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.Cable'),
),
migrations.AddField(
model_name='powerport',
name='device',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='powerports', to='dcim.Device'),
),
migrations.AddField(
model_name='powerport',
name='tags',
field=taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag'),
),
migrations.AddField(
model_name='powerpanel',
name='rack_group',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='dcim.RackGroup'),
),
migrations.AddField(
model_name='powerpanel',
name='site',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='dcim.Site'),
),
migrations.AddField(
model_name='poweroutlettemplate',
name='device_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='poweroutlet_templates', to='dcim.DeviceType'),
),
migrations.AddField(
model_name='poweroutlettemplate',
name='power_port',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='poweroutlet_templates', to='dcim.PowerPortTemplate'),
),
migrations.AddField(
model_name='poweroutlet',
name='cable',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.Cable'),
),
migrations.AddField(
model_name='poweroutlet',
name='device',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='poweroutlets', to='dcim.Device'),
),
migrations.AddField(
model_name='poweroutlet',
name='power_port',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='poweroutlets', to='dcim.PowerPort'),
),
migrations.AddField(
model_name='poweroutlet',
name='tags',
field=taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag'),
),
migrations.AddField(
model_name='powerfeed',
name='cable',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.Cable'),
),
migrations.AddField(
model_name='powerfeed',
name='connected_endpoint',
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.PowerPort'),
),
migrations.AddField(
model_name='powerfeed',
name='power_panel',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='powerfeeds', to='dcim.PowerPanel'),
),
migrations.AddField(
model_name='powerfeed',
name='rack',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='dcim.Rack'),
),
migrations.AddField(
model_name='powerfeed',
name='tags',
field=taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag'),
),
migrations.AddField(
model_name='platform',
name='manufacturer',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='platforms', to='dcim.Manufacturer'),
),
migrations.AddField(
model_name='inventoryitem',
name='device',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='inventory_items', to='dcim.Device'),
),
migrations.AddField(
model_name='inventoryitem',
name='manufacturer',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='inventory_items', to='dcim.Manufacturer'),
),
migrations.AddField(
model_name='inventoryitem',
name='parent',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='child_items', to='dcim.InventoryItem'),
),
migrations.AddField(
model_name='inventoryitem',
name='tags',
field=taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag'),
),
migrations.AddField(
model_name='interfacetemplate',
name='device_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='interface_templates', to='dcim.DeviceType'),
),
migrations.AddField(
model_name='interface',
name='_connected_circuittermination',
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='circuits.CircuitTermination'),
),
migrations.AddField(
model_name='interface',
name='_connected_interface',
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.Interface'),
),
migrations.AddField(
model_name='interface',
name='cable',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='dcim.Cable'),
),
migrations.AddField(
model_name='interface',
name='device',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='interfaces', to='dcim.Device'),
),
migrations.AddField(
model_name='interface',
name='lag',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='member_interfaces', to='dcim.Interface'),
),
]
| 45.761364
| 172
| 0.619485
| 1,246
| 12,081
| 5.861958
| 0.091493
| 0.118291
| 0.15115
| 0.177437
| 0.866648
| 0.860761
| 0.782037
| 0.67333
| 0.644852
| 0.616922
| 0
| 0.006045
| 0.246917
| 12,081
| 263
| 173
| 45.935361
| 0.796769
| 0.003725
| 0
| 0.726563
| 1
| 0
| 0.167359
| 0.015622
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.019531
| 0
| 0.035156
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
77973ca787dfcde727b1b886ead1679bee0bfb65
| 8,940
|
py
|
Python
|
satellite-processing/aggregate_cci_aatsr.py
|
tommibergman/gmdd-tm5-soa
|
20168c86caeb14aed72af72b14c3b8185700ddd8
|
[
"MIT"
] | null | null | null |
satellite-processing/aggregate_cci_aatsr.py
|
tommibergman/gmdd-tm5-soa
|
20168c86caeb14aed72af72b14c3b8185700ddd8
|
[
"MIT"
] | null | null | null |
satellite-processing/aggregate_cci_aatsr.py
|
tommibergman/gmdd-tm5-soa
|
20168c86caeb14aed72af72b14c3b8185700ddd8
|
[
"MIT"
] | null | null | null |
import glob
import subprocess
from settings import rawoutput
def aggregate_aatsr(exp,var='od550aer'):
input_CCI_SU_location = '/Volumes/Utrecht/CCI/'
output_masked_location = '/Volumes/Utrecht/MODIS_masked/'
output_aggregated_location = '/Volumes/Utrecht/CCI/aggregated_cci/'
#output_aggregated_location = 'CCI/aggregated_cci/'
output_col_location = '/Volumes/Utrecht/CCI/cci_tm5_col/'
QA_Flag = 'AOD_550_Dark_Target_Deep_Blue_Combined_QA_Flag'
AOD = 'AOD550'
year=2010
AOD_tm5=var#'od550aer'
#tm5data='/Volumes/BIGDISK/'+exp+'/general_TM5_'+exp+'_2010.lev0.'+var+'.nc'
tm5data=rawoutput+'/'+exp+'/general_TM5_'+exp+'_2010.lev0.'+var+'.nc'
days=[31,28,31,30,31,30,31,31,30,31,30,31]
for mon in range(1,13):
if len(glob.glob(output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+str(mon).zfill(2)+".fix.nc"))==0:
for day in range(1,31):
# for hours in range(24):
# for minutes in range(0,60,5):
print "day"+str(mon).zfill(2) +str(day).zfill(2) #prints dayDDDtimeHHMM
CCI_SU_Filenames = str(year)+str(mon).zfill(2)+"*-ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_*.nc"
CCI_SU_fname_out = 'ESACCI-L2P-AATSR-SU'
CCI_SU = input_CCI_SU_location+str(year)+"_"+str(mon).zfill(2)+"_"+str(day).zfill(2)+'/' +CCI_SU_Filenames
#Masked_data_filename = 'MOD04_L2_2010_'+str(day).zfill(3)+"."+str(hours).zfill(2)+str(minutes).zfill(2)+'.nc'
#if len(glob.glob(MODIS)) == 1 and len(glob.glob(output_masked_location+"Masked_"+Masked_data_filename))==0: #checks if the file in MODIS exists
# subprocess.call("cis eval "+QA_Flag+"=QA,"+AOD+"=AOD:"+MODIS+" 'numpy.ma.masked_where(QA <= 1, AOD)' 1 -o "+AOD+":"+output_masked_location+"Masked_"+Masked_data_filename, shell=True)
#Masks AOD variable where QA_Flag smaller or equal to 1
Aggregated_filename= output_aggregated_location+CCI_SU_fname_out+'_agg.'+str(year)+str(mon).zfill(2)+str(day).zfill(2)+'.nc'
#CCI_SU_data= 'Masked_MOD04_L2_2010_'#+str(day).zfill(3)
print (Aggregated_filename)
print glob.glob(Aggregated_filename)
if day <=days[mon-1] and len(glob.glob(Aggregated_filename))==0:
if day==days[mon-1]:
end=str(mon+1).zfill(2)+"-01"
else:
end=str(mon).zfill(2)+"-"+str(day+1).zfill(2)
if mon<=12:
print "cis aggregate " +AOD+":"+CCI_SU+" t=[2010-"+str(mon).zfill(2)+"-"+str(day).zfill(2)+"T00:00,2010-"+str(mon).zfill(2)+"-"+str(day).zfill(2)+"T23:59,PT1H],x=[-180,180,1],y=[-90,90,1] -o "+Aggregated_filename
subprocess.call("cis aggregate " +AOD+":"+CCI_SU+" t=[2010-"+str(mon).zfill(2)+"-"+str(day).zfill(2)+"T00:00,2010-"+str(mon).zfill(2)+"-"+str(day).zfill(2)+"T23:59,PT1H],x=[-180,180,1],y=[-90,90,1] -o "+Aggregated_filename, shell=True)
else:
print "cis aggregate " +AOD+":"+CCI_SU+" t=[2010-"+str(mon).zfill(2)+"-"+str(day).zfill(2)+"T00:00,2010"+str(mon).zfill(2)+"-"+str(day).zfill(2)+"T23:59,PT1H],x=[-180,180,1],y=[-90,90,1] -o "+Aggregated_filename
subprocess.call("cis aggregate " +AOD+":"+CCI_SU+" t=[2010-"+str(mon).zfill(2)+"-"+str(day).zfill(2)+"T00:00,2010"++str(mon).zfill(2)+"-"+str(day).zfill(2)+"T23:59,PT1H],x=[-180,180,1],y=[-90,90,1] -o "+Aggregated_filename, shell=True)
#subprocess.call("cis aggregate " +AOD+":"+CCI_SU+" x=[-180,180,1],y=[-90,90,1] -o "+Aggregated_filename, shell=True)
#col_outdata=output_col_location+'col_ESACCI_SU_TM5.2010'+str(mon).zfill(2)+str(day).zfill(2)+'.nc'
print "ncpdq -a time,longitude,latitude "+Aggregated_filename+" "+Aggregated_filename[:-2]+"fix.nc"
subprocess.call("ncpdq -a time,longitude,latitude "+Aggregated_filename+" "+Aggregated_filename[:-2]+"fix.nc", shell=True)
#print "cis col " +AOD_tm5+":"+tm5data+" "+output_aggregated_location+Aggregated_filename+":variable="+AOD+" -o "+col_outdata
#subprocess.call("cis col " +AOD_tm5+":"+tm5data+" "+output_aggregated_location+Aggregated_filename+":variable="+AOD+" -o "+col_outdata , shell=True)
#if len(glob.glob(output_aggregated_location+'ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated.'+str(year)+str(mon).zfill(2)+".fix.nc"))==0:
if len(glob.glob(output_aggregated_location+CCI_SU_fname_out+'_agg.'+str(year)+str(mon).zfill(2)+".nc"))==0:
print"cdo mergetime "+output_aggregated_location+"ESACCI-L2P-AATSR-SU_agg."+str(year)+str(mon).zfill(2)+"??.fix.nc "+output_aggregated_location+"ESACCI-L2P-AATSR-SU_agg."+str(year)+str(mon).zfill(2)+".nc"
subprocess.call("cdo mergetime "+output_aggregated_location+"ESACCI-L2P-AATSR-SU_agg."+str(year)+str(mon).zfill(2)+"??.fix.nc "+output_aggregated_location+"ESACCI-L2P-AATSR-SU_agg."+str(year)+str(mon).zfill(2)+".nc",shell=True)
print glob.glob(output_aggregated_location+CCI_SU_fname_out+'_agg.'+str(year)+str(mon).zfill(2)+".newfix.nc")
print (output_aggregated_location+CCI_SU_fname_out+'_agg.'+str(year)+str(mon).zfill(2)+".newfix.nc")
if len(glob.glob(output_aggregated_location+CCI_SU_fname_out+'_agg.'+str(year)+str(mon).zfill(2)+".newfix2.nc"))==0:
print "ncpdq -a time,longitude,latitude "+output_aggregated_location+"ESACCI-L2P-AATSR-SU_agg."+str(year)+str(mon).zfill(2)+".nc"+" "+output_aggregated_location+"ESACCI-L2P-AATSR-SU_agg."+str(year)+str(mon).zfill(2)+".newfix2.nc"
subprocess.call("ncpdq -a time,longitude,latitude "+output_aggregated_location+"ESACCI-L2P-AATSR-SU_agg."+str(year)+str(mon).zfill(2)+".nc"+" "+output_aggregated_location+"ESACCI-L2P-AATSR-SU_agg."+str(year)+str(mon).zfill(2)+".newfix2.nc", shell=True)
#subprocess.call("ncpdq -a time,longitude,latitude "+output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+str(mon).zfill(2)+".fix.nc test.newfix.2.nc", shell=True)
#subprocess.call("ncpdq -a time,longitude,latitude "+output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+str(mon).zfill(2)+".fix.nc"+" output/ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+str(mon).zfill(2)+".newfix.nc", shell=True)
print 'after ncpdq'
col_outdata=output_col_location+'col_ESACCI_SU_TM5_'+exp+'_2010'+str(mon).zfill(2)+'_'+AOD_tm5+'.nc'
if len(glob.glob(col_outdata))==0:
print "cis col " +AOD_tm5+":"+tm5data+" "+output_aggregated_location+"ESACCI-L2P-AATSR-SU_agg."+str(year)+str(mon).zfill(2)+".newfix2.nc:variable="+AOD+" -o "+col_outdata
subprocess.call("cis version",shell=True)
subprocess.call("cis col " +AOD_tm5+":"+tm5data+" "+output_aggregated_location+"ESACCI-L2P-AATSR-SU_agg."+str(year)+str(mon).zfill(2)+".newfix2.nc:variable="+AOD+",collocator=nn -o "+col_outdata , shell=True)
#subprocess.call("cis col " +AOD_tm5+":"+tm5data+" output/ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+str(mon).zfill(2)+".newfix.nc:variable="+AOD+" -o "+col_outdata , shell=True)
#subprocess.call("cis col " +AOD_tm5+":"+tm5data+" test.newfix.2.nc:variable="+AOD+" -o "+col_outdata , shell=True)
#if len(glob.glob(output_aggregated_location+'ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated.'+str(year)+".fix.nc"))==0:
# print"cdo mergetime "+output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+"??.fix.nc "+output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+".fix.nc"
# subprocess.call("cdo mergetime "+output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+"??.fix.nc "+output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+".fix.nc",shell=True)
#if len(glob.glob(output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+".newfix.nc"))==0:
# print "ncpdq -a time,longitude,latitude "+output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+".fix.nc"+" "+output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+".newfix.nc"
# subprocess.call("ncpdq -a time,longitude,latitude "+output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+".fix.nc"+" "+output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+".newfix.nc", shell=True)
#if len(glob.glob(col_outdata))==0:
# print "cis col " +AOD_tm5+":"+tm5data+" "+output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+".newfix.nc:variable="+AOD+" -o "+col_outdata
# subprocess.call("cis col " +AOD_tm5+":"+tm5data+" "+output_aggregated_location+"ESACCI-L2P_AEROSOL-AER_PRODUCTS-AATSR_ENVISAT-SU_aggregated."+str(year)+".newfix.nc:variable="+AOD+" -o "+col_outdata , shell=True)
def main():
aggregate_aatsr('oldsoa-bhn','od550aer')
aggregate_aatsr('newsoa-ri','od550aer')
if __name__ == '__main__':
main()
| 93.125
| 307
| 0.723937
| 1,393
| 8,940
| 4.426418
| 0.098349
| 0.049627
| 0.136231
| 0.068115
| 0.814953
| 0.797438
| 0.790626
| 0.76192
| 0.739377
| 0.711158
| 0
| 0.04296
| 0.07047
| 8,940
| 95
| 308
| 94.105263
| 0.699037
| 0.449888
| 0
| 0.035714
| 0
| 0.071429
| 0.28551
| 0.166803
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.053571
| null | null | 0.214286
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
77b185a0879a7f3ca283e53e9b036125f162f299
| 125
|
py
|
Python
|
ideal_spot/__init__.py
|
rosspalmer/IdealSpot
|
2b8392794f2e866ed5700210284c33893b0d4816
|
[
"MIT"
] | 1
|
2019-06-22T21:17:34.000Z
|
2019-06-22T21:17:34.000Z
|
ideal_spot/__init__.py
|
rosspalmer/IdealSpot
|
2b8392794f2e866ed5700210284c33893b0d4816
|
[
"MIT"
] | null | null | null |
ideal_spot/__init__.py
|
rosspalmer/IdealSpot
|
2b8392794f2e866ed5700210284c33893b0d4816
|
[
"MIT"
] | null | null | null |
from ideal_spot.evaluate import EvaluateSpots
from ideal_spot.spots import Spot
from ideal_spot.targets import WeatherTarget
| 31.25
| 45
| 0.88
| 18
| 125
| 5.944444
| 0.5
| 0.252336
| 0.364486
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096
| 125
| 4
| 46
| 31.25
| 0.946903
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
77cd7d1f17186cf12cf6e1afacd6359b0d178f58
| 268
|
py
|
Python
|
Platforms/Web/Processing/Api/__init__.py
|
The-CJ/Phaazebot
|
83a9563d210718071d4e2cdcca3b212c87abaf51
|
[
"MIT"
] | 2
|
2017-09-14T08:07:55.000Z
|
2021-05-18T05:05:05.000Z
|
Platforms/Web/Processing/Api/__init__.py
|
The-CJ/Phaazebot
|
83a9563d210718071d4e2cdcca3b212c87abaf51
|
[
"MIT"
] | 111
|
2018-04-15T14:32:14.000Z
|
2021-03-28T21:06:29.000Z
|
Platforms/Web/Processing/Api/__init__.py
|
The-CJ/Phaazebot
|
83a9563d210718071d4e2cdcca3b212c87abaf51
|
[
"MIT"
] | 1
|
2018-04-15T13:24:44.000Z
|
2018-04-15T13:24:44.000Z
|
import Platforms.Web.Processing.Api.Account as Account
import Platforms.Web.Processing.Api.Admin as Admin
import Platforms.Web.Processing.Api.Discord as Discord
import Platforms.Web.Processing.Api.Twitch as Twitch
import Platforms.Web.Processing.Api.errors as errors
| 38.285714
| 54
| 0.847015
| 40
| 268
| 5.675
| 0.275
| 0.330396
| 0.396476
| 0.61674
| 0.682819
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078358
| 268
| 6
| 55
| 44.666667
| 0.919028
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
77e50680eb12bd9eed87473be65e4bc691fbaca2
| 20,366
|
py
|
Python
|
aioes/client/cat.py
|
DavidCloudfind/aioes
|
4d68f7ae75cc22c03d9886c2613c6149cd41b6d5
|
[
"Apache-2.0"
] | 90
|
2015-02-23T07:12:03.000Z
|
2018-02-23T08:28:25.000Z
|
aioes/client/cat.py
|
DavidCloudfind/aioes
|
4d68f7ae75cc22c03d9886c2613c6149cd41b6d5
|
[
"Apache-2.0"
] | 88
|
2015-08-18T08:06:58.000Z
|
2018-02-01T07:31:51.000Z
|
aioes/client/cat.py
|
DavidCloudfind/aioes
|
4d68f7ae75cc22c03d9886c2613c6149cd41b6d5
|
[
"Apache-2.0"
] | 35
|
2015-09-03T10:06:03.000Z
|
2017-12-07T22:43:26.000Z
|
import asyncio
from .utils import NamespacedClient
from .utils import _make_path
default = object()
def _decode_text(s):
return s
class CatClient(NamespacedClient):
@asyncio.coroutine
def aliases(self, *, name=default, h=default, help=default,
local=default, master_timeout=default, v=default):
"""
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-alias.html>`_
:arg name: A comma-separated list of alias names to return
:arg h: Comma-separated list of column names to display
:arg help: Return help information, default False
:arg local: Return local information, do not retrieve the state from
master node (default: false)
:arg master_timeout: Explicit operation timeout for connection to
master node
:arg v: Verbose mode. Display column headers, default False
"""
params = {}
if name is not default:
params['name'] = name
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET', _make_path('_cat', 'aliases', name),
params=params, decoder=_decode_text
)
return data
@asyncio.coroutine
def allocation(self, node_id=None, *,
h=default, help=default, local=default,
master_timeout=default, v=default):
"""
Allocation provides a snapshot of how shards have located around the
cluster and the state of disk usage.
"""
params = {}
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET',
_make_path('_cat', 'allocation', node_id),
params=params, decoder=_decode_text)
return data
@asyncio.coroutine
def count(self, index=None, *, h=default, help=default, local=default,
master_timeout=default, v=default):
"""
Count provides quick access to the document count of the entire
cluster, or individual indices.
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-count.html>`_
:arg index: A comma-separated list of index names to limit the returned
information
:arg h: Comma-separated list of column names to display
:arg help: Return help information, default False
:arg local: Return local information, do not retrieve the state from
master node (default: false)
:arg master_timeout: Explicit operation timeout for connection to
master node
:arg v: Verbose mode. Display column headers, default False
"""
params = {}
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET', _make_path('_cat', 'count', index),
params=params, decoder=_decode_text
)
return data
@asyncio.coroutine
def health(self, *, h=default, help=default, local=default,
master_timeout=default, ts=default, v=default):
"""
health is a terse, one-line representation of the same information from
:meth:`~elasticsearch.client.cluster.ClusterClient.health` API
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-health.html>`_
:arg h: Comma-separated list of column names to display
:arg help: Return help information, default False
:arg local: Return local information, do not retrieve the state from
master node (default: false)
:arg master_timeout: Explicit operation timeout for connection to
master node
:arg ts: Set to false to disable timestamping, default True
:arg v: Verbose mode. Display column headers, default False
"""
params = {}
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if ts is not default:
params['ts'] = bool(ts)
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET', _make_path('_cat', 'health'),
params=params, decoder=_decode_text
)
return data
@asyncio.coroutine
def help(self, *, help=default):
"""A simple help for the cat api."""
params = {}
if help is not default:
params['help'] = bool(help)
_, data = yield from self.transport.perform_request(
'GET', '/_cat', params=params, decoder=_decode_text)
return data
@asyncio.coroutine
def indices(self, index=None, *, bytes=default, h=default, help=default,
local=default, master_timeout=default, pri=default, v=default):
"""
The indices command provides a cross-section of each index.
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-indices.html>`_
:arg index: A comma-separated list of index names to limit the returned
information
:arg bytes: The unit in which to display byte values
:arg h: Comma-separated list of column names to display
:arg help: Return help information, default False
:arg local: Return local information, do not retrieve the state from
master node (default: false)
:arg master_timeout: Explicit operation timeout for connection to
master node
:arg pri: Set to true to return stats only for primary shards, default
False
:arg v: Verbose mode. Display column headers, default False
"""
params = {}
if bytes is not default:
params['bytes'] = bytes
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if pri is not default:
params['pri'] = bool(pri)
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET', _make_path('_cat', 'indices', index),
params=params, decoder=_decode_text
)
return data
@asyncio.coroutine
def master(self, *, h=default, help=default, local=default,
master_timeout=default, v=default):
"""
Displays the master's node ID, bound IP address, and node name.
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-master.html>`_
:arg h: Comma-separated list of column names to display
:arg help: Return help information, default False
:arg local: Return local information, do not retrieve the state from
master node (default: false)
:arg master_timeout: Explicit operation timeout for connection to
master node
:arg v: Verbose mode. Display column headers, default False
"""
params = {}
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET', _make_path('_cat', 'master'),
params=params, decoder=_decode_text
)
return data
@asyncio.coroutine
def nodes(self, *, h=default, help=default, local=default,
master_timeout=default, v=default):
"""
The nodes command shows the cluster topology.
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-nodes.html>`_
:arg h: Comma-separated list of column names to display
:arg help: Return help information, default False
:arg local: Return local information, do not retrieve the state from
master node (default: false)
:arg master_timeout: Explicit operation timeout for master connection
node
:arg v: Verbose mode. Display column headers, default False
"""
params = {}
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET', '/_cat/nodes',
params=params, decoder=_decode_text
)
return data
@asyncio.coroutine
def recovery(self, index=None, *, bytes=default, h=default, help=default,
local=default, master_timeout=default, v=default):
"""
recovery is a view of shard replication.
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-recovery.html>`_
:arg index: A comma-separated list of index names to limit the returned
information
:arg bytes: The unit in which to display byte values
:arg h: Comma-separated list of column names to display
:arg help: Return help information, default False
:arg local: Return local information, do not retrieve the state from
master node (default: false)
:arg master_timeout: Explicit operation timeout for master connection
node
:arg v: Verbose mode. Display column headers, default False
"""
params = {}
if bytes is not default:
params['bytes'] = bytes
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET', _make_path('_cat', 'recovery', index),
params=params, decoder=_decode_text
)
return data
@asyncio.coroutine
def shards(self, index=None, *, h=default, help=default, local=default,
master_timeout=default, v=default):
"""
The shards command is the detailed view of what nodes
contain which shards.
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-shards.html>`_
:arg index: A comma-separated list of index names to limit the returned
information
:arg h: Comma-separated list of column names to display
:arg help: Return help information, default False
:arg local: Return local information, do not retrieve the state from
master node (default: false)
:arg master_timeout: Explicit operation timeout for master connection
node
:arg v: Verbose mode. Display column headers, default False
"""
params = {}
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET', _make_path('_cat', 'shards', index),
params=params, decoder=_decode_text
)
return data
@asyncio.coroutine
def segments(self, index=None, *, h=default, help=default, local=default,
master_timeout=default, v=default):
"""
The segments command is the detailed view of Lucene segments per index.
:arg index: A comma-separated list of index names to limit the returned
information
:arg h: Comma-separated list of column names to display
:arg help: Return help information, default False
:arg local: Return local information, do not retrieve the state from
master node (default: false)
:arg master_timeout: Explicit operation timeout for master connection
node
:arg v: Verbose mode. Display column headers, default False
"""
params = {}
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET', _make_path('_cat', 'segments', index),
params=params, decoder=_decode_text
)
return data
@asyncio.coroutine
def pending_tasks(self, *, h=default, help=default, local=default,
master_timeout=default, v=default):
"""
pending_tasks provides the same information as the
:meth:`~elasticsearch.client.cluster.ClusterClient.pending_tasks` API
in a convenient tabular format.
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-pending-tasks.html>`_
:arg h: Comma-separated list of column names to display
:arg help: Return help information, default False
:arg local: Return local information, do not retrieve the state from
master node (default: false)
:arg master_timeout: Explicit operation timeout for master connection
node
:arg v: Verbose mode. Display column headers, default False
"""
params = {}
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET', '/_cat/pending_tasks',
params=params, decoder=_decode_text
)
return data
@asyncio.coroutine
def thread_pool(self, *, full_id=default, h=default, help=default,
local=default, master_timeout=default, v=default):
"""
Get information about thread pools.
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html>`_
:arg full_id: Enables displaying the complete node ids (default:false)
:arg h: Comma-separated list of column names to display
:arg help: Return help information (default: 'false')
:arg local: Return local information, do not retrieve the state from
master node (default: false)
:arg master_timeout: Explicit operation timeout for master connection
node
:arg v: Verbose mode. Display column headers (default: 'false')
"""
params = {}
if full_id is not default:
params['full_id'] = bool(full_id)
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET', '/_cat/thread_pool',
params=params, decoder=_decode_text
)
return data
@asyncio.coroutine
def fielddata(self, *, fields=default, bytes=default, h=default,
help=default, local=default, master_timeout=default,
v=default):
"""
Shows information about currently loaded fielddata on a per-node basis.
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-fielddata.html>`_
:arg fields: A comma-separated list of fields to return the fielddata
size
:arg bytes: The unit in which to display byte values
:arg h: Comma-separated list of column names to display
:arg help: Return help information (default: 'false')
:arg local: Return local information, do not retrieve the state from
master node (default: false)
:arg master_timeout: Explicit operation timeout for master connection
node
:arg v: Verbose mode. Display column headers (default: 'false')
"""
params = {}
if fields is not default:
params['fields'] = fields
if bytes is not default:
params['bytes'] = bytes
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET', _make_path('_cat', 'fielddata'),
params=params, decoder=_decode_text
)
return data
@asyncio.coroutine
def plugins(self, *, h=default, help=default, local=default,
master_timeout=default, v=default):
"""
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-plugins.html>`_
:arg h: Comma-separated list of column names to display
:arg help: Return help information, default False
:arg local: Return local information, do not retrieve the state from
master node (default: false)
:arg master_timeout: Explicit operation timeout for master connection
node
:arg v: Verbose mode. Display column headers, default False
"""
params = {}
if h is not default:
params['h'] = h
if help is not default:
params['help'] = bool(help)
if local is not default:
params['local'] = bool(local)
if master_timeout is not default:
params['master_timeout'] = master_timeout
if v is not default:
params['v'] = bool(v)
_, data = yield from self.transport.perform_request(
'GET', '/_cat/plugins',
params=params, decoder=_decode_text
)
return data
| 38.426415
| 104
| 0.598105
| 2,437
| 20,366
| 4.919163
| 0.068937
| 0.03295
| 0.079079
| 0.118619
| 0.864781
| 0.854104
| 0.849766
| 0.846513
| 0.846513
| 0.839673
| 0
| 0
| 0.313022
| 20,366
| 529
| 105
| 38.499055
| 0.856837
| 0.372631
| 0
| 0.77592
| 0
| 0
| 0.053631
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.053512
| false
| 0
| 0.010033
| 0.003344
| 0.120401
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
bb198b07594be38ae96c5efe86c634b9ab09bd0d
| 2,960
|
py
|
Python
|
xskillscore/core/deterministic.py
|
weiclimate/xskillscore
|
89a8cf30fef17adaea2d736430455726f59aa3ff
|
[
"Apache-2.0"
] | 1
|
2018-07-29T17:01:12.000Z
|
2018-07-29T17:01:12.000Z
|
xskillscore/core/deterministic.py
|
weiclimate/xskillscore
|
89a8cf30fef17adaea2d736430455726f59aa3ff
|
[
"Apache-2.0"
] | null | null | null |
xskillscore/core/deterministic.py
|
weiclimate/xskillscore
|
89a8cf30fef17adaea2d736430455726f59aa3ff
|
[
"Apache-2.0"
] | null | null | null |
import xarray as xr
from.np_deterministic import _pearson_r, _pearson_r_p_value, _rmse
__all__ = ['pearson_r', 'rmse']
def pearson_r(a, b, dim):
"""
Pearson's correlation coefficient.
Parameters
----------
a : Dataset, DataArray, GroupBy, Variable, numpy/dask arrays or scalars
Mix of labeled and/or unlabeled arrays to which to apply the function.
b : Dataset, DataArray, GroupBy, Variable, numpy/dask arrays or scalars
Mix of labeled and/or unlabeled arrays to which to apply the function.
dim : str
The dimension to apply the correlation along.
Returns
-------
Single value or tuple of Dataset, DataArray, Variable, dask.array.Array or
numpy.ndarray, the first type on that list to appear on an input.
Pearson's correlation coefficient.
See Also
--------
scipy.stats.pearsonr
xarray.apply_unfunc
"""
return xr.apply_ufunc(_pearson_r, a, b,
input_core_dims=[[dim], [dim]],
kwargs={'axis': -1})
def pearson_r_p_value(a, b, dim):
"""
2-tailed p-value associated with pearson's correlation coefficient.
Parameters
----------
a : Dataset, DataArray, GroupBy, Variable, numpy/dask arrays or scalars
Mix of labeled and/or unlabeled arrays to which to apply the function.
b : Dataset, DataArray, GroupBy, Variable, numpy/dask arrays or scalars
Mix of labeled and/or unlabeled arrays to which to apply the function.
dim : str
The dimension to apply the correlation along.
Returns
-------
Single value or tuple of Dataset, DataArray, Variable, dask.array.Array or
numpy.ndarray, the first type on that list to appear on an input.
2-tailed p-value.
See Also
--------
scipy.stats.pearsonr
xarray.apply_unfunc
"""
return xr.apply_ufunc(_pearson_r_p_value, a, b,
input_core_dims=[[dim], [dim]],
kwargs={'axis': -1})
def rmse(a, b, dim):
"""
Root Mean Squared Error.
Parameters
----------
a : Dataset, DataArray, GroupBy, Variable, numpy/dask arrays or scalars
Mix of labeled and/or unlabeled arrays to which to apply the function.
b : Dataset, DataArray, GroupBy, Variable, numpy/dask arrays or scalars
Mix of labeled and/or unlabeled arrays to which to apply the function.
dim : str
The dimension to apply the correlation along.
Returns
-------
Single value or tuple of Dataset, DataArray, Variable, dask.array.Array or
numpy.ndarray, the first type on that list to appear on an input.
Root Mean Squared Error.
See Also
--------
sklearn.metrics.mean_squared_error
xarray.apply_unfunc
"""
return xr.apply_ufunc(_rmse, a, b,
input_core_dims=[[dim], [dim]],
kwargs={'axis': -1})
| 30.515464
| 78
| 0.624324
| 389
| 2,960
| 4.652956
| 0.203085
| 0.079558
| 0.049724
| 0.102762
| 0.855801
| 0.855801
| 0.843646
| 0.824309
| 0.824309
| 0.824309
| 0
| 0.002344
| 0.279392
| 2,960
| 96
| 79
| 30.833333
| 0.846226
| 0.681081
| 0
| 0.4
| 0
| 0
| 0.036603
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.133333
| 0
| 0.533333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
bb4710283645bda64f43d05dc175b4aaa04fccdc
| 560,577
|
py
|
Python
|
line/f_CallService.py
|
winbotscript/LineService
|
4c79029648e858e567378485e75276f865c1f73f
|
[
"Apache-2.0"
] | 1
|
2020-08-20T08:00:23.000Z
|
2020-08-20T08:00:23.000Z
|
line/f_CallService.py
|
winbotscript/LineService
|
4c79029648e858e567378485e75276f865c1f73f
|
[
"Apache-2.0"
] | null | null | null |
line/f_CallService.py
|
winbotscript/LineService
|
4c79029648e858e567378485e75276f865c1f73f
|
[
"Apache-2.0"
] | null | null | null |
#
# Autogenerated by Frugal Compiler (3.4.3)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
from threading import Lock
from frugal.middleware import Method
from frugal.exceptions import TApplicationExceptionType
from frugal.exceptions import TTransportExceptionType
from frugal.processor import FBaseProcessor
from frugal.processor import FProcessorFunction
from frugal.util.deprecate import deprecated
from frugal.util import make_hashable
from thrift.Thrift import TApplicationException
from thrift.Thrift import TMessageType
from thrift.transport.TTransport import TTransportException
from .ttypes import *
class Iface(object):
def getUserStatus(self, ctx, mid):
"""
Args:
ctx: FContext
mid: string
"""
pass
def updateProfileAttributeForChannel(self, ctx, profileAttribute, value):
"""
Args:
ctx: FContext
profileAttribute: ProfileAttribute
value: string
"""
pass
def updateExtendedProfileAttribute(self, ctx, attr, extendedProfile):
"""
Args:
ctx: FContext
attr: ExtendedProfileAttribute
extendedProfile: ExtendedProfile
"""
pass
def getAllSimpleChannelContacts(self, ctx, statusSticonFallbackDisabled):
"""
Args:
ctx: FContext
statusSticonFallbackDisabled: boolean
"""
pass
def getUserIdentities(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def markPaidCallAd(self, ctx, dialedNumber, language, disableCallerId):
"""
Args:
ctx: FContext
dialedNumber: string
language: string
disableCallerId: boolean
"""
pass
def isGroupMember(self, ctx, groupId):
"""
Args:
ctx: FContext
groupId: string
"""
pass
def getPhoneInfoFromPhoneNumber(self, ctx, region, phoneNumber):
"""
Args:
ctx: FContext
region: string
phoneNumber: string
"""
pass
def redeemPaidCallVoucher(self, ctx, serial, language):
"""
Args:
ctx: FContext
serial: string
language: string
"""
pass
def getPreferredDisplayName(self, ctx, mids):
"""
Args:
ctx: FContext
mids: list of string
"""
pass
def getContactsForChannel(self, ctx, ids):
"""
Args:
ctx: FContext
ids: list of string
"""
pass
def getCallCreditProducts(self, ctx, appStoreCode, pgCode, country, language):
"""
Args:
ctx: FContext
appStoreCode: PaymentType
pgCode: PaymentPgType
country: string
language: string
"""
pass
def getCompactContacts(self, ctx, lastModifiedTimestamp):
"""
Args:
ctx: FContext
lastModifiedTimestamp: int (signed 64 bits)
"""
pass
def notifyNotiCenterEvent(self, ctx, event):
"""
Args:
ctx: FContext
event: NotiCenterEventData
"""
pass
def isInContact(self, ctx, mid):
"""
Args:
ctx: FContext
mid: string
"""
pass
def lookupGroupMembers(self, ctx, groupId, mids):
"""
Args:
ctx: FContext
groupId: string
mids: list of string
"""
pass
def getRoomInformation(self, ctx, roomMid):
"""
Args:
ctx: FContext
roomMid: string
"""
pass
def getGroupCall(self, ctx, chatMid):
"""
Args:
ctx: FContext
chatMid: string
"""
pass
def isAllowSecondaryDeviceLogin(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def getPrimaryClientForChannel(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def createRoomWithBuddy(self, ctx, reqSeq, buddyMid, contactIds):
"""
Args:
ctx: FContext
reqSeq: int (signed 32 bits)
buddyMid: string
contactIds: list of string
"""
pass
def getDisplayName(self, ctx, mid):
"""
Args:
ctx: FContext
mid: string
"""
pass
def getPaidCallMetadata(self, ctx, language):
"""
Args:
ctx: FContext
language: string
"""
pass
def getMid(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def getUserCountryForBilling(self, ctx, country, remoteIp):
"""
Args:
ctx: FContext
country: string
remoteIp: string
"""
pass
def getFavoriteGroupIdsForChannel(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def getPaidCallHistory(self, ctx, start, size, language):
"""
Args:
ctx: FContext
start: int (signed 64 bits)
size: int (signed 32 bits)
language: string
"""
pass
def sendPinCodeOperation(self, ctx, verifier):
"""
Args:
ctx: FContext
verifier: string
"""
pass
def inviteIntoGroupCall(self, ctx, chatMid, memberMids, mediaType):
"""
Args:
ctx: FContext
chatMid: string
memberMids: list of string
mediaType: GroupCallMediaType
"""
pass
def getFriendMids(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def getMetaProfile(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def sendMessageForChannel(self, ctx, message):
"""
Args:
ctx: FContext
message: Message
"""
pass
def activeBuddySubscriberCount(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def getCallCreditPurchaseHistory(self, ctx, request):
"""
Args:
ctx: FContext
request: CoinHistoryCondition
"""
pass
def isRoomMember(self, ctx, roomId):
"""
Args:
ctx: FContext
roomId: string
"""
pass
def sendSystemOAMessage(self, ctx, message):
"""
Args:
ctx: FContext
message: Message
"""
pass
def acquirePaidCallRoute(self, ctx, paidCallType, dialedNumber, language, networkCode, disableCallerId, referer, adSessionId):
"""
Args:
ctx: FContext
paidCallType: PaidCallType
dialedNumber: string
language: string
networkCode: string
disableCallerId: boolean
referer: string
adSessionId: string
"""
pass
def getGroupsForChannel(self, ctx, groupIds):
"""
Args:
ctx: FContext
groupIds: list of string
"""
pass
def getUserCreateTime(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def registerChannelCP(self, ctx, cpId, registerPassword):
"""
Args:
ctx: FContext
cpId: string
registerPassword: string
"""
pass
def reserveCallCreditPurchase(self, ctx, request):
"""
Args:
ctx: FContext
request: CoinPurchaseReservation
"""
pass
def acquirePaidCallCurrencyExchangeRate(self, ctx, language):
"""
Args:
ctx: FContext
language: string
"""
pass
def getRoomMemberMidsForAppPlatform(self, ctx, roomId):
"""
Args:
ctx: FContext
roomId: string
"""
pass
def getPaidCallBalanceList(self, ctx, language):
"""
Args:
ctx: FContext
language: string
"""
pass
def getPersonalInfos(self, ctx, requiredPersonalInfos):
"""
Args:
ctx: FContext
requiredPersonalInfos: set of PersonalInfo
"""
pass
def getPrimaryClientsForChannel(self, ctx, userMids):
"""
Args:
ctx: FContext
userMids: list of string
"""
pass
def addBuddyToContact(self, ctx, buddyMid):
"""
Args:
ctx: FContext
buddyMid: string
"""
pass
def getGroupMemberMidsForAppPlatform(self, ctx, groupId):
"""
Args:
ctx: FContext
groupId: string
"""
pass
def getUserLanguage(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def lookupPaidCall(self, ctx, dialedNumber, language, referer):
"""
Args:
ctx: FContext
dialedNumber: string
language: string
referer: string
"""
pass
def getExtendedProfile(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def getReverseCompactContacts(self, ctx, ids):
"""
Args:
ctx: FContext
ids: list of string
"""
pass
def getPaidCallAdStatus(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def findContactByUseridWithoutAbuseBlockForChannel(self, ctx, userid):
"""
Args:
ctx: FContext
userid: string
"""
pass
def getGroupMemberMids(self, ctx, groupId):
"""
Args:
ctx: FContext
groupId: string
"""
pass
def sendMessageWithoutRelationship(self, ctx, message):
"""
Args:
ctx: FContext
message: Message
"""
pass
def displayBuddySubscriberCountInBulk(self, ctx, mids):
"""
Args:
ctx: FContext
mids: list of string
"""
pass
def lookupRoomMembers(self, ctx, roomId, mids):
"""
Args:
ctx: FContext
roomId: string
mids: list of string
"""
pass
def getFavoriteMidsForChannel(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def getAllContactIdsForChannel(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def displayBuddySubscriberCount(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def getProfileForChannel(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def getUserTickets(self, ctx, userMids):
"""
Args:
ctx: FContext
userMids: list of string
"""
pass
def getOAFriendMids(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def searchPaidCallUserRate(self, ctx, countryCode, language):
"""
Args:
ctx: FContext
countryCode: string
language: string
"""
pass
def getJoinedGroupIdsForChannel(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def acquireGroupCallRoute(self, ctx, chatMid, mediaType):
"""
Args:
ctx: FContext
chatMid: string
mediaType: GroupCallMediaType
"""
pass
def getUserMidsWhoAddedMe(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def getIdentityCredential(self, ctx):
"""
Args:
ctx: FContext
"""
pass
def addOperationForChannel(self, ctx, opType, param1, param2, param3):
"""
Args:
ctx: FContext
opType: OpType
param1: string
param2: string
param3: string
"""
pass
def getSimpleChannelContacts(self, ctx, ids, statusSticonFallbackDisabled):
"""
Args:
ctx: FContext
ids: list of string
statusSticonFallbackDisabled: boolean
"""
pass
def getUserLastSentMessageTimeStamp(self, ctx, mid):
"""
Args:
ctx: FContext
mid: string
"""
pass
class Client(Iface):
def __init__(self, provider, middleware=None):
"""
Create a new Client with an FServiceProvider containing a transport
and protocol factory.
Args:
provider: FServiceProvider with TSynchronousTransport
middleware: ServiceMiddleware or list of ServiceMiddleware
"""
middleware = middleware or []
if middleware and not isinstance(middleware, list):
middleware = [middleware]
self._transport = provider.get_transport()
self._protocol_factory = provider.get_protocol_factory()
self._oprot = self._protocol_factory.get_protocol(self._transport)
self._iprot = self._protocol_factory.get_protocol(self._transport)
self._write_lock = Lock()
middleware += provider.get_middleware()
self._methods = {
'getUserStatus': Method(self._getUserStatus, middleware),
'updateProfileAttributeForChannel': Method(self._updateProfileAttributeForChannel, middleware),
'updateExtendedProfileAttribute': Method(self._updateExtendedProfileAttribute, middleware),
'getAllSimpleChannelContacts': Method(self._getAllSimpleChannelContacts, middleware),
'getUserIdentities': Method(self._getUserIdentities, middleware),
'markPaidCallAd': Method(self._markPaidCallAd, middleware),
'isGroupMember': Method(self._isGroupMember, middleware),
'getPhoneInfoFromPhoneNumber': Method(self._getPhoneInfoFromPhoneNumber, middleware),
'redeemPaidCallVoucher': Method(self._redeemPaidCallVoucher, middleware),
'getPreferredDisplayName': Method(self._getPreferredDisplayName, middleware),
'getContactsForChannel': Method(self._getContactsForChannel, middleware),
'getCallCreditProducts': Method(self._getCallCreditProducts, middleware),
'getCompactContacts': Method(self._getCompactContacts, middleware),
'notifyNotiCenterEvent': Method(self._notifyNotiCenterEvent, middleware),
'isInContact': Method(self._isInContact, middleware),
'lookupGroupMembers': Method(self._lookupGroupMembers, middleware),
'getRoomInformation': Method(self._getRoomInformation, middleware),
'getGroupCall': Method(self._getGroupCall, middleware),
'isAllowSecondaryDeviceLogin': Method(self._isAllowSecondaryDeviceLogin, middleware),
'getPrimaryClientForChannel': Method(self._getPrimaryClientForChannel, middleware),
'createRoomWithBuddy': Method(self._createRoomWithBuddy, middleware),
'getDisplayName': Method(self._getDisplayName, middleware),
'getPaidCallMetadata': Method(self._getPaidCallMetadata, middleware),
'getMid': Method(self._getMid, middleware),
'getUserCountryForBilling': Method(self._getUserCountryForBilling, middleware),
'getFavoriteGroupIdsForChannel': Method(self._getFavoriteGroupIdsForChannel, middleware),
'getPaidCallHistory': Method(self._getPaidCallHistory, middleware),
'sendPinCodeOperation': Method(self._sendPinCodeOperation, middleware),
'inviteIntoGroupCall': Method(self._inviteIntoGroupCall, middleware),
'getFriendMids': Method(self._getFriendMids, middleware),
'getMetaProfile': Method(self._getMetaProfile, middleware),
'sendMessageForChannel': Method(self._sendMessageForChannel, middleware),
'activeBuddySubscriberCount': Method(self._activeBuddySubscriberCount, middleware),
'getCallCreditPurchaseHistory': Method(self._getCallCreditPurchaseHistory, middleware),
'isRoomMember': Method(self._isRoomMember, middleware),
'sendSystemOAMessage': Method(self._sendSystemOAMessage, middleware),
'acquirePaidCallRoute': Method(self._acquirePaidCallRoute, middleware),
'getGroupsForChannel': Method(self._getGroupsForChannel, middleware),
'getUserCreateTime': Method(self._getUserCreateTime, middleware),
'registerChannelCP': Method(self._registerChannelCP, middleware),
'reserveCallCreditPurchase': Method(self._reserveCallCreditPurchase, middleware),
'acquirePaidCallCurrencyExchangeRate': Method(self._acquirePaidCallCurrencyExchangeRate, middleware),
'getRoomMemberMidsForAppPlatform': Method(self._getRoomMemberMidsForAppPlatform, middleware),
'getPaidCallBalanceList': Method(self._getPaidCallBalanceList, middleware),
'getPersonalInfos': Method(self._getPersonalInfos, middleware),
'getPrimaryClientsForChannel': Method(self._getPrimaryClientsForChannel, middleware),
'addBuddyToContact': Method(self._addBuddyToContact, middleware),
'getGroupMemberMidsForAppPlatform': Method(self._getGroupMemberMidsForAppPlatform, middleware),
'getUserLanguage': Method(self._getUserLanguage, middleware),
'lookupPaidCall': Method(self._lookupPaidCall, middleware),
'getExtendedProfile': Method(self._getExtendedProfile, middleware),
'getReverseCompactContacts': Method(self._getReverseCompactContacts, middleware),
'getPaidCallAdStatus': Method(self._getPaidCallAdStatus, middleware),
'findContactByUseridWithoutAbuseBlockForChannel': Method(self._findContactByUseridWithoutAbuseBlockForChannel, middleware),
'getGroupMemberMids': Method(self._getGroupMemberMids, middleware),
'sendMessageWithoutRelationship': Method(self._sendMessageWithoutRelationship, middleware),
'displayBuddySubscriberCountInBulk': Method(self._displayBuddySubscriberCountInBulk, middleware),
'lookupRoomMembers': Method(self._lookupRoomMembers, middleware),
'getFavoriteMidsForChannel': Method(self._getFavoriteMidsForChannel, middleware),
'getAllContactIdsForChannel': Method(self._getAllContactIdsForChannel, middleware),
'displayBuddySubscriberCount': Method(self._displayBuddySubscriberCount, middleware),
'getProfileForChannel': Method(self._getProfileForChannel, middleware),
'getUserTickets': Method(self._getUserTickets, middleware),
'getOAFriendMids': Method(self._getOAFriendMids, middleware),
'searchPaidCallUserRate': Method(self._searchPaidCallUserRate, middleware),
'getJoinedGroupIdsForChannel': Method(self._getJoinedGroupIdsForChannel, middleware),
'acquireGroupCallRoute': Method(self._acquireGroupCallRoute, middleware),
'getUserMidsWhoAddedMe': Method(self._getUserMidsWhoAddedMe, middleware),
'getIdentityCredential': Method(self._getIdentityCredential, middleware),
'addOperationForChannel': Method(self._addOperationForChannel, middleware),
'getSimpleChannelContacts': Method(self._getSimpleChannelContacts, middleware),
'getUserLastSentMessageTimeStamp': Method(self._getUserLastSentMessageTimeStamp, middleware),
}
def getUserStatus(self, ctx, mid):
"""
Args:
ctx: FContext
mid: string
"""
return self._methods['getUserStatus']([ctx, mid])
def _getUserStatus(self, ctx, mid):
self._send_getUserStatus(ctx, mid)
return self._recv_getUserStatus(ctx)
def _send_getUserStatus(self, ctx, mid):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getUserStatus', TMessageType.CALL, 0)
args = getUserStatus_args()
args.mid = mid
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getUserStatus(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getUserStatus_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getUserStatus failed: unknown result")
raise x
def updateProfileAttributeForChannel(self, ctx, profileAttribute, value):
"""
Args:
ctx: FContext
profileAttribute: ProfileAttribute
value: string
"""
return self._methods['updateProfileAttributeForChannel']([ctx, profileAttribute, value])
def _updateProfileAttributeForChannel(self, ctx, profileAttribute, value):
self._send_updateProfileAttributeForChannel(ctx, profileAttribute, value)
self._recv_updateProfileAttributeForChannel(ctx)
def _send_updateProfileAttributeForChannel(self, ctx, profileAttribute, value):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('updateProfileAttributeForChannel', TMessageType.CALL, 0)
args = updateProfileAttributeForChannel_args()
args.profileAttribute = profileAttribute
args.value = value
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_updateProfileAttributeForChannel(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = updateProfileAttributeForChannel_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
return
def updateExtendedProfileAttribute(self, ctx, attr, extendedProfile):
"""
Args:
ctx: FContext
attr: ExtendedProfileAttribute
extendedProfile: ExtendedProfile
"""
return self._methods['updateExtendedProfileAttribute']([ctx, attr, extendedProfile])
def _updateExtendedProfileAttribute(self, ctx, attr, extendedProfile):
self._send_updateExtendedProfileAttribute(ctx, attr, extendedProfile)
self._recv_updateExtendedProfileAttribute(ctx)
def _send_updateExtendedProfileAttribute(self, ctx, attr, extendedProfile):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('updateExtendedProfileAttribute', TMessageType.CALL, 0)
args = updateExtendedProfileAttribute_args()
args.attr = attr
args.extendedProfile = extendedProfile
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_updateExtendedProfileAttribute(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = updateExtendedProfileAttribute_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
return
def getAllSimpleChannelContacts(self, ctx, statusSticonFallbackDisabled):
"""
Args:
ctx: FContext
statusSticonFallbackDisabled: boolean
"""
return self._methods['getAllSimpleChannelContacts']([ctx, statusSticonFallbackDisabled])
def _getAllSimpleChannelContacts(self, ctx, statusSticonFallbackDisabled):
self._send_getAllSimpleChannelContacts(ctx, statusSticonFallbackDisabled)
return self._recv_getAllSimpleChannelContacts(ctx)
def _send_getAllSimpleChannelContacts(self, ctx, statusSticonFallbackDisabled):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getAllSimpleChannelContacts', TMessageType.CALL, 0)
args = getAllSimpleChannelContacts_args()
args.statusSticonFallbackDisabled = statusSticonFallbackDisabled
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getAllSimpleChannelContacts(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getAllSimpleChannelContacts_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getAllSimpleChannelContacts failed: unknown result")
raise x
def getUserIdentities(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getUserIdentities']([ctx])
def _getUserIdentities(self, ctx):
self._send_getUserIdentities(ctx)
return self._recv_getUserIdentities(ctx)
def _send_getUserIdentities(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getUserIdentities', TMessageType.CALL, 0)
args = getUserIdentities_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getUserIdentities(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getUserIdentities_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getUserIdentities failed: unknown result")
raise x
def markPaidCallAd(self, ctx, dialedNumber, language, disableCallerId):
"""
Args:
ctx: FContext
dialedNumber: string
language: string
disableCallerId: boolean
"""
return self._methods['markPaidCallAd']([ctx, dialedNumber, language, disableCallerId])
def _markPaidCallAd(self, ctx, dialedNumber, language, disableCallerId):
self._send_markPaidCallAd(ctx, dialedNumber, language, disableCallerId)
return self._recv_markPaidCallAd(ctx)
def _send_markPaidCallAd(self, ctx, dialedNumber, language, disableCallerId):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('markPaidCallAd', TMessageType.CALL, 0)
args = markPaidCallAd_args()
args.dialedNumber = dialedNumber
args.language = language
args.disableCallerId = disableCallerId
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_markPaidCallAd(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = markPaidCallAd_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "markPaidCallAd failed: unknown result")
raise x
def isGroupMember(self, ctx, groupId):
"""
Args:
ctx: FContext
groupId: string
"""
return self._methods['isGroupMember']([ctx, groupId])
def _isGroupMember(self, ctx, groupId):
self._send_isGroupMember(ctx, groupId)
return self._recv_isGroupMember(ctx)
def _send_isGroupMember(self, ctx, groupId):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('isGroupMember', TMessageType.CALL, 0)
args = isGroupMember_args()
args.groupId = groupId
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_isGroupMember(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = isGroupMember_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "isGroupMember failed: unknown result")
raise x
def getPhoneInfoFromPhoneNumber(self, ctx, region, phoneNumber):
"""
Args:
ctx: FContext
region: string
phoneNumber: string
"""
return self._methods['getPhoneInfoFromPhoneNumber']([ctx, region, phoneNumber])
def _getPhoneInfoFromPhoneNumber(self, ctx, region, phoneNumber):
self._send_getPhoneInfoFromPhoneNumber(ctx, region, phoneNumber)
return self._recv_getPhoneInfoFromPhoneNumber(ctx)
def _send_getPhoneInfoFromPhoneNumber(self, ctx, region, phoneNumber):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getPhoneInfoFromPhoneNumber', TMessageType.CALL, 0)
args = getPhoneInfoFromPhoneNumber_args()
args.region = region
args.phoneNumber = phoneNumber
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getPhoneInfoFromPhoneNumber(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getPhoneInfoFromPhoneNumber_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getPhoneInfoFromPhoneNumber failed: unknown result")
raise x
def redeemPaidCallVoucher(self, ctx, serial, language):
"""
Args:
ctx: FContext
serial: string
language: string
"""
return self._methods['redeemPaidCallVoucher']([ctx, serial, language])
def _redeemPaidCallVoucher(self, ctx, serial, language):
self._send_redeemPaidCallVoucher(ctx, serial, language)
return self._recv_redeemPaidCallVoucher(ctx)
def _send_redeemPaidCallVoucher(self, ctx, serial, language):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('redeemPaidCallVoucher', TMessageType.CALL, 0)
args = redeemPaidCallVoucher_args()
args.serial = serial
args.language = language
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_redeemPaidCallVoucher(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = redeemPaidCallVoucher_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "redeemPaidCallVoucher failed: unknown result")
raise x
def getPreferredDisplayName(self, ctx, mids):
"""
Args:
ctx: FContext
mids: list of string
"""
return self._methods['getPreferredDisplayName']([ctx, mids])
def _getPreferredDisplayName(self, ctx, mids):
self._send_getPreferredDisplayName(ctx, mids)
return self._recv_getPreferredDisplayName(ctx)
def _send_getPreferredDisplayName(self, ctx, mids):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getPreferredDisplayName', TMessageType.CALL, 0)
args = getPreferredDisplayName_args()
args.mids = mids
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getPreferredDisplayName(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getPreferredDisplayName_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getPreferredDisplayName failed: unknown result")
raise x
def getContactsForChannel(self, ctx, ids):
"""
Args:
ctx: FContext
ids: list of string
"""
return self._methods['getContactsForChannel']([ctx, ids])
def _getContactsForChannel(self, ctx, ids):
self._send_getContactsForChannel(ctx, ids)
return self._recv_getContactsForChannel(ctx)
def _send_getContactsForChannel(self, ctx, ids):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getContactsForChannel', TMessageType.CALL, 0)
args = getContactsForChannel_args()
args.ids = ids
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getContactsForChannel(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getContactsForChannel_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getContactsForChannel failed: unknown result")
raise x
def getCallCreditProducts(self, ctx, appStoreCode, pgCode, country, language):
"""
Args:
ctx: FContext
appStoreCode: PaymentType
pgCode: PaymentPgType
country: string
language: string
"""
return self._methods['getCallCreditProducts']([ctx, appStoreCode, pgCode, country, language])
def _getCallCreditProducts(self, ctx, appStoreCode, pgCode, country, language):
self._send_getCallCreditProducts(ctx, appStoreCode, pgCode, country, language)
return self._recv_getCallCreditProducts(ctx)
def _send_getCallCreditProducts(self, ctx, appStoreCode, pgCode, country, language):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getCallCreditProducts', TMessageType.CALL, 0)
args = getCallCreditProducts_args()
args.appStoreCode = appStoreCode
args.pgCode = pgCode
args.country = country
args.language = language
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getCallCreditProducts(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getCallCreditProducts_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getCallCreditProducts failed: unknown result")
raise x
def getCompactContacts(self, ctx, lastModifiedTimestamp):
"""
Args:
ctx: FContext
lastModifiedTimestamp: int (signed 64 bits)
"""
return self._methods['getCompactContacts']([ctx, lastModifiedTimestamp])
def _getCompactContacts(self, ctx, lastModifiedTimestamp):
self._send_getCompactContacts(ctx, lastModifiedTimestamp)
return self._recv_getCompactContacts(ctx)
def _send_getCompactContacts(self, ctx, lastModifiedTimestamp):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getCompactContacts', TMessageType.CALL, 0)
args = getCompactContacts_args()
args.lastModifiedTimestamp = lastModifiedTimestamp
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getCompactContacts(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getCompactContacts_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getCompactContacts failed: unknown result")
raise x
def notifyNotiCenterEvent(self, ctx, event):
"""
Args:
ctx: FContext
event: NotiCenterEventData
"""
return self._methods['notifyNotiCenterEvent']([ctx, event])
def _notifyNotiCenterEvent(self, ctx, event):
self._send_notifyNotiCenterEvent(ctx, event)
self._recv_notifyNotiCenterEvent(ctx)
def _send_notifyNotiCenterEvent(self, ctx, event):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('notifyNotiCenterEvent', TMessageType.CALL, 0)
args = notifyNotiCenterEvent_args()
args.event = event
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_notifyNotiCenterEvent(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = notifyNotiCenterEvent_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
return
def isInContact(self, ctx, mid):
"""
Args:
ctx: FContext
mid: string
"""
return self._methods['isInContact']([ctx, mid])
def _isInContact(self, ctx, mid):
self._send_isInContact(ctx, mid)
return self._recv_isInContact(ctx)
def _send_isInContact(self, ctx, mid):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('isInContact', TMessageType.CALL, 0)
args = isInContact_args()
args.mid = mid
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_isInContact(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = isInContact_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "isInContact failed: unknown result")
raise x
def lookupGroupMembers(self, ctx, groupId, mids):
"""
Args:
ctx: FContext
groupId: string
mids: list of string
"""
return self._methods['lookupGroupMembers']([ctx, groupId, mids])
def _lookupGroupMembers(self, ctx, groupId, mids):
self._send_lookupGroupMembers(ctx, groupId, mids)
return self._recv_lookupGroupMembers(ctx)
def _send_lookupGroupMembers(self, ctx, groupId, mids):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('lookupGroupMembers', TMessageType.CALL, 0)
args = lookupGroupMembers_args()
args.groupId = groupId
args.mids = mids
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_lookupGroupMembers(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = lookupGroupMembers_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "lookupGroupMembers failed: unknown result")
raise x
def getRoomInformation(self, ctx, roomMid):
"""
Args:
ctx: FContext
roomMid: string
"""
return self._methods['getRoomInformation']([ctx, roomMid])
def _getRoomInformation(self, ctx, roomMid):
self._send_getRoomInformation(ctx, roomMid)
return self._recv_getRoomInformation(ctx)
def _send_getRoomInformation(self, ctx, roomMid):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getRoomInformation', TMessageType.CALL, 0)
args = getRoomInformation_args()
args.roomMid = roomMid
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getRoomInformation(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getRoomInformation_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getRoomInformation failed: unknown result")
raise x
def getGroupCall(self, ctx, chatMid):
"""
Args:
ctx: FContext
chatMid: string
"""
return self._methods['getGroupCall']([ctx, chatMid])
def _getGroupCall(self, ctx, chatMid):
self._send_getGroupCall(ctx, chatMid)
return self._recv_getGroupCall(ctx)
def _send_getGroupCall(self, ctx, chatMid):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getGroupCall', TMessageType.CALL, 0)
args = getGroupCall_args()
args.chatMid = chatMid
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getGroupCall(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getGroupCall_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getGroupCall failed: unknown result")
raise x
def isAllowSecondaryDeviceLogin(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['isAllowSecondaryDeviceLogin']([ctx])
def _isAllowSecondaryDeviceLogin(self, ctx):
self._send_isAllowSecondaryDeviceLogin(ctx)
return self._recv_isAllowSecondaryDeviceLogin(ctx)
def _send_isAllowSecondaryDeviceLogin(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('isAllowSecondaryDeviceLogin', TMessageType.CALL, 0)
args = isAllowSecondaryDeviceLogin_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_isAllowSecondaryDeviceLogin(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = isAllowSecondaryDeviceLogin_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "isAllowSecondaryDeviceLogin failed: unknown result")
raise x
def getPrimaryClientForChannel(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getPrimaryClientForChannel']([ctx])
def _getPrimaryClientForChannel(self, ctx):
self._send_getPrimaryClientForChannel(ctx)
return self._recv_getPrimaryClientForChannel(ctx)
def _send_getPrimaryClientForChannel(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getPrimaryClientForChannel', TMessageType.CALL, 0)
args = getPrimaryClientForChannel_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getPrimaryClientForChannel(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getPrimaryClientForChannel_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getPrimaryClientForChannel failed: unknown result")
raise x
def createRoomWithBuddy(self, ctx, reqSeq, buddyMid, contactIds):
"""
Args:
ctx: FContext
reqSeq: int (signed 32 bits)
buddyMid: string
contactIds: list of string
"""
return self._methods['createRoomWithBuddy']([ctx, reqSeq, buddyMid, contactIds])
def _createRoomWithBuddy(self, ctx, reqSeq, buddyMid, contactIds):
self._send_createRoomWithBuddy(ctx, reqSeq, buddyMid, contactIds)
return self._recv_createRoomWithBuddy(ctx)
def _send_createRoomWithBuddy(self, ctx, reqSeq, buddyMid, contactIds):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('createRoomWithBuddy', TMessageType.CALL, 0)
args = createRoomWithBuddy_args()
args.reqSeq = reqSeq
args.buddyMid = buddyMid
args.contactIds = contactIds
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_createRoomWithBuddy(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = createRoomWithBuddy_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "createRoomWithBuddy failed: unknown result")
raise x
def getDisplayName(self, ctx, mid):
"""
Args:
ctx: FContext
mid: string
"""
return self._methods['getDisplayName']([ctx, mid])
def _getDisplayName(self, ctx, mid):
self._send_getDisplayName(ctx, mid)
return self._recv_getDisplayName(ctx)
def _send_getDisplayName(self, ctx, mid):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getDisplayName', TMessageType.CALL, 0)
args = getDisplayName_args()
args.mid = mid
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getDisplayName(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getDisplayName_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getDisplayName failed: unknown result")
raise x
def getPaidCallMetadata(self, ctx, language):
"""
Args:
ctx: FContext
language: string
"""
return self._methods['getPaidCallMetadata']([ctx, language])
def _getPaidCallMetadata(self, ctx, language):
self._send_getPaidCallMetadata(ctx, language)
return self._recv_getPaidCallMetadata(ctx)
def _send_getPaidCallMetadata(self, ctx, language):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getPaidCallMetadata', TMessageType.CALL, 0)
args = getPaidCallMetadata_args()
args.language = language
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getPaidCallMetadata(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getPaidCallMetadata_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getPaidCallMetadata failed: unknown result")
raise x
def getMid(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getMid']([ctx])
def _getMid(self, ctx):
self._send_getMid(ctx)
return self._recv_getMid(ctx)
def _send_getMid(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getMid', TMessageType.CALL, 0)
args = getMid_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getMid(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getMid_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getMid failed: unknown result")
raise x
def getUserCountryForBilling(self, ctx, country, remoteIp):
"""
Args:
ctx: FContext
country: string
remoteIp: string
"""
return self._methods['getUserCountryForBilling']([ctx, country, remoteIp])
def _getUserCountryForBilling(self, ctx, country, remoteIp):
self._send_getUserCountryForBilling(ctx, country, remoteIp)
return self._recv_getUserCountryForBilling(ctx)
def _send_getUserCountryForBilling(self, ctx, country, remoteIp):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getUserCountryForBilling', TMessageType.CALL, 0)
args = getUserCountryForBilling_args()
args.country = country
args.remoteIp = remoteIp
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getUserCountryForBilling(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getUserCountryForBilling_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getUserCountryForBilling failed: unknown result")
raise x
def getFavoriteGroupIdsForChannel(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getFavoriteGroupIdsForChannel']([ctx])
def _getFavoriteGroupIdsForChannel(self, ctx):
self._send_getFavoriteGroupIdsForChannel(ctx)
return self._recv_getFavoriteGroupIdsForChannel(ctx)
def _send_getFavoriteGroupIdsForChannel(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getFavoriteGroupIdsForChannel', TMessageType.CALL, 0)
args = getFavoriteGroupIdsForChannel_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getFavoriteGroupIdsForChannel(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getFavoriteGroupIdsForChannel_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getFavoriteGroupIdsForChannel failed: unknown result")
raise x
def getPaidCallHistory(self, ctx, start, size, language):
"""
Args:
ctx: FContext
start: int (signed 64 bits)
size: int (signed 32 bits)
language: string
"""
return self._methods['getPaidCallHistory']([ctx, start, size, language])
def _getPaidCallHistory(self, ctx, start, size, language):
self._send_getPaidCallHistory(ctx, start, size, language)
return self._recv_getPaidCallHistory(ctx)
def _send_getPaidCallHistory(self, ctx, start, size, language):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getPaidCallHistory', TMessageType.CALL, 0)
args = getPaidCallHistory_args()
args.start = start
args.size = size
args.language = language
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getPaidCallHistory(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getPaidCallHistory_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getPaidCallHistory failed: unknown result")
raise x
def sendPinCodeOperation(self, ctx, verifier):
"""
Args:
ctx: FContext
verifier: string
"""
return self._methods['sendPinCodeOperation']([ctx, verifier])
def _sendPinCodeOperation(self, ctx, verifier):
self._send_sendPinCodeOperation(ctx, verifier)
self._recv_sendPinCodeOperation(ctx)
def _send_sendPinCodeOperation(self, ctx, verifier):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('sendPinCodeOperation', TMessageType.CALL, 0)
args = sendPinCodeOperation_args()
args.verifier = verifier
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_sendPinCodeOperation(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = sendPinCodeOperation_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
return
def inviteIntoGroupCall(self, ctx, chatMid, memberMids, mediaType):
"""
Args:
ctx: FContext
chatMid: string
memberMids: list of string
mediaType: GroupCallMediaType
"""
return self._methods['inviteIntoGroupCall']([ctx, chatMid, memberMids, mediaType])
def _inviteIntoGroupCall(self, ctx, chatMid, memberMids, mediaType):
self._send_inviteIntoGroupCall(ctx, chatMid, memberMids, mediaType)
self._recv_inviteIntoGroupCall(ctx)
def _send_inviteIntoGroupCall(self, ctx, chatMid, memberMids, mediaType):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('inviteIntoGroupCall', TMessageType.CALL, 0)
args = inviteIntoGroupCall_args()
args.chatMid = chatMid
args.memberMids = memberMids
args.mediaType = mediaType
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_inviteIntoGroupCall(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = inviteIntoGroupCall_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
return
def getFriendMids(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getFriendMids']([ctx])
def _getFriendMids(self, ctx):
self._send_getFriendMids(ctx)
return self._recv_getFriendMids(ctx)
def _send_getFriendMids(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getFriendMids', TMessageType.CALL, 0)
args = getFriendMids_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getFriendMids(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getFriendMids_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getFriendMids failed: unknown result")
raise x
def getMetaProfile(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getMetaProfile']([ctx])
def _getMetaProfile(self, ctx):
self._send_getMetaProfile(ctx)
return self._recv_getMetaProfile(ctx)
def _send_getMetaProfile(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getMetaProfile', TMessageType.CALL, 0)
args = getMetaProfile_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getMetaProfile(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getMetaProfile_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getMetaProfile failed: unknown result")
raise x
def sendMessageForChannel(self, ctx, message):
"""
Args:
ctx: FContext
message: Message
"""
return self._methods['sendMessageForChannel']([ctx, message])
def _sendMessageForChannel(self, ctx, message):
self._send_sendMessageForChannel(ctx, message)
return self._recv_sendMessageForChannel(ctx)
def _send_sendMessageForChannel(self, ctx, message):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('sendMessageForChannel', TMessageType.CALL, 0)
args = sendMessageForChannel_args()
args.message = message
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_sendMessageForChannel(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = sendMessageForChannel_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "sendMessageForChannel failed: unknown result")
raise x
def activeBuddySubscriberCount(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['activeBuddySubscriberCount']([ctx])
def _activeBuddySubscriberCount(self, ctx):
self._send_activeBuddySubscriberCount(ctx)
return self._recv_activeBuddySubscriberCount(ctx)
def _send_activeBuddySubscriberCount(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('activeBuddySubscriberCount', TMessageType.CALL, 0)
args = activeBuddySubscriberCount_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_activeBuddySubscriberCount(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = activeBuddySubscriberCount_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "activeBuddySubscriberCount failed: unknown result")
raise x
def getCallCreditPurchaseHistory(self, ctx, request):
"""
Args:
ctx: FContext
request: CoinHistoryCondition
"""
return self._methods['getCallCreditPurchaseHistory']([ctx, request])
def _getCallCreditPurchaseHistory(self, ctx, request):
self._send_getCallCreditPurchaseHistory(ctx, request)
return self._recv_getCallCreditPurchaseHistory(ctx)
def _send_getCallCreditPurchaseHistory(self, ctx, request):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getCallCreditPurchaseHistory', TMessageType.CALL, 0)
args = getCallCreditPurchaseHistory_args()
args.request = request
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getCallCreditPurchaseHistory(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getCallCreditPurchaseHistory_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getCallCreditPurchaseHistory failed: unknown result")
raise x
def isRoomMember(self, ctx, roomId):
"""
Args:
ctx: FContext
roomId: string
"""
return self._methods['isRoomMember']([ctx, roomId])
def _isRoomMember(self, ctx, roomId):
self._send_isRoomMember(ctx, roomId)
return self._recv_isRoomMember(ctx)
def _send_isRoomMember(self, ctx, roomId):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('isRoomMember', TMessageType.CALL, 0)
args = isRoomMember_args()
args.roomId = roomId
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_isRoomMember(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = isRoomMember_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "isRoomMember failed: unknown result")
raise x
def sendSystemOAMessage(self, ctx, message):
"""
Args:
ctx: FContext
message: Message
"""
return self._methods['sendSystemOAMessage']([ctx, message])
def _sendSystemOAMessage(self, ctx, message):
self._send_sendSystemOAMessage(ctx, message)
return self._recv_sendSystemOAMessage(ctx)
def _send_sendSystemOAMessage(self, ctx, message):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('sendSystemOAMessage', TMessageType.CALL, 0)
args = sendSystemOAMessage_args()
args.message = message
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_sendSystemOAMessage(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = sendSystemOAMessage_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "sendSystemOAMessage failed: unknown result")
raise x
def acquirePaidCallRoute(self, ctx, paidCallType, dialedNumber, language, networkCode, disableCallerId, referer, adSessionId):
"""
Args:
ctx: FContext
paidCallType: PaidCallType
dialedNumber: string
language: string
networkCode: string
disableCallerId: boolean
referer: string
adSessionId: string
"""
return self._methods['acquirePaidCallRoute']([ctx, paidCallType, dialedNumber, language, networkCode, disableCallerId, referer, adSessionId])
def _acquirePaidCallRoute(self, ctx, paidCallType, dialedNumber, language, networkCode, disableCallerId, referer, adSessionId):
self._send_acquirePaidCallRoute(ctx, paidCallType, dialedNumber, language, networkCode, disableCallerId, referer, adSessionId)
return self._recv_acquirePaidCallRoute(ctx)
def _send_acquirePaidCallRoute(self, ctx, paidCallType, dialedNumber, language, networkCode, disableCallerId, referer, adSessionId):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('acquirePaidCallRoute', TMessageType.CALL, 0)
args = acquirePaidCallRoute_args()
args.paidCallType = paidCallType
args.dialedNumber = dialedNumber
args.language = language
args.networkCode = networkCode
args.disableCallerId = disableCallerId
args.referer = referer
args.adSessionId = adSessionId
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_acquirePaidCallRoute(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = acquirePaidCallRoute_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "acquirePaidCallRoute failed: unknown result")
raise x
def getGroupsForChannel(self, ctx, groupIds):
"""
Args:
ctx: FContext
groupIds: list of string
"""
return self._methods['getGroupsForChannel']([ctx, groupIds])
def _getGroupsForChannel(self, ctx, groupIds):
self._send_getGroupsForChannel(ctx, groupIds)
return self._recv_getGroupsForChannel(ctx)
def _send_getGroupsForChannel(self, ctx, groupIds):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getGroupsForChannel', TMessageType.CALL, 0)
args = getGroupsForChannel_args()
args.groupIds = groupIds
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getGroupsForChannel(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getGroupsForChannel_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getGroupsForChannel failed: unknown result")
raise x
def getUserCreateTime(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getUserCreateTime']([ctx])
def _getUserCreateTime(self, ctx):
self._send_getUserCreateTime(ctx)
return self._recv_getUserCreateTime(ctx)
def _send_getUserCreateTime(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getUserCreateTime', TMessageType.CALL, 0)
args = getUserCreateTime_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getUserCreateTime(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getUserCreateTime_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getUserCreateTime failed: unknown result")
raise x
def registerChannelCP(self, ctx, cpId, registerPassword):
"""
Args:
ctx: FContext
cpId: string
registerPassword: string
"""
return self._methods['registerChannelCP']([ctx, cpId, registerPassword])
def _registerChannelCP(self, ctx, cpId, registerPassword):
self._send_registerChannelCP(ctx, cpId, registerPassword)
return self._recv_registerChannelCP(ctx)
def _send_registerChannelCP(self, ctx, cpId, registerPassword):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('registerChannelCP', TMessageType.CALL, 0)
args = registerChannelCP_args()
args.cpId = cpId
args.registerPassword = registerPassword
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_registerChannelCP(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = registerChannelCP_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "registerChannelCP failed: unknown result")
raise x
def reserveCallCreditPurchase(self, ctx, request):
"""
Args:
ctx: FContext
request: CoinPurchaseReservation
"""
return self._methods['reserveCallCreditPurchase']([ctx, request])
def _reserveCallCreditPurchase(self, ctx, request):
self._send_reserveCallCreditPurchase(ctx, request)
return self._recv_reserveCallCreditPurchase(ctx)
def _send_reserveCallCreditPurchase(self, ctx, request):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('reserveCallCreditPurchase', TMessageType.CALL, 0)
args = reserveCallCreditPurchase_args()
args.request = request
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_reserveCallCreditPurchase(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = reserveCallCreditPurchase_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "reserveCallCreditPurchase failed: unknown result")
raise x
def acquirePaidCallCurrencyExchangeRate(self, ctx, language):
"""
Args:
ctx: FContext
language: string
"""
return self._methods['acquirePaidCallCurrencyExchangeRate']([ctx, language])
def _acquirePaidCallCurrencyExchangeRate(self, ctx, language):
self._send_acquirePaidCallCurrencyExchangeRate(ctx, language)
return self._recv_acquirePaidCallCurrencyExchangeRate(ctx)
def _send_acquirePaidCallCurrencyExchangeRate(self, ctx, language):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('acquirePaidCallCurrencyExchangeRate', TMessageType.CALL, 0)
args = acquirePaidCallCurrencyExchangeRate_args()
args.language = language
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_acquirePaidCallCurrencyExchangeRate(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = acquirePaidCallCurrencyExchangeRate_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "acquirePaidCallCurrencyExchangeRate failed: unknown result")
raise x
def getRoomMemberMidsForAppPlatform(self, ctx, roomId):
"""
Args:
ctx: FContext
roomId: string
"""
return self._methods['getRoomMemberMidsForAppPlatform']([ctx, roomId])
def _getRoomMemberMidsForAppPlatform(self, ctx, roomId):
self._send_getRoomMemberMidsForAppPlatform(ctx, roomId)
return self._recv_getRoomMemberMidsForAppPlatform(ctx)
def _send_getRoomMemberMidsForAppPlatform(self, ctx, roomId):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getRoomMemberMidsForAppPlatform', TMessageType.CALL, 0)
args = getRoomMemberMidsForAppPlatform_args()
args.roomId = roomId
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getRoomMemberMidsForAppPlatform(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getRoomMemberMidsForAppPlatform_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getRoomMemberMidsForAppPlatform failed: unknown result")
raise x
def getPaidCallBalanceList(self, ctx, language):
"""
Args:
ctx: FContext
language: string
"""
return self._methods['getPaidCallBalanceList']([ctx, language])
def _getPaidCallBalanceList(self, ctx, language):
self._send_getPaidCallBalanceList(ctx, language)
return self._recv_getPaidCallBalanceList(ctx)
def _send_getPaidCallBalanceList(self, ctx, language):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getPaidCallBalanceList', TMessageType.CALL, 0)
args = getPaidCallBalanceList_args()
args.language = language
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getPaidCallBalanceList(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getPaidCallBalanceList_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getPaidCallBalanceList failed: unknown result")
raise x
def getPersonalInfos(self, ctx, requiredPersonalInfos):
"""
Args:
ctx: FContext
requiredPersonalInfos: set of PersonalInfo
"""
return self._methods['getPersonalInfos']([ctx, requiredPersonalInfos])
def _getPersonalInfos(self, ctx, requiredPersonalInfos):
self._send_getPersonalInfos(ctx, requiredPersonalInfos)
return self._recv_getPersonalInfos(ctx)
def _send_getPersonalInfos(self, ctx, requiredPersonalInfos):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getPersonalInfos', TMessageType.CALL, 0)
args = getPersonalInfos_args()
args.requiredPersonalInfos = requiredPersonalInfos
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getPersonalInfos(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getPersonalInfos_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getPersonalInfos failed: unknown result")
raise x
def getPrimaryClientsForChannel(self, ctx, userMids):
"""
Args:
ctx: FContext
userMids: list of string
"""
return self._methods['getPrimaryClientsForChannel']([ctx, userMids])
def _getPrimaryClientsForChannel(self, ctx, userMids):
self._send_getPrimaryClientsForChannel(ctx, userMids)
return self._recv_getPrimaryClientsForChannel(ctx)
def _send_getPrimaryClientsForChannel(self, ctx, userMids):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getPrimaryClientsForChannel', TMessageType.CALL, 0)
args = getPrimaryClientsForChannel_args()
args.userMids = userMids
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getPrimaryClientsForChannel(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getPrimaryClientsForChannel_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getPrimaryClientsForChannel failed: unknown result")
raise x
def addBuddyToContact(self, ctx, buddyMid):
"""
Args:
ctx: FContext
buddyMid: string
"""
return self._methods['addBuddyToContact']([ctx, buddyMid])
def _addBuddyToContact(self, ctx, buddyMid):
self._send_addBuddyToContact(ctx, buddyMid)
return self._recv_addBuddyToContact(ctx)
def _send_addBuddyToContact(self, ctx, buddyMid):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('addBuddyToContact', TMessageType.CALL, 0)
args = addBuddyToContact_args()
args.buddyMid = buddyMid
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_addBuddyToContact(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = addBuddyToContact_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "addBuddyToContact failed: unknown result")
raise x
def getGroupMemberMidsForAppPlatform(self, ctx, groupId):
"""
Args:
ctx: FContext
groupId: string
"""
return self._methods['getGroupMemberMidsForAppPlatform']([ctx, groupId])
def _getGroupMemberMidsForAppPlatform(self, ctx, groupId):
self._send_getGroupMemberMidsForAppPlatform(ctx, groupId)
return self._recv_getGroupMemberMidsForAppPlatform(ctx)
def _send_getGroupMemberMidsForAppPlatform(self, ctx, groupId):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getGroupMemberMidsForAppPlatform', TMessageType.CALL, 0)
args = getGroupMemberMidsForAppPlatform_args()
args.groupId = groupId
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getGroupMemberMidsForAppPlatform(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getGroupMemberMidsForAppPlatform_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getGroupMemberMidsForAppPlatform failed: unknown result")
raise x
def getUserLanguage(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getUserLanguage']([ctx])
def _getUserLanguage(self, ctx):
self._send_getUserLanguage(ctx)
return self._recv_getUserLanguage(ctx)
def _send_getUserLanguage(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getUserLanguage', TMessageType.CALL, 0)
args = getUserLanguage_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getUserLanguage(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getUserLanguage_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getUserLanguage failed: unknown result")
raise x
def lookupPaidCall(self, ctx, dialedNumber, language, referer):
"""
Args:
ctx: FContext
dialedNumber: string
language: string
referer: string
"""
return self._methods['lookupPaidCall']([ctx, dialedNumber, language, referer])
def _lookupPaidCall(self, ctx, dialedNumber, language, referer):
self._send_lookupPaidCall(ctx, dialedNumber, language, referer)
return self._recv_lookupPaidCall(ctx)
def _send_lookupPaidCall(self, ctx, dialedNumber, language, referer):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('lookupPaidCall', TMessageType.CALL, 0)
args = lookupPaidCall_args()
args.dialedNumber = dialedNumber
args.language = language
args.referer = referer
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_lookupPaidCall(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = lookupPaidCall_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "lookupPaidCall failed: unknown result")
raise x
def getExtendedProfile(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getExtendedProfile']([ctx])
def _getExtendedProfile(self, ctx):
self._send_getExtendedProfile(ctx)
return self._recv_getExtendedProfile(ctx)
def _send_getExtendedProfile(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getExtendedProfile', TMessageType.CALL, 0)
args = getExtendedProfile_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getExtendedProfile(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getExtendedProfile_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getExtendedProfile failed: unknown result")
raise x
def getReverseCompactContacts(self, ctx, ids):
"""
Args:
ctx: FContext
ids: list of string
"""
return self._methods['getReverseCompactContacts']([ctx, ids])
def _getReverseCompactContacts(self, ctx, ids):
self._send_getReverseCompactContacts(ctx, ids)
return self._recv_getReverseCompactContacts(ctx)
def _send_getReverseCompactContacts(self, ctx, ids):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getReverseCompactContacts', TMessageType.CALL, 0)
args = getReverseCompactContacts_args()
args.ids = ids
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getReverseCompactContacts(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getReverseCompactContacts_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getReverseCompactContacts failed: unknown result")
raise x
def getPaidCallAdStatus(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getPaidCallAdStatus']([ctx])
def _getPaidCallAdStatus(self, ctx):
self._send_getPaidCallAdStatus(ctx)
return self._recv_getPaidCallAdStatus(ctx)
def _send_getPaidCallAdStatus(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getPaidCallAdStatus', TMessageType.CALL, 0)
args = getPaidCallAdStatus_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getPaidCallAdStatus(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getPaidCallAdStatus_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getPaidCallAdStatus failed: unknown result")
raise x
def findContactByUseridWithoutAbuseBlockForChannel(self, ctx, userid):
"""
Args:
ctx: FContext
userid: string
"""
return self._methods['findContactByUseridWithoutAbuseBlockForChannel']([ctx, userid])
def _findContactByUseridWithoutAbuseBlockForChannel(self, ctx, userid):
self._send_findContactByUseridWithoutAbuseBlockForChannel(ctx, userid)
return self._recv_findContactByUseridWithoutAbuseBlockForChannel(ctx)
def _send_findContactByUseridWithoutAbuseBlockForChannel(self, ctx, userid):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('findContactByUseridWithoutAbuseBlockForChannel', TMessageType.CALL, 0)
args = findContactByUseridWithoutAbuseBlockForChannel_args()
args.userid = userid
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_findContactByUseridWithoutAbuseBlockForChannel(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = findContactByUseridWithoutAbuseBlockForChannel_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "findContactByUseridWithoutAbuseBlockForChannel failed: unknown result")
raise x
def getGroupMemberMids(self, ctx, groupId):
"""
Args:
ctx: FContext
groupId: string
"""
return self._methods['getGroupMemberMids']([ctx, groupId])
def _getGroupMemberMids(self, ctx, groupId):
self._send_getGroupMemberMids(ctx, groupId)
return self._recv_getGroupMemberMids(ctx)
def _send_getGroupMemberMids(self, ctx, groupId):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getGroupMemberMids', TMessageType.CALL, 0)
args = getGroupMemberMids_args()
args.groupId = groupId
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getGroupMemberMids(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getGroupMemberMids_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getGroupMemberMids failed: unknown result")
raise x
def sendMessageWithoutRelationship(self, ctx, message):
"""
Args:
ctx: FContext
message: Message
"""
return self._methods['sendMessageWithoutRelationship']([ctx, message])
def _sendMessageWithoutRelationship(self, ctx, message):
self._send_sendMessageWithoutRelationship(ctx, message)
return self._recv_sendMessageWithoutRelationship(ctx)
def _send_sendMessageWithoutRelationship(self, ctx, message):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('sendMessageWithoutRelationship', TMessageType.CALL, 0)
args = sendMessageWithoutRelationship_args()
args.message = message
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_sendMessageWithoutRelationship(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = sendMessageWithoutRelationship_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "sendMessageWithoutRelationship failed: unknown result")
raise x
def displayBuddySubscriberCountInBulk(self, ctx, mids):
"""
Args:
ctx: FContext
mids: list of string
"""
return self._methods['displayBuddySubscriberCountInBulk']([ctx, mids])
def _displayBuddySubscriberCountInBulk(self, ctx, mids):
self._send_displayBuddySubscriberCountInBulk(ctx, mids)
return self._recv_displayBuddySubscriberCountInBulk(ctx)
def _send_displayBuddySubscriberCountInBulk(self, ctx, mids):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('displayBuddySubscriberCountInBulk', TMessageType.CALL, 0)
args = displayBuddySubscriberCountInBulk_args()
args.mids = mids
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_displayBuddySubscriberCountInBulk(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = displayBuddySubscriberCountInBulk_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "displayBuddySubscriberCountInBulk failed: unknown result")
raise x
def lookupRoomMembers(self, ctx, roomId, mids):
"""
Args:
ctx: FContext
roomId: string
mids: list of string
"""
return self._methods['lookupRoomMembers']([ctx, roomId, mids])
def _lookupRoomMembers(self, ctx, roomId, mids):
self._send_lookupRoomMembers(ctx, roomId, mids)
return self._recv_lookupRoomMembers(ctx)
def _send_lookupRoomMembers(self, ctx, roomId, mids):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('lookupRoomMembers', TMessageType.CALL, 0)
args = lookupRoomMembers_args()
args.roomId = roomId
args.mids = mids
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_lookupRoomMembers(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = lookupRoomMembers_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "lookupRoomMembers failed: unknown result")
raise x
def getFavoriteMidsForChannel(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getFavoriteMidsForChannel']([ctx])
def _getFavoriteMidsForChannel(self, ctx):
self._send_getFavoriteMidsForChannel(ctx)
return self._recv_getFavoriteMidsForChannel(ctx)
def _send_getFavoriteMidsForChannel(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getFavoriteMidsForChannel', TMessageType.CALL, 0)
args = getFavoriteMidsForChannel_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getFavoriteMidsForChannel(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getFavoriteMidsForChannel_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getFavoriteMidsForChannel failed: unknown result")
raise x
def getAllContactIdsForChannel(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getAllContactIdsForChannel']([ctx])
def _getAllContactIdsForChannel(self, ctx):
self._send_getAllContactIdsForChannel(ctx)
return self._recv_getAllContactIdsForChannel(ctx)
def _send_getAllContactIdsForChannel(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getAllContactIdsForChannel', TMessageType.CALL, 0)
args = getAllContactIdsForChannel_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getAllContactIdsForChannel(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getAllContactIdsForChannel_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getAllContactIdsForChannel failed: unknown result")
raise x
def displayBuddySubscriberCount(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['displayBuddySubscriberCount']([ctx])
def _displayBuddySubscriberCount(self, ctx):
self._send_displayBuddySubscriberCount(ctx)
return self._recv_displayBuddySubscriberCount(ctx)
def _send_displayBuddySubscriberCount(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('displayBuddySubscriberCount', TMessageType.CALL, 0)
args = displayBuddySubscriberCount_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_displayBuddySubscriberCount(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = displayBuddySubscriberCount_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "displayBuddySubscriberCount failed: unknown result")
raise x
def getProfileForChannel(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getProfileForChannel']([ctx])
def _getProfileForChannel(self, ctx):
self._send_getProfileForChannel(ctx)
return self._recv_getProfileForChannel(ctx)
def _send_getProfileForChannel(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getProfileForChannel', TMessageType.CALL, 0)
args = getProfileForChannel_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getProfileForChannel(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getProfileForChannel_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getProfileForChannel failed: unknown result")
raise x
def getUserTickets(self, ctx, userMids):
"""
Args:
ctx: FContext
userMids: list of string
"""
return self._methods['getUserTickets']([ctx, userMids])
def _getUserTickets(self, ctx, userMids):
self._send_getUserTickets(ctx, userMids)
return self._recv_getUserTickets(ctx)
def _send_getUserTickets(self, ctx, userMids):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getUserTickets', TMessageType.CALL, 0)
args = getUserTickets_args()
args.userMids = userMids
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getUserTickets(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getUserTickets_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getUserTickets failed: unknown result")
raise x
def getOAFriendMids(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getOAFriendMids']([ctx])
def _getOAFriendMids(self, ctx):
self._send_getOAFriendMids(ctx)
return self._recv_getOAFriendMids(ctx)
def _send_getOAFriendMids(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getOAFriendMids', TMessageType.CALL, 0)
args = getOAFriendMids_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getOAFriendMids(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getOAFriendMids_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getOAFriendMids failed: unknown result")
raise x
def searchPaidCallUserRate(self, ctx, countryCode, language):
"""
Args:
ctx: FContext
countryCode: string
language: string
"""
return self._methods['searchPaidCallUserRate']([ctx, countryCode, language])
def _searchPaidCallUserRate(self, ctx, countryCode, language):
self._send_searchPaidCallUserRate(ctx, countryCode, language)
return self._recv_searchPaidCallUserRate(ctx)
def _send_searchPaidCallUserRate(self, ctx, countryCode, language):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('searchPaidCallUserRate', TMessageType.CALL, 0)
args = searchPaidCallUserRate_args()
args.countryCode = countryCode
args.language = language
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_searchPaidCallUserRate(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = searchPaidCallUserRate_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "searchPaidCallUserRate failed: unknown result")
raise x
def getJoinedGroupIdsForChannel(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getJoinedGroupIdsForChannel']([ctx])
def _getJoinedGroupIdsForChannel(self, ctx):
self._send_getJoinedGroupIdsForChannel(ctx)
return self._recv_getJoinedGroupIdsForChannel(ctx)
def _send_getJoinedGroupIdsForChannel(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getJoinedGroupIdsForChannel', TMessageType.CALL, 0)
args = getJoinedGroupIdsForChannel_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getJoinedGroupIdsForChannel(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getJoinedGroupIdsForChannel_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getJoinedGroupIdsForChannel failed: unknown result")
raise x
def acquireGroupCallRoute(self, ctx, chatMid, mediaType):
"""
Args:
ctx: FContext
chatMid: string
mediaType: GroupCallMediaType
"""
return self._methods['acquireGroupCallRoute']([ctx, chatMid, mediaType])
def _acquireGroupCallRoute(self, ctx, chatMid, mediaType):
self._send_acquireGroupCallRoute(ctx, chatMid, mediaType)
return self._recv_acquireGroupCallRoute(ctx)
def _send_acquireGroupCallRoute(self, ctx, chatMid, mediaType):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('acquireGroupCallRoute', TMessageType.CALL, 0)
args = acquireGroupCallRoute_args()
args.chatMid = chatMid
args.mediaType = mediaType
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_acquireGroupCallRoute(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = acquireGroupCallRoute_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "acquireGroupCallRoute failed: unknown result")
raise x
def getUserMidsWhoAddedMe(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getUserMidsWhoAddedMe']([ctx])
def _getUserMidsWhoAddedMe(self, ctx):
self._send_getUserMidsWhoAddedMe(ctx)
return self._recv_getUserMidsWhoAddedMe(ctx)
def _send_getUserMidsWhoAddedMe(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getUserMidsWhoAddedMe', TMessageType.CALL, 0)
args = getUserMidsWhoAddedMe_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getUserMidsWhoAddedMe(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getUserMidsWhoAddedMe_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getUserMidsWhoAddedMe failed: unknown result")
raise x
def getIdentityCredential(self, ctx):
"""
Args:
ctx: FContext
"""
return self._methods['getIdentityCredential']([ctx])
def _getIdentityCredential(self, ctx):
self._send_getIdentityCredential(ctx)
return self._recv_getIdentityCredential(ctx)
def _send_getIdentityCredential(self, ctx):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getIdentityCredential', TMessageType.CALL, 0)
args = getIdentityCredential_args()
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getIdentityCredential(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getIdentityCredential_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getIdentityCredential failed: unknown result")
raise x
def addOperationForChannel(self, ctx, opType, param1, param2, param3):
"""
Args:
ctx: FContext
opType: OpType
param1: string
param2: string
param3: string
"""
return self._methods['addOperationForChannel']([ctx, opType, param1, param2, param3])
def _addOperationForChannel(self, ctx, opType, param1, param2, param3):
self._send_addOperationForChannel(ctx, opType, param1, param2, param3)
self._recv_addOperationForChannel(ctx)
def _send_addOperationForChannel(self, ctx, opType, param1, param2, param3):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('addOperationForChannel', TMessageType.CALL, 0)
args = addOperationForChannel_args()
args.opType = opType
args.param1 = param1
args.param2 = param2
args.param3 = param3
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_addOperationForChannel(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = addOperationForChannel_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
return
def getSimpleChannelContacts(self, ctx, ids, statusSticonFallbackDisabled):
"""
Args:
ctx: FContext
ids: list of string
statusSticonFallbackDisabled: boolean
"""
return self._methods['getSimpleChannelContacts']([ctx, ids, statusSticonFallbackDisabled])
def _getSimpleChannelContacts(self, ctx, ids, statusSticonFallbackDisabled):
self._send_getSimpleChannelContacts(ctx, ids, statusSticonFallbackDisabled)
return self._recv_getSimpleChannelContacts(ctx)
def _send_getSimpleChannelContacts(self, ctx, ids, statusSticonFallbackDisabled):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getSimpleChannelContacts', TMessageType.CALL, 0)
args = getSimpleChannelContacts_args()
args.ids = ids
args.statusSticonFallbackDisabled = statusSticonFallbackDisabled
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getSimpleChannelContacts(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getSimpleChannelContacts_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getSimpleChannelContacts failed: unknown result")
raise x
def getUserLastSentMessageTimeStamp(self, ctx, mid):
"""
Args:
ctx: FContext
mid: string
"""
return self._methods['getUserLastSentMessageTimeStamp']([ctx, mid])
def _getUserLastSentMessageTimeStamp(self, ctx, mid):
self._send_getUserLastSentMessageTimeStamp(ctx, mid)
return self._recv_getUserLastSentMessageTimeStamp(ctx)
def _send_getUserLastSentMessageTimeStamp(self, ctx, mid):
oprot = self._oprot
with self._write_lock:
oprot.get_transport().set_timeout(ctx.timeout)
oprot.write_request_headers(ctx)
oprot.writeMessageBegin('getUserLastSentMessageTimeStamp', TMessageType.CALL, 0)
args = getUserLastSentMessageTimeStamp_args()
args.mid = mid
args.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
def _recv_getUserLastSentMessageTimeStamp(self, ctx):
self._iprot.read_response_headers(ctx)
_, mtype, _ = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
raise x
result = getUserLastSentMessageTimeStamp_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.e is not None:
raise result.e
if result.success is not None:
return result.success
x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "getUserLastSentMessageTimeStamp failed: unknown result")
raise x
class Processor(FBaseProcessor):
def __init__(self, handler, middleware=None):
"""
Create a new Processor.
Args:
handler: Iface
"""
if middleware and not isinstance(middleware, list):
middleware = [middleware]
super(Processor, self).__init__()
self.add_to_processor_map('getUserStatus', _getUserStatus(Method(handler.getUserStatus, middleware), self.get_write_lock()))
self.add_to_processor_map('updateProfileAttributeForChannel', _updateProfileAttributeForChannel(Method(handler.updateProfileAttributeForChannel, middleware), self.get_write_lock()))
self.add_to_processor_map('updateExtendedProfileAttribute', _updateExtendedProfileAttribute(Method(handler.updateExtendedProfileAttribute, middleware), self.get_write_lock()))
self.add_to_processor_map('getAllSimpleChannelContacts', _getAllSimpleChannelContacts(Method(handler.getAllSimpleChannelContacts, middleware), self.get_write_lock()))
self.add_to_processor_map('getUserIdentities', _getUserIdentities(Method(handler.getUserIdentities, middleware), self.get_write_lock()))
self.add_to_processor_map('markPaidCallAd', _markPaidCallAd(Method(handler.markPaidCallAd, middleware), self.get_write_lock()))
self.add_to_processor_map('isGroupMember', _isGroupMember(Method(handler.isGroupMember, middleware), self.get_write_lock()))
self.add_to_processor_map('getPhoneInfoFromPhoneNumber', _getPhoneInfoFromPhoneNumber(Method(handler.getPhoneInfoFromPhoneNumber, middleware), self.get_write_lock()))
self.add_to_processor_map('redeemPaidCallVoucher', _redeemPaidCallVoucher(Method(handler.redeemPaidCallVoucher, middleware), self.get_write_lock()))
self.add_to_processor_map('getPreferredDisplayName', _getPreferredDisplayName(Method(handler.getPreferredDisplayName, middleware), self.get_write_lock()))
self.add_to_processor_map('getContactsForChannel', _getContactsForChannel(Method(handler.getContactsForChannel, middleware), self.get_write_lock()))
self.add_to_processor_map('getCallCreditProducts', _getCallCreditProducts(Method(handler.getCallCreditProducts, middleware), self.get_write_lock()))
self.add_to_processor_map('getCompactContacts', _getCompactContacts(Method(handler.getCompactContacts, middleware), self.get_write_lock()))
self.add_to_processor_map('notifyNotiCenterEvent', _notifyNotiCenterEvent(Method(handler.notifyNotiCenterEvent, middleware), self.get_write_lock()))
self.add_to_processor_map('isInContact', _isInContact(Method(handler.isInContact, middleware), self.get_write_lock()))
self.add_to_processor_map('lookupGroupMembers', _lookupGroupMembers(Method(handler.lookupGroupMembers, middleware), self.get_write_lock()))
self.add_to_processor_map('getRoomInformation', _getRoomInformation(Method(handler.getRoomInformation, middleware), self.get_write_lock()))
self.add_to_processor_map('getGroupCall', _getGroupCall(Method(handler.getGroupCall, middleware), self.get_write_lock()))
self.add_to_processor_map('isAllowSecondaryDeviceLogin', _isAllowSecondaryDeviceLogin(Method(handler.isAllowSecondaryDeviceLogin, middleware), self.get_write_lock()))
self.add_to_processor_map('getPrimaryClientForChannel', _getPrimaryClientForChannel(Method(handler.getPrimaryClientForChannel, middleware), self.get_write_lock()))
self.add_to_processor_map('createRoomWithBuddy', _createRoomWithBuddy(Method(handler.createRoomWithBuddy, middleware), self.get_write_lock()))
self.add_to_processor_map('getDisplayName', _getDisplayName(Method(handler.getDisplayName, middleware), self.get_write_lock()))
self.add_to_processor_map('getPaidCallMetadata', _getPaidCallMetadata(Method(handler.getPaidCallMetadata, middleware), self.get_write_lock()))
self.add_to_processor_map('getMid', _getMid(Method(handler.getMid, middleware), self.get_write_lock()))
self.add_to_processor_map('getUserCountryForBilling', _getUserCountryForBilling(Method(handler.getUserCountryForBilling, middleware), self.get_write_lock()))
self.add_to_processor_map('getFavoriteGroupIdsForChannel', _getFavoriteGroupIdsForChannel(Method(handler.getFavoriteGroupIdsForChannel, middleware), self.get_write_lock()))
self.add_to_processor_map('getPaidCallHistory', _getPaidCallHistory(Method(handler.getPaidCallHistory, middleware), self.get_write_lock()))
self.add_to_processor_map('sendPinCodeOperation', _sendPinCodeOperation(Method(handler.sendPinCodeOperation, middleware), self.get_write_lock()))
self.add_to_processor_map('inviteIntoGroupCall', _inviteIntoGroupCall(Method(handler.inviteIntoGroupCall, middleware), self.get_write_lock()))
self.add_to_processor_map('getFriendMids', _getFriendMids(Method(handler.getFriendMids, middleware), self.get_write_lock()))
self.add_to_processor_map('getMetaProfile', _getMetaProfile(Method(handler.getMetaProfile, middleware), self.get_write_lock()))
self.add_to_processor_map('sendMessageForChannel', _sendMessageForChannel(Method(handler.sendMessageForChannel, middleware), self.get_write_lock()))
self.add_to_processor_map('activeBuddySubscriberCount', _activeBuddySubscriberCount(Method(handler.activeBuddySubscriberCount, middleware), self.get_write_lock()))
self.add_to_processor_map('getCallCreditPurchaseHistory', _getCallCreditPurchaseHistory(Method(handler.getCallCreditPurchaseHistory, middleware), self.get_write_lock()))
self.add_to_processor_map('isRoomMember', _isRoomMember(Method(handler.isRoomMember, middleware), self.get_write_lock()))
self.add_to_processor_map('sendSystemOAMessage', _sendSystemOAMessage(Method(handler.sendSystemOAMessage, middleware), self.get_write_lock()))
self.add_to_processor_map('acquirePaidCallRoute', _acquirePaidCallRoute(Method(handler.acquirePaidCallRoute, middleware), self.get_write_lock()))
self.add_to_processor_map('getGroupsForChannel', _getGroupsForChannel(Method(handler.getGroupsForChannel, middleware), self.get_write_lock()))
self.add_to_processor_map('getUserCreateTime', _getUserCreateTime(Method(handler.getUserCreateTime, middleware), self.get_write_lock()))
self.add_to_processor_map('registerChannelCP', _registerChannelCP(Method(handler.registerChannelCP, middleware), self.get_write_lock()))
self.add_to_processor_map('reserveCallCreditPurchase', _reserveCallCreditPurchase(Method(handler.reserveCallCreditPurchase, middleware), self.get_write_lock()))
self.add_to_processor_map('acquirePaidCallCurrencyExchangeRate', _acquirePaidCallCurrencyExchangeRate(Method(handler.acquirePaidCallCurrencyExchangeRate, middleware), self.get_write_lock()))
self.add_to_processor_map('getRoomMemberMidsForAppPlatform', _getRoomMemberMidsForAppPlatform(Method(handler.getRoomMemberMidsForAppPlatform, middleware), self.get_write_lock()))
self.add_to_processor_map('getPaidCallBalanceList', _getPaidCallBalanceList(Method(handler.getPaidCallBalanceList, middleware), self.get_write_lock()))
self.add_to_processor_map('getPersonalInfos', _getPersonalInfos(Method(handler.getPersonalInfos, middleware), self.get_write_lock()))
self.add_to_processor_map('getPrimaryClientsForChannel', _getPrimaryClientsForChannel(Method(handler.getPrimaryClientsForChannel, middleware), self.get_write_lock()))
self.add_to_processor_map('addBuddyToContact', _addBuddyToContact(Method(handler.addBuddyToContact, middleware), self.get_write_lock()))
self.add_to_processor_map('getGroupMemberMidsForAppPlatform', _getGroupMemberMidsForAppPlatform(Method(handler.getGroupMemberMidsForAppPlatform, middleware), self.get_write_lock()))
self.add_to_processor_map('getUserLanguage', _getUserLanguage(Method(handler.getUserLanguage, middleware), self.get_write_lock()))
self.add_to_processor_map('lookupPaidCall', _lookupPaidCall(Method(handler.lookupPaidCall, middleware), self.get_write_lock()))
self.add_to_processor_map('getExtendedProfile', _getExtendedProfile(Method(handler.getExtendedProfile, middleware), self.get_write_lock()))
self.add_to_processor_map('getReverseCompactContacts', _getReverseCompactContacts(Method(handler.getReverseCompactContacts, middleware), self.get_write_lock()))
self.add_to_processor_map('getPaidCallAdStatus', _getPaidCallAdStatus(Method(handler.getPaidCallAdStatus, middleware), self.get_write_lock()))
self.add_to_processor_map('findContactByUseridWithoutAbuseBlockForChannel', _findContactByUseridWithoutAbuseBlockForChannel(Method(handler.findContactByUseridWithoutAbuseBlockForChannel, middleware), self.get_write_lock()))
self.add_to_processor_map('getGroupMemberMids', _getGroupMemberMids(Method(handler.getGroupMemberMids, middleware), self.get_write_lock()))
self.add_to_processor_map('sendMessageWithoutRelationship', _sendMessageWithoutRelationship(Method(handler.sendMessageWithoutRelationship, middleware), self.get_write_lock()))
self.add_to_processor_map('displayBuddySubscriberCountInBulk', _displayBuddySubscriberCountInBulk(Method(handler.displayBuddySubscriberCountInBulk, middleware), self.get_write_lock()))
self.add_to_processor_map('lookupRoomMembers', _lookupRoomMembers(Method(handler.lookupRoomMembers, middleware), self.get_write_lock()))
self.add_to_processor_map('getFavoriteMidsForChannel', _getFavoriteMidsForChannel(Method(handler.getFavoriteMidsForChannel, middleware), self.get_write_lock()))
self.add_to_processor_map('getAllContactIdsForChannel', _getAllContactIdsForChannel(Method(handler.getAllContactIdsForChannel, middleware), self.get_write_lock()))
self.add_to_processor_map('displayBuddySubscriberCount', _displayBuddySubscriberCount(Method(handler.displayBuddySubscriberCount, middleware), self.get_write_lock()))
self.add_to_processor_map('getProfileForChannel', _getProfileForChannel(Method(handler.getProfileForChannel, middleware), self.get_write_lock()))
self.add_to_processor_map('getUserTickets', _getUserTickets(Method(handler.getUserTickets, middleware), self.get_write_lock()))
self.add_to_processor_map('getOAFriendMids', _getOAFriendMids(Method(handler.getOAFriendMids, middleware), self.get_write_lock()))
self.add_to_processor_map('searchPaidCallUserRate', _searchPaidCallUserRate(Method(handler.searchPaidCallUserRate, middleware), self.get_write_lock()))
self.add_to_processor_map('getJoinedGroupIdsForChannel', _getJoinedGroupIdsForChannel(Method(handler.getJoinedGroupIdsForChannel, middleware), self.get_write_lock()))
self.add_to_processor_map('acquireGroupCallRoute', _acquireGroupCallRoute(Method(handler.acquireGroupCallRoute, middleware), self.get_write_lock()))
self.add_to_processor_map('getUserMidsWhoAddedMe', _getUserMidsWhoAddedMe(Method(handler.getUserMidsWhoAddedMe, middleware), self.get_write_lock()))
self.add_to_processor_map('getIdentityCredential', _getIdentityCredential(Method(handler.getIdentityCredential, middleware), self.get_write_lock()))
self.add_to_processor_map('addOperationForChannel', _addOperationForChannel(Method(handler.addOperationForChannel, middleware), self.get_write_lock()))
self.add_to_processor_map('getSimpleChannelContacts', _getSimpleChannelContacts(Method(handler.getSimpleChannelContacts, middleware), self.get_write_lock()))
self.add_to_processor_map('getUserLastSentMessageTimeStamp', _getUserLastSentMessageTimeStamp(Method(handler.getUserLastSentMessageTimeStamp, middleware), self.get_write_lock()))
class _getUserStatus(FProcessorFunction):
def __init__(self, handler, lock):
super(_getUserStatus, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getUserStatus_args()
args.read(iprot)
iprot.readMessageEnd()
result = getUserStatus_result()
try:
result.success = self._handler([ctx, args.mid])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getUserStatus", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getUserStatus", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getUserStatus', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getUserStatus", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _updateProfileAttributeForChannel(FProcessorFunction):
def __init__(self, handler, lock):
super(_updateProfileAttributeForChannel, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = updateProfileAttributeForChannel_args()
args.read(iprot)
iprot.readMessageEnd()
result = updateProfileAttributeForChannel_result()
try:
self._handler([ctx, args.profileAttribute, args.value])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "updateProfileAttributeForChannel", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "updateProfileAttributeForChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('updateProfileAttributeForChannel', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "updateProfileAttributeForChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _updateExtendedProfileAttribute(FProcessorFunction):
def __init__(self, handler, lock):
super(_updateExtendedProfileAttribute, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = updateExtendedProfileAttribute_args()
args.read(iprot)
iprot.readMessageEnd()
result = updateExtendedProfileAttribute_result()
try:
self._handler([ctx, args.attr, args.extendedProfile])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "updateExtendedProfileAttribute", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "updateExtendedProfileAttribute", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('updateExtendedProfileAttribute', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "updateExtendedProfileAttribute", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getAllSimpleChannelContacts(FProcessorFunction):
def __init__(self, handler, lock):
super(_getAllSimpleChannelContacts, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getAllSimpleChannelContacts_args()
args.read(iprot)
iprot.readMessageEnd()
result = getAllSimpleChannelContacts_result()
try:
result.success = self._handler([ctx, args.statusSticonFallbackDisabled])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getAllSimpleChannelContacts", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getAllSimpleChannelContacts", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getAllSimpleChannelContacts', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getAllSimpleChannelContacts", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getUserIdentities(FProcessorFunction):
def __init__(self, handler, lock):
super(_getUserIdentities, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getUserIdentities_args()
args.read(iprot)
iprot.readMessageEnd()
result = getUserIdentities_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getUserIdentities", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getUserIdentities", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getUserIdentities', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getUserIdentities", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _markPaidCallAd(FProcessorFunction):
def __init__(self, handler, lock):
super(_markPaidCallAd, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = markPaidCallAd_args()
args.read(iprot)
iprot.readMessageEnd()
result = markPaidCallAd_result()
try:
result.success = self._handler([ctx, args.dialedNumber, args.language, args.disableCallerId])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "markPaidCallAd", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "markPaidCallAd", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('markPaidCallAd', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "markPaidCallAd", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _isGroupMember(FProcessorFunction):
def __init__(self, handler, lock):
super(_isGroupMember, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = isGroupMember_args()
args.read(iprot)
iprot.readMessageEnd()
result = isGroupMember_result()
try:
result.success = self._handler([ctx, args.groupId])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "isGroupMember", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "isGroupMember", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('isGroupMember', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "isGroupMember", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getPhoneInfoFromPhoneNumber(FProcessorFunction):
def __init__(self, handler, lock):
super(_getPhoneInfoFromPhoneNumber, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getPhoneInfoFromPhoneNumber_args()
args.read(iprot)
iprot.readMessageEnd()
result = getPhoneInfoFromPhoneNumber_result()
try:
result.success = self._handler([ctx, args.region, args.phoneNumber])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getPhoneInfoFromPhoneNumber", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getPhoneInfoFromPhoneNumber", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getPhoneInfoFromPhoneNumber', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getPhoneInfoFromPhoneNumber", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _redeemPaidCallVoucher(FProcessorFunction):
def __init__(self, handler, lock):
super(_redeemPaidCallVoucher, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = redeemPaidCallVoucher_args()
args.read(iprot)
iprot.readMessageEnd()
result = redeemPaidCallVoucher_result()
try:
result.success = self._handler([ctx, args.serial, args.language])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "redeemPaidCallVoucher", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "redeemPaidCallVoucher", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('redeemPaidCallVoucher', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "redeemPaidCallVoucher", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getPreferredDisplayName(FProcessorFunction):
def __init__(self, handler, lock):
super(_getPreferredDisplayName, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getPreferredDisplayName_args()
args.read(iprot)
iprot.readMessageEnd()
result = getPreferredDisplayName_result()
try:
result.success = self._handler([ctx, args.mids])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getPreferredDisplayName", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getPreferredDisplayName", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getPreferredDisplayName', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getPreferredDisplayName", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getContactsForChannel(FProcessorFunction):
def __init__(self, handler, lock):
super(_getContactsForChannel, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getContactsForChannel_args()
args.read(iprot)
iprot.readMessageEnd()
result = getContactsForChannel_result()
try:
result.success = self._handler([ctx, args.ids])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getContactsForChannel", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getContactsForChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getContactsForChannel', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getContactsForChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getCallCreditProducts(FProcessorFunction):
def __init__(self, handler, lock):
super(_getCallCreditProducts, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getCallCreditProducts_args()
args.read(iprot)
iprot.readMessageEnd()
result = getCallCreditProducts_result()
try:
result.success = self._handler([ctx, args.appStoreCode, args.pgCode, args.country, args.language])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getCallCreditProducts", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getCallCreditProducts", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getCallCreditProducts', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getCallCreditProducts", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getCompactContacts(FProcessorFunction):
def __init__(self, handler, lock):
super(_getCompactContacts, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getCompactContacts_args()
args.read(iprot)
iprot.readMessageEnd()
result = getCompactContacts_result()
try:
result.success = self._handler([ctx, args.lastModifiedTimestamp])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getCompactContacts", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getCompactContacts", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getCompactContacts', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getCompactContacts", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _notifyNotiCenterEvent(FProcessorFunction):
def __init__(self, handler, lock):
super(_notifyNotiCenterEvent, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = notifyNotiCenterEvent_args()
args.read(iprot)
iprot.readMessageEnd()
result = notifyNotiCenterEvent_result()
try:
self._handler([ctx, args.event])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "notifyNotiCenterEvent", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "notifyNotiCenterEvent", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('notifyNotiCenterEvent', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "notifyNotiCenterEvent", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _isInContact(FProcessorFunction):
def __init__(self, handler, lock):
super(_isInContact, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = isInContact_args()
args.read(iprot)
iprot.readMessageEnd()
result = isInContact_result()
try:
result.success = self._handler([ctx, args.mid])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "isInContact", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "isInContact", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('isInContact', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "isInContact", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _lookupGroupMembers(FProcessorFunction):
def __init__(self, handler, lock):
super(_lookupGroupMembers, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = lookupGroupMembers_args()
args.read(iprot)
iprot.readMessageEnd()
result = lookupGroupMembers_result()
try:
result.success = self._handler([ctx, args.groupId, args.mids])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "lookupGroupMembers", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "lookupGroupMembers", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('lookupGroupMembers', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "lookupGroupMembers", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getRoomInformation(FProcessorFunction):
def __init__(self, handler, lock):
super(_getRoomInformation, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getRoomInformation_args()
args.read(iprot)
iprot.readMessageEnd()
result = getRoomInformation_result()
try:
result.success = self._handler([ctx, args.roomMid])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getRoomInformation", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getRoomInformation", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getRoomInformation', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getRoomInformation", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getGroupCall(FProcessorFunction):
def __init__(self, handler, lock):
super(_getGroupCall, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getGroupCall_args()
args.read(iprot)
iprot.readMessageEnd()
result = getGroupCall_result()
try:
result.success = self._handler([ctx, args.chatMid])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getGroupCall", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getGroupCall", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getGroupCall', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getGroupCall", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _isAllowSecondaryDeviceLogin(FProcessorFunction):
def __init__(self, handler, lock):
super(_isAllowSecondaryDeviceLogin, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = isAllowSecondaryDeviceLogin_args()
args.read(iprot)
iprot.readMessageEnd()
result = isAllowSecondaryDeviceLogin_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "isAllowSecondaryDeviceLogin", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "isAllowSecondaryDeviceLogin", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('isAllowSecondaryDeviceLogin', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "isAllowSecondaryDeviceLogin", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getPrimaryClientForChannel(FProcessorFunction):
def __init__(self, handler, lock):
super(_getPrimaryClientForChannel, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getPrimaryClientForChannel_args()
args.read(iprot)
iprot.readMessageEnd()
result = getPrimaryClientForChannel_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getPrimaryClientForChannel", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getPrimaryClientForChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getPrimaryClientForChannel', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getPrimaryClientForChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _createRoomWithBuddy(FProcessorFunction):
def __init__(self, handler, lock):
super(_createRoomWithBuddy, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = createRoomWithBuddy_args()
args.read(iprot)
iprot.readMessageEnd()
result = createRoomWithBuddy_result()
try:
result.success = self._handler([ctx, args.reqSeq, args.buddyMid, args.contactIds])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "createRoomWithBuddy", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "createRoomWithBuddy", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('createRoomWithBuddy', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "createRoomWithBuddy", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getDisplayName(FProcessorFunction):
def __init__(self, handler, lock):
super(_getDisplayName, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getDisplayName_args()
args.read(iprot)
iprot.readMessageEnd()
result = getDisplayName_result()
try:
result.success = self._handler([ctx, args.mid])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getDisplayName", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getDisplayName", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getDisplayName', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getDisplayName", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getPaidCallMetadata(FProcessorFunction):
def __init__(self, handler, lock):
super(_getPaidCallMetadata, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getPaidCallMetadata_args()
args.read(iprot)
iprot.readMessageEnd()
result = getPaidCallMetadata_result()
try:
result.success = self._handler([ctx, args.language])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getPaidCallMetadata", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getPaidCallMetadata", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getPaidCallMetadata', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getPaidCallMetadata", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getMid(FProcessorFunction):
def __init__(self, handler, lock):
super(_getMid, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getMid_args()
args.read(iprot)
iprot.readMessageEnd()
result = getMid_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getMid", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getMid", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getMid', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getMid", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getUserCountryForBilling(FProcessorFunction):
def __init__(self, handler, lock):
super(_getUserCountryForBilling, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getUserCountryForBilling_args()
args.read(iprot)
iprot.readMessageEnd()
result = getUserCountryForBilling_result()
try:
result.success = self._handler([ctx, args.country, args.remoteIp])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getUserCountryForBilling", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getUserCountryForBilling", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getUserCountryForBilling', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getUserCountryForBilling", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getFavoriteGroupIdsForChannel(FProcessorFunction):
def __init__(self, handler, lock):
super(_getFavoriteGroupIdsForChannel, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getFavoriteGroupIdsForChannel_args()
args.read(iprot)
iprot.readMessageEnd()
result = getFavoriteGroupIdsForChannel_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getFavoriteGroupIdsForChannel", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getFavoriteGroupIdsForChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getFavoriteGroupIdsForChannel', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getFavoriteGroupIdsForChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getPaidCallHistory(FProcessorFunction):
def __init__(self, handler, lock):
super(_getPaidCallHistory, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getPaidCallHistory_args()
args.read(iprot)
iprot.readMessageEnd()
result = getPaidCallHistory_result()
try:
result.success = self._handler([ctx, args.start, args.size, args.language])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getPaidCallHistory", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getPaidCallHistory", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getPaidCallHistory', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getPaidCallHistory", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _sendPinCodeOperation(FProcessorFunction):
def __init__(self, handler, lock):
super(_sendPinCodeOperation, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = sendPinCodeOperation_args()
args.read(iprot)
iprot.readMessageEnd()
result = sendPinCodeOperation_result()
try:
self._handler([ctx, args.verifier])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "sendPinCodeOperation", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "sendPinCodeOperation", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('sendPinCodeOperation', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "sendPinCodeOperation", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _inviteIntoGroupCall(FProcessorFunction):
def __init__(self, handler, lock):
super(_inviteIntoGroupCall, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = inviteIntoGroupCall_args()
args.read(iprot)
iprot.readMessageEnd()
result = inviteIntoGroupCall_result()
try:
self._handler([ctx, args.chatMid, args.memberMids, args.mediaType])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "inviteIntoGroupCall", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "inviteIntoGroupCall", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('inviteIntoGroupCall', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "inviteIntoGroupCall", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getFriendMids(FProcessorFunction):
def __init__(self, handler, lock):
super(_getFriendMids, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getFriendMids_args()
args.read(iprot)
iprot.readMessageEnd()
result = getFriendMids_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getFriendMids", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getFriendMids", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getFriendMids', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getFriendMids", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getMetaProfile(FProcessorFunction):
def __init__(self, handler, lock):
super(_getMetaProfile, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getMetaProfile_args()
args.read(iprot)
iprot.readMessageEnd()
result = getMetaProfile_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getMetaProfile", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getMetaProfile", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getMetaProfile', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getMetaProfile", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _sendMessageForChannel(FProcessorFunction):
def __init__(self, handler, lock):
super(_sendMessageForChannel, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = sendMessageForChannel_args()
args.read(iprot)
iprot.readMessageEnd()
result = sendMessageForChannel_result()
try:
result.success = self._handler([ctx, args.message])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "sendMessageForChannel", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "sendMessageForChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('sendMessageForChannel', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "sendMessageForChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _activeBuddySubscriberCount(FProcessorFunction):
def __init__(self, handler, lock):
super(_activeBuddySubscriberCount, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = activeBuddySubscriberCount_args()
args.read(iprot)
iprot.readMessageEnd()
result = activeBuddySubscriberCount_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "activeBuddySubscriberCount", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "activeBuddySubscriberCount", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('activeBuddySubscriberCount', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "activeBuddySubscriberCount", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getCallCreditPurchaseHistory(FProcessorFunction):
def __init__(self, handler, lock):
super(_getCallCreditPurchaseHistory, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getCallCreditPurchaseHistory_args()
args.read(iprot)
iprot.readMessageEnd()
result = getCallCreditPurchaseHistory_result()
try:
result.success = self._handler([ctx, args.request])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getCallCreditPurchaseHistory", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getCallCreditPurchaseHistory", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getCallCreditPurchaseHistory', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getCallCreditPurchaseHistory", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _isRoomMember(FProcessorFunction):
def __init__(self, handler, lock):
super(_isRoomMember, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = isRoomMember_args()
args.read(iprot)
iprot.readMessageEnd()
result = isRoomMember_result()
try:
result.success = self._handler([ctx, args.roomId])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "isRoomMember", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "isRoomMember", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('isRoomMember', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "isRoomMember", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _sendSystemOAMessage(FProcessorFunction):
def __init__(self, handler, lock):
super(_sendSystemOAMessage, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = sendSystemOAMessage_args()
args.read(iprot)
iprot.readMessageEnd()
result = sendSystemOAMessage_result()
try:
result.success = self._handler([ctx, args.message])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "sendSystemOAMessage", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "sendSystemOAMessage", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('sendSystemOAMessage', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "sendSystemOAMessage", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _acquirePaidCallRoute(FProcessorFunction):
def __init__(self, handler, lock):
super(_acquirePaidCallRoute, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = acquirePaidCallRoute_args()
args.read(iprot)
iprot.readMessageEnd()
result = acquirePaidCallRoute_result()
try:
result.success = self._handler([ctx, args.paidCallType, args.dialedNumber, args.language, args.networkCode, args.disableCallerId, args.referer, args.adSessionId])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "acquirePaidCallRoute", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "acquirePaidCallRoute", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('acquirePaidCallRoute', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "acquirePaidCallRoute", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getGroupsForChannel(FProcessorFunction):
def __init__(self, handler, lock):
super(_getGroupsForChannel, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getGroupsForChannel_args()
args.read(iprot)
iprot.readMessageEnd()
result = getGroupsForChannel_result()
try:
result.success = self._handler([ctx, args.groupIds])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getGroupsForChannel", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getGroupsForChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getGroupsForChannel', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getGroupsForChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getUserCreateTime(FProcessorFunction):
def __init__(self, handler, lock):
super(_getUserCreateTime, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getUserCreateTime_args()
args.read(iprot)
iprot.readMessageEnd()
result = getUserCreateTime_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getUserCreateTime", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getUserCreateTime", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getUserCreateTime', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getUserCreateTime", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _registerChannelCP(FProcessorFunction):
def __init__(self, handler, lock):
super(_registerChannelCP, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = registerChannelCP_args()
args.read(iprot)
iprot.readMessageEnd()
result = registerChannelCP_result()
try:
result.success = self._handler([ctx, args.cpId, args.registerPassword])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "registerChannelCP", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "registerChannelCP", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('registerChannelCP', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "registerChannelCP", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _reserveCallCreditPurchase(FProcessorFunction):
def __init__(self, handler, lock):
super(_reserveCallCreditPurchase, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = reserveCallCreditPurchase_args()
args.read(iprot)
iprot.readMessageEnd()
result = reserveCallCreditPurchase_result()
try:
result.success = self._handler([ctx, args.request])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "reserveCallCreditPurchase", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "reserveCallCreditPurchase", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('reserveCallCreditPurchase', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "reserveCallCreditPurchase", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _acquirePaidCallCurrencyExchangeRate(FProcessorFunction):
def __init__(self, handler, lock):
super(_acquirePaidCallCurrencyExchangeRate, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = acquirePaidCallCurrencyExchangeRate_args()
args.read(iprot)
iprot.readMessageEnd()
result = acquirePaidCallCurrencyExchangeRate_result()
try:
result.success = self._handler([ctx, args.language])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "acquirePaidCallCurrencyExchangeRate", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "acquirePaidCallCurrencyExchangeRate", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('acquirePaidCallCurrencyExchangeRate', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "acquirePaidCallCurrencyExchangeRate", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getRoomMemberMidsForAppPlatform(FProcessorFunction):
def __init__(self, handler, lock):
super(_getRoomMemberMidsForAppPlatform, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getRoomMemberMidsForAppPlatform_args()
args.read(iprot)
iprot.readMessageEnd()
result = getRoomMemberMidsForAppPlatform_result()
try:
result.success = self._handler([ctx, args.roomId])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getRoomMemberMidsForAppPlatform", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getRoomMemberMidsForAppPlatform", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getRoomMemberMidsForAppPlatform', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getRoomMemberMidsForAppPlatform", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getPaidCallBalanceList(FProcessorFunction):
def __init__(self, handler, lock):
super(_getPaidCallBalanceList, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getPaidCallBalanceList_args()
args.read(iprot)
iprot.readMessageEnd()
result = getPaidCallBalanceList_result()
try:
result.success = self._handler([ctx, args.language])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getPaidCallBalanceList", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getPaidCallBalanceList", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getPaidCallBalanceList', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getPaidCallBalanceList", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getPersonalInfos(FProcessorFunction):
def __init__(self, handler, lock):
super(_getPersonalInfos, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getPersonalInfos_args()
args.read(iprot)
iprot.readMessageEnd()
result = getPersonalInfos_result()
try:
result.success = self._handler([ctx, args.requiredPersonalInfos])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getPersonalInfos", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getPersonalInfos", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getPersonalInfos', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getPersonalInfos", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getPrimaryClientsForChannel(FProcessorFunction):
def __init__(self, handler, lock):
super(_getPrimaryClientsForChannel, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getPrimaryClientsForChannel_args()
args.read(iprot)
iprot.readMessageEnd()
result = getPrimaryClientsForChannel_result()
try:
result.success = self._handler([ctx, args.userMids])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getPrimaryClientsForChannel", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getPrimaryClientsForChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getPrimaryClientsForChannel', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getPrimaryClientsForChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _addBuddyToContact(FProcessorFunction):
def __init__(self, handler, lock):
super(_addBuddyToContact, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = addBuddyToContact_args()
args.read(iprot)
iprot.readMessageEnd()
result = addBuddyToContact_result()
try:
result.success = self._handler([ctx, args.buddyMid])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "addBuddyToContact", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "addBuddyToContact", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('addBuddyToContact', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "addBuddyToContact", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getGroupMemberMidsForAppPlatform(FProcessorFunction):
def __init__(self, handler, lock):
super(_getGroupMemberMidsForAppPlatform, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getGroupMemberMidsForAppPlatform_args()
args.read(iprot)
iprot.readMessageEnd()
result = getGroupMemberMidsForAppPlatform_result()
try:
result.success = self._handler([ctx, args.groupId])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getGroupMemberMidsForAppPlatform", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getGroupMemberMidsForAppPlatform", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getGroupMemberMidsForAppPlatform', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getGroupMemberMidsForAppPlatform", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getUserLanguage(FProcessorFunction):
def __init__(self, handler, lock):
super(_getUserLanguage, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getUserLanguage_args()
args.read(iprot)
iprot.readMessageEnd()
result = getUserLanguage_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getUserLanguage", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getUserLanguage", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getUserLanguage', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getUserLanguage", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _lookupPaidCall(FProcessorFunction):
def __init__(self, handler, lock):
super(_lookupPaidCall, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = lookupPaidCall_args()
args.read(iprot)
iprot.readMessageEnd()
result = lookupPaidCall_result()
try:
result.success = self._handler([ctx, args.dialedNumber, args.language, args.referer])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "lookupPaidCall", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "lookupPaidCall", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('lookupPaidCall', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "lookupPaidCall", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getExtendedProfile(FProcessorFunction):
def __init__(self, handler, lock):
super(_getExtendedProfile, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getExtendedProfile_args()
args.read(iprot)
iprot.readMessageEnd()
result = getExtendedProfile_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getExtendedProfile", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getExtendedProfile", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getExtendedProfile', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getExtendedProfile", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getReverseCompactContacts(FProcessorFunction):
def __init__(self, handler, lock):
super(_getReverseCompactContacts, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getReverseCompactContacts_args()
args.read(iprot)
iprot.readMessageEnd()
result = getReverseCompactContacts_result()
try:
result.success = self._handler([ctx, args.ids])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getReverseCompactContacts", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getReverseCompactContacts", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getReverseCompactContacts', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getReverseCompactContacts", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getPaidCallAdStatus(FProcessorFunction):
def __init__(self, handler, lock):
super(_getPaidCallAdStatus, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getPaidCallAdStatus_args()
args.read(iprot)
iprot.readMessageEnd()
result = getPaidCallAdStatus_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getPaidCallAdStatus", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getPaidCallAdStatus", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getPaidCallAdStatus', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getPaidCallAdStatus", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _findContactByUseridWithoutAbuseBlockForChannel(FProcessorFunction):
def __init__(self, handler, lock):
super(_findContactByUseridWithoutAbuseBlockForChannel, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = findContactByUseridWithoutAbuseBlockForChannel_args()
args.read(iprot)
iprot.readMessageEnd()
result = findContactByUseridWithoutAbuseBlockForChannel_result()
try:
result.success = self._handler([ctx, args.userid])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "findContactByUseridWithoutAbuseBlockForChannel", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "findContactByUseridWithoutAbuseBlockForChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('findContactByUseridWithoutAbuseBlockForChannel', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "findContactByUseridWithoutAbuseBlockForChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getGroupMemberMids(FProcessorFunction):
def __init__(self, handler, lock):
super(_getGroupMemberMids, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getGroupMemberMids_args()
args.read(iprot)
iprot.readMessageEnd()
result = getGroupMemberMids_result()
try:
result.success = self._handler([ctx, args.groupId])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getGroupMemberMids", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getGroupMemberMids", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getGroupMemberMids', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getGroupMemberMids", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _sendMessageWithoutRelationship(FProcessorFunction):
def __init__(self, handler, lock):
super(_sendMessageWithoutRelationship, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = sendMessageWithoutRelationship_args()
args.read(iprot)
iprot.readMessageEnd()
result = sendMessageWithoutRelationship_result()
try:
result.success = self._handler([ctx, args.message])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "sendMessageWithoutRelationship", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "sendMessageWithoutRelationship", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('sendMessageWithoutRelationship', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "sendMessageWithoutRelationship", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _displayBuddySubscriberCountInBulk(FProcessorFunction):
def __init__(self, handler, lock):
super(_displayBuddySubscriberCountInBulk, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = displayBuddySubscriberCountInBulk_args()
args.read(iprot)
iprot.readMessageEnd()
result = displayBuddySubscriberCountInBulk_result()
try:
result.success = self._handler([ctx, args.mids])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "displayBuddySubscriberCountInBulk", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "displayBuddySubscriberCountInBulk", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('displayBuddySubscriberCountInBulk', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "displayBuddySubscriberCountInBulk", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _lookupRoomMembers(FProcessorFunction):
def __init__(self, handler, lock):
super(_lookupRoomMembers, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = lookupRoomMembers_args()
args.read(iprot)
iprot.readMessageEnd()
result = lookupRoomMembers_result()
try:
result.success = self._handler([ctx, args.roomId, args.mids])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "lookupRoomMembers", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "lookupRoomMembers", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('lookupRoomMembers', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "lookupRoomMembers", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getFavoriteMidsForChannel(FProcessorFunction):
def __init__(self, handler, lock):
super(_getFavoriteMidsForChannel, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getFavoriteMidsForChannel_args()
args.read(iprot)
iprot.readMessageEnd()
result = getFavoriteMidsForChannel_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getFavoriteMidsForChannel", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getFavoriteMidsForChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getFavoriteMidsForChannel', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getFavoriteMidsForChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getAllContactIdsForChannel(FProcessorFunction):
def __init__(self, handler, lock):
super(_getAllContactIdsForChannel, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getAllContactIdsForChannel_args()
args.read(iprot)
iprot.readMessageEnd()
result = getAllContactIdsForChannel_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getAllContactIdsForChannel", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getAllContactIdsForChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getAllContactIdsForChannel', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getAllContactIdsForChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _displayBuddySubscriberCount(FProcessorFunction):
def __init__(self, handler, lock):
super(_displayBuddySubscriberCount, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = displayBuddySubscriberCount_args()
args.read(iprot)
iprot.readMessageEnd()
result = displayBuddySubscriberCount_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "displayBuddySubscriberCount", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "displayBuddySubscriberCount", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('displayBuddySubscriberCount', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "displayBuddySubscriberCount", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getProfileForChannel(FProcessorFunction):
def __init__(self, handler, lock):
super(_getProfileForChannel, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getProfileForChannel_args()
args.read(iprot)
iprot.readMessageEnd()
result = getProfileForChannel_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getProfileForChannel", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getProfileForChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getProfileForChannel', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getProfileForChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getUserTickets(FProcessorFunction):
def __init__(self, handler, lock):
super(_getUserTickets, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getUserTickets_args()
args.read(iprot)
iprot.readMessageEnd()
result = getUserTickets_result()
try:
result.success = self._handler([ctx, args.userMids])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getUserTickets", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getUserTickets", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getUserTickets', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getUserTickets", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getOAFriendMids(FProcessorFunction):
def __init__(self, handler, lock):
super(_getOAFriendMids, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getOAFriendMids_args()
args.read(iprot)
iprot.readMessageEnd()
result = getOAFriendMids_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getOAFriendMids", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getOAFriendMids", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getOAFriendMids', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getOAFriendMids", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _searchPaidCallUserRate(FProcessorFunction):
def __init__(self, handler, lock):
super(_searchPaidCallUserRate, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = searchPaidCallUserRate_args()
args.read(iprot)
iprot.readMessageEnd()
result = searchPaidCallUserRate_result()
try:
result.success = self._handler([ctx, args.countryCode, args.language])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "searchPaidCallUserRate", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "searchPaidCallUserRate", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('searchPaidCallUserRate', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "searchPaidCallUserRate", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getJoinedGroupIdsForChannel(FProcessorFunction):
def __init__(self, handler, lock):
super(_getJoinedGroupIdsForChannel, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getJoinedGroupIdsForChannel_args()
args.read(iprot)
iprot.readMessageEnd()
result = getJoinedGroupIdsForChannel_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getJoinedGroupIdsForChannel", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getJoinedGroupIdsForChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getJoinedGroupIdsForChannel', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getJoinedGroupIdsForChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _acquireGroupCallRoute(FProcessorFunction):
def __init__(self, handler, lock):
super(_acquireGroupCallRoute, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = acquireGroupCallRoute_args()
args.read(iprot)
iprot.readMessageEnd()
result = acquireGroupCallRoute_result()
try:
result.success = self._handler([ctx, args.chatMid, args.mediaType])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "acquireGroupCallRoute", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "acquireGroupCallRoute", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('acquireGroupCallRoute', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "acquireGroupCallRoute", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getUserMidsWhoAddedMe(FProcessorFunction):
def __init__(self, handler, lock):
super(_getUserMidsWhoAddedMe, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getUserMidsWhoAddedMe_args()
args.read(iprot)
iprot.readMessageEnd()
result = getUserMidsWhoAddedMe_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getUserMidsWhoAddedMe", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getUserMidsWhoAddedMe", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getUserMidsWhoAddedMe', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getUserMidsWhoAddedMe", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getIdentityCredential(FProcessorFunction):
def __init__(self, handler, lock):
super(_getIdentityCredential, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getIdentityCredential_args()
args.read(iprot)
iprot.readMessageEnd()
result = getIdentityCredential_result()
try:
result.success = self._handler([ctx])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getIdentityCredential", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getIdentityCredential", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getIdentityCredential', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getIdentityCredential", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _addOperationForChannel(FProcessorFunction):
def __init__(self, handler, lock):
super(_addOperationForChannel, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = addOperationForChannel_args()
args.read(iprot)
iprot.readMessageEnd()
result = addOperationForChannel_result()
try:
self._handler([ctx, args.opType, args.param1, args.param2, args.param3])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "addOperationForChannel", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "addOperationForChannel", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('addOperationForChannel', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "addOperationForChannel", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getSimpleChannelContacts(FProcessorFunction):
def __init__(self, handler, lock):
super(_getSimpleChannelContacts, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getSimpleChannelContacts_args()
args.read(iprot)
iprot.readMessageEnd()
result = getSimpleChannelContacts_result()
try:
result.success = self._handler([ctx, args.ids, args.statusSticonFallbackDisabled])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getSimpleChannelContacts", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getSimpleChannelContacts", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getSimpleChannelContacts', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getSimpleChannelContacts", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
class _getUserLastSentMessageTimeStamp(FProcessorFunction):
def __init__(self, handler, lock):
super(_getUserLastSentMessageTimeStamp, self).__init__(handler, lock)
def process(self, ctx, iprot, oprot):
args = getUserLastSentMessageTimeStamp_args()
args.read(iprot)
iprot.readMessageEnd()
result = getUserLastSentMessageTimeStamp_result()
try:
result.success = self._handler([ctx, args.mid])
except TalkException as e:
result.e = e
except TApplicationException as ex:
with self._lock:
_write_application_exception(ctx, oprot, "getUserLastSentMessageTimeStamp", exception=ex)
return
except Exception as e:
with self._lock:
_write_application_exception(ctx, oprot, "getUserLastSentMessageTimeStamp", ex_code=TApplicationExceptionType.INTERNAL_ERROR, message=e.message)
raise
with self._lock:
try:
oprot.write_response_headers(ctx)
oprot.writeMessageBegin('getUserLastSentMessageTimeStamp', TMessageType.REPLY, 0)
result.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
except TTransportException as e:
# catch a request too large error because the TMemoryOutputBuffer always throws that if too much data is written
if e.type == TTransportExceptionType.REQUEST_TOO_LARGE:
raise _write_application_exception(ctx, oprot, "getUserLastSentMessageTimeStamp", ex_code=TApplicationExceptionType.RESPONSE_TOO_LARGE, message=e.args[0])
else:
raise e
def _write_application_exception(ctx, oprot, method, ex_code=None, message=None, exception=None):
if exception is not None:
x = exception
else:
x = TApplicationException(type=ex_code, message=message)
oprot.write_response_headers(ctx)
oprot.writeMessageBegin(method, TMessageType.EXCEPTION, 0)
x.write(oprot)
oprot.writeMessageEnd()
oprot.get_transport().flush()
return x
class getUserStatus_args(object):
"""
Attributes:
- mid
"""
def __init__(self, mid=None):
self.mid = mid
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.mid = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserStatus_args')
if self.mid is not None:
oprot.writeFieldBegin('mid', TType.STRING, 1)
oprot.writeString(self.mid)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.mid))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserStatus_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.I32:
self.success = UserStatus(iprot.readI32())
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserStatus_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.I32, 0)
oprot.writeI32(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class updateProfileAttributeForChannel_args(object):
"""
Attributes:
- profileAttribute
- value
"""
def __init__(self, profileAttribute=None, value=None):
self.profileAttribute = profileAttribute
self.value = value
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.I32:
self.profileAttribute = ProfileAttribute(iprot.readI32())
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.value = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('updateProfileAttributeForChannel_args')
if self.profileAttribute is not None:
oprot.writeFieldBegin('profileAttribute', TType.I32, 2)
oprot.writeI32(self.profileAttribute)
oprot.writeFieldEnd()
if self.value is not None:
oprot.writeFieldBegin('value', TType.STRING, 3)
oprot.writeString(self.value)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.profileAttribute))
value = (value * 31) ^ hash(make_hashable(self.value))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class updateProfileAttributeForChannel_result(object):
"""
Attributes:
- e
"""
def __init__(self, e=None):
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('updateProfileAttributeForChannel_result')
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class updateExtendedProfileAttribute_args(object):
"""
Attributes:
- attr
- extendedProfile
"""
def __init__(self, attr=None, extendedProfile=None):
self.attr = attr
self.extendedProfile = extendedProfile
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I32:
self.attr = ExtendedProfileAttribute(iprot.readI32())
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.extendedProfile = ExtendedProfile()
self.extendedProfile.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('updateExtendedProfileAttribute_args')
if self.attr is not None:
oprot.writeFieldBegin('attr', TType.I32, 1)
oprot.writeI32(self.attr)
oprot.writeFieldEnd()
if self.extendedProfile is not None:
oprot.writeFieldBegin('extendedProfile', TType.STRUCT, 2)
self.extendedProfile.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.attr))
value = (value * 31) ^ hash(make_hashable(self.extendedProfile))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class updateExtendedProfileAttribute_result(object):
"""
Attributes:
- e
"""
def __init__(self, e=None):
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('updateExtendedProfileAttribute_result')
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getAllSimpleChannelContacts_args(object):
"""
Attributes:
- statusSticonFallbackDisabled
"""
def __init__(self, statusSticonFallbackDisabled=None):
self.statusSticonFallbackDisabled = statusSticonFallbackDisabled
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.BOOL:
self.statusSticonFallbackDisabled = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getAllSimpleChannelContacts_args')
if self.statusSticonFallbackDisabled is not None:
oprot.writeFieldBegin('statusSticonFallbackDisabled', TType.BOOL, 1)
oprot.writeBool(self.statusSticonFallbackDisabled)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.statusSticonFallbackDisabled))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getAllSimpleChannelContacts_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem962) = iprot.readListBegin()
for _ in range(elem962):
elem963 = SimpleChannelContact()
elem963.read(iprot)
self.success.append(elem963)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getAllSimpleChannelContacts_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
for elem964 in self.success:
elem964.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserIdentities_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserIdentities_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserIdentities_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.MAP:
self.success = {}
(_, _, elem965) = iprot.readMapBegin()
for _ in range(elem965):
elem967 = RegistrationType(iprot.readI32())
elem966 = iprot.readString()
self.success[elem967] = elem966
iprot.readMapEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserIdentities_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.I32, TType.STRING, len(self.success))
for elem969, elem968 in self.success.items():
oprot.writeI32(elem969)
oprot.writeString(elem968)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class markPaidCallAd_args(object):
"""
Attributes:
- dialedNumber
- language
- disableCallerId
"""
def __init__(self, dialedNumber=None, language=None, disableCallerId=None):
self.dialedNumber = dialedNumber
self.language = language
self.disableCallerId = disableCallerId
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.dialedNumber = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.language = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.BOOL:
self.disableCallerId = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('markPaidCallAd_args')
if self.dialedNumber is not None:
oprot.writeFieldBegin('dialedNumber', TType.STRING, 2)
oprot.writeString(self.dialedNumber)
oprot.writeFieldEnd()
if self.language is not None:
oprot.writeFieldBegin('language', TType.STRING, 3)
oprot.writeString(self.language)
oprot.writeFieldEnd()
if self.disableCallerId is not None:
oprot.writeFieldBegin('disableCallerId', TType.BOOL, 4)
oprot.writeBool(self.disableCallerId)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.dialedNumber))
value = (value * 31) ^ hash(make_hashable(self.language))
value = (value * 31) ^ hash(make_hashable(self.disableCallerId))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class markPaidCallAd_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = PaidCallDialing()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('markPaidCallAd_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class isGroupMember_args(object):
"""
Attributes:
- groupId
"""
def __init__(self, groupId=None):
self.groupId = groupId
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.groupId = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('isGroupMember_args')
if self.groupId is not None:
oprot.writeFieldBegin('groupId', TType.STRING, 1)
oprot.writeString(self.groupId)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.groupId))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class isGroupMember_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.BOOL:
self.success = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('isGroupMember_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.BOOL, 0)
oprot.writeBool(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPhoneInfoFromPhoneNumber_args(object):
"""
Attributes:
- region
- phoneNumber
"""
def __init__(self, region=None, phoneNumber=None):
self.region = region
self.phoneNumber = phoneNumber
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.region = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.phoneNumber = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPhoneInfoFromPhoneNumber_args')
if self.region is not None:
oprot.writeFieldBegin('region', TType.STRING, 1)
oprot.writeString(self.region)
oprot.writeFieldEnd()
if self.phoneNumber is not None:
oprot.writeFieldBegin('phoneNumber', TType.STRING, 2)
oprot.writeString(self.phoneNumber)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.region))
value = (value * 31) ^ hash(make_hashable(self.phoneNumber))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPhoneInfoFromPhoneNumber_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = PhoneInfoForChannel()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPhoneInfoFromPhoneNumber_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class redeemPaidCallVoucher_args(object):
"""
Attributes:
- serial
- language
"""
def __init__(self, serial=None, language=None):
self.serial = serial
self.language = language
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.serial = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.language = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('redeemPaidCallVoucher_args')
if self.serial is not None:
oprot.writeFieldBegin('serial', TType.STRING, 2)
oprot.writeString(self.serial)
oprot.writeFieldEnd()
if self.language is not None:
oprot.writeFieldBegin('language', TType.STRING, 3)
oprot.writeString(self.language)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.serial))
value = (value * 31) ^ hash(make_hashable(self.language))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class redeemPaidCallVoucher_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = PaidCallRedeemResult()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('redeemPaidCallVoucher_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPreferredDisplayName_args(object):
"""
Attributes:
- mids
"""
def __init__(self, mids=None):
self.mids = mids
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.mids = []
(_, elem970) = iprot.readListBegin()
for _ in range(elem970):
elem971 = iprot.readString()
self.mids.append(elem971)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPreferredDisplayName_args')
if self.mids is not None:
oprot.writeFieldBegin('mids', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.mids))
for elem972 in self.mids:
oprot.writeString(elem972)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.mids))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPreferredDisplayName_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.MAP:
self.success = {}
(_, _, elem973) = iprot.readMapBegin()
for _ in range(elem973):
elem975 = iprot.readString()
elem974 = iprot.readString()
self.success[elem975] = elem974
iprot.readMapEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPreferredDisplayName_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
for elem977, elem976 in self.success.items():
oprot.writeString(elem977)
oprot.writeString(elem976)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getContactsForChannel_args(object):
"""
Attributes:
- ids
"""
def __init__(self, ids=None):
self.ids = ids
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.LIST:
self.ids = []
(_, elem978) = iprot.readListBegin()
for _ in range(elem978):
elem979 = iprot.readString()
self.ids.append(elem979)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getContactsForChannel_args')
if self.ids is not None:
oprot.writeFieldBegin('ids', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.ids))
for elem980 in self.ids:
oprot.writeString(elem980)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.ids))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getContactsForChannel_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem981) = iprot.readListBegin()
for _ in range(elem981):
elem982 = Contact()
elem982.read(iprot)
self.success.append(elem982)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getContactsForChannel_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
for elem983 in self.success:
elem983.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getCallCreditProducts_args(object):
"""
Attributes:
- appStoreCode
- pgCode
- country
- language
"""
def __init__(self, appStoreCode=None, pgCode=None, country=None, language=None):
self.appStoreCode = appStoreCode
self.pgCode = pgCode
self.country = country
self.language = language
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.I32:
self.appStoreCode = PaymentType(iprot.readI32())
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I32:
self.pgCode = PaymentPgType(iprot.readI32())
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.STRING:
self.country = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.STRING:
self.language = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getCallCreditProducts_args')
if self.appStoreCode is not None:
oprot.writeFieldBegin('appStoreCode', TType.I32, 2)
oprot.writeI32(self.appStoreCode)
oprot.writeFieldEnd()
if self.pgCode is not None:
oprot.writeFieldBegin('pgCode', TType.I32, 3)
oprot.writeI32(self.pgCode)
oprot.writeFieldEnd()
if self.country is not None:
oprot.writeFieldBegin('country', TType.STRING, 4)
oprot.writeString(self.country)
oprot.writeFieldEnd()
if self.language is not None:
oprot.writeFieldBegin('language', TType.STRING, 5)
oprot.writeString(self.language)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.appStoreCode))
value = (value * 31) ^ hash(make_hashable(self.pgCode))
value = (value * 31) ^ hash(make_hashable(self.country))
value = (value * 31) ^ hash(make_hashable(self.language))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getCallCreditProducts_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem984) = iprot.readListBegin()
for _ in range(elem984):
elem985 = CoinProductItem()
elem985.read(iprot)
self.success.append(elem985)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getCallCreditProducts_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
for elem986 in self.success:
elem986.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getCompactContacts_args(object):
"""
Attributes:
- lastModifiedTimestamp
"""
def __init__(self, lastModifiedTimestamp=None):
self.lastModifiedTimestamp = lastModifiedTimestamp
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.I64:
self.lastModifiedTimestamp = iprot.readI64()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getCompactContacts_args')
if self.lastModifiedTimestamp is not None:
oprot.writeFieldBegin('lastModifiedTimestamp', TType.I64, 2)
oprot.writeI64(self.lastModifiedTimestamp)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.lastModifiedTimestamp))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getCompactContacts_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem987) = iprot.readListBegin()
for _ in range(elem987):
elem988 = CompactContact()
elem988.read(iprot)
self.success.append(elem988)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getCompactContacts_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
for elem989 in self.success:
elem989.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class notifyNotiCenterEvent_args(object):
"""
Attributes:
- event
"""
def __init__(self, event=None):
self.event = event
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.event = NotiCenterEventData()
self.event.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('notifyNotiCenterEvent_args')
if self.event is not None:
oprot.writeFieldBegin('event', TType.STRUCT, 1)
self.event.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.event))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class notifyNotiCenterEvent_result(object):
"""
Attributes:
- e
"""
def __init__(self, e=None):
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('notifyNotiCenterEvent_result')
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class isInContact_args(object):
"""
Attributes:
- mid
"""
def __init__(self, mid=None):
self.mid = mid
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.mid = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('isInContact_args')
if self.mid is not None:
oprot.writeFieldBegin('mid', TType.STRING, 2)
oprot.writeString(self.mid)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.mid))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class isInContact_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.BOOL:
self.success = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('isInContact_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.BOOL, 0)
oprot.writeBool(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class lookupGroupMembers_args(object):
"""
Attributes:
- groupId
- mids
"""
def __init__(self, groupId=None, mids=None):
self.groupId = groupId
self.mids = mids
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.groupId = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.mids = []
(_, elem990) = iprot.readListBegin()
for _ in range(elem990):
elem991 = iprot.readString()
self.mids.append(elem991)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('lookupGroupMembers_args')
if self.groupId is not None:
oprot.writeFieldBegin('groupId', TType.STRING, 1)
oprot.writeString(self.groupId)
oprot.writeFieldEnd()
if self.mids is not None:
oprot.writeFieldBegin('mids', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.mids))
for elem992 in self.mids:
oprot.writeString(elem992)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.groupId))
value = (value * 31) ^ hash(make_hashable(self.mids))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class lookupGroupMembers_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem993) = iprot.readListBegin()
for _ in range(elem993):
elem994 = SimpleChannelContact()
elem994.read(iprot)
self.success.append(elem994)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('lookupGroupMembers_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
for elem995 in self.success:
elem995.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getRoomInformation_args(object):
"""
Attributes:
- roomMid
"""
def __init__(self, roomMid=None):
self.roomMid = roomMid
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.roomMid = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getRoomInformation_args')
if self.roomMid is not None:
oprot.writeFieldBegin('roomMid', TType.STRING, 1)
oprot.writeString(self.roomMid)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.roomMid))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getRoomInformation_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = Room()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getRoomInformation_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getGroupCall_args(object):
"""
Attributes:
- chatMid
"""
def __init__(self, chatMid=None):
self.chatMid = chatMid
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.chatMid = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getGroupCall_args')
if self.chatMid is not None:
oprot.writeFieldBegin('chatMid', TType.STRING, 2)
oprot.writeString(self.chatMid)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.chatMid))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getGroupCall_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = GroupCall()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getGroupCall_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class isAllowSecondaryDeviceLogin_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('isAllowSecondaryDeviceLogin_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class isAllowSecondaryDeviceLogin_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.BOOL:
self.success = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('isAllowSecondaryDeviceLogin_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.BOOL, 0)
oprot.writeBool(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPrimaryClientForChannel_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPrimaryClientForChannel_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPrimaryClientForChannel_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = SimpleChannelClient()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPrimaryClientForChannel_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class createRoomWithBuddy_args(object):
"""
Attributes:
- reqSeq
- buddyMid
- contactIds
"""
def __init__(self, reqSeq=None, buddyMid=None, contactIds=None):
self.reqSeq = reqSeq
self.buddyMid = buddyMid
self.contactIds = contactIds
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I32:
self.reqSeq = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.buddyMid = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.contactIds = []
(_, elem996) = iprot.readListBegin()
for _ in range(elem996):
elem997 = iprot.readString()
self.contactIds.append(elem997)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('createRoomWithBuddy_args')
if self.reqSeq is not None:
oprot.writeFieldBegin('reqSeq', TType.I32, 1)
oprot.writeI32(self.reqSeq)
oprot.writeFieldEnd()
if self.buddyMid is not None:
oprot.writeFieldBegin('buddyMid', TType.STRING, 2)
oprot.writeString(self.buddyMid)
oprot.writeFieldEnd()
if self.contactIds is not None:
oprot.writeFieldBegin('contactIds', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.contactIds))
for elem998 in self.contactIds:
oprot.writeString(elem998)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.reqSeq))
value = (value * 31) ^ hash(make_hashable(self.buddyMid))
value = (value * 31) ^ hash(make_hashable(self.contactIds))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class createRoomWithBuddy_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = Room()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('createRoomWithBuddy_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getDisplayName_args(object):
"""
Attributes:
- mid
"""
def __init__(self, mid=None):
self.mid = mid
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.mid = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getDisplayName_args')
if self.mid is not None:
oprot.writeFieldBegin('mid', TType.STRING, 2)
oprot.writeString(self.mid)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.mid))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getDisplayName_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRING:
self.success = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getDisplayName_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRING, 0)
oprot.writeString(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPaidCallMetadata_args(object):
"""
Attributes:
- language
"""
def __init__(self, language=None):
self.language = language
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.language = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPaidCallMetadata_args')
if self.language is not None:
oprot.writeFieldBegin('language', TType.STRING, 2)
oprot.writeString(self.language)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.language))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPaidCallMetadata_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = PaidCallMetadataResult()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPaidCallMetadata_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getMid_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getMid_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getMid_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRING:
self.success = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getMid_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRING, 0)
oprot.writeString(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserCountryForBilling_args(object):
"""
Attributes:
- country
- remoteIp
"""
def __init__(self, country=None, remoteIp=None):
self.country = country
self.remoteIp = remoteIp
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.country = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.remoteIp = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserCountryForBilling_args')
if self.country is not None:
oprot.writeFieldBegin('country', TType.STRING, 2)
oprot.writeString(self.country)
oprot.writeFieldEnd()
if self.remoteIp is not None:
oprot.writeFieldBegin('remoteIp', TType.STRING, 3)
oprot.writeString(self.remoteIp)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.country))
value = (value * 31) ^ hash(make_hashable(self.remoteIp))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserCountryForBilling_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRING:
self.success = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserCountryForBilling_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRING, 0)
oprot.writeString(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getFavoriteGroupIdsForChannel_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getFavoriteGroupIdsForChannel_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getFavoriteGroupIdsForChannel_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem999) = iprot.readListBegin()
for _ in range(elem999):
elem1000 = iprot.readString()
self.success.append(elem1000)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getFavoriteGroupIdsForChannel_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
for elem1001 in self.success:
oprot.writeString(elem1001)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPaidCallHistory_args(object):
"""
Attributes:
- start
- size
- language
"""
def __init__(self, start=None, size=None, language=None):
self.start = start
self.size = size
self.language = language
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.I64:
self.start = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I32:
self.size = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.STRING:
self.language = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPaidCallHistory_args')
if self.start is not None:
oprot.writeFieldBegin('start', TType.I64, 2)
oprot.writeI64(self.start)
oprot.writeFieldEnd()
if self.size is not None:
oprot.writeFieldBegin('size', TType.I32, 3)
oprot.writeI32(self.size)
oprot.writeFieldEnd()
if self.language is not None:
oprot.writeFieldBegin('language', TType.STRING, 4)
oprot.writeString(self.language)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.start))
value = (value * 31) ^ hash(make_hashable(self.size))
value = (value * 31) ^ hash(make_hashable(self.language))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPaidCallHistory_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = PaidCallHistoryResult()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPaidCallHistory_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class sendPinCodeOperation_args(object):
"""
Attributes:
- verifier
"""
def __init__(self, verifier=None):
self.verifier = verifier
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.verifier = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('sendPinCodeOperation_args')
if self.verifier is not None:
oprot.writeFieldBegin('verifier', TType.STRING, 1)
oprot.writeString(self.verifier)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.verifier))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class sendPinCodeOperation_result(object):
"""
Attributes:
- e
"""
def __init__(self, e=None):
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('sendPinCodeOperation_result')
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class inviteIntoGroupCall_args(object):
"""
Attributes:
- chatMid
- memberMids
- mediaType
"""
def __init__(self, chatMid=None, memberMids=None, mediaType=None):
self.chatMid = chatMid
self.memberMids = memberMids
self.mediaType = mediaType
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.chatMid = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.memberMids = []
(_, elem1002) = iprot.readListBegin()
for _ in range(elem1002):
elem1003 = iprot.readString()
self.memberMids.append(elem1003)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.I32:
self.mediaType = GroupCallMediaType(iprot.readI32())
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('inviteIntoGroupCall_args')
if self.chatMid is not None:
oprot.writeFieldBegin('chatMid', TType.STRING, 2)
oprot.writeString(self.chatMid)
oprot.writeFieldEnd()
if self.memberMids is not None:
oprot.writeFieldBegin('memberMids', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.memberMids))
for elem1004 in self.memberMids:
oprot.writeString(elem1004)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.mediaType is not None:
oprot.writeFieldBegin('mediaType', TType.I32, 4)
oprot.writeI32(self.mediaType)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.chatMid))
value = (value * 31) ^ hash(make_hashable(self.memberMids))
value = (value * 31) ^ hash(make_hashable(self.mediaType))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class inviteIntoGroupCall_result(object):
"""
Attributes:
- e
"""
def __init__(self, e=None):
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('inviteIntoGroupCall_result')
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getFriendMids_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getFriendMids_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getFriendMids_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1005) = iprot.readListBegin()
for _ in range(elem1005):
elem1006 = iprot.readString()
self.success.append(elem1006)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getFriendMids_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
for elem1007 in self.success:
oprot.writeString(elem1007)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getMetaProfile_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getMetaProfile_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getMetaProfile_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = MetaProfile()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getMetaProfile_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class sendMessageForChannel_args(object):
"""
Attributes:
- message
"""
def __init__(self, message=None):
self.message = message
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRUCT:
self.message = Message()
self.message.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('sendMessageForChannel_args')
if self.message is not None:
oprot.writeFieldBegin('message', TType.STRUCT, 2)
self.message.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.message))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class sendMessageForChannel_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = Message()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('sendMessageForChannel_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class activeBuddySubscriberCount_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('activeBuddySubscriberCount_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class activeBuddySubscriberCount_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.I64:
self.success = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('activeBuddySubscriberCount_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.I64, 0)
oprot.writeI64(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getCallCreditPurchaseHistory_args(object):
"""
Attributes:
- request
"""
def __init__(self, request=None):
self.request = request
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRUCT:
self.request = CoinHistoryCondition()
self.request.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getCallCreditPurchaseHistory_args')
if self.request is not None:
oprot.writeFieldBegin('request', TType.STRUCT, 2)
self.request.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.request))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getCallCreditPurchaseHistory_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = CoinHistoryResult()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getCallCreditPurchaseHistory_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class isRoomMember_args(object):
"""
Attributes:
- roomId
"""
def __init__(self, roomId=None):
self.roomId = roomId
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.roomId = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('isRoomMember_args')
if self.roomId is not None:
oprot.writeFieldBegin('roomId', TType.STRING, 1)
oprot.writeString(self.roomId)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.roomId))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class isRoomMember_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.BOOL:
self.success = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('isRoomMember_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.BOOL, 0)
oprot.writeBool(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class sendSystemOAMessage_args(object):
"""
Attributes:
- message
"""
def __init__(self, message=None):
self.message = message
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.message = Message()
self.message.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('sendSystemOAMessage_args')
if self.message is not None:
oprot.writeFieldBegin('message', TType.STRUCT, 1)
self.message.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.message))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class sendSystemOAMessage_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = Message()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('sendSystemOAMessage_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class acquirePaidCallRoute_args(object):
"""
Attributes:
- paidCallType
- dialedNumber
- language
- networkCode
- disableCallerId
- referer
- adSessionId
"""
def __init__(self, paidCallType=None, dialedNumber=None, language=None, networkCode=None, disableCallerId=None, referer=None, adSessionId=None):
self.paidCallType = paidCallType
self.dialedNumber = dialedNumber
self.language = language
self.networkCode = networkCode
self.disableCallerId = disableCallerId
self.referer = referer
self.adSessionId = adSessionId
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.I32:
self.paidCallType = PaidCallType(iprot.readI32())
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.dialedNumber = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.STRING:
self.language = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.STRING:
self.networkCode = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.BOOL:
self.disableCallerId = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 7:
if ftype == TType.STRING:
self.referer = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 8:
if ftype == TType.STRING:
self.adSessionId = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('acquirePaidCallRoute_args')
if self.paidCallType is not None:
oprot.writeFieldBegin('paidCallType', TType.I32, 2)
oprot.writeI32(self.paidCallType)
oprot.writeFieldEnd()
if self.dialedNumber is not None:
oprot.writeFieldBegin('dialedNumber', TType.STRING, 3)
oprot.writeString(self.dialedNumber)
oprot.writeFieldEnd()
if self.language is not None:
oprot.writeFieldBegin('language', TType.STRING, 4)
oprot.writeString(self.language)
oprot.writeFieldEnd()
if self.networkCode is not None:
oprot.writeFieldBegin('networkCode', TType.STRING, 5)
oprot.writeString(self.networkCode)
oprot.writeFieldEnd()
if self.disableCallerId is not None:
oprot.writeFieldBegin('disableCallerId', TType.BOOL, 6)
oprot.writeBool(self.disableCallerId)
oprot.writeFieldEnd()
if self.referer is not None:
oprot.writeFieldBegin('referer', TType.STRING, 7)
oprot.writeString(self.referer)
oprot.writeFieldEnd()
if self.adSessionId is not None:
oprot.writeFieldBegin('adSessionId', TType.STRING, 8)
oprot.writeString(self.adSessionId)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.paidCallType))
value = (value * 31) ^ hash(make_hashable(self.dialedNumber))
value = (value * 31) ^ hash(make_hashable(self.language))
value = (value * 31) ^ hash(make_hashable(self.networkCode))
value = (value * 31) ^ hash(make_hashable(self.disableCallerId))
value = (value * 31) ^ hash(make_hashable(self.referer))
value = (value * 31) ^ hash(make_hashable(self.adSessionId))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class acquirePaidCallRoute_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = PaidCallResponse()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('acquirePaidCallRoute_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getGroupsForChannel_args(object):
"""
Attributes:
- groupIds
"""
def __init__(self, groupIds=None):
self.groupIds = groupIds
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.groupIds = []
(_, elem1008) = iprot.readListBegin()
for _ in range(elem1008):
elem1009 = iprot.readString()
self.groupIds.append(elem1009)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getGroupsForChannel_args')
if self.groupIds is not None:
oprot.writeFieldBegin('groupIds', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.groupIds))
for elem1010 in self.groupIds:
oprot.writeString(elem1010)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.groupIds))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getGroupsForChannel_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1011) = iprot.readListBegin()
for _ in range(elem1011):
elem1012 = Group()
elem1012.read(iprot)
self.success.append(elem1012)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getGroupsForChannel_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
for elem1013 in self.success:
elem1013.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserCreateTime_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserCreateTime_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserCreateTime_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.I64:
self.success = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserCreateTime_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.I64, 0)
oprot.writeI64(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class registerChannelCP_args(object):
"""
Attributes:
- cpId
- registerPassword
"""
def __init__(self, cpId=None, registerPassword=None):
self.cpId = cpId
self.registerPassword = registerPassword
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.cpId = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.registerPassword = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('registerChannelCP_args')
if self.cpId is not None:
oprot.writeFieldBegin('cpId', TType.STRING, 2)
oprot.writeString(self.cpId)
oprot.writeFieldEnd()
if self.registerPassword is not None:
oprot.writeFieldBegin('registerPassword', TType.STRING, 3)
oprot.writeString(self.registerPassword)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.cpId))
value = (value * 31) ^ hash(make_hashable(self.registerPassword))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class registerChannelCP_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRING:
self.success = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('registerChannelCP_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRING, 0)
oprot.writeString(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class reserveCallCreditPurchase_args(object):
"""
Attributes:
- request
"""
def __init__(self, request=None):
self.request = request
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRUCT:
self.request = CoinPurchaseReservation()
self.request.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('reserveCallCreditPurchase_args')
if self.request is not None:
oprot.writeFieldBegin('request', TType.STRUCT, 2)
self.request.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.request))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class reserveCallCreditPurchase_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = PaymentReservationResult()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('reserveCallCreditPurchase_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class acquirePaidCallCurrencyExchangeRate_args(object):
"""
Attributes:
- language
"""
def __init__(self, language=None):
self.language = language
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.language = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('acquirePaidCallCurrencyExchangeRate_args')
if self.language is not None:
oprot.writeFieldBegin('language', TType.STRING, 2)
oprot.writeString(self.language)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.language))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class acquirePaidCallCurrencyExchangeRate_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1014) = iprot.readListBegin()
for _ in range(elem1014):
elem1015 = PaidCallCurrencyExchangeRate()
elem1015.read(iprot)
self.success.append(elem1015)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('acquirePaidCallCurrencyExchangeRate_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
for elem1016 in self.success:
elem1016.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getRoomMemberMidsForAppPlatform_args(object):
"""
Attributes:
- roomId
"""
def __init__(self, roomId=None):
self.roomId = roomId
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.roomId = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getRoomMemberMidsForAppPlatform_args')
if self.roomId is not None:
oprot.writeFieldBegin('roomId', TType.STRING, 1)
oprot.writeString(self.roomId)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.roomId))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getRoomMemberMidsForAppPlatform_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1017) = iprot.readListBegin()
for _ in range(elem1017):
elem1018 = iprot.readString()
self.success.append(elem1018)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getRoomMemberMidsForAppPlatform_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
for elem1019 in self.success:
oprot.writeString(elem1019)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPaidCallBalanceList_args(object):
"""
Attributes:
- language
"""
def __init__(self, language=None):
self.language = language
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.language = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPaidCallBalanceList_args')
if self.language is not None:
oprot.writeFieldBegin('language', TType.STRING, 2)
oprot.writeString(self.language)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.language))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPaidCallBalanceList_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1020) = iprot.readListBegin()
for _ in range(elem1020):
elem1021 = PaidCallBalance()
elem1021.read(iprot)
self.success.append(elem1021)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPaidCallBalanceList_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
for elem1022 in self.success:
elem1022.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPersonalInfos_args(object):
"""
Attributes:
- requiredPersonalInfos
"""
def __init__(self, requiredPersonalInfos=None):
self.requiredPersonalInfos = requiredPersonalInfos
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.SET:
self.requiredPersonalInfos = set()
(_, elem1023) = iprot.readSetBegin()
for _ in range(elem1023):
elem1024 = PersonalInfo(iprot.readI32())
self.requiredPersonalInfos.add(elem1024)
iprot.readSetEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPersonalInfos_args')
if self.requiredPersonalInfos is not None:
oprot.writeFieldBegin('requiredPersonalInfos', TType.SET, 1)
oprot.writeSetBegin(TType.I32, len(self.requiredPersonalInfos))
for elem1025 in self.requiredPersonalInfos:
oprot.writeI32(elem1025)
oprot.writeSetEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.requiredPersonalInfos))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPersonalInfos_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.MAP:
self.success = {}
(_, _, elem1026) = iprot.readMapBegin()
for _ in range(elem1026):
elem1028 = PersonalInfo(iprot.readI32())
elem1027 = iprot.readString()
self.success[elem1028] = elem1027
iprot.readMapEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPersonalInfos_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.I32, TType.STRING, len(self.success))
for elem1030, elem1029 in self.success.items():
oprot.writeI32(elem1030)
oprot.writeString(elem1029)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPrimaryClientsForChannel_args(object):
"""
Attributes:
- userMids
"""
def __init__(self, userMids=None):
self.userMids = userMids
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.userMids = []
(_, elem1031) = iprot.readListBegin()
for _ in range(elem1031):
elem1032 = iprot.readString()
self.userMids.append(elem1032)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPrimaryClientsForChannel_args')
if self.userMids is not None:
oprot.writeFieldBegin('userMids', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.userMids))
for elem1033 in self.userMids:
oprot.writeString(elem1033)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.userMids))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPrimaryClientsForChannel_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1034) = iprot.readListBegin()
for _ in range(elem1034):
elem1035 = SimpleChannelClient()
elem1035.read(iprot)
self.success.append(elem1035)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPrimaryClientsForChannel_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
for elem1036 in self.success:
elem1036.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class addBuddyToContact_args(object):
"""
Attributes:
- buddyMid
"""
def __init__(self, buddyMid=None):
self.buddyMid = buddyMid
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.buddyMid = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('addBuddyToContact_args')
if self.buddyMid is not None:
oprot.writeFieldBegin('buddyMid', TType.STRING, 1)
oprot.writeString(self.buddyMid)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.buddyMid))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class addBuddyToContact_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = ContactTransition()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('addBuddyToContact_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getGroupMemberMidsForAppPlatform_args(object):
"""
Attributes:
- groupId
"""
def __init__(self, groupId=None):
self.groupId = groupId
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.groupId = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getGroupMemberMidsForAppPlatform_args')
if self.groupId is not None:
oprot.writeFieldBegin('groupId', TType.STRING, 1)
oprot.writeString(self.groupId)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.groupId))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getGroupMemberMidsForAppPlatform_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1037) = iprot.readListBegin()
for _ in range(elem1037):
elem1038 = iprot.readString()
self.success.append(elem1038)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getGroupMemberMidsForAppPlatform_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
for elem1039 in self.success:
oprot.writeString(elem1039)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserLanguage_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserLanguage_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserLanguage_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRING:
self.success = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserLanguage_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRING, 0)
oprot.writeString(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class lookupPaidCall_args(object):
"""
Attributes:
- dialedNumber
- language
- referer
"""
def __init__(self, dialedNumber=None, language=None, referer=None):
self.dialedNumber = dialedNumber
self.language = language
self.referer = referer
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.dialedNumber = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.language = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.STRING:
self.referer = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('lookupPaidCall_args')
if self.dialedNumber is not None:
oprot.writeFieldBegin('dialedNumber', TType.STRING, 2)
oprot.writeString(self.dialedNumber)
oprot.writeFieldEnd()
if self.language is not None:
oprot.writeFieldBegin('language', TType.STRING, 3)
oprot.writeString(self.language)
oprot.writeFieldEnd()
if self.referer is not None:
oprot.writeFieldBegin('referer', TType.STRING, 4)
oprot.writeString(self.referer)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.dialedNumber))
value = (value * 31) ^ hash(make_hashable(self.language))
value = (value * 31) ^ hash(make_hashable(self.referer))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class lookupPaidCall_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = PaidCallResponse()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('lookupPaidCall_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getExtendedProfile_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getExtendedProfile_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getExtendedProfile_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = ExtendedProfile()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getExtendedProfile_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getReverseCompactContacts_args(object):
"""
Attributes:
- ids
"""
def __init__(self, ids=None):
self.ids = ids
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.ids = []
(_, elem1040) = iprot.readListBegin()
for _ in range(elem1040):
elem1041 = iprot.readString()
self.ids.append(elem1041)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getReverseCompactContacts_args')
if self.ids is not None:
oprot.writeFieldBegin('ids', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.ids))
for elem1042 in self.ids:
oprot.writeString(elem1042)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.ids))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getReverseCompactContacts_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.MAP:
self.success = {}
(_, _, elem1043) = iprot.readMapBegin()
for _ in range(elem1043):
elem1045 = iprot.readString()
elem1044 = CompactContact()
elem1044.read(iprot)
self.success[elem1045] = elem1044
iprot.readMapEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getReverseCompactContacts_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
for elem1047, elem1046 in self.success.items():
oprot.writeString(elem1047)
elem1046.write(oprot)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPaidCallAdStatus_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPaidCallAdStatus_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getPaidCallAdStatus_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = PaidCallAdResult()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getPaidCallAdStatus_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class findContactByUseridWithoutAbuseBlockForChannel_args(object):
"""
Attributes:
- userid
"""
def __init__(self, userid=None):
self.userid = userid
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.userid = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('findContactByUseridWithoutAbuseBlockForChannel_args')
if self.userid is not None:
oprot.writeFieldBegin('userid', TType.STRING, 2)
oprot.writeString(self.userid)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.userid))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class findContactByUseridWithoutAbuseBlockForChannel_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = Contact()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('findContactByUseridWithoutAbuseBlockForChannel_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getGroupMemberMids_args(object):
"""
Attributes:
- groupId
"""
def __init__(self, groupId=None):
self.groupId = groupId
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.groupId = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getGroupMemberMids_args')
if self.groupId is not None:
oprot.writeFieldBegin('groupId', TType.STRING, 1)
oprot.writeString(self.groupId)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.groupId))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getGroupMemberMids_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1048) = iprot.readListBegin()
for _ in range(elem1048):
elem1049 = iprot.readString()
self.success.append(elem1049)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getGroupMemberMids_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
for elem1050 in self.success:
oprot.writeString(elem1050)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class sendMessageWithoutRelationship_args(object):
"""
Attributes:
- message
"""
def __init__(self, message=None):
self.message = message
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRUCT:
self.message = Message()
self.message.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('sendMessageWithoutRelationship_args')
if self.message is not None:
oprot.writeFieldBegin('message', TType.STRUCT, 2)
self.message.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.message))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class sendMessageWithoutRelationship_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = Message()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('sendMessageWithoutRelationship_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class displayBuddySubscriberCountInBulk_args(object):
"""
Attributes:
- mids
"""
def __init__(self, mids=None):
self.mids = mids
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.mids = []
(_, elem1051) = iprot.readListBegin()
for _ in range(elem1051):
elem1052 = iprot.readString()
self.mids.append(elem1052)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('displayBuddySubscriberCountInBulk_args')
if self.mids is not None:
oprot.writeFieldBegin('mids', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.mids))
for elem1053 in self.mids:
oprot.writeString(elem1053)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.mids))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class displayBuddySubscriberCountInBulk_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.MAP:
self.success = {}
(_, _, elem1054) = iprot.readMapBegin()
for _ in range(elem1054):
elem1056 = iprot.readString()
elem1055 = iprot.readI64()
self.success[elem1056] = elem1055
iprot.readMapEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('displayBuddySubscriberCountInBulk_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.I64, len(self.success))
for elem1058, elem1057 in self.success.items():
oprot.writeString(elem1058)
oprot.writeI64(elem1057)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class lookupRoomMembers_args(object):
"""
Attributes:
- roomId
- mids
"""
def __init__(self, roomId=None, mids=None):
self.roomId = roomId
self.mids = mids
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.roomId = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.mids = []
(_, elem1059) = iprot.readListBegin()
for _ in range(elem1059):
elem1060 = iprot.readString()
self.mids.append(elem1060)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('lookupRoomMembers_args')
if self.roomId is not None:
oprot.writeFieldBegin('roomId', TType.STRING, 1)
oprot.writeString(self.roomId)
oprot.writeFieldEnd()
if self.mids is not None:
oprot.writeFieldBegin('mids', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.mids))
for elem1061 in self.mids:
oprot.writeString(elem1061)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.roomId))
value = (value * 31) ^ hash(make_hashable(self.mids))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class lookupRoomMembers_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1062) = iprot.readListBegin()
for _ in range(elem1062):
elem1063 = SimpleChannelContact()
elem1063.read(iprot)
self.success.append(elem1063)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('lookupRoomMembers_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
for elem1064 in self.success:
elem1064.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getFavoriteMidsForChannel_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getFavoriteMidsForChannel_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getFavoriteMidsForChannel_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1065) = iprot.readListBegin()
for _ in range(elem1065):
elem1066 = iprot.readString()
self.success.append(elem1066)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getFavoriteMidsForChannel_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
for elem1067 in self.success:
oprot.writeString(elem1067)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getAllContactIdsForChannel_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getAllContactIdsForChannel_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getAllContactIdsForChannel_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1068) = iprot.readListBegin()
for _ in range(elem1068):
elem1069 = iprot.readString()
self.success.append(elem1069)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getAllContactIdsForChannel_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
for elem1070 in self.success:
oprot.writeString(elem1070)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class displayBuddySubscriberCount_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('displayBuddySubscriberCount_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class displayBuddySubscriberCount_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.I64:
self.success = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('displayBuddySubscriberCount_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.I64, 0)
oprot.writeI64(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getProfileForChannel_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getProfileForChannel_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getProfileForChannel_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = Profile()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getProfileForChannel_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserTickets_args(object):
"""
Attributes:
- userMids
"""
def __init__(self, userMids=None):
self.userMids = userMids
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.userMids = []
(_, elem1071) = iprot.readListBegin()
for _ in range(elem1071):
elem1072 = iprot.readString()
self.userMids.append(elem1072)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserTickets_args')
if self.userMids is not None:
oprot.writeFieldBegin('userMids', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.userMids))
for elem1073 in self.userMids:
oprot.writeString(elem1073)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.userMids))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserTickets_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1074) = iprot.readListBegin()
for _ in range(elem1074):
elem1075 = UserTicketResponse()
elem1075.read(iprot)
self.success.append(elem1075)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserTickets_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
for elem1076 in self.success:
elem1076.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getOAFriendMids_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getOAFriendMids_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getOAFriendMids_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1077) = iprot.readListBegin()
for _ in range(elem1077):
elem1078 = iprot.readString()
self.success.append(elem1078)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getOAFriendMids_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
for elem1079 in self.success:
oprot.writeString(elem1079)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class searchPaidCallUserRate_args(object):
"""
Attributes:
- countryCode
- language
"""
def __init__(self, countryCode=None, language=None):
self.countryCode = countryCode
self.language = language
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.countryCode = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.language = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('searchPaidCallUserRate_args')
if self.countryCode is not None:
oprot.writeFieldBegin('countryCode', TType.STRING, 2)
oprot.writeString(self.countryCode)
oprot.writeFieldEnd()
if self.language is not None:
oprot.writeFieldBegin('language', TType.STRING, 3)
oprot.writeString(self.language)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.countryCode))
value = (value * 31) ^ hash(make_hashable(self.language))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class searchPaidCallUserRate_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1080) = iprot.readListBegin()
for _ in range(elem1080):
elem1081 = PaidCallUserRate()
elem1081.read(iprot)
self.success.append(elem1081)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('searchPaidCallUserRate_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
for elem1082 in self.success:
elem1082.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getJoinedGroupIdsForChannel_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getJoinedGroupIdsForChannel_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getJoinedGroupIdsForChannel_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1083) = iprot.readListBegin()
for _ in range(elem1083):
elem1084 = iprot.readString()
self.success.append(elem1084)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getJoinedGroupIdsForChannel_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
for elem1085 in self.success:
oprot.writeString(elem1085)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class acquireGroupCallRoute_args(object):
"""
Attributes:
- chatMid
- mediaType
"""
def __init__(self, chatMid=None, mediaType=None):
self.chatMid = chatMid
self.mediaType = mediaType
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 2:
if ftype == TType.STRING:
self.chatMid = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I32:
self.mediaType = GroupCallMediaType(iprot.readI32())
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('acquireGroupCallRoute_args')
if self.chatMid is not None:
oprot.writeFieldBegin('chatMid', TType.STRING, 2)
oprot.writeString(self.chatMid)
oprot.writeFieldEnd()
if self.mediaType is not None:
oprot.writeFieldBegin('mediaType', TType.I32, 3)
oprot.writeI32(self.mediaType)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.chatMid))
value = (value * 31) ^ hash(make_hashable(self.mediaType))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class acquireGroupCallRoute_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = GroupCallRoute()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('acquireGroupCallRoute_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserMidsWhoAddedMe_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserMidsWhoAddedMe_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserMidsWhoAddedMe_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1086) = iprot.readListBegin()
for _ in range(elem1086):
elem1087 = iprot.readString()
self.success.append(elem1087)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserMidsWhoAddedMe_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRING, len(self.success))
for elem1088 in self.success:
oprot.writeString(elem1088)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getIdentityCredential_args(object):
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getIdentityCredential_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getIdentityCredential_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = IdentityCredential()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getIdentityCredential_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class addOperationForChannel_args(object):
"""
Attributes:
- opType
- param1
- param2
- param3
"""
def __init__(self, opType=None, param1=None, param2=None, param3=None):
self.opType = opType
self.param1 = param1
self.param2 = param2
self.param3 = param3
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I32:
self.opType = OpType(iprot.readI32())
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.param1 = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.param2 = iprot.readString()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.STRING:
self.param3 = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('addOperationForChannel_args')
if self.opType is not None:
oprot.writeFieldBegin('opType', TType.I32, 1)
oprot.writeI32(self.opType)
oprot.writeFieldEnd()
if self.param1 is not None:
oprot.writeFieldBegin('param1', TType.STRING, 2)
oprot.writeString(self.param1)
oprot.writeFieldEnd()
if self.param2 is not None:
oprot.writeFieldBegin('param2', TType.STRING, 3)
oprot.writeString(self.param2)
oprot.writeFieldEnd()
if self.param3 is not None:
oprot.writeFieldBegin('param3', TType.STRING, 4)
oprot.writeString(self.param3)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.opType))
value = (value * 31) ^ hash(make_hashable(self.param1))
value = (value * 31) ^ hash(make_hashable(self.param2))
value = (value * 31) ^ hash(make_hashable(self.param3))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class addOperationForChannel_result(object):
"""
Attributes:
- e
"""
def __init__(self, e=None):
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('addOperationForChannel_result')
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getSimpleChannelContacts_args(object):
"""
Attributes:
- ids
- statusSticonFallbackDisabled
"""
def __init__(self, ids=None, statusSticonFallbackDisabled=None):
self.ids = ids
self.statusSticonFallbackDisabled = statusSticonFallbackDisabled
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.ids = []
(_, elem1089) = iprot.readListBegin()
for _ in range(elem1089):
elem1090 = iprot.readString()
self.ids.append(elem1090)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.BOOL:
self.statusSticonFallbackDisabled = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getSimpleChannelContacts_args')
if self.ids is not None:
oprot.writeFieldBegin('ids', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.ids))
for elem1091 in self.ids:
oprot.writeString(elem1091)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.statusSticonFallbackDisabled is not None:
oprot.writeFieldBegin('statusSticonFallbackDisabled', TType.BOOL, 2)
oprot.writeBool(self.statusSticonFallbackDisabled)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.ids))
value = (value * 31) ^ hash(make_hashable(self.statusSticonFallbackDisabled))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getSimpleChannelContacts_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.LIST:
self.success = []
(_, elem1092) = iprot.readListBegin()
for _ in range(elem1092):
elem1093 = SimpleChannelContact()
elem1093.read(iprot)
self.success.append(elem1093)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getSimpleChannelContacts_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.LIST, 0)
oprot.writeListBegin(TType.STRUCT, len(self.success))
for elem1094 in self.success:
elem1094.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserLastSentMessageTimeStamp_args(object):
"""
Attributes:
- mid
"""
def __init__(self, mid=None):
self.mid = mid
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.mid = iprot.readString()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserLastSentMessageTimeStamp_args')
if self.mid is not None:
oprot.writeFieldBegin('mid', TType.STRING, 1)
oprot.writeString(self.mid)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.mid))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getUserLastSentMessageTimeStamp_result(object):
"""
Attributes:
- success
- e
"""
def __init__(self, success=None, e=None):
self.success = success
self.e = e
def read(self, iprot):
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.I64:
self.success = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.e = TalkException()
self.e.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
self.validate()
def write(self, oprot):
self.validate()
oprot.writeStructBegin('getUserLastSentMessageTimeStamp_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.I64, 0)
oprot.writeI64(self.success)
oprot.writeFieldEnd()
if self.e is not None:
oprot.writeFieldBegin('e', TType.STRUCT, 1)
self.e.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __hash__(self):
value = 17
value = (value * 31) ^ hash(make_hashable(self.success))
value = (value * 31) ^ hash(make_hashable(self.e))
return value
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
| 35.637444
| 231
| 0.586207
| 52,832
| 560,577
| 5.984649
| 0.009445
| 0.016424
| 0.013929
| 0.020893
| 0.862509
| 0.840085
| 0.814268
| 0.786572
| 0.77906
| 0.762124
| 0
| 0.007009
| 0.319175
| 560,577
| 15,729
| 232
| 35.63971
| 0.821438
| 0.035071
| 0
| 0.834493
| 1
| 0
| 0.041889
| 0.023209
| 0
| 0
| 0
| 0
| 0
| 1
| 0.13111
| false
| 0.006959
| 0.00096
| 0.034557
| 0.229822
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
bb55f44fdeca3f86beb5aab433c93abe40e987b1
| 72
|
py
|
Python
|
tests/test_environment.py
|
frankenstien-831/mantaray
|
a2d51dce67cf6491ab7f527087835abea514c026
|
[
"Apache-2.0"
] | 17
|
2018-11-21T09:57:11.000Z
|
2020-01-08T10:43:53.000Z
|
tests/test_environment.py
|
frankenstien-831/mantaray
|
a2d51dce67cf6491ab7f527087835abea514c026
|
[
"Apache-2.0"
] | 48
|
2018-11-07T14:31:49.000Z
|
2019-05-27T07:47:56.000Z
|
tests/test_environment.py
|
oceanprotocol/mantaray
|
9fd05decd5baae9ab849cb48e7ec807b703e97ad
|
[
"Apache-2.0"
] | 5
|
2019-02-13T20:24:47.000Z
|
2020-05-29T15:57:18.000Z
|
import squid_py
def test_versions_():
assert squid_py.__version__
| 12
| 31
| 0.777778
| 10
| 72
| 4.8
| 0.8
| 0.291667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 72
| 5
| 32
| 14.4
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
2487863ba324b7b7923b1f6034f757b5ac0dc8de
| 2,106
|
py
|
Python
|
AI 이노베이션 스퀘어 언어지능 과정/20190502/02.py
|
donddog/AI_Innovation_Square_Codes
|
a04d50db011d25e00d8486146c24124c50242aa7
|
[
"MIT"
] | 1
|
2021-02-11T16:45:21.000Z
|
2021-02-11T16:45:21.000Z
|
AI 이노베이션 스퀘어 언어지능 과정/20190502/02.py
|
donddog/AI_Innovation_Square_Codes
|
a04d50db011d25e00d8486146c24124c50242aa7
|
[
"MIT"
] | null | null | null |
AI 이노베이션 스퀘어 언어지능 과정/20190502/02.py
|
donddog/AI_Innovation_Square_Codes
|
a04d50db011d25e00d8486146c24124c50242aa7
|
[
"MIT"
] | null | null | null |
<<<<<<< HEAD
import requests
from urllib import request, error, parse
header = {"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36"}
def download(url, params={}, retries=3):
resp = None
try:
resp = requests.get(url, params=params, headers = header)
resp.raise_for_status()
except requests.exceptions.HTTPError as e:
if 500 <= e.response.status_code < 600 and retries > 0:
print(retries)
resp = download(url, params, retries - 1)
else:
print(e.response.status_code, "\n")
print(e.response.reason, "\n")
print(e.request.headers, "\n")
return resp
#html = download("http://httpbin.org/get", {"Key":"Value"})
html = download("https://www.crawler-test.com/status_codes/status_500")
#print(html.text, html.content)
#print("https://www.crawler-test.com/status_codes/status_숫자")
# &_returnType=json (json 반환 , 웹 뒤에 붙여 쓰면 됨)
# 웹 페이지 헤더 확인하기 (계속)
=======
import requests
from urllib import request, error, parse
header = {"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36"}
def download(url, params={}, retries=3):
resp = None
try:
resp = requests.get(url, params=params, headers = header)
resp.raise_for_status()
except requests.exceptions.HTTPError as e:
if 500 <= e.response.status_code < 600 and retries > 0:
print(retries)
resp = download(url, params, retries - 1)
else:
print(e.response.status_code, "\n")
print(e.response.reason, "\n")
print(e.request.headers, "\n")
return resp
#html = download("http://httpbin.org/get", {"Key":"Value"})
html = download("https://www.crawler-test.com/status_codes/status_500")
#print(html.text, html.content)
#print("https://www.crawler-test.com/status_codes/status_숫자")
# &_returnType=json (json 반환 , 웹 뒤에 붙여 쓰면 됨)
# 웹 페이지 헤더 확인하기 (계속)
>>>>>>> 125e15a4c5fcf711dd279c9b18e149867466699e
| 33.967742
| 142
| 0.641975
| 294
| 2,106
| 4.537415
| 0.302721
| 0.04048
| 0.050975
| 0.071964
| 0.967016
| 0.967016
| 0.967016
| 0.967016
| 0.967016
| 0.967016
| 0
| 0.065437
| 0.201804
| 2,106
| 61
| 143
| 34.52459
| 0.728138
| 0.19943
| 0
| 0.923077
| 0
| 0.051282
| 0.218377
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.102564
| null | null | 0.205128
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
700d0be53b619efdad4a8ec1aeb9815fae8956d5
| 2,010
|
py
|
Python
|
models/VGG_models.py
|
Gus-Lab/temporal_efficient_training
|
f9bde4107ed653cc8dd3ee58689bf3b55f6b89ba
|
[
"MIT"
] | 5
|
2022-02-23T08:21:32.000Z
|
2022-03-22T05:29:13.000Z
|
models/VGG_models.py
|
Gus-Lab/temporal_efficient_training
|
f9bde4107ed653cc8dd3ee58689bf3b55f6b89ba
|
[
"MIT"
] | 1
|
2022-03-20T13:49:01.000Z
|
2022-03-23T06:07:55.000Z
|
models/VGG_models.py
|
Gus-Lab/temporal_efficient_training
|
f9bde4107ed653cc8dd3ee58689bf3b55f6b89ba
|
[
"MIT"
] | 2
|
2022-03-28T07:25:14.000Z
|
2022-03-30T08:50:47.000Z
|
import random
from models.layers import *
class VGGSNN(nn.Module):
def __init__(self):
super(VGGSNN, self).__init__()
pool = SeqToANNContainer(nn.AvgPool2d(2))
#pool = APLayer(2)
self.features = nn.Sequential(
Layer(2,64,3,1,1),
Layer(64,128,3,1,1),
pool,
Layer(128,256,3,1,1),
Layer(256,256,3,1,1),
pool,
Layer(256,512,3,1,1),
Layer(512,512,3,1,1),
pool,
Layer(512,512,3,1,1),
Layer(512,512,3,1,1),
pool,
)
W = int(48/2/2/2/2)
# self.T = 4
self.classifier = SeqToANNContainer(nn.Linear(512*W*W,10))
for m in self.modules():
if isinstance(m, nn.Conv2d):
nn.init.kaiming_normal_(m.weight, mode='fan_out', nonlinearity='relu')
def forward(self, input):
# input = add_dimention(input, self.T)
x = self.features(input)
x = torch.flatten(x, 2)
x = self.classifier(x)
return x
class VGGSNNwoAP(nn.Module):
def __init__(self):
super(VGGSNNwoAP, self).__init__()
self.features = nn.Sequential(
Layer(2,64,3,1,1),
Layer(64,128,3,2,1),
Layer(128,256,3,1,1),
Layer(256,256,3,2,1),
Layer(256,512,3,1,1),
Layer(512,512,3,2,1),
Layer(512,512,3,1,1),
Layer(512,512,3,2,1),
)
W = int(48/2/2/2/2)
# self.T = 4
self.classifier = SeqToANNContainer(nn.Linear(512*W*W,10))
for m in self.modules():
if isinstance(m, nn.Conv2d):
nn.init.kaiming_normal_(m.weight, mode='fan_out', nonlinearity='relu')
def forward(self, input):
# input = add_dimention(input, self.T)
x = self.features(input)
x = torch.flatten(x, 2)
x = self.classifier(x)
return x
if __name__ == '__main__':
model = VGGSNNwoAP()
| 27.916667
| 86
| 0.512438
| 279
| 2,010
| 3.577061
| 0.222222
| 0.024048
| 0.036072
| 0.064128
| 0.833667
| 0.821643
| 0.773547
| 0.773547
| 0.773547
| 0.773547
| 0
| 0.125375
| 0.337313
| 2,010
| 72
| 87
| 27.916667
| 0.623874
| 0.056219
| 0
| 0.727273
| 0
| 0
| 0.015848
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.072727
| false
| 0
| 0.036364
| 0
| 0.181818
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
704ef90a1eda0b853ed398648b6b2a1777d6297f
| 48
|
py
|
Python
|
download/__init__.py
|
Vinaypatil-Ev/wantas
|
3e501d979a8422ba628e3454ec703b27428e0bb1
|
[
"MIT"
] | null | null | null |
download/__init__.py
|
Vinaypatil-Ev/wantas
|
3e501d979a8422ba628e3454ec703b27428e0bb1
|
[
"MIT"
] | null | null | null |
download/__init__.py
|
Vinaypatil-Ev/wantas
|
3e501d979a8422ba628e3454ec703b27428e0bb1
|
[
"MIT"
] | null | null | null |
from .gdrive import download_from_gdrive_with_id
| 48
| 48
| 0.916667
| 8
| 48
| 5
| 0.75
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 48
| 1
| 48
| 48
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
7058837d948dfec694e445c3c022d55160de284b
| 8,695
|
py
|
Python
|
Day3/day3.py
|
Boreeas/advent-of-code
|
6fad386af05ae3370cf71be174bbc9864d02f94e
|
[
"Unlicense"
] | null | null | null |
Day3/day3.py
|
Boreeas/advent-of-code
|
6fad386af05ae3370cf71be174bbc9864d02f94e
|
[
"Unlicense"
] | null | null | null |
Day3/day3.py
|
Boreeas/advent-of-code
|
6fad386af05ae3370cf71be174bbc9864d02f94e
|
[
"Unlicense"
] | null | null | null |
INPUT = ">^^v^<>v<<<v<v^>>v^^^<v<>^^><^<<^vv>>>^<<^>><vv<<v^<^^><>>><>v<><>^^<^^^<><>>vv>vv>v<<^>v<>^>v<v^<>v>><>^v<<<<v^vv^><v>v^>>>vv>v^^^<^^<>>v<^^v<>^<vv^^<^><<>^>><^<>>><><vv><>v<<<><><>v><<>^^^^v>>^>^<v<<vv^^<v<^<^>^^v^^^^^v<><^v><<><^v^>v<<>^<>^^v^<>v<v^>v>^^<vv^v><^<>^v<><^><v^><><><<<<>^vv^>^vvvvv><><^<vv^v^v>v<<^<^^v^<>^<vv><v<v^v<<v<<^^>>^^^v^>v<><^vv<<^<>v<v><><v^^><v<>^^>^^>v^>^<<<<v><v<<>v><^v>^>><v^^<^>v<vvvv<>>>>>^v^^>v<v<^<vv>^>^vv^>vv^^v<<^<^^<>v>vv^v>><>>>v^>^>^^v<>^<v<<>^vv>v^<<v>v<<><v>^vvv<v<vvv^v<vv<v^^^>v><<^<>><v^^>^v^>>^v<^<><v<>>v^<>>v<>>v^^^><^>>vvvv>^v<^><<>>^<>^>vv><v<<>>^^>v^^^><^<<^^v>v<^<<>v>^^vvv^v^>v^<>^^<>v^v>v>v<v^>vv>^^v<>v>>^<>><>v>v^<<vvvv<vvv><v^<^>^v<>>^><v>><>^<v>v<v>vv^>>vvv<>v>v<v^>>^>>v<<>^<>^<>>>^v<<<^<^v>vv^>><<><v^>^v^^^v<>^^vv><>><>>^>v^<v<>v<>>^<<^v>^^^<>^v^><>v<<v>vv^>vv<<>>><<^v^<>v<vv>>>^^<>^><<^>vv>>^<<v^^vv<>>><v>v><^<v<<>>>^^<>>^<^v><>vv^^^v>vvv>^><<>^^>^<<v^<v<^v<<>vvv<^<<>^>^v<vv<^>vvv>v>vv^<v^><>>^vv<^^^vv><^vv<v^<><v^vvv><<^>^^><v<<vv^>v<vv<v>^<>^v<<>v<v^v^>^>^>v<<^vvv<<<v>^^>^<<<<>vv>>^<>^>>>v<v>^^<v^<v<>>>vv>^^v<<>>>^^v><<<v<v<^v<>^^><v<^v<<v^><><^<><v<^^v>>><v^^v<<v^><^<><<v^>><^<>v>v^<><^<v>^v^>^>^vv^>^^<<vv^>vv<^vvv<>>^^<^>v^>^>^<v^><v<v>>>v<<<><^v<<><^<vv^v^^^>v<^^<v^vvv<v<><v<vv<^vv<>vv<v^<>>vvvvv<<>^v^v>vv>>>vvv^^<^<^<><>v<v>><^v><^<<<>><<<v>^>v<>^>^v>>^<>v^<^>><<>^<v>^>^^^>^^<v>>>><>^v^v><<<<vv^<vv<>vv>v<>v^<v^>v><>>>v^<><^vvv>vv^<^<<^<^^v>^>>>v<^<^v^^<^<^>>><v>vv>^<<><>^>>v>^<<>><^<>v<>vv^^>^>vvv^v<<^<^^<vv<>^vvv<^^v^vv^>>v<^>^^<v^<>v<^<^vv>v<<vv>vv>^>vvv>>>^^>v<>^v>v^<^>>v>^^v>>>>v^<v>v<^>v<v<<>>^v<^^<v><^<>>^<<vv^>>v<<v>^v<>><^>vv<v<^>>^^<vvvvvvvvv>>>v<v<>v^<>>^vv<v^^v<<^vvv^<<^><>vv<><<>>v>vv^><>>^^v^>>v^v^><<<>>^^<^v<<^<>>>>^<^>v^><<^>v<^v<^>>^^<<<<><^<^v^v<>>^v<^<<vv^<><^^vv><v^v^v>^>>^>^vv^>^v<v^v<<vvv^><>>^v^^><>v>vv><^>>vv<vvv<<<<^<>vvv^v<v>^<v<^>^<^<v<><>v^^^^<<vv<^^vv<v>><<v^><>>><v^>^v><^>^><vv^<><^<v>><<^vv<>>v^<<v<>v><v<><><vv>^>>v^<^<v>^><>>><^><v^v<>>>^^<^>v<v>vvv<>^<<><v^^>^>>v<^v>^>v>>>vv>v>>v^^^<^<vvv^<>^>^<v^<v^v>v>^>vv>vvv<>v<^>v>^^>>^<vv^^v>v^^^^^v^vv><^<><>^>vv<^>>^vvvv^^^>^<vv>^v<<^><^^>^<>^^>^<<v<^>>>^><<^^>v^v>>^>vvvv>^^v><v>>vv><<<vv<^>v>^^^<v>v^vvv<^><<^>^<>^><<<<<v^<<vv^v>^<>v<v>^>^>><>v^v<^vv^^>vv<<v^v>vv^vvv<<<<>^v<v^^v^v>v<<v>^^<>^vv^^>^>^v^vv^>>v^vv^^<vv><<v^v^^v><vv<^vvv<vv^^<<v>v^v^^^^v<^<^>v>^>v>^vv^v^^<v<^vvvv<<<>^<^^^<^^<>^<><vv<^^<<^>>><v^vvvv>^<>>^^>v^^v^<<v^^^<<<><^<v^v^^v<v^<>v><<v<>^v>v<^><^>vv^^<vvv<^v>>v>^<><v^><^^^<v^>>vv<<<<<^<>^v^v>^vv^<>v>v<^>vv<<^vv>vv<v<><>>v>><v<^<^^>><<v^v<<^><v<^<vv<v<<vv^>^<<><^^>^<^>>^<vv>><v<<vvv<^^v^>^^<^v>^v<v<>v><v^v^<<^<><<v<<^v>v<<>>^>v>>v>>v<^<<^<^>>>v>^^^v><^>^^>>v<<>^v><v>vvv^vv<<<>vvv<<>^>>>v<v<v^<^<^>^<^>v^^v<^^<v<>v<>>^^>^v^>v<<<<^<>v^><<<v>>>><<v^<^vv>v>><>>^<<<^<^^>v<>>v<>vv<<^<<><<^>v^^^vv^>vvvv>>v>v^><<v<>vv^<<><<vvv>^>>>^<<<^<^<<v>^>v<>>v>>vv^^><<<<^^^v>><<^><v><v^^><v<<v^^v^^v>>v<><><<>^><v><^<vv>><^v<>v<vvv<>^>><v>>v<^><<v>^<>^v><^><^^<v>^><^^v^<<><>>^>v^<^v^vv<><^>vv^>v^vvv^<>>^><^<^<>^<<v^v<^v><>^v<v>>^>>^v^vv>><vv><v^^<<^v^<>^v<<>^><^>><v>>v<<<v^^vv<>^^v>>><><><<v^<<<v^<^^><v^>v^^vv<v^<>>vv^<^v<>^v>>v^v>v<^^vv><>^v<<>v^<>v^>>v>vvv<^><><^^>^vv^>>v^>^<^^<><>><<>^^^><^v^v><<<><<^v^vv>v>><^>>><v^>v<v><><v^v<>v^^>>v<<>v>v<v<v<^^<><>v^^<>>v<^v<v>v<><v<v>^<<>v>vv^^<>>^^^<>^^>^v>v>>>^v^v><v^^<><v>^^v^v<^<^^><<v<^<^<>^<>><<>^>>^>^^><v><>v<><>><<<>>>>vv>>>^>>^v<^>v^^^v<<vv>><<<^<<<>>>>>^>vv<^v^<>^<v^>^v><v>vvv<>>>^v^^^v<<<<>>^^<vv<^<^^>^<>v<^<<<>><>>v<^<>^<vvv<^<>><><<v>^^^>^^<<v<v^>^^v^>><<^vv><v>^v>>^<v>v>^^>^v>^vvv<>v^v^^<><vv>vv^>>><>v<^><v<v^<><<<>^v>^v<<<^>^>^>v^v<<><vvv<<v^^<><v>^>>><vv>><v>>v^<vv>>vv<<^v^v<<><^v<vv>>>vv<>>>>^vv>v^<>vv>v^v<v^><v<^^^^^>vv<><<vvv^<v><^<vv><^^^vv^<>^^^^<^><^<>v^<v^v<<^v<<^^<>>^<v^^>>>vv<vvv<>v<<>><^vvv^<<^^<<>>>^<>>>v^^><>><<>><v^v>>>>>><>>><v^<<vvv^>v<>>v^<>vv<><^^^^v^<<^<v^vv><<^^>v<^vvv^v>>v>^>>v>^^><<v^<>v<>vv<^v^vv><v><<vv^v>>v^>>v<^^^>^><<v<>^><>v>>>vvv<v<vv<^>>^v<v>^<^^^^^v><>v><>v^v^v<v^vv^v>vvvv<>vv<<<vv<v<<>^<^>^^v^<<>^<v><^><v<v<><<>v^<<^<><vv>v<<^v>>^v<><v>^>>^^><>v^<^<vvv^>^>^<<<<>vv>^v^v<^^^<vv>><>^^<<v<^<^^>>>v^v<<^^^<v<v<^<>^v<v><v^vv^^v^^v^^<vv<>^<><vv^<^v^<<^><<vvv>^^<^^^<^v>^>^vv><<<^v<v>vv>v<>v^v<v^>v^>>>v^v<>^v<<>^vv>v>v>v^<^>v^^<^>^^^^vv>^^><^>vv^>>^^v>><<<<^><>v<>^<v<vv^>^^><<^><v>v^>^^<^>>><>><v^v<v^<v<vv^v^<<^<vvv>>><vv<^^>>^>^><<v^<>>v>v^v^^><<>vv^v>v^<v><^<>^^<^>v>^<><<<v>^<^<^>^>^>^^v^<<^^v^^<^<>><^>v>>^^<>^^^<<<<v^>^v<^vv>^<<<v<><<v<>vv>>>v><>>><>>v<<<vv><>^v>v<^>><^><><v<>^v^>^v>^v<<><<^<>>v>^><>^>><>><^<v^><v^^<><v><^^>^v^^<>v^<v^<^v<v^^^^^v^<<^>^^^<^v><>^^<<<><<<<<^^>v^vvvv>v<>>vv<^>^v^>v<^vv^v<<><<v>v^v>^^><><^<v^>v><vv><>>><<>^vv<>v>>v<^v>>>v<v>v>v>^vv<<>^^vv<v<^v^<v<v>vv<>^<^<vv<v^<^v^^><<>^>><^v>vv^^v<<^^><<>v^^<><><v^^<v^v>^>^>^>v<^<v>^v^^>v<>vvv<^v<v^v><<v^><<^^><^<<v^v^>v<>^>v><><v>^<v<v>^<^^^>^v<<><<><>vv>v^<>v^><v^v<v><><<v>v<vv><<v>>v>^<<<>vv>>vvv>^^vv^v^^<^^<>v^^<>v>>^^>^>^>v>><^>><>>^<<>><^>v<<<<<<<^v^v<v^<v^^>^<><<v<^>v^>v^vv<<^^vv^>>>>^<>v<^v<>v<vv<^>>v^vv>vv><vv<<^>v>><vv>>>vv^<<<<vv^>v<<<<^^>^^v^><<^<v^>v^>^^<v<>vvv^>^<>vvv<v<^^>v^<<v>><>v<v<>^^<vvv>^>vv><><<<^^vv<v^<v<>v<>><<v><^vv^>^<^>^^^<<<v>vv^<^<<>^>^<vv>v><v<<^><^>^^<vv^v^^>>>>vv^><^^vv><>^<v^v>v<vv>v><<<v>v<v>^><v^^><v>v<^v^>>^^<v^>^^>vv>>vv^><^vv^vv<<^>vv>^v<v><vv><v<vvvvv>^^v^v><v>>>^vv<>v>^^^^<^>><>^v^^^>v<^^<<^^v<vv<>vvv<^>><><^>>^><^<>v<v<<><<v><v^v<>><^>v><<v^<v>v<^<vv^v^v^>vvv^^>v>^<vv^>v^v^<>v>^>>vv>><^^<v<<>^vv<><><<^v<v>v<<vv><>><^v<v>>v^>vvv^v^<<^><v<>^vv^>v^<v<^>>v<v><v><v>>^<<<v^<><<>v>^>^^<v<>>^<>^>^><<<^<<^<<^>^v>>><vvv>><<<<v>>>>>>>^<^v<^>v<>vv<><>v>>^>>^>vv^^><<^<v<v>>^^<<^>v<^>>vv>^<>v><^>v<vv>>>>>>^v<^<<<v^><vv<<>>vv<<><v<><<<v<^<v<>>v<^^^^v^^<^^^<^<vv><<^>><>v<<>v<v<>>>><>v^vv>^>^>>vv^v<v<<><^v>vv^><v<<>v^v<^>vv<<^^v><^>>^^vv<^<>>v^^>><v>^v>>>^>>v>v<>v<^vv><>^<<^>vv>>><><>v^><>v^>v>v><^v<><v<v>^v<<^vv^><^^>><^^^<<<^>v>^v>>><^>><^>>>^^^<^>vv<><<<v^>^<^^>>^^^v^v^v>v<v>>>><^>>>v>^vv<<^^^<^^vv>v<<><v<<^^>v>><<v^^><^>^<^>^v^>v><^<^vv>v>><>^<<vv<<v>v<vv<v>^>^>><^^<v>^v^v<><<>vvv<^<v>^><>^>vvv>>>^><<>><v^^<^<<^v>>^v<v<vv>vv^v^>v<<vvv<^^v^v>^<^>>^>v<^>^v<<><<<^>^<^^^>vv<^^^^vv<v<^^v<<<<v<^v^<><v<<^><<>vv>>><^<^<>>>^>^>>^<<<<<^^v>^>^<>vvv^^<^><^>^^v>^vv^><v^<^<<v^<vvv<<^v<><^><^>>>v>^v>^>^v<vv^v>><v><^><v^^>v^>^<><<><>v<v^>vvv^>^>>v<>^><^>^><vvv>^^v^v>v<>^v^><^>>v>v^><<<^>>^<>^<>>v><>>v^>^>^^<>>v^>^<vvvv<^vvvv^>>vv^<v^v>^vv<>v<>^<v<v>v>^^><^>vv^<^v^<<^<^<><vv<^v<^v><>>>^v^<<^><^>vv<v>v<^>vv^>v<<<>^<><v<^^^>v><^^<>^<^<v^vv^<<^>><<v^v<^vvv<<<>>vvvv^v^^^>v<>>><<>vvv<<^^^>v>v>>v<<v<v^v^>^^v>^><^<><<v^<v<v^^^><>v^^^<v>vv<>^>^^vv>^<<^v<^v><v>>>^>>><^<<>^v>>^>vv<<<v<>^<v><v^<^<>v>v^^v^>><<^v<<<<>v>v>v^^<^><>^^<<<v>vv<>>>^>>v<><v^>^<><vv>v>v^v<v^<^>>^>><<^^<^^v<vv<>><<<v<^<<^^^>vvv^<vvv<^>vv><>><<<^<v^v^^<<^vvv^^<^<><<>^<^<>>vvv<>^<>v^v<><>>v^v><<>>>vvv>v<>^>>^><^>vv<<>>v<<^><>v>>^^<v>^>^<<>><^<<vv<^<vv^vv><>>>><^<v>^>vv<v><>^<>vvvvv^vv<<v<>>>^<<><>^^vvv>>>vv<<^^><^v^^v<>^^>^><^>v^^^^v<^<<vv<vv<>vv^^>v^vv>v><>>vv>^<^<v^v^>>v^v^^v>^>vv^>v<vvvv<^v<^v>^v>^^v<<^>^^<<>^><^v>>>vv^>^^>vvvv>>v<^<v>^>>>v^<><^<^^<v>vv^^><v>v^<>^^^>>><^^v>v>^<<>^<v^>vvv^>^^^><v<^>>v<v>>^v><<><<>v<^<<>^><>^>vv>^<v>^^v<<^v^vvv^^>^vv^<^>^>^^v>v^>^<<><<^>v>>vv^vv><v>>^<<^<v^^<^<v^^vv^><^^<^^><v^^>v^^^<^<>^<>>^v<^vvv^^v^<><^>>>>>v><><<<>vv<^v>><<>vvv<><<vv<<<^>v^^>>^>^v>><><^^v<>><>>v^>^<vv><<<>><><<v>^^<>>v<><^<vv>vv<^v>^<<<<v<^<<^^>>^<><^>><<>^>v>^^^v>>^<^^v><v^v>^><<><>>^>>^<<v<>^v<>^>^<v>>vv>^vvv<<v<<^>^>^<<^^<>^^^^vvv<>^vv<vvvvv^^>^^<^>>><>v^<><^<<^>v^^v<>>^vv<>v^^<>>v^vvvvv<<v^<v^^>>><vvvvv>><^>vv>v^v^<v<^>^^><^>^^^^v<><^v<<>v^>v>>vv<<>^<v^^>vvv>^^<v^<>vv^><>><v^^v<>^>>^>v><>>^^v>^>^>>>^>v<^v>v>^<^^^^^>>v<v<>>v<<^>^<v<<>^^>><<^><>v<>^^^vv<>^^>><<^^>v>vv>vv>v^>^v>v^^<>>><<v><v<<>>v><>vvv^^v>^^>^vvvv^>^<>^vvvv><v><v<>>><>^<^vv<>^v<^v<>^vvv<<>><vvv^>>^><<vv^<v^>^<v<<^^>^^<^^v^>v<>v^v><>><v^^>>^vvv><^vv>v^<^<^v>>v^^>^vvv^<v^^v^^>v<^<>>^<>>>^^<><^^vv<>^vv^<>>>>^^<<^^<>vv^^><>^^<v<<v>^<v^^>^v<><><>vvv>^v^>>vv<<^v<<>><v>^><^>>>^<^<^^>vv^<<^<>>^^><><<v>^^<v>>v<<vvvv>^v^vv>><^^<<^>>v>v<^^^<^><^^vv>^vv<^<vv<>v><^<><v><^^^>>^<><^<v>>>>v^<v>>>>>v<><^^>v<^<^>><v<>^>vv>^^v^v^<<v<><<<^v^><<^<><<<<v<^>><<<>v>>vv><vv<><<^<^<><vv>^^^^<>v<<<<v>vv<>vv^^^>><>vv^><>>^vv<<><^^vv<>v^>>^<<>^<v^<^>v<"
visited = set()
visited.add((0,0))
robo_x, robo_y, santa_x, santa_y = 0,0,0,0
roboturn = False
for c in INPUT:
if roboturn:
if c == '>':
robo_x+=1
if c == '<':
robo_x-=1
if c == '^':
robo_y+=1
if c == 'v':
robo_y-=1
visited.add((robo_x,robo_y))
else:
if c == '>':
santa_x+=1
if c == '<':
santa_x-=1
if c == '^':
santa_y+=1
if c == 'v':
santa_y-=1
visited.add((santa_x,santa_y))
roboturn = not roboturn
print("Visited %d houses" % len(visited))
| 289.833333
| 8,202
| 0.27142
| 1,608
| 8,695
| 1.457711
| 0.017413
| 0.691126
| 0.757679
| 0.735495
| 0.897184
| 0.889932
| 0.87116
| 0.835751
| 0.780717
| 0.72099
| 0
| 0.001633
| 0.014031
| 8,695
| 30
| 8,203
| 289.833333
| 0.271784
| 0
| 0
| 0.285714
| 0
| 0.035714
| 0.944917
| 0.942042
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.035714
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 15
|
70a749ed573d4ceca735541957ce29f530b4761a
| 8,719
|
py
|
Python
|
data_process.py
|
bisno/MER
|
360612439bf1fd1dafc9f70c74d6f90f47070877
|
[
"MIT"
] | 1
|
2020-09-08T09:19:41.000Z
|
2020-09-08T09:19:41.000Z
|
data_process.py
|
bisno/MER
|
360612439bf1fd1dafc9f70c74d6f90f47070877
|
[
"MIT"
] | null | null | null |
data_process.py
|
bisno/MER
|
360612439bf1fd1dafc9f70c74d6f90f47070877
|
[
"MIT"
] | 1
|
2020-09-08T09:19:45.000Z
|
2020-09-08T09:19:45.000Z
|
# -*- coding: UTF-8 -*-
import glob
import numpy as np
import pandas as pd
from PIL import Image
import random
# h,w = 60,50
h, w = (60, 50)
size = h * w
# Receding_Hairline Wearing_Necktie Rosy_Cheeks Eyeglasses Goatee Chubby
# Sideburns Blurry Wearing_Hat Double_Chin Pale_Skin Gray_Hair Mustache Bald
label_cls = 'Eyeglasses'
pngs = sorted(glob.glob('./data/img_align_celeba/*.jpg'))
data = pd.read_table('./data/list_attr_celeba.txt',
delim_whitespace=True, error_bad_lines=False)
eyeglasses = np.array(data[label_cls])
eyeglasses_cls = (eyeglasses + 1)/2
label_glasses = np.zeros((202599, 2))
correct_list = []
correct_list_test = []
false_list = []
false_list_test = []
for i in range(len(label_glasses)):
if eyeglasses_cls[i] == 1:
label_glasses[i][1] = 1
if i < 160000:
correct_list.append(i)
else:
correct_list_test.append(i)
else:
label_glasses[i][0] = 1
if i < 160000:
false_list.append(i)
else:
false_list_test.append(i)
print(len(correct_list_test), len(false_list_test))
training_set_label = label_glasses[0:160000, :]
test_set_label = label_glasses[160000:, :]
training_set_cls = eyeglasses_cls[0:160000]
test_set_cls = eyeglasses_cls[160000:]
def create_trainbatch(num=10, channel=0):
train_num = random.sample(false_list, num)
if channel == 0:
train_set = np.zeros((num, h, w))
else:
train_set = np.zeros((num, h, w, 3))
train_set_label_ = []
train_set_cls_ = []
for i in range(num):
img = Image.open(pngs[train_num[i]])
img_grey = img.resize((w, h))
if channel == 0:
img_grey = np.array(img_grey.convert('L'))
train_set[i, :, :] = img_grey
else:
img_grey = np.array(img_grey)
train_set[i, :, :, :] = img_grey
train_set_label_.append(training_set_label[train_num[i]])
train_set_cls_.append(training_set_cls[train_num[i]])
# if channel == 0:
# train_set = train_set.reshape(size,num).T
train_set_label_new = np.array(train_set_label_)
train_set_cls_new = np.array(train_set_cls_)
return train_set/255, train_set_label_new, train_set_cls_new
def create_trainbatch_all_correct(num=10, channel=0):
train_num = random.sample(correct_list, num)
if channel == 0:
train_set = np.zeros((num, h, w))
else:
train_set = np.zeros((num, h, w, 3))
train_set_label_ = []
train_set_cls_ = []
n = 0
for i in range(num):
img = Image.open(pngs[train_num[i]])
img_grey = img.resize((w, h))
if channel == 0:
img_grey = np.array(img_grey.convert('L'))
train_set[i, :, :] = img_grey
else:
img_grey = np.array(img_grey)
train_set[i, :, :, :] = img_grey
train_set_label_.append(training_set_label[train_num[i]])
train_set_cls_.append(training_set_cls[train_num[i]])
# if channel == 0:
# train_set = train_set.reshape(size,num).T
train_set_label_new = np.array(train_set_label_)
train_set_cls_new = np.array(train_set_cls_)
return train_set/255, train_set_label_new, train_set_cls_new
def create_trainbatch_(num=10, channel=0):
train_num1 = random.sample(correct_list, int(num/2))
train_num2 = random.sample(false_list, int(num/2))
train_num = train_num1+train_num2
if channel == 0:
train_set = np.zeros((num, h, w))
else:
train_set = np.zeros((num, h, w, 3))
train_set_label_ = []
train_set_cls_ = []
n = 0
for i in range(num):
img = Image.open(pngs[train_num[i]])
img_grey = img.resize((w, h))
if channel == 0:
img_grey = np.array(img_grey.convert('L'))
train_set[i, :, :] = img_grey
else:
img_grey = np.array(img_grey)
train_set[i, :, :, :] = img_grey
train_set_label_.append(training_set_label[train_num[i]])
train_set_cls_.append(training_set_cls[train_num[i]])
# if channel == 0:
# train_set = train_set.reshape(size,num).T
train_set_label_new = np.array(train_set_label_)
train_set_cls_new = np.array(train_set_cls_)
return train_set/255, train_set_label_new, train_set_cls_new
def create_trainbatch_grad(num=200, channel=0):
train_num1 = random.sample(correct_list, int(10))
train_num2 = random.sample(false_list, int(190))
train_num = train_num1+train_num2
if channel == 0:
train_set = np.zeros((num, h, w))
else:
train_set = np.zeros((num, h, w, 3))
train_set_label_ = []
train_set_cls_ = []
n = 0
for i in range(num):
img = Image.open(pngs[train_num[i]])
img_grey = img.resize((w, h))
if channel == 0:
img_grey = np.array(img_grey.convert('L'))
train_set[i, :, :] = img_grey
else:
img_grey = np.array(img_grey)
train_set[i, :, :, :] = img_grey
train_set_label_.append(training_set_label[train_num[i]])
train_set_cls_.append(training_set_cls[train_num[i]])
# if channel == 0:
# train_set = train_set.reshape(size,num).T
train_set_label_new = np.array(train_set_label_)
train_set_cls_new = np.array(train_set_cls_)
return train_set/255, train_set_label_new, train_set_cls_new
def create_testset(num=100, channel=0):
test_num1 = random.sample(correct_list_test, num)
test_num2 = random.sample(false_list_test, num)
test_num = test_num1 + test_num2
if channel == 0:
test_set = np.zeros((num*2, h, w))
else:
test_set = np.zeros((num*2, h, w, 3))
test_set_label_ = []
test_set_cls_ = []
for i in range(num*2):
img = Image.open(pngs[test_num[i]])
img_grey = img.resize((w, h))
if channel == 0:
img_grey = np.array(img_grey.convert('L'))
test_set[i, :, :] = img_grey
else:
img_grey = np.array(img_grey)
test_set[i, :, :, :] = img_grey
test_set_label_.append(label_glasses[test_num[i]])
test_set_cls_.append(eyeglasses_cls[test_num[i]])
# if channel == 0:
# test_set = test_set.reshape(size,num*2).T
test_set_label_new = np.array(test_set_label_)
test_set_cls_new = np.array(test_set_cls_)
return test_set/255, test_set_label_new, test_set_cls_new, test_set_cls_new.mean()*100
def create_testset_all(channel=0):
test_num1 = random.sample(correct_list_test, len(correct_list_test))
test_num2 = random.sample(false_list_test, len(false_list_test))
test_num = test_num1 + test_num2
# test_num =
num = len(test_num)
if channel == 0:
test_set = np.zeros((num, h, w))
else:
test_set = np.zeros((num, h, w, 3))
test_set_label_ = []
test_set_cls_ = []
for i in range(num):
img = Image.open(pngs[test_num[i]])
img_grey = img.resize((w, h))
if channel == 0:
img_grey = np.array(img_grey.convert('L'))
test_set[i, :, :] = img_grey
else:
img_grey = np.array(img_grey)
test_set[i, :, :, :] = img_grey
test_set_label_.append(label_glasses[test_num[i]])
test_set_cls_.append(eyeglasses_cls[test_num[i]])
# if channel == 0:
# test_set = test_set.reshape(size,num).T
test_set_label_new = np.array(test_set_label_)
test_set_cls_new = np.array(test_set_cls_)
return test_set/255, test_set_label_new, test_set_cls_new, test_set_cls_new.mean()*100
def create_testset_unbalanced(channel=0):
test_num1 = random.sample(correct_list_test, 10)
test_num2 = random.sample(false_list_test, 190)
test_num = test_num1 + test_num2
# test_num =
num = len(test_num)
if channel == 0:
test_set = np.zeros((num, h, w))
else:
test_set = np.zeros((num, h, w, 3))
test_set_label_ = []
test_set_cls_ = []
for i in range(num):
img = Image.open(pngs[test_num[i]])
img_grey = img.resize((w, h))
if channel == 0:
img_grey = np.array(img_grey.convert('L'))
test_set[i, :, :] = img_grey
else:
img_grey = np.array(img_grey)
test_set[i, :, :, :] = img_grey
test_set_label_.append(label_glasses[test_num[i]])
test_set_cls_.append(eyeglasses_cls[test_num[i]])
# if channel == 0:
# test_set = test_set.reshape(size,num).T
test_set_label_new = np.array(test_set_label_)
test_set_cls_new = np.array(test_set_cls_)
return test_set/255, test_set_label_new, test_set_cls_new, test_set_cls_new.mean()*100
| 31.139286
| 90
| 0.626563
| 1,330
| 8,719
| 3.748872
| 0.084211
| 0.109106
| 0.042118
| 0.036502
| 0.819896
| 0.818291
| 0.805656
| 0.772563
| 0.744083
| 0.700963
| 0
| 0.026965
| 0.247161
| 8,719
| 279
| 91
| 31.250896
| 0.732633
| 0.074665
| 0
| 0.741463
| 0
| 0
| 0.009072
| 0.006959
| 0
| 0
| 0
| 0
| 0
| 1
| 0.034146
| false
| 0
| 0.02439
| 0
| 0.092683
| 0.004878
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5669be41a2eca5e043dc7d889e12c60a2e71c408
| 204
|
py
|
Python
|
desktop/core/ext-py/nose-1.3.7/unit_tests/test_issue_786.py
|
kokosing/hue
|
2307f5379a35aae9be871e836432e6f45138b3d9
|
[
"Apache-2.0"
] | 5,079
|
2015-01-01T03:39:46.000Z
|
2022-03-31T07:38:22.000Z
|
desktop/core/ext-py/nose-1.3.7/unit_tests/test_issue_786.py
|
zks888/hue
|
93a8c370713e70b216c428caa2f75185ef809deb
|
[
"Apache-2.0"
] | 1,623
|
2015-01-01T08:06:24.000Z
|
2022-03-30T19:48:52.000Z
|
desktop/core/ext-py/nose-1.3.7/unit_tests/test_issue_786.py
|
zks888/hue
|
93a8c370713e70b216c428caa2f75185ef809deb
|
[
"Apache-2.0"
] | 2,033
|
2015-01-04T07:18:02.000Z
|
2022-03-28T19:55:47.000Z
|
def test_evens():
yield check_even_cls
class Test(object):
def test_evens(self):
yield check_even_cls
class Check(object):
def __call__(self):
pass
check_even_cls = Check()
| 15.692308
| 28
| 0.671569
| 29
| 204
| 4.310345
| 0.413793
| 0.216
| 0.288
| 0.272
| 0.352
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.240196
| 204
| 12
| 29
| 17
| 0.806452
| 0
| 0
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.111111
| 0
| 0
| 0.555556
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
5676a65ea8022f36eb9c443924fcb1b6a1fa8a6d
| 796,813
|
py
|
Python
|
sdk/python/pulumi_yandex/_inputs.py
|
pulumi/pulumi-yandex
|
559a0c82fd2b834bb5f1dc3abbf0dab689b13a3e
|
[
"ECL-2.0",
"Apache-2.0"
] | 9
|
2021-04-20T15:39:41.000Z
|
2022-02-20T09:14:39.000Z
|
sdk/python/pulumi_yandex/_inputs.py
|
pulumi/pulumi-yandex
|
559a0c82fd2b834bb5f1dc3abbf0dab689b13a3e
|
[
"ECL-2.0",
"Apache-2.0"
] | 56
|
2021-04-20T11:31:03.000Z
|
2022-03-31T15:53:06.000Z
|
sdk/python/pulumi_yandex/_inputs.py
|
pulumi/pulumi-yandex
|
559a0c82fd2b834bb5f1dc3abbf0dab689b13a3e
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = [
'AlbBackendGroupGrpcBackendArgs',
'AlbBackendGroupGrpcBackendHealthcheckArgs',
'AlbBackendGroupGrpcBackendHealthcheckGrpcHealthcheckArgs',
'AlbBackendGroupGrpcBackendHealthcheckHttpHealthcheckArgs',
'AlbBackendGroupGrpcBackendHealthcheckStreamHealthcheckArgs',
'AlbBackendGroupGrpcBackendLoadBalancingConfigArgs',
'AlbBackendGroupGrpcBackendTlsArgs',
'AlbBackendGroupGrpcBackendTlsValidationContextArgs',
'AlbBackendGroupHttpBackendArgs',
'AlbBackendGroupHttpBackendHealthcheckArgs',
'AlbBackendGroupHttpBackendHealthcheckGrpcHealthcheckArgs',
'AlbBackendGroupHttpBackendHealthcheckHttpHealthcheckArgs',
'AlbBackendGroupHttpBackendHealthcheckStreamHealthcheckArgs',
'AlbBackendGroupHttpBackendLoadBalancingConfigArgs',
'AlbBackendGroupHttpBackendTlsArgs',
'AlbBackendGroupHttpBackendTlsValidationContextArgs',
'AlbLoadBalancerAllocationPolicyArgs',
'AlbLoadBalancerAllocationPolicyLocationArgs',
'AlbLoadBalancerListenerArgs',
'AlbLoadBalancerListenerEndpointArgs',
'AlbLoadBalancerListenerEndpointAddressArgs',
'AlbLoadBalancerListenerEndpointAddressExternalIpv4AddressArgs',
'AlbLoadBalancerListenerEndpointAddressExternalIpv6AddressArgs',
'AlbLoadBalancerListenerEndpointAddressInternalIpv4AddressArgs',
'AlbLoadBalancerListenerHttpArgs',
'AlbLoadBalancerListenerHttpHandlerArgs',
'AlbLoadBalancerListenerHttpHandlerHttp2OptionsArgs',
'AlbLoadBalancerListenerHttpRedirectsArgs',
'AlbLoadBalancerListenerTlsArgs',
'AlbLoadBalancerListenerTlsDefaultHandlerArgs',
'AlbLoadBalancerListenerTlsDefaultHandlerHttpHandlerArgs',
'AlbLoadBalancerListenerTlsDefaultHandlerHttpHandlerHttp2OptionsArgs',
'AlbLoadBalancerListenerTlsSniHandlerArgs',
'AlbLoadBalancerListenerTlsSniHandlerHandlerArgs',
'AlbLoadBalancerListenerTlsSniHandlerHandlerHttpHandlerArgs',
'AlbLoadBalancerListenerTlsSniHandlerHandlerHttpHandlerHttp2OptionsArgs',
'AlbTargetGroupTargetArgs',
'AlbVirtualHostModifyRequestHeaderArgs',
'AlbVirtualHostModifyResponseHeaderArgs',
'AlbVirtualHostRouteArgs',
'AlbVirtualHostRouteGrpcRouteArgs',
'AlbVirtualHostRouteGrpcRouteGrpcMatchArgs',
'AlbVirtualHostRouteGrpcRouteGrpcMatchFqmnArgs',
'AlbVirtualHostRouteGrpcRouteGrpcRouteActionArgs',
'AlbVirtualHostRouteGrpcRouteGrpcStatusResponseActionArgs',
'AlbVirtualHostRouteHttpRouteArgs',
'AlbVirtualHostRouteHttpRouteDirectResponseActionArgs',
'AlbVirtualHostRouteHttpRouteHttpMatchArgs',
'AlbVirtualHostRouteHttpRouteHttpMatchPathArgs',
'AlbVirtualHostRouteHttpRouteHttpRouteActionArgs',
'AlbVirtualHostRouteHttpRouteRedirectActionArgs',
'ComputeDiskDiskPlacementPolicyArgs',
'ComputeInstanceBootDiskArgs',
'ComputeInstanceBootDiskInitializeParamsArgs',
'ComputeInstanceGroupAllocationPolicyArgs',
'ComputeInstanceGroupApplicationLoadBalancerArgs',
'ComputeInstanceGroupDeployPolicyArgs',
'ComputeInstanceGroupHealthCheckArgs',
'ComputeInstanceGroupHealthCheckHttpOptionArgs',
'ComputeInstanceGroupHealthCheckTcpOptionArgs',
'ComputeInstanceGroupInstanceArgs',
'ComputeInstanceGroupInstanceNetworkInterfaceArgs',
'ComputeInstanceGroupInstanceTemplateArgs',
'ComputeInstanceGroupInstanceTemplateBootDiskArgs',
'ComputeInstanceGroupInstanceTemplateBootDiskInitializeParamsArgs',
'ComputeInstanceGroupInstanceTemplateNetworkInterfaceArgs',
'ComputeInstanceGroupInstanceTemplateNetworkInterfaceDnsRecordArgs',
'ComputeInstanceGroupInstanceTemplateNetworkInterfaceIpv6DnsRecordArgs',
'ComputeInstanceGroupInstanceTemplateNetworkInterfaceNatDnsRecordArgs',
'ComputeInstanceGroupInstanceTemplateNetworkSettingArgs',
'ComputeInstanceGroupInstanceTemplatePlacementPolicyArgs',
'ComputeInstanceGroupInstanceTemplateResourcesArgs',
'ComputeInstanceGroupInstanceTemplateSchedulingPolicyArgs',
'ComputeInstanceGroupInstanceTemplateSecondaryDiskArgs',
'ComputeInstanceGroupInstanceTemplateSecondaryDiskInitializeParamsArgs',
'ComputeInstanceGroupLoadBalancerArgs',
'ComputeInstanceGroupScalePolicyArgs',
'ComputeInstanceGroupScalePolicyAutoScaleArgs',
'ComputeInstanceGroupScalePolicyAutoScaleCustomRuleArgs',
'ComputeInstanceGroupScalePolicyFixedScaleArgs',
'ComputeInstanceGroupScalePolicyTestAutoScaleArgs',
'ComputeInstanceGroupScalePolicyTestAutoScaleCustomRuleArgs',
'ComputeInstanceNetworkInterfaceArgs',
'ComputeInstanceNetworkInterfaceDnsRecordArgs',
'ComputeInstanceNetworkInterfaceIpv6DnsRecordArgs',
'ComputeInstanceNetworkInterfaceNatDnsRecordArgs',
'ComputeInstancePlacementPolicyArgs',
'ComputeInstanceResourcesArgs',
'ComputeInstanceSchedulingPolicyArgs',
'ComputeInstanceSecondaryDiskArgs',
'DataprocClusterClusterConfigArgs',
'DataprocClusterClusterConfigHadoopArgs',
'DataprocClusterClusterConfigSubclusterSpecArgs',
'DataprocClusterClusterConfigSubclusterSpecAutoscalingConfigArgs',
'DataprocClusterClusterConfigSubclusterSpecResourcesArgs',
'FunctionContentArgs',
'FunctionPackageArgs',
'FunctionScalingPolicyPolicyArgs',
'FunctionTriggerDlqArgs',
'FunctionTriggerFunctionArgs',
'FunctionTriggerIotArgs',
'FunctionTriggerLogGroupArgs',
'FunctionTriggerLoggingArgs',
'FunctionTriggerMessageQueueArgs',
'FunctionTriggerObjectStorageArgs',
'FunctionTriggerTimerArgs',
'KubernetesClusterKmsProviderArgs',
'KubernetesClusterMasterArgs',
'KubernetesClusterMasterMaintenancePolicyArgs',
'KubernetesClusterMasterMaintenancePolicyMaintenanceWindowArgs',
'KubernetesClusterMasterRegionalArgs',
'KubernetesClusterMasterRegionalLocationArgs',
'KubernetesClusterMasterVersionInfoArgs',
'KubernetesClusterMasterZonalArgs',
'KubernetesClusterNetworkImplementationArgs',
'KubernetesClusterNetworkImplementationCiliumArgs',
'KubernetesNodeGroupAllocationPolicyArgs',
'KubernetesNodeGroupAllocationPolicyLocationArgs',
'KubernetesNodeGroupDeployPolicyArgs',
'KubernetesNodeGroupInstanceTemplateArgs',
'KubernetesNodeGroupInstanceTemplateBootDiskArgs',
'KubernetesNodeGroupInstanceTemplateNetworkInterfaceArgs',
'KubernetesNodeGroupInstanceTemplatePlacementPolicyArgs',
'KubernetesNodeGroupInstanceTemplateResourcesArgs',
'KubernetesNodeGroupInstanceTemplateSchedulingPolicyArgs',
'KubernetesNodeGroupMaintenancePolicyArgs',
'KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs',
'KubernetesNodeGroupScalePolicyArgs',
'KubernetesNodeGroupScalePolicyAutoScaleArgs',
'KubernetesNodeGroupScalePolicyFixedScaleArgs',
'KubernetesNodeGroupVersionInfoArgs',
'LbNetworkLoadBalancerAttachedTargetGroupArgs',
'LbNetworkLoadBalancerAttachedTargetGroupHealthcheckArgs',
'LbNetworkLoadBalancerAttachedTargetGroupHealthcheckHttpOptionsArgs',
'LbNetworkLoadBalancerAttachedTargetGroupHealthcheckTcpOptionsArgs',
'LbNetworkLoadBalancerListenerArgs',
'LbNetworkLoadBalancerListenerExternalAddressSpecArgs',
'LbNetworkLoadBalancerListenerInternalAddressSpecArgs',
'LbTargetGroupTargetArgs',
'MdbClickhouseClusterAccessArgs',
'MdbClickhouseClusterBackupWindowStartArgs',
'MdbClickhouseClusterClickhouseArgs',
'MdbClickhouseClusterClickhouseConfigArgs',
'MdbClickhouseClusterClickhouseConfigCompressionArgs',
'MdbClickhouseClusterClickhouseConfigGraphiteRollupArgs',
'MdbClickhouseClusterClickhouseConfigGraphiteRollupPatternArgs',
'MdbClickhouseClusterClickhouseConfigGraphiteRollupPatternRetentionArgs',
'MdbClickhouseClusterClickhouseConfigKafkaArgs',
'MdbClickhouseClusterClickhouseConfigKafkaTopicArgs',
'MdbClickhouseClusterClickhouseConfigKafkaTopicSettingsArgs',
'MdbClickhouseClusterClickhouseConfigMergeTreeArgs',
'MdbClickhouseClusterClickhouseConfigRabbitmqArgs',
'MdbClickhouseClusterClickhouseResourcesArgs',
'MdbClickhouseClusterCloudStorageArgs',
'MdbClickhouseClusterDatabaseArgs',
'MdbClickhouseClusterFormatSchemaArgs',
'MdbClickhouseClusterHostArgs',
'MdbClickhouseClusterMaintenanceWindowArgs',
'MdbClickhouseClusterMlModelArgs',
'MdbClickhouseClusterShardGroupArgs',
'MdbClickhouseClusterUserArgs',
'MdbClickhouseClusterUserPermissionArgs',
'MdbClickhouseClusterUserQuotaArgs',
'MdbClickhouseClusterUserSettingsArgs',
'MdbClickhouseClusterZookeeperArgs',
'MdbClickhouseClusterZookeeperResourcesArgs',
'MdbElasticSearchClusterConfigArgs',
'MdbElasticSearchClusterConfigDataNodeArgs',
'MdbElasticSearchClusterConfigDataNodeResourcesArgs',
'MdbElasticSearchClusterConfigMasterNodeArgs',
'MdbElasticSearchClusterConfigMasterNodeResourcesArgs',
'MdbElasticSearchClusterHostArgs',
'MdbGreenplumClusterAccessArgs',
'MdbGreenplumClusterBackupWindowStartArgs',
'MdbGreenplumClusterMasterHostArgs',
'MdbGreenplumClusterMasterSubclusterArgs',
'MdbGreenplumClusterMasterSubclusterResourcesArgs',
'MdbGreenplumClusterSegmentHostArgs',
'MdbGreenplumClusterSegmentSubclusterArgs',
'MdbGreenplumClusterSegmentSubclusterResourcesArgs',
'MdbKafkaClusterConfigArgs',
'MdbKafkaClusterConfigKafkaArgs',
'MdbKafkaClusterConfigKafkaKafkaConfigArgs',
'MdbKafkaClusterConfigKafkaResourcesArgs',
'MdbKafkaClusterConfigZookeeperArgs',
'MdbKafkaClusterConfigZookeeperResourcesArgs',
'MdbKafkaClusterHostArgs',
'MdbKafkaClusterTopicArgs',
'MdbKafkaClusterTopicTopicConfigArgs',
'MdbKafkaClusterUserArgs',
'MdbKafkaClusterUserPermissionArgs',
'MdbKafkaTopicTopicConfigArgs',
'MdbMongodbClusterClusterConfigArgs',
'MdbMongodbClusterClusterConfigAccessArgs',
'MdbMongodbClusterClusterConfigBackupWindowStartArgs',
'MdbMongodbClusterDatabaseArgs',
'MdbMongodbClusterHostArgs',
'MdbMongodbClusterMaintenanceWindowArgs',
'MdbMongodbClusterResourcesArgs',
'MdbMongodbClusterUserArgs',
'MdbMongodbClusterUserPermissionArgs',
'MdbMysqlClusterAccessArgs',
'MdbMysqlClusterBackupWindowStartArgs',
'MdbMysqlClusterDatabaseArgs',
'MdbMysqlClusterHostArgs',
'MdbMysqlClusterMaintenanceWindowArgs',
'MdbMysqlClusterResourcesArgs',
'MdbMysqlClusterRestoreArgs',
'MdbMysqlClusterUserArgs',
'MdbMysqlClusterUserConnectionLimitsArgs',
'MdbMysqlClusterUserPermissionArgs',
'MdbRedisClusterConfigArgs',
'MdbRedisClusterHostArgs',
'MdbRedisClusterMaintenanceWindowArgs',
'MdbRedisClusterResourcesArgs',
'MdbSqlServerClusterBackupWindowStartArgs',
'MdbSqlServerClusterDatabaseArgs',
'MdbSqlServerClusterHostArgs',
'MdbSqlServerClusterResourcesArgs',
'MdbSqlServerClusterUserArgs',
'MdbSqlServerClusterUserPermissionArgs',
'StorageBucketCorsRuleArgs',
'StorageBucketGrantArgs',
'StorageBucketLifecycleRuleArgs',
'StorageBucketLifecycleRuleExpirationArgs',
'StorageBucketLifecycleRuleNoncurrentVersionExpirationArgs',
'StorageBucketLifecycleRuleNoncurrentVersionTransitionArgs',
'StorageBucketLifecycleRuleTransitionArgs',
'StorageBucketLoggingArgs',
'StorageBucketServerSideEncryptionConfigurationArgs',
'StorageBucketServerSideEncryptionConfigurationRuleArgs',
'StorageBucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs',
'StorageBucketVersioningArgs',
'StorageBucketWebsiteArgs',
'VpcAddressExternalIpv4AddressArgs',
'VpcDefaultSecurityGroupEgressArgs',
'VpcDefaultSecurityGroupIngressArgs',
'VpcRouteTableStaticRouteArgs',
'VpcSecurityGroupEgressArgs',
'VpcSecurityGroupIngressArgs',
'VpcSubnetDhcpOptionsArgs',
'YdbDatabaseDedicatedLocationArgs',
'YdbDatabaseDedicatedLocationRegionArgs',
'YdbDatabaseDedicatedScalePolicyArgs',
'YdbDatabaseDedicatedScalePolicyFixedScaleArgs',
'YdbDatabaseDedicatedStorageConfigArgs',
'GetAlbBackendGroupGrpcBackendArgs',
'GetAlbBackendGroupGrpcBackendHealthcheckArgs',
'GetAlbBackendGroupGrpcBackendHealthcheckGrpcHealthcheckArgs',
'GetAlbBackendGroupGrpcBackendHealthcheckHttpHealthcheckArgs',
'GetAlbBackendGroupGrpcBackendHealthcheckStreamHealthcheckArgs',
'GetAlbBackendGroupGrpcBackendLoadBalancingConfigArgs',
'GetAlbBackendGroupGrpcBackendTlsArgs',
'GetAlbBackendGroupGrpcBackendTlsValidationContextArgs',
'GetAlbBackendGroupHttpBackendArgs',
'GetAlbBackendGroupHttpBackendHealthcheckArgs',
'GetAlbBackendGroupHttpBackendHealthcheckGrpcHealthcheckArgs',
'GetAlbBackendGroupHttpBackendHealthcheckHttpHealthcheckArgs',
'GetAlbBackendGroupHttpBackendHealthcheckStreamHealthcheckArgs',
'GetAlbBackendGroupHttpBackendLoadBalancingConfigArgs',
'GetAlbBackendGroupHttpBackendTlsArgs',
'GetAlbBackendGroupHttpBackendTlsValidationContextArgs',
'GetComputeDiskDiskPlacementPolicyArgs',
'GetComputeInstancePlacementPolicyArgs',
'GetComputeInstanceSchedulingPolicyArgs',
'GetFunctionScalingPolicyPolicyArgs',
'GetIamPolicyBindingArgs',
'GetMdbClickhouseClusterCloudStorageArgs',
'GetMdbKafkaClusterConfigArgs',
'GetMdbKafkaClusterConfigKafkaArgs',
'GetMdbKafkaClusterConfigKafkaKafkaConfigArgs',
'GetMdbKafkaClusterConfigKafkaResourcesArgs',
'GetMdbKafkaClusterConfigZookeeperArgs',
'GetMdbKafkaClusterConfigZookeeperResourcesArgs',
'GetMdbKafkaClusterTopicArgs',
'GetMdbKafkaClusterTopicTopicConfigArgs',
'GetMdbKafkaClusterUserArgs',
'GetMdbKafkaClusterUserPermissionArgs',
'GetMdbMysqlClusterAccessArgs',
]
@pulumi.input_type
class AlbBackendGroupGrpcBackendArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
target_group_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
healthcheck: Optional[pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckArgs']] = None,
load_balancing_config: Optional[pulumi.Input['AlbBackendGroupGrpcBackendLoadBalancingConfigArgs']] = None,
port: Optional[pulumi.Input[int]] = None,
tls: Optional[pulumi.Input['AlbBackendGroupGrpcBackendTlsArgs']] = None,
weight: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] name: Name of the backend.
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_group_ids: References target groups for the backend.
:param pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckArgs'] healthcheck: Healthcheck specification that will be used by this backend. Structure is documented below.
:param pulumi.Input['AlbBackendGroupGrpcBackendLoadBalancingConfigArgs'] load_balancing_config: Load Balancing Config specification that will be used by this backend. Structure is documented below.
:param pulumi.Input[int] port: Port for incoming traffic.
:param pulumi.Input['AlbBackendGroupGrpcBackendTlsArgs'] tls: Tls specification that will be used by this backend. Structure is documented below.
:param pulumi.Input[int] weight: Weight of the backend. Traffic will be split between backends of the same BackendGroup according to their weights.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "target_group_ids", target_group_ids)
if healthcheck is not None:
pulumi.set(__self__, "healthcheck", healthcheck)
if load_balancing_config is not None:
pulumi.set(__self__, "load_balancing_config", load_balancing_config)
if port is not None:
pulumi.set(__self__, "port", port)
if tls is not None:
pulumi.set(__self__, "tls", tls)
if weight is not None:
pulumi.set(__self__, "weight", weight)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Name of the backend.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="targetGroupIds")
def target_group_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
References target groups for the backend.
"""
return pulumi.get(self, "target_group_ids")
@target_group_ids.setter
def target_group_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "target_group_ids", value)
@property
@pulumi.getter
def healthcheck(self) -> Optional[pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckArgs']]:
"""
Healthcheck specification that will be used by this backend. Structure is documented below.
"""
return pulumi.get(self, "healthcheck")
@healthcheck.setter
def healthcheck(self, value: Optional[pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckArgs']]):
pulumi.set(self, "healthcheck", value)
@property
@pulumi.getter(name="loadBalancingConfig")
def load_balancing_config(self) -> Optional[pulumi.Input['AlbBackendGroupGrpcBackendLoadBalancingConfigArgs']]:
"""
Load Balancing Config specification that will be used by this backend. Structure is documented below.
"""
return pulumi.get(self, "load_balancing_config")
@load_balancing_config.setter
def load_balancing_config(self, value: Optional[pulumi.Input['AlbBackendGroupGrpcBackendLoadBalancingConfigArgs']]):
pulumi.set(self, "load_balancing_config", value)
@property
@pulumi.getter
def port(self) -> Optional[pulumi.Input[int]]:
"""
Port for incoming traffic.
"""
return pulumi.get(self, "port")
@port.setter
def port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "port", value)
@property
@pulumi.getter
def tls(self) -> Optional[pulumi.Input['AlbBackendGroupGrpcBackendTlsArgs']]:
"""
Tls specification that will be used by this backend. Structure is documented below.
"""
return pulumi.get(self, "tls")
@tls.setter
def tls(self, value: Optional[pulumi.Input['AlbBackendGroupGrpcBackendTlsArgs']]):
pulumi.set(self, "tls", value)
@property
@pulumi.getter
def weight(self) -> Optional[pulumi.Input[int]]:
"""
Weight of the backend. Traffic will be split between backends of the same BackendGroup according to their weights.
"""
return pulumi.get(self, "weight")
@weight.setter
def weight(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "weight", value)
@pulumi.input_type
class AlbBackendGroupGrpcBackendHealthcheckArgs:
def __init__(__self__, *,
interval: pulumi.Input[str],
timeout: pulumi.Input[str],
grpc_healthcheck: Optional[pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckGrpcHealthcheckArgs']] = None,
healthcheck_port: Optional[pulumi.Input[int]] = None,
healthy_threshold: Optional[pulumi.Input[int]] = None,
http_healthcheck: Optional[pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckHttpHealthcheckArgs']] = None,
interval_jitter_percent: Optional[pulumi.Input[float]] = None,
stream_healthcheck: Optional[pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckStreamHealthcheckArgs']] = None,
unhealthy_threshold: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] interval: Interval between health checks.
:param pulumi.Input[str] timeout: Time to wait for a health check response.
:param pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckGrpcHealthcheckArgs'] grpc_healthcheck: Grpc Healthcheck specification that will be used by this healthcheck. Structure is documented below.
:param pulumi.Input[int] healthcheck_port: Optional alternative port for health checking.
:param pulumi.Input[int] healthy_threshold: Number of consecutive successful health checks required to promote endpoint into the healthy state. 0 means 1. Note that during startup, only a single successful health check is required to mark a host healthy.
:param pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckHttpHealthcheckArgs'] http_healthcheck: Http Healthcheck specification that will be used by this healthcheck. Structure is documented below.
:param pulumi.Input[float] interval_jitter_percent: An optional jitter amount as a percentage of interval. If specified, during every interval value of (interval_ms * interval_jitter_percent / 100) will be added to the wait time.
:param pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckStreamHealthcheckArgs'] stream_healthcheck: Stream Healthcheck specification that will be used by this healthcheck. Structure is documented below.
:param pulumi.Input[int] unhealthy_threshold: Number of consecutive failed health checks required to demote endpoint into the unhealthy state. 0 means 1. Note that for HTTP health checks, a single 503 immediately makes endpoint unhealthy.
"""
pulumi.set(__self__, "interval", interval)
pulumi.set(__self__, "timeout", timeout)
if grpc_healthcheck is not None:
pulumi.set(__self__, "grpc_healthcheck", grpc_healthcheck)
if healthcheck_port is not None:
pulumi.set(__self__, "healthcheck_port", healthcheck_port)
if healthy_threshold is not None:
pulumi.set(__self__, "healthy_threshold", healthy_threshold)
if http_healthcheck is not None:
pulumi.set(__self__, "http_healthcheck", http_healthcheck)
if interval_jitter_percent is not None:
pulumi.set(__self__, "interval_jitter_percent", interval_jitter_percent)
if stream_healthcheck is not None:
pulumi.set(__self__, "stream_healthcheck", stream_healthcheck)
if unhealthy_threshold is not None:
pulumi.set(__self__, "unhealthy_threshold", unhealthy_threshold)
@property
@pulumi.getter
def interval(self) -> pulumi.Input[str]:
"""
Interval between health checks.
"""
return pulumi.get(self, "interval")
@interval.setter
def interval(self, value: pulumi.Input[str]):
pulumi.set(self, "interval", value)
@property
@pulumi.getter
def timeout(self) -> pulumi.Input[str]:
"""
Time to wait for a health check response.
"""
return pulumi.get(self, "timeout")
@timeout.setter
def timeout(self, value: pulumi.Input[str]):
pulumi.set(self, "timeout", value)
@property
@pulumi.getter(name="grpcHealthcheck")
def grpc_healthcheck(self) -> Optional[pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckGrpcHealthcheckArgs']]:
"""
Grpc Healthcheck specification that will be used by this healthcheck. Structure is documented below.
"""
return pulumi.get(self, "grpc_healthcheck")
@grpc_healthcheck.setter
def grpc_healthcheck(self, value: Optional[pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckGrpcHealthcheckArgs']]):
pulumi.set(self, "grpc_healthcheck", value)
@property
@pulumi.getter(name="healthcheckPort")
def healthcheck_port(self) -> Optional[pulumi.Input[int]]:
"""
Optional alternative port for health checking.
"""
return pulumi.get(self, "healthcheck_port")
@healthcheck_port.setter
def healthcheck_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "healthcheck_port", value)
@property
@pulumi.getter(name="healthyThreshold")
def healthy_threshold(self) -> Optional[pulumi.Input[int]]:
"""
Number of consecutive successful health checks required to promote endpoint into the healthy state. 0 means 1. Note that during startup, only a single successful health check is required to mark a host healthy.
"""
return pulumi.get(self, "healthy_threshold")
@healthy_threshold.setter
def healthy_threshold(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "healthy_threshold", value)
@property
@pulumi.getter(name="httpHealthcheck")
def http_healthcheck(self) -> Optional[pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckHttpHealthcheckArgs']]:
"""
Http Healthcheck specification that will be used by this healthcheck. Structure is documented below.
"""
return pulumi.get(self, "http_healthcheck")
@http_healthcheck.setter
def http_healthcheck(self, value: Optional[pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckHttpHealthcheckArgs']]):
pulumi.set(self, "http_healthcheck", value)
@property
@pulumi.getter(name="intervalJitterPercent")
def interval_jitter_percent(self) -> Optional[pulumi.Input[float]]:
"""
An optional jitter amount as a percentage of interval. If specified, during every interval value of (interval_ms * interval_jitter_percent / 100) will be added to the wait time.
"""
return pulumi.get(self, "interval_jitter_percent")
@interval_jitter_percent.setter
def interval_jitter_percent(self, value: Optional[pulumi.Input[float]]):
pulumi.set(self, "interval_jitter_percent", value)
@property
@pulumi.getter(name="streamHealthcheck")
def stream_healthcheck(self) -> Optional[pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckStreamHealthcheckArgs']]:
"""
Stream Healthcheck specification that will be used by this healthcheck. Structure is documented below.
"""
return pulumi.get(self, "stream_healthcheck")
@stream_healthcheck.setter
def stream_healthcheck(self, value: Optional[pulumi.Input['AlbBackendGroupGrpcBackendHealthcheckStreamHealthcheckArgs']]):
pulumi.set(self, "stream_healthcheck", value)
@property
@pulumi.getter(name="unhealthyThreshold")
def unhealthy_threshold(self) -> Optional[pulumi.Input[int]]:
"""
Number of consecutive failed health checks required to demote endpoint into the unhealthy state. 0 means 1. Note that for HTTP health checks, a single 503 immediately makes endpoint unhealthy.
"""
return pulumi.get(self, "unhealthy_threshold")
@unhealthy_threshold.setter
def unhealthy_threshold(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "unhealthy_threshold", value)
@pulumi.input_type
class AlbBackendGroupGrpcBackendHealthcheckGrpcHealthcheckArgs:
def __init__(__self__, *,
service_name: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] service_name: Service name for grpc.health.v1.HealthCheckRequest message.
"""
if service_name is not None:
pulumi.set(__self__, "service_name", service_name)
@property
@pulumi.getter(name="serviceName")
def service_name(self) -> Optional[pulumi.Input[str]]:
"""
Service name for grpc.health.v1.HealthCheckRequest message.
"""
return pulumi.get(self, "service_name")
@service_name.setter
def service_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "service_name", value)
@pulumi.input_type
class AlbBackendGroupGrpcBackendHealthcheckHttpHealthcheckArgs:
def __init__(__self__, *,
path: pulumi.Input[str],
host: Optional[pulumi.Input[str]] = None,
http2: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[str] path: HTTP path.
:param pulumi.Input[str] host: "Host" HTTP header value.
:param pulumi.Input[bool] http2: If set, health checks will use HTTP2.
"""
pulumi.set(__self__, "path", path)
if host is not None:
pulumi.set(__self__, "host", host)
if http2 is not None:
pulumi.set(__self__, "http2", http2)
@property
@pulumi.getter
def path(self) -> pulumi.Input[str]:
"""
HTTP path.
"""
return pulumi.get(self, "path")
@path.setter
def path(self, value: pulumi.Input[str]):
pulumi.set(self, "path", value)
@property
@pulumi.getter
def host(self) -> Optional[pulumi.Input[str]]:
"""
"Host" HTTP header value.
"""
return pulumi.get(self, "host")
@host.setter
def host(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "host", value)
@property
@pulumi.getter
def http2(self) -> Optional[pulumi.Input[bool]]:
"""
If set, health checks will use HTTP2.
"""
return pulumi.get(self, "http2")
@http2.setter
def http2(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "http2", value)
@pulumi.input_type
class AlbBackendGroupGrpcBackendHealthcheckStreamHealthcheckArgs:
def __init__(__self__, *,
receive: Optional[pulumi.Input[str]] = None,
send: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] receive: Text to search in reply.
:param pulumi.Input[str] send: Message to send. If empty, it's a connect-only health check.
"""
if receive is not None:
pulumi.set(__self__, "receive", receive)
if send is not None:
pulumi.set(__self__, "send", send)
@property
@pulumi.getter
def receive(self) -> Optional[pulumi.Input[str]]:
"""
Text to search in reply.
"""
return pulumi.get(self, "receive")
@receive.setter
def receive(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "receive", value)
@property
@pulumi.getter
def send(self) -> Optional[pulumi.Input[str]]:
"""
Message to send. If empty, it's a connect-only health check.
"""
return pulumi.get(self, "send")
@send.setter
def send(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "send", value)
@pulumi.input_type
class AlbBackendGroupGrpcBackendLoadBalancingConfigArgs:
def __init__(__self__, *,
locality_aware_routing_percent: Optional[pulumi.Input[int]] = None,
panic_threshold: Optional[pulumi.Input[int]] = None,
strict_locality: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[int] locality_aware_routing_percent: Percent of traffic to be sent to the same availability zone. The rest will be equally divided between other zones.
:param pulumi.Input[int] panic_threshold: If percentage of healthy hosts in the backend is lower than panic_threshold, traffic will be routed to all backends no matter what the health status is. This helps to avoid healthy backends overloading when everything is bad. Zero means no panic threshold.
:param pulumi.Input[bool] strict_locality: If set, will route requests only to the same availability zone. Balancer won't know about endpoints in other zones.
"""
if locality_aware_routing_percent is not None:
pulumi.set(__self__, "locality_aware_routing_percent", locality_aware_routing_percent)
if panic_threshold is not None:
pulumi.set(__self__, "panic_threshold", panic_threshold)
if strict_locality is not None:
pulumi.set(__self__, "strict_locality", strict_locality)
@property
@pulumi.getter(name="localityAwareRoutingPercent")
def locality_aware_routing_percent(self) -> Optional[pulumi.Input[int]]:
"""
Percent of traffic to be sent to the same availability zone. The rest will be equally divided between other zones.
"""
return pulumi.get(self, "locality_aware_routing_percent")
@locality_aware_routing_percent.setter
def locality_aware_routing_percent(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "locality_aware_routing_percent", value)
@property
@pulumi.getter(name="panicThreshold")
def panic_threshold(self) -> Optional[pulumi.Input[int]]:
"""
If percentage of healthy hosts in the backend is lower than panic_threshold, traffic will be routed to all backends no matter what the health status is. This helps to avoid healthy backends overloading when everything is bad. Zero means no panic threshold.
"""
return pulumi.get(self, "panic_threshold")
@panic_threshold.setter
def panic_threshold(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "panic_threshold", value)
@property
@pulumi.getter(name="strictLocality")
def strict_locality(self) -> Optional[pulumi.Input[bool]]:
"""
If set, will route requests only to the same availability zone. Balancer won't know about endpoints in other zones.
"""
return pulumi.get(self, "strict_locality")
@strict_locality.setter
def strict_locality(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "strict_locality", value)
@pulumi.input_type
class AlbBackendGroupGrpcBackendTlsArgs:
def __init__(__self__, *,
sni: Optional[pulumi.Input[str]] = None,
validation_context: Optional[pulumi.Input['AlbBackendGroupGrpcBackendTlsValidationContextArgs']] = None):
"""
:param pulumi.Input[str] sni: [SNI](https://en.wikipedia.org/wiki/Server_Name_Indication) string for TLS connections.
* `validation_context.0.trusted_ca_id` - (Optional) Trusted CA certificate ID in the Certificate Manager.
* `validation_context.0.trusted_ca_bytes` - (Optional) PEM-encoded trusted CA certificate chain.
"""
if sni is not None:
pulumi.set(__self__, "sni", sni)
if validation_context is not None:
pulumi.set(__self__, "validation_context", validation_context)
@property
@pulumi.getter
def sni(self) -> Optional[pulumi.Input[str]]:
"""
[SNI](https://en.wikipedia.org/wiki/Server_Name_Indication) string for TLS connections.
* `validation_context.0.trusted_ca_id` - (Optional) Trusted CA certificate ID in the Certificate Manager.
* `validation_context.0.trusted_ca_bytes` - (Optional) PEM-encoded trusted CA certificate chain.
"""
return pulumi.get(self, "sni")
@sni.setter
def sni(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sni", value)
@property
@pulumi.getter(name="validationContext")
def validation_context(self) -> Optional[pulumi.Input['AlbBackendGroupGrpcBackendTlsValidationContextArgs']]:
return pulumi.get(self, "validation_context")
@validation_context.setter
def validation_context(self, value: Optional[pulumi.Input['AlbBackendGroupGrpcBackendTlsValidationContextArgs']]):
pulumi.set(self, "validation_context", value)
@pulumi.input_type
class AlbBackendGroupGrpcBackendTlsValidationContextArgs:
def __init__(__self__, *,
trusted_ca_bytes: Optional[pulumi.Input[str]] = None,
trusted_ca_id: Optional[pulumi.Input[str]] = None):
if trusted_ca_bytes is not None:
pulumi.set(__self__, "trusted_ca_bytes", trusted_ca_bytes)
if trusted_ca_id is not None:
pulumi.set(__self__, "trusted_ca_id", trusted_ca_id)
@property
@pulumi.getter(name="trustedCaBytes")
def trusted_ca_bytes(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "trusted_ca_bytes")
@trusted_ca_bytes.setter
def trusted_ca_bytes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "trusted_ca_bytes", value)
@property
@pulumi.getter(name="trustedCaId")
def trusted_ca_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "trusted_ca_id")
@trusted_ca_id.setter
def trusted_ca_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "trusted_ca_id", value)
@pulumi.input_type
class AlbBackendGroupHttpBackendArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
target_group_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
healthcheck: Optional[pulumi.Input['AlbBackendGroupHttpBackendHealthcheckArgs']] = None,
http2: Optional[pulumi.Input[bool]] = None,
load_balancing_config: Optional[pulumi.Input['AlbBackendGroupHttpBackendLoadBalancingConfigArgs']] = None,
port: Optional[pulumi.Input[int]] = None,
tls: Optional[pulumi.Input['AlbBackendGroupHttpBackendTlsArgs']] = None,
weight: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] name: Name of the backend.
:param pulumi.Input[Sequence[pulumi.Input[str]]] target_group_ids: References target groups for the backend.
:param pulumi.Input['AlbBackendGroupHttpBackendHealthcheckArgs'] healthcheck: Healthcheck specification that will be used by this backend. Structure is documented below.
:param pulumi.Input[bool] http2: If set, health checks will use HTTP2.
:param pulumi.Input['AlbBackendGroupHttpBackendLoadBalancingConfigArgs'] load_balancing_config: Load Balancing Config specification that will be used by this backend. Structure is documented below.
:param pulumi.Input[int] port: Port for incoming traffic.
:param pulumi.Input['AlbBackendGroupHttpBackendTlsArgs'] tls: Tls specification that will be used by this backend. Structure is documented below.
:param pulumi.Input[int] weight: Weight of the backend. Traffic will be split between backends of the same BackendGroup according to their weights.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "target_group_ids", target_group_ids)
if healthcheck is not None:
pulumi.set(__self__, "healthcheck", healthcheck)
if http2 is not None:
pulumi.set(__self__, "http2", http2)
if load_balancing_config is not None:
pulumi.set(__self__, "load_balancing_config", load_balancing_config)
if port is not None:
pulumi.set(__self__, "port", port)
if tls is not None:
pulumi.set(__self__, "tls", tls)
if weight is not None:
pulumi.set(__self__, "weight", weight)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Name of the backend.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="targetGroupIds")
def target_group_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
References target groups for the backend.
"""
return pulumi.get(self, "target_group_ids")
@target_group_ids.setter
def target_group_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "target_group_ids", value)
@property
@pulumi.getter
def healthcheck(self) -> Optional[pulumi.Input['AlbBackendGroupHttpBackendHealthcheckArgs']]:
"""
Healthcheck specification that will be used by this backend. Structure is documented below.
"""
return pulumi.get(self, "healthcheck")
@healthcheck.setter
def healthcheck(self, value: Optional[pulumi.Input['AlbBackendGroupHttpBackendHealthcheckArgs']]):
pulumi.set(self, "healthcheck", value)
@property
@pulumi.getter
def http2(self) -> Optional[pulumi.Input[bool]]:
"""
If set, health checks will use HTTP2.
"""
return pulumi.get(self, "http2")
@http2.setter
def http2(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "http2", value)
@property
@pulumi.getter(name="loadBalancingConfig")
def load_balancing_config(self) -> Optional[pulumi.Input['AlbBackendGroupHttpBackendLoadBalancingConfigArgs']]:
"""
Load Balancing Config specification that will be used by this backend. Structure is documented below.
"""
return pulumi.get(self, "load_balancing_config")
@load_balancing_config.setter
def load_balancing_config(self, value: Optional[pulumi.Input['AlbBackendGroupHttpBackendLoadBalancingConfigArgs']]):
pulumi.set(self, "load_balancing_config", value)
@property
@pulumi.getter
def port(self) -> Optional[pulumi.Input[int]]:
"""
Port for incoming traffic.
"""
return pulumi.get(self, "port")
@port.setter
def port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "port", value)
@property
@pulumi.getter
def tls(self) -> Optional[pulumi.Input['AlbBackendGroupHttpBackendTlsArgs']]:
"""
Tls specification that will be used by this backend. Structure is documented below.
"""
return pulumi.get(self, "tls")
@tls.setter
def tls(self, value: Optional[pulumi.Input['AlbBackendGroupHttpBackendTlsArgs']]):
pulumi.set(self, "tls", value)
@property
@pulumi.getter
def weight(self) -> Optional[pulumi.Input[int]]:
"""
Weight of the backend. Traffic will be split between backends of the same BackendGroup according to their weights.
"""
return pulumi.get(self, "weight")
@weight.setter
def weight(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "weight", value)
@pulumi.input_type
class AlbBackendGroupHttpBackendHealthcheckArgs:
def __init__(__self__, *,
interval: pulumi.Input[str],
timeout: pulumi.Input[str],
grpc_healthcheck: Optional[pulumi.Input['AlbBackendGroupHttpBackendHealthcheckGrpcHealthcheckArgs']] = None,
healthcheck_port: Optional[pulumi.Input[int]] = None,
healthy_threshold: Optional[pulumi.Input[int]] = None,
http_healthcheck: Optional[pulumi.Input['AlbBackendGroupHttpBackendHealthcheckHttpHealthcheckArgs']] = None,
interval_jitter_percent: Optional[pulumi.Input[float]] = None,
stream_healthcheck: Optional[pulumi.Input['AlbBackendGroupHttpBackendHealthcheckStreamHealthcheckArgs']] = None,
unhealthy_threshold: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] interval: Interval between health checks.
:param pulumi.Input[str] timeout: Time to wait for a health check response.
:param pulumi.Input['AlbBackendGroupHttpBackendHealthcheckGrpcHealthcheckArgs'] grpc_healthcheck: Grpc Healthcheck specification that will be used by this healthcheck. Structure is documented below.
:param pulumi.Input[int] healthcheck_port: Optional alternative port for health checking.
:param pulumi.Input[int] healthy_threshold: Number of consecutive successful health checks required to promote endpoint into the healthy state. 0 means 1. Note that during startup, only a single successful health check is required to mark a host healthy.
:param pulumi.Input['AlbBackendGroupHttpBackendHealthcheckHttpHealthcheckArgs'] http_healthcheck: Http Healthcheck specification that will be used by this healthcheck. Structure is documented below.
:param pulumi.Input[float] interval_jitter_percent: An optional jitter amount as a percentage of interval. If specified, during every interval value of (interval_ms * interval_jitter_percent / 100) will be added to the wait time.
:param pulumi.Input['AlbBackendGroupHttpBackendHealthcheckStreamHealthcheckArgs'] stream_healthcheck: Stream Healthcheck specification that will be used by this healthcheck. Structure is documented below.
:param pulumi.Input[int] unhealthy_threshold: Number of consecutive failed health checks required to demote endpoint into the unhealthy state. 0 means 1. Note that for HTTP health checks, a single 503 immediately makes endpoint unhealthy.
"""
pulumi.set(__self__, "interval", interval)
pulumi.set(__self__, "timeout", timeout)
if grpc_healthcheck is not None:
pulumi.set(__self__, "grpc_healthcheck", grpc_healthcheck)
if healthcheck_port is not None:
pulumi.set(__self__, "healthcheck_port", healthcheck_port)
if healthy_threshold is not None:
pulumi.set(__self__, "healthy_threshold", healthy_threshold)
if http_healthcheck is not None:
pulumi.set(__self__, "http_healthcheck", http_healthcheck)
if interval_jitter_percent is not None:
pulumi.set(__self__, "interval_jitter_percent", interval_jitter_percent)
if stream_healthcheck is not None:
pulumi.set(__self__, "stream_healthcheck", stream_healthcheck)
if unhealthy_threshold is not None:
pulumi.set(__self__, "unhealthy_threshold", unhealthy_threshold)
@property
@pulumi.getter
def interval(self) -> pulumi.Input[str]:
"""
Interval between health checks.
"""
return pulumi.get(self, "interval")
@interval.setter
def interval(self, value: pulumi.Input[str]):
pulumi.set(self, "interval", value)
@property
@pulumi.getter
def timeout(self) -> pulumi.Input[str]:
"""
Time to wait for a health check response.
"""
return pulumi.get(self, "timeout")
@timeout.setter
def timeout(self, value: pulumi.Input[str]):
pulumi.set(self, "timeout", value)
@property
@pulumi.getter(name="grpcHealthcheck")
def grpc_healthcheck(self) -> Optional[pulumi.Input['AlbBackendGroupHttpBackendHealthcheckGrpcHealthcheckArgs']]:
"""
Grpc Healthcheck specification that will be used by this healthcheck. Structure is documented below.
"""
return pulumi.get(self, "grpc_healthcheck")
@grpc_healthcheck.setter
def grpc_healthcheck(self, value: Optional[pulumi.Input['AlbBackendGroupHttpBackendHealthcheckGrpcHealthcheckArgs']]):
pulumi.set(self, "grpc_healthcheck", value)
@property
@pulumi.getter(name="healthcheckPort")
def healthcheck_port(self) -> Optional[pulumi.Input[int]]:
"""
Optional alternative port for health checking.
"""
return pulumi.get(self, "healthcheck_port")
@healthcheck_port.setter
def healthcheck_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "healthcheck_port", value)
@property
@pulumi.getter(name="healthyThreshold")
def healthy_threshold(self) -> Optional[pulumi.Input[int]]:
"""
Number of consecutive successful health checks required to promote endpoint into the healthy state. 0 means 1. Note that during startup, only a single successful health check is required to mark a host healthy.
"""
return pulumi.get(self, "healthy_threshold")
@healthy_threshold.setter
def healthy_threshold(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "healthy_threshold", value)
@property
@pulumi.getter(name="httpHealthcheck")
def http_healthcheck(self) -> Optional[pulumi.Input['AlbBackendGroupHttpBackendHealthcheckHttpHealthcheckArgs']]:
"""
Http Healthcheck specification that will be used by this healthcheck. Structure is documented below.
"""
return pulumi.get(self, "http_healthcheck")
@http_healthcheck.setter
def http_healthcheck(self, value: Optional[pulumi.Input['AlbBackendGroupHttpBackendHealthcheckHttpHealthcheckArgs']]):
pulumi.set(self, "http_healthcheck", value)
@property
@pulumi.getter(name="intervalJitterPercent")
def interval_jitter_percent(self) -> Optional[pulumi.Input[float]]:
"""
An optional jitter amount as a percentage of interval. If specified, during every interval value of (interval_ms * interval_jitter_percent / 100) will be added to the wait time.
"""
return pulumi.get(self, "interval_jitter_percent")
@interval_jitter_percent.setter
def interval_jitter_percent(self, value: Optional[pulumi.Input[float]]):
pulumi.set(self, "interval_jitter_percent", value)
@property
@pulumi.getter(name="streamHealthcheck")
def stream_healthcheck(self) -> Optional[pulumi.Input['AlbBackendGroupHttpBackendHealthcheckStreamHealthcheckArgs']]:
"""
Stream Healthcheck specification that will be used by this healthcheck. Structure is documented below.
"""
return pulumi.get(self, "stream_healthcheck")
@stream_healthcheck.setter
def stream_healthcheck(self, value: Optional[pulumi.Input['AlbBackendGroupHttpBackendHealthcheckStreamHealthcheckArgs']]):
pulumi.set(self, "stream_healthcheck", value)
@property
@pulumi.getter(name="unhealthyThreshold")
def unhealthy_threshold(self) -> Optional[pulumi.Input[int]]:
"""
Number of consecutive failed health checks required to demote endpoint into the unhealthy state. 0 means 1. Note that for HTTP health checks, a single 503 immediately makes endpoint unhealthy.
"""
return pulumi.get(self, "unhealthy_threshold")
@unhealthy_threshold.setter
def unhealthy_threshold(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "unhealthy_threshold", value)
@pulumi.input_type
class AlbBackendGroupHttpBackendHealthcheckGrpcHealthcheckArgs:
def __init__(__self__, *,
service_name: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] service_name: Service name for grpc.health.v1.HealthCheckRequest message.
"""
if service_name is not None:
pulumi.set(__self__, "service_name", service_name)
@property
@pulumi.getter(name="serviceName")
def service_name(self) -> Optional[pulumi.Input[str]]:
"""
Service name for grpc.health.v1.HealthCheckRequest message.
"""
return pulumi.get(self, "service_name")
@service_name.setter
def service_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "service_name", value)
@pulumi.input_type
class AlbBackendGroupHttpBackendHealthcheckHttpHealthcheckArgs:
def __init__(__self__, *,
path: pulumi.Input[str],
host: Optional[pulumi.Input[str]] = None,
http2: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[str] path: HTTP path.
:param pulumi.Input[str] host: "Host" HTTP header value.
:param pulumi.Input[bool] http2: If set, health checks will use HTTP2.
"""
pulumi.set(__self__, "path", path)
if host is not None:
pulumi.set(__self__, "host", host)
if http2 is not None:
pulumi.set(__self__, "http2", http2)
@property
@pulumi.getter
def path(self) -> pulumi.Input[str]:
"""
HTTP path.
"""
return pulumi.get(self, "path")
@path.setter
def path(self, value: pulumi.Input[str]):
pulumi.set(self, "path", value)
@property
@pulumi.getter
def host(self) -> Optional[pulumi.Input[str]]:
"""
"Host" HTTP header value.
"""
return pulumi.get(self, "host")
@host.setter
def host(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "host", value)
@property
@pulumi.getter
def http2(self) -> Optional[pulumi.Input[bool]]:
"""
If set, health checks will use HTTP2.
"""
return pulumi.get(self, "http2")
@http2.setter
def http2(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "http2", value)
@pulumi.input_type
class AlbBackendGroupHttpBackendHealthcheckStreamHealthcheckArgs:
def __init__(__self__, *,
receive: Optional[pulumi.Input[str]] = None,
send: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] receive: Text to search in reply.
:param pulumi.Input[str] send: Message to send. If empty, it's a connect-only health check.
"""
if receive is not None:
pulumi.set(__self__, "receive", receive)
if send is not None:
pulumi.set(__self__, "send", send)
@property
@pulumi.getter
def receive(self) -> Optional[pulumi.Input[str]]:
"""
Text to search in reply.
"""
return pulumi.get(self, "receive")
@receive.setter
def receive(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "receive", value)
@property
@pulumi.getter
def send(self) -> Optional[pulumi.Input[str]]:
"""
Message to send. If empty, it's a connect-only health check.
"""
return pulumi.get(self, "send")
@send.setter
def send(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "send", value)
@pulumi.input_type
class AlbBackendGroupHttpBackendLoadBalancingConfigArgs:
def __init__(__self__, *,
locality_aware_routing_percent: Optional[pulumi.Input[int]] = None,
panic_threshold: Optional[pulumi.Input[int]] = None,
strict_locality: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[int] locality_aware_routing_percent: Percent of traffic to be sent to the same availability zone. The rest will be equally divided between other zones.
:param pulumi.Input[int] panic_threshold: If percentage of healthy hosts in the backend is lower than panic_threshold, traffic will be routed to all backends no matter what the health status is. This helps to avoid healthy backends overloading when everything is bad. Zero means no panic threshold.
:param pulumi.Input[bool] strict_locality: If set, will route requests only to the same availability zone. Balancer won't know about endpoints in other zones.
"""
if locality_aware_routing_percent is not None:
pulumi.set(__self__, "locality_aware_routing_percent", locality_aware_routing_percent)
if panic_threshold is not None:
pulumi.set(__self__, "panic_threshold", panic_threshold)
if strict_locality is not None:
pulumi.set(__self__, "strict_locality", strict_locality)
@property
@pulumi.getter(name="localityAwareRoutingPercent")
def locality_aware_routing_percent(self) -> Optional[pulumi.Input[int]]:
"""
Percent of traffic to be sent to the same availability zone. The rest will be equally divided between other zones.
"""
return pulumi.get(self, "locality_aware_routing_percent")
@locality_aware_routing_percent.setter
def locality_aware_routing_percent(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "locality_aware_routing_percent", value)
@property
@pulumi.getter(name="panicThreshold")
def panic_threshold(self) -> Optional[pulumi.Input[int]]:
"""
If percentage of healthy hosts in the backend is lower than panic_threshold, traffic will be routed to all backends no matter what the health status is. This helps to avoid healthy backends overloading when everything is bad. Zero means no panic threshold.
"""
return pulumi.get(self, "panic_threshold")
@panic_threshold.setter
def panic_threshold(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "panic_threshold", value)
@property
@pulumi.getter(name="strictLocality")
def strict_locality(self) -> Optional[pulumi.Input[bool]]:
"""
If set, will route requests only to the same availability zone. Balancer won't know about endpoints in other zones.
"""
return pulumi.get(self, "strict_locality")
@strict_locality.setter
def strict_locality(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "strict_locality", value)
@pulumi.input_type
class AlbBackendGroupHttpBackendTlsArgs:
def __init__(__self__, *,
sni: Optional[pulumi.Input[str]] = None,
validation_context: Optional[pulumi.Input['AlbBackendGroupHttpBackendTlsValidationContextArgs']] = None):
"""
:param pulumi.Input[str] sni: [SNI](https://en.wikipedia.org/wiki/Server_Name_Indication) string for TLS connections.
* `validation_context.0.trusted_ca_id` - (Optional) Trusted CA certificate ID in the Certificate Manager.
* `validation_context.0.trusted_ca_bytes` - (Optional) PEM-encoded trusted CA certificate chain.
"""
if sni is not None:
pulumi.set(__self__, "sni", sni)
if validation_context is not None:
pulumi.set(__self__, "validation_context", validation_context)
@property
@pulumi.getter
def sni(self) -> Optional[pulumi.Input[str]]:
"""
[SNI](https://en.wikipedia.org/wiki/Server_Name_Indication) string for TLS connections.
* `validation_context.0.trusted_ca_id` - (Optional) Trusted CA certificate ID in the Certificate Manager.
* `validation_context.0.trusted_ca_bytes` - (Optional) PEM-encoded trusted CA certificate chain.
"""
return pulumi.get(self, "sni")
@sni.setter
def sni(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sni", value)
@property
@pulumi.getter(name="validationContext")
def validation_context(self) -> Optional[pulumi.Input['AlbBackendGroupHttpBackendTlsValidationContextArgs']]:
return pulumi.get(self, "validation_context")
@validation_context.setter
def validation_context(self, value: Optional[pulumi.Input['AlbBackendGroupHttpBackendTlsValidationContextArgs']]):
pulumi.set(self, "validation_context", value)
@pulumi.input_type
class AlbBackendGroupHttpBackendTlsValidationContextArgs:
def __init__(__self__, *,
trusted_ca_bytes: Optional[pulumi.Input[str]] = None,
trusted_ca_id: Optional[pulumi.Input[str]] = None):
if trusted_ca_bytes is not None:
pulumi.set(__self__, "trusted_ca_bytes", trusted_ca_bytes)
if trusted_ca_id is not None:
pulumi.set(__self__, "trusted_ca_id", trusted_ca_id)
@property
@pulumi.getter(name="trustedCaBytes")
def trusted_ca_bytes(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "trusted_ca_bytes")
@trusted_ca_bytes.setter
def trusted_ca_bytes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "trusted_ca_bytes", value)
@property
@pulumi.getter(name="trustedCaId")
def trusted_ca_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "trusted_ca_id")
@trusted_ca_id.setter
def trusted_ca_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "trusted_ca_id", value)
@pulumi.input_type
class AlbLoadBalancerAllocationPolicyArgs:
def __init__(__self__, *,
locations: pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerAllocationPolicyLocationArgs']]]):
"""
:param pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerAllocationPolicyLocationArgs']]] locations: Unique set of locations. The structure is documented below.
"""
pulumi.set(__self__, "locations", locations)
@property
@pulumi.getter
def locations(self) -> pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerAllocationPolicyLocationArgs']]]:
"""
Unique set of locations. The structure is documented below.
"""
return pulumi.get(self, "locations")
@locations.setter
def locations(self, value: pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerAllocationPolicyLocationArgs']]]):
pulumi.set(self, "locations", value)
@pulumi.input_type
class AlbLoadBalancerAllocationPolicyLocationArgs:
def __init__(__self__, *,
subnet_id: pulumi.Input[str],
zone_id: pulumi.Input[str],
disable_traffic: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[str] subnet_id: Provided by the client or computed automatically.
:param pulumi.Input[str] zone_id: ID of the zone that location is located at.
:param pulumi.Input[bool] disable_traffic: If set, will disable all L7 instances in the zone for request handling.
"""
pulumi.set(__self__, "subnet_id", subnet_id)
pulumi.set(__self__, "zone_id", zone_id)
if disable_traffic is not None:
pulumi.set(__self__, "disable_traffic", disable_traffic)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> pulumi.Input[str]:
"""
Provided by the client or computed automatically.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: pulumi.Input[str]):
pulumi.set(self, "subnet_id", value)
@property
@pulumi.getter(name="zoneId")
def zone_id(self) -> pulumi.Input[str]:
"""
ID of the zone that location is located at.
"""
return pulumi.get(self, "zone_id")
@zone_id.setter
def zone_id(self, value: pulumi.Input[str]):
pulumi.set(self, "zone_id", value)
@property
@pulumi.getter(name="disableTraffic")
def disable_traffic(self) -> Optional[pulumi.Input[bool]]:
"""
If set, will disable all L7 instances in the zone for request handling.
"""
return pulumi.get(self, "disable_traffic")
@disable_traffic.setter
def disable_traffic(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "disable_traffic", value)
@pulumi.input_type
class AlbLoadBalancerListenerArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
endpoints: Optional[pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerListenerEndpointArgs']]]] = None,
http: Optional[pulumi.Input['AlbLoadBalancerListenerHttpArgs']] = None,
tls: Optional[pulumi.Input['AlbLoadBalancerListenerTlsArgs']] = None):
"""
:param pulumi.Input[str] name: name of SNI match.
:param pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerListenerEndpointArgs']]] endpoints: Network endpoints (addresses and ports) of the listener. The structure is documented below.
:param pulumi.Input['AlbLoadBalancerListenerHttpArgs'] http: HTTP listener resource. The structure is documented below.
:param pulumi.Input['AlbLoadBalancerListenerTlsArgs'] tls: TLS listener resource. The structure is documented below.
"""
pulumi.set(__self__, "name", name)
if endpoints is not None:
pulumi.set(__self__, "endpoints", endpoints)
if http is not None:
pulumi.set(__self__, "http", http)
if tls is not None:
pulumi.set(__self__, "tls", tls)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
name of SNI match.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def endpoints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerListenerEndpointArgs']]]]:
"""
Network endpoints (addresses and ports) of the listener. The structure is documented below.
"""
return pulumi.get(self, "endpoints")
@endpoints.setter
def endpoints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerListenerEndpointArgs']]]]):
pulumi.set(self, "endpoints", value)
@property
@pulumi.getter
def http(self) -> Optional[pulumi.Input['AlbLoadBalancerListenerHttpArgs']]:
"""
HTTP listener resource. The structure is documented below.
"""
return pulumi.get(self, "http")
@http.setter
def http(self, value: Optional[pulumi.Input['AlbLoadBalancerListenerHttpArgs']]):
pulumi.set(self, "http", value)
@property
@pulumi.getter
def tls(self) -> Optional[pulumi.Input['AlbLoadBalancerListenerTlsArgs']]:
"""
TLS listener resource. The structure is documented below.
"""
return pulumi.get(self, "tls")
@tls.setter
def tls(self, value: Optional[pulumi.Input['AlbLoadBalancerListenerTlsArgs']]):
pulumi.set(self, "tls", value)
@pulumi.input_type
class AlbLoadBalancerListenerEndpointArgs:
def __init__(__self__, *,
addresses: pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerListenerEndpointAddressArgs']]],
ports: pulumi.Input[Sequence[pulumi.Input[int]]]):
"""
:param pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerListenerEndpointAddressArgs']]] addresses: Provided by the client or computed automatically.
:param pulumi.Input[Sequence[pulumi.Input[int]]] ports: One or more ports to listen on.
"""
pulumi.set(__self__, "addresses", addresses)
pulumi.set(__self__, "ports", ports)
@property
@pulumi.getter
def addresses(self) -> pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerListenerEndpointAddressArgs']]]:
"""
Provided by the client or computed automatically.
"""
return pulumi.get(self, "addresses")
@addresses.setter
def addresses(self, value: pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerListenerEndpointAddressArgs']]]):
pulumi.set(self, "addresses", value)
@property
@pulumi.getter
def ports(self) -> pulumi.Input[Sequence[pulumi.Input[int]]]:
"""
One or more ports to listen on.
"""
return pulumi.get(self, "ports")
@ports.setter
def ports(self, value: pulumi.Input[Sequence[pulumi.Input[int]]]):
pulumi.set(self, "ports", value)
@pulumi.input_type
class AlbLoadBalancerListenerEndpointAddressArgs:
def __init__(__self__, *,
external_ipv4_address: Optional[pulumi.Input['AlbLoadBalancerListenerEndpointAddressExternalIpv4AddressArgs']] = None,
external_ipv6_address: Optional[pulumi.Input['AlbLoadBalancerListenerEndpointAddressExternalIpv6AddressArgs']] = None,
internal_ipv4_address: Optional[pulumi.Input['AlbLoadBalancerListenerEndpointAddressInternalIpv4AddressArgs']] = None):
"""
:param pulumi.Input['AlbLoadBalancerListenerEndpointAddressExternalIpv4AddressArgs'] external_ipv4_address: External IPv4 address. The structure is documented below.
:param pulumi.Input['AlbLoadBalancerListenerEndpointAddressExternalIpv6AddressArgs'] external_ipv6_address: External IPv6 address. The structure is documented below.
:param pulumi.Input['AlbLoadBalancerListenerEndpointAddressInternalIpv4AddressArgs'] internal_ipv4_address: Internal IPv4 address. The structure is documented below.
"""
if external_ipv4_address is not None:
pulumi.set(__self__, "external_ipv4_address", external_ipv4_address)
if external_ipv6_address is not None:
pulumi.set(__self__, "external_ipv6_address", external_ipv6_address)
if internal_ipv4_address is not None:
pulumi.set(__self__, "internal_ipv4_address", internal_ipv4_address)
@property
@pulumi.getter(name="externalIpv4Address")
def external_ipv4_address(self) -> Optional[pulumi.Input['AlbLoadBalancerListenerEndpointAddressExternalIpv4AddressArgs']]:
"""
External IPv4 address. The structure is documented below.
"""
return pulumi.get(self, "external_ipv4_address")
@external_ipv4_address.setter
def external_ipv4_address(self, value: Optional[pulumi.Input['AlbLoadBalancerListenerEndpointAddressExternalIpv4AddressArgs']]):
pulumi.set(self, "external_ipv4_address", value)
@property
@pulumi.getter(name="externalIpv6Address")
def external_ipv6_address(self) -> Optional[pulumi.Input['AlbLoadBalancerListenerEndpointAddressExternalIpv6AddressArgs']]:
"""
External IPv6 address. The structure is documented below.
"""
return pulumi.get(self, "external_ipv6_address")
@external_ipv6_address.setter
def external_ipv6_address(self, value: Optional[pulumi.Input['AlbLoadBalancerListenerEndpointAddressExternalIpv6AddressArgs']]):
pulumi.set(self, "external_ipv6_address", value)
@property
@pulumi.getter(name="internalIpv4Address")
def internal_ipv4_address(self) -> Optional[pulumi.Input['AlbLoadBalancerListenerEndpointAddressInternalIpv4AddressArgs']]:
"""
Internal IPv4 address. The structure is documented below.
"""
return pulumi.get(self, "internal_ipv4_address")
@internal_ipv4_address.setter
def internal_ipv4_address(self, value: Optional[pulumi.Input['AlbLoadBalancerListenerEndpointAddressInternalIpv4AddressArgs']]):
pulumi.set(self, "internal_ipv4_address", value)
@pulumi.input_type
class AlbLoadBalancerListenerEndpointAddressExternalIpv4AddressArgs:
def __init__(__self__, *,
address: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] address: Provided by the client or computed automatically.
"""
if address is not None:
pulumi.set(__self__, "address", address)
@property
@pulumi.getter
def address(self) -> Optional[pulumi.Input[str]]:
"""
Provided by the client or computed automatically.
"""
return pulumi.get(self, "address")
@address.setter
def address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "address", value)
@pulumi.input_type
class AlbLoadBalancerListenerEndpointAddressExternalIpv6AddressArgs:
def __init__(__self__, *,
address: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] address: Provided by the client or computed automatically.
"""
if address is not None:
pulumi.set(__self__, "address", address)
@property
@pulumi.getter
def address(self) -> Optional[pulumi.Input[str]]:
"""
Provided by the client or computed automatically.
"""
return pulumi.get(self, "address")
@address.setter
def address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "address", value)
@pulumi.input_type
class AlbLoadBalancerListenerEndpointAddressInternalIpv4AddressArgs:
def __init__(__self__, *,
address: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] address: Provided by the client or computed automatically.
:param pulumi.Input[str] subnet_id: Provided by the client or computed automatically.
"""
if address is not None:
pulumi.set(__self__, "address", address)
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter
def address(self) -> Optional[pulumi.Input[str]]:
"""
Provided by the client or computed automatically.
"""
return pulumi.get(self, "address")
@address.setter
def address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "address", value)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[pulumi.Input[str]]:
"""
Provided by the client or computed automatically.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subnet_id", value)
@pulumi.input_type
class AlbLoadBalancerListenerHttpArgs:
def __init__(__self__, *,
handler: Optional[pulumi.Input['AlbLoadBalancerListenerHttpHandlerArgs']] = None,
redirects: Optional[pulumi.Input['AlbLoadBalancerListenerHttpRedirectsArgs']] = None):
"""
:param pulumi.Input['AlbLoadBalancerListenerHttpHandlerArgs'] handler: HTTP handler that sets plaintext HTTP router. The structure is documented below.
:param pulumi.Input['AlbLoadBalancerListenerHttpRedirectsArgs'] redirects: Shortcut for adding http > https redirects. The structure is documented below.
"""
if handler is not None:
pulumi.set(__self__, "handler", handler)
if redirects is not None:
pulumi.set(__self__, "redirects", redirects)
@property
@pulumi.getter
def handler(self) -> Optional[pulumi.Input['AlbLoadBalancerListenerHttpHandlerArgs']]:
"""
HTTP handler that sets plaintext HTTP router. The structure is documented below.
"""
return pulumi.get(self, "handler")
@handler.setter
def handler(self, value: Optional[pulumi.Input['AlbLoadBalancerListenerHttpHandlerArgs']]):
pulumi.set(self, "handler", value)
@property
@pulumi.getter
def redirects(self) -> Optional[pulumi.Input['AlbLoadBalancerListenerHttpRedirectsArgs']]:
"""
Shortcut for adding http > https redirects. The structure is documented below.
"""
return pulumi.get(self, "redirects")
@redirects.setter
def redirects(self, value: Optional[pulumi.Input['AlbLoadBalancerListenerHttpRedirectsArgs']]):
pulumi.set(self, "redirects", value)
@pulumi.input_type
class AlbLoadBalancerListenerHttpHandlerArgs:
def __init__(__self__, *,
allow_http10: Optional[pulumi.Input[bool]] = None,
http2_options: Optional[pulumi.Input['AlbLoadBalancerListenerHttpHandlerHttp2OptionsArgs']] = None,
http_router_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[bool] allow_http10: If set, will enable only HTTP1 protocol with HTTP1.0 support.
:param pulumi.Input['AlbLoadBalancerListenerHttpHandlerHttp2OptionsArgs'] http2_options: If set, will enable HTTP2 protocol for the handler. The structure is documented below.
:param pulumi.Input[str] http_router_id: HTTP router id.
"""
if allow_http10 is not None:
pulumi.set(__self__, "allow_http10", allow_http10)
if http2_options is not None:
pulumi.set(__self__, "http2_options", http2_options)
if http_router_id is not None:
pulumi.set(__self__, "http_router_id", http_router_id)
@property
@pulumi.getter(name="allowHttp10")
def allow_http10(self) -> Optional[pulumi.Input[bool]]:
"""
If set, will enable only HTTP1 protocol with HTTP1.0 support.
"""
return pulumi.get(self, "allow_http10")
@allow_http10.setter
def allow_http10(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "allow_http10", value)
@property
@pulumi.getter(name="http2Options")
def http2_options(self) -> Optional[pulumi.Input['AlbLoadBalancerListenerHttpHandlerHttp2OptionsArgs']]:
"""
If set, will enable HTTP2 protocol for the handler. The structure is documented below.
"""
return pulumi.get(self, "http2_options")
@http2_options.setter
def http2_options(self, value: Optional[pulumi.Input['AlbLoadBalancerListenerHttpHandlerHttp2OptionsArgs']]):
pulumi.set(self, "http2_options", value)
@property
@pulumi.getter(name="httpRouterId")
def http_router_id(self) -> Optional[pulumi.Input[str]]:
"""
HTTP router id.
"""
return pulumi.get(self, "http_router_id")
@http_router_id.setter
def http_router_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "http_router_id", value)
@pulumi.input_type
class AlbLoadBalancerListenerHttpHandlerHttp2OptionsArgs:
def __init__(__self__, *,
max_concurrent_streams: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] max_concurrent_streams: Maximum number of concurrent streams.
"""
if max_concurrent_streams is not None:
pulumi.set(__self__, "max_concurrent_streams", max_concurrent_streams)
@property
@pulumi.getter(name="maxConcurrentStreams")
def max_concurrent_streams(self) -> Optional[pulumi.Input[int]]:
"""
Maximum number of concurrent streams.
"""
return pulumi.get(self, "max_concurrent_streams")
@max_concurrent_streams.setter
def max_concurrent_streams(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_concurrent_streams", value)
@pulumi.input_type
class AlbLoadBalancerListenerHttpRedirectsArgs:
def __init__(__self__, *,
http_to_https: Optional[pulumi.Input[bool]] = None):
if http_to_https is not None:
pulumi.set(__self__, "http_to_https", http_to_https)
@property
@pulumi.getter(name="httpToHttps")
def http_to_https(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "http_to_https")
@http_to_https.setter
def http_to_https(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "http_to_https", value)
@pulumi.input_type
class AlbLoadBalancerListenerTlsArgs:
def __init__(__self__, *,
default_handler: pulumi.Input['AlbLoadBalancerListenerTlsDefaultHandlerArgs'],
sni_handlers: Optional[pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerArgs']]]] = None):
"""
:param pulumi.Input['AlbLoadBalancerListenerTlsDefaultHandlerArgs'] default_handler: TLS handler resource. The structure is documented below.
:param pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerArgs']]] sni_handlers: SNI match resource. The structure is documented below.
"""
pulumi.set(__self__, "default_handler", default_handler)
if sni_handlers is not None:
pulumi.set(__self__, "sni_handlers", sni_handlers)
@property
@pulumi.getter(name="defaultHandler")
def default_handler(self) -> pulumi.Input['AlbLoadBalancerListenerTlsDefaultHandlerArgs']:
"""
TLS handler resource. The structure is documented below.
"""
return pulumi.get(self, "default_handler")
@default_handler.setter
def default_handler(self, value: pulumi.Input['AlbLoadBalancerListenerTlsDefaultHandlerArgs']):
pulumi.set(self, "default_handler", value)
@property
@pulumi.getter(name="sniHandlers")
def sni_handlers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerArgs']]]]:
"""
SNI match resource. The structure is documented below.
"""
return pulumi.get(self, "sni_handlers")
@sni_handlers.setter
def sni_handlers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerArgs']]]]):
pulumi.set(self, "sni_handlers", value)
@pulumi.input_type
class AlbLoadBalancerListenerTlsDefaultHandlerArgs:
def __init__(__self__, *,
certificate_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
http_handler: Optional[pulumi.Input['AlbLoadBalancerListenerTlsDefaultHandlerHttpHandlerArgs']] = None):
"""
:param pulumi.Input[Sequence[pulumi.Input[str]]] certificate_ids: Certificate IDs in the Certificate Manager. Multiple TLS certificates can be associated
with the same context to allow both RSA and ECDSA certificates. Only the first certificate of each type will be used.
:param pulumi.Input['AlbLoadBalancerListenerTlsDefaultHandlerHttpHandlerArgs'] http_handler: HTTP handler resource. The structure is documented below.
"""
pulumi.set(__self__, "certificate_ids", certificate_ids)
if http_handler is not None:
pulumi.set(__self__, "http_handler", http_handler)
@property
@pulumi.getter(name="certificateIds")
def certificate_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Certificate IDs in the Certificate Manager. Multiple TLS certificates can be associated
with the same context to allow both RSA and ECDSA certificates. Only the first certificate of each type will be used.
"""
return pulumi.get(self, "certificate_ids")
@certificate_ids.setter
def certificate_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "certificate_ids", value)
@property
@pulumi.getter(name="httpHandler")
def http_handler(self) -> Optional[pulumi.Input['AlbLoadBalancerListenerTlsDefaultHandlerHttpHandlerArgs']]:
"""
HTTP handler resource. The structure is documented below.
"""
return pulumi.get(self, "http_handler")
@http_handler.setter
def http_handler(self, value: Optional[pulumi.Input['AlbLoadBalancerListenerTlsDefaultHandlerHttpHandlerArgs']]):
pulumi.set(self, "http_handler", value)
@pulumi.input_type
class AlbLoadBalancerListenerTlsDefaultHandlerHttpHandlerArgs:
def __init__(__self__, *,
allow_http10: Optional[pulumi.Input[bool]] = None,
http2_options: Optional[pulumi.Input['AlbLoadBalancerListenerTlsDefaultHandlerHttpHandlerHttp2OptionsArgs']] = None,
http_router_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[bool] allow_http10: If set, will enable only HTTP1 protocol with HTTP1.0 support.
:param pulumi.Input['AlbLoadBalancerListenerTlsDefaultHandlerHttpHandlerHttp2OptionsArgs'] http2_options: If set, will enable HTTP2 protocol for the handler. The structure is documented below.
:param pulumi.Input[str] http_router_id: HTTP router id.
"""
if allow_http10 is not None:
pulumi.set(__self__, "allow_http10", allow_http10)
if http2_options is not None:
pulumi.set(__self__, "http2_options", http2_options)
if http_router_id is not None:
pulumi.set(__self__, "http_router_id", http_router_id)
@property
@pulumi.getter(name="allowHttp10")
def allow_http10(self) -> Optional[pulumi.Input[bool]]:
"""
If set, will enable only HTTP1 protocol with HTTP1.0 support.
"""
return pulumi.get(self, "allow_http10")
@allow_http10.setter
def allow_http10(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "allow_http10", value)
@property
@pulumi.getter(name="http2Options")
def http2_options(self) -> Optional[pulumi.Input['AlbLoadBalancerListenerTlsDefaultHandlerHttpHandlerHttp2OptionsArgs']]:
"""
If set, will enable HTTP2 protocol for the handler. The structure is documented below.
"""
return pulumi.get(self, "http2_options")
@http2_options.setter
def http2_options(self, value: Optional[pulumi.Input['AlbLoadBalancerListenerTlsDefaultHandlerHttpHandlerHttp2OptionsArgs']]):
pulumi.set(self, "http2_options", value)
@property
@pulumi.getter(name="httpRouterId")
def http_router_id(self) -> Optional[pulumi.Input[str]]:
"""
HTTP router id.
"""
return pulumi.get(self, "http_router_id")
@http_router_id.setter
def http_router_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "http_router_id", value)
@pulumi.input_type
class AlbLoadBalancerListenerTlsDefaultHandlerHttpHandlerHttp2OptionsArgs:
def __init__(__self__, *,
max_concurrent_streams: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] max_concurrent_streams: Maximum number of concurrent streams.
"""
if max_concurrent_streams is not None:
pulumi.set(__self__, "max_concurrent_streams", max_concurrent_streams)
@property
@pulumi.getter(name="maxConcurrentStreams")
def max_concurrent_streams(self) -> Optional[pulumi.Input[int]]:
"""
Maximum number of concurrent streams.
"""
return pulumi.get(self, "max_concurrent_streams")
@max_concurrent_streams.setter
def max_concurrent_streams(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_concurrent_streams", value)
@pulumi.input_type
class AlbLoadBalancerListenerTlsSniHandlerArgs:
def __init__(__self__, *,
handler: pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerHandlerArgs'],
name: pulumi.Input[str],
server_names: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerHandlerArgs'] handler: HTTP handler that sets plaintext HTTP router. The structure is documented below.
:param pulumi.Input[str] name: name of SNI match.
:param pulumi.Input[Sequence[pulumi.Input[str]]] server_names: A set of server names.
"""
pulumi.set(__self__, "handler", handler)
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "server_names", server_names)
@property
@pulumi.getter
def handler(self) -> pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerHandlerArgs']:
"""
HTTP handler that sets plaintext HTTP router. The structure is documented below.
"""
return pulumi.get(self, "handler")
@handler.setter
def handler(self, value: pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerHandlerArgs']):
pulumi.set(self, "handler", value)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
name of SNI match.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="serverNames")
def server_names(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
A set of server names.
"""
return pulumi.get(self, "server_names")
@server_names.setter
def server_names(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "server_names", value)
@pulumi.input_type
class AlbLoadBalancerListenerTlsSniHandlerHandlerArgs:
def __init__(__self__, *,
certificate_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
http_handler: Optional[pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerHandlerHttpHandlerArgs']] = None):
"""
:param pulumi.Input[Sequence[pulumi.Input[str]]] certificate_ids: Certificate IDs in the Certificate Manager. Multiple TLS certificates can be associated
with the same context to allow both RSA and ECDSA certificates. Only the first certificate of each type will be used.
:param pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerHandlerHttpHandlerArgs'] http_handler: HTTP handler resource. The structure is documented below.
"""
pulumi.set(__self__, "certificate_ids", certificate_ids)
if http_handler is not None:
pulumi.set(__self__, "http_handler", http_handler)
@property
@pulumi.getter(name="certificateIds")
def certificate_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Certificate IDs in the Certificate Manager. Multiple TLS certificates can be associated
with the same context to allow both RSA and ECDSA certificates. Only the first certificate of each type will be used.
"""
return pulumi.get(self, "certificate_ids")
@certificate_ids.setter
def certificate_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "certificate_ids", value)
@property
@pulumi.getter(name="httpHandler")
def http_handler(self) -> Optional[pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerHandlerHttpHandlerArgs']]:
"""
HTTP handler resource. The structure is documented below.
"""
return pulumi.get(self, "http_handler")
@http_handler.setter
def http_handler(self, value: Optional[pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerHandlerHttpHandlerArgs']]):
pulumi.set(self, "http_handler", value)
@pulumi.input_type
class AlbLoadBalancerListenerTlsSniHandlerHandlerHttpHandlerArgs:
def __init__(__self__, *,
allow_http10: Optional[pulumi.Input[bool]] = None,
http2_options: Optional[pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerHandlerHttpHandlerHttp2OptionsArgs']] = None,
http_router_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[bool] allow_http10: If set, will enable only HTTP1 protocol with HTTP1.0 support.
:param pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerHandlerHttpHandlerHttp2OptionsArgs'] http2_options: If set, will enable HTTP2 protocol for the handler. The structure is documented below.
:param pulumi.Input[str] http_router_id: HTTP router id.
"""
if allow_http10 is not None:
pulumi.set(__self__, "allow_http10", allow_http10)
if http2_options is not None:
pulumi.set(__self__, "http2_options", http2_options)
if http_router_id is not None:
pulumi.set(__self__, "http_router_id", http_router_id)
@property
@pulumi.getter(name="allowHttp10")
def allow_http10(self) -> Optional[pulumi.Input[bool]]:
"""
If set, will enable only HTTP1 protocol with HTTP1.0 support.
"""
return pulumi.get(self, "allow_http10")
@allow_http10.setter
def allow_http10(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "allow_http10", value)
@property
@pulumi.getter(name="http2Options")
def http2_options(self) -> Optional[pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerHandlerHttpHandlerHttp2OptionsArgs']]:
"""
If set, will enable HTTP2 protocol for the handler. The structure is documented below.
"""
return pulumi.get(self, "http2_options")
@http2_options.setter
def http2_options(self, value: Optional[pulumi.Input['AlbLoadBalancerListenerTlsSniHandlerHandlerHttpHandlerHttp2OptionsArgs']]):
pulumi.set(self, "http2_options", value)
@property
@pulumi.getter(name="httpRouterId")
def http_router_id(self) -> Optional[pulumi.Input[str]]:
"""
HTTP router id.
"""
return pulumi.get(self, "http_router_id")
@http_router_id.setter
def http_router_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "http_router_id", value)
@pulumi.input_type
class AlbLoadBalancerListenerTlsSniHandlerHandlerHttpHandlerHttp2OptionsArgs:
def __init__(__self__, *,
max_concurrent_streams: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] max_concurrent_streams: Maximum number of concurrent streams.
"""
if max_concurrent_streams is not None:
pulumi.set(__self__, "max_concurrent_streams", max_concurrent_streams)
@property
@pulumi.getter(name="maxConcurrentStreams")
def max_concurrent_streams(self) -> Optional[pulumi.Input[int]]:
"""
Maximum number of concurrent streams.
"""
return pulumi.get(self, "max_concurrent_streams")
@max_concurrent_streams.setter
def max_concurrent_streams(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_concurrent_streams", value)
@pulumi.input_type
class AlbTargetGroupTargetArgs:
def __init__(__self__, *,
ip_address: pulumi.Input[str],
subnet_id: pulumi.Input[str]):
"""
:param pulumi.Input[str] ip_address: IP address of the target.
:param pulumi.Input[str] subnet_id: ID of the subnet that targets are connected to.
All targets in the target group must be connected to the same subnet within a single availability zone.
"""
pulumi.set(__self__, "ip_address", ip_address)
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter(name="ipAddress")
def ip_address(self) -> pulumi.Input[str]:
"""
IP address of the target.
"""
return pulumi.get(self, "ip_address")
@ip_address.setter
def ip_address(self, value: pulumi.Input[str]):
pulumi.set(self, "ip_address", value)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> pulumi.Input[str]:
"""
ID of the subnet that targets are connected to.
All targets in the target group must be connected to the same subnet within a single availability zone.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: pulumi.Input[str]):
pulumi.set(self, "subnet_id", value)
@pulumi.input_type
class AlbVirtualHostModifyRequestHeaderArgs:
def __init__(__self__, *,
append: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
remove: Optional[pulumi.Input[bool]] = None,
replace: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] append: Append string to the header value.
:param pulumi.Input[str] name: name of the route.
:param pulumi.Input[bool] remove: If set, remove the header.
:param pulumi.Input[str] replace: New value for a header. Header values support the following
[formatters](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#custom-request-response-headers).
"""
if append is not None:
pulumi.set(__self__, "append", append)
if name is not None:
pulumi.set(__self__, "name", name)
if remove is not None:
pulumi.set(__self__, "remove", remove)
if replace is not None:
pulumi.set(__self__, "replace", replace)
@property
@pulumi.getter
def append(self) -> Optional[pulumi.Input[str]]:
"""
Append string to the header value.
"""
return pulumi.get(self, "append")
@append.setter
def append(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "append", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
name of the route.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def remove(self) -> Optional[pulumi.Input[bool]]:
"""
If set, remove the header.
"""
return pulumi.get(self, "remove")
@remove.setter
def remove(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "remove", value)
@property
@pulumi.getter
def replace(self) -> Optional[pulumi.Input[str]]:
"""
New value for a header. Header values support the following
[formatters](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#custom-request-response-headers).
"""
return pulumi.get(self, "replace")
@replace.setter
def replace(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "replace", value)
@pulumi.input_type
class AlbVirtualHostModifyResponseHeaderArgs:
def __init__(__self__, *,
append: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
remove: Optional[pulumi.Input[bool]] = None,
replace: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] append: Append string to the header value.
:param pulumi.Input[str] name: name of the route.
:param pulumi.Input[bool] remove: If set, remove the header.
:param pulumi.Input[str] replace: New value for a header. Header values support the following
[formatters](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#custom-request-response-headers).
"""
if append is not None:
pulumi.set(__self__, "append", append)
if name is not None:
pulumi.set(__self__, "name", name)
if remove is not None:
pulumi.set(__self__, "remove", remove)
if replace is not None:
pulumi.set(__self__, "replace", replace)
@property
@pulumi.getter
def append(self) -> Optional[pulumi.Input[str]]:
"""
Append string to the header value.
"""
return pulumi.get(self, "append")
@append.setter
def append(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "append", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
name of the route.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def remove(self) -> Optional[pulumi.Input[bool]]:
"""
If set, remove the header.
"""
return pulumi.get(self, "remove")
@remove.setter
def remove(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "remove", value)
@property
@pulumi.getter
def replace(self) -> Optional[pulumi.Input[str]]:
"""
New value for a header. Header values support the following
[formatters](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#custom-request-response-headers).
"""
return pulumi.get(self, "replace")
@replace.setter
def replace(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "replace", value)
@pulumi.input_type
class AlbVirtualHostRouteArgs:
def __init__(__self__, *,
grpc_route: Optional[pulumi.Input['AlbVirtualHostRouteGrpcRouteArgs']] = None,
http_route: Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteArgs']] = None,
name: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input['AlbVirtualHostRouteGrpcRouteArgs'] grpc_route: GRPC route resource. The structure is documented below.
:param pulumi.Input['AlbVirtualHostRouteHttpRouteArgs'] http_route: HTTP route resource. The structure is documented below.
:param pulumi.Input[str] name: name of the route.
"""
if grpc_route is not None:
pulumi.set(__self__, "grpc_route", grpc_route)
if http_route is not None:
pulumi.set(__self__, "http_route", http_route)
if name is not None:
pulumi.set(__self__, "name", name)
@property
@pulumi.getter(name="grpcRoute")
def grpc_route(self) -> Optional[pulumi.Input['AlbVirtualHostRouteGrpcRouteArgs']]:
"""
GRPC route resource. The structure is documented below.
"""
return pulumi.get(self, "grpc_route")
@grpc_route.setter
def grpc_route(self, value: Optional[pulumi.Input['AlbVirtualHostRouteGrpcRouteArgs']]):
pulumi.set(self, "grpc_route", value)
@property
@pulumi.getter(name="httpRoute")
def http_route(self) -> Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteArgs']]:
"""
HTTP route resource. The structure is documented below.
"""
return pulumi.get(self, "http_route")
@http_route.setter
def http_route(self, value: Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteArgs']]):
pulumi.set(self, "http_route", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
name of the route.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@pulumi.input_type
class AlbVirtualHostRouteGrpcRouteArgs:
def __init__(__self__, *,
grpc_matches: Optional[pulumi.Input[Sequence[pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcMatchArgs']]]] = None,
grpc_route_action: Optional[pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcRouteActionArgs']] = None,
grpc_status_response_action: Optional[pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcStatusResponseActionArgs']] = None):
"""
:param pulumi.Input[Sequence[pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcMatchArgs']]] grpc_matches: Checks "/" prefix by default. The structure is documented below.
:param pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcRouteActionArgs'] grpc_route_action: GRPC route action resource. The structure is documented below.
:param pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcStatusResponseActionArgs'] grpc_status_response_action: GRPC status response action resource. The structure is documented below.
"""
if grpc_matches is not None:
pulumi.set(__self__, "grpc_matches", grpc_matches)
if grpc_route_action is not None:
pulumi.set(__self__, "grpc_route_action", grpc_route_action)
if grpc_status_response_action is not None:
pulumi.set(__self__, "grpc_status_response_action", grpc_status_response_action)
@property
@pulumi.getter(name="grpcMatches")
def grpc_matches(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcMatchArgs']]]]:
"""
Checks "/" prefix by default. The structure is documented below.
"""
return pulumi.get(self, "grpc_matches")
@grpc_matches.setter
def grpc_matches(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcMatchArgs']]]]):
pulumi.set(self, "grpc_matches", value)
@property
@pulumi.getter(name="grpcRouteAction")
def grpc_route_action(self) -> Optional[pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcRouteActionArgs']]:
"""
GRPC route action resource. The structure is documented below.
"""
return pulumi.get(self, "grpc_route_action")
@grpc_route_action.setter
def grpc_route_action(self, value: Optional[pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcRouteActionArgs']]):
pulumi.set(self, "grpc_route_action", value)
@property
@pulumi.getter(name="grpcStatusResponseAction")
def grpc_status_response_action(self) -> Optional[pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcStatusResponseActionArgs']]:
"""
GRPC status response action resource. The structure is documented below.
"""
return pulumi.get(self, "grpc_status_response_action")
@grpc_status_response_action.setter
def grpc_status_response_action(self, value: Optional[pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcStatusResponseActionArgs']]):
pulumi.set(self, "grpc_status_response_action", value)
@pulumi.input_type
class AlbVirtualHostRouteGrpcRouteGrpcMatchArgs:
def __init__(__self__, *,
fqmn: Optional[pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcMatchFqmnArgs']] = None):
"""
:param pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcMatchFqmnArgs'] fqmn: If not set, all services/methods are assumed. The structure is documented below.
"""
if fqmn is not None:
pulumi.set(__self__, "fqmn", fqmn)
@property
@pulumi.getter
def fqmn(self) -> Optional[pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcMatchFqmnArgs']]:
"""
If not set, all services/methods are assumed. The structure is documented below.
"""
return pulumi.get(self, "fqmn")
@fqmn.setter
def fqmn(self, value: Optional[pulumi.Input['AlbVirtualHostRouteGrpcRouteGrpcMatchFqmnArgs']]):
pulumi.set(self, "fqmn", value)
@pulumi.input_type
class AlbVirtualHostRouteGrpcRouteGrpcMatchFqmnArgs:
def __init__(__self__, *,
exact: Optional[pulumi.Input[str]] = None,
prefix: Optional[pulumi.Input[str]] = None):
if exact is not None:
pulumi.set(__self__, "exact", exact)
if prefix is not None:
pulumi.set(__self__, "prefix", prefix)
@property
@pulumi.getter
def exact(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "exact")
@exact.setter
def exact(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "exact", value)
@property
@pulumi.getter
def prefix(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "prefix")
@prefix.setter
def prefix(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "prefix", value)
@pulumi.input_type
class AlbVirtualHostRouteGrpcRouteGrpcRouteActionArgs:
def __init__(__self__, *,
backend_group_id: pulumi.Input[str],
auto_host_rewrite: Optional[pulumi.Input[bool]] = None,
host_rewrite: Optional[pulumi.Input[str]] = None,
idle_timeout: Optional[pulumi.Input[str]] = None,
max_timeout: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] backend_group_id: Backend group to route requests.
:param pulumi.Input[bool] auto_host_rewrite: If set, will automatically rewrite host.
:param pulumi.Input[str] host_rewrite: Host rewrite specifier.
:param pulumi.Input[str] idle_timeout: Specifies the idle timeout (time without any data transfer for the active request) for the
route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout
to the maximum time the stream is allowed to be alive. If not specified, there is no
per-route idle timeout.
:param pulumi.Input[str] max_timeout: Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is
60 seconds.
"""
pulumi.set(__self__, "backend_group_id", backend_group_id)
if auto_host_rewrite is not None:
pulumi.set(__self__, "auto_host_rewrite", auto_host_rewrite)
if host_rewrite is not None:
pulumi.set(__self__, "host_rewrite", host_rewrite)
if idle_timeout is not None:
pulumi.set(__self__, "idle_timeout", idle_timeout)
if max_timeout is not None:
pulumi.set(__self__, "max_timeout", max_timeout)
@property
@pulumi.getter(name="backendGroupId")
def backend_group_id(self) -> pulumi.Input[str]:
"""
Backend group to route requests.
"""
return pulumi.get(self, "backend_group_id")
@backend_group_id.setter
def backend_group_id(self, value: pulumi.Input[str]):
pulumi.set(self, "backend_group_id", value)
@property
@pulumi.getter(name="autoHostRewrite")
def auto_host_rewrite(self) -> Optional[pulumi.Input[bool]]:
"""
If set, will automatically rewrite host.
"""
return pulumi.get(self, "auto_host_rewrite")
@auto_host_rewrite.setter
def auto_host_rewrite(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "auto_host_rewrite", value)
@property
@pulumi.getter(name="hostRewrite")
def host_rewrite(self) -> Optional[pulumi.Input[str]]:
"""
Host rewrite specifier.
"""
return pulumi.get(self, "host_rewrite")
@host_rewrite.setter
def host_rewrite(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "host_rewrite", value)
@property
@pulumi.getter(name="idleTimeout")
def idle_timeout(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the idle timeout (time without any data transfer for the active request) for the
route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout
to the maximum time the stream is allowed to be alive. If not specified, there is no
per-route idle timeout.
"""
return pulumi.get(self, "idle_timeout")
@idle_timeout.setter
def idle_timeout(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "idle_timeout", value)
@property
@pulumi.getter(name="maxTimeout")
def max_timeout(self) -> Optional[pulumi.Input[str]]:
"""
Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is
60 seconds.
"""
return pulumi.get(self, "max_timeout")
@max_timeout.setter
def max_timeout(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "max_timeout", value)
@pulumi.input_type
class AlbVirtualHostRouteGrpcRouteGrpcStatusResponseActionArgs:
def __init__(__self__, *,
status: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] status: The status of the response. Supported values are: ok, invalid_argumet, not_found,
permission_denied, unauthenticated, unimplemented, internal, unavailable.
"""
if status is not None:
pulumi.set(__self__, "status", status)
@property
@pulumi.getter
def status(self) -> Optional[pulumi.Input[str]]:
"""
The status of the response. Supported values are: ok, invalid_argumet, not_found,
permission_denied, unauthenticated, unimplemented, internal, unavailable.
"""
return pulumi.get(self, "status")
@status.setter
def status(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "status", value)
@pulumi.input_type
class AlbVirtualHostRouteHttpRouteArgs:
def __init__(__self__, *,
direct_response_action: Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteDirectResponseActionArgs']] = None,
http_matches: Optional[pulumi.Input[Sequence[pulumi.Input['AlbVirtualHostRouteHttpRouteHttpMatchArgs']]]] = None,
http_route_action: Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteHttpRouteActionArgs']] = None,
redirect_action: Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteRedirectActionArgs']] = None):
"""
:param pulumi.Input['AlbVirtualHostRouteHttpRouteDirectResponseActionArgs'] direct_response_action: Direct response action resource. The structure is documented below.
:param pulumi.Input[Sequence[pulumi.Input['AlbVirtualHostRouteHttpRouteHttpMatchArgs']]] http_matches: Checks "/" prefix by default. The structure is documented below.
:param pulumi.Input['AlbVirtualHostRouteHttpRouteHttpRouteActionArgs'] http_route_action: HTTP route action resource. The structure is documented below.
:param pulumi.Input['AlbVirtualHostRouteHttpRouteRedirectActionArgs'] redirect_action: Redirect action resource. The structure is documented below.
"""
if direct_response_action is not None:
pulumi.set(__self__, "direct_response_action", direct_response_action)
if http_matches is not None:
pulumi.set(__self__, "http_matches", http_matches)
if http_route_action is not None:
pulumi.set(__self__, "http_route_action", http_route_action)
if redirect_action is not None:
pulumi.set(__self__, "redirect_action", redirect_action)
@property
@pulumi.getter(name="directResponseAction")
def direct_response_action(self) -> Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteDirectResponseActionArgs']]:
"""
Direct response action resource. The structure is documented below.
"""
return pulumi.get(self, "direct_response_action")
@direct_response_action.setter
def direct_response_action(self, value: Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteDirectResponseActionArgs']]):
pulumi.set(self, "direct_response_action", value)
@property
@pulumi.getter(name="httpMatches")
def http_matches(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AlbVirtualHostRouteHttpRouteHttpMatchArgs']]]]:
"""
Checks "/" prefix by default. The structure is documented below.
"""
return pulumi.get(self, "http_matches")
@http_matches.setter
def http_matches(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AlbVirtualHostRouteHttpRouteHttpMatchArgs']]]]):
pulumi.set(self, "http_matches", value)
@property
@pulumi.getter(name="httpRouteAction")
def http_route_action(self) -> Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteHttpRouteActionArgs']]:
"""
HTTP route action resource. The structure is documented below.
"""
return pulumi.get(self, "http_route_action")
@http_route_action.setter
def http_route_action(self, value: Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteHttpRouteActionArgs']]):
pulumi.set(self, "http_route_action", value)
@property
@pulumi.getter(name="redirectAction")
def redirect_action(self) -> Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteRedirectActionArgs']]:
"""
Redirect action resource. The structure is documented below.
"""
return pulumi.get(self, "redirect_action")
@redirect_action.setter
def redirect_action(self, value: Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteRedirectActionArgs']]):
pulumi.set(self, "redirect_action", value)
@pulumi.input_type
class AlbVirtualHostRouteHttpRouteDirectResponseActionArgs:
def __init__(__self__, *,
body: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] body: Response body text.
:param pulumi.Input[int] status: The status of the response. Supported values are: ok, invalid_argumet, not_found,
permission_denied, unauthenticated, unimplemented, internal, unavailable.
"""
if body is not None:
pulumi.set(__self__, "body", body)
if status is not None:
pulumi.set(__self__, "status", status)
@property
@pulumi.getter
def body(self) -> Optional[pulumi.Input[str]]:
"""
Response body text.
"""
return pulumi.get(self, "body")
@body.setter
def body(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "body", value)
@property
@pulumi.getter
def status(self) -> Optional[pulumi.Input[int]]:
"""
The status of the response. Supported values are: ok, invalid_argumet, not_found,
permission_denied, unauthenticated, unimplemented, internal, unavailable.
"""
return pulumi.get(self, "status")
@status.setter
def status(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "status", value)
@pulumi.input_type
class AlbVirtualHostRouteHttpRouteHttpMatchArgs:
def __init__(__self__, *,
http_methods: Optional[pulumi.Input[Sequence[Any]]] = None,
path: Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteHttpMatchPathArgs']] = None):
"""
:param pulumi.Input[Sequence[Any]] http_methods: List of methods(strings).
:param pulumi.Input['AlbVirtualHostRouteHttpRouteHttpMatchPathArgs'] path: If not set, '/' is assumed. The structure is documented below.
"""
if http_methods is not None:
pulumi.set(__self__, "http_methods", http_methods)
if path is not None:
pulumi.set(__self__, "path", path)
@property
@pulumi.getter(name="httpMethods")
def http_methods(self) -> Optional[pulumi.Input[Sequence[Any]]]:
"""
List of methods(strings).
"""
return pulumi.get(self, "http_methods")
@http_methods.setter
def http_methods(self, value: Optional[pulumi.Input[Sequence[Any]]]):
pulumi.set(self, "http_methods", value)
@property
@pulumi.getter
def path(self) -> Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteHttpMatchPathArgs']]:
"""
If not set, '/' is assumed. The structure is documented below.
"""
return pulumi.get(self, "path")
@path.setter
def path(self, value: Optional[pulumi.Input['AlbVirtualHostRouteHttpRouteHttpMatchPathArgs']]):
pulumi.set(self, "path", value)
@pulumi.input_type
class AlbVirtualHostRouteHttpRouteHttpMatchPathArgs:
def __init__(__self__, *,
exact: Optional[pulumi.Input[str]] = None,
prefix: Optional[pulumi.Input[str]] = None):
if exact is not None:
pulumi.set(__self__, "exact", exact)
if prefix is not None:
pulumi.set(__self__, "prefix", prefix)
@property
@pulumi.getter
def exact(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "exact")
@exact.setter
def exact(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "exact", value)
@property
@pulumi.getter
def prefix(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "prefix")
@prefix.setter
def prefix(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "prefix", value)
@pulumi.input_type
class AlbVirtualHostRouteHttpRouteHttpRouteActionArgs:
def __init__(__self__, *,
backend_group_id: pulumi.Input[str],
auto_host_rewrite: Optional[pulumi.Input[bool]] = None,
host_rewrite: Optional[pulumi.Input[str]] = None,
idle_timeout: Optional[pulumi.Input[str]] = None,
prefix_rewrite: Optional[pulumi.Input[str]] = None,
timeout: Optional[pulumi.Input[str]] = None,
upgrade_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
:param pulumi.Input[str] backend_group_id: Backend group to route requests.
:param pulumi.Input[bool] auto_host_rewrite: If set, will automatically rewrite host.
:param pulumi.Input[str] host_rewrite: Host rewrite specifier.
:param pulumi.Input[str] idle_timeout: Specifies the idle timeout (time without any data transfer for the active request) for the
route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout
to the maximum time the stream is allowed to be alive. If not specified, there is no
per-route idle timeout.
:param pulumi.Input[str] prefix_rewrite: If not empty, matched path prefix will be replaced by this value.
:param pulumi.Input[str] timeout: Specifies the request timeout (overall time request processing is allowed to take) for the
route. If not set, default is 60 seconds.
:param pulumi.Input[Sequence[pulumi.Input[str]]] upgrade_types: List of upgrade types. Only specified upgrade types will be allowed. For example,
"websocket".
"""
pulumi.set(__self__, "backend_group_id", backend_group_id)
if auto_host_rewrite is not None:
pulumi.set(__self__, "auto_host_rewrite", auto_host_rewrite)
if host_rewrite is not None:
pulumi.set(__self__, "host_rewrite", host_rewrite)
if idle_timeout is not None:
pulumi.set(__self__, "idle_timeout", idle_timeout)
if prefix_rewrite is not None:
pulumi.set(__self__, "prefix_rewrite", prefix_rewrite)
if timeout is not None:
pulumi.set(__self__, "timeout", timeout)
if upgrade_types is not None:
pulumi.set(__self__, "upgrade_types", upgrade_types)
@property
@pulumi.getter(name="backendGroupId")
def backend_group_id(self) -> pulumi.Input[str]:
"""
Backend group to route requests.
"""
return pulumi.get(self, "backend_group_id")
@backend_group_id.setter
def backend_group_id(self, value: pulumi.Input[str]):
pulumi.set(self, "backend_group_id", value)
@property
@pulumi.getter(name="autoHostRewrite")
def auto_host_rewrite(self) -> Optional[pulumi.Input[bool]]:
"""
If set, will automatically rewrite host.
"""
return pulumi.get(self, "auto_host_rewrite")
@auto_host_rewrite.setter
def auto_host_rewrite(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "auto_host_rewrite", value)
@property
@pulumi.getter(name="hostRewrite")
def host_rewrite(self) -> Optional[pulumi.Input[str]]:
"""
Host rewrite specifier.
"""
return pulumi.get(self, "host_rewrite")
@host_rewrite.setter
def host_rewrite(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "host_rewrite", value)
@property
@pulumi.getter(name="idleTimeout")
def idle_timeout(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the idle timeout (time without any data transfer for the active request) for the
route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout
to the maximum time the stream is allowed to be alive. If not specified, there is no
per-route idle timeout.
"""
return pulumi.get(self, "idle_timeout")
@idle_timeout.setter
def idle_timeout(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "idle_timeout", value)
@property
@pulumi.getter(name="prefixRewrite")
def prefix_rewrite(self) -> Optional[pulumi.Input[str]]:
"""
If not empty, matched path prefix will be replaced by this value.
"""
return pulumi.get(self, "prefix_rewrite")
@prefix_rewrite.setter
def prefix_rewrite(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "prefix_rewrite", value)
@property
@pulumi.getter
def timeout(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the request timeout (overall time request processing is allowed to take) for the
route. If not set, default is 60 seconds.
"""
return pulumi.get(self, "timeout")
@timeout.setter
def timeout(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "timeout", value)
@property
@pulumi.getter(name="upgradeTypes")
def upgrade_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
List of upgrade types. Only specified upgrade types will be allowed. For example,
"websocket".
"""
return pulumi.get(self, "upgrade_types")
@upgrade_types.setter
def upgrade_types(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "upgrade_types", value)
@pulumi.input_type
class AlbVirtualHostRouteHttpRouteRedirectActionArgs:
def __init__(__self__, *,
remove_query: Optional[pulumi.Input[bool]] = None,
replace_host: Optional[pulumi.Input[str]] = None,
replace_path: Optional[pulumi.Input[str]] = None,
replace_port: Optional[pulumi.Input[int]] = None,
replace_prefix: Optional[pulumi.Input[str]] = None,
replace_scheme: Optional[pulumi.Input[str]] = None,
response_code: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] replace_host: Replaces hostname.
:param pulumi.Input[str] replace_path: Replace path.
:param pulumi.Input[int] replace_port: Replaces port.
:param pulumi.Input[str] replace_prefix: Replace only matched prefix. Example:<br/> match:{ prefix_match: "/some" } <br/>
redirect: { replace_prefix: "/other" } <br/> will redirect "/something" to "/otherthing".
:param pulumi.Input[str] replace_scheme: Replaces scheme. If the original scheme is `http` or `https`, will also remove the
80 or 443 port, if present.
:param pulumi.Input[str] response_code: The HTTP status code to use in the redirect response. Supported values are:
moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
"""
if remove_query is not None:
pulumi.set(__self__, "remove_query", remove_query)
if replace_host is not None:
pulumi.set(__self__, "replace_host", replace_host)
if replace_path is not None:
pulumi.set(__self__, "replace_path", replace_path)
if replace_port is not None:
pulumi.set(__self__, "replace_port", replace_port)
if replace_prefix is not None:
pulumi.set(__self__, "replace_prefix", replace_prefix)
if replace_scheme is not None:
pulumi.set(__self__, "replace_scheme", replace_scheme)
if response_code is not None:
pulumi.set(__self__, "response_code", response_code)
@property
@pulumi.getter(name="removeQuery")
def remove_query(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "remove_query")
@remove_query.setter
def remove_query(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "remove_query", value)
@property
@pulumi.getter(name="replaceHost")
def replace_host(self) -> Optional[pulumi.Input[str]]:
"""
Replaces hostname.
"""
return pulumi.get(self, "replace_host")
@replace_host.setter
def replace_host(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "replace_host", value)
@property
@pulumi.getter(name="replacePath")
def replace_path(self) -> Optional[pulumi.Input[str]]:
"""
Replace path.
"""
return pulumi.get(self, "replace_path")
@replace_path.setter
def replace_path(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "replace_path", value)
@property
@pulumi.getter(name="replacePort")
def replace_port(self) -> Optional[pulumi.Input[int]]:
"""
Replaces port.
"""
return pulumi.get(self, "replace_port")
@replace_port.setter
def replace_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "replace_port", value)
@property
@pulumi.getter(name="replacePrefix")
def replace_prefix(self) -> Optional[pulumi.Input[str]]:
"""
Replace only matched prefix. Example:<br/> match:{ prefix_match: "/some" } <br/>
redirect: { replace_prefix: "/other" } <br/> will redirect "/something" to "/otherthing".
"""
return pulumi.get(self, "replace_prefix")
@replace_prefix.setter
def replace_prefix(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "replace_prefix", value)
@property
@pulumi.getter(name="replaceScheme")
def replace_scheme(self) -> Optional[pulumi.Input[str]]:
"""
Replaces scheme. If the original scheme is `http` or `https`, will also remove the
80 or 443 port, if present.
"""
return pulumi.get(self, "replace_scheme")
@replace_scheme.setter
def replace_scheme(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "replace_scheme", value)
@property
@pulumi.getter(name="responseCode")
def response_code(self) -> Optional[pulumi.Input[str]]:
"""
The HTTP status code to use in the redirect response. Supported values are:
moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
"""
return pulumi.get(self, "response_code")
@response_code.setter
def response_code(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "response_code", value)
@pulumi.input_type
class ComputeDiskDiskPlacementPolicyArgs:
def __init__(__self__, *,
disk_placement_group_id: pulumi.Input[str]):
"""
:param pulumi.Input[str] disk_placement_group_id: Specifies Disk Placement Group id.
"""
pulumi.set(__self__, "disk_placement_group_id", disk_placement_group_id)
@property
@pulumi.getter(name="diskPlacementGroupId")
def disk_placement_group_id(self) -> pulumi.Input[str]:
"""
Specifies Disk Placement Group id.
"""
return pulumi.get(self, "disk_placement_group_id")
@disk_placement_group_id.setter
def disk_placement_group_id(self, value: pulumi.Input[str]):
pulumi.set(self, "disk_placement_group_id", value)
@pulumi.input_type
class ComputeInstanceBootDiskArgs:
def __init__(__self__, *,
auto_delete: Optional[pulumi.Input[bool]] = None,
device_name: Optional[pulumi.Input[str]] = None,
disk_id: Optional[pulumi.Input[str]] = None,
initialize_params: Optional[pulumi.Input['ComputeInstanceBootDiskInitializeParamsArgs']] = None,
mode: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[bool] auto_delete: Whether the disk is auto-deleted when the instance
is deleted. The default value is false.
:param pulumi.Input[str] device_name: Name that can be used to access an attached disk
under `/dev/disk/by-id/`.
:param pulumi.Input[str] disk_id: ID of the disk that is attached to the instance.
:param pulumi.Input['ComputeInstanceBootDiskInitializeParamsArgs'] initialize_params: Parameters for a new disk that will be created
alongside the new instance. Either `initialize_params` or `disk_id` must be set. The structure is documented below.
:param pulumi.Input[str] mode: Type of access to the disk resource. By default, a disk is attached in `READ_WRITE` mode.
"""
if auto_delete is not None:
pulumi.set(__self__, "auto_delete", auto_delete)
if device_name is not None:
pulumi.set(__self__, "device_name", device_name)
if disk_id is not None:
pulumi.set(__self__, "disk_id", disk_id)
if initialize_params is not None:
pulumi.set(__self__, "initialize_params", initialize_params)
if mode is not None:
pulumi.set(__self__, "mode", mode)
@property
@pulumi.getter(name="autoDelete")
def auto_delete(self) -> Optional[pulumi.Input[bool]]:
"""
Whether the disk is auto-deleted when the instance
is deleted. The default value is false.
"""
return pulumi.get(self, "auto_delete")
@auto_delete.setter
def auto_delete(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "auto_delete", value)
@property
@pulumi.getter(name="deviceName")
def device_name(self) -> Optional[pulumi.Input[str]]:
"""
Name that can be used to access an attached disk
under `/dev/disk/by-id/`.
"""
return pulumi.get(self, "device_name")
@device_name.setter
def device_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "device_name", value)
@property
@pulumi.getter(name="diskId")
def disk_id(self) -> Optional[pulumi.Input[str]]:
"""
ID of the disk that is attached to the instance.
"""
return pulumi.get(self, "disk_id")
@disk_id.setter
def disk_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "disk_id", value)
@property
@pulumi.getter(name="initializeParams")
def initialize_params(self) -> Optional[pulumi.Input['ComputeInstanceBootDiskInitializeParamsArgs']]:
"""
Parameters for a new disk that will be created
alongside the new instance. Either `initialize_params` or `disk_id` must be set. The structure is documented below.
"""
return pulumi.get(self, "initialize_params")
@initialize_params.setter
def initialize_params(self, value: Optional[pulumi.Input['ComputeInstanceBootDiskInitializeParamsArgs']]):
pulumi.set(self, "initialize_params", value)
@property
@pulumi.getter
def mode(self) -> Optional[pulumi.Input[str]]:
"""
Type of access to the disk resource. By default, a disk is attached in `READ_WRITE` mode.
"""
return pulumi.get(self, "mode")
@mode.setter
def mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "mode", value)
@pulumi.input_type
class ComputeInstanceBootDiskInitializeParamsArgs:
def __init__(__self__, *,
description: Optional[pulumi.Input[str]] = None,
image_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
size: Optional[pulumi.Input[int]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] description: Description of the boot disk.
:param pulumi.Input[str] image_id: A disk image to initialize this disk from.
:param pulumi.Input[str] name: Name of the boot disk.
:param pulumi.Input[int] size: Size of the disk in GB.
:param pulumi.Input[str] snapshot_id: A snapshot to initialize this disk from.
:param pulumi.Input[str] type: Disk type.
"""
if description is not None:
pulumi.set(__self__, "description", description)
if image_id is not None:
pulumi.set(__self__, "image_id", image_id)
if name is not None:
pulumi.set(__self__, "name", name)
if size is not None:
pulumi.set(__self__, "size", size)
if snapshot_id is not None:
pulumi.set(__self__, "snapshot_id", snapshot_id)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
Description of the boot disk.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="imageId")
def image_id(self) -> Optional[pulumi.Input[str]]:
"""
A disk image to initialize this disk from.
"""
return pulumi.get(self, "image_id")
@image_id.setter
def image_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "image_id", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Name of the boot disk.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def size(self) -> Optional[pulumi.Input[int]]:
"""
Size of the disk in GB.
"""
return pulumi.get(self, "size")
@size.setter
def size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "size", value)
@property
@pulumi.getter(name="snapshotId")
def snapshot_id(self) -> Optional[pulumi.Input[str]]:
"""
A snapshot to initialize this disk from.
"""
return pulumi.get(self, "snapshot_id")
@snapshot_id.setter
def snapshot_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "snapshot_id", value)
@property
@pulumi.getter
def type(self) -> Optional[pulumi.Input[str]]:
"""
Disk type.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "type", value)
@pulumi.input_type
class ComputeInstanceGroupAllocationPolicyArgs:
def __init__(__self__, *,
zones: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[Sequence[pulumi.Input[str]]] zones: A list of availability zones.
"""
pulumi.set(__self__, "zones", zones)
@property
@pulumi.getter
def zones(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
A list of availability zones.
"""
return pulumi.get(self, "zones")
@zones.setter
def zones(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "zones", value)
@pulumi.input_type
class ComputeInstanceGroupApplicationLoadBalancerArgs:
def __init__(__self__, *,
max_opening_traffic_duration: Optional[pulumi.Input[int]] = None,
status_message: Optional[pulumi.Input[str]] = None,
target_group_description: Optional[pulumi.Input[str]] = None,
target_group_id: Optional[pulumi.Input[str]] = None,
target_group_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
target_group_name: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] max_opening_traffic_duration: Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
:param pulumi.Input[str] status_message: The status message of the instance.
:param pulumi.Input[str] target_group_description: A description of the target group.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] target_group_labels: A set of key/value label pairs.
:param pulumi.Input[str] target_group_name: The name of the target group.
"""
if max_opening_traffic_duration is not None:
pulumi.set(__self__, "max_opening_traffic_duration", max_opening_traffic_duration)
if status_message is not None:
pulumi.set(__self__, "status_message", status_message)
if target_group_description is not None:
pulumi.set(__self__, "target_group_description", target_group_description)
if target_group_id is not None:
pulumi.set(__self__, "target_group_id", target_group_id)
if target_group_labels is not None:
pulumi.set(__self__, "target_group_labels", target_group_labels)
if target_group_name is not None:
pulumi.set(__self__, "target_group_name", target_group_name)
@property
@pulumi.getter(name="maxOpeningTrafficDuration")
def max_opening_traffic_duration(self) -> Optional[pulumi.Input[int]]:
"""
Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
"""
return pulumi.get(self, "max_opening_traffic_duration")
@max_opening_traffic_duration.setter
def max_opening_traffic_duration(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_opening_traffic_duration", value)
@property
@pulumi.getter(name="statusMessage")
def status_message(self) -> Optional[pulumi.Input[str]]:
"""
The status message of the instance.
"""
return pulumi.get(self, "status_message")
@status_message.setter
def status_message(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "status_message", value)
@property
@pulumi.getter(name="targetGroupDescription")
def target_group_description(self) -> Optional[pulumi.Input[str]]:
"""
A description of the target group.
"""
return pulumi.get(self, "target_group_description")
@target_group_description.setter
def target_group_description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "target_group_description", value)
@property
@pulumi.getter(name="targetGroupId")
def target_group_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "target_group_id")
@target_group_id.setter
def target_group_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "target_group_id", value)
@property
@pulumi.getter(name="targetGroupLabels")
def target_group_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
A set of key/value label pairs.
"""
return pulumi.get(self, "target_group_labels")
@target_group_labels.setter
def target_group_labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "target_group_labels", value)
@property
@pulumi.getter(name="targetGroupName")
def target_group_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the target group.
"""
return pulumi.get(self, "target_group_name")
@target_group_name.setter
def target_group_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "target_group_name", value)
@pulumi.input_type
class ComputeInstanceGroupDeployPolicyArgs:
def __init__(__self__, *,
max_expansion: pulumi.Input[int],
max_unavailable: pulumi.Input[int],
max_creating: Optional[pulumi.Input[int]] = None,
max_deleting: Optional[pulumi.Input[int]] = None,
startup_duration: Optional[pulumi.Input[int]] = None,
strategy: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] max_expansion: The maximum number of instances that can be temporarily allocated above the group's target size
during the update process.
:param pulumi.Input[int] max_unavailable: The maximum number of running instances that can be taken offline (stopped or deleted) at the same time
during the update process.
:param pulumi.Input[int] max_creating: The maximum number of instances that can be created at the same time.
:param pulumi.Input[int] max_deleting: The maximum number of instances that can be deleted at the same time.
:param pulumi.Input[int] startup_duration: The amount of time in seconds to allow for an instance to start.
Instance will be considered up and running (and start receiving traffic) only after the startup_duration
has elapsed and all health checks are passed.
:param pulumi.Input[str] strategy: Affects the lifecycle of the instance during deployment. If set to `proactive` (default), Instance Groups
can forcefully stop a running instance. If `opportunistic`, Instance Groups does not stop a running instance. Instead,
it will wait until the instance stops itself or becomes unhealthy.
"""
pulumi.set(__self__, "max_expansion", max_expansion)
pulumi.set(__self__, "max_unavailable", max_unavailable)
if max_creating is not None:
pulumi.set(__self__, "max_creating", max_creating)
if max_deleting is not None:
pulumi.set(__self__, "max_deleting", max_deleting)
if startup_duration is not None:
pulumi.set(__self__, "startup_duration", startup_duration)
if strategy is not None:
pulumi.set(__self__, "strategy", strategy)
@property
@pulumi.getter(name="maxExpansion")
def max_expansion(self) -> pulumi.Input[int]:
"""
The maximum number of instances that can be temporarily allocated above the group's target size
during the update process.
"""
return pulumi.get(self, "max_expansion")
@max_expansion.setter
def max_expansion(self, value: pulumi.Input[int]):
pulumi.set(self, "max_expansion", value)
@property
@pulumi.getter(name="maxUnavailable")
def max_unavailable(self) -> pulumi.Input[int]:
"""
The maximum number of running instances that can be taken offline (stopped or deleted) at the same time
during the update process.
"""
return pulumi.get(self, "max_unavailable")
@max_unavailable.setter
def max_unavailable(self, value: pulumi.Input[int]):
pulumi.set(self, "max_unavailable", value)
@property
@pulumi.getter(name="maxCreating")
def max_creating(self) -> Optional[pulumi.Input[int]]:
"""
The maximum number of instances that can be created at the same time.
"""
return pulumi.get(self, "max_creating")
@max_creating.setter
def max_creating(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_creating", value)
@property
@pulumi.getter(name="maxDeleting")
def max_deleting(self) -> Optional[pulumi.Input[int]]:
"""
The maximum number of instances that can be deleted at the same time.
"""
return pulumi.get(self, "max_deleting")
@max_deleting.setter
def max_deleting(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_deleting", value)
@property
@pulumi.getter(name="startupDuration")
def startup_duration(self) -> Optional[pulumi.Input[int]]:
"""
The amount of time in seconds to allow for an instance to start.
Instance will be considered up and running (and start receiving traffic) only after the startup_duration
has elapsed and all health checks are passed.
"""
return pulumi.get(self, "startup_duration")
@startup_duration.setter
def startup_duration(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "startup_duration", value)
@property
@pulumi.getter
def strategy(self) -> Optional[pulumi.Input[str]]:
"""
Affects the lifecycle of the instance during deployment. If set to `proactive` (default), Instance Groups
can forcefully stop a running instance. If `opportunistic`, Instance Groups does not stop a running instance. Instead,
it will wait until the instance stops itself or becomes unhealthy.
"""
return pulumi.get(self, "strategy")
@strategy.setter
def strategy(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "strategy", value)
@pulumi.input_type
class ComputeInstanceGroupHealthCheckArgs:
def __init__(__self__, *,
healthy_threshold: Optional[pulumi.Input[int]] = None,
http_options: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupHealthCheckHttpOptionArgs']]]] = None,
interval: Optional[pulumi.Input[int]] = None,
tcp_options: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupHealthCheckTcpOptionArgs']]]] = None,
timeout: Optional[pulumi.Input[int]] = None,
unhealthy_threshold: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] healthy_threshold: The number of successful health checks before the managed instance is declared healthy.
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupHealthCheckHttpOptionArgs']]] http_options: HTTP check options. The structure is documented below.
:param pulumi.Input[int] interval: The interval to wait between health checks in seconds.
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupHealthCheckTcpOptionArgs']]] tcp_options: TCP check options. The structure is documented below.
:param pulumi.Input[int] timeout: The length of time to wait for a response before the health check times out in seconds.
:param pulumi.Input[int] unhealthy_threshold: The number of failed health checks before the managed instance is declared unhealthy.
"""
if healthy_threshold is not None:
pulumi.set(__self__, "healthy_threshold", healthy_threshold)
if http_options is not None:
pulumi.set(__self__, "http_options", http_options)
if interval is not None:
pulumi.set(__self__, "interval", interval)
if tcp_options is not None:
pulumi.set(__self__, "tcp_options", tcp_options)
if timeout is not None:
pulumi.set(__self__, "timeout", timeout)
if unhealthy_threshold is not None:
pulumi.set(__self__, "unhealthy_threshold", unhealthy_threshold)
@property
@pulumi.getter(name="healthyThreshold")
def healthy_threshold(self) -> Optional[pulumi.Input[int]]:
"""
The number of successful health checks before the managed instance is declared healthy.
"""
return pulumi.get(self, "healthy_threshold")
@healthy_threshold.setter
def healthy_threshold(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "healthy_threshold", value)
@property
@pulumi.getter(name="httpOptions")
def http_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupHealthCheckHttpOptionArgs']]]]:
"""
HTTP check options. The structure is documented below.
"""
return pulumi.get(self, "http_options")
@http_options.setter
def http_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupHealthCheckHttpOptionArgs']]]]):
pulumi.set(self, "http_options", value)
@property
@pulumi.getter
def interval(self) -> Optional[pulumi.Input[int]]:
"""
The interval to wait between health checks in seconds.
"""
return pulumi.get(self, "interval")
@interval.setter
def interval(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "interval", value)
@property
@pulumi.getter(name="tcpOptions")
def tcp_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupHealthCheckTcpOptionArgs']]]]:
"""
TCP check options. The structure is documented below.
"""
return pulumi.get(self, "tcp_options")
@tcp_options.setter
def tcp_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupHealthCheckTcpOptionArgs']]]]):
pulumi.set(self, "tcp_options", value)
@property
@pulumi.getter
def timeout(self) -> Optional[pulumi.Input[int]]:
"""
The length of time to wait for a response before the health check times out in seconds.
"""
return pulumi.get(self, "timeout")
@timeout.setter
def timeout(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "timeout", value)
@property
@pulumi.getter(name="unhealthyThreshold")
def unhealthy_threshold(self) -> Optional[pulumi.Input[int]]:
"""
The number of failed health checks before the managed instance is declared unhealthy.
"""
return pulumi.get(self, "unhealthy_threshold")
@unhealthy_threshold.setter
def unhealthy_threshold(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "unhealthy_threshold", value)
@pulumi.input_type
class ComputeInstanceGroupHealthCheckHttpOptionArgs:
def __init__(__self__, *,
path: pulumi.Input[str],
port: pulumi.Input[int]):
"""
:param pulumi.Input[str] path: The URL path used for health check requests.
:param pulumi.Input[int] port: The port used for TCP health checks.
"""
pulumi.set(__self__, "path", path)
pulumi.set(__self__, "port", port)
@property
@pulumi.getter
def path(self) -> pulumi.Input[str]:
"""
The URL path used for health check requests.
"""
return pulumi.get(self, "path")
@path.setter
def path(self, value: pulumi.Input[str]):
pulumi.set(self, "path", value)
@property
@pulumi.getter
def port(self) -> pulumi.Input[int]:
"""
The port used for TCP health checks.
"""
return pulumi.get(self, "port")
@port.setter
def port(self, value: pulumi.Input[int]):
pulumi.set(self, "port", value)
@pulumi.input_type
class ComputeInstanceGroupHealthCheckTcpOptionArgs:
def __init__(__self__, *,
port: pulumi.Input[int]):
"""
:param pulumi.Input[int] port: The port used for TCP health checks.
"""
pulumi.set(__self__, "port", port)
@property
@pulumi.getter
def port(self) -> pulumi.Input[int]:
"""
The port used for TCP health checks.
"""
return pulumi.get(self, "port")
@port.setter
def port(self, value: pulumi.Input[int]):
pulumi.set(self, "port", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceArgs:
def __init__(__self__, *,
fqdn: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
network_interfaces: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceNetworkInterfaceArgs']]]] = None,
status: Optional[pulumi.Input[str]] = None,
status_changed_at: Optional[pulumi.Input[str]] = None,
status_message: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] fqdn: DNS record fqdn (must have dot at the end).
:param pulumi.Input[str] instance_id: The ID of the instance.
:param pulumi.Input[str] name: Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders:
{instance.short_id}
{instance.index}
combination of {instance.zone_id} and {instance.index_in_zone}
Example: my-instance-{instance.index}
If not set, default is used: {instance_group.id}-{instance.short_id}
It may also contain another placeholders, see metadata doc for full list.
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceNetworkInterfaceArgs']]] network_interfaces: Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
:param pulumi.Input[str] status: The status of the instance.
:param pulumi.Input[str] status_message: The status message of the instance.
:param pulumi.Input[str] zone_id: The ID of the availability zone where the instance resides.
"""
if fqdn is not None:
pulumi.set(__self__, "fqdn", fqdn)
if instance_id is not None:
pulumi.set(__self__, "instance_id", instance_id)
if name is not None:
pulumi.set(__self__, "name", name)
if network_interfaces is not None:
pulumi.set(__self__, "network_interfaces", network_interfaces)
if status is not None:
pulumi.set(__self__, "status", status)
if status_changed_at is not None:
pulumi.set(__self__, "status_changed_at", status_changed_at)
if status_message is not None:
pulumi.set(__self__, "status_message", status_message)
if zone_id is not None:
pulumi.set(__self__, "zone_id", zone_id)
@property
@pulumi.getter
def fqdn(self) -> Optional[pulumi.Input[str]]:
"""
DNS record fqdn (must have dot at the end).
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "fqdn", value)
@property
@pulumi.getter(name="instanceId")
def instance_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the instance.
"""
return pulumi.get(self, "instance_id")
@instance_id.setter
def instance_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "instance_id", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders:
{instance.short_id}
{instance.index}
combination of {instance.zone_id} and {instance.index_in_zone}
Example: my-instance-{instance.index}
If not set, default is used: {instance_group.id}-{instance.short_id}
It may also contain another placeholders, see metadata doc for full list.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="networkInterfaces")
def network_interfaces(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceNetworkInterfaceArgs']]]]:
"""
Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
"""
return pulumi.get(self, "network_interfaces")
@network_interfaces.setter
def network_interfaces(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceNetworkInterfaceArgs']]]]):
pulumi.set(self, "network_interfaces", value)
@property
@pulumi.getter
def status(self) -> Optional[pulumi.Input[str]]:
"""
The status of the instance.
"""
return pulumi.get(self, "status")
@status.setter
def status(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "status", value)
@property
@pulumi.getter(name="statusChangedAt")
def status_changed_at(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "status_changed_at")
@status_changed_at.setter
def status_changed_at(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "status_changed_at", value)
@property
@pulumi.getter(name="statusMessage")
def status_message(self) -> Optional[pulumi.Input[str]]:
"""
The status message of the instance.
"""
return pulumi.get(self, "status_message")
@status_message.setter
def status_message(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "status_message", value)
@property
@pulumi.getter(name="zoneId")
def zone_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the availability zone where the instance resides.
"""
return pulumi.get(self, "zone_id")
@zone_id.setter
def zone_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "zone_id", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceNetworkInterfaceArgs:
def __init__(__self__, *,
index: Optional[pulumi.Input[int]] = None,
ip_address: Optional[pulumi.Input[str]] = None,
ipv4: Optional[pulumi.Input[bool]] = None,
ipv6: Optional[pulumi.Input[bool]] = None,
ipv6_address: Optional[pulumi.Input[str]] = None,
mac_address: Optional[pulumi.Input[str]] = None,
nat: Optional[pulumi.Input[bool]] = None,
nat_ip_address: Optional[pulumi.Input[str]] = None,
nat_ip_version: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] index: The index of the network interface as generated by the server.
:param pulumi.Input[str] ip_address: Manual set static IP address.
:param pulumi.Input[bool] ipv4: True if IPv4 address allocated for the network interface.
:param pulumi.Input[str] ipv6_address: Manual set static IPv6 address.
:param pulumi.Input[str] mac_address: The MAC address assigned to the network interface.
:param pulumi.Input[bool] nat: Flag for using NAT.
:param pulumi.Input[str] nat_ip_address: A public address that can be used to access the internet over NAT. Use `variables` to set.
:param pulumi.Input[str] nat_ip_version: The IP version for the public address.
:param pulumi.Input[str] subnet_id: The ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
"""
if index is not None:
pulumi.set(__self__, "index", index)
if ip_address is not None:
pulumi.set(__self__, "ip_address", ip_address)
if ipv4 is not None:
pulumi.set(__self__, "ipv4", ipv4)
if ipv6 is not None:
pulumi.set(__self__, "ipv6", ipv6)
if ipv6_address is not None:
pulumi.set(__self__, "ipv6_address", ipv6_address)
if mac_address is not None:
pulumi.set(__self__, "mac_address", mac_address)
if nat is not None:
pulumi.set(__self__, "nat", nat)
if nat_ip_address is not None:
pulumi.set(__self__, "nat_ip_address", nat_ip_address)
if nat_ip_version is not None:
pulumi.set(__self__, "nat_ip_version", nat_ip_version)
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter
def index(self) -> Optional[pulumi.Input[int]]:
"""
The index of the network interface as generated by the server.
"""
return pulumi.get(self, "index")
@index.setter
def index(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "index", value)
@property
@pulumi.getter(name="ipAddress")
def ip_address(self) -> Optional[pulumi.Input[str]]:
"""
Manual set static IP address.
"""
return pulumi.get(self, "ip_address")
@ip_address.setter
def ip_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "ip_address", value)
@property
@pulumi.getter
def ipv4(self) -> Optional[pulumi.Input[bool]]:
"""
True if IPv4 address allocated for the network interface.
"""
return pulumi.get(self, "ipv4")
@ipv4.setter
def ipv4(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ipv4", value)
@property
@pulumi.getter
def ipv6(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "ipv6")
@ipv6.setter
def ipv6(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ipv6", value)
@property
@pulumi.getter(name="ipv6Address")
def ipv6_address(self) -> Optional[pulumi.Input[str]]:
"""
Manual set static IPv6 address.
"""
return pulumi.get(self, "ipv6_address")
@ipv6_address.setter
def ipv6_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "ipv6_address", value)
@property
@pulumi.getter(name="macAddress")
def mac_address(self) -> Optional[pulumi.Input[str]]:
"""
The MAC address assigned to the network interface.
"""
return pulumi.get(self, "mac_address")
@mac_address.setter
def mac_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "mac_address", value)
@property
@pulumi.getter
def nat(self) -> Optional[pulumi.Input[bool]]:
"""
Flag for using NAT.
"""
return pulumi.get(self, "nat")
@nat.setter
def nat(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "nat", value)
@property
@pulumi.getter(name="natIpAddress")
def nat_ip_address(self) -> Optional[pulumi.Input[str]]:
"""
A public address that can be used to access the internet over NAT. Use `variables` to set.
"""
return pulumi.get(self, "nat_ip_address")
@nat_ip_address.setter
def nat_ip_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "nat_ip_address", value)
@property
@pulumi.getter(name="natIpVersion")
def nat_ip_version(self) -> Optional[pulumi.Input[str]]:
"""
The IP version for the public address.
"""
return pulumi.get(self, "nat_ip_version")
@nat_ip_version.setter
def nat_ip_version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "nat_ip_version", value)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the subnet to attach this interface to. The subnet must reside in the same zone where this instance was created.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subnet_id", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceTemplateArgs:
def __init__(__self__, *,
boot_disk: pulumi.Input['ComputeInstanceGroupInstanceTemplateBootDiskArgs'],
network_interfaces: pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceArgs']]],
resources: pulumi.Input['ComputeInstanceGroupInstanceTemplateResourcesArgs'],
description: Optional[pulumi.Input[str]] = None,
hostname: Optional[pulumi.Input[str]] = None,
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
network_settings: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkSettingArgs']]]] = None,
placement_policy: Optional[pulumi.Input['ComputeInstanceGroupInstanceTemplatePlacementPolicyArgs']] = None,
platform_id: Optional[pulumi.Input[str]] = None,
scheduling_policy: Optional[pulumi.Input['ComputeInstanceGroupInstanceTemplateSchedulingPolicyArgs']] = None,
secondary_disks: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateSecondaryDiskArgs']]]] = None,
service_account_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input['ComputeInstanceGroupInstanceTemplateBootDiskArgs'] boot_disk: Boot disk specifications for the instance. The structure is documented below.
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceArgs']]] network_interfaces: Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
:param pulumi.Input['ComputeInstanceGroupInstanceTemplateResourcesArgs'] resources: Compute resource specifications for the instance. The structure is documented below.
:param pulumi.Input[str] description: A description of the boot disk.
:param pulumi.Input[str] hostname: Hostname template for the instance.
This field is used to generate the FQDN value of instance.
The hostname must be unique within the network and region.
If not specified, the hostname will be equal to id of the instance
and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
In order to be unique it must contain at least on of instance unique placeholders:
{instance.short_id}
{instance.index}
combination of {instance.zone_id} and {instance.index_in_zone}
Example: my-instance-{instance.index}
If not set, `name` value will be used
It may also contain another placeholders, see metadata doc for full list.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map of labels of metric.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] metadata: A set of metadata key/value pairs to make available from within the instance.
:param pulumi.Input[str] name: Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders:
{instance.short_id}
{instance.index}
combination of {instance.zone_id} and {instance.index_in_zone}
Example: my-instance-{instance.index}
If not set, default is used: {instance_group.id}-{instance.short_id}
It may also contain another placeholders, see metadata doc for full list.
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkSettingArgs']]] network_settings: Network acceleration type for instance. The structure is documented below.
:param pulumi.Input['ComputeInstanceGroupInstanceTemplatePlacementPolicyArgs'] placement_policy: The placement policy configuration. The structure is documented below.
:param pulumi.Input[str] platform_id: The ID of the hardware platform configuration for the instance. The default is 'standard-v1'.
:param pulumi.Input['ComputeInstanceGroupInstanceTemplateSchedulingPolicyArgs'] scheduling_policy: The scheduling policy configuration. The structure is documented below.
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateSecondaryDiskArgs']]] secondary_disks: A list of disks to attach to the instance. The structure is documented below.
:param pulumi.Input[str] service_account_id: The ID of the service account authorized for this instance.
"""
pulumi.set(__self__, "boot_disk", boot_disk)
pulumi.set(__self__, "network_interfaces", network_interfaces)
pulumi.set(__self__, "resources", resources)
if description is not None:
pulumi.set(__self__, "description", description)
if hostname is not None:
pulumi.set(__self__, "hostname", hostname)
if labels is not None:
pulumi.set(__self__, "labels", labels)
if metadata is not None:
pulumi.set(__self__, "metadata", metadata)
if name is not None:
pulumi.set(__self__, "name", name)
if network_settings is not None:
pulumi.set(__self__, "network_settings", network_settings)
if placement_policy is not None:
pulumi.set(__self__, "placement_policy", placement_policy)
if platform_id is not None:
pulumi.set(__self__, "platform_id", platform_id)
if scheduling_policy is not None:
pulumi.set(__self__, "scheduling_policy", scheduling_policy)
if secondary_disks is not None:
pulumi.set(__self__, "secondary_disks", secondary_disks)
if service_account_id is not None:
pulumi.set(__self__, "service_account_id", service_account_id)
@property
@pulumi.getter(name="bootDisk")
def boot_disk(self) -> pulumi.Input['ComputeInstanceGroupInstanceTemplateBootDiskArgs']:
"""
Boot disk specifications for the instance. The structure is documented below.
"""
return pulumi.get(self, "boot_disk")
@boot_disk.setter
def boot_disk(self, value: pulumi.Input['ComputeInstanceGroupInstanceTemplateBootDiskArgs']):
pulumi.set(self, "boot_disk", value)
@property
@pulumi.getter(name="networkInterfaces")
def network_interfaces(self) -> pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceArgs']]]:
"""
Network specifications for the instance. This can be used multiple times for adding multiple interfaces. The structure is documented below.
"""
return pulumi.get(self, "network_interfaces")
@network_interfaces.setter
def network_interfaces(self, value: pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceArgs']]]):
pulumi.set(self, "network_interfaces", value)
@property
@pulumi.getter
def resources(self) -> pulumi.Input['ComputeInstanceGroupInstanceTemplateResourcesArgs']:
"""
Compute resource specifications for the instance. The structure is documented below.
"""
return pulumi.get(self, "resources")
@resources.setter
def resources(self, value: pulumi.Input['ComputeInstanceGroupInstanceTemplateResourcesArgs']):
pulumi.set(self, "resources", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
A description of the boot disk.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter
def hostname(self) -> Optional[pulumi.Input[str]]:
"""
Hostname template for the instance.
This field is used to generate the FQDN value of instance.
The hostname must be unique within the network and region.
If not specified, the hostname will be equal to id of the instance
and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
In order to be unique it must contain at least on of instance unique placeholders:
{instance.short_id}
{instance.index}
combination of {instance.zone_id} and {instance.index_in_zone}
Example: my-instance-{instance.index}
If not set, `name` value will be used
It may also contain another placeholders, see metadata doc for full list.
"""
return pulumi.get(self, "hostname")
@hostname.setter
def hostname(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "hostname", value)
@property
@pulumi.getter
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
A map of labels of metric.
"""
return pulumi.get(self, "labels")
@labels.setter
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "labels", value)
@property
@pulumi.getter
def metadata(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
A set of metadata key/value pairs to make available from within the instance.
"""
return pulumi.get(self, "metadata")
@metadata.setter
def metadata(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "metadata", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Name template of the instance.
In order to be unique it must contain at least one of instance unique placeholders:
{instance.short_id}
{instance.index}
combination of {instance.zone_id} and {instance.index_in_zone}
Example: my-instance-{instance.index}
If not set, default is used: {instance_group.id}-{instance.short_id}
It may also contain another placeholders, see metadata doc for full list.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="networkSettings")
def network_settings(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkSettingArgs']]]]:
"""
Network acceleration type for instance. The structure is documented below.
"""
return pulumi.get(self, "network_settings")
@network_settings.setter
def network_settings(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkSettingArgs']]]]):
pulumi.set(self, "network_settings", value)
@property
@pulumi.getter(name="placementPolicy")
def placement_policy(self) -> Optional[pulumi.Input['ComputeInstanceGroupInstanceTemplatePlacementPolicyArgs']]:
"""
The placement policy configuration. The structure is documented below.
"""
return pulumi.get(self, "placement_policy")
@placement_policy.setter
def placement_policy(self, value: Optional[pulumi.Input['ComputeInstanceGroupInstanceTemplatePlacementPolicyArgs']]):
pulumi.set(self, "placement_policy", value)
@property
@pulumi.getter(name="platformId")
def platform_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the hardware platform configuration for the instance. The default is 'standard-v1'.
"""
return pulumi.get(self, "platform_id")
@platform_id.setter
def platform_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "platform_id", value)
@property
@pulumi.getter(name="schedulingPolicy")
def scheduling_policy(self) -> Optional[pulumi.Input['ComputeInstanceGroupInstanceTemplateSchedulingPolicyArgs']]:
"""
The scheduling policy configuration. The structure is documented below.
"""
return pulumi.get(self, "scheduling_policy")
@scheduling_policy.setter
def scheduling_policy(self, value: Optional[pulumi.Input['ComputeInstanceGroupInstanceTemplateSchedulingPolicyArgs']]):
pulumi.set(self, "scheduling_policy", value)
@property
@pulumi.getter(name="secondaryDisks")
def secondary_disks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateSecondaryDiskArgs']]]]:
"""
A list of disks to attach to the instance. The structure is documented below.
"""
return pulumi.get(self, "secondary_disks")
@secondary_disks.setter
def secondary_disks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateSecondaryDiskArgs']]]]):
pulumi.set(self, "secondary_disks", value)
@property
@pulumi.getter(name="serviceAccountId")
def service_account_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the service account authorized for this instance.
"""
return pulumi.get(self, "service_account_id")
@service_account_id.setter
def service_account_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "service_account_id", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceTemplateBootDiskArgs:
def __init__(__self__, *,
device_name: Optional[pulumi.Input[str]] = None,
disk_id: Optional[pulumi.Input[str]] = None,
initialize_params: Optional[pulumi.Input['ComputeInstanceGroupInstanceTemplateBootDiskInitializeParamsArgs']] = None,
mode: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] device_name: This value can be used to reference the device under `/dev/disk/by-id/`.
:param pulumi.Input[str] disk_id: ID of the existing disk. To set use variables.
:param pulumi.Input['ComputeInstanceGroupInstanceTemplateBootDiskInitializeParamsArgs'] initialize_params: Parameters for creating a disk alongside the instance. The structure is documented below.
:param pulumi.Input[str] mode: The access mode to the disk resource. By default a disk is attached in `READ_WRITE` mode.
"""
if device_name is not None:
pulumi.set(__self__, "device_name", device_name)
if disk_id is not None:
pulumi.set(__self__, "disk_id", disk_id)
if initialize_params is not None:
pulumi.set(__self__, "initialize_params", initialize_params)
if mode is not None:
pulumi.set(__self__, "mode", mode)
@property
@pulumi.getter(name="deviceName")
def device_name(self) -> Optional[pulumi.Input[str]]:
"""
This value can be used to reference the device under `/dev/disk/by-id/`.
"""
return pulumi.get(self, "device_name")
@device_name.setter
def device_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "device_name", value)
@property
@pulumi.getter(name="diskId")
def disk_id(self) -> Optional[pulumi.Input[str]]:
"""
ID of the existing disk. To set use variables.
"""
return pulumi.get(self, "disk_id")
@disk_id.setter
def disk_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "disk_id", value)
@property
@pulumi.getter(name="initializeParams")
def initialize_params(self) -> Optional[pulumi.Input['ComputeInstanceGroupInstanceTemplateBootDiskInitializeParamsArgs']]:
"""
Parameters for creating a disk alongside the instance. The structure is documented below.
"""
return pulumi.get(self, "initialize_params")
@initialize_params.setter
def initialize_params(self, value: Optional[pulumi.Input['ComputeInstanceGroupInstanceTemplateBootDiskInitializeParamsArgs']]):
pulumi.set(self, "initialize_params", value)
@property
@pulumi.getter
def mode(self) -> Optional[pulumi.Input[str]]:
"""
The access mode to the disk resource. By default a disk is attached in `READ_WRITE` mode.
"""
return pulumi.get(self, "mode")
@mode.setter
def mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "mode", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceTemplateBootDiskInitializeParamsArgs:
def __init__(__self__, *,
description: Optional[pulumi.Input[str]] = None,
image_id: Optional[pulumi.Input[str]] = None,
size: Optional[pulumi.Input[int]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] description: A description of the boot disk.
:param pulumi.Input[str] image_id: The disk image to initialize this disk from.
:param pulumi.Input[int] size: The number of instances in the instance group.
:param pulumi.Input[str] snapshot_id: The snapshot to initialize this disk from.
:param pulumi.Input[str] type: Network acceleration type. By default a network is in `STANDARD` mode.
"""
if description is not None:
pulumi.set(__self__, "description", description)
if image_id is not None:
pulumi.set(__self__, "image_id", image_id)
if size is not None:
pulumi.set(__self__, "size", size)
if snapshot_id is not None:
pulumi.set(__self__, "snapshot_id", snapshot_id)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
A description of the boot disk.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="imageId")
def image_id(self) -> Optional[pulumi.Input[str]]:
"""
The disk image to initialize this disk from.
"""
return pulumi.get(self, "image_id")
@image_id.setter
def image_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "image_id", value)
@property
@pulumi.getter
def size(self) -> Optional[pulumi.Input[int]]:
"""
The number of instances in the instance group.
"""
return pulumi.get(self, "size")
@size.setter
def size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "size", value)
@property
@pulumi.getter(name="snapshotId")
def snapshot_id(self) -> Optional[pulumi.Input[str]]:
"""
The snapshot to initialize this disk from.
"""
return pulumi.get(self, "snapshot_id")
@snapshot_id.setter
def snapshot_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "snapshot_id", value)
@property
@pulumi.getter
def type(self) -> Optional[pulumi.Input[str]]:
"""
Network acceleration type. By default a network is in `STANDARD` mode.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "type", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceTemplateNetworkInterfaceArgs:
def __init__(__self__, *,
dns_records: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceDnsRecordArgs']]]] = None,
ip_address: Optional[pulumi.Input[str]] = None,
ipv4: Optional[pulumi.Input[bool]] = None,
ipv6: Optional[pulumi.Input[bool]] = None,
ipv6_address: Optional[pulumi.Input[str]] = None,
ipv6_dns_records: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceIpv6DnsRecordArgs']]]] = None,
nat: Optional[pulumi.Input[bool]] = None,
nat_dns_records: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceNatDnsRecordArgs']]]] = None,
nat_ip_address: Optional[pulumi.Input[str]] = None,
network_id: Optional[pulumi.Input[str]] = None,
security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceDnsRecordArgs']]] dns_records: List of dns records. The structure is documented below.
:param pulumi.Input[str] ip_address: Manual set static IP address.
:param pulumi.Input[bool] ipv4: True if IPv4 address allocated for the network interface.
:param pulumi.Input[str] ipv6_address: Manual set static IPv6 address.
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceIpv6DnsRecordArgs']]] ipv6_dns_records: List of ipv6 dns records. The structure is documented below.
:param pulumi.Input[bool] nat: Flag for using NAT.
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceNatDnsRecordArgs']]] nat_dns_records: List of nat dns records. The structure is documented below.
:param pulumi.Input[str] nat_ip_address: A public address that can be used to access the internet over NAT. Use `variables` to set.
:param pulumi.Input[str] network_id: The ID of the network.
:param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: Security group ids for network interface.
:param pulumi.Input[Sequence[pulumi.Input[str]]] subnet_ids: The ID of the subnets to attach this interface to.
"""
if dns_records is not None:
pulumi.set(__self__, "dns_records", dns_records)
if ip_address is not None:
pulumi.set(__self__, "ip_address", ip_address)
if ipv4 is not None:
pulumi.set(__self__, "ipv4", ipv4)
if ipv6 is not None:
pulumi.set(__self__, "ipv6", ipv6)
if ipv6_address is not None:
pulumi.set(__self__, "ipv6_address", ipv6_address)
if ipv6_dns_records is not None:
pulumi.set(__self__, "ipv6_dns_records", ipv6_dns_records)
if nat is not None:
pulumi.set(__self__, "nat", nat)
if nat_dns_records is not None:
pulumi.set(__self__, "nat_dns_records", nat_dns_records)
if nat_ip_address is not None:
pulumi.set(__self__, "nat_ip_address", nat_ip_address)
if network_id is not None:
pulumi.set(__self__, "network_id", network_id)
if security_group_ids is not None:
pulumi.set(__self__, "security_group_ids", security_group_ids)
if subnet_ids is not None:
pulumi.set(__self__, "subnet_ids", subnet_ids)
@property
@pulumi.getter(name="dnsRecords")
def dns_records(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceDnsRecordArgs']]]]:
"""
List of dns records. The structure is documented below.
"""
return pulumi.get(self, "dns_records")
@dns_records.setter
def dns_records(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceDnsRecordArgs']]]]):
pulumi.set(self, "dns_records", value)
@property
@pulumi.getter(name="ipAddress")
def ip_address(self) -> Optional[pulumi.Input[str]]:
"""
Manual set static IP address.
"""
return pulumi.get(self, "ip_address")
@ip_address.setter
def ip_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "ip_address", value)
@property
@pulumi.getter
def ipv4(self) -> Optional[pulumi.Input[bool]]:
"""
True if IPv4 address allocated for the network interface.
"""
return pulumi.get(self, "ipv4")
@ipv4.setter
def ipv4(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ipv4", value)
@property
@pulumi.getter
def ipv6(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "ipv6")
@ipv6.setter
def ipv6(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ipv6", value)
@property
@pulumi.getter(name="ipv6Address")
def ipv6_address(self) -> Optional[pulumi.Input[str]]:
"""
Manual set static IPv6 address.
"""
return pulumi.get(self, "ipv6_address")
@ipv6_address.setter
def ipv6_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "ipv6_address", value)
@property
@pulumi.getter(name="ipv6DnsRecords")
def ipv6_dns_records(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceIpv6DnsRecordArgs']]]]:
"""
List of ipv6 dns records. The structure is documented below.
"""
return pulumi.get(self, "ipv6_dns_records")
@ipv6_dns_records.setter
def ipv6_dns_records(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceIpv6DnsRecordArgs']]]]):
pulumi.set(self, "ipv6_dns_records", value)
@property
@pulumi.getter
def nat(self) -> Optional[pulumi.Input[bool]]:
"""
Flag for using NAT.
"""
return pulumi.get(self, "nat")
@nat.setter
def nat(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "nat", value)
@property
@pulumi.getter(name="natDnsRecords")
def nat_dns_records(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceNatDnsRecordArgs']]]]:
"""
List of nat dns records. The structure is documented below.
"""
return pulumi.get(self, "nat_dns_records")
@nat_dns_records.setter
def nat_dns_records(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupInstanceTemplateNetworkInterfaceNatDnsRecordArgs']]]]):
pulumi.set(self, "nat_dns_records", value)
@property
@pulumi.getter(name="natIpAddress")
def nat_ip_address(self) -> Optional[pulumi.Input[str]]:
"""
A public address that can be used to access the internet over NAT. Use `variables` to set.
"""
return pulumi.get(self, "nat_ip_address")
@nat_ip_address.setter
def nat_ip_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "nat_ip_address", value)
@property
@pulumi.getter(name="networkId")
def network_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the network.
"""
return pulumi.get(self, "network_id")
@network_id.setter
def network_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "network_id", value)
@property
@pulumi.getter(name="securityGroupIds")
def security_group_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Security group ids for network interface.
"""
return pulumi.get(self, "security_group_ids")
@security_group_ids.setter
def security_group_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "security_group_ids", value)
@property
@pulumi.getter(name="subnetIds")
def subnet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
The ID of the subnets to attach this interface to.
"""
return pulumi.get(self, "subnet_ids")
@subnet_ids.setter
def subnet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "subnet_ids", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceTemplateNetworkInterfaceDnsRecordArgs:
def __init__(__self__, *,
fqdn: pulumi.Input[str],
dns_zone_id: Optional[pulumi.Input[str]] = None,
ptr: Optional[pulumi.Input[bool]] = None,
ttl: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] fqdn: DNS record fqdn (must have dot at the end).
:param pulumi.Input[str] dns_zone_id: DNS zone id (if not set, private zone used).
:param pulumi.Input[bool] ptr: When set to true, also create PTR DNS record.
:param pulumi.Input[int] ttl: DNS record TTL.
"""
pulumi.set(__self__, "fqdn", fqdn)
if dns_zone_id is not None:
pulumi.set(__self__, "dns_zone_id", dns_zone_id)
if ptr is not None:
pulumi.set(__self__, "ptr", ptr)
if ttl is not None:
pulumi.set(__self__, "ttl", ttl)
@property
@pulumi.getter
def fqdn(self) -> pulumi.Input[str]:
"""
DNS record fqdn (must have dot at the end).
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: pulumi.Input[str]):
pulumi.set(self, "fqdn", value)
@property
@pulumi.getter(name="dnsZoneId")
def dns_zone_id(self) -> Optional[pulumi.Input[str]]:
"""
DNS zone id (if not set, private zone used).
"""
return pulumi.get(self, "dns_zone_id")
@dns_zone_id.setter
def dns_zone_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "dns_zone_id", value)
@property
@pulumi.getter
def ptr(self) -> Optional[pulumi.Input[bool]]:
"""
When set to true, also create PTR DNS record.
"""
return pulumi.get(self, "ptr")
@ptr.setter
def ptr(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ptr", value)
@property
@pulumi.getter
def ttl(self) -> Optional[pulumi.Input[int]]:
"""
DNS record TTL.
"""
return pulumi.get(self, "ttl")
@ttl.setter
def ttl(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "ttl", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceTemplateNetworkInterfaceIpv6DnsRecordArgs:
def __init__(__self__, *,
fqdn: pulumi.Input[str],
dns_zone_id: Optional[pulumi.Input[str]] = None,
ptr: Optional[pulumi.Input[bool]] = None,
ttl: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] fqdn: DNS record fqdn (must have dot at the end).
:param pulumi.Input[str] dns_zone_id: DNS zone id (if not set, private zone used).
:param pulumi.Input[bool] ptr: When set to true, also create PTR DNS record.
:param pulumi.Input[int] ttl: DNS record TTL.
"""
pulumi.set(__self__, "fqdn", fqdn)
if dns_zone_id is not None:
pulumi.set(__self__, "dns_zone_id", dns_zone_id)
if ptr is not None:
pulumi.set(__self__, "ptr", ptr)
if ttl is not None:
pulumi.set(__self__, "ttl", ttl)
@property
@pulumi.getter
def fqdn(self) -> pulumi.Input[str]:
"""
DNS record fqdn (must have dot at the end).
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: pulumi.Input[str]):
pulumi.set(self, "fqdn", value)
@property
@pulumi.getter(name="dnsZoneId")
def dns_zone_id(self) -> Optional[pulumi.Input[str]]:
"""
DNS zone id (if not set, private zone used).
"""
return pulumi.get(self, "dns_zone_id")
@dns_zone_id.setter
def dns_zone_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "dns_zone_id", value)
@property
@pulumi.getter
def ptr(self) -> Optional[pulumi.Input[bool]]:
"""
When set to true, also create PTR DNS record.
"""
return pulumi.get(self, "ptr")
@ptr.setter
def ptr(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ptr", value)
@property
@pulumi.getter
def ttl(self) -> Optional[pulumi.Input[int]]:
"""
DNS record TTL.
"""
return pulumi.get(self, "ttl")
@ttl.setter
def ttl(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "ttl", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceTemplateNetworkInterfaceNatDnsRecordArgs:
def __init__(__self__, *,
fqdn: pulumi.Input[str],
dns_zone_id: Optional[pulumi.Input[str]] = None,
ptr: Optional[pulumi.Input[bool]] = None,
ttl: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] fqdn: DNS record fqdn (must have dot at the end).
:param pulumi.Input[str] dns_zone_id: DNS zone id (if not set, private zone used).
:param pulumi.Input[bool] ptr: When set to true, also create PTR DNS record.
:param pulumi.Input[int] ttl: DNS record TTL.
"""
pulumi.set(__self__, "fqdn", fqdn)
if dns_zone_id is not None:
pulumi.set(__self__, "dns_zone_id", dns_zone_id)
if ptr is not None:
pulumi.set(__self__, "ptr", ptr)
if ttl is not None:
pulumi.set(__self__, "ttl", ttl)
@property
@pulumi.getter
def fqdn(self) -> pulumi.Input[str]:
"""
DNS record fqdn (must have dot at the end).
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: pulumi.Input[str]):
pulumi.set(self, "fqdn", value)
@property
@pulumi.getter(name="dnsZoneId")
def dns_zone_id(self) -> Optional[pulumi.Input[str]]:
"""
DNS zone id (if not set, private zone used).
"""
return pulumi.get(self, "dns_zone_id")
@dns_zone_id.setter
def dns_zone_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "dns_zone_id", value)
@property
@pulumi.getter
def ptr(self) -> Optional[pulumi.Input[bool]]:
"""
When set to true, also create PTR DNS record.
"""
return pulumi.get(self, "ptr")
@ptr.setter
def ptr(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ptr", value)
@property
@pulumi.getter
def ttl(self) -> Optional[pulumi.Input[int]]:
"""
DNS record TTL.
"""
return pulumi.get(self, "ttl")
@ttl.setter
def ttl(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "ttl", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceTemplateNetworkSettingArgs:
def __init__(__self__, *,
type: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] type: Network acceleration type. By default a network is in `STANDARD` mode.
"""
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def type(self) -> Optional[pulumi.Input[str]]:
"""
Network acceleration type. By default a network is in `STANDARD` mode.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "type", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceTemplatePlacementPolicyArgs:
def __init__(__self__, *,
placement_group_id: pulumi.Input[str]):
"""
:param pulumi.Input[str] placement_group_id: Specifies the id of the Placement Group to assign to the instances.
"""
pulumi.set(__self__, "placement_group_id", placement_group_id)
@property
@pulumi.getter(name="placementGroupId")
def placement_group_id(self) -> pulumi.Input[str]:
"""
Specifies the id of the Placement Group to assign to the instances.
"""
return pulumi.get(self, "placement_group_id")
@placement_group_id.setter
def placement_group_id(self, value: pulumi.Input[str]):
pulumi.set(self, "placement_group_id", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceTemplateResourcesArgs:
def __init__(__self__, *,
cores: pulumi.Input[int],
memory: pulumi.Input[float],
core_fraction: Optional[pulumi.Input[int]] = None,
gpus: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] cores: The number of CPU cores for the instance.
:param pulumi.Input[float] memory: The memory size in GB.
:param pulumi.Input[int] core_fraction: If provided, specifies baseline core performance as a percent.
"""
pulumi.set(__self__, "cores", cores)
pulumi.set(__self__, "memory", memory)
if core_fraction is not None:
pulumi.set(__self__, "core_fraction", core_fraction)
if gpus is not None:
pulumi.set(__self__, "gpus", gpus)
@property
@pulumi.getter
def cores(self) -> pulumi.Input[int]:
"""
The number of CPU cores for the instance.
"""
return pulumi.get(self, "cores")
@cores.setter
def cores(self, value: pulumi.Input[int]):
pulumi.set(self, "cores", value)
@property
@pulumi.getter
def memory(self) -> pulumi.Input[float]:
"""
The memory size in GB.
"""
return pulumi.get(self, "memory")
@memory.setter
def memory(self, value: pulumi.Input[float]):
pulumi.set(self, "memory", value)
@property
@pulumi.getter(name="coreFraction")
def core_fraction(self) -> Optional[pulumi.Input[int]]:
"""
If provided, specifies baseline core performance as a percent.
"""
return pulumi.get(self, "core_fraction")
@core_fraction.setter
def core_fraction(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "core_fraction", value)
@property
@pulumi.getter
def gpus(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "gpus")
@gpus.setter
def gpus(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "gpus", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceTemplateSchedulingPolicyArgs:
def __init__(__self__, *,
preemptible: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[bool] preemptible: Specifies if the instance is preemptible. Defaults to false.
"""
if preemptible is not None:
pulumi.set(__self__, "preemptible", preemptible)
@property
@pulumi.getter
def preemptible(self) -> Optional[pulumi.Input[bool]]:
"""
Specifies if the instance is preemptible. Defaults to false.
"""
return pulumi.get(self, "preemptible")
@preemptible.setter
def preemptible(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "preemptible", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceTemplateSecondaryDiskArgs:
def __init__(__self__, *,
device_name: Optional[pulumi.Input[str]] = None,
disk_id: Optional[pulumi.Input[str]] = None,
initialize_params: Optional[pulumi.Input['ComputeInstanceGroupInstanceTemplateSecondaryDiskInitializeParamsArgs']] = None,
mode: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] device_name: This value can be used to reference the device under `/dev/disk/by-id/`.
:param pulumi.Input[str] disk_id: ID of the existing disk. To set use variables.
:param pulumi.Input['ComputeInstanceGroupInstanceTemplateSecondaryDiskInitializeParamsArgs'] initialize_params: Parameters for creating a disk alongside the instance. The structure is documented below.
:param pulumi.Input[str] mode: The access mode to the disk resource. By default a disk is attached in `READ_WRITE` mode.
"""
if device_name is not None:
pulumi.set(__self__, "device_name", device_name)
if disk_id is not None:
pulumi.set(__self__, "disk_id", disk_id)
if initialize_params is not None:
pulumi.set(__self__, "initialize_params", initialize_params)
if mode is not None:
pulumi.set(__self__, "mode", mode)
@property
@pulumi.getter(name="deviceName")
def device_name(self) -> Optional[pulumi.Input[str]]:
"""
This value can be used to reference the device under `/dev/disk/by-id/`.
"""
return pulumi.get(self, "device_name")
@device_name.setter
def device_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "device_name", value)
@property
@pulumi.getter(name="diskId")
def disk_id(self) -> Optional[pulumi.Input[str]]:
"""
ID of the existing disk. To set use variables.
"""
return pulumi.get(self, "disk_id")
@disk_id.setter
def disk_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "disk_id", value)
@property
@pulumi.getter(name="initializeParams")
def initialize_params(self) -> Optional[pulumi.Input['ComputeInstanceGroupInstanceTemplateSecondaryDiskInitializeParamsArgs']]:
"""
Parameters for creating a disk alongside the instance. The structure is documented below.
"""
return pulumi.get(self, "initialize_params")
@initialize_params.setter
def initialize_params(self, value: Optional[pulumi.Input['ComputeInstanceGroupInstanceTemplateSecondaryDiskInitializeParamsArgs']]):
pulumi.set(self, "initialize_params", value)
@property
@pulumi.getter
def mode(self) -> Optional[pulumi.Input[str]]:
"""
The access mode to the disk resource. By default a disk is attached in `READ_WRITE` mode.
"""
return pulumi.get(self, "mode")
@mode.setter
def mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "mode", value)
@pulumi.input_type
class ComputeInstanceGroupInstanceTemplateSecondaryDiskInitializeParamsArgs:
def __init__(__self__, *,
description: Optional[pulumi.Input[str]] = None,
image_id: Optional[pulumi.Input[str]] = None,
size: Optional[pulumi.Input[int]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] description: A description of the boot disk.
:param pulumi.Input[str] image_id: The disk image to initialize this disk from.
:param pulumi.Input[int] size: The number of instances in the instance group.
:param pulumi.Input[str] snapshot_id: The snapshot to initialize this disk from.
:param pulumi.Input[str] type: Network acceleration type. By default a network is in `STANDARD` mode.
"""
if description is not None:
pulumi.set(__self__, "description", description)
if image_id is not None:
pulumi.set(__self__, "image_id", image_id)
if size is not None:
pulumi.set(__self__, "size", size)
if snapshot_id is not None:
pulumi.set(__self__, "snapshot_id", snapshot_id)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
A description of the boot disk.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="imageId")
def image_id(self) -> Optional[pulumi.Input[str]]:
"""
The disk image to initialize this disk from.
"""
return pulumi.get(self, "image_id")
@image_id.setter
def image_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "image_id", value)
@property
@pulumi.getter
def size(self) -> Optional[pulumi.Input[int]]:
"""
The number of instances in the instance group.
"""
return pulumi.get(self, "size")
@size.setter
def size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "size", value)
@property
@pulumi.getter(name="snapshotId")
def snapshot_id(self) -> Optional[pulumi.Input[str]]:
"""
The snapshot to initialize this disk from.
"""
return pulumi.get(self, "snapshot_id")
@snapshot_id.setter
def snapshot_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "snapshot_id", value)
@property
@pulumi.getter
def type(self) -> Optional[pulumi.Input[str]]:
"""
Network acceleration type. By default a network is in `STANDARD` mode.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "type", value)
@pulumi.input_type
class ComputeInstanceGroupLoadBalancerArgs:
def __init__(__self__, *,
max_opening_traffic_duration: Optional[pulumi.Input[int]] = None,
status_message: Optional[pulumi.Input[str]] = None,
target_group_description: Optional[pulumi.Input[str]] = None,
target_group_id: Optional[pulumi.Input[str]] = None,
target_group_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
target_group_name: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] max_opening_traffic_duration: Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
:param pulumi.Input[str] status_message: The status message of the instance.
:param pulumi.Input[str] target_group_description: A description of the target group.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] target_group_labels: A set of key/value label pairs.
:param pulumi.Input[str] target_group_name: The name of the target group.
"""
if max_opening_traffic_duration is not None:
pulumi.set(__self__, "max_opening_traffic_duration", max_opening_traffic_duration)
if status_message is not None:
pulumi.set(__self__, "status_message", status_message)
if target_group_description is not None:
pulumi.set(__self__, "target_group_description", target_group_description)
if target_group_id is not None:
pulumi.set(__self__, "target_group_id", target_group_id)
if target_group_labels is not None:
pulumi.set(__self__, "target_group_labels", target_group_labels)
if target_group_name is not None:
pulumi.set(__self__, "target_group_name", target_group_name)
@property
@pulumi.getter(name="maxOpeningTrafficDuration")
def max_opening_traffic_duration(self) -> Optional[pulumi.Input[int]]:
"""
Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
"""
return pulumi.get(self, "max_opening_traffic_duration")
@max_opening_traffic_duration.setter
def max_opening_traffic_duration(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_opening_traffic_duration", value)
@property
@pulumi.getter(name="statusMessage")
def status_message(self) -> Optional[pulumi.Input[str]]:
"""
The status message of the instance.
"""
return pulumi.get(self, "status_message")
@status_message.setter
def status_message(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "status_message", value)
@property
@pulumi.getter(name="targetGroupDescription")
def target_group_description(self) -> Optional[pulumi.Input[str]]:
"""
A description of the target group.
"""
return pulumi.get(self, "target_group_description")
@target_group_description.setter
def target_group_description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "target_group_description", value)
@property
@pulumi.getter(name="targetGroupId")
def target_group_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "target_group_id")
@target_group_id.setter
def target_group_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "target_group_id", value)
@property
@pulumi.getter(name="targetGroupLabels")
def target_group_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
A set of key/value label pairs.
"""
return pulumi.get(self, "target_group_labels")
@target_group_labels.setter
def target_group_labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "target_group_labels", value)
@property
@pulumi.getter(name="targetGroupName")
def target_group_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the target group.
"""
return pulumi.get(self, "target_group_name")
@target_group_name.setter
def target_group_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "target_group_name", value)
@pulumi.input_type
class ComputeInstanceGroupScalePolicyArgs:
def __init__(__self__, *,
auto_scale: Optional[pulumi.Input['ComputeInstanceGroupScalePolicyAutoScaleArgs']] = None,
fixed_scale: Optional[pulumi.Input['ComputeInstanceGroupScalePolicyFixedScaleArgs']] = None,
test_auto_scale: Optional[pulumi.Input['ComputeInstanceGroupScalePolicyTestAutoScaleArgs']] = None):
"""
:param pulumi.Input['ComputeInstanceGroupScalePolicyAutoScaleArgs'] auto_scale: The auto scaling policy of the instance group. The structure is documented below.
:param pulumi.Input['ComputeInstanceGroupScalePolicyFixedScaleArgs'] fixed_scale: The fixed scaling policy of the instance group. The structure is documented below.
:param pulumi.Input['ComputeInstanceGroupScalePolicyTestAutoScaleArgs'] test_auto_scale: The test auto scaling policy of the instance group. Use it to test how the auto scale works. The structure is documented below.
"""
if auto_scale is not None:
pulumi.set(__self__, "auto_scale", auto_scale)
if fixed_scale is not None:
pulumi.set(__self__, "fixed_scale", fixed_scale)
if test_auto_scale is not None:
pulumi.set(__self__, "test_auto_scale", test_auto_scale)
@property
@pulumi.getter(name="autoScale")
def auto_scale(self) -> Optional[pulumi.Input['ComputeInstanceGroupScalePolicyAutoScaleArgs']]:
"""
The auto scaling policy of the instance group. The structure is documented below.
"""
return pulumi.get(self, "auto_scale")
@auto_scale.setter
def auto_scale(self, value: Optional[pulumi.Input['ComputeInstanceGroupScalePolicyAutoScaleArgs']]):
pulumi.set(self, "auto_scale", value)
@property
@pulumi.getter(name="fixedScale")
def fixed_scale(self) -> Optional[pulumi.Input['ComputeInstanceGroupScalePolicyFixedScaleArgs']]:
"""
The fixed scaling policy of the instance group. The structure is documented below.
"""
return pulumi.get(self, "fixed_scale")
@fixed_scale.setter
def fixed_scale(self, value: Optional[pulumi.Input['ComputeInstanceGroupScalePolicyFixedScaleArgs']]):
pulumi.set(self, "fixed_scale", value)
@property
@pulumi.getter(name="testAutoScale")
def test_auto_scale(self) -> Optional[pulumi.Input['ComputeInstanceGroupScalePolicyTestAutoScaleArgs']]:
"""
The test auto scaling policy of the instance group. Use it to test how the auto scale works. The structure is documented below.
"""
return pulumi.get(self, "test_auto_scale")
@test_auto_scale.setter
def test_auto_scale(self, value: Optional[pulumi.Input['ComputeInstanceGroupScalePolicyTestAutoScaleArgs']]):
pulumi.set(self, "test_auto_scale", value)
@pulumi.input_type
class ComputeInstanceGroupScalePolicyAutoScaleArgs:
def __init__(__self__, *,
initial_size: pulumi.Input[int],
measurement_duration: pulumi.Input[int],
cpu_utilization_target: Optional[pulumi.Input[float]] = None,
custom_rules: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupScalePolicyAutoScaleCustomRuleArgs']]]] = None,
max_size: Optional[pulumi.Input[int]] = None,
min_zone_size: Optional[pulumi.Input[int]] = None,
stabilization_duration: Optional[pulumi.Input[int]] = None,
warmup_duration: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] initial_size: The initial number of instances in the instance group.
:param pulumi.Input[int] measurement_duration: The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the `cpu_utilization_target`,
the instance group will increase the number of virtual machines in the group.
:param pulumi.Input[float] cpu_utilization_target: Target CPU load level.
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupScalePolicyAutoScaleCustomRuleArgs']]] custom_rules: A list of custom rules. The structure is documented below.
:param pulumi.Input[int] max_size: The maximum number of virtual machines in the group.
:param pulumi.Input[int] min_zone_size: The minimum number of virtual machines in a single availability zone.
:param pulumi.Input[int] stabilization_duration: The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of `cpu_utilization_target`.
:param pulumi.Input[int] warmup_duration: The warm-up time of the virtual machine, in seconds. During this time,
traffic is fed to the virtual machine, but load metrics are not taken into account.
"""
pulumi.set(__self__, "initial_size", initial_size)
pulumi.set(__self__, "measurement_duration", measurement_duration)
if cpu_utilization_target is not None:
pulumi.set(__self__, "cpu_utilization_target", cpu_utilization_target)
if custom_rules is not None:
pulumi.set(__self__, "custom_rules", custom_rules)
if max_size is not None:
pulumi.set(__self__, "max_size", max_size)
if min_zone_size is not None:
pulumi.set(__self__, "min_zone_size", min_zone_size)
if stabilization_duration is not None:
pulumi.set(__self__, "stabilization_duration", stabilization_duration)
if warmup_duration is not None:
pulumi.set(__self__, "warmup_duration", warmup_duration)
@property
@pulumi.getter(name="initialSize")
def initial_size(self) -> pulumi.Input[int]:
"""
The initial number of instances in the instance group.
"""
return pulumi.get(self, "initial_size")
@initial_size.setter
def initial_size(self, value: pulumi.Input[int]):
pulumi.set(self, "initial_size", value)
@property
@pulumi.getter(name="measurementDuration")
def measurement_duration(self) -> pulumi.Input[int]:
"""
The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the `cpu_utilization_target`,
the instance group will increase the number of virtual machines in the group.
"""
return pulumi.get(self, "measurement_duration")
@measurement_duration.setter
def measurement_duration(self, value: pulumi.Input[int]):
pulumi.set(self, "measurement_duration", value)
@property
@pulumi.getter(name="cpuUtilizationTarget")
def cpu_utilization_target(self) -> Optional[pulumi.Input[float]]:
"""
Target CPU load level.
"""
return pulumi.get(self, "cpu_utilization_target")
@cpu_utilization_target.setter
def cpu_utilization_target(self, value: Optional[pulumi.Input[float]]):
pulumi.set(self, "cpu_utilization_target", value)
@property
@pulumi.getter(name="customRules")
def custom_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupScalePolicyAutoScaleCustomRuleArgs']]]]:
"""
A list of custom rules. The structure is documented below.
"""
return pulumi.get(self, "custom_rules")
@custom_rules.setter
def custom_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupScalePolicyAutoScaleCustomRuleArgs']]]]):
pulumi.set(self, "custom_rules", value)
@property
@pulumi.getter(name="maxSize")
def max_size(self) -> Optional[pulumi.Input[int]]:
"""
The maximum number of virtual machines in the group.
"""
return pulumi.get(self, "max_size")
@max_size.setter
def max_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_size", value)
@property
@pulumi.getter(name="minZoneSize")
def min_zone_size(self) -> Optional[pulumi.Input[int]]:
"""
The minimum number of virtual machines in a single availability zone.
"""
return pulumi.get(self, "min_zone_size")
@min_zone_size.setter
def min_zone_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "min_zone_size", value)
@property
@pulumi.getter(name="stabilizationDuration")
def stabilization_duration(self) -> Optional[pulumi.Input[int]]:
"""
The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of `cpu_utilization_target`.
"""
return pulumi.get(self, "stabilization_duration")
@stabilization_duration.setter
def stabilization_duration(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "stabilization_duration", value)
@property
@pulumi.getter(name="warmupDuration")
def warmup_duration(self) -> Optional[pulumi.Input[int]]:
"""
The warm-up time of the virtual machine, in seconds. During this time,
traffic is fed to the virtual machine, but load metrics are not taken into account.
"""
return pulumi.get(self, "warmup_duration")
@warmup_duration.setter
def warmup_duration(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "warmup_duration", value)
@pulumi.input_type
class ComputeInstanceGroupScalePolicyAutoScaleCustomRuleArgs:
def __init__(__self__, *,
metric_name: pulumi.Input[str],
metric_type: pulumi.Input[str],
rule_type: pulumi.Input[str],
target: pulumi.Input[float],
folder_id: Optional[pulumi.Input[str]] = None,
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
service: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] metric_name: The name of metric.
:param pulumi.Input[str] metric_type: Metric type, `GAUGE` or `COUNTER`.
:param pulumi.Input[str] rule_type: Rule type: `UTILIZATION` - This type means that the metric applies to one instance.
First, Instance Groups calculates the average metric value for each instance,
then averages the values for instances in one availability zone.
This type of metric must have the `instance_id` label. `WORKLOAD` - This type means that the metric applies to instances in one availability zone.
This type of metric must have the `zone_id` label.
:param pulumi.Input[float] target: Target metric value level.
:param pulumi.Input[str] folder_id: Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map of labels of metric.
:param pulumi.Input[str] service: Service of custom metric in Yandex Monitoring that should be used for scaling.
"""
pulumi.set(__self__, "metric_name", metric_name)
pulumi.set(__self__, "metric_type", metric_type)
pulumi.set(__self__, "rule_type", rule_type)
pulumi.set(__self__, "target", target)
if folder_id is not None:
pulumi.set(__self__, "folder_id", folder_id)
if labels is not None:
pulumi.set(__self__, "labels", labels)
if service is not None:
pulumi.set(__self__, "service", service)
@property
@pulumi.getter(name="metricName")
def metric_name(self) -> pulumi.Input[str]:
"""
The name of metric.
"""
return pulumi.get(self, "metric_name")
@metric_name.setter
def metric_name(self, value: pulumi.Input[str]):
pulumi.set(self, "metric_name", value)
@property
@pulumi.getter(name="metricType")
def metric_type(self) -> pulumi.Input[str]:
"""
Metric type, `GAUGE` or `COUNTER`.
"""
return pulumi.get(self, "metric_type")
@metric_type.setter
def metric_type(self, value: pulumi.Input[str]):
pulumi.set(self, "metric_type", value)
@property
@pulumi.getter(name="ruleType")
def rule_type(self) -> pulumi.Input[str]:
"""
Rule type: `UTILIZATION` - This type means that the metric applies to one instance.
First, Instance Groups calculates the average metric value for each instance,
then averages the values for instances in one availability zone.
This type of metric must have the `instance_id` label. `WORKLOAD` - This type means that the metric applies to instances in one availability zone.
This type of metric must have the `zone_id` label.
"""
return pulumi.get(self, "rule_type")
@rule_type.setter
def rule_type(self, value: pulumi.Input[str]):
pulumi.set(self, "rule_type", value)
@property
@pulumi.getter
def target(self) -> pulumi.Input[float]:
"""
Target metric value level.
"""
return pulumi.get(self, "target")
@target.setter
def target(self, value: pulumi.Input[float]):
pulumi.set(self, "target", value)
@property
@pulumi.getter(name="folderId")
def folder_id(self) -> Optional[pulumi.Input[str]]:
"""
Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
"""
return pulumi.get(self, "folder_id")
@folder_id.setter
def folder_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "folder_id", value)
@property
@pulumi.getter
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
A map of labels of metric.
"""
return pulumi.get(self, "labels")
@labels.setter
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "labels", value)
@property
@pulumi.getter
def service(self) -> Optional[pulumi.Input[str]]:
"""
Service of custom metric in Yandex Monitoring that should be used for scaling.
"""
return pulumi.get(self, "service")
@service.setter
def service(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "service", value)
@pulumi.input_type
class ComputeInstanceGroupScalePolicyFixedScaleArgs:
def __init__(__self__, *,
size: pulumi.Input[int]):
"""
:param pulumi.Input[int] size: The number of instances in the instance group.
"""
pulumi.set(__self__, "size", size)
@property
@pulumi.getter
def size(self) -> pulumi.Input[int]:
"""
The number of instances in the instance group.
"""
return pulumi.get(self, "size")
@size.setter
def size(self, value: pulumi.Input[int]):
pulumi.set(self, "size", value)
@pulumi.input_type
class ComputeInstanceGroupScalePolicyTestAutoScaleArgs:
def __init__(__self__, *,
initial_size: pulumi.Input[int],
measurement_duration: pulumi.Input[int],
cpu_utilization_target: Optional[pulumi.Input[float]] = None,
custom_rules: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupScalePolicyTestAutoScaleCustomRuleArgs']]]] = None,
max_size: Optional[pulumi.Input[int]] = None,
min_zone_size: Optional[pulumi.Input[int]] = None,
stabilization_duration: Optional[pulumi.Input[int]] = None,
warmup_duration: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] initial_size: The initial number of instances in the instance group.
:param pulumi.Input[int] measurement_duration: The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the `cpu_utilization_target`,
the instance group will increase the number of virtual machines in the group.
:param pulumi.Input[float] cpu_utilization_target: Target CPU load level.
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupScalePolicyTestAutoScaleCustomRuleArgs']]] custom_rules: A list of custom rules. The structure is documented below.
:param pulumi.Input[int] max_size: The maximum number of virtual machines in the group.
:param pulumi.Input[int] min_zone_size: The minimum number of virtual machines in a single availability zone.
:param pulumi.Input[int] stabilization_duration: The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of `cpu_utilization_target`.
:param pulumi.Input[int] warmup_duration: The warm-up time of the virtual machine, in seconds. During this time,
traffic is fed to the virtual machine, but load metrics are not taken into account.
"""
pulumi.set(__self__, "initial_size", initial_size)
pulumi.set(__self__, "measurement_duration", measurement_duration)
if cpu_utilization_target is not None:
pulumi.set(__self__, "cpu_utilization_target", cpu_utilization_target)
if custom_rules is not None:
pulumi.set(__self__, "custom_rules", custom_rules)
if max_size is not None:
pulumi.set(__self__, "max_size", max_size)
if min_zone_size is not None:
pulumi.set(__self__, "min_zone_size", min_zone_size)
if stabilization_duration is not None:
pulumi.set(__self__, "stabilization_duration", stabilization_duration)
if warmup_duration is not None:
pulumi.set(__self__, "warmup_duration", warmup_duration)
@property
@pulumi.getter(name="initialSize")
def initial_size(self) -> pulumi.Input[int]:
"""
The initial number of instances in the instance group.
"""
return pulumi.get(self, "initial_size")
@initial_size.setter
def initial_size(self, value: pulumi.Input[int]):
pulumi.set(self, "initial_size", value)
@property
@pulumi.getter(name="measurementDuration")
def measurement_duration(self) -> pulumi.Input[int]:
"""
The amount of time, in seconds, that metrics are averaged for.
If the average value at the end of the interval is higher than the `cpu_utilization_target`,
the instance group will increase the number of virtual machines in the group.
"""
return pulumi.get(self, "measurement_duration")
@measurement_duration.setter
def measurement_duration(self, value: pulumi.Input[int]):
pulumi.set(self, "measurement_duration", value)
@property
@pulumi.getter(name="cpuUtilizationTarget")
def cpu_utilization_target(self) -> Optional[pulumi.Input[float]]:
"""
Target CPU load level.
"""
return pulumi.get(self, "cpu_utilization_target")
@cpu_utilization_target.setter
def cpu_utilization_target(self, value: Optional[pulumi.Input[float]]):
pulumi.set(self, "cpu_utilization_target", value)
@property
@pulumi.getter(name="customRules")
def custom_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupScalePolicyTestAutoScaleCustomRuleArgs']]]]:
"""
A list of custom rules. The structure is documented below.
"""
return pulumi.get(self, "custom_rules")
@custom_rules.setter
def custom_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceGroupScalePolicyTestAutoScaleCustomRuleArgs']]]]):
pulumi.set(self, "custom_rules", value)
@property
@pulumi.getter(name="maxSize")
def max_size(self) -> Optional[pulumi.Input[int]]:
"""
The maximum number of virtual machines in the group.
"""
return pulumi.get(self, "max_size")
@max_size.setter
def max_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_size", value)
@property
@pulumi.getter(name="minZoneSize")
def min_zone_size(self) -> Optional[pulumi.Input[int]]:
"""
The minimum number of virtual machines in a single availability zone.
"""
return pulumi.get(self, "min_zone_size")
@min_zone_size.setter
def min_zone_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "min_zone_size", value)
@property
@pulumi.getter(name="stabilizationDuration")
def stabilization_duration(self) -> Optional[pulumi.Input[int]]:
"""
The minimum time interval, in seconds, to monitor the load before
an instance group can reduce the number of virtual machines in the group. During this time, the group
will not decrease even if the average load falls below the value of `cpu_utilization_target`.
"""
return pulumi.get(self, "stabilization_duration")
@stabilization_duration.setter
def stabilization_duration(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "stabilization_duration", value)
@property
@pulumi.getter(name="warmupDuration")
def warmup_duration(self) -> Optional[pulumi.Input[int]]:
"""
The warm-up time of the virtual machine, in seconds. During this time,
traffic is fed to the virtual machine, but load metrics are not taken into account.
"""
return pulumi.get(self, "warmup_duration")
@warmup_duration.setter
def warmup_duration(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "warmup_duration", value)
@pulumi.input_type
class ComputeInstanceGroupScalePolicyTestAutoScaleCustomRuleArgs:
def __init__(__self__, *,
metric_name: pulumi.Input[str],
metric_type: pulumi.Input[str],
rule_type: pulumi.Input[str],
target: pulumi.Input[float],
folder_id: Optional[pulumi.Input[str]] = None,
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
service: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] metric_name: The name of metric.
:param pulumi.Input[str] metric_type: Metric type, `GAUGE` or `COUNTER`.
:param pulumi.Input[str] rule_type: Rule type: `UTILIZATION` - This type means that the metric applies to one instance.
First, Instance Groups calculates the average metric value for each instance,
then averages the values for instances in one availability zone.
This type of metric must have the `instance_id` label. `WORKLOAD` - This type means that the metric applies to instances in one availability zone.
This type of metric must have the `zone_id` label.
:param pulumi.Input[float] target: Target metric value level.
:param pulumi.Input[str] folder_id: Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map of labels of metric.
:param pulumi.Input[str] service: Service of custom metric in Yandex Monitoring that should be used for scaling.
"""
pulumi.set(__self__, "metric_name", metric_name)
pulumi.set(__self__, "metric_type", metric_type)
pulumi.set(__self__, "rule_type", rule_type)
pulumi.set(__self__, "target", target)
if folder_id is not None:
pulumi.set(__self__, "folder_id", folder_id)
if labels is not None:
pulumi.set(__self__, "labels", labels)
if service is not None:
pulumi.set(__self__, "service", service)
@property
@pulumi.getter(name="metricName")
def metric_name(self) -> pulumi.Input[str]:
"""
The name of metric.
"""
return pulumi.get(self, "metric_name")
@metric_name.setter
def metric_name(self, value: pulumi.Input[str]):
pulumi.set(self, "metric_name", value)
@property
@pulumi.getter(name="metricType")
def metric_type(self) -> pulumi.Input[str]:
"""
Metric type, `GAUGE` or `COUNTER`.
"""
return pulumi.get(self, "metric_type")
@metric_type.setter
def metric_type(self, value: pulumi.Input[str]):
pulumi.set(self, "metric_type", value)
@property
@pulumi.getter(name="ruleType")
def rule_type(self) -> pulumi.Input[str]:
"""
Rule type: `UTILIZATION` - This type means that the metric applies to one instance.
First, Instance Groups calculates the average metric value for each instance,
then averages the values for instances in one availability zone.
This type of metric must have the `instance_id` label. `WORKLOAD` - This type means that the metric applies to instances in one availability zone.
This type of metric must have the `zone_id` label.
"""
return pulumi.get(self, "rule_type")
@rule_type.setter
def rule_type(self, value: pulumi.Input[str]):
pulumi.set(self, "rule_type", value)
@property
@pulumi.getter
def target(self) -> pulumi.Input[float]:
"""
Target metric value level.
"""
return pulumi.get(self, "target")
@target.setter
def target(self, value: pulumi.Input[float]):
pulumi.set(self, "target", value)
@property
@pulumi.getter(name="folderId")
def folder_id(self) -> Optional[pulumi.Input[str]]:
"""
Folder ID of custom metric in Yandex Monitoring that should be used for scaling.
"""
return pulumi.get(self, "folder_id")
@folder_id.setter
def folder_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "folder_id", value)
@property
@pulumi.getter
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
A map of labels of metric.
"""
return pulumi.get(self, "labels")
@labels.setter
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "labels", value)
@property
@pulumi.getter
def service(self) -> Optional[pulumi.Input[str]]:
"""
Service of custom metric in Yandex Monitoring that should be used for scaling.
"""
return pulumi.get(self, "service")
@service.setter
def service(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "service", value)
@pulumi.input_type
class ComputeInstanceNetworkInterfaceArgs:
def __init__(__self__, *,
subnet_id: pulumi.Input[str],
dns_records: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceNetworkInterfaceDnsRecordArgs']]]] = None,
index: Optional[pulumi.Input[int]] = None,
ip_address: Optional[pulumi.Input[str]] = None,
ipv4: Optional[pulumi.Input[bool]] = None,
ipv6: Optional[pulumi.Input[bool]] = None,
ipv6_address: Optional[pulumi.Input[str]] = None,
ipv6_dns_records: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceNetworkInterfaceIpv6DnsRecordArgs']]]] = None,
mac_address: Optional[pulumi.Input[str]] = None,
nat: Optional[pulumi.Input[bool]] = None,
nat_dns_records: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceNetworkInterfaceNatDnsRecordArgs']]]] = None,
nat_ip_address: Optional[pulumi.Input[str]] = None,
nat_ip_version: Optional[pulumi.Input[str]] = None,
security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
:param pulumi.Input[str] subnet_id: ID of the subnet to attach this
interface to. The subnet must exist in the same zone where this instance will be
created.
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceNetworkInterfaceDnsRecordArgs']]] dns_records: List of configurations for creating ipv4 DNS records. The structure is documented below.
:param pulumi.Input[str] ip_address: The private IP address to assign to the instance. If
empty, the address will be automatically assigned from the specified subnet.
:param pulumi.Input[bool] ipv4: Allocate an IPv4 address for the interface. The default value is `true`.
:param pulumi.Input[bool] ipv6: If true, allocate an IPv6 address for the interface.
The address will be automatically assigned from the specified subnet.
:param pulumi.Input[str] ipv6_address: The private IPv6 address to assign to the instance.
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceNetworkInterfaceIpv6DnsRecordArgs']]] ipv6_dns_records: List of configurations for creating ipv6 DNS records. The structure is documented below.
:param pulumi.Input[bool] nat: Provide a public address, for instance, to access the internet over NAT.
:param pulumi.Input[Sequence[pulumi.Input['ComputeInstanceNetworkInterfaceNatDnsRecordArgs']]] nat_dns_records: List of configurations for creating ipv4 NAT DNS records. The structure is documented below.
:param pulumi.Input[str] nat_ip_address: Provide a public address, for instance, to access the internet over NAT. Address should be already reserved in web UI.
:param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: Security group ids for network interface.
"""
pulumi.set(__self__, "subnet_id", subnet_id)
if dns_records is not None:
pulumi.set(__self__, "dns_records", dns_records)
if index is not None:
pulumi.set(__self__, "index", index)
if ip_address is not None:
pulumi.set(__self__, "ip_address", ip_address)
if ipv4 is not None:
pulumi.set(__self__, "ipv4", ipv4)
if ipv6 is not None:
pulumi.set(__self__, "ipv6", ipv6)
if ipv6_address is not None:
pulumi.set(__self__, "ipv6_address", ipv6_address)
if ipv6_dns_records is not None:
pulumi.set(__self__, "ipv6_dns_records", ipv6_dns_records)
if mac_address is not None:
pulumi.set(__self__, "mac_address", mac_address)
if nat is not None:
pulumi.set(__self__, "nat", nat)
if nat_dns_records is not None:
pulumi.set(__self__, "nat_dns_records", nat_dns_records)
if nat_ip_address is not None:
pulumi.set(__self__, "nat_ip_address", nat_ip_address)
if nat_ip_version is not None:
pulumi.set(__self__, "nat_ip_version", nat_ip_version)
if security_group_ids is not None:
pulumi.set(__self__, "security_group_ids", security_group_ids)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> pulumi.Input[str]:
"""
ID of the subnet to attach this
interface to. The subnet must exist in the same zone where this instance will be
created.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: pulumi.Input[str]):
pulumi.set(self, "subnet_id", value)
@property
@pulumi.getter(name="dnsRecords")
def dns_records(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceNetworkInterfaceDnsRecordArgs']]]]:
"""
List of configurations for creating ipv4 DNS records. The structure is documented below.
"""
return pulumi.get(self, "dns_records")
@dns_records.setter
def dns_records(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceNetworkInterfaceDnsRecordArgs']]]]):
pulumi.set(self, "dns_records", value)
@property
@pulumi.getter
def index(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "index")
@index.setter
def index(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "index", value)
@property
@pulumi.getter(name="ipAddress")
def ip_address(self) -> Optional[pulumi.Input[str]]:
"""
The private IP address to assign to the instance. If
empty, the address will be automatically assigned from the specified subnet.
"""
return pulumi.get(self, "ip_address")
@ip_address.setter
def ip_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "ip_address", value)
@property
@pulumi.getter
def ipv4(self) -> Optional[pulumi.Input[bool]]:
"""
Allocate an IPv4 address for the interface. The default value is `true`.
"""
return pulumi.get(self, "ipv4")
@ipv4.setter
def ipv4(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ipv4", value)
@property
@pulumi.getter
def ipv6(self) -> Optional[pulumi.Input[bool]]:
"""
If true, allocate an IPv6 address for the interface.
The address will be automatically assigned from the specified subnet.
"""
return pulumi.get(self, "ipv6")
@ipv6.setter
def ipv6(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ipv6", value)
@property
@pulumi.getter(name="ipv6Address")
def ipv6_address(self) -> Optional[pulumi.Input[str]]:
"""
The private IPv6 address to assign to the instance.
"""
return pulumi.get(self, "ipv6_address")
@ipv6_address.setter
def ipv6_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "ipv6_address", value)
@property
@pulumi.getter(name="ipv6DnsRecords")
def ipv6_dns_records(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceNetworkInterfaceIpv6DnsRecordArgs']]]]:
"""
List of configurations for creating ipv6 DNS records. The structure is documented below.
"""
return pulumi.get(self, "ipv6_dns_records")
@ipv6_dns_records.setter
def ipv6_dns_records(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceNetworkInterfaceIpv6DnsRecordArgs']]]]):
pulumi.set(self, "ipv6_dns_records", value)
@property
@pulumi.getter(name="macAddress")
def mac_address(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "mac_address")
@mac_address.setter
def mac_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "mac_address", value)
@property
@pulumi.getter
def nat(self) -> Optional[pulumi.Input[bool]]:
"""
Provide a public address, for instance, to access the internet over NAT.
"""
return pulumi.get(self, "nat")
@nat.setter
def nat(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "nat", value)
@property
@pulumi.getter(name="natDnsRecords")
def nat_dns_records(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceNetworkInterfaceNatDnsRecordArgs']]]]:
"""
List of configurations for creating ipv4 NAT DNS records. The structure is documented below.
"""
return pulumi.get(self, "nat_dns_records")
@nat_dns_records.setter
def nat_dns_records(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ComputeInstanceNetworkInterfaceNatDnsRecordArgs']]]]):
pulumi.set(self, "nat_dns_records", value)
@property
@pulumi.getter(name="natIpAddress")
def nat_ip_address(self) -> Optional[pulumi.Input[str]]:
"""
Provide a public address, for instance, to access the internet over NAT. Address should be already reserved in web UI.
"""
return pulumi.get(self, "nat_ip_address")
@nat_ip_address.setter
def nat_ip_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "nat_ip_address", value)
@property
@pulumi.getter(name="natIpVersion")
def nat_ip_version(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "nat_ip_version")
@nat_ip_version.setter
def nat_ip_version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "nat_ip_version", value)
@property
@pulumi.getter(name="securityGroupIds")
def security_group_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Security group ids for network interface.
"""
return pulumi.get(self, "security_group_ids")
@security_group_ids.setter
def security_group_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "security_group_ids", value)
@pulumi.input_type
class ComputeInstanceNetworkInterfaceDnsRecordArgs:
def __init__(__self__, *,
fqdn: pulumi.Input[str],
dns_zone_id: Optional[pulumi.Input[str]] = None,
ptr: Optional[pulumi.Input[bool]] = None,
ttl: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] fqdn: DNS record FQDN (must have a dot at the end).
:param pulumi.Input[str] dns_zone_id: DNS zone ID (if not set, private zone used).
:param pulumi.Input[bool] ptr: When set to true, also create a PTR DNS record.
:param pulumi.Input[int] ttl: DNS record TTL. in seconds
"""
pulumi.set(__self__, "fqdn", fqdn)
if dns_zone_id is not None:
pulumi.set(__self__, "dns_zone_id", dns_zone_id)
if ptr is not None:
pulumi.set(__self__, "ptr", ptr)
if ttl is not None:
pulumi.set(__self__, "ttl", ttl)
@property
@pulumi.getter
def fqdn(self) -> pulumi.Input[str]:
"""
DNS record FQDN (must have a dot at the end).
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: pulumi.Input[str]):
pulumi.set(self, "fqdn", value)
@property
@pulumi.getter(name="dnsZoneId")
def dns_zone_id(self) -> Optional[pulumi.Input[str]]:
"""
DNS zone ID (if not set, private zone used).
"""
return pulumi.get(self, "dns_zone_id")
@dns_zone_id.setter
def dns_zone_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "dns_zone_id", value)
@property
@pulumi.getter
def ptr(self) -> Optional[pulumi.Input[bool]]:
"""
When set to true, also create a PTR DNS record.
"""
return pulumi.get(self, "ptr")
@ptr.setter
def ptr(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ptr", value)
@property
@pulumi.getter
def ttl(self) -> Optional[pulumi.Input[int]]:
"""
DNS record TTL. in seconds
"""
return pulumi.get(self, "ttl")
@ttl.setter
def ttl(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "ttl", value)
@pulumi.input_type
class ComputeInstanceNetworkInterfaceIpv6DnsRecordArgs:
def __init__(__self__, *,
fqdn: pulumi.Input[str],
dns_zone_id: Optional[pulumi.Input[str]] = None,
ptr: Optional[pulumi.Input[bool]] = None,
ttl: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] fqdn: DNS record FQDN (must have a dot at the end).
:param pulumi.Input[str] dns_zone_id: DNS zone ID (if not set, private zone used).
:param pulumi.Input[bool] ptr: When set to true, also create a PTR DNS record.
:param pulumi.Input[int] ttl: DNS record TTL. in seconds
"""
pulumi.set(__self__, "fqdn", fqdn)
if dns_zone_id is not None:
pulumi.set(__self__, "dns_zone_id", dns_zone_id)
if ptr is not None:
pulumi.set(__self__, "ptr", ptr)
if ttl is not None:
pulumi.set(__self__, "ttl", ttl)
@property
@pulumi.getter
def fqdn(self) -> pulumi.Input[str]:
"""
DNS record FQDN (must have a dot at the end).
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: pulumi.Input[str]):
pulumi.set(self, "fqdn", value)
@property
@pulumi.getter(name="dnsZoneId")
def dns_zone_id(self) -> Optional[pulumi.Input[str]]:
"""
DNS zone ID (if not set, private zone used).
"""
return pulumi.get(self, "dns_zone_id")
@dns_zone_id.setter
def dns_zone_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "dns_zone_id", value)
@property
@pulumi.getter
def ptr(self) -> Optional[pulumi.Input[bool]]:
"""
When set to true, also create a PTR DNS record.
"""
return pulumi.get(self, "ptr")
@ptr.setter
def ptr(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ptr", value)
@property
@pulumi.getter
def ttl(self) -> Optional[pulumi.Input[int]]:
"""
DNS record TTL. in seconds
"""
return pulumi.get(self, "ttl")
@ttl.setter
def ttl(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "ttl", value)
@pulumi.input_type
class ComputeInstanceNetworkInterfaceNatDnsRecordArgs:
def __init__(__self__, *,
fqdn: pulumi.Input[str],
dns_zone_id: Optional[pulumi.Input[str]] = None,
ptr: Optional[pulumi.Input[bool]] = None,
ttl: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] fqdn: DNS record FQDN (must have a dot at the end).
:param pulumi.Input[str] dns_zone_id: DNS zone ID (if not set, private zone used).
:param pulumi.Input[bool] ptr: When set to true, also create a PTR DNS record.
:param pulumi.Input[int] ttl: DNS record TTL. in seconds
"""
pulumi.set(__self__, "fqdn", fqdn)
if dns_zone_id is not None:
pulumi.set(__self__, "dns_zone_id", dns_zone_id)
if ptr is not None:
pulumi.set(__self__, "ptr", ptr)
if ttl is not None:
pulumi.set(__self__, "ttl", ttl)
@property
@pulumi.getter
def fqdn(self) -> pulumi.Input[str]:
"""
DNS record FQDN (must have a dot at the end).
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: pulumi.Input[str]):
pulumi.set(self, "fqdn", value)
@property
@pulumi.getter(name="dnsZoneId")
def dns_zone_id(self) -> Optional[pulumi.Input[str]]:
"""
DNS zone ID (if not set, private zone used).
"""
return pulumi.get(self, "dns_zone_id")
@dns_zone_id.setter
def dns_zone_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "dns_zone_id", value)
@property
@pulumi.getter
def ptr(self) -> Optional[pulumi.Input[bool]]:
"""
When set to true, also create a PTR DNS record.
"""
return pulumi.get(self, "ptr")
@ptr.setter
def ptr(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ptr", value)
@property
@pulumi.getter
def ttl(self) -> Optional[pulumi.Input[int]]:
"""
DNS record TTL. in seconds
"""
return pulumi.get(self, "ttl")
@ttl.setter
def ttl(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "ttl", value)
@pulumi.input_type
class ComputeInstancePlacementPolicyArgs:
def __init__(__self__, *,
placement_group_id: pulumi.Input[str]):
"""
:param pulumi.Input[str] placement_group_id: Specifies the id of the Placement Group to assign to the instance.
"""
pulumi.set(__self__, "placement_group_id", placement_group_id)
@property
@pulumi.getter(name="placementGroupId")
def placement_group_id(self) -> pulumi.Input[str]:
"""
Specifies the id of the Placement Group to assign to the instance.
"""
return pulumi.get(self, "placement_group_id")
@placement_group_id.setter
def placement_group_id(self, value: pulumi.Input[str]):
pulumi.set(self, "placement_group_id", value)
@pulumi.input_type
class ComputeInstanceResourcesArgs:
def __init__(__self__, *,
cores: pulumi.Input[int],
memory: pulumi.Input[float],
core_fraction: Optional[pulumi.Input[int]] = None,
gpus: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] cores: CPU cores for the instance.
:param pulumi.Input[float] memory: Memory size in GB.
:param pulumi.Input[int] core_fraction: If provided, specifies baseline performance for a core as a percent.
"""
pulumi.set(__self__, "cores", cores)
pulumi.set(__self__, "memory", memory)
if core_fraction is not None:
pulumi.set(__self__, "core_fraction", core_fraction)
if gpus is not None:
pulumi.set(__self__, "gpus", gpus)
@property
@pulumi.getter
def cores(self) -> pulumi.Input[int]:
"""
CPU cores for the instance.
"""
return pulumi.get(self, "cores")
@cores.setter
def cores(self, value: pulumi.Input[int]):
pulumi.set(self, "cores", value)
@property
@pulumi.getter
def memory(self) -> pulumi.Input[float]:
"""
Memory size in GB.
"""
return pulumi.get(self, "memory")
@memory.setter
def memory(self, value: pulumi.Input[float]):
pulumi.set(self, "memory", value)
@property
@pulumi.getter(name="coreFraction")
def core_fraction(self) -> Optional[pulumi.Input[int]]:
"""
If provided, specifies baseline performance for a core as a percent.
"""
return pulumi.get(self, "core_fraction")
@core_fraction.setter
def core_fraction(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "core_fraction", value)
@property
@pulumi.getter
def gpus(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "gpus")
@gpus.setter
def gpus(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "gpus", value)
@pulumi.input_type
class ComputeInstanceSchedulingPolicyArgs:
def __init__(__self__, *,
preemptible: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[bool] preemptible: Specifies if the instance is preemptible. Defaults to false.
"""
if preemptible is not None:
pulumi.set(__self__, "preemptible", preemptible)
@property
@pulumi.getter
def preemptible(self) -> Optional[pulumi.Input[bool]]:
"""
Specifies if the instance is preemptible. Defaults to false.
"""
return pulumi.get(self, "preemptible")
@preemptible.setter
def preemptible(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "preemptible", value)
@pulumi.input_type
class ComputeInstanceSecondaryDiskArgs:
def __init__(__self__, *,
disk_id: pulumi.Input[str],
auto_delete: Optional[pulumi.Input[bool]] = None,
device_name: Optional[pulumi.Input[str]] = None,
mode: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] disk_id: ID of the disk that is attached to the instance.
:param pulumi.Input[bool] auto_delete: Whether the disk is auto-deleted when the instance
is deleted. The default value is false.
:param pulumi.Input[str] device_name: Name that can be used to access an attached disk
under `/dev/disk/by-id/`.
:param pulumi.Input[str] mode: Type of access to the disk resource. By default, a disk is attached in `READ_WRITE` mode.
"""
pulumi.set(__self__, "disk_id", disk_id)
if auto_delete is not None:
pulumi.set(__self__, "auto_delete", auto_delete)
if device_name is not None:
pulumi.set(__self__, "device_name", device_name)
if mode is not None:
pulumi.set(__self__, "mode", mode)
@property
@pulumi.getter(name="diskId")
def disk_id(self) -> pulumi.Input[str]:
"""
ID of the disk that is attached to the instance.
"""
return pulumi.get(self, "disk_id")
@disk_id.setter
def disk_id(self, value: pulumi.Input[str]):
pulumi.set(self, "disk_id", value)
@property
@pulumi.getter(name="autoDelete")
def auto_delete(self) -> Optional[pulumi.Input[bool]]:
"""
Whether the disk is auto-deleted when the instance
is deleted. The default value is false.
"""
return pulumi.get(self, "auto_delete")
@auto_delete.setter
def auto_delete(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "auto_delete", value)
@property
@pulumi.getter(name="deviceName")
def device_name(self) -> Optional[pulumi.Input[str]]:
"""
Name that can be used to access an attached disk
under `/dev/disk/by-id/`.
"""
return pulumi.get(self, "device_name")
@device_name.setter
def device_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "device_name", value)
@property
@pulumi.getter
def mode(self) -> Optional[pulumi.Input[str]]:
"""
Type of access to the disk resource. By default, a disk is attached in `READ_WRITE` mode.
"""
return pulumi.get(self, "mode")
@mode.setter
def mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "mode", value)
@pulumi.input_type
class DataprocClusterClusterConfigArgs:
def __init__(__self__, *,
subcluster_specs: pulumi.Input[Sequence[pulumi.Input['DataprocClusterClusterConfigSubclusterSpecArgs']]],
hadoop: Optional[pulumi.Input['DataprocClusterClusterConfigHadoopArgs']] = None,
version_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[Sequence[pulumi.Input['DataprocClusterClusterConfigSubclusterSpecArgs']]] subcluster_specs: Configuration of the Data Proc subcluster. The structure is documented below.
:param pulumi.Input['DataprocClusterClusterConfigHadoopArgs'] hadoop: Data Proc specific options. The structure is documented below.
:param pulumi.Input[str] version_id: Version of Data Proc image.
"""
pulumi.set(__self__, "subcluster_specs", subcluster_specs)
if hadoop is not None:
pulumi.set(__self__, "hadoop", hadoop)
if version_id is not None:
pulumi.set(__self__, "version_id", version_id)
@property
@pulumi.getter(name="subclusterSpecs")
def subcluster_specs(self) -> pulumi.Input[Sequence[pulumi.Input['DataprocClusterClusterConfigSubclusterSpecArgs']]]:
"""
Configuration of the Data Proc subcluster. The structure is documented below.
"""
return pulumi.get(self, "subcluster_specs")
@subcluster_specs.setter
def subcluster_specs(self, value: pulumi.Input[Sequence[pulumi.Input['DataprocClusterClusterConfigSubclusterSpecArgs']]]):
pulumi.set(self, "subcluster_specs", value)
@property
@pulumi.getter
def hadoop(self) -> Optional[pulumi.Input['DataprocClusterClusterConfigHadoopArgs']]:
"""
Data Proc specific options. The structure is documented below.
"""
return pulumi.get(self, "hadoop")
@hadoop.setter
def hadoop(self, value: Optional[pulumi.Input['DataprocClusterClusterConfigHadoopArgs']]):
pulumi.set(self, "hadoop", value)
@property
@pulumi.getter(name="versionId")
def version_id(self) -> Optional[pulumi.Input[str]]:
"""
Version of Data Proc image.
"""
return pulumi.get(self, "version_id")
@version_id.setter
def version_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "version_id", value)
@pulumi.input_type
class DataprocClusterClusterConfigHadoopArgs:
def __init__(__self__, *,
properties: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
ssh_public_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] properties: A set of key/value pairs that are used to configure cluster services.
:param pulumi.Input[Sequence[pulumi.Input[str]]] services: List of services to run on Data Proc cluster.
:param pulumi.Input[Sequence[pulumi.Input[str]]] ssh_public_keys: List of SSH public keys to put to the hosts of the cluster. For information on how to connect to the cluster, see [the official documentation](https://cloud.yandex.com/docs/data-proc/operations/connect).
"""
if properties is not None:
pulumi.set(__self__, "properties", properties)
if services is not None:
pulumi.set(__self__, "services", services)
if ssh_public_keys is not None:
pulumi.set(__self__, "ssh_public_keys", ssh_public_keys)
@property
@pulumi.getter
def properties(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
A set of key/value pairs that are used to configure cluster services.
"""
return pulumi.get(self, "properties")
@properties.setter
def properties(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "properties", value)
@property
@pulumi.getter
def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
List of services to run on Data Proc cluster.
"""
return pulumi.get(self, "services")
@services.setter
def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "services", value)
@property
@pulumi.getter(name="sshPublicKeys")
def ssh_public_keys(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
List of SSH public keys to put to the hosts of the cluster. For information on how to connect to the cluster, see [the official documentation](https://cloud.yandex.com/docs/data-proc/operations/connect).
"""
return pulumi.get(self, "ssh_public_keys")
@ssh_public_keys.setter
def ssh_public_keys(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "ssh_public_keys", value)
@pulumi.input_type
class DataprocClusterClusterConfigSubclusterSpecArgs:
def __init__(__self__, *,
hosts_count: pulumi.Input[int],
name: pulumi.Input[str],
resources: pulumi.Input['DataprocClusterClusterConfigSubclusterSpecResourcesArgs'],
role: pulumi.Input[str],
subnet_id: pulumi.Input[str],
autoscaling_config: Optional[pulumi.Input['DataprocClusterClusterConfigSubclusterSpecAutoscalingConfigArgs']] = None,
id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] hosts_count: Number of hosts within Data Proc subcluster.
:param pulumi.Input[str] name: Name of the Data Proc subcluster.
:param pulumi.Input['DataprocClusterClusterConfigSubclusterSpecResourcesArgs'] resources: Resources allocated to each host of the Data Proc subcluster. The structure is documented below.
:param pulumi.Input[str] role: Role of the subcluster in the Data Proc cluster.
:param pulumi.Input[str] subnet_id: The ID of the subnet, to which hosts of the subcluster belong. Subnets of all the subclusters must belong to the same VPC network.
:param pulumi.Input['DataprocClusterClusterConfigSubclusterSpecAutoscalingConfigArgs'] autoscaling_config: Autoscaling configuration for compute subclusters.
:param pulumi.Input[str] id: (Computed) ID of a new Data Proc cluster.
"""
pulumi.set(__self__, "hosts_count", hosts_count)
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "resources", resources)
pulumi.set(__self__, "role", role)
pulumi.set(__self__, "subnet_id", subnet_id)
if autoscaling_config is not None:
pulumi.set(__self__, "autoscaling_config", autoscaling_config)
if id is not None:
pulumi.set(__self__, "id", id)
@property
@pulumi.getter(name="hostsCount")
def hosts_count(self) -> pulumi.Input[int]:
"""
Number of hosts within Data Proc subcluster.
"""
return pulumi.get(self, "hosts_count")
@hosts_count.setter
def hosts_count(self, value: pulumi.Input[int]):
pulumi.set(self, "hosts_count", value)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Name of the Data Proc subcluster.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def resources(self) -> pulumi.Input['DataprocClusterClusterConfigSubclusterSpecResourcesArgs']:
"""
Resources allocated to each host of the Data Proc subcluster. The structure is documented below.
"""
return pulumi.get(self, "resources")
@resources.setter
def resources(self, value: pulumi.Input['DataprocClusterClusterConfigSubclusterSpecResourcesArgs']):
pulumi.set(self, "resources", value)
@property
@pulumi.getter
def role(self) -> pulumi.Input[str]:
"""
Role of the subcluster in the Data Proc cluster.
"""
return pulumi.get(self, "role")
@role.setter
def role(self, value: pulumi.Input[str]):
pulumi.set(self, "role", value)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> pulumi.Input[str]:
"""
The ID of the subnet, to which hosts of the subcluster belong. Subnets of all the subclusters must belong to the same VPC network.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: pulumi.Input[str]):
pulumi.set(self, "subnet_id", value)
@property
@pulumi.getter(name="autoscalingConfig")
def autoscaling_config(self) -> Optional[pulumi.Input['DataprocClusterClusterConfigSubclusterSpecAutoscalingConfigArgs']]:
"""
Autoscaling configuration for compute subclusters.
"""
return pulumi.get(self, "autoscaling_config")
@autoscaling_config.setter
def autoscaling_config(self, value: Optional[pulumi.Input['DataprocClusterClusterConfigSubclusterSpecAutoscalingConfigArgs']]):
pulumi.set(self, "autoscaling_config", value)
@property
@pulumi.getter
def id(self) -> Optional[pulumi.Input[str]]:
"""
(Computed) ID of a new Data Proc cluster.
"""
return pulumi.get(self, "id")
@id.setter
def id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "id", value)
@pulumi.input_type
class DataprocClusterClusterConfigSubclusterSpecAutoscalingConfigArgs:
def __init__(__self__, *,
max_hosts_count: pulumi.Input[int],
cpu_utilization_target: Optional[pulumi.Input[float]] = None,
decommission_timeout: Optional[pulumi.Input[int]] = None,
measurement_duration: Optional[pulumi.Input[int]] = None,
preemptible: Optional[pulumi.Input[bool]] = None,
stabilization_duration: Optional[pulumi.Input[int]] = None,
warmup_duration: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] max_hosts_count: Maximum number of nodes in autoscaling subclusters.
:param pulumi.Input[float] cpu_utilization_target: Defines an autoscaling rule based on the average CPU utilization of the instance group. If not set default autoscaling metric will be used.
:param pulumi.Input[int] decommission_timeout: Timeout to gracefully decommission nodes during downscaling. In seconds.
:param pulumi.Input[int] measurement_duration: Time in seconds allotted for averaging metrics.
:param pulumi.Input[bool] preemptible: Bool flag -- whether to use preemptible compute instances. Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time if their resources are needed by Compute. For more information, see [Preemptible Virtual Machines](https://cloud.yandex.com/docs/compute/concepts/preemptible-vm).
:param pulumi.Input[int] stabilization_duration: Minimum amount of time in seconds allotted for monitoring before Instance Groups can reduce the number of instances in the group. During this time, the group size doesn't decrease, even if the new metric values indicate that it should.
:param pulumi.Input[int] warmup_duration: The warmup time of the instance in seconds. During this time, traffic is sent to the instance, but instance metrics are not collected.
"""
pulumi.set(__self__, "max_hosts_count", max_hosts_count)
if cpu_utilization_target is not None:
pulumi.set(__self__, "cpu_utilization_target", cpu_utilization_target)
if decommission_timeout is not None:
pulumi.set(__self__, "decommission_timeout", decommission_timeout)
if measurement_duration is not None:
pulumi.set(__self__, "measurement_duration", measurement_duration)
if preemptible is not None:
pulumi.set(__self__, "preemptible", preemptible)
if stabilization_duration is not None:
pulumi.set(__self__, "stabilization_duration", stabilization_duration)
if warmup_duration is not None:
pulumi.set(__self__, "warmup_duration", warmup_duration)
@property
@pulumi.getter(name="maxHostsCount")
def max_hosts_count(self) -> pulumi.Input[int]:
"""
Maximum number of nodes in autoscaling subclusters.
"""
return pulumi.get(self, "max_hosts_count")
@max_hosts_count.setter
def max_hosts_count(self, value: pulumi.Input[int]):
pulumi.set(self, "max_hosts_count", value)
@property
@pulumi.getter(name="cpuUtilizationTarget")
def cpu_utilization_target(self) -> Optional[pulumi.Input[float]]:
"""
Defines an autoscaling rule based on the average CPU utilization of the instance group. If not set default autoscaling metric will be used.
"""
return pulumi.get(self, "cpu_utilization_target")
@cpu_utilization_target.setter
def cpu_utilization_target(self, value: Optional[pulumi.Input[float]]):
pulumi.set(self, "cpu_utilization_target", value)
@property
@pulumi.getter(name="decommissionTimeout")
def decommission_timeout(self) -> Optional[pulumi.Input[int]]:
"""
Timeout to gracefully decommission nodes during downscaling. In seconds.
"""
return pulumi.get(self, "decommission_timeout")
@decommission_timeout.setter
def decommission_timeout(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "decommission_timeout", value)
@property
@pulumi.getter(name="measurementDuration")
def measurement_duration(self) -> Optional[pulumi.Input[int]]:
"""
Time in seconds allotted for averaging metrics.
"""
return pulumi.get(self, "measurement_duration")
@measurement_duration.setter
def measurement_duration(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "measurement_duration", value)
@property
@pulumi.getter
def preemptible(self) -> Optional[pulumi.Input[bool]]:
"""
Bool flag -- whether to use preemptible compute instances. Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time if their resources are needed by Compute. For more information, see [Preemptible Virtual Machines](https://cloud.yandex.com/docs/compute/concepts/preemptible-vm).
"""
return pulumi.get(self, "preemptible")
@preemptible.setter
def preemptible(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "preemptible", value)
@property
@pulumi.getter(name="stabilizationDuration")
def stabilization_duration(self) -> Optional[pulumi.Input[int]]:
"""
Minimum amount of time in seconds allotted for monitoring before Instance Groups can reduce the number of instances in the group. During this time, the group size doesn't decrease, even if the new metric values indicate that it should.
"""
return pulumi.get(self, "stabilization_duration")
@stabilization_duration.setter
def stabilization_duration(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "stabilization_duration", value)
@property
@pulumi.getter(name="warmupDuration")
def warmup_duration(self) -> Optional[pulumi.Input[int]]:
"""
The warmup time of the instance in seconds. During this time, traffic is sent to the instance, but instance metrics are not collected.
"""
return pulumi.get(self, "warmup_duration")
@warmup_duration.setter
def warmup_duration(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "warmup_duration", value)
@pulumi.input_type
class DataprocClusterClusterConfigSubclusterSpecResourcesArgs:
def __init__(__self__, *,
disk_size: pulumi.Input[int],
resource_preset_id: pulumi.Input[str],
disk_type_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] disk_size: Volume of the storage available to a host, in gigabytes.
:param pulumi.Input[str] resource_preset_id: The ID of the preset for computational resources available to a host. All available presets are listed in the [documentation](https://cloud.yandex.com/docs/data-proc/concepts/instance-types).
:param pulumi.Input[str] disk_type_id: Type of the storage of a host. One of `network-hdd` (default) or `network-ssd`.
"""
pulumi.set(__self__, "disk_size", disk_size)
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
if disk_type_id is not None:
pulumi.set(__self__, "disk_type_id", disk_type_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> pulumi.Input[int]:
"""
Volume of the storage available to a host, in gigabytes.
"""
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: pulumi.Input[int]):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> pulumi.Input[str]:
"""
The ID of the preset for computational resources available to a host. All available presets are listed in the [documentation](https://cloud.yandex.com/docs/data-proc/concepts/instance-types).
"""
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_preset_id", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> Optional[pulumi.Input[str]]:
"""
Type of the storage of a host. One of `network-hdd` (default) or `network-ssd`.
"""
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "disk_type_id", value)
@pulumi.input_type
class FunctionContentArgs:
def __init__(__self__, *,
zip_filename: pulumi.Input[str]):
pulumi.set(__self__, "zip_filename", zip_filename)
@property
@pulumi.getter(name="zipFilename")
def zip_filename(self) -> pulumi.Input[str]:
return pulumi.get(self, "zip_filename")
@zip_filename.setter
def zip_filename(self, value: pulumi.Input[str]):
pulumi.set(self, "zip_filename", value)
@pulumi.input_type
class FunctionPackageArgs:
def __init__(__self__, *,
bucket_name: pulumi.Input[str],
object_name: pulumi.Input[str],
sha256: Optional[pulumi.Input[str]] = None):
pulumi.set(__self__, "bucket_name", bucket_name)
pulumi.set(__self__, "object_name", object_name)
if sha256 is not None:
pulumi.set(__self__, "sha256", sha256)
@property
@pulumi.getter(name="bucketName")
def bucket_name(self) -> pulumi.Input[str]:
return pulumi.get(self, "bucket_name")
@bucket_name.setter
def bucket_name(self, value: pulumi.Input[str]):
pulumi.set(self, "bucket_name", value)
@property
@pulumi.getter(name="objectName")
def object_name(self) -> pulumi.Input[str]:
return pulumi.get(self, "object_name")
@object_name.setter
def object_name(self, value: pulumi.Input[str]):
pulumi.set(self, "object_name", value)
@property
@pulumi.getter
def sha256(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "sha256")
@sha256.setter
def sha256(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sha256", value)
@pulumi.input_type
class FunctionScalingPolicyPolicyArgs:
def __init__(__self__, *,
tag: pulumi.Input[str],
zone_instances_limit: Optional[pulumi.Input[int]] = None,
zone_requests_limit: Optional[pulumi.Input[int]] = None):
pulumi.set(__self__, "tag", tag)
if zone_instances_limit is not None:
pulumi.set(__self__, "zone_instances_limit", zone_instances_limit)
if zone_requests_limit is not None:
pulumi.set(__self__, "zone_requests_limit", zone_requests_limit)
@property
@pulumi.getter
def tag(self) -> pulumi.Input[str]:
return pulumi.get(self, "tag")
@tag.setter
def tag(self, value: pulumi.Input[str]):
pulumi.set(self, "tag", value)
@property
@pulumi.getter(name="zoneInstancesLimit")
def zone_instances_limit(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "zone_instances_limit")
@zone_instances_limit.setter
def zone_instances_limit(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "zone_instances_limit", value)
@property
@pulumi.getter(name="zoneRequestsLimit")
def zone_requests_limit(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "zone_requests_limit")
@zone_requests_limit.setter
def zone_requests_limit(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "zone_requests_limit", value)
@pulumi.input_type
class FunctionTriggerDlqArgs:
def __init__(__self__, *,
queue_id: pulumi.Input[str],
service_account_id: pulumi.Input[str]):
pulumi.set(__self__, "queue_id", queue_id)
pulumi.set(__self__, "service_account_id", service_account_id)
@property
@pulumi.getter(name="queueId")
def queue_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "queue_id")
@queue_id.setter
def queue_id(self, value: pulumi.Input[str]):
pulumi.set(self, "queue_id", value)
@property
@pulumi.getter(name="serviceAccountId")
def service_account_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "service_account_id")
@service_account_id.setter
def service_account_id(self, value: pulumi.Input[str]):
pulumi.set(self, "service_account_id", value)
@pulumi.input_type
class FunctionTriggerFunctionArgs:
def __init__(__self__, *,
id: pulumi.Input[str],
retry_attempts: Optional[pulumi.Input[str]] = None,
retry_interval: Optional[pulumi.Input[str]] = None,
service_account_id: Optional[pulumi.Input[str]] = None,
tag: Optional[pulumi.Input[str]] = None):
pulumi.set(__self__, "id", id)
if retry_attempts is not None:
pulumi.set(__self__, "retry_attempts", retry_attempts)
if retry_interval is not None:
pulumi.set(__self__, "retry_interval", retry_interval)
if service_account_id is not None:
pulumi.set(__self__, "service_account_id", service_account_id)
if tag is not None:
pulumi.set(__self__, "tag", tag)
@property
@pulumi.getter
def id(self) -> pulumi.Input[str]:
return pulumi.get(self, "id")
@id.setter
def id(self, value: pulumi.Input[str]):
pulumi.set(self, "id", value)
@property
@pulumi.getter(name="retryAttempts")
def retry_attempts(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "retry_attempts")
@retry_attempts.setter
def retry_attempts(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "retry_attempts", value)
@property
@pulumi.getter(name="retryInterval")
def retry_interval(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "retry_interval")
@retry_interval.setter
def retry_interval(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "retry_interval", value)
@property
@pulumi.getter(name="serviceAccountId")
def service_account_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "service_account_id")
@service_account_id.setter
def service_account_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "service_account_id", value)
@property
@pulumi.getter
def tag(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "tag")
@tag.setter
def tag(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "tag", value)
@pulumi.input_type
class FunctionTriggerIotArgs:
def __init__(__self__, *,
registry_id: pulumi.Input[str],
device_id: Optional[pulumi.Input[str]] = None,
topic: Optional[pulumi.Input[str]] = None):
pulumi.set(__self__, "registry_id", registry_id)
if device_id is not None:
pulumi.set(__self__, "device_id", device_id)
if topic is not None:
pulumi.set(__self__, "topic", topic)
@property
@pulumi.getter(name="registryId")
def registry_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "registry_id")
@registry_id.setter
def registry_id(self, value: pulumi.Input[str]):
pulumi.set(self, "registry_id", value)
@property
@pulumi.getter(name="deviceId")
def device_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "device_id")
@device_id.setter
def device_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "device_id", value)
@property
@pulumi.getter
def topic(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "topic")
@topic.setter
def topic(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "topic", value)
@pulumi.input_type
class FunctionTriggerLogGroupArgs:
def __init__(__self__, *,
batch_cutoff: pulumi.Input[str],
log_group_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
batch_size: Optional[pulumi.Input[str]] = None):
pulumi.set(__self__, "batch_cutoff", batch_cutoff)
pulumi.set(__self__, "log_group_ids", log_group_ids)
if batch_size is not None:
pulumi.set(__self__, "batch_size", batch_size)
@property
@pulumi.getter(name="batchCutoff")
def batch_cutoff(self) -> pulumi.Input[str]:
return pulumi.get(self, "batch_cutoff")
@batch_cutoff.setter
def batch_cutoff(self, value: pulumi.Input[str]):
pulumi.set(self, "batch_cutoff", value)
@property
@pulumi.getter(name="logGroupIds")
def log_group_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
return pulumi.get(self, "log_group_ids")
@log_group_ids.setter
def log_group_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "log_group_ids", value)
@property
@pulumi.getter(name="batchSize")
def batch_size(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "batch_size")
@batch_size.setter
def batch_size(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "batch_size", value)
@pulumi.input_type
class FunctionTriggerLoggingArgs:
def __init__(__self__, *,
batch_cutoff: pulumi.Input[str],
group_id: pulumi.Input[str],
levels: pulumi.Input[Sequence[pulumi.Input[str]]],
resource_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
resource_types: pulumi.Input[Sequence[pulumi.Input[str]]],
batch_size: Optional[pulumi.Input[str]] = None):
pulumi.set(__self__, "batch_cutoff", batch_cutoff)
pulumi.set(__self__, "group_id", group_id)
pulumi.set(__self__, "levels", levels)
pulumi.set(__self__, "resource_ids", resource_ids)
pulumi.set(__self__, "resource_types", resource_types)
if batch_size is not None:
pulumi.set(__self__, "batch_size", batch_size)
@property
@pulumi.getter(name="batchCutoff")
def batch_cutoff(self) -> pulumi.Input[str]:
return pulumi.get(self, "batch_cutoff")
@batch_cutoff.setter
def batch_cutoff(self, value: pulumi.Input[str]):
pulumi.set(self, "batch_cutoff", value)
@property
@pulumi.getter(name="groupId")
def group_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "group_id")
@group_id.setter
def group_id(self, value: pulumi.Input[str]):
pulumi.set(self, "group_id", value)
@property
@pulumi.getter
def levels(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
return pulumi.get(self, "levels")
@levels.setter
def levels(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "levels", value)
@property
@pulumi.getter(name="resourceIds")
def resource_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
return pulumi.get(self, "resource_ids")
@resource_ids.setter
def resource_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "resource_ids", value)
@property
@pulumi.getter(name="resourceTypes")
def resource_types(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
return pulumi.get(self, "resource_types")
@resource_types.setter
def resource_types(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "resource_types", value)
@property
@pulumi.getter(name="batchSize")
def batch_size(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "batch_size")
@batch_size.setter
def batch_size(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "batch_size", value)
@pulumi.input_type
class FunctionTriggerMessageQueueArgs:
def __init__(__self__, *,
batch_cutoff: pulumi.Input[str],
queue_id: pulumi.Input[str],
service_account_id: pulumi.Input[str],
batch_size: Optional[pulumi.Input[str]] = None,
visibility_timeout: Optional[pulumi.Input[str]] = None):
pulumi.set(__self__, "batch_cutoff", batch_cutoff)
pulumi.set(__self__, "queue_id", queue_id)
pulumi.set(__self__, "service_account_id", service_account_id)
if batch_size is not None:
pulumi.set(__self__, "batch_size", batch_size)
if visibility_timeout is not None:
pulumi.set(__self__, "visibility_timeout", visibility_timeout)
@property
@pulumi.getter(name="batchCutoff")
def batch_cutoff(self) -> pulumi.Input[str]:
return pulumi.get(self, "batch_cutoff")
@batch_cutoff.setter
def batch_cutoff(self, value: pulumi.Input[str]):
pulumi.set(self, "batch_cutoff", value)
@property
@pulumi.getter(name="queueId")
def queue_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "queue_id")
@queue_id.setter
def queue_id(self, value: pulumi.Input[str]):
pulumi.set(self, "queue_id", value)
@property
@pulumi.getter(name="serviceAccountId")
def service_account_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "service_account_id")
@service_account_id.setter
def service_account_id(self, value: pulumi.Input[str]):
pulumi.set(self, "service_account_id", value)
@property
@pulumi.getter(name="batchSize")
def batch_size(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "batch_size")
@batch_size.setter
def batch_size(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "batch_size", value)
@property
@pulumi.getter(name="visibilityTimeout")
def visibility_timeout(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "visibility_timeout")
@visibility_timeout.setter
def visibility_timeout(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "visibility_timeout", value)
@pulumi.input_type
class FunctionTriggerObjectStorageArgs:
def __init__(__self__, *,
bucket_id: pulumi.Input[str],
create: Optional[pulumi.Input[bool]] = None,
delete: Optional[pulumi.Input[bool]] = None,
prefix: Optional[pulumi.Input[str]] = None,
suffix: Optional[pulumi.Input[str]] = None,
update: Optional[pulumi.Input[bool]] = None):
pulumi.set(__self__, "bucket_id", bucket_id)
if create is not None:
pulumi.set(__self__, "create", create)
if delete is not None:
pulumi.set(__self__, "delete", delete)
if prefix is not None:
pulumi.set(__self__, "prefix", prefix)
if suffix is not None:
pulumi.set(__self__, "suffix", suffix)
if update is not None:
pulumi.set(__self__, "update", update)
@property
@pulumi.getter(name="bucketId")
def bucket_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "bucket_id")
@bucket_id.setter
def bucket_id(self, value: pulumi.Input[str]):
pulumi.set(self, "bucket_id", value)
@property
@pulumi.getter
def create(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "create")
@create.setter
def create(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "create", value)
@property
@pulumi.getter
def delete(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "delete")
@delete.setter
def delete(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "delete", value)
@property
@pulumi.getter
def prefix(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "prefix")
@prefix.setter
def prefix(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "prefix", value)
@property
@pulumi.getter
def suffix(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "suffix")
@suffix.setter
def suffix(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "suffix", value)
@property
@pulumi.getter
def update(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "update")
@update.setter
def update(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "update", value)
@pulumi.input_type
class FunctionTriggerTimerArgs:
def __init__(__self__, *,
cron_expression: pulumi.Input[str]):
pulumi.set(__self__, "cron_expression", cron_expression)
@property
@pulumi.getter(name="cronExpression")
def cron_expression(self) -> pulumi.Input[str]:
return pulumi.get(self, "cron_expression")
@cron_expression.setter
def cron_expression(self, value: pulumi.Input[str]):
pulumi.set(self, "cron_expression", value)
@pulumi.input_type
class KubernetesClusterKmsProviderArgs:
def __init__(__self__, *,
key_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] key_id: KMS key ID.
"""
if key_id is not None:
pulumi.set(__self__, "key_id", key_id)
@property
@pulumi.getter(name="keyId")
def key_id(self) -> Optional[pulumi.Input[str]]:
"""
KMS key ID.
"""
return pulumi.get(self, "key_id")
@key_id.setter
def key_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "key_id", value)
@pulumi.input_type
class KubernetesClusterMasterArgs:
def __init__(__self__, *,
cluster_ca_certificate: Optional[pulumi.Input[str]] = None,
external_v4_address: Optional[pulumi.Input[str]] = None,
external_v4_endpoint: Optional[pulumi.Input[str]] = None,
internal_v4_address: Optional[pulumi.Input[str]] = None,
internal_v4_endpoint: Optional[pulumi.Input[str]] = None,
maintenance_policy: Optional[pulumi.Input['KubernetesClusterMasterMaintenancePolicyArgs']] = None,
public_ip: Optional[pulumi.Input[bool]] = None,
regional: Optional[pulumi.Input['KubernetesClusterMasterRegionalArgs']] = None,
security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
version: Optional[pulumi.Input[str]] = None,
version_info: Optional[pulumi.Input['KubernetesClusterMasterVersionInfoArgs']] = None,
zonal: Optional[pulumi.Input['KubernetesClusterMasterZonalArgs']] = None):
"""
:param pulumi.Input[str] cluster_ca_certificate: (Computed) PEM-encoded public certificate that is the root of trust for the Kubernetes cluster.
:param pulumi.Input[str] external_v4_address: (Computed) An IPv4 external network address that is assigned to the master.
:param pulumi.Input[str] external_v4_endpoint: (Computed) External endpoint that can be used to access Kubernetes cluster API from the internet (outside of the cloud).
:param pulumi.Input[str] internal_v4_address: (Computed) An IPv4 internal network address that is assigned to the master.
:param pulumi.Input[str] internal_v4_endpoint: (Computed) Internal endpoint that can be used to connect to the master from cloud networks.
:param pulumi.Input['KubernetesClusterMasterMaintenancePolicyArgs'] maintenance_policy: (Optional) (Computed) Maintenance policy for Kubernetes master.
If policy is omitted, automatic revision upgrades of the kubernetes master are enabled and could happen at any time.
Revision upgrades are performed only within the same minor version, e.g. 1.13.
Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
:param pulumi.Input[bool] public_ip: (Optional) (Computed) Boolean flag. When `true`, Kubernetes master will have visible ipv4 address.
:param pulumi.Input['KubernetesClusterMasterRegionalArgs'] regional: (Optional) Initialize parameters for Regional Master (highly available master). The structure is documented below.
:param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: (Optional) List of security group IDs to which the Kubernetes cluster belongs.
:param pulumi.Input[str] version: (Optional) (Computed) Version of Kubernetes that will be used for master.
:param pulumi.Input['KubernetesClusterMasterVersionInfoArgs'] version_info: (Computed) Information about cluster version. The structure is documented below.
:param pulumi.Input['KubernetesClusterMasterZonalArgs'] zonal: (Optional) Initialize parameters for Zonal Master (single node master). The structure is documented below.
"""
if cluster_ca_certificate is not None:
pulumi.set(__self__, "cluster_ca_certificate", cluster_ca_certificate)
if external_v4_address is not None:
pulumi.set(__self__, "external_v4_address", external_v4_address)
if external_v4_endpoint is not None:
pulumi.set(__self__, "external_v4_endpoint", external_v4_endpoint)
if internal_v4_address is not None:
pulumi.set(__self__, "internal_v4_address", internal_v4_address)
if internal_v4_endpoint is not None:
pulumi.set(__self__, "internal_v4_endpoint", internal_v4_endpoint)
if maintenance_policy is not None:
pulumi.set(__self__, "maintenance_policy", maintenance_policy)
if public_ip is not None:
pulumi.set(__self__, "public_ip", public_ip)
if regional is not None:
pulumi.set(__self__, "regional", regional)
if security_group_ids is not None:
pulumi.set(__self__, "security_group_ids", security_group_ids)
if version is not None:
pulumi.set(__self__, "version", version)
if version_info is not None:
pulumi.set(__self__, "version_info", version_info)
if zonal is not None:
pulumi.set(__self__, "zonal", zonal)
@property
@pulumi.getter(name="clusterCaCertificate")
def cluster_ca_certificate(self) -> Optional[pulumi.Input[str]]:
"""
(Computed) PEM-encoded public certificate that is the root of trust for the Kubernetes cluster.
"""
return pulumi.get(self, "cluster_ca_certificate")
@cluster_ca_certificate.setter
def cluster_ca_certificate(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cluster_ca_certificate", value)
@property
@pulumi.getter(name="externalV4Address")
def external_v4_address(self) -> Optional[pulumi.Input[str]]:
"""
(Computed) An IPv4 external network address that is assigned to the master.
"""
return pulumi.get(self, "external_v4_address")
@external_v4_address.setter
def external_v4_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "external_v4_address", value)
@property
@pulumi.getter(name="externalV4Endpoint")
def external_v4_endpoint(self) -> Optional[pulumi.Input[str]]:
"""
(Computed) External endpoint that can be used to access Kubernetes cluster API from the internet (outside of the cloud).
"""
return pulumi.get(self, "external_v4_endpoint")
@external_v4_endpoint.setter
def external_v4_endpoint(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "external_v4_endpoint", value)
@property
@pulumi.getter(name="internalV4Address")
def internal_v4_address(self) -> Optional[pulumi.Input[str]]:
"""
(Computed) An IPv4 internal network address that is assigned to the master.
"""
return pulumi.get(self, "internal_v4_address")
@internal_v4_address.setter
def internal_v4_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "internal_v4_address", value)
@property
@pulumi.getter(name="internalV4Endpoint")
def internal_v4_endpoint(self) -> Optional[pulumi.Input[str]]:
"""
(Computed) Internal endpoint that can be used to connect to the master from cloud networks.
"""
return pulumi.get(self, "internal_v4_endpoint")
@internal_v4_endpoint.setter
def internal_v4_endpoint(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "internal_v4_endpoint", value)
@property
@pulumi.getter(name="maintenancePolicy")
def maintenance_policy(self) -> Optional[pulumi.Input['KubernetesClusterMasterMaintenancePolicyArgs']]:
"""
(Optional) (Computed) Maintenance policy for Kubernetes master.
If policy is omitted, automatic revision upgrades of the kubernetes master are enabled and could happen at any time.
Revision upgrades are performed only within the same minor version, e.g. 1.13.
Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
"""
return pulumi.get(self, "maintenance_policy")
@maintenance_policy.setter
def maintenance_policy(self, value: Optional[pulumi.Input['KubernetesClusterMasterMaintenancePolicyArgs']]):
pulumi.set(self, "maintenance_policy", value)
@property
@pulumi.getter(name="publicIp")
def public_ip(self) -> Optional[pulumi.Input[bool]]:
"""
(Optional) (Computed) Boolean flag. When `true`, Kubernetes master will have visible ipv4 address.
"""
return pulumi.get(self, "public_ip")
@public_ip.setter
def public_ip(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "public_ip", value)
@property
@pulumi.getter
def regional(self) -> Optional[pulumi.Input['KubernetesClusterMasterRegionalArgs']]:
"""
(Optional) Initialize parameters for Regional Master (highly available master). The structure is documented below.
"""
return pulumi.get(self, "regional")
@regional.setter
def regional(self, value: Optional[pulumi.Input['KubernetesClusterMasterRegionalArgs']]):
pulumi.set(self, "regional", value)
@property
@pulumi.getter(name="securityGroupIds")
def security_group_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
(Optional) List of security group IDs to which the Kubernetes cluster belongs.
"""
return pulumi.get(self, "security_group_ids")
@security_group_ids.setter
def security_group_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "security_group_ids", value)
@property
@pulumi.getter
def version(self) -> Optional[pulumi.Input[str]]:
"""
(Optional) (Computed) Version of Kubernetes that will be used for master.
"""
return pulumi.get(self, "version")
@version.setter
def version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "version", value)
@property
@pulumi.getter(name="versionInfo")
def version_info(self) -> Optional[pulumi.Input['KubernetesClusterMasterVersionInfoArgs']]:
"""
(Computed) Information about cluster version. The structure is documented below.
"""
return pulumi.get(self, "version_info")
@version_info.setter
def version_info(self, value: Optional[pulumi.Input['KubernetesClusterMasterVersionInfoArgs']]):
pulumi.set(self, "version_info", value)
@property
@pulumi.getter
def zonal(self) -> Optional[pulumi.Input['KubernetesClusterMasterZonalArgs']]:
"""
(Optional) Initialize parameters for Zonal Master (single node master). The structure is documented below.
"""
return pulumi.get(self, "zonal")
@zonal.setter
def zonal(self, value: Optional[pulumi.Input['KubernetesClusterMasterZonalArgs']]):
pulumi.set(self, "zonal", value)
@pulumi.input_type
class KubernetesClusterMasterMaintenancePolicyArgs:
def __init__(__self__, *,
auto_upgrade: pulumi.Input[bool],
maintenance_windows: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterMasterMaintenancePolicyMaintenanceWindowArgs']]]] = None):
"""
:param pulumi.Input[bool] auto_upgrade: (Required) Boolean flag that specifies if master can be upgraded automatically. When omitted, default value is TRUE.
:param pulumi.Input[Sequence[pulumi.Input['KubernetesClusterMasterMaintenancePolicyMaintenanceWindowArgs']]] maintenance_windows: (Optional) (Computed) This structure specifies maintenance window, when update for master is allowed. When omitted, it defaults to any time.
To specify time of day interval, for all days, one element should be provided, with two fields set, `start_time` and `duration`.
Please see `zonal_cluster_resource_name` config example.
"""
pulumi.set(__self__, "auto_upgrade", auto_upgrade)
if maintenance_windows is not None:
pulumi.set(__self__, "maintenance_windows", maintenance_windows)
@property
@pulumi.getter(name="autoUpgrade")
def auto_upgrade(self) -> pulumi.Input[bool]:
"""
(Required) Boolean flag that specifies if master can be upgraded automatically. When omitted, default value is TRUE.
"""
return pulumi.get(self, "auto_upgrade")
@auto_upgrade.setter
def auto_upgrade(self, value: pulumi.Input[bool]):
pulumi.set(self, "auto_upgrade", value)
@property
@pulumi.getter(name="maintenanceWindows")
def maintenance_windows(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterMasterMaintenancePolicyMaintenanceWindowArgs']]]]:
"""
(Optional) (Computed) This structure specifies maintenance window, when update for master is allowed. When omitted, it defaults to any time.
To specify time of day interval, for all days, one element should be provided, with two fields set, `start_time` and `duration`.
Please see `zonal_cluster_resource_name` config example.
"""
return pulumi.get(self, "maintenance_windows")
@maintenance_windows.setter
def maintenance_windows(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterMasterMaintenancePolicyMaintenanceWindowArgs']]]]):
pulumi.set(self, "maintenance_windows", value)
@pulumi.input_type
class KubernetesClusterMasterMaintenancePolicyMaintenanceWindowArgs:
def __init__(__self__, *,
duration: pulumi.Input[str],
start_time: pulumi.Input[str],
day: Optional[pulumi.Input[str]] = None):
pulumi.set(__self__, "duration", duration)
pulumi.set(__self__, "start_time", start_time)
if day is not None:
pulumi.set(__self__, "day", day)
@property
@pulumi.getter
def duration(self) -> pulumi.Input[str]:
return pulumi.get(self, "duration")
@duration.setter
def duration(self, value: pulumi.Input[str]):
pulumi.set(self, "duration", value)
@property
@pulumi.getter(name="startTime")
def start_time(self) -> pulumi.Input[str]:
return pulumi.get(self, "start_time")
@start_time.setter
def start_time(self, value: pulumi.Input[str]):
pulumi.set(self, "start_time", value)
@property
@pulumi.getter
def day(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "day")
@day.setter
def day(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "day", value)
@pulumi.input_type
class KubernetesClusterMasterRegionalArgs:
def __init__(__self__, *,
region: pulumi.Input[str],
locations: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterMasterRegionalLocationArgs']]]] = None):
"""
:param pulumi.Input[str] region: (Required) Name of availability region (e.g. "ru-central1"), where master instances will be allocated.
:param pulumi.Input[Sequence[pulumi.Input['KubernetesClusterMasterRegionalLocationArgs']]] locations: Array of locations, where master instances will be allocated. The structure is documented below.
"""
pulumi.set(__self__, "region", region)
if locations is not None:
pulumi.set(__self__, "locations", locations)
@property
@pulumi.getter
def region(self) -> pulumi.Input[str]:
"""
(Required) Name of availability region (e.g. "ru-central1"), where master instances will be allocated.
"""
return pulumi.get(self, "region")
@region.setter
def region(self, value: pulumi.Input[str]):
pulumi.set(self, "region", value)
@property
@pulumi.getter
def locations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterMasterRegionalLocationArgs']]]]:
"""
Array of locations, where master instances will be allocated. The structure is documented below.
"""
return pulumi.get(self, "locations")
@locations.setter
def locations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesClusterMasterRegionalLocationArgs']]]]):
pulumi.set(self, "locations", value)
@pulumi.input_type
class KubernetesClusterMasterRegionalLocationArgs:
def __init__(__self__, *,
subnet_id: Optional[pulumi.Input[str]] = None,
zone: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] subnet_id: (Optional) ID of the subnet.
:param pulumi.Input[str] zone: (Optional) ID of the availability zone.
"""
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
if zone is not None:
pulumi.set(__self__, "zone", zone)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[pulumi.Input[str]]:
"""
(Optional) ID of the subnet.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subnet_id", value)
@property
@pulumi.getter
def zone(self) -> Optional[pulumi.Input[str]]:
"""
(Optional) ID of the availability zone.
"""
return pulumi.get(self, "zone")
@zone.setter
def zone(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "zone", value)
@pulumi.input_type
class KubernetesClusterMasterVersionInfoArgs:
def __init__(__self__, *,
current_version: Optional[pulumi.Input[str]] = None,
new_revision_available: Optional[pulumi.Input[bool]] = None,
new_revision_summary: Optional[pulumi.Input[str]] = None,
version_deprecated: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[str] current_version: Current Kubernetes version, major.minor (e.g. 1.15).
:param pulumi.Input[bool] new_revision_available: Boolean flag.
Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well
as some internal component updates - new features or bug fixes in yandex-specific
components either on the master or nodes.
:param pulumi.Input[str] new_revision_summary: Human readable description of the changes to be applied
when updating to the latest revision. Empty if new_revision_available is false.
:param pulumi.Input[bool] version_deprecated: Boolean flag. The current version is on the deprecation schedule,
component (master or node group) should be upgraded.
"""
if current_version is not None:
pulumi.set(__self__, "current_version", current_version)
if new_revision_available is not None:
pulumi.set(__self__, "new_revision_available", new_revision_available)
if new_revision_summary is not None:
pulumi.set(__self__, "new_revision_summary", new_revision_summary)
if version_deprecated is not None:
pulumi.set(__self__, "version_deprecated", version_deprecated)
@property
@pulumi.getter(name="currentVersion")
def current_version(self) -> Optional[pulumi.Input[str]]:
"""
Current Kubernetes version, major.minor (e.g. 1.15).
"""
return pulumi.get(self, "current_version")
@current_version.setter
def current_version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "current_version", value)
@property
@pulumi.getter(name="newRevisionAvailable")
def new_revision_available(self) -> Optional[pulumi.Input[bool]]:
"""
Boolean flag.
Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well
as some internal component updates - new features or bug fixes in yandex-specific
components either on the master or nodes.
"""
return pulumi.get(self, "new_revision_available")
@new_revision_available.setter
def new_revision_available(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "new_revision_available", value)
@property
@pulumi.getter(name="newRevisionSummary")
def new_revision_summary(self) -> Optional[pulumi.Input[str]]:
"""
Human readable description of the changes to be applied
when updating to the latest revision. Empty if new_revision_available is false.
"""
return pulumi.get(self, "new_revision_summary")
@new_revision_summary.setter
def new_revision_summary(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "new_revision_summary", value)
@property
@pulumi.getter(name="versionDeprecated")
def version_deprecated(self) -> Optional[pulumi.Input[bool]]:
"""
Boolean flag. The current version is on the deprecation schedule,
component (master or node group) should be upgraded.
"""
return pulumi.get(self, "version_deprecated")
@version_deprecated.setter
def version_deprecated(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "version_deprecated", value)
@pulumi.input_type
class KubernetesClusterMasterZonalArgs:
def __init__(__self__, *,
subnet_id: Optional[pulumi.Input[str]] = None,
zone: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] subnet_id: (Optional) ID of the subnet.
:param pulumi.Input[str] zone: (Optional) ID of the availability zone.
"""
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
if zone is not None:
pulumi.set(__self__, "zone", zone)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[pulumi.Input[str]]:
"""
(Optional) ID of the subnet.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subnet_id", value)
@property
@pulumi.getter
def zone(self) -> Optional[pulumi.Input[str]]:
"""
(Optional) ID of the availability zone.
"""
return pulumi.get(self, "zone")
@zone.setter
def zone(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "zone", value)
@pulumi.input_type
class KubernetesClusterNetworkImplementationArgs:
def __init__(__self__, *,
cilium: Optional[pulumi.Input['KubernetesClusterNetworkImplementationCiliumArgs']] = None):
"""
:param pulumi.Input['KubernetesClusterNetworkImplementationCiliumArgs'] cilium: (Optional) Cilium network implementation configuration. No options exist.
"""
if cilium is not None:
pulumi.set(__self__, "cilium", cilium)
@property
@pulumi.getter
def cilium(self) -> Optional[pulumi.Input['KubernetesClusterNetworkImplementationCiliumArgs']]:
"""
(Optional) Cilium network implementation configuration. No options exist.
"""
return pulumi.get(self, "cilium")
@cilium.setter
def cilium(self, value: Optional[pulumi.Input['KubernetesClusterNetworkImplementationCiliumArgs']]):
pulumi.set(self, "cilium", value)
@pulumi.input_type
class KubernetesClusterNetworkImplementationCiliumArgs:
def __init__(__self__):
pass
@pulumi.input_type
class KubernetesNodeGroupAllocationPolicyArgs:
def __init__(__self__, *,
locations: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesNodeGroupAllocationPolicyLocationArgs']]]] = None):
"""
:param pulumi.Input[Sequence[pulumi.Input['KubernetesNodeGroupAllocationPolicyLocationArgs']]] locations: Repeated field, that specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
"""
if locations is not None:
pulumi.set(__self__, "locations", locations)
@property
@pulumi.getter
def locations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesNodeGroupAllocationPolicyLocationArgs']]]]:
"""
Repeated field, that specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
"""
return pulumi.get(self, "locations")
@locations.setter
def locations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesNodeGroupAllocationPolicyLocationArgs']]]]):
pulumi.set(self, "locations", value)
@pulumi.input_type
class KubernetesNodeGroupAllocationPolicyLocationArgs:
def __init__(__self__, *,
subnet_id: Optional[pulumi.Input[str]] = None,
zone: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] subnet_id: ID of the subnet, that will be used by one compute instance in node group.
:param pulumi.Input[str] zone: ID of the availability zone where for one compute instance in node group.
"""
if subnet_id is not None:
warnings.warn("""The 'subnet_id' field has been deprecated. Please use 'subnet_ids under network_interface' instead.""", DeprecationWarning)
pulumi.log.warn("""subnet_id is deprecated: The 'subnet_id' field has been deprecated. Please use 'subnet_ids under network_interface' instead.""")
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
if zone is not None:
pulumi.set(__self__, "zone", zone)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[pulumi.Input[str]]:
"""
ID of the subnet, that will be used by one compute instance in node group.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subnet_id", value)
@property
@pulumi.getter
def zone(self) -> Optional[pulumi.Input[str]]:
"""
ID of the availability zone where for one compute instance in node group.
"""
return pulumi.get(self, "zone")
@zone.setter
def zone(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "zone", value)
@pulumi.input_type
class KubernetesNodeGroupDeployPolicyArgs:
def __init__(__self__, *,
max_expansion: pulumi.Input[int],
max_unavailable: pulumi.Input[int]):
"""
:param pulumi.Input[int] max_expansion: The maximum number of instances that can be temporarily allocated above the group's target size during the update.
:param pulumi.Input[int] max_unavailable: The maximum number of running instances that can be taken offline during update.
"""
pulumi.set(__self__, "max_expansion", max_expansion)
pulumi.set(__self__, "max_unavailable", max_unavailable)
@property
@pulumi.getter(name="maxExpansion")
def max_expansion(self) -> pulumi.Input[int]:
"""
The maximum number of instances that can be temporarily allocated above the group's target size during the update.
"""
return pulumi.get(self, "max_expansion")
@max_expansion.setter
def max_expansion(self, value: pulumi.Input[int]):
pulumi.set(self, "max_expansion", value)
@property
@pulumi.getter(name="maxUnavailable")
def max_unavailable(self) -> pulumi.Input[int]:
"""
The maximum number of running instances that can be taken offline during update.
"""
return pulumi.get(self, "max_unavailable")
@max_unavailable.setter
def max_unavailable(self, value: pulumi.Input[int]):
pulumi.set(self, "max_unavailable", value)
@pulumi.input_type
class KubernetesNodeGroupInstanceTemplateArgs:
def __init__(__self__, *,
boot_disk: Optional[pulumi.Input['KubernetesNodeGroupInstanceTemplateBootDiskArgs']] = None,
metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
nat: Optional[pulumi.Input[bool]] = None,
network_acceleration_type: Optional[pulumi.Input[str]] = None,
network_interfaces: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesNodeGroupInstanceTemplateNetworkInterfaceArgs']]]] = None,
placement_policy: Optional[pulumi.Input['KubernetesNodeGroupInstanceTemplatePlacementPolicyArgs']] = None,
platform_id: Optional[pulumi.Input[str]] = None,
resources: Optional[pulumi.Input['KubernetesNodeGroupInstanceTemplateResourcesArgs']] = None,
scheduling_policy: Optional[pulumi.Input['KubernetesNodeGroupInstanceTemplateSchedulingPolicyArgs']] = None):
"""
:param pulumi.Input['KubernetesNodeGroupInstanceTemplateBootDiskArgs'] boot_disk: The specifications for boot disks that will be attached to the instance. The structure is documented below.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] metadata: The set of metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
* `resources.0.memory` - The memory size allocated to the instance.
* `resources.0.cores` - Number of CPU cores allocated to the instance.
* `resources.0.core_fraction` - Baseline core performance as a percent.
* `resources.0.gpus` - Number of GPU cores allocated to the instance.
:param pulumi.Input[bool] nat: A public address that can be used to access the internet over NAT.
:param pulumi.Input[str] network_acceleration_type: Type of network acceleration. Values: `standard`, `software_accelerated`.
:param pulumi.Input[Sequence[pulumi.Input['KubernetesNodeGroupInstanceTemplateNetworkInterfaceArgs']]] network_interfaces: An array with the network interfaces that will be attached to the instance. The structure is documented below.
:param pulumi.Input['KubernetesNodeGroupInstanceTemplatePlacementPolicyArgs'] placement_policy: The placement policy configuration. The structure is documented below.
:param pulumi.Input[str] platform_id: The ID of the hardware platform configuration for the node group compute instances.
:param pulumi.Input['KubernetesNodeGroupInstanceTemplateSchedulingPolicyArgs'] scheduling_policy: The scheduling policy for the instances in node group. The structure is documented below.
"""
if boot_disk is not None:
pulumi.set(__self__, "boot_disk", boot_disk)
if metadata is not None:
pulumi.set(__self__, "metadata", metadata)
if nat is not None:
warnings.warn("""The 'nat' field has been deprecated. Please use 'nat under network_interface' instead.""", DeprecationWarning)
pulumi.log.warn("""nat is deprecated: The 'nat' field has been deprecated. Please use 'nat under network_interface' instead.""")
if nat is not None:
pulumi.set(__self__, "nat", nat)
if network_acceleration_type is not None:
pulumi.set(__self__, "network_acceleration_type", network_acceleration_type)
if network_interfaces is not None:
pulumi.set(__self__, "network_interfaces", network_interfaces)
if placement_policy is not None:
pulumi.set(__self__, "placement_policy", placement_policy)
if platform_id is not None:
pulumi.set(__self__, "platform_id", platform_id)
if resources is not None:
pulumi.set(__self__, "resources", resources)
if scheduling_policy is not None:
pulumi.set(__self__, "scheduling_policy", scheduling_policy)
@property
@pulumi.getter(name="bootDisk")
def boot_disk(self) -> Optional[pulumi.Input['KubernetesNodeGroupInstanceTemplateBootDiskArgs']]:
"""
The specifications for boot disks that will be attached to the instance. The structure is documented below.
"""
return pulumi.get(self, "boot_disk")
@boot_disk.setter
def boot_disk(self, value: Optional[pulumi.Input['KubernetesNodeGroupInstanceTemplateBootDiskArgs']]):
pulumi.set(self, "boot_disk", value)
@property
@pulumi.getter
def metadata(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
The set of metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
* `resources.0.memory` - The memory size allocated to the instance.
* `resources.0.cores` - Number of CPU cores allocated to the instance.
* `resources.0.core_fraction` - Baseline core performance as a percent.
* `resources.0.gpus` - Number of GPU cores allocated to the instance.
"""
return pulumi.get(self, "metadata")
@metadata.setter
def metadata(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "metadata", value)
@property
@pulumi.getter
def nat(self) -> Optional[pulumi.Input[bool]]:
"""
A public address that can be used to access the internet over NAT.
"""
return pulumi.get(self, "nat")
@nat.setter
def nat(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "nat", value)
@property
@pulumi.getter(name="networkAccelerationType")
def network_acceleration_type(self) -> Optional[pulumi.Input[str]]:
"""
Type of network acceleration. Values: `standard`, `software_accelerated`.
"""
return pulumi.get(self, "network_acceleration_type")
@network_acceleration_type.setter
def network_acceleration_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "network_acceleration_type", value)
@property
@pulumi.getter(name="networkInterfaces")
def network_interfaces(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesNodeGroupInstanceTemplateNetworkInterfaceArgs']]]]:
"""
An array with the network interfaces that will be attached to the instance. The structure is documented below.
"""
return pulumi.get(self, "network_interfaces")
@network_interfaces.setter
def network_interfaces(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesNodeGroupInstanceTemplateNetworkInterfaceArgs']]]]):
pulumi.set(self, "network_interfaces", value)
@property
@pulumi.getter(name="placementPolicy")
def placement_policy(self) -> Optional[pulumi.Input['KubernetesNodeGroupInstanceTemplatePlacementPolicyArgs']]:
"""
The placement policy configuration. The structure is documented below.
"""
return pulumi.get(self, "placement_policy")
@placement_policy.setter
def placement_policy(self, value: Optional[pulumi.Input['KubernetesNodeGroupInstanceTemplatePlacementPolicyArgs']]):
pulumi.set(self, "placement_policy", value)
@property
@pulumi.getter(name="platformId")
def platform_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the hardware platform configuration for the node group compute instances.
"""
return pulumi.get(self, "platform_id")
@platform_id.setter
def platform_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "platform_id", value)
@property
@pulumi.getter
def resources(self) -> Optional[pulumi.Input['KubernetesNodeGroupInstanceTemplateResourcesArgs']]:
return pulumi.get(self, "resources")
@resources.setter
def resources(self, value: Optional[pulumi.Input['KubernetesNodeGroupInstanceTemplateResourcesArgs']]):
pulumi.set(self, "resources", value)
@property
@pulumi.getter(name="schedulingPolicy")
def scheduling_policy(self) -> Optional[pulumi.Input['KubernetesNodeGroupInstanceTemplateSchedulingPolicyArgs']]:
"""
The scheduling policy for the instances in node group. The structure is documented below.
"""
return pulumi.get(self, "scheduling_policy")
@scheduling_policy.setter
def scheduling_policy(self, value: Optional[pulumi.Input['KubernetesNodeGroupInstanceTemplateSchedulingPolicyArgs']]):
pulumi.set(self, "scheduling_policy", value)
@pulumi.input_type
class KubernetesNodeGroupInstanceTemplateBootDiskArgs:
def __init__(__self__, *,
size: Optional[pulumi.Input[int]] = None,
type: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] size: The number of instances in the node group.
:param pulumi.Input[str] type: The disk type.
"""
if size is not None:
pulumi.set(__self__, "size", size)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def size(self) -> Optional[pulumi.Input[int]]:
"""
The number of instances in the node group.
"""
return pulumi.get(self, "size")
@size.setter
def size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "size", value)
@property
@pulumi.getter
def type(self) -> Optional[pulumi.Input[str]]:
"""
The disk type.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "type", value)
@pulumi.input_type
class KubernetesNodeGroupInstanceTemplateNetworkInterfaceArgs:
def __init__(__self__, *,
subnet_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
ipv4: Optional[pulumi.Input[bool]] = None,
ipv6: Optional[pulumi.Input[bool]] = None,
nat: Optional[pulumi.Input[bool]] = None,
security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
:param pulumi.Input[Sequence[pulumi.Input[str]]] subnet_ids: The IDs of the subnets.
:param pulumi.Input[bool] ipv4: Allocate an IPv4 address for the interface. The default value is `true`.
:param pulumi.Input[bool] ipv6: If true, allocate an IPv6 address for the interface. The address will be automatically assigned from the specified subnet.
:param pulumi.Input[bool] nat: A public address that can be used to access the internet over NAT.
:param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: Security group ids for network interface.
"""
pulumi.set(__self__, "subnet_ids", subnet_ids)
if ipv4 is not None:
pulumi.set(__self__, "ipv4", ipv4)
if ipv6 is not None:
pulumi.set(__self__, "ipv6", ipv6)
if nat is not None:
pulumi.set(__self__, "nat", nat)
if security_group_ids is not None:
pulumi.set(__self__, "security_group_ids", security_group_ids)
@property
@pulumi.getter(name="subnetIds")
def subnet_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
The IDs of the subnets.
"""
return pulumi.get(self, "subnet_ids")
@subnet_ids.setter
def subnet_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "subnet_ids", value)
@property
@pulumi.getter
def ipv4(self) -> Optional[pulumi.Input[bool]]:
"""
Allocate an IPv4 address for the interface. The default value is `true`.
"""
return pulumi.get(self, "ipv4")
@ipv4.setter
def ipv4(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ipv4", value)
@property
@pulumi.getter
def ipv6(self) -> Optional[pulumi.Input[bool]]:
"""
If true, allocate an IPv6 address for the interface. The address will be automatically assigned from the specified subnet.
"""
return pulumi.get(self, "ipv6")
@ipv6.setter
def ipv6(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ipv6", value)
@property
@pulumi.getter
def nat(self) -> Optional[pulumi.Input[bool]]:
"""
A public address that can be used to access the internet over NAT.
"""
return pulumi.get(self, "nat")
@nat.setter
def nat(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "nat", value)
@property
@pulumi.getter(name="securityGroupIds")
def security_group_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Security group ids for network interface.
"""
return pulumi.get(self, "security_group_ids")
@security_group_ids.setter
def security_group_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "security_group_ids", value)
@pulumi.input_type
class KubernetesNodeGroupInstanceTemplatePlacementPolicyArgs:
def __init__(__self__, *,
placement_group_id: pulumi.Input[str]):
"""
:param pulumi.Input[str] placement_group_id: Specifies the id of the Placement Group to assign to the instances.
"""
pulumi.set(__self__, "placement_group_id", placement_group_id)
@property
@pulumi.getter(name="placementGroupId")
def placement_group_id(self) -> pulumi.Input[str]:
"""
Specifies the id of the Placement Group to assign to the instances.
"""
return pulumi.get(self, "placement_group_id")
@placement_group_id.setter
def placement_group_id(self, value: pulumi.Input[str]):
pulumi.set(self, "placement_group_id", value)
@pulumi.input_type
class KubernetesNodeGroupInstanceTemplateResourcesArgs:
def __init__(__self__, *,
core_fraction: Optional[pulumi.Input[int]] = None,
cores: Optional[pulumi.Input[int]] = None,
gpus: Optional[pulumi.Input[int]] = None,
memory: Optional[pulumi.Input[float]] = None):
if core_fraction is not None:
pulumi.set(__self__, "core_fraction", core_fraction)
if cores is not None:
pulumi.set(__self__, "cores", cores)
if gpus is not None:
pulumi.set(__self__, "gpus", gpus)
if memory is not None:
pulumi.set(__self__, "memory", memory)
@property
@pulumi.getter(name="coreFraction")
def core_fraction(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "core_fraction")
@core_fraction.setter
def core_fraction(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "core_fraction", value)
@property
@pulumi.getter
def cores(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "cores")
@cores.setter
def cores(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "cores", value)
@property
@pulumi.getter
def gpus(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "gpus")
@gpus.setter
def gpus(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "gpus", value)
@property
@pulumi.getter
def memory(self) -> Optional[pulumi.Input[float]]:
return pulumi.get(self, "memory")
@memory.setter
def memory(self, value: Optional[pulumi.Input[float]]):
pulumi.set(self, "memory", value)
@pulumi.input_type
class KubernetesNodeGroupInstanceTemplateSchedulingPolicyArgs:
def __init__(__self__, *,
preemptible: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[bool] preemptible: Specifies if the instance is preemptible. Defaults to false.
---
"""
if preemptible is not None:
pulumi.set(__self__, "preemptible", preemptible)
@property
@pulumi.getter
def preemptible(self) -> Optional[pulumi.Input[bool]]:
"""
Specifies if the instance is preemptible. Defaults to false.
---
"""
return pulumi.get(self, "preemptible")
@preemptible.setter
def preemptible(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "preemptible", value)
@pulumi.input_type
class KubernetesNodeGroupMaintenancePolicyArgs:
def __init__(__self__, *,
auto_repair: pulumi.Input[bool],
auto_upgrade: pulumi.Input[bool],
maintenance_windows: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs']]]] = None):
"""
:param pulumi.Input[bool] auto_repair: Boolean flag that specifies if node group can be repaired automatically. When omitted, default value is TRUE.
:param pulumi.Input[bool] auto_upgrade: Boolean flag that specifies if node group can be upgraded automatically. When omitted, default value is TRUE.
:param pulumi.Input[Sequence[pulumi.Input['KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs']]] maintenance_windows: (Computed) Set of day intervals, when maintenance is allowed for this node group. When omitted, it defaults to any time.
"""
pulumi.set(__self__, "auto_repair", auto_repair)
pulumi.set(__self__, "auto_upgrade", auto_upgrade)
if maintenance_windows is not None:
pulumi.set(__self__, "maintenance_windows", maintenance_windows)
@property
@pulumi.getter(name="autoRepair")
def auto_repair(self) -> pulumi.Input[bool]:
"""
Boolean flag that specifies if node group can be repaired automatically. When omitted, default value is TRUE.
"""
return pulumi.get(self, "auto_repair")
@auto_repair.setter
def auto_repair(self, value: pulumi.Input[bool]):
pulumi.set(self, "auto_repair", value)
@property
@pulumi.getter(name="autoUpgrade")
def auto_upgrade(self) -> pulumi.Input[bool]:
"""
Boolean flag that specifies if node group can be upgraded automatically. When omitted, default value is TRUE.
"""
return pulumi.get(self, "auto_upgrade")
@auto_upgrade.setter
def auto_upgrade(self, value: pulumi.Input[bool]):
pulumi.set(self, "auto_upgrade", value)
@property
@pulumi.getter(name="maintenanceWindows")
def maintenance_windows(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs']]]]:
"""
(Computed) Set of day intervals, when maintenance is allowed for this node group. When omitted, it defaults to any time.
"""
return pulumi.get(self, "maintenance_windows")
@maintenance_windows.setter
def maintenance_windows(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs']]]]):
pulumi.set(self, "maintenance_windows", value)
@pulumi.input_type
class KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs:
def __init__(__self__, *,
duration: pulumi.Input[str],
start_time: pulumi.Input[str],
day: Optional[pulumi.Input[str]] = None):
pulumi.set(__self__, "duration", duration)
pulumi.set(__self__, "start_time", start_time)
if day is not None:
pulumi.set(__self__, "day", day)
@property
@pulumi.getter
def duration(self) -> pulumi.Input[str]:
return pulumi.get(self, "duration")
@duration.setter
def duration(self, value: pulumi.Input[str]):
pulumi.set(self, "duration", value)
@property
@pulumi.getter(name="startTime")
def start_time(self) -> pulumi.Input[str]:
return pulumi.get(self, "start_time")
@start_time.setter
def start_time(self, value: pulumi.Input[str]):
pulumi.set(self, "start_time", value)
@property
@pulumi.getter
def day(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "day")
@day.setter
def day(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "day", value)
@pulumi.input_type
class KubernetesNodeGroupScalePolicyArgs:
def __init__(__self__, *,
auto_scale: Optional[pulumi.Input['KubernetesNodeGroupScalePolicyAutoScaleArgs']] = None,
fixed_scale: Optional[pulumi.Input['KubernetesNodeGroupScalePolicyFixedScaleArgs']] = None):
"""
:param pulumi.Input['KubernetesNodeGroupScalePolicyAutoScaleArgs'] auto_scale: Scale policy for an autoscaled node group. The structure is documented below.
:param pulumi.Input['KubernetesNodeGroupScalePolicyFixedScaleArgs'] fixed_scale: Scale policy for a fixed scale node group. The structure is documented below.
"""
if auto_scale is not None:
pulumi.set(__self__, "auto_scale", auto_scale)
if fixed_scale is not None:
pulumi.set(__self__, "fixed_scale", fixed_scale)
@property
@pulumi.getter(name="autoScale")
def auto_scale(self) -> Optional[pulumi.Input['KubernetesNodeGroupScalePolicyAutoScaleArgs']]:
"""
Scale policy for an autoscaled node group. The structure is documented below.
"""
return pulumi.get(self, "auto_scale")
@auto_scale.setter
def auto_scale(self, value: Optional[pulumi.Input['KubernetesNodeGroupScalePolicyAutoScaleArgs']]):
pulumi.set(self, "auto_scale", value)
@property
@pulumi.getter(name="fixedScale")
def fixed_scale(self) -> Optional[pulumi.Input['KubernetesNodeGroupScalePolicyFixedScaleArgs']]:
"""
Scale policy for a fixed scale node group. The structure is documented below.
"""
return pulumi.get(self, "fixed_scale")
@fixed_scale.setter
def fixed_scale(self, value: Optional[pulumi.Input['KubernetesNodeGroupScalePolicyFixedScaleArgs']]):
pulumi.set(self, "fixed_scale", value)
@pulumi.input_type
class KubernetesNodeGroupScalePolicyAutoScaleArgs:
def __init__(__self__, *,
initial: pulumi.Input[int],
max: pulumi.Input[int],
min: pulumi.Input[int]):
"""
:param pulumi.Input[int] initial: Initial number of instances in the node group.
:param pulumi.Input[int] max: Maximum number of instances in the node group.
:param pulumi.Input[int] min: Minimum number of instances in the node group.
"""
pulumi.set(__self__, "initial", initial)
pulumi.set(__self__, "max", max)
pulumi.set(__self__, "min", min)
@property
@pulumi.getter
def initial(self) -> pulumi.Input[int]:
"""
Initial number of instances in the node group.
"""
return pulumi.get(self, "initial")
@initial.setter
def initial(self, value: pulumi.Input[int]):
pulumi.set(self, "initial", value)
@property
@pulumi.getter
def max(self) -> pulumi.Input[int]:
"""
Maximum number of instances in the node group.
"""
return pulumi.get(self, "max")
@max.setter
def max(self, value: pulumi.Input[int]):
pulumi.set(self, "max", value)
@property
@pulumi.getter
def min(self) -> pulumi.Input[int]:
"""
Minimum number of instances in the node group.
"""
return pulumi.get(self, "min")
@min.setter
def min(self, value: pulumi.Input[int]):
pulumi.set(self, "min", value)
@pulumi.input_type
class KubernetesNodeGroupScalePolicyFixedScaleArgs:
def __init__(__self__, *,
size: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] size: The number of instances in the node group.
"""
if size is not None:
pulumi.set(__self__, "size", size)
@property
@pulumi.getter
def size(self) -> Optional[pulumi.Input[int]]:
"""
The number of instances in the node group.
"""
return pulumi.get(self, "size")
@size.setter
def size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "size", value)
@pulumi.input_type
class KubernetesNodeGroupVersionInfoArgs:
def __init__(__self__, *,
current_version: Optional[pulumi.Input[str]] = None,
new_revision_available: Optional[pulumi.Input[bool]] = None,
new_revision_summary: Optional[pulumi.Input[str]] = None,
version_deprecated: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[str] current_version: Current Kubernetes version, major.minor (e.g. 1.15).
:param pulumi.Input[bool] new_revision_available: True/false flag.
Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well
as some internal component updates - new features or bug fixes in yandex-specific
components either on the master or nodes.
:param pulumi.Input[str] new_revision_summary: Human readable description of the changes to be applied
when updating to the latest revision. Empty if new_revision_available is false.
:param pulumi.Input[bool] version_deprecated: True/false flag. The current version is on the deprecation schedule,
component (master or node group) should be upgraded.
"""
if current_version is not None:
pulumi.set(__self__, "current_version", current_version)
if new_revision_available is not None:
pulumi.set(__self__, "new_revision_available", new_revision_available)
if new_revision_summary is not None:
pulumi.set(__self__, "new_revision_summary", new_revision_summary)
if version_deprecated is not None:
pulumi.set(__self__, "version_deprecated", version_deprecated)
@property
@pulumi.getter(name="currentVersion")
def current_version(self) -> Optional[pulumi.Input[str]]:
"""
Current Kubernetes version, major.minor (e.g. 1.15).
"""
return pulumi.get(self, "current_version")
@current_version.setter
def current_version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "current_version", value)
@property
@pulumi.getter(name="newRevisionAvailable")
def new_revision_available(self) -> Optional[pulumi.Input[bool]]:
"""
True/false flag.
Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well
as some internal component updates - new features or bug fixes in yandex-specific
components either on the master or nodes.
"""
return pulumi.get(self, "new_revision_available")
@new_revision_available.setter
def new_revision_available(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "new_revision_available", value)
@property
@pulumi.getter(name="newRevisionSummary")
def new_revision_summary(self) -> Optional[pulumi.Input[str]]:
"""
Human readable description of the changes to be applied
when updating to the latest revision. Empty if new_revision_available is false.
"""
return pulumi.get(self, "new_revision_summary")
@new_revision_summary.setter
def new_revision_summary(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "new_revision_summary", value)
@property
@pulumi.getter(name="versionDeprecated")
def version_deprecated(self) -> Optional[pulumi.Input[bool]]:
"""
True/false flag. The current version is on the deprecation schedule,
component (master or node group) should be upgraded.
"""
return pulumi.get(self, "version_deprecated")
@version_deprecated.setter
def version_deprecated(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "version_deprecated", value)
@pulumi.input_type
class LbNetworkLoadBalancerAttachedTargetGroupArgs:
def __init__(__self__, *,
healthchecks: pulumi.Input[Sequence[pulumi.Input['LbNetworkLoadBalancerAttachedTargetGroupHealthcheckArgs']]],
target_group_id: pulumi.Input[str]):
"""
:param pulumi.Input[Sequence[pulumi.Input['LbNetworkLoadBalancerAttachedTargetGroupHealthcheckArgs']]] healthchecks: A HealthCheck resource. The structure is documented below.
:param pulumi.Input[str] target_group_id: ID of the target group.
"""
pulumi.set(__self__, "healthchecks", healthchecks)
pulumi.set(__self__, "target_group_id", target_group_id)
@property
@pulumi.getter
def healthchecks(self) -> pulumi.Input[Sequence[pulumi.Input['LbNetworkLoadBalancerAttachedTargetGroupHealthcheckArgs']]]:
"""
A HealthCheck resource. The structure is documented below.
"""
return pulumi.get(self, "healthchecks")
@healthchecks.setter
def healthchecks(self, value: pulumi.Input[Sequence[pulumi.Input['LbNetworkLoadBalancerAttachedTargetGroupHealthcheckArgs']]]):
pulumi.set(self, "healthchecks", value)
@property
@pulumi.getter(name="targetGroupId")
def target_group_id(self) -> pulumi.Input[str]:
"""
ID of the target group.
"""
return pulumi.get(self, "target_group_id")
@target_group_id.setter
def target_group_id(self, value: pulumi.Input[str]):
pulumi.set(self, "target_group_id", value)
@pulumi.input_type
class LbNetworkLoadBalancerAttachedTargetGroupHealthcheckArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
healthy_threshold: Optional[pulumi.Input[int]] = None,
http_options: Optional[pulumi.Input['LbNetworkLoadBalancerAttachedTargetGroupHealthcheckHttpOptionsArgs']] = None,
interval: Optional[pulumi.Input[int]] = None,
tcp_options: Optional[pulumi.Input['LbNetworkLoadBalancerAttachedTargetGroupHealthcheckTcpOptionsArgs']] = None,
timeout: Optional[pulumi.Input[int]] = None,
unhealthy_threshold: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] name: Name of the listener. The name must be unique for each listener on a single load balancer.
:param pulumi.Input[int] healthy_threshold: Number of successful health checks required in order to set the `HEALTHY` status for the target.
:param pulumi.Input['LbNetworkLoadBalancerAttachedTargetGroupHealthcheckHttpOptionsArgs'] http_options: Options for HTTP health check. The structure is documented below.
:param pulumi.Input[int] interval: The interval between health checks. The default is 2 seconds.
:param pulumi.Input['LbNetworkLoadBalancerAttachedTargetGroupHealthcheckTcpOptionsArgs'] tcp_options: Options for TCP health check. The structure is documented below.
:param pulumi.Input[int] timeout: Timeout for a target to return a response for the health check. The default is 1 second.
:param pulumi.Input[int] unhealthy_threshold: Number of failed health checks before changing the status to `UNHEALTHY`. The default is 2.
"""
pulumi.set(__self__, "name", name)
if healthy_threshold is not None:
pulumi.set(__self__, "healthy_threshold", healthy_threshold)
if http_options is not None:
pulumi.set(__self__, "http_options", http_options)
if interval is not None:
pulumi.set(__self__, "interval", interval)
if tcp_options is not None:
pulumi.set(__self__, "tcp_options", tcp_options)
if timeout is not None:
pulumi.set(__self__, "timeout", timeout)
if unhealthy_threshold is not None:
pulumi.set(__self__, "unhealthy_threshold", unhealthy_threshold)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Name of the listener. The name must be unique for each listener on a single load balancer.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="healthyThreshold")
def healthy_threshold(self) -> Optional[pulumi.Input[int]]:
"""
Number of successful health checks required in order to set the `HEALTHY` status for the target.
"""
return pulumi.get(self, "healthy_threshold")
@healthy_threshold.setter
def healthy_threshold(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "healthy_threshold", value)
@property
@pulumi.getter(name="httpOptions")
def http_options(self) -> Optional[pulumi.Input['LbNetworkLoadBalancerAttachedTargetGroupHealthcheckHttpOptionsArgs']]:
"""
Options for HTTP health check. The structure is documented below.
"""
return pulumi.get(self, "http_options")
@http_options.setter
def http_options(self, value: Optional[pulumi.Input['LbNetworkLoadBalancerAttachedTargetGroupHealthcheckHttpOptionsArgs']]):
pulumi.set(self, "http_options", value)
@property
@pulumi.getter
def interval(self) -> Optional[pulumi.Input[int]]:
"""
The interval between health checks. The default is 2 seconds.
"""
return pulumi.get(self, "interval")
@interval.setter
def interval(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "interval", value)
@property
@pulumi.getter(name="tcpOptions")
def tcp_options(self) -> Optional[pulumi.Input['LbNetworkLoadBalancerAttachedTargetGroupHealthcheckTcpOptionsArgs']]:
"""
Options for TCP health check. The structure is documented below.
"""
return pulumi.get(self, "tcp_options")
@tcp_options.setter
def tcp_options(self, value: Optional[pulumi.Input['LbNetworkLoadBalancerAttachedTargetGroupHealthcheckTcpOptionsArgs']]):
pulumi.set(self, "tcp_options", value)
@property
@pulumi.getter
def timeout(self) -> Optional[pulumi.Input[int]]:
"""
Timeout for a target to return a response for the health check. The default is 1 second.
"""
return pulumi.get(self, "timeout")
@timeout.setter
def timeout(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "timeout", value)
@property
@pulumi.getter(name="unhealthyThreshold")
def unhealthy_threshold(self) -> Optional[pulumi.Input[int]]:
"""
Number of failed health checks before changing the status to `UNHEALTHY`. The default is 2.
"""
return pulumi.get(self, "unhealthy_threshold")
@unhealthy_threshold.setter
def unhealthy_threshold(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "unhealthy_threshold", value)
@pulumi.input_type
class LbNetworkLoadBalancerAttachedTargetGroupHealthcheckHttpOptionsArgs:
def __init__(__self__, *,
port: pulumi.Input[int],
path: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] port: Port for incoming traffic.
:param pulumi.Input[str] path: URL path to set for health checking requests for every target in the target group. For example `/ping`. The default path is `/`.
"""
pulumi.set(__self__, "port", port)
if path is not None:
pulumi.set(__self__, "path", path)
@property
@pulumi.getter
def port(self) -> pulumi.Input[int]:
"""
Port for incoming traffic.
"""
return pulumi.get(self, "port")
@port.setter
def port(self, value: pulumi.Input[int]):
pulumi.set(self, "port", value)
@property
@pulumi.getter
def path(self) -> Optional[pulumi.Input[str]]:
"""
URL path to set for health checking requests for every target in the target group. For example `/ping`. The default path is `/`.
"""
return pulumi.get(self, "path")
@path.setter
def path(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "path", value)
@pulumi.input_type
class LbNetworkLoadBalancerAttachedTargetGroupHealthcheckTcpOptionsArgs:
def __init__(__self__, *,
port: pulumi.Input[int]):
"""
:param pulumi.Input[int] port: Port for incoming traffic.
"""
pulumi.set(__self__, "port", port)
@property
@pulumi.getter
def port(self) -> pulumi.Input[int]:
"""
Port for incoming traffic.
"""
return pulumi.get(self, "port")
@port.setter
def port(self, value: pulumi.Input[int]):
pulumi.set(self, "port", value)
@pulumi.input_type
class LbNetworkLoadBalancerListenerArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
port: pulumi.Input[int],
external_address_spec: Optional[pulumi.Input['LbNetworkLoadBalancerListenerExternalAddressSpecArgs']] = None,
internal_address_spec: Optional[pulumi.Input['LbNetworkLoadBalancerListenerInternalAddressSpecArgs']] = None,
protocol: Optional[pulumi.Input[str]] = None,
target_port: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] name: Name of the listener. The name must be unique for each listener on a single load balancer.
:param pulumi.Input[int] port: Port for incoming traffic.
:param pulumi.Input['LbNetworkLoadBalancerListenerExternalAddressSpecArgs'] external_address_spec: External IP address specification. The structure is documented below.
:param pulumi.Input['LbNetworkLoadBalancerListenerInternalAddressSpecArgs'] internal_address_spec: Internal IP address specification. The structure is documented below.
:param pulumi.Input[str] protocol: Protocol for incoming traffic. TCP or UDP and the default is TCP.
:param pulumi.Input[int] target_port: Port of a target. The default is the same as listener's port.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "port", port)
if external_address_spec is not None:
pulumi.set(__self__, "external_address_spec", external_address_spec)
if internal_address_spec is not None:
pulumi.set(__self__, "internal_address_spec", internal_address_spec)
if protocol is not None:
pulumi.set(__self__, "protocol", protocol)
if target_port is not None:
pulumi.set(__self__, "target_port", target_port)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Name of the listener. The name must be unique for each listener on a single load balancer.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def port(self) -> pulumi.Input[int]:
"""
Port for incoming traffic.
"""
return pulumi.get(self, "port")
@port.setter
def port(self, value: pulumi.Input[int]):
pulumi.set(self, "port", value)
@property
@pulumi.getter(name="externalAddressSpec")
def external_address_spec(self) -> Optional[pulumi.Input['LbNetworkLoadBalancerListenerExternalAddressSpecArgs']]:
"""
External IP address specification. The structure is documented below.
"""
return pulumi.get(self, "external_address_spec")
@external_address_spec.setter
def external_address_spec(self, value: Optional[pulumi.Input['LbNetworkLoadBalancerListenerExternalAddressSpecArgs']]):
pulumi.set(self, "external_address_spec", value)
@property
@pulumi.getter(name="internalAddressSpec")
def internal_address_spec(self) -> Optional[pulumi.Input['LbNetworkLoadBalancerListenerInternalAddressSpecArgs']]:
"""
Internal IP address specification. The structure is documented below.
"""
return pulumi.get(self, "internal_address_spec")
@internal_address_spec.setter
def internal_address_spec(self, value: Optional[pulumi.Input['LbNetworkLoadBalancerListenerInternalAddressSpecArgs']]):
pulumi.set(self, "internal_address_spec", value)
@property
@pulumi.getter
def protocol(self) -> Optional[pulumi.Input[str]]:
"""
Protocol for incoming traffic. TCP or UDP and the default is TCP.
"""
return pulumi.get(self, "protocol")
@protocol.setter
def protocol(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "protocol", value)
@property
@pulumi.getter(name="targetPort")
def target_port(self) -> Optional[pulumi.Input[int]]:
"""
Port of a target. The default is the same as listener's port.
"""
return pulumi.get(self, "target_port")
@target_port.setter
def target_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "target_port", value)
@pulumi.input_type
class LbNetworkLoadBalancerListenerExternalAddressSpecArgs:
def __init__(__self__, *,
address: Optional[pulumi.Input[str]] = None,
ip_version: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] address: Internal IP address for a listener. Must belong to the subnet that is referenced in subnet_id. IP address will be allocated if it wasn't been set.
:param pulumi.Input[str] ip_version: IP version of the internal addresses that the load balancer works with. Must be one of ipv4 or ipv6. The default is ipv4.
"""
if address is not None:
pulumi.set(__self__, "address", address)
if ip_version is not None:
pulumi.set(__self__, "ip_version", ip_version)
@property
@pulumi.getter
def address(self) -> Optional[pulumi.Input[str]]:
"""
Internal IP address for a listener. Must belong to the subnet that is referenced in subnet_id. IP address will be allocated if it wasn't been set.
"""
return pulumi.get(self, "address")
@address.setter
def address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "address", value)
@property
@pulumi.getter(name="ipVersion")
def ip_version(self) -> Optional[pulumi.Input[str]]:
"""
IP version of the internal addresses that the load balancer works with. Must be one of ipv4 or ipv6. The default is ipv4.
"""
return pulumi.get(self, "ip_version")
@ip_version.setter
def ip_version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "ip_version", value)
@pulumi.input_type
class LbNetworkLoadBalancerListenerInternalAddressSpecArgs:
def __init__(__self__, *,
subnet_id: pulumi.Input[str],
address: Optional[pulumi.Input[str]] = None,
ip_version: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] subnet_id: ID of the subnet to which the internal IP address belongs.
:param pulumi.Input[str] address: Internal IP address for a listener. Must belong to the subnet that is referenced in subnet_id. IP address will be allocated if it wasn't been set.
:param pulumi.Input[str] ip_version: IP version of the internal addresses that the load balancer works with. Must be one of ipv4 or ipv6. The default is ipv4.
"""
pulumi.set(__self__, "subnet_id", subnet_id)
if address is not None:
pulumi.set(__self__, "address", address)
if ip_version is not None:
pulumi.set(__self__, "ip_version", ip_version)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> pulumi.Input[str]:
"""
ID of the subnet to which the internal IP address belongs.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: pulumi.Input[str]):
pulumi.set(self, "subnet_id", value)
@property
@pulumi.getter
def address(self) -> Optional[pulumi.Input[str]]:
"""
Internal IP address for a listener. Must belong to the subnet that is referenced in subnet_id. IP address will be allocated if it wasn't been set.
"""
return pulumi.get(self, "address")
@address.setter
def address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "address", value)
@property
@pulumi.getter(name="ipVersion")
def ip_version(self) -> Optional[pulumi.Input[str]]:
"""
IP version of the internal addresses that the load balancer works with. Must be one of ipv4 or ipv6. The default is ipv4.
"""
return pulumi.get(self, "ip_version")
@ip_version.setter
def ip_version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "ip_version", value)
@pulumi.input_type
class LbTargetGroupTargetArgs:
def __init__(__self__, *,
address: pulumi.Input[str],
subnet_id: pulumi.Input[str]):
"""
:param pulumi.Input[str] address: IP address of the target.
:param pulumi.Input[str] subnet_id: ID of the subnet that targets are connected to.
All targets in the target group must be connected to the same subnet within a single availability zone.
"""
pulumi.set(__self__, "address", address)
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter
def address(self) -> pulumi.Input[str]:
"""
IP address of the target.
"""
return pulumi.get(self, "address")
@address.setter
def address(self, value: pulumi.Input[str]):
pulumi.set(self, "address", value)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> pulumi.Input[str]:
"""
ID of the subnet that targets are connected to.
All targets in the target group must be connected to the same subnet within a single availability zone.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: pulumi.Input[str]):
pulumi.set(self, "subnet_id", value)
@pulumi.input_type
class MdbClickhouseClusterAccessArgs:
def __init__(__self__, *,
data_lens: Optional[pulumi.Input[bool]] = None,
metrika: Optional[pulumi.Input[bool]] = None,
serverless: Optional[pulumi.Input[bool]] = None,
web_sql: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[bool] data_lens: Allow access for DataLens. Can be either `true` or `false`.
:param pulumi.Input[bool] metrika: Allow access for Yandex.Metrika. Can be either `true` or `false`.
:param pulumi.Input[bool] serverless: Allow access for Serverless. Can be either `true` or `false`.
:param pulumi.Input[bool] web_sql: Allow access for Web SQL. Can be either `true` or `false`.
"""
if data_lens is not None:
pulumi.set(__self__, "data_lens", data_lens)
if metrika is not None:
pulumi.set(__self__, "metrika", metrika)
if serverless is not None:
pulumi.set(__self__, "serverless", serverless)
if web_sql is not None:
pulumi.set(__self__, "web_sql", web_sql)
@property
@pulumi.getter(name="dataLens")
def data_lens(self) -> Optional[pulumi.Input[bool]]:
"""
Allow access for DataLens. Can be either `true` or `false`.
"""
return pulumi.get(self, "data_lens")
@data_lens.setter
def data_lens(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "data_lens", value)
@property
@pulumi.getter
def metrika(self) -> Optional[pulumi.Input[bool]]:
"""
Allow access for Yandex.Metrika. Can be either `true` or `false`.
"""
return pulumi.get(self, "metrika")
@metrika.setter
def metrika(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "metrika", value)
@property
@pulumi.getter
def serverless(self) -> Optional[pulumi.Input[bool]]:
"""
Allow access for Serverless. Can be either `true` or `false`.
"""
return pulumi.get(self, "serverless")
@serverless.setter
def serverless(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "serverless", value)
@property
@pulumi.getter(name="webSql")
def web_sql(self) -> Optional[pulumi.Input[bool]]:
"""
Allow access for Web SQL. Can be either `true` or `false`.
"""
return pulumi.get(self, "web_sql")
@web_sql.setter
def web_sql(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "web_sql", value)
@pulumi.input_type
class MdbClickhouseClusterBackupWindowStartArgs:
def __init__(__self__, *,
hours: Optional[pulumi.Input[int]] = None,
minutes: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] hours: The hour at which backup will be started.
:param pulumi.Input[int] minutes: The minute at which backup will be started.
"""
if hours is not None:
pulumi.set(__self__, "hours", hours)
if minutes is not None:
pulumi.set(__self__, "minutes", minutes)
@property
@pulumi.getter
def hours(self) -> Optional[pulumi.Input[int]]:
"""
The hour at which backup will be started.
"""
return pulumi.get(self, "hours")
@hours.setter
def hours(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "hours", value)
@property
@pulumi.getter
def minutes(self) -> Optional[pulumi.Input[int]]:
"""
The minute at which backup will be started.
"""
return pulumi.get(self, "minutes")
@minutes.setter
def minutes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "minutes", value)
@pulumi.input_type
class MdbClickhouseClusterClickhouseArgs:
def __init__(__self__, *,
resources: pulumi.Input['MdbClickhouseClusterClickhouseResourcesArgs'],
config: Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigArgs']] = None):
"""
:param pulumi.Input['MdbClickhouseClusterClickhouseResourcesArgs'] resources: Resources allocated to hosts of the ZooKeeper subcluster. The structure is documented below.
:param pulumi.Input['MdbClickhouseClusterClickhouseConfigArgs'] config: Main ClickHouse cluster configuration.
"""
pulumi.set(__self__, "resources", resources)
if config is not None:
pulumi.set(__self__, "config", config)
@property
@pulumi.getter
def resources(self) -> pulumi.Input['MdbClickhouseClusterClickhouseResourcesArgs']:
"""
Resources allocated to hosts of the ZooKeeper subcluster. The structure is documented below.
"""
return pulumi.get(self, "resources")
@resources.setter
def resources(self, value: pulumi.Input['MdbClickhouseClusterClickhouseResourcesArgs']):
pulumi.set(self, "resources", value)
@property
@pulumi.getter
def config(self) -> Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigArgs']]:
"""
Main ClickHouse cluster configuration.
"""
return pulumi.get(self, "config")
@config.setter
def config(self, value: Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigArgs']]):
pulumi.set(self, "config", value)
@pulumi.input_type
class MdbClickhouseClusterClickhouseConfigArgs:
def __init__(__self__, *,
background_pool_size: Optional[pulumi.Input[int]] = None,
background_schedule_pool_size: Optional[pulumi.Input[int]] = None,
compressions: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigCompressionArgs']]]] = None,
geobase_uri: Optional[pulumi.Input[str]] = None,
graphite_rollups: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigGraphiteRollupArgs']]]] = None,
kafka: Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigKafkaArgs']] = None,
kafka_topics: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigKafkaTopicArgs']]]] = None,
keep_alive_timeout: Optional[pulumi.Input[int]] = None,
log_level: Optional[pulumi.Input[str]] = None,
mark_cache_size: Optional[pulumi.Input[int]] = None,
max_concurrent_queries: Optional[pulumi.Input[int]] = None,
max_connections: Optional[pulumi.Input[int]] = None,
max_partition_size_to_drop: Optional[pulumi.Input[int]] = None,
max_table_size_to_drop: Optional[pulumi.Input[int]] = None,
merge_tree: Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigMergeTreeArgs']] = None,
metric_log_enabled: Optional[pulumi.Input[bool]] = None,
metric_log_retention_size: Optional[pulumi.Input[int]] = None,
metric_log_retention_time: Optional[pulumi.Input[int]] = None,
part_log_retention_size: Optional[pulumi.Input[int]] = None,
part_log_retention_time: Optional[pulumi.Input[int]] = None,
query_log_retention_size: Optional[pulumi.Input[int]] = None,
query_log_retention_time: Optional[pulumi.Input[int]] = None,
query_thread_log_enabled: Optional[pulumi.Input[bool]] = None,
query_thread_log_retention_size: Optional[pulumi.Input[int]] = None,
query_thread_log_retention_time: Optional[pulumi.Input[int]] = None,
rabbitmq: Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigRabbitmqArgs']] = None,
text_log_enabled: Optional[pulumi.Input[bool]] = None,
text_log_level: Optional[pulumi.Input[str]] = None,
text_log_retention_size: Optional[pulumi.Input[int]] = None,
text_log_retention_time: Optional[pulumi.Input[int]] = None,
timezone: Optional[pulumi.Input[str]] = None,
trace_log_enabled: Optional[pulumi.Input[bool]] = None,
trace_log_retention_size: Optional[pulumi.Input[int]] = None,
trace_log_retention_time: Optional[pulumi.Input[int]] = None,
uncompressed_cache_size: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigCompressionArgs']]] compressions: Data compression configuration. The structure is documented below.
:param pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigGraphiteRollupArgs']]] graphite_rollups: Graphite rollup configuration. The structure is documented below.
:param pulumi.Input['MdbClickhouseClusterClickhouseConfigKafkaArgs'] kafka: Kafka connection configuration. The structure is documented below.
:param pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigKafkaTopicArgs']]] kafka_topics: Kafka topic connection configuration. The structure is documented below.
:param pulumi.Input['MdbClickhouseClusterClickhouseConfigMergeTreeArgs'] merge_tree: MergeTree engine configuration. The structure is documented below.
:param pulumi.Input['MdbClickhouseClusterClickhouseConfigRabbitmqArgs'] rabbitmq: RabbitMQ connection configuration. The structure is documented below.
"""
if background_pool_size is not None:
pulumi.set(__self__, "background_pool_size", background_pool_size)
if background_schedule_pool_size is not None:
pulumi.set(__self__, "background_schedule_pool_size", background_schedule_pool_size)
if compressions is not None:
pulumi.set(__self__, "compressions", compressions)
if geobase_uri is not None:
pulumi.set(__self__, "geobase_uri", geobase_uri)
if graphite_rollups is not None:
pulumi.set(__self__, "graphite_rollups", graphite_rollups)
if kafka is not None:
pulumi.set(__self__, "kafka", kafka)
if kafka_topics is not None:
pulumi.set(__self__, "kafka_topics", kafka_topics)
if keep_alive_timeout is not None:
pulumi.set(__self__, "keep_alive_timeout", keep_alive_timeout)
if log_level is not None:
pulumi.set(__self__, "log_level", log_level)
if mark_cache_size is not None:
pulumi.set(__self__, "mark_cache_size", mark_cache_size)
if max_concurrent_queries is not None:
pulumi.set(__self__, "max_concurrent_queries", max_concurrent_queries)
if max_connections is not None:
pulumi.set(__self__, "max_connections", max_connections)
if max_partition_size_to_drop is not None:
pulumi.set(__self__, "max_partition_size_to_drop", max_partition_size_to_drop)
if max_table_size_to_drop is not None:
pulumi.set(__self__, "max_table_size_to_drop", max_table_size_to_drop)
if merge_tree is not None:
pulumi.set(__self__, "merge_tree", merge_tree)
if metric_log_enabled is not None:
pulumi.set(__self__, "metric_log_enabled", metric_log_enabled)
if metric_log_retention_size is not None:
pulumi.set(__self__, "metric_log_retention_size", metric_log_retention_size)
if metric_log_retention_time is not None:
pulumi.set(__self__, "metric_log_retention_time", metric_log_retention_time)
if part_log_retention_size is not None:
pulumi.set(__self__, "part_log_retention_size", part_log_retention_size)
if part_log_retention_time is not None:
pulumi.set(__self__, "part_log_retention_time", part_log_retention_time)
if query_log_retention_size is not None:
pulumi.set(__self__, "query_log_retention_size", query_log_retention_size)
if query_log_retention_time is not None:
pulumi.set(__self__, "query_log_retention_time", query_log_retention_time)
if query_thread_log_enabled is not None:
pulumi.set(__self__, "query_thread_log_enabled", query_thread_log_enabled)
if query_thread_log_retention_size is not None:
pulumi.set(__self__, "query_thread_log_retention_size", query_thread_log_retention_size)
if query_thread_log_retention_time is not None:
pulumi.set(__self__, "query_thread_log_retention_time", query_thread_log_retention_time)
if rabbitmq is not None:
pulumi.set(__self__, "rabbitmq", rabbitmq)
if text_log_enabled is not None:
pulumi.set(__self__, "text_log_enabled", text_log_enabled)
if text_log_level is not None:
pulumi.set(__self__, "text_log_level", text_log_level)
if text_log_retention_size is not None:
pulumi.set(__self__, "text_log_retention_size", text_log_retention_size)
if text_log_retention_time is not None:
pulumi.set(__self__, "text_log_retention_time", text_log_retention_time)
if timezone is not None:
pulumi.set(__self__, "timezone", timezone)
if trace_log_enabled is not None:
pulumi.set(__self__, "trace_log_enabled", trace_log_enabled)
if trace_log_retention_size is not None:
pulumi.set(__self__, "trace_log_retention_size", trace_log_retention_size)
if trace_log_retention_time is not None:
pulumi.set(__self__, "trace_log_retention_time", trace_log_retention_time)
if uncompressed_cache_size is not None:
pulumi.set(__self__, "uncompressed_cache_size", uncompressed_cache_size)
@property
@pulumi.getter(name="backgroundPoolSize")
def background_pool_size(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "background_pool_size")
@background_pool_size.setter
def background_pool_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "background_pool_size", value)
@property
@pulumi.getter(name="backgroundSchedulePoolSize")
def background_schedule_pool_size(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "background_schedule_pool_size")
@background_schedule_pool_size.setter
def background_schedule_pool_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "background_schedule_pool_size", value)
@property
@pulumi.getter
def compressions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigCompressionArgs']]]]:
"""
Data compression configuration. The structure is documented below.
"""
return pulumi.get(self, "compressions")
@compressions.setter
def compressions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigCompressionArgs']]]]):
pulumi.set(self, "compressions", value)
@property
@pulumi.getter(name="geobaseUri")
def geobase_uri(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "geobase_uri")
@geobase_uri.setter
def geobase_uri(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "geobase_uri", value)
@property
@pulumi.getter(name="graphiteRollups")
def graphite_rollups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigGraphiteRollupArgs']]]]:
"""
Graphite rollup configuration. The structure is documented below.
"""
return pulumi.get(self, "graphite_rollups")
@graphite_rollups.setter
def graphite_rollups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigGraphiteRollupArgs']]]]):
pulumi.set(self, "graphite_rollups", value)
@property
@pulumi.getter
def kafka(self) -> Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigKafkaArgs']]:
"""
Kafka connection configuration. The structure is documented below.
"""
return pulumi.get(self, "kafka")
@kafka.setter
def kafka(self, value: Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigKafkaArgs']]):
pulumi.set(self, "kafka", value)
@property
@pulumi.getter(name="kafkaTopics")
def kafka_topics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigKafkaTopicArgs']]]]:
"""
Kafka topic connection configuration. The structure is documented below.
"""
return pulumi.get(self, "kafka_topics")
@kafka_topics.setter
def kafka_topics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigKafkaTopicArgs']]]]):
pulumi.set(self, "kafka_topics", value)
@property
@pulumi.getter(name="keepAliveTimeout")
def keep_alive_timeout(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "keep_alive_timeout")
@keep_alive_timeout.setter
def keep_alive_timeout(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "keep_alive_timeout", value)
@property
@pulumi.getter(name="logLevel")
def log_level(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "log_level")
@log_level.setter
def log_level(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "log_level", value)
@property
@pulumi.getter(name="markCacheSize")
def mark_cache_size(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "mark_cache_size")
@mark_cache_size.setter
def mark_cache_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "mark_cache_size", value)
@property
@pulumi.getter(name="maxConcurrentQueries")
def max_concurrent_queries(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "max_concurrent_queries")
@max_concurrent_queries.setter
def max_concurrent_queries(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_concurrent_queries", value)
@property
@pulumi.getter(name="maxConnections")
def max_connections(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "max_connections")
@max_connections.setter
def max_connections(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_connections", value)
@property
@pulumi.getter(name="maxPartitionSizeToDrop")
def max_partition_size_to_drop(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "max_partition_size_to_drop")
@max_partition_size_to_drop.setter
def max_partition_size_to_drop(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_partition_size_to_drop", value)
@property
@pulumi.getter(name="maxTableSizeToDrop")
def max_table_size_to_drop(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "max_table_size_to_drop")
@max_table_size_to_drop.setter
def max_table_size_to_drop(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_table_size_to_drop", value)
@property
@pulumi.getter(name="mergeTree")
def merge_tree(self) -> Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigMergeTreeArgs']]:
"""
MergeTree engine configuration. The structure is documented below.
"""
return pulumi.get(self, "merge_tree")
@merge_tree.setter
def merge_tree(self, value: Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigMergeTreeArgs']]):
pulumi.set(self, "merge_tree", value)
@property
@pulumi.getter(name="metricLogEnabled")
def metric_log_enabled(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "metric_log_enabled")
@metric_log_enabled.setter
def metric_log_enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "metric_log_enabled", value)
@property
@pulumi.getter(name="metricLogRetentionSize")
def metric_log_retention_size(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "metric_log_retention_size")
@metric_log_retention_size.setter
def metric_log_retention_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "metric_log_retention_size", value)
@property
@pulumi.getter(name="metricLogRetentionTime")
def metric_log_retention_time(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "metric_log_retention_time")
@metric_log_retention_time.setter
def metric_log_retention_time(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "metric_log_retention_time", value)
@property
@pulumi.getter(name="partLogRetentionSize")
def part_log_retention_size(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "part_log_retention_size")
@part_log_retention_size.setter
def part_log_retention_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "part_log_retention_size", value)
@property
@pulumi.getter(name="partLogRetentionTime")
def part_log_retention_time(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "part_log_retention_time")
@part_log_retention_time.setter
def part_log_retention_time(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "part_log_retention_time", value)
@property
@pulumi.getter(name="queryLogRetentionSize")
def query_log_retention_size(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "query_log_retention_size")
@query_log_retention_size.setter
def query_log_retention_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "query_log_retention_size", value)
@property
@pulumi.getter(name="queryLogRetentionTime")
def query_log_retention_time(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "query_log_retention_time")
@query_log_retention_time.setter
def query_log_retention_time(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "query_log_retention_time", value)
@property
@pulumi.getter(name="queryThreadLogEnabled")
def query_thread_log_enabled(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "query_thread_log_enabled")
@query_thread_log_enabled.setter
def query_thread_log_enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "query_thread_log_enabled", value)
@property
@pulumi.getter(name="queryThreadLogRetentionSize")
def query_thread_log_retention_size(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "query_thread_log_retention_size")
@query_thread_log_retention_size.setter
def query_thread_log_retention_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "query_thread_log_retention_size", value)
@property
@pulumi.getter(name="queryThreadLogRetentionTime")
def query_thread_log_retention_time(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "query_thread_log_retention_time")
@query_thread_log_retention_time.setter
def query_thread_log_retention_time(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "query_thread_log_retention_time", value)
@property
@pulumi.getter
def rabbitmq(self) -> Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigRabbitmqArgs']]:
"""
RabbitMQ connection configuration. The structure is documented below.
"""
return pulumi.get(self, "rabbitmq")
@rabbitmq.setter
def rabbitmq(self, value: Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigRabbitmqArgs']]):
pulumi.set(self, "rabbitmq", value)
@property
@pulumi.getter(name="textLogEnabled")
def text_log_enabled(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "text_log_enabled")
@text_log_enabled.setter
def text_log_enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "text_log_enabled", value)
@property
@pulumi.getter(name="textLogLevel")
def text_log_level(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "text_log_level")
@text_log_level.setter
def text_log_level(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "text_log_level", value)
@property
@pulumi.getter(name="textLogRetentionSize")
def text_log_retention_size(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "text_log_retention_size")
@text_log_retention_size.setter
def text_log_retention_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "text_log_retention_size", value)
@property
@pulumi.getter(name="textLogRetentionTime")
def text_log_retention_time(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "text_log_retention_time")
@text_log_retention_time.setter
def text_log_retention_time(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "text_log_retention_time", value)
@property
@pulumi.getter
def timezone(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "timezone")
@timezone.setter
def timezone(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "timezone", value)
@property
@pulumi.getter(name="traceLogEnabled")
def trace_log_enabled(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "trace_log_enabled")
@trace_log_enabled.setter
def trace_log_enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "trace_log_enabled", value)
@property
@pulumi.getter(name="traceLogRetentionSize")
def trace_log_retention_size(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "trace_log_retention_size")
@trace_log_retention_size.setter
def trace_log_retention_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "trace_log_retention_size", value)
@property
@pulumi.getter(name="traceLogRetentionTime")
def trace_log_retention_time(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "trace_log_retention_time")
@trace_log_retention_time.setter
def trace_log_retention_time(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "trace_log_retention_time", value)
@property
@pulumi.getter(name="uncompressedCacheSize")
def uncompressed_cache_size(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "uncompressed_cache_size")
@uncompressed_cache_size.setter
def uncompressed_cache_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "uncompressed_cache_size", value)
@pulumi.input_type
class MdbClickhouseClusterClickhouseConfigCompressionArgs:
def __init__(__self__, *,
method: pulumi.Input[str],
min_part_size: pulumi.Input[int],
min_part_size_ratio: pulumi.Input[float]):
"""
:param pulumi.Input[str] method: Method: Compression method. Two methods are available: LZ4 and zstd.
:param pulumi.Input[int] min_part_size: Min part size: Minimum size (in bytes) of a data part in a table. ClickHouse only applies the rule to tables with data parts greater than or equal to the Min part size value.
:param pulumi.Input[float] min_part_size_ratio: Min part size ratio: Minimum table part size to total table size ratio. ClickHouse only applies the rule to tables in which this ratio is greater than or equal to the Min part size ratio value.
"""
pulumi.set(__self__, "method", method)
pulumi.set(__self__, "min_part_size", min_part_size)
pulumi.set(__self__, "min_part_size_ratio", min_part_size_ratio)
@property
@pulumi.getter
def method(self) -> pulumi.Input[str]:
"""
Method: Compression method. Two methods are available: LZ4 and zstd.
"""
return pulumi.get(self, "method")
@method.setter
def method(self, value: pulumi.Input[str]):
pulumi.set(self, "method", value)
@property
@pulumi.getter(name="minPartSize")
def min_part_size(self) -> pulumi.Input[int]:
"""
Min part size: Minimum size (in bytes) of a data part in a table. ClickHouse only applies the rule to tables with data parts greater than or equal to the Min part size value.
"""
return pulumi.get(self, "min_part_size")
@min_part_size.setter
def min_part_size(self, value: pulumi.Input[int]):
pulumi.set(self, "min_part_size", value)
@property
@pulumi.getter(name="minPartSizeRatio")
def min_part_size_ratio(self) -> pulumi.Input[float]:
"""
Min part size ratio: Minimum table part size to total table size ratio. ClickHouse only applies the rule to tables in which this ratio is greater than or equal to the Min part size ratio value.
"""
return pulumi.get(self, "min_part_size_ratio")
@min_part_size_ratio.setter
def min_part_size_ratio(self, value: pulumi.Input[float]):
pulumi.set(self, "min_part_size_ratio", value)
@pulumi.input_type
class MdbClickhouseClusterClickhouseConfigGraphiteRollupArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
patterns: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigGraphiteRollupPatternArgs']]]] = None):
"""
:param pulumi.Input[str] name: Graphite rollup configuration name.
:param pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigGraphiteRollupPatternArgs']]] patterns: Set of thinning rules.
"""
pulumi.set(__self__, "name", name)
if patterns is not None:
pulumi.set(__self__, "patterns", patterns)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Graphite rollup configuration name.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def patterns(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigGraphiteRollupPatternArgs']]]]:
"""
Set of thinning rules.
"""
return pulumi.get(self, "patterns")
@patterns.setter
def patterns(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigGraphiteRollupPatternArgs']]]]):
pulumi.set(self, "patterns", value)
@pulumi.input_type
class MdbClickhouseClusterClickhouseConfigGraphiteRollupPatternArgs:
def __init__(__self__, *,
function: pulumi.Input[str],
regexp: Optional[pulumi.Input[str]] = None,
retentions: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigGraphiteRollupPatternRetentionArgs']]]] = None):
"""
:param pulumi.Input[str] function: Aggregation function name.
:param pulumi.Input[str] regexp: Regular expression that the metric name must match.
:param pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigGraphiteRollupPatternRetentionArgs']]] retentions: Retain parameters.
"""
pulumi.set(__self__, "function", function)
if regexp is not None:
pulumi.set(__self__, "regexp", regexp)
if retentions is not None:
pulumi.set(__self__, "retentions", retentions)
@property
@pulumi.getter
def function(self) -> pulumi.Input[str]:
"""
Aggregation function name.
"""
return pulumi.get(self, "function")
@function.setter
def function(self, value: pulumi.Input[str]):
pulumi.set(self, "function", value)
@property
@pulumi.getter
def regexp(self) -> Optional[pulumi.Input[str]]:
"""
Regular expression that the metric name must match.
"""
return pulumi.get(self, "regexp")
@regexp.setter
def regexp(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "regexp", value)
@property
@pulumi.getter
def retentions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigGraphiteRollupPatternRetentionArgs']]]]:
"""
Retain parameters.
"""
return pulumi.get(self, "retentions")
@retentions.setter
def retentions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterClickhouseConfigGraphiteRollupPatternRetentionArgs']]]]):
pulumi.set(self, "retentions", value)
@pulumi.input_type
class MdbClickhouseClusterClickhouseConfigGraphiteRollupPatternRetentionArgs:
def __init__(__self__, *,
age: pulumi.Input[int],
precision: pulumi.Input[int]):
"""
:param pulumi.Input[int] age: Minimum data age in seconds.
:param pulumi.Input[int] precision: Accuracy of determining the age of the data in seconds.
"""
pulumi.set(__self__, "age", age)
pulumi.set(__self__, "precision", precision)
@property
@pulumi.getter
def age(self) -> pulumi.Input[int]:
"""
Minimum data age in seconds.
"""
return pulumi.get(self, "age")
@age.setter
def age(self, value: pulumi.Input[int]):
pulumi.set(self, "age", value)
@property
@pulumi.getter
def precision(self) -> pulumi.Input[int]:
"""
Accuracy of determining the age of the data in seconds.
"""
return pulumi.get(self, "precision")
@precision.setter
def precision(self, value: pulumi.Input[int]):
pulumi.set(self, "precision", value)
@pulumi.input_type
class MdbClickhouseClusterClickhouseConfigKafkaArgs:
def __init__(__self__, *,
sasl_mechanism: Optional[pulumi.Input[str]] = None,
sasl_password: Optional[pulumi.Input[str]] = None,
sasl_username: Optional[pulumi.Input[str]] = None,
security_protocol: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] sasl_mechanism: SASL mechanism used in kafka authentication.
:param pulumi.Input[str] sasl_password: User password on kafka server.
:param pulumi.Input[str] sasl_username: Username on kafka server.
:param pulumi.Input[str] security_protocol: Security protocol used to connect to kafka server.
"""
if sasl_mechanism is not None:
pulumi.set(__self__, "sasl_mechanism", sasl_mechanism)
if sasl_password is not None:
pulumi.set(__self__, "sasl_password", sasl_password)
if sasl_username is not None:
pulumi.set(__self__, "sasl_username", sasl_username)
if security_protocol is not None:
pulumi.set(__self__, "security_protocol", security_protocol)
@property
@pulumi.getter(name="saslMechanism")
def sasl_mechanism(self) -> Optional[pulumi.Input[str]]:
"""
SASL mechanism used in kafka authentication.
"""
return pulumi.get(self, "sasl_mechanism")
@sasl_mechanism.setter
def sasl_mechanism(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sasl_mechanism", value)
@property
@pulumi.getter(name="saslPassword")
def sasl_password(self) -> Optional[pulumi.Input[str]]:
"""
User password on kafka server.
"""
return pulumi.get(self, "sasl_password")
@sasl_password.setter
def sasl_password(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sasl_password", value)
@property
@pulumi.getter(name="saslUsername")
def sasl_username(self) -> Optional[pulumi.Input[str]]:
"""
Username on kafka server.
"""
return pulumi.get(self, "sasl_username")
@sasl_username.setter
def sasl_username(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sasl_username", value)
@property
@pulumi.getter(name="securityProtocol")
def security_protocol(self) -> Optional[pulumi.Input[str]]:
"""
Security protocol used to connect to kafka server.
"""
return pulumi.get(self, "security_protocol")
@security_protocol.setter
def security_protocol(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "security_protocol", value)
@pulumi.input_type
class MdbClickhouseClusterClickhouseConfigKafkaTopicArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
settings: Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigKafkaTopicSettingsArgs']] = None):
"""
:param pulumi.Input[str] name: Graphite rollup configuration name.
:param pulumi.Input['MdbClickhouseClusterClickhouseConfigKafkaTopicSettingsArgs'] settings: Kafka connection settngs sanem as `kafka` block.
"""
pulumi.set(__self__, "name", name)
if settings is not None:
pulumi.set(__self__, "settings", settings)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Graphite rollup configuration name.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def settings(self) -> Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigKafkaTopicSettingsArgs']]:
"""
Kafka connection settngs sanem as `kafka` block.
"""
return pulumi.get(self, "settings")
@settings.setter
def settings(self, value: Optional[pulumi.Input['MdbClickhouseClusterClickhouseConfigKafkaTopicSettingsArgs']]):
pulumi.set(self, "settings", value)
@pulumi.input_type
class MdbClickhouseClusterClickhouseConfigKafkaTopicSettingsArgs:
def __init__(__self__, *,
sasl_mechanism: Optional[pulumi.Input[str]] = None,
sasl_password: Optional[pulumi.Input[str]] = None,
sasl_username: Optional[pulumi.Input[str]] = None,
security_protocol: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] sasl_mechanism: SASL mechanism used in kafka authentication.
:param pulumi.Input[str] sasl_password: User password on kafka server.
:param pulumi.Input[str] sasl_username: Username on kafka server.
:param pulumi.Input[str] security_protocol: Security protocol used to connect to kafka server.
"""
if sasl_mechanism is not None:
pulumi.set(__self__, "sasl_mechanism", sasl_mechanism)
if sasl_password is not None:
pulumi.set(__self__, "sasl_password", sasl_password)
if sasl_username is not None:
pulumi.set(__self__, "sasl_username", sasl_username)
if security_protocol is not None:
pulumi.set(__self__, "security_protocol", security_protocol)
@property
@pulumi.getter(name="saslMechanism")
def sasl_mechanism(self) -> Optional[pulumi.Input[str]]:
"""
SASL mechanism used in kafka authentication.
"""
return pulumi.get(self, "sasl_mechanism")
@sasl_mechanism.setter
def sasl_mechanism(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sasl_mechanism", value)
@property
@pulumi.getter(name="saslPassword")
def sasl_password(self) -> Optional[pulumi.Input[str]]:
"""
User password on kafka server.
"""
return pulumi.get(self, "sasl_password")
@sasl_password.setter
def sasl_password(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sasl_password", value)
@property
@pulumi.getter(name="saslUsername")
def sasl_username(self) -> Optional[pulumi.Input[str]]:
"""
Username on kafka server.
"""
return pulumi.get(self, "sasl_username")
@sasl_username.setter
def sasl_username(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sasl_username", value)
@property
@pulumi.getter(name="securityProtocol")
def security_protocol(self) -> Optional[pulumi.Input[str]]:
"""
Security protocol used to connect to kafka server.
"""
return pulumi.get(self, "security_protocol")
@security_protocol.setter
def security_protocol(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "security_protocol", value)
@pulumi.input_type
class MdbClickhouseClusterClickhouseConfigMergeTreeArgs:
def __init__(__self__, *,
max_bytes_to_merge_at_min_space_in_pool: Optional[pulumi.Input[int]] = None,
max_replicated_merges_in_queue: Optional[pulumi.Input[int]] = None,
number_of_free_entries_in_pool_to_lower_max_size_of_merge: Optional[pulumi.Input[int]] = None,
parts_to_delay_insert: Optional[pulumi.Input[int]] = None,
parts_to_throw_insert: Optional[pulumi.Input[int]] = None,
replicated_deduplication_window: Optional[pulumi.Input[int]] = None,
replicated_deduplication_window_seconds: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] max_bytes_to_merge_at_min_space_in_pool: Max bytes to merge at min space in pool: Maximum total size of a data part to merge when the number of free threads in the background pool is minimum.
:param pulumi.Input[int] max_replicated_merges_in_queue: Max replicated merges in queue: Maximum number of merge tasks that can be in the ReplicatedMergeTree queue at the same time.
:param pulumi.Input[int] number_of_free_entries_in_pool_to_lower_max_size_of_merge: Number of free entries in pool to lower max size of merge: Threshold value of free entries in the pool. If the number of entries in the pool falls below this value, ClickHouse reduces the maximum size of a data part to merge. This helps handle small merges faster, rather than filling the pool with lengthy merges.
:param pulumi.Input[int] parts_to_delay_insert: Parts to delay insert: Number of active data parts in a table, on exceeding which ClickHouse starts artificially reduce the rate of inserting data into the table.
:param pulumi.Input[int] parts_to_throw_insert: Parts to throw insert: Threshold value of active data parts in a table, on exceeding which ClickHouse throws the 'Too many parts ...' exception.
:param pulumi.Input[int] replicated_deduplication_window: Replicated deduplication window: Number of recent hash blocks that ZooKeeper will store (the old ones will be deleted).
:param pulumi.Input[int] replicated_deduplication_window_seconds: Replicated deduplication window seconds: Time during which ZooKeeper stores the hash blocks (the old ones wil be deleted).
"""
if max_bytes_to_merge_at_min_space_in_pool is not None:
pulumi.set(__self__, "max_bytes_to_merge_at_min_space_in_pool", max_bytes_to_merge_at_min_space_in_pool)
if max_replicated_merges_in_queue is not None:
pulumi.set(__self__, "max_replicated_merges_in_queue", max_replicated_merges_in_queue)
if number_of_free_entries_in_pool_to_lower_max_size_of_merge is not None:
pulumi.set(__self__, "number_of_free_entries_in_pool_to_lower_max_size_of_merge", number_of_free_entries_in_pool_to_lower_max_size_of_merge)
if parts_to_delay_insert is not None:
pulumi.set(__self__, "parts_to_delay_insert", parts_to_delay_insert)
if parts_to_throw_insert is not None:
pulumi.set(__self__, "parts_to_throw_insert", parts_to_throw_insert)
if replicated_deduplication_window is not None:
pulumi.set(__self__, "replicated_deduplication_window", replicated_deduplication_window)
if replicated_deduplication_window_seconds is not None:
pulumi.set(__self__, "replicated_deduplication_window_seconds", replicated_deduplication_window_seconds)
@property
@pulumi.getter(name="maxBytesToMergeAtMinSpaceInPool")
def max_bytes_to_merge_at_min_space_in_pool(self) -> Optional[pulumi.Input[int]]:
"""
Max bytes to merge at min space in pool: Maximum total size of a data part to merge when the number of free threads in the background pool is minimum.
"""
return pulumi.get(self, "max_bytes_to_merge_at_min_space_in_pool")
@max_bytes_to_merge_at_min_space_in_pool.setter
def max_bytes_to_merge_at_min_space_in_pool(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_bytes_to_merge_at_min_space_in_pool", value)
@property
@pulumi.getter(name="maxReplicatedMergesInQueue")
def max_replicated_merges_in_queue(self) -> Optional[pulumi.Input[int]]:
"""
Max replicated merges in queue: Maximum number of merge tasks that can be in the ReplicatedMergeTree queue at the same time.
"""
return pulumi.get(self, "max_replicated_merges_in_queue")
@max_replicated_merges_in_queue.setter
def max_replicated_merges_in_queue(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_replicated_merges_in_queue", value)
@property
@pulumi.getter(name="numberOfFreeEntriesInPoolToLowerMaxSizeOfMerge")
def number_of_free_entries_in_pool_to_lower_max_size_of_merge(self) -> Optional[pulumi.Input[int]]:
"""
Number of free entries in pool to lower max size of merge: Threshold value of free entries in the pool. If the number of entries in the pool falls below this value, ClickHouse reduces the maximum size of a data part to merge. This helps handle small merges faster, rather than filling the pool with lengthy merges.
"""
return pulumi.get(self, "number_of_free_entries_in_pool_to_lower_max_size_of_merge")
@number_of_free_entries_in_pool_to_lower_max_size_of_merge.setter
def number_of_free_entries_in_pool_to_lower_max_size_of_merge(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "number_of_free_entries_in_pool_to_lower_max_size_of_merge", value)
@property
@pulumi.getter(name="partsToDelayInsert")
def parts_to_delay_insert(self) -> Optional[pulumi.Input[int]]:
"""
Parts to delay insert: Number of active data parts in a table, on exceeding which ClickHouse starts artificially reduce the rate of inserting data into the table.
"""
return pulumi.get(self, "parts_to_delay_insert")
@parts_to_delay_insert.setter
def parts_to_delay_insert(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "parts_to_delay_insert", value)
@property
@pulumi.getter(name="partsToThrowInsert")
def parts_to_throw_insert(self) -> Optional[pulumi.Input[int]]:
"""
Parts to throw insert: Threshold value of active data parts in a table, on exceeding which ClickHouse throws the 'Too many parts ...' exception.
"""
return pulumi.get(self, "parts_to_throw_insert")
@parts_to_throw_insert.setter
def parts_to_throw_insert(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "parts_to_throw_insert", value)
@property
@pulumi.getter(name="replicatedDeduplicationWindow")
def replicated_deduplication_window(self) -> Optional[pulumi.Input[int]]:
"""
Replicated deduplication window: Number of recent hash blocks that ZooKeeper will store (the old ones will be deleted).
"""
return pulumi.get(self, "replicated_deduplication_window")
@replicated_deduplication_window.setter
def replicated_deduplication_window(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "replicated_deduplication_window", value)
@property
@pulumi.getter(name="replicatedDeduplicationWindowSeconds")
def replicated_deduplication_window_seconds(self) -> Optional[pulumi.Input[int]]:
"""
Replicated deduplication window seconds: Time during which ZooKeeper stores the hash blocks (the old ones wil be deleted).
"""
return pulumi.get(self, "replicated_deduplication_window_seconds")
@replicated_deduplication_window_seconds.setter
def replicated_deduplication_window_seconds(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "replicated_deduplication_window_seconds", value)
@pulumi.input_type
class MdbClickhouseClusterClickhouseConfigRabbitmqArgs:
def __init__(__self__, *,
password: Optional[pulumi.Input[str]] = None,
username: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] password: RabbitMQ user password.
:param pulumi.Input[str] username: RabbitMQ username.
"""
if password is not None:
pulumi.set(__self__, "password", password)
if username is not None:
pulumi.set(__self__, "username", username)
@property
@pulumi.getter
def password(self) -> Optional[pulumi.Input[str]]:
"""
RabbitMQ user password.
"""
return pulumi.get(self, "password")
@password.setter
def password(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "password", value)
@property
@pulumi.getter
def username(self) -> Optional[pulumi.Input[str]]:
"""
RabbitMQ username.
"""
return pulumi.get(self, "username")
@username.setter
def username(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "username", value)
@pulumi.input_type
class MdbClickhouseClusterClickhouseResourcesArgs:
def __init__(__self__, *,
disk_size: pulumi.Input[int],
disk_type_id: pulumi.Input[str],
resource_preset_id: pulumi.Input[str]):
"""
:param pulumi.Input[int] disk_size: Volume of the storage available to a ZooKeeper host, in gigabytes.
:param pulumi.Input[str] disk_type_id: Type of the storage of ZooKeeper hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-clickhouse/concepts/storage).
"""
pulumi.set(__self__, "disk_size", disk_size)
pulumi.set(__self__, "disk_type_id", disk_type_id)
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> pulumi.Input[int]:
"""
Volume of the storage available to a ZooKeeper host, in gigabytes.
"""
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: pulumi.Input[int]):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> pulumi.Input[str]:
"""
Type of the storage of ZooKeeper hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-clickhouse/concepts/storage).
"""
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: pulumi.Input[str]):
pulumi.set(self, "disk_type_id", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_preset_id", value)
@pulumi.input_type
class MdbClickhouseClusterCloudStorageArgs:
def __init__(__self__, *,
enabled: pulumi.Input[bool]):
"""
:param pulumi.Input[bool] enabled: Whether to use Yandex Object Storage for storing ClickHouse data. Can be either `true` or `false`.
"""
pulumi.set(__self__, "enabled", enabled)
@property
@pulumi.getter
def enabled(self) -> pulumi.Input[bool]:
"""
Whether to use Yandex Object Storage for storing ClickHouse data. Can be either `true` or `false`.
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: pulumi.Input[bool]):
pulumi.set(self, "enabled", value)
@pulumi.input_type
class MdbClickhouseClusterDatabaseArgs:
def __init__(__self__, *,
name: pulumi.Input[str]):
"""
:param pulumi.Input[str] name: Graphite rollup configuration name.
"""
pulumi.set(__self__, "name", name)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Graphite rollup configuration name.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@pulumi.input_type
class MdbClickhouseClusterFormatSchemaArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
type: pulumi.Input[str],
uri: pulumi.Input[str]):
"""
:param pulumi.Input[str] name: Graphite rollup configuration name.
:param pulumi.Input[str] type: Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
:param pulumi.Input[str] uri: Model file URL. You can only use models stored in Yandex Object Storage.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "type", type)
pulumi.set(__self__, "uri", uri)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Graphite rollup configuration name.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter
def uri(self) -> pulumi.Input[str]:
"""
Model file URL. You can only use models stored in Yandex Object Storage.
"""
return pulumi.get(self, "uri")
@uri.setter
def uri(self, value: pulumi.Input[str]):
pulumi.set(self, "uri", value)
@pulumi.input_type
class MdbClickhouseClusterHostArgs:
def __init__(__self__, *,
type: pulumi.Input[str],
zone: pulumi.Input[str],
assign_public_ip: Optional[pulumi.Input[bool]] = None,
fqdn: Optional[pulumi.Input[str]] = None,
shard_name: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] type: Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
:param pulumi.Input[str] zone: The availability zone where the ClickHouse host will be created.
For more information see [the official documentation](https://cloud.yandex.com/docs/overview/concepts/geo-scope).
:param pulumi.Input[bool] assign_public_ip: Sets whether the host should get a public IP address on creation. Can be either `true` or `false`.
:param pulumi.Input[str] fqdn: The fully qualified domain name of the host.
:param pulumi.Input[str] shard_name: The name of the shard to which the host belongs.
:param pulumi.Input[str] subnet_id: The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
"""
pulumi.set(__self__, "type", type)
pulumi.set(__self__, "zone", zone)
if assign_public_ip is not None:
pulumi.set(__self__, "assign_public_ip", assign_public_ip)
if fqdn is not None:
pulumi.set(__self__, "fqdn", fqdn)
if shard_name is not None:
pulumi.set(__self__, "shard_name", shard_name)
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter
def zone(self) -> pulumi.Input[str]:
"""
The availability zone where the ClickHouse host will be created.
For more information see [the official documentation](https://cloud.yandex.com/docs/overview/concepts/geo-scope).
"""
return pulumi.get(self, "zone")
@zone.setter
def zone(self, value: pulumi.Input[str]):
pulumi.set(self, "zone", value)
@property
@pulumi.getter(name="assignPublicIp")
def assign_public_ip(self) -> Optional[pulumi.Input[bool]]:
"""
Sets whether the host should get a public IP address on creation. Can be either `true` or `false`.
"""
return pulumi.get(self, "assign_public_ip")
@assign_public_ip.setter
def assign_public_ip(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "assign_public_ip", value)
@property
@pulumi.getter
def fqdn(self) -> Optional[pulumi.Input[str]]:
"""
The fully qualified domain name of the host.
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "fqdn", value)
@property
@pulumi.getter(name="shardName")
def shard_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the shard to which the host belongs.
"""
return pulumi.get(self, "shard_name")
@shard_name.setter
def shard_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "shard_name", value)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subnet_id", value)
@pulumi.input_type
class MdbClickhouseClusterMaintenanceWindowArgs:
def __init__(__self__, *,
type: pulumi.Input[str],
day: Optional[pulumi.Input[str]] = None,
hour: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] type: Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
:param pulumi.Input[str] day: Day of week for maintenance window if window type is weekly. Possible values: `MON`, `TUE`, `WED`, `THU`, `FRI`, `SAT`, `SUN`.
:param pulumi.Input[int] hour: Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
"""
pulumi.set(__self__, "type", type)
if day is not None:
pulumi.set(__self__, "day", day)
if hour is not None:
pulumi.set(__self__, "hour", hour)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter
def day(self) -> Optional[pulumi.Input[str]]:
"""
Day of week for maintenance window if window type is weekly. Possible values: `MON`, `TUE`, `WED`, `THU`, `FRI`, `SAT`, `SUN`.
"""
return pulumi.get(self, "day")
@day.setter
def day(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "day", value)
@property
@pulumi.getter
def hour(self) -> Optional[pulumi.Input[int]]:
"""
Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
"""
return pulumi.get(self, "hour")
@hour.setter
def hour(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "hour", value)
@pulumi.input_type
class MdbClickhouseClusterMlModelArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
type: pulumi.Input[str],
uri: pulumi.Input[str]):
"""
:param pulumi.Input[str] name: Graphite rollup configuration name.
:param pulumi.Input[str] type: Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
:param pulumi.Input[str] uri: Model file URL. You can only use models stored in Yandex Object Storage.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "type", type)
pulumi.set(__self__, "uri", uri)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Graphite rollup configuration name.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter
def uri(self) -> pulumi.Input[str]:
"""
Model file URL. You can only use models stored in Yandex Object Storage.
"""
return pulumi.get(self, "uri")
@uri.setter
def uri(self, value: pulumi.Input[str]):
pulumi.set(self, "uri", value)
@pulumi.input_type
class MdbClickhouseClusterShardGroupArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
shard_names: pulumi.Input[Sequence[pulumi.Input[str]]],
description: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] name: Graphite rollup configuration name.
:param pulumi.Input[Sequence[pulumi.Input[str]]] shard_names: List of shards names that belong to the shard group.
:param pulumi.Input[str] description: Description of the shard group.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "shard_names", shard_names)
if description is not None:
pulumi.set(__self__, "description", description)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Graphite rollup configuration name.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="shardNames")
def shard_names(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
List of shards names that belong to the shard group.
"""
return pulumi.get(self, "shard_names")
@shard_names.setter
def shard_names(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "shard_names", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
Description of the shard group.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@pulumi.input_type
class MdbClickhouseClusterUserArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
password: pulumi.Input[str],
permissions: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterUserPermissionArgs']]]] = None,
quotas: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterUserQuotaArgs']]]] = None,
settings: Optional[pulumi.Input['MdbClickhouseClusterUserSettingsArgs']] = None):
"""
:param pulumi.Input[str] name: Graphite rollup configuration name.
:param pulumi.Input[str] password: RabbitMQ user password.
:param pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterUserPermissionArgs']]] permissions: Set of permissions granted to the user. The structure is documented below.
:param pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterUserQuotaArgs']]] quotas: Set of user quotas. The structure is documented below.
:param pulumi.Input['MdbClickhouseClusterUserSettingsArgs'] settings: Kafka connection settngs sanem as `kafka` block.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "password", password)
if permissions is not None:
pulumi.set(__self__, "permissions", permissions)
if quotas is not None:
pulumi.set(__self__, "quotas", quotas)
if settings is not None:
pulumi.set(__self__, "settings", settings)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Graphite rollup configuration name.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def password(self) -> pulumi.Input[str]:
"""
RabbitMQ user password.
"""
return pulumi.get(self, "password")
@password.setter
def password(self, value: pulumi.Input[str]):
pulumi.set(self, "password", value)
@property
@pulumi.getter
def permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterUserPermissionArgs']]]]:
"""
Set of permissions granted to the user. The structure is documented below.
"""
return pulumi.get(self, "permissions")
@permissions.setter
def permissions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterUserPermissionArgs']]]]):
pulumi.set(self, "permissions", value)
@property
@pulumi.getter
def quotas(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterUserQuotaArgs']]]]:
"""
Set of user quotas. The structure is documented below.
"""
return pulumi.get(self, "quotas")
@quotas.setter
def quotas(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MdbClickhouseClusterUserQuotaArgs']]]]):
pulumi.set(self, "quotas", value)
@property
@pulumi.getter
def settings(self) -> Optional[pulumi.Input['MdbClickhouseClusterUserSettingsArgs']]:
"""
Kafka connection settngs sanem as `kafka` block.
"""
return pulumi.get(self, "settings")
@settings.setter
def settings(self, value: Optional[pulumi.Input['MdbClickhouseClusterUserSettingsArgs']]):
pulumi.set(self, "settings", value)
@pulumi.input_type
class MdbClickhouseClusterUserPermissionArgs:
def __init__(__self__, *,
database_name: pulumi.Input[str]):
"""
:param pulumi.Input[str] database_name: The name of the database that the permission grants access to.
"""
pulumi.set(__self__, "database_name", database_name)
@property
@pulumi.getter(name="databaseName")
def database_name(self) -> pulumi.Input[str]:
"""
The name of the database that the permission grants access to.
"""
return pulumi.get(self, "database_name")
@database_name.setter
def database_name(self, value: pulumi.Input[str]):
pulumi.set(self, "database_name", value)
@pulumi.input_type
class MdbClickhouseClusterUserQuotaArgs:
def __init__(__self__, *,
interval_duration: pulumi.Input[int],
errors: Optional[pulumi.Input[int]] = None,
execution_time: Optional[pulumi.Input[int]] = None,
queries: Optional[pulumi.Input[int]] = None,
read_rows: Optional[pulumi.Input[int]] = None,
result_rows: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] interval_duration: Duration of interval for quota in milliseconds.
:param pulumi.Input[int] errors: The number of queries that threw exception.
:param pulumi.Input[int] execution_time: The total query execution time, in milliseconds (wall time).
:param pulumi.Input[int] queries: The total number of queries.
:param pulumi.Input[int] read_rows: The total number of source rows read from tables for running the query, on all remote servers.
:param pulumi.Input[int] result_rows: The total number of rows given as the result.
"""
pulumi.set(__self__, "interval_duration", interval_duration)
if errors is not None:
pulumi.set(__self__, "errors", errors)
if execution_time is not None:
pulumi.set(__self__, "execution_time", execution_time)
if queries is not None:
pulumi.set(__self__, "queries", queries)
if read_rows is not None:
pulumi.set(__self__, "read_rows", read_rows)
if result_rows is not None:
pulumi.set(__self__, "result_rows", result_rows)
@property
@pulumi.getter(name="intervalDuration")
def interval_duration(self) -> pulumi.Input[int]:
"""
Duration of interval for quota in milliseconds.
"""
return pulumi.get(self, "interval_duration")
@interval_duration.setter
def interval_duration(self, value: pulumi.Input[int]):
pulumi.set(self, "interval_duration", value)
@property
@pulumi.getter
def errors(self) -> Optional[pulumi.Input[int]]:
"""
The number of queries that threw exception.
"""
return pulumi.get(self, "errors")
@errors.setter
def errors(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "errors", value)
@property
@pulumi.getter(name="executionTime")
def execution_time(self) -> Optional[pulumi.Input[int]]:
"""
The total query execution time, in milliseconds (wall time).
"""
return pulumi.get(self, "execution_time")
@execution_time.setter
def execution_time(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "execution_time", value)
@property
@pulumi.getter
def queries(self) -> Optional[pulumi.Input[int]]:
"""
The total number of queries.
"""
return pulumi.get(self, "queries")
@queries.setter
def queries(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "queries", value)
@property
@pulumi.getter(name="readRows")
def read_rows(self) -> Optional[pulumi.Input[int]]:
"""
The total number of source rows read from tables for running the query, on all remote servers.
"""
return pulumi.get(self, "read_rows")
@read_rows.setter
def read_rows(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "read_rows", value)
@property
@pulumi.getter(name="resultRows")
def result_rows(self) -> Optional[pulumi.Input[int]]:
"""
The total number of rows given as the result.
"""
return pulumi.get(self, "result_rows")
@result_rows.setter
def result_rows(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "result_rows", value)
@pulumi.input_type
class MdbClickhouseClusterUserSettingsArgs:
def __init__(__self__, *,
add_http_cors_header: Optional[pulumi.Input[bool]] = None,
allow_ddl: Optional[pulumi.Input[bool]] = None,
compile: Optional[pulumi.Input[bool]] = None,
compile_expressions: Optional[pulumi.Input[bool]] = None,
connect_timeout: Optional[pulumi.Input[int]] = None,
count_distinct_implementation: Optional[pulumi.Input[str]] = None,
distinct_overflow_mode: Optional[pulumi.Input[str]] = None,
distributed_aggregation_memory_efficient: Optional[pulumi.Input[bool]] = None,
distributed_ddl_task_timeout: Optional[pulumi.Input[int]] = None,
distributed_product_mode: Optional[pulumi.Input[str]] = None,
empty_result_for_aggregation_by_empty_set: Optional[pulumi.Input[bool]] = None,
enable_http_compression: Optional[pulumi.Input[bool]] = None,
fallback_to_stale_replicas_for_distributed_queries: Optional[pulumi.Input[bool]] = None,
force_index_by_date: Optional[pulumi.Input[bool]] = None,
force_primary_key: Optional[pulumi.Input[bool]] = None,
group_by_overflow_mode: Optional[pulumi.Input[str]] = None,
group_by_two_level_threshold: Optional[pulumi.Input[int]] = None,
group_by_two_level_threshold_bytes: Optional[pulumi.Input[int]] = None,
http_connection_timeout: Optional[pulumi.Input[int]] = None,
http_headers_progress_interval: Optional[pulumi.Input[int]] = None,
http_receive_timeout: Optional[pulumi.Input[int]] = None,
http_send_timeout: Optional[pulumi.Input[int]] = None,
input_format_defaults_for_omitted_fields: Optional[pulumi.Input[bool]] = None,
input_format_values_interpret_expressions: Optional[pulumi.Input[bool]] = None,
insert_quorum: Optional[pulumi.Input[int]] = None,
insert_quorum_timeout: Optional[pulumi.Input[int]] = None,
join_overflow_mode: Optional[pulumi.Input[str]] = None,
join_use_nulls: Optional[pulumi.Input[bool]] = None,
joined_subquery_requires_alias: Optional[pulumi.Input[bool]] = None,
low_cardinality_allow_in_native_format: Optional[pulumi.Input[bool]] = None,
max_ast_depth: Optional[pulumi.Input[int]] = None,
max_ast_elements: Optional[pulumi.Input[int]] = None,
max_block_size: Optional[pulumi.Input[int]] = None,
max_bytes_before_external_group_by: Optional[pulumi.Input[int]] = None,
max_bytes_before_external_sort: Optional[pulumi.Input[int]] = None,
max_bytes_in_distinct: Optional[pulumi.Input[int]] = None,
max_bytes_in_join: Optional[pulumi.Input[int]] = None,
max_bytes_in_set: Optional[pulumi.Input[int]] = None,
max_bytes_to_read: Optional[pulumi.Input[int]] = None,
max_bytes_to_sort: Optional[pulumi.Input[int]] = None,
max_bytes_to_transfer: Optional[pulumi.Input[int]] = None,
max_columns_to_read: Optional[pulumi.Input[int]] = None,
max_execution_time: Optional[pulumi.Input[int]] = None,
max_expanded_ast_elements: Optional[pulumi.Input[int]] = None,
max_insert_block_size: Optional[pulumi.Input[int]] = None,
max_memory_usage: Optional[pulumi.Input[int]] = None,
max_memory_usage_for_user: Optional[pulumi.Input[int]] = None,
max_network_bandwidth: Optional[pulumi.Input[int]] = None,
max_network_bandwidth_for_user: Optional[pulumi.Input[int]] = None,
max_query_size: Optional[pulumi.Input[int]] = None,
max_replica_delay_for_distributed_queries: Optional[pulumi.Input[int]] = None,
max_result_bytes: Optional[pulumi.Input[int]] = None,
max_result_rows: Optional[pulumi.Input[int]] = None,
max_rows_in_distinct: Optional[pulumi.Input[int]] = None,
max_rows_in_join: Optional[pulumi.Input[int]] = None,
max_rows_in_set: Optional[pulumi.Input[int]] = None,
max_rows_to_group_by: Optional[pulumi.Input[int]] = None,
max_rows_to_read: Optional[pulumi.Input[int]] = None,
max_rows_to_sort: Optional[pulumi.Input[int]] = None,
max_rows_to_transfer: Optional[pulumi.Input[int]] = None,
max_temporary_columns: Optional[pulumi.Input[int]] = None,
max_temporary_non_const_columns: Optional[pulumi.Input[int]] = None,
max_threads: Optional[pulumi.Input[int]] = None,
merge_tree_max_bytes_to_use_cache: Optional[pulumi.Input[int]] = None,
merge_tree_max_rows_to_use_cache: Optional[pulumi.Input[int]] = None,
merge_tree_min_bytes_for_concurrent_read: Optional[pulumi.Input[int]] = None,
merge_tree_min_rows_for_concurrent_read: Optional[pulumi.Input[int]] = None,
min_bytes_to_use_direct_io: Optional[pulumi.Input[int]] = None,
min_count_to_compile: Optional[pulumi.Input[int]] = None,
min_count_to_compile_expression: Optional[pulumi.Input[int]] = None,
min_execution_speed: Optional[pulumi.Input[int]] = None,
min_execution_speed_bytes: Optional[pulumi.Input[int]] = None,
min_insert_block_size_bytes: Optional[pulumi.Input[int]] = None,
min_insert_block_size_rows: Optional[pulumi.Input[int]] = None,
output_format_json_quote64bit_integers: Optional[pulumi.Input[bool]] = None,
output_format_json_quote_denormals: Optional[pulumi.Input[bool]] = None,
priority: Optional[pulumi.Input[int]] = None,
quota_mode: Optional[pulumi.Input[str]] = None,
read_overflow_mode: Optional[pulumi.Input[str]] = None,
readonly: Optional[pulumi.Input[int]] = None,
receive_timeout: Optional[pulumi.Input[int]] = None,
replication_alter_partitions_sync: Optional[pulumi.Input[int]] = None,
result_overflow_mode: Optional[pulumi.Input[str]] = None,
select_sequential_consistency: Optional[pulumi.Input[bool]] = None,
send_progress_in_http_headers: Optional[pulumi.Input[bool]] = None,
send_timeout: Optional[pulumi.Input[int]] = None,
set_overflow_mode: Optional[pulumi.Input[str]] = None,
skip_unavailable_shards: Optional[pulumi.Input[bool]] = None,
sort_overflow_mode: Optional[pulumi.Input[str]] = None,
timeout_overflow_mode: Optional[pulumi.Input[str]] = None,
transfer_overflow_mode: Optional[pulumi.Input[str]] = None,
transform_null_in: Optional[pulumi.Input[bool]] = None,
use_uncompressed_cache: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[bool] add_http_cors_header: Include CORS headers in HTTP responces.
:param pulumi.Input[bool] allow_ddl: Allows or denies DDL queries.
:param pulumi.Input[bool] compile: Enable compilation of queries.
:param pulumi.Input[bool] compile_expressions: Turn on expression compilation.
:param pulumi.Input[int] connect_timeout: Connect timeout in milliseconds on the socket used for communicating with the client.
:param pulumi.Input[str] count_distinct_implementation: Specifies which of the uniq* functions should be used to perform the COUNT(DISTINCT …) construction.
:param pulumi.Input[str] distinct_overflow_mode: Sets behaviour on overflow when using DISTINCT. Possible values:
:param pulumi.Input[bool] distributed_aggregation_memory_efficient: Determine the behavior of distributed subqueries.
:param pulumi.Input[int] distributed_ddl_task_timeout: Timeout for DDL queries, in milliseconds.
:param pulumi.Input[str] distributed_product_mode: Changes the behaviour of distributed subqueries.
:param pulumi.Input[bool] empty_result_for_aggregation_by_empty_set: Allows to retunr empty result.
:param pulumi.Input[bool] enable_http_compression: Enables or disables data compression in the response to an HTTP request.
:param pulumi.Input[bool] fallback_to_stale_replicas_for_distributed_queries: Forces a query to an out-of-date replica if updated data is not available.
:param pulumi.Input[bool] force_index_by_date: Disables query execution if the index can’t be used by date.
:param pulumi.Input[bool] force_primary_key: Disables query execution if indexing by the primary key is not possible.
:param pulumi.Input[str] group_by_overflow_mode: Sets behaviour on overflow while GROUP BY operation. Possible values:
:param pulumi.Input[int] group_by_two_level_threshold: Sets the threshold of the number of keys, after that the two-level aggregation should be used.
:param pulumi.Input[int] group_by_two_level_threshold_bytes: Sets the threshold of the number of bytes, after that the two-level aggregation should be used.
:param pulumi.Input[int] http_connection_timeout: Timeout for HTTP connection in milliseconds.
:param pulumi.Input[int] http_headers_progress_interval: Sets minimal interval between notifications about request process in HTTP header X-ClickHouse-Progress.
:param pulumi.Input[int] http_receive_timeout: Timeout for HTTP connection in milliseconds.
:param pulumi.Input[int] http_send_timeout: Timeout for HTTP connection in milliseconds.
:param pulumi.Input[bool] input_format_defaults_for_omitted_fields: When performing INSERT queries, replace omitted input column values with default values of the respective columns.
:param pulumi.Input[bool] input_format_values_interpret_expressions: Enables or disables the full SQL parser if the fast stream parser can’t parse the data.
:param pulumi.Input[int] insert_quorum: Enables the quorum writes.
:param pulumi.Input[int] insert_quorum_timeout: Write to a quorum timeout in milliseconds.
:param pulumi.Input[str] join_overflow_mode: Sets behaviour on overflow in JOIN. Possible values:
:param pulumi.Input[bool] join_use_nulls: Sets the type of JOIN behaviour. When merging tables, empty cells may appear. ClickHouse fills them differently based on this setting.
:param pulumi.Input[bool] joined_subquery_requires_alias: Require aliases for subselects and table functions in FROM that more than one table is present.
:param pulumi.Input[bool] low_cardinality_allow_in_native_format: Allows or restricts using the LowCardinality data type with the Native format.
:param pulumi.Input[int] max_ast_depth: Maximum abstract syntax tree depth.
:param pulumi.Input[int] max_ast_elements: Maximum abstract syntax tree elements.
:param pulumi.Input[int] max_block_size: A recommendation for what size of the block (in a count of rows) to load from tables.
:param pulumi.Input[int] max_bytes_before_external_group_by: Limit in bytes for using memoru for GROUP BY before using swap on disk.
:param pulumi.Input[int] max_bytes_before_external_sort: This setting is equivalent of the max_bytes_before_external_group_by setting, except for it is for sort operation (ORDER BY), not aggregation.
:param pulumi.Input[int] max_bytes_in_distinct: Limits the maximum size of a hash table in bytes (uncompressed data) when using DISTINCT.
:param pulumi.Input[int] max_bytes_in_join: Limit on maximum size of the hash table for JOIN, in bytes.
:param pulumi.Input[int] max_bytes_in_set: Limit on the number of bytes in the set resulting from the execution of the IN section.
:param pulumi.Input[int] max_bytes_to_read: Limits the maximum number of bytes (uncompressed data) that can be read from a table when running a query.
:param pulumi.Input[int] max_bytes_to_sort: Limits the maximum number of bytes (uncompressed data) that can be read from a table for sorting.
:param pulumi.Input[int] max_bytes_to_transfer: Limits the maximum number of bytes (uncompressed data) that can be passed to a remote server or saved in a temporary table when using GLOBAL IN.
:param pulumi.Input[int] max_columns_to_read: Limits the maximum number of columns that can be read from a table in a single query.
:param pulumi.Input[int] max_execution_time: Limits the maximum query execution time in milliseconds.
:param pulumi.Input[int] max_expanded_ast_elements: Maximum abstract syntax tree depth after after expansion of aliases.
:param pulumi.Input[int] max_insert_block_size: The size of blocks (in a count of rows) to form for insertion into a table.
:param pulumi.Input[int] max_memory_usage: Limits the maximum memory usage (in bytes) for processing queries on a single server.
:param pulumi.Input[int] max_memory_usage_for_user: Limits the maximum memory usage (in bytes) for processing of user's queries on a single server.
:param pulumi.Input[int] max_network_bandwidth: Limits the speed of the data exchange over the network in bytes per second.
:param pulumi.Input[int] max_network_bandwidth_for_user: Limits the speed of the data exchange over the network in bytes per second.
:param pulumi.Input[int] max_query_size: The maximum part of a query that can be taken to RAM for parsing with the SQL parser.
:param pulumi.Input[int] max_replica_delay_for_distributed_queries: Disables lagging replicas for distributed queries.
:param pulumi.Input[int] max_result_bytes: Limits the number of bytes in the result.
:param pulumi.Input[int] max_result_rows: Limits the number of rows in the result.
:param pulumi.Input[int] max_rows_in_distinct: Limits the maximum number of different rows when using DISTINCT.
:param pulumi.Input[int] max_rows_in_join: Limit on maximum size of the hash table for JOIN, in rows.
:param pulumi.Input[int] max_rows_in_set: Limit on the number of rows in the set resulting from the execution of the IN section.
:param pulumi.Input[int] max_rows_to_group_by: Limits the maximum number of unique keys received from aggregation function.
:param pulumi.Input[int] max_rows_to_read: Limits the maximum number of rows that can be read from a table when running a query.
:param pulumi.Input[int] max_rows_to_sort: Limits the maximum number of rows that can be read from a table for sorting.
:param pulumi.Input[int] max_rows_to_transfer: Limits the maximum number of rows that can be passed to a remote server or saved in a temporary table when using GLOBAL IN.
:param pulumi.Input[int] max_temporary_columns: Limits the maximum number of temporary columns that must be kept in RAM at the same time when running a query, including constant columns.
:param pulumi.Input[int] max_temporary_non_const_columns: Limits the maximum number of temporary columns that must be kept in RAM at the same time when running a query, excluding constant columns.
:param pulumi.Input[int] max_threads: The maximum number of query processing threads, excluding threads for retrieving data from remote servers.
:param pulumi.Input[int] merge_tree_max_bytes_to_use_cache: If ClickHouse should read more than merge_tree_max_bytes_to_use_cache bytes in one query, it doesn’t use the cache of uncompressed blocks.
:param pulumi.Input[int] merge_tree_max_rows_to_use_cache: If ClickHouse should read more than merge_tree_max_rows_to_use_cache rows in one query, it doesn’t use the cache of uncompressed blocks.
:param pulumi.Input[int] merge_tree_min_bytes_for_concurrent_read: If the number of bytes to read from one file of a MergeTree-engine table exceeds merge_tree_min_bytes_for_concurrent_read, then ClickHouse tries to concurrently read from this file in several threads.
:param pulumi.Input[int] merge_tree_min_rows_for_concurrent_read: If the number of rows to be read from a file of a MergeTree table exceeds merge_tree_min_rows_for_concurrent_read then ClickHouse tries to perform a concurrent reading from this file on several threads.
:param pulumi.Input[int] min_bytes_to_use_direct_io: The minimum data volume required for using direct I/O access to the storage disk.
:param pulumi.Input[int] min_count_to_compile: How many times to potentially use a compiled chunk of code before running compilation.
:param pulumi.Input[int] min_count_to_compile_expression: A query waits for expression compilation process to complete prior to continuing execution.
:param pulumi.Input[int] min_execution_speed: Minimal execution speed in rows per second.
:param pulumi.Input[int] min_execution_speed_bytes: Minimal execution speed in bytes per second.
:param pulumi.Input[int] min_insert_block_size_bytes: Sets the minimum number of bytes in the block which can be inserted into a table by an INSERT query.
:param pulumi.Input[int] min_insert_block_size_rows: Sets the minimum number of rows in the block which can be inserted into a table by an INSERT query.
:param pulumi.Input[bool] output_format_json_quote64bit_integers: If the value is true, integers appear in quotes when using JSON* Int64 and UInt64 formats (for compatibility with most JavaScript implementations); otherwise, integers are output without the quotes.
:param pulumi.Input[bool] output_format_json_quote_denormals: Enables +nan, -nan, +inf, -inf outputs in JSON output format.
:param pulumi.Input[int] priority: Query priority.
:param pulumi.Input[str] quota_mode: Quota accounting mode.
:param pulumi.Input[str] read_overflow_mode: Sets behaviour on overflow while read. Possible values:
:param pulumi.Input[int] readonly: Restricts permissions for reading data, write data and change settings queries.
:param pulumi.Input[int] receive_timeout: Receive timeout in milliseconds on the socket used for communicating with the client.
:param pulumi.Input[int] replication_alter_partitions_sync: For ALTER ... ATTACH|DETACH|DROP queries, you can use the replication_alter_partitions_sync setting to set up waiting.
:param pulumi.Input[str] result_overflow_mode: Sets behaviour on overflow in result. Possible values:
:param pulumi.Input[bool] select_sequential_consistency: Enables or disables sequential consistency for SELECT queries.
:param pulumi.Input[bool] send_progress_in_http_headers: Enables or disables X-ClickHouse-Progress HTTP response headers in clickhouse-server responses.
:param pulumi.Input[int] send_timeout: Send timeout in milliseconds on the socket used for communicating with the client.
:param pulumi.Input[str] set_overflow_mode: Sets behaviour on overflow in the set resulting. Possible values:
:param pulumi.Input[bool] skip_unavailable_shards: Enables or disables silently skipping of unavailable shards.
:param pulumi.Input[str] sort_overflow_mode: Sets behaviour on overflow while sort. Possible values:
:param pulumi.Input[str] timeout_overflow_mode: Sets behaviour on overflow. Possible values:
:param pulumi.Input[str] transfer_overflow_mode: Sets behaviour on overflow. Possible values:
:param pulumi.Input[bool] transform_null_in: Enables equality of NULL values for IN operator.
:param pulumi.Input[bool] use_uncompressed_cache: Whether to use a cache of uncompressed blocks.
"""
if add_http_cors_header is not None:
pulumi.set(__self__, "add_http_cors_header", add_http_cors_header)
if allow_ddl is not None:
pulumi.set(__self__, "allow_ddl", allow_ddl)
if compile is not None:
pulumi.set(__self__, "compile", compile)
if compile_expressions is not None:
pulumi.set(__self__, "compile_expressions", compile_expressions)
if connect_timeout is not None:
pulumi.set(__self__, "connect_timeout", connect_timeout)
if count_distinct_implementation is not None:
pulumi.set(__self__, "count_distinct_implementation", count_distinct_implementation)
if distinct_overflow_mode is not None:
pulumi.set(__self__, "distinct_overflow_mode", distinct_overflow_mode)
if distributed_aggregation_memory_efficient is not None:
pulumi.set(__self__, "distributed_aggregation_memory_efficient", distributed_aggregation_memory_efficient)
if distributed_ddl_task_timeout is not None:
pulumi.set(__self__, "distributed_ddl_task_timeout", distributed_ddl_task_timeout)
if distributed_product_mode is not None:
pulumi.set(__self__, "distributed_product_mode", distributed_product_mode)
if empty_result_for_aggregation_by_empty_set is not None:
pulumi.set(__self__, "empty_result_for_aggregation_by_empty_set", empty_result_for_aggregation_by_empty_set)
if enable_http_compression is not None:
pulumi.set(__self__, "enable_http_compression", enable_http_compression)
if fallback_to_stale_replicas_for_distributed_queries is not None:
pulumi.set(__self__, "fallback_to_stale_replicas_for_distributed_queries", fallback_to_stale_replicas_for_distributed_queries)
if force_index_by_date is not None:
pulumi.set(__self__, "force_index_by_date", force_index_by_date)
if force_primary_key is not None:
pulumi.set(__self__, "force_primary_key", force_primary_key)
if group_by_overflow_mode is not None:
pulumi.set(__self__, "group_by_overflow_mode", group_by_overflow_mode)
if group_by_two_level_threshold is not None:
pulumi.set(__self__, "group_by_two_level_threshold", group_by_two_level_threshold)
if group_by_two_level_threshold_bytes is not None:
pulumi.set(__self__, "group_by_two_level_threshold_bytes", group_by_two_level_threshold_bytes)
if http_connection_timeout is not None:
pulumi.set(__self__, "http_connection_timeout", http_connection_timeout)
if http_headers_progress_interval is not None:
pulumi.set(__self__, "http_headers_progress_interval", http_headers_progress_interval)
if http_receive_timeout is not None:
pulumi.set(__self__, "http_receive_timeout", http_receive_timeout)
if http_send_timeout is not None:
pulumi.set(__self__, "http_send_timeout", http_send_timeout)
if input_format_defaults_for_omitted_fields is not None:
pulumi.set(__self__, "input_format_defaults_for_omitted_fields", input_format_defaults_for_omitted_fields)
if input_format_values_interpret_expressions is not None:
pulumi.set(__self__, "input_format_values_interpret_expressions", input_format_values_interpret_expressions)
if insert_quorum is not None:
pulumi.set(__self__, "insert_quorum", insert_quorum)
if insert_quorum_timeout is not None:
pulumi.set(__self__, "insert_quorum_timeout", insert_quorum_timeout)
if join_overflow_mode is not None:
pulumi.set(__self__, "join_overflow_mode", join_overflow_mode)
if join_use_nulls is not None:
pulumi.set(__self__, "join_use_nulls", join_use_nulls)
if joined_subquery_requires_alias is not None:
pulumi.set(__self__, "joined_subquery_requires_alias", joined_subquery_requires_alias)
if low_cardinality_allow_in_native_format is not None:
pulumi.set(__self__, "low_cardinality_allow_in_native_format", low_cardinality_allow_in_native_format)
if max_ast_depth is not None:
pulumi.set(__self__, "max_ast_depth", max_ast_depth)
if max_ast_elements is not None:
pulumi.set(__self__, "max_ast_elements", max_ast_elements)
if max_block_size is not None:
pulumi.set(__self__, "max_block_size", max_block_size)
if max_bytes_before_external_group_by is not None:
pulumi.set(__self__, "max_bytes_before_external_group_by", max_bytes_before_external_group_by)
if max_bytes_before_external_sort is not None:
pulumi.set(__self__, "max_bytes_before_external_sort", max_bytes_before_external_sort)
if max_bytes_in_distinct is not None:
pulumi.set(__self__, "max_bytes_in_distinct", max_bytes_in_distinct)
if max_bytes_in_join is not None:
pulumi.set(__self__, "max_bytes_in_join", max_bytes_in_join)
if max_bytes_in_set is not None:
pulumi.set(__self__, "max_bytes_in_set", max_bytes_in_set)
if max_bytes_to_read is not None:
pulumi.set(__self__, "max_bytes_to_read", max_bytes_to_read)
if max_bytes_to_sort is not None:
pulumi.set(__self__, "max_bytes_to_sort", max_bytes_to_sort)
if max_bytes_to_transfer is not None:
pulumi.set(__self__, "max_bytes_to_transfer", max_bytes_to_transfer)
if max_columns_to_read is not None:
pulumi.set(__self__, "max_columns_to_read", max_columns_to_read)
if max_execution_time is not None:
pulumi.set(__self__, "max_execution_time", max_execution_time)
if max_expanded_ast_elements is not None:
pulumi.set(__self__, "max_expanded_ast_elements", max_expanded_ast_elements)
if max_insert_block_size is not None:
pulumi.set(__self__, "max_insert_block_size", max_insert_block_size)
if max_memory_usage is not None:
pulumi.set(__self__, "max_memory_usage", max_memory_usage)
if max_memory_usage_for_user is not None:
pulumi.set(__self__, "max_memory_usage_for_user", max_memory_usage_for_user)
if max_network_bandwidth is not None:
pulumi.set(__self__, "max_network_bandwidth", max_network_bandwidth)
if max_network_bandwidth_for_user is not None:
pulumi.set(__self__, "max_network_bandwidth_for_user", max_network_bandwidth_for_user)
if max_query_size is not None:
pulumi.set(__self__, "max_query_size", max_query_size)
if max_replica_delay_for_distributed_queries is not None:
pulumi.set(__self__, "max_replica_delay_for_distributed_queries", max_replica_delay_for_distributed_queries)
if max_result_bytes is not None:
pulumi.set(__self__, "max_result_bytes", max_result_bytes)
if max_result_rows is not None:
pulumi.set(__self__, "max_result_rows", max_result_rows)
if max_rows_in_distinct is not None:
pulumi.set(__self__, "max_rows_in_distinct", max_rows_in_distinct)
if max_rows_in_join is not None:
pulumi.set(__self__, "max_rows_in_join", max_rows_in_join)
if max_rows_in_set is not None:
pulumi.set(__self__, "max_rows_in_set", max_rows_in_set)
if max_rows_to_group_by is not None:
pulumi.set(__self__, "max_rows_to_group_by", max_rows_to_group_by)
if max_rows_to_read is not None:
pulumi.set(__self__, "max_rows_to_read", max_rows_to_read)
if max_rows_to_sort is not None:
pulumi.set(__self__, "max_rows_to_sort", max_rows_to_sort)
if max_rows_to_transfer is not None:
pulumi.set(__self__, "max_rows_to_transfer", max_rows_to_transfer)
if max_temporary_columns is not None:
pulumi.set(__self__, "max_temporary_columns", max_temporary_columns)
if max_temporary_non_const_columns is not None:
pulumi.set(__self__, "max_temporary_non_const_columns", max_temporary_non_const_columns)
if max_threads is not None:
pulumi.set(__self__, "max_threads", max_threads)
if merge_tree_max_bytes_to_use_cache is not None:
pulumi.set(__self__, "merge_tree_max_bytes_to_use_cache", merge_tree_max_bytes_to_use_cache)
if merge_tree_max_rows_to_use_cache is not None:
pulumi.set(__self__, "merge_tree_max_rows_to_use_cache", merge_tree_max_rows_to_use_cache)
if merge_tree_min_bytes_for_concurrent_read is not None:
pulumi.set(__self__, "merge_tree_min_bytes_for_concurrent_read", merge_tree_min_bytes_for_concurrent_read)
if merge_tree_min_rows_for_concurrent_read is not None:
pulumi.set(__self__, "merge_tree_min_rows_for_concurrent_read", merge_tree_min_rows_for_concurrent_read)
if min_bytes_to_use_direct_io is not None:
pulumi.set(__self__, "min_bytes_to_use_direct_io", min_bytes_to_use_direct_io)
if min_count_to_compile is not None:
pulumi.set(__self__, "min_count_to_compile", min_count_to_compile)
if min_count_to_compile_expression is not None:
pulumi.set(__self__, "min_count_to_compile_expression", min_count_to_compile_expression)
if min_execution_speed is not None:
pulumi.set(__self__, "min_execution_speed", min_execution_speed)
if min_execution_speed_bytes is not None:
pulumi.set(__self__, "min_execution_speed_bytes", min_execution_speed_bytes)
if min_insert_block_size_bytes is not None:
pulumi.set(__self__, "min_insert_block_size_bytes", min_insert_block_size_bytes)
if min_insert_block_size_rows is not None:
pulumi.set(__self__, "min_insert_block_size_rows", min_insert_block_size_rows)
if output_format_json_quote64bit_integers is not None:
pulumi.set(__self__, "output_format_json_quote64bit_integers", output_format_json_quote64bit_integers)
if output_format_json_quote_denormals is not None:
pulumi.set(__self__, "output_format_json_quote_denormals", output_format_json_quote_denormals)
if priority is not None:
pulumi.set(__self__, "priority", priority)
if quota_mode is not None:
pulumi.set(__self__, "quota_mode", quota_mode)
if read_overflow_mode is not None:
pulumi.set(__self__, "read_overflow_mode", read_overflow_mode)
if readonly is not None:
pulumi.set(__self__, "readonly", readonly)
if receive_timeout is not None:
pulumi.set(__self__, "receive_timeout", receive_timeout)
if replication_alter_partitions_sync is not None:
pulumi.set(__self__, "replication_alter_partitions_sync", replication_alter_partitions_sync)
if result_overflow_mode is not None:
pulumi.set(__self__, "result_overflow_mode", result_overflow_mode)
if select_sequential_consistency is not None:
pulumi.set(__self__, "select_sequential_consistency", select_sequential_consistency)
if send_progress_in_http_headers is not None:
pulumi.set(__self__, "send_progress_in_http_headers", send_progress_in_http_headers)
if send_timeout is not None:
pulumi.set(__self__, "send_timeout", send_timeout)
if set_overflow_mode is not None:
pulumi.set(__self__, "set_overflow_mode", set_overflow_mode)
if skip_unavailable_shards is not None:
pulumi.set(__self__, "skip_unavailable_shards", skip_unavailable_shards)
if sort_overflow_mode is not None:
pulumi.set(__self__, "sort_overflow_mode", sort_overflow_mode)
if timeout_overflow_mode is not None:
pulumi.set(__self__, "timeout_overflow_mode", timeout_overflow_mode)
if transfer_overflow_mode is not None:
pulumi.set(__self__, "transfer_overflow_mode", transfer_overflow_mode)
if transform_null_in is not None:
pulumi.set(__self__, "transform_null_in", transform_null_in)
if use_uncompressed_cache is not None:
pulumi.set(__self__, "use_uncompressed_cache", use_uncompressed_cache)
@property
@pulumi.getter(name="addHttpCorsHeader")
def add_http_cors_header(self) -> Optional[pulumi.Input[bool]]:
"""
Include CORS headers in HTTP responces.
"""
return pulumi.get(self, "add_http_cors_header")
@add_http_cors_header.setter
def add_http_cors_header(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "add_http_cors_header", value)
@property
@pulumi.getter(name="allowDdl")
def allow_ddl(self) -> Optional[pulumi.Input[bool]]:
"""
Allows or denies DDL queries.
"""
return pulumi.get(self, "allow_ddl")
@allow_ddl.setter
def allow_ddl(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "allow_ddl", value)
@property
@pulumi.getter
def compile(self) -> Optional[pulumi.Input[bool]]:
"""
Enable compilation of queries.
"""
return pulumi.get(self, "compile")
@compile.setter
def compile(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "compile", value)
@property
@pulumi.getter(name="compileExpressions")
def compile_expressions(self) -> Optional[pulumi.Input[bool]]:
"""
Turn on expression compilation.
"""
return pulumi.get(self, "compile_expressions")
@compile_expressions.setter
def compile_expressions(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "compile_expressions", value)
@property
@pulumi.getter(name="connectTimeout")
def connect_timeout(self) -> Optional[pulumi.Input[int]]:
"""
Connect timeout in milliseconds on the socket used for communicating with the client.
"""
return pulumi.get(self, "connect_timeout")
@connect_timeout.setter
def connect_timeout(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "connect_timeout", value)
@property
@pulumi.getter(name="countDistinctImplementation")
def count_distinct_implementation(self) -> Optional[pulumi.Input[str]]:
"""
Specifies which of the uniq* functions should be used to perform the COUNT(DISTINCT …) construction.
"""
return pulumi.get(self, "count_distinct_implementation")
@count_distinct_implementation.setter
def count_distinct_implementation(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "count_distinct_implementation", value)
@property
@pulumi.getter(name="distinctOverflowMode")
def distinct_overflow_mode(self) -> Optional[pulumi.Input[str]]:
"""
Sets behaviour on overflow when using DISTINCT. Possible values:
"""
return pulumi.get(self, "distinct_overflow_mode")
@distinct_overflow_mode.setter
def distinct_overflow_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "distinct_overflow_mode", value)
@property
@pulumi.getter(name="distributedAggregationMemoryEfficient")
def distributed_aggregation_memory_efficient(self) -> Optional[pulumi.Input[bool]]:
"""
Determine the behavior of distributed subqueries.
"""
return pulumi.get(self, "distributed_aggregation_memory_efficient")
@distributed_aggregation_memory_efficient.setter
def distributed_aggregation_memory_efficient(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "distributed_aggregation_memory_efficient", value)
@property
@pulumi.getter(name="distributedDdlTaskTimeout")
def distributed_ddl_task_timeout(self) -> Optional[pulumi.Input[int]]:
"""
Timeout for DDL queries, in milliseconds.
"""
return pulumi.get(self, "distributed_ddl_task_timeout")
@distributed_ddl_task_timeout.setter
def distributed_ddl_task_timeout(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "distributed_ddl_task_timeout", value)
@property
@pulumi.getter(name="distributedProductMode")
def distributed_product_mode(self) -> Optional[pulumi.Input[str]]:
"""
Changes the behaviour of distributed subqueries.
"""
return pulumi.get(self, "distributed_product_mode")
@distributed_product_mode.setter
def distributed_product_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "distributed_product_mode", value)
@property
@pulumi.getter(name="emptyResultForAggregationByEmptySet")
def empty_result_for_aggregation_by_empty_set(self) -> Optional[pulumi.Input[bool]]:
"""
Allows to retunr empty result.
"""
return pulumi.get(self, "empty_result_for_aggregation_by_empty_set")
@empty_result_for_aggregation_by_empty_set.setter
def empty_result_for_aggregation_by_empty_set(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "empty_result_for_aggregation_by_empty_set", value)
@property
@pulumi.getter(name="enableHttpCompression")
def enable_http_compression(self) -> Optional[pulumi.Input[bool]]:
"""
Enables or disables data compression in the response to an HTTP request.
"""
return pulumi.get(self, "enable_http_compression")
@enable_http_compression.setter
def enable_http_compression(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enable_http_compression", value)
@property
@pulumi.getter(name="fallbackToStaleReplicasForDistributedQueries")
def fallback_to_stale_replicas_for_distributed_queries(self) -> Optional[pulumi.Input[bool]]:
"""
Forces a query to an out-of-date replica if updated data is not available.
"""
return pulumi.get(self, "fallback_to_stale_replicas_for_distributed_queries")
@fallback_to_stale_replicas_for_distributed_queries.setter
def fallback_to_stale_replicas_for_distributed_queries(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "fallback_to_stale_replicas_for_distributed_queries", value)
@property
@pulumi.getter(name="forceIndexByDate")
def force_index_by_date(self) -> Optional[pulumi.Input[bool]]:
"""
Disables query execution if the index can’t be used by date.
"""
return pulumi.get(self, "force_index_by_date")
@force_index_by_date.setter
def force_index_by_date(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "force_index_by_date", value)
@property
@pulumi.getter(name="forcePrimaryKey")
def force_primary_key(self) -> Optional[pulumi.Input[bool]]:
"""
Disables query execution if indexing by the primary key is not possible.
"""
return pulumi.get(self, "force_primary_key")
@force_primary_key.setter
def force_primary_key(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "force_primary_key", value)
@property
@pulumi.getter(name="groupByOverflowMode")
def group_by_overflow_mode(self) -> Optional[pulumi.Input[str]]:
"""
Sets behaviour on overflow while GROUP BY operation. Possible values:
"""
return pulumi.get(self, "group_by_overflow_mode")
@group_by_overflow_mode.setter
def group_by_overflow_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "group_by_overflow_mode", value)
@property
@pulumi.getter(name="groupByTwoLevelThreshold")
def group_by_two_level_threshold(self) -> Optional[pulumi.Input[int]]:
"""
Sets the threshold of the number of keys, after that the two-level aggregation should be used.
"""
return pulumi.get(self, "group_by_two_level_threshold")
@group_by_two_level_threshold.setter
def group_by_two_level_threshold(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "group_by_two_level_threshold", value)
@property
@pulumi.getter(name="groupByTwoLevelThresholdBytes")
def group_by_two_level_threshold_bytes(self) -> Optional[pulumi.Input[int]]:
"""
Sets the threshold of the number of bytes, after that the two-level aggregation should be used.
"""
return pulumi.get(self, "group_by_two_level_threshold_bytes")
@group_by_two_level_threshold_bytes.setter
def group_by_two_level_threshold_bytes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "group_by_two_level_threshold_bytes", value)
@property
@pulumi.getter(name="httpConnectionTimeout")
def http_connection_timeout(self) -> Optional[pulumi.Input[int]]:
"""
Timeout for HTTP connection in milliseconds.
"""
return pulumi.get(self, "http_connection_timeout")
@http_connection_timeout.setter
def http_connection_timeout(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "http_connection_timeout", value)
@property
@pulumi.getter(name="httpHeadersProgressInterval")
def http_headers_progress_interval(self) -> Optional[pulumi.Input[int]]:
"""
Sets minimal interval between notifications about request process in HTTP header X-ClickHouse-Progress.
"""
return pulumi.get(self, "http_headers_progress_interval")
@http_headers_progress_interval.setter
def http_headers_progress_interval(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "http_headers_progress_interval", value)
@property
@pulumi.getter(name="httpReceiveTimeout")
def http_receive_timeout(self) -> Optional[pulumi.Input[int]]:
"""
Timeout for HTTP connection in milliseconds.
"""
return pulumi.get(self, "http_receive_timeout")
@http_receive_timeout.setter
def http_receive_timeout(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "http_receive_timeout", value)
@property
@pulumi.getter(name="httpSendTimeout")
def http_send_timeout(self) -> Optional[pulumi.Input[int]]:
"""
Timeout for HTTP connection in milliseconds.
"""
return pulumi.get(self, "http_send_timeout")
@http_send_timeout.setter
def http_send_timeout(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "http_send_timeout", value)
@property
@pulumi.getter(name="inputFormatDefaultsForOmittedFields")
def input_format_defaults_for_omitted_fields(self) -> Optional[pulumi.Input[bool]]:
"""
When performing INSERT queries, replace omitted input column values with default values of the respective columns.
"""
return pulumi.get(self, "input_format_defaults_for_omitted_fields")
@input_format_defaults_for_omitted_fields.setter
def input_format_defaults_for_omitted_fields(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "input_format_defaults_for_omitted_fields", value)
@property
@pulumi.getter(name="inputFormatValuesInterpretExpressions")
def input_format_values_interpret_expressions(self) -> Optional[pulumi.Input[bool]]:
"""
Enables or disables the full SQL parser if the fast stream parser can’t parse the data.
"""
return pulumi.get(self, "input_format_values_interpret_expressions")
@input_format_values_interpret_expressions.setter
def input_format_values_interpret_expressions(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "input_format_values_interpret_expressions", value)
@property
@pulumi.getter(name="insertQuorum")
def insert_quorum(self) -> Optional[pulumi.Input[int]]:
"""
Enables the quorum writes.
"""
return pulumi.get(self, "insert_quorum")
@insert_quorum.setter
def insert_quorum(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "insert_quorum", value)
@property
@pulumi.getter(name="insertQuorumTimeout")
def insert_quorum_timeout(self) -> Optional[pulumi.Input[int]]:
"""
Write to a quorum timeout in milliseconds.
"""
return pulumi.get(self, "insert_quorum_timeout")
@insert_quorum_timeout.setter
def insert_quorum_timeout(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "insert_quorum_timeout", value)
@property
@pulumi.getter(name="joinOverflowMode")
def join_overflow_mode(self) -> Optional[pulumi.Input[str]]:
"""
Sets behaviour on overflow in JOIN. Possible values:
"""
return pulumi.get(self, "join_overflow_mode")
@join_overflow_mode.setter
def join_overflow_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "join_overflow_mode", value)
@property
@pulumi.getter(name="joinUseNulls")
def join_use_nulls(self) -> Optional[pulumi.Input[bool]]:
"""
Sets the type of JOIN behaviour. When merging tables, empty cells may appear. ClickHouse fills them differently based on this setting.
"""
return pulumi.get(self, "join_use_nulls")
@join_use_nulls.setter
def join_use_nulls(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "join_use_nulls", value)
@property
@pulumi.getter(name="joinedSubqueryRequiresAlias")
def joined_subquery_requires_alias(self) -> Optional[pulumi.Input[bool]]:
"""
Require aliases for subselects and table functions in FROM that more than one table is present.
"""
return pulumi.get(self, "joined_subquery_requires_alias")
@joined_subquery_requires_alias.setter
def joined_subquery_requires_alias(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "joined_subquery_requires_alias", value)
@property
@pulumi.getter(name="lowCardinalityAllowInNativeFormat")
def low_cardinality_allow_in_native_format(self) -> Optional[pulumi.Input[bool]]:
"""
Allows or restricts using the LowCardinality data type with the Native format.
"""
return pulumi.get(self, "low_cardinality_allow_in_native_format")
@low_cardinality_allow_in_native_format.setter
def low_cardinality_allow_in_native_format(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "low_cardinality_allow_in_native_format", value)
@property
@pulumi.getter(name="maxAstDepth")
def max_ast_depth(self) -> Optional[pulumi.Input[int]]:
"""
Maximum abstract syntax tree depth.
"""
return pulumi.get(self, "max_ast_depth")
@max_ast_depth.setter
def max_ast_depth(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_ast_depth", value)
@property
@pulumi.getter(name="maxAstElements")
def max_ast_elements(self) -> Optional[pulumi.Input[int]]:
"""
Maximum abstract syntax tree elements.
"""
return pulumi.get(self, "max_ast_elements")
@max_ast_elements.setter
def max_ast_elements(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_ast_elements", value)
@property
@pulumi.getter(name="maxBlockSize")
def max_block_size(self) -> Optional[pulumi.Input[int]]:
"""
A recommendation for what size of the block (in a count of rows) to load from tables.
"""
return pulumi.get(self, "max_block_size")
@max_block_size.setter
def max_block_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_block_size", value)
@property
@pulumi.getter(name="maxBytesBeforeExternalGroupBy")
def max_bytes_before_external_group_by(self) -> Optional[pulumi.Input[int]]:
"""
Limit in bytes for using memoru for GROUP BY before using swap on disk.
"""
return pulumi.get(self, "max_bytes_before_external_group_by")
@max_bytes_before_external_group_by.setter
def max_bytes_before_external_group_by(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_bytes_before_external_group_by", value)
@property
@pulumi.getter(name="maxBytesBeforeExternalSort")
def max_bytes_before_external_sort(self) -> Optional[pulumi.Input[int]]:
"""
This setting is equivalent of the max_bytes_before_external_group_by setting, except for it is for sort operation (ORDER BY), not aggregation.
"""
return pulumi.get(self, "max_bytes_before_external_sort")
@max_bytes_before_external_sort.setter
def max_bytes_before_external_sort(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_bytes_before_external_sort", value)
@property
@pulumi.getter(name="maxBytesInDistinct")
def max_bytes_in_distinct(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum size of a hash table in bytes (uncompressed data) when using DISTINCT.
"""
return pulumi.get(self, "max_bytes_in_distinct")
@max_bytes_in_distinct.setter
def max_bytes_in_distinct(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_bytes_in_distinct", value)
@property
@pulumi.getter(name="maxBytesInJoin")
def max_bytes_in_join(self) -> Optional[pulumi.Input[int]]:
"""
Limit on maximum size of the hash table for JOIN, in bytes.
"""
return pulumi.get(self, "max_bytes_in_join")
@max_bytes_in_join.setter
def max_bytes_in_join(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_bytes_in_join", value)
@property
@pulumi.getter(name="maxBytesInSet")
def max_bytes_in_set(self) -> Optional[pulumi.Input[int]]:
"""
Limit on the number of bytes in the set resulting from the execution of the IN section.
"""
return pulumi.get(self, "max_bytes_in_set")
@max_bytes_in_set.setter
def max_bytes_in_set(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_bytes_in_set", value)
@property
@pulumi.getter(name="maxBytesToRead")
def max_bytes_to_read(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum number of bytes (uncompressed data) that can be read from a table when running a query.
"""
return pulumi.get(self, "max_bytes_to_read")
@max_bytes_to_read.setter
def max_bytes_to_read(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_bytes_to_read", value)
@property
@pulumi.getter(name="maxBytesToSort")
def max_bytes_to_sort(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum number of bytes (uncompressed data) that can be read from a table for sorting.
"""
return pulumi.get(self, "max_bytes_to_sort")
@max_bytes_to_sort.setter
def max_bytes_to_sort(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_bytes_to_sort", value)
@property
@pulumi.getter(name="maxBytesToTransfer")
def max_bytes_to_transfer(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum number of bytes (uncompressed data) that can be passed to a remote server or saved in a temporary table when using GLOBAL IN.
"""
return pulumi.get(self, "max_bytes_to_transfer")
@max_bytes_to_transfer.setter
def max_bytes_to_transfer(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_bytes_to_transfer", value)
@property
@pulumi.getter(name="maxColumnsToRead")
def max_columns_to_read(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum number of columns that can be read from a table in a single query.
"""
return pulumi.get(self, "max_columns_to_read")
@max_columns_to_read.setter
def max_columns_to_read(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_columns_to_read", value)
@property
@pulumi.getter(name="maxExecutionTime")
def max_execution_time(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum query execution time in milliseconds.
"""
return pulumi.get(self, "max_execution_time")
@max_execution_time.setter
def max_execution_time(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_execution_time", value)
@property
@pulumi.getter(name="maxExpandedAstElements")
def max_expanded_ast_elements(self) -> Optional[pulumi.Input[int]]:
"""
Maximum abstract syntax tree depth after after expansion of aliases.
"""
return pulumi.get(self, "max_expanded_ast_elements")
@max_expanded_ast_elements.setter
def max_expanded_ast_elements(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_expanded_ast_elements", value)
@property
@pulumi.getter(name="maxInsertBlockSize")
def max_insert_block_size(self) -> Optional[pulumi.Input[int]]:
"""
The size of blocks (in a count of rows) to form for insertion into a table.
"""
return pulumi.get(self, "max_insert_block_size")
@max_insert_block_size.setter
def max_insert_block_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_insert_block_size", value)
@property
@pulumi.getter(name="maxMemoryUsage")
def max_memory_usage(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum memory usage (in bytes) for processing queries on a single server.
"""
return pulumi.get(self, "max_memory_usage")
@max_memory_usage.setter
def max_memory_usage(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_memory_usage", value)
@property
@pulumi.getter(name="maxMemoryUsageForUser")
def max_memory_usage_for_user(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum memory usage (in bytes) for processing of user's queries on a single server.
"""
return pulumi.get(self, "max_memory_usage_for_user")
@max_memory_usage_for_user.setter
def max_memory_usage_for_user(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_memory_usage_for_user", value)
@property
@pulumi.getter(name="maxNetworkBandwidth")
def max_network_bandwidth(self) -> Optional[pulumi.Input[int]]:
"""
Limits the speed of the data exchange over the network in bytes per second.
"""
return pulumi.get(self, "max_network_bandwidth")
@max_network_bandwidth.setter
def max_network_bandwidth(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_network_bandwidth", value)
@property
@pulumi.getter(name="maxNetworkBandwidthForUser")
def max_network_bandwidth_for_user(self) -> Optional[pulumi.Input[int]]:
"""
Limits the speed of the data exchange over the network in bytes per second.
"""
return pulumi.get(self, "max_network_bandwidth_for_user")
@max_network_bandwidth_for_user.setter
def max_network_bandwidth_for_user(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_network_bandwidth_for_user", value)
@property
@pulumi.getter(name="maxQuerySize")
def max_query_size(self) -> Optional[pulumi.Input[int]]:
"""
The maximum part of a query that can be taken to RAM for parsing with the SQL parser.
"""
return pulumi.get(self, "max_query_size")
@max_query_size.setter
def max_query_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_query_size", value)
@property
@pulumi.getter(name="maxReplicaDelayForDistributedQueries")
def max_replica_delay_for_distributed_queries(self) -> Optional[pulumi.Input[int]]:
"""
Disables lagging replicas for distributed queries.
"""
return pulumi.get(self, "max_replica_delay_for_distributed_queries")
@max_replica_delay_for_distributed_queries.setter
def max_replica_delay_for_distributed_queries(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_replica_delay_for_distributed_queries", value)
@property
@pulumi.getter(name="maxResultBytes")
def max_result_bytes(self) -> Optional[pulumi.Input[int]]:
"""
Limits the number of bytes in the result.
"""
return pulumi.get(self, "max_result_bytes")
@max_result_bytes.setter
def max_result_bytes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_result_bytes", value)
@property
@pulumi.getter(name="maxResultRows")
def max_result_rows(self) -> Optional[pulumi.Input[int]]:
"""
Limits the number of rows in the result.
"""
return pulumi.get(self, "max_result_rows")
@max_result_rows.setter
def max_result_rows(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_result_rows", value)
@property
@pulumi.getter(name="maxRowsInDistinct")
def max_rows_in_distinct(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum number of different rows when using DISTINCT.
"""
return pulumi.get(self, "max_rows_in_distinct")
@max_rows_in_distinct.setter
def max_rows_in_distinct(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_rows_in_distinct", value)
@property
@pulumi.getter(name="maxRowsInJoin")
def max_rows_in_join(self) -> Optional[pulumi.Input[int]]:
"""
Limit on maximum size of the hash table for JOIN, in rows.
"""
return pulumi.get(self, "max_rows_in_join")
@max_rows_in_join.setter
def max_rows_in_join(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_rows_in_join", value)
@property
@pulumi.getter(name="maxRowsInSet")
def max_rows_in_set(self) -> Optional[pulumi.Input[int]]:
"""
Limit on the number of rows in the set resulting from the execution of the IN section.
"""
return pulumi.get(self, "max_rows_in_set")
@max_rows_in_set.setter
def max_rows_in_set(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_rows_in_set", value)
@property
@pulumi.getter(name="maxRowsToGroupBy")
def max_rows_to_group_by(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum number of unique keys received from aggregation function.
"""
return pulumi.get(self, "max_rows_to_group_by")
@max_rows_to_group_by.setter
def max_rows_to_group_by(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_rows_to_group_by", value)
@property
@pulumi.getter(name="maxRowsToRead")
def max_rows_to_read(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum number of rows that can be read from a table when running a query.
"""
return pulumi.get(self, "max_rows_to_read")
@max_rows_to_read.setter
def max_rows_to_read(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_rows_to_read", value)
@property
@pulumi.getter(name="maxRowsToSort")
def max_rows_to_sort(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum number of rows that can be read from a table for sorting.
"""
return pulumi.get(self, "max_rows_to_sort")
@max_rows_to_sort.setter
def max_rows_to_sort(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_rows_to_sort", value)
@property
@pulumi.getter(name="maxRowsToTransfer")
def max_rows_to_transfer(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum number of rows that can be passed to a remote server or saved in a temporary table when using GLOBAL IN.
"""
return pulumi.get(self, "max_rows_to_transfer")
@max_rows_to_transfer.setter
def max_rows_to_transfer(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_rows_to_transfer", value)
@property
@pulumi.getter(name="maxTemporaryColumns")
def max_temporary_columns(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum number of temporary columns that must be kept in RAM at the same time when running a query, including constant columns.
"""
return pulumi.get(self, "max_temporary_columns")
@max_temporary_columns.setter
def max_temporary_columns(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_temporary_columns", value)
@property
@pulumi.getter(name="maxTemporaryNonConstColumns")
def max_temporary_non_const_columns(self) -> Optional[pulumi.Input[int]]:
"""
Limits the maximum number of temporary columns that must be kept in RAM at the same time when running a query, excluding constant columns.
"""
return pulumi.get(self, "max_temporary_non_const_columns")
@max_temporary_non_const_columns.setter
def max_temporary_non_const_columns(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_temporary_non_const_columns", value)
@property
@pulumi.getter(name="maxThreads")
def max_threads(self) -> Optional[pulumi.Input[int]]:
"""
The maximum number of query processing threads, excluding threads for retrieving data from remote servers.
"""
return pulumi.get(self, "max_threads")
@max_threads.setter
def max_threads(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_threads", value)
@property
@pulumi.getter(name="mergeTreeMaxBytesToUseCache")
def merge_tree_max_bytes_to_use_cache(self) -> Optional[pulumi.Input[int]]:
"""
If ClickHouse should read more than merge_tree_max_bytes_to_use_cache bytes in one query, it doesn’t use the cache of uncompressed blocks.
"""
return pulumi.get(self, "merge_tree_max_bytes_to_use_cache")
@merge_tree_max_bytes_to_use_cache.setter
def merge_tree_max_bytes_to_use_cache(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "merge_tree_max_bytes_to_use_cache", value)
@property
@pulumi.getter(name="mergeTreeMaxRowsToUseCache")
def merge_tree_max_rows_to_use_cache(self) -> Optional[pulumi.Input[int]]:
"""
If ClickHouse should read more than merge_tree_max_rows_to_use_cache rows in one query, it doesn’t use the cache of uncompressed blocks.
"""
return pulumi.get(self, "merge_tree_max_rows_to_use_cache")
@merge_tree_max_rows_to_use_cache.setter
def merge_tree_max_rows_to_use_cache(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "merge_tree_max_rows_to_use_cache", value)
@property
@pulumi.getter(name="mergeTreeMinBytesForConcurrentRead")
def merge_tree_min_bytes_for_concurrent_read(self) -> Optional[pulumi.Input[int]]:
"""
If the number of bytes to read from one file of a MergeTree-engine table exceeds merge_tree_min_bytes_for_concurrent_read, then ClickHouse tries to concurrently read from this file in several threads.
"""
return pulumi.get(self, "merge_tree_min_bytes_for_concurrent_read")
@merge_tree_min_bytes_for_concurrent_read.setter
def merge_tree_min_bytes_for_concurrent_read(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "merge_tree_min_bytes_for_concurrent_read", value)
@property
@pulumi.getter(name="mergeTreeMinRowsForConcurrentRead")
def merge_tree_min_rows_for_concurrent_read(self) -> Optional[pulumi.Input[int]]:
"""
If the number of rows to be read from a file of a MergeTree table exceeds merge_tree_min_rows_for_concurrent_read then ClickHouse tries to perform a concurrent reading from this file on several threads.
"""
return pulumi.get(self, "merge_tree_min_rows_for_concurrent_read")
@merge_tree_min_rows_for_concurrent_read.setter
def merge_tree_min_rows_for_concurrent_read(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "merge_tree_min_rows_for_concurrent_read", value)
@property
@pulumi.getter(name="minBytesToUseDirectIo")
def min_bytes_to_use_direct_io(self) -> Optional[pulumi.Input[int]]:
"""
The minimum data volume required for using direct I/O access to the storage disk.
"""
return pulumi.get(self, "min_bytes_to_use_direct_io")
@min_bytes_to_use_direct_io.setter
def min_bytes_to_use_direct_io(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "min_bytes_to_use_direct_io", value)
@property
@pulumi.getter(name="minCountToCompile")
def min_count_to_compile(self) -> Optional[pulumi.Input[int]]:
"""
How many times to potentially use a compiled chunk of code before running compilation.
"""
return pulumi.get(self, "min_count_to_compile")
@min_count_to_compile.setter
def min_count_to_compile(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "min_count_to_compile", value)
@property
@pulumi.getter(name="minCountToCompileExpression")
def min_count_to_compile_expression(self) -> Optional[pulumi.Input[int]]:
"""
A query waits for expression compilation process to complete prior to continuing execution.
"""
return pulumi.get(self, "min_count_to_compile_expression")
@min_count_to_compile_expression.setter
def min_count_to_compile_expression(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "min_count_to_compile_expression", value)
@property
@pulumi.getter(name="minExecutionSpeed")
def min_execution_speed(self) -> Optional[pulumi.Input[int]]:
"""
Minimal execution speed in rows per second.
"""
return pulumi.get(self, "min_execution_speed")
@min_execution_speed.setter
def min_execution_speed(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "min_execution_speed", value)
@property
@pulumi.getter(name="minExecutionSpeedBytes")
def min_execution_speed_bytes(self) -> Optional[pulumi.Input[int]]:
"""
Minimal execution speed in bytes per second.
"""
return pulumi.get(self, "min_execution_speed_bytes")
@min_execution_speed_bytes.setter
def min_execution_speed_bytes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "min_execution_speed_bytes", value)
@property
@pulumi.getter(name="minInsertBlockSizeBytes")
def min_insert_block_size_bytes(self) -> Optional[pulumi.Input[int]]:
"""
Sets the minimum number of bytes in the block which can be inserted into a table by an INSERT query.
"""
return pulumi.get(self, "min_insert_block_size_bytes")
@min_insert_block_size_bytes.setter
def min_insert_block_size_bytes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "min_insert_block_size_bytes", value)
@property
@pulumi.getter(name="minInsertBlockSizeRows")
def min_insert_block_size_rows(self) -> Optional[pulumi.Input[int]]:
"""
Sets the minimum number of rows in the block which can be inserted into a table by an INSERT query.
"""
return pulumi.get(self, "min_insert_block_size_rows")
@min_insert_block_size_rows.setter
def min_insert_block_size_rows(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "min_insert_block_size_rows", value)
@property
@pulumi.getter(name="outputFormatJsonQuote64bitIntegers")
def output_format_json_quote64bit_integers(self) -> Optional[pulumi.Input[bool]]:
"""
If the value is true, integers appear in quotes when using JSON* Int64 and UInt64 formats (for compatibility with most JavaScript implementations); otherwise, integers are output without the quotes.
"""
return pulumi.get(self, "output_format_json_quote64bit_integers")
@output_format_json_quote64bit_integers.setter
def output_format_json_quote64bit_integers(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "output_format_json_quote64bit_integers", value)
@property
@pulumi.getter(name="outputFormatJsonQuoteDenormals")
def output_format_json_quote_denormals(self) -> Optional[pulumi.Input[bool]]:
"""
Enables +nan, -nan, +inf, -inf outputs in JSON output format.
"""
return pulumi.get(self, "output_format_json_quote_denormals")
@output_format_json_quote_denormals.setter
def output_format_json_quote_denormals(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "output_format_json_quote_denormals", value)
@property
@pulumi.getter
def priority(self) -> Optional[pulumi.Input[int]]:
"""
Query priority.
"""
return pulumi.get(self, "priority")
@priority.setter
def priority(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "priority", value)
@property
@pulumi.getter(name="quotaMode")
def quota_mode(self) -> Optional[pulumi.Input[str]]:
"""
Quota accounting mode.
"""
return pulumi.get(self, "quota_mode")
@quota_mode.setter
def quota_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "quota_mode", value)
@property
@pulumi.getter(name="readOverflowMode")
def read_overflow_mode(self) -> Optional[pulumi.Input[str]]:
"""
Sets behaviour on overflow while read. Possible values:
"""
return pulumi.get(self, "read_overflow_mode")
@read_overflow_mode.setter
def read_overflow_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "read_overflow_mode", value)
@property
@pulumi.getter
def readonly(self) -> Optional[pulumi.Input[int]]:
"""
Restricts permissions for reading data, write data and change settings queries.
"""
return pulumi.get(self, "readonly")
@readonly.setter
def readonly(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "readonly", value)
@property
@pulumi.getter(name="receiveTimeout")
def receive_timeout(self) -> Optional[pulumi.Input[int]]:
"""
Receive timeout in milliseconds on the socket used for communicating with the client.
"""
return pulumi.get(self, "receive_timeout")
@receive_timeout.setter
def receive_timeout(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "receive_timeout", value)
@property
@pulumi.getter(name="replicationAlterPartitionsSync")
def replication_alter_partitions_sync(self) -> Optional[pulumi.Input[int]]:
"""
For ALTER ... ATTACH|DETACH|DROP queries, you can use the replication_alter_partitions_sync setting to set up waiting.
"""
return pulumi.get(self, "replication_alter_partitions_sync")
@replication_alter_partitions_sync.setter
def replication_alter_partitions_sync(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "replication_alter_partitions_sync", value)
@property
@pulumi.getter(name="resultOverflowMode")
def result_overflow_mode(self) -> Optional[pulumi.Input[str]]:
"""
Sets behaviour on overflow in result. Possible values:
"""
return pulumi.get(self, "result_overflow_mode")
@result_overflow_mode.setter
def result_overflow_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "result_overflow_mode", value)
@property
@pulumi.getter(name="selectSequentialConsistency")
def select_sequential_consistency(self) -> Optional[pulumi.Input[bool]]:
"""
Enables or disables sequential consistency for SELECT queries.
"""
return pulumi.get(self, "select_sequential_consistency")
@select_sequential_consistency.setter
def select_sequential_consistency(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "select_sequential_consistency", value)
@property
@pulumi.getter(name="sendProgressInHttpHeaders")
def send_progress_in_http_headers(self) -> Optional[pulumi.Input[bool]]:
"""
Enables or disables X-ClickHouse-Progress HTTP response headers in clickhouse-server responses.
"""
return pulumi.get(self, "send_progress_in_http_headers")
@send_progress_in_http_headers.setter
def send_progress_in_http_headers(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "send_progress_in_http_headers", value)
@property
@pulumi.getter(name="sendTimeout")
def send_timeout(self) -> Optional[pulumi.Input[int]]:
"""
Send timeout in milliseconds on the socket used for communicating with the client.
"""
return pulumi.get(self, "send_timeout")
@send_timeout.setter
def send_timeout(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "send_timeout", value)
@property
@pulumi.getter(name="setOverflowMode")
def set_overflow_mode(self) -> Optional[pulumi.Input[str]]:
"""
Sets behaviour on overflow in the set resulting. Possible values:
"""
return pulumi.get(self, "set_overflow_mode")
@set_overflow_mode.setter
def set_overflow_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "set_overflow_mode", value)
@property
@pulumi.getter(name="skipUnavailableShards")
def skip_unavailable_shards(self) -> Optional[pulumi.Input[bool]]:
"""
Enables or disables silently skipping of unavailable shards.
"""
return pulumi.get(self, "skip_unavailable_shards")
@skip_unavailable_shards.setter
def skip_unavailable_shards(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "skip_unavailable_shards", value)
@property
@pulumi.getter(name="sortOverflowMode")
def sort_overflow_mode(self) -> Optional[pulumi.Input[str]]:
"""
Sets behaviour on overflow while sort. Possible values:
"""
return pulumi.get(self, "sort_overflow_mode")
@sort_overflow_mode.setter
def sort_overflow_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "sort_overflow_mode", value)
@property
@pulumi.getter(name="timeoutOverflowMode")
def timeout_overflow_mode(self) -> Optional[pulumi.Input[str]]:
"""
Sets behaviour on overflow. Possible values:
"""
return pulumi.get(self, "timeout_overflow_mode")
@timeout_overflow_mode.setter
def timeout_overflow_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "timeout_overflow_mode", value)
@property
@pulumi.getter(name="transferOverflowMode")
def transfer_overflow_mode(self) -> Optional[pulumi.Input[str]]:
"""
Sets behaviour on overflow. Possible values:
"""
return pulumi.get(self, "transfer_overflow_mode")
@transfer_overflow_mode.setter
def transfer_overflow_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "transfer_overflow_mode", value)
@property
@pulumi.getter(name="transformNullIn")
def transform_null_in(self) -> Optional[pulumi.Input[bool]]:
"""
Enables equality of NULL values for IN operator.
"""
return pulumi.get(self, "transform_null_in")
@transform_null_in.setter
def transform_null_in(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "transform_null_in", value)
@property
@pulumi.getter(name="useUncompressedCache")
def use_uncompressed_cache(self) -> Optional[pulumi.Input[bool]]:
"""
Whether to use a cache of uncompressed blocks.
"""
return pulumi.get(self, "use_uncompressed_cache")
@use_uncompressed_cache.setter
def use_uncompressed_cache(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "use_uncompressed_cache", value)
@pulumi.input_type
class MdbClickhouseClusterZookeeperArgs:
def __init__(__self__, *,
resources: Optional[pulumi.Input['MdbClickhouseClusterZookeeperResourcesArgs']] = None):
"""
:param pulumi.Input['MdbClickhouseClusterZookeeperResourcesArgs'] resources: Resources allocated to hosts of the ZooKeeper subcluster. The structure is documented below.
"""
if resources is not None:
pulumi.set(__self__, "resources", resources)
@property
@pulumi.getter
def resources(self) -> Optional[pulumi.Input['MdbClickhouseClusterZookeeperResourcesArgs']]:
"""
Resources allocated to hosts of the ZooKeeper subcluster. The structure is documented below.
"""
return pulumi.get(self, "resources")
@resources.setter
def resources(self, value: Optional[pulumi.Input['MdbClickhouseClusterZookeeperResourcesArgs']]):
pulumi.set(self, "resources", value)
@pulumi.input_type
class MdbClickhouseClusterZookeeperResourcesArgs:
def __init__(__self__, *,
disk_size: Optional[pulumi.Input[int]] = None,
disk_type_id: Optional[pulumi.Input[str]] = None,
resource_preset_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] disk_size: Volume of the storage available to a ZooKeeper host, in gigabytes.
:param pulumi.Input[str] disk_type_id: Type of the storage of ZooKeeper hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-clickhouse/concepts/storage).
"""
if disk_size is not None:
pulumi.set(__self__, "disk_size", disk_size)
if disk_type_id is not None:
pulumi.set(__self__, "disk_type_id", disk_type_id)
if resource_preset_id is not None:
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> Optional[pulumi.Input[int]]:
"""
Volume of the storage available to a ZooKeeper host, in gigabytes.
"""
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> Optional[pulumi.Input[str]]:
"""
Type of the storage of ZooKeeper hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-clickhouse/concepts/storage).
"""
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "disk_type_id", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "resource_preset_id", value)
@pulumi.input_type
class MdbElasticSearchClusterConfigArgs:
def __init__(__self__, *,
admin_password: pulumi.Input[str],
data_node: pulumi.Input['MdbElasticSearchClusterConfigDataNodeArgs'],
edition: Optional[pulumi.Input[str]] = None,
master_node: Optional[pulumi.Input['MdbElasticSearchClusterConfigMasterNodeArgs']] = None,
plugins: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
version: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] admin_password: Password for admin user of Elasticsearch.
:param pulumi.Input['MdbElasticSearchClusterConfigDataNodeArgs'] data_node: Configuration for Elasticsearch data nodes subcluster. The structure is documented below.
:param pulumi.Input[str] edition: Edition of Elasticsearch. For more information, see [the official documentation](https://cloud.yandex.com/en-ru/docs/managed-elasticsearch/concepts/es-editions).
:param pulumi.Input['MdbElasticSearchClusterConfigMasterNodeArgs'] master_node: Configuration for Elasticsearch master nodes subcluster. The structure is documented below.
:param pulumi.Input[Sequence[pulumi.Input[str]]] plugins: A set of Elasticsearch plugins to install.
:param pulumi.Input[str] version: Version of Elasticsearch.
"""
pulumi.set(__self__, "admin_password", admin_password)
pulumi.set(__self__, "data_node", data_node)
if edition is not None:
pulumi.set(__self__, "edition", edition)
if master_node is not None:
pulumi.set(__self__, "master_node", master_node)
if plugins is not None:
pulumi.set(__self__, "plugins", plugins)
if version is not None:
pulumi.set(__self__, "version", version)
@property
@pulumi.getter(name="adminPassword")
def admin_password(self) -> pulumi.Input[str]:
"""
Password for admin user of Elasticsearch.
"""
return pulumi.get(self, "admin_password")
@admin_password.setter
def admin_password(self, value: pulumi.Input[str]):
pulumi.set(self, "admin_password", value)
@property
@pulumi.getter(name="dataNode")
def data_node(self) -> pulumi.Input['MdbElasticSearchClusterConfigDataNodeArgs']:
"""
Configuration for Elasticsearch data nodes subcluster. The structure is documented below.
"""
return pulumi.get(self, "data_node")
@data_node.setter
def data_node(self, value: pulumi.Input['MdbElasticSearchClusterConfigDataNodeArgs']):
pulumi.set(self, "data_node", value)
@property
@pulumi.getter
def edition(self) -> Optional[pulumi.Input[str]]:
"""
Edition of Elasticsearch. For more information, see [the official documentation](https://cloud.yandex.com/en-ru/docs/managed-elasticsearch/concepts/es-editions).
"""
return pulumi.get(self, "edition")
@edition.setter
def edition(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "edition", value)
@property
@pulumi.getter(name="masterNode")
def master_node(self) -> Optional[pulumi.Input['MdbElasticSearchClusterConfigMasterNodeArgs']]:
"""
Configuration for Elasticsearch master nodes subcluster. The structure is documented below.
"""
return pulumi.get(self, "master_node")
@master_node.setter
def master_node(self, value: Optional[pulumi.Input['MdbElasticSearchClusterConfigMasterNodeArgs']]):
pulumi.set(self, "master_node", value)
@property
@pulumi.getter
def plugins(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
A set of Elasticsearch plugins to install.
"""
return pulumi.get(self, "plugins")
@plugins.setter
def plugins(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "plugins", value)
@property
@pulumi.getter
def version(self) -> Optional[pulumi.Input[str]]:
"""
Version of Elasticsearch.
"""
return pulumi.get(self, "version")
@version.setter
def version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "version", value)
@pulumi.input_type
class MdbElasticSearchClusterConfigDataNodeArgs:
def __init__(__self__, *,
resources: pulumi.Input['MdbElasticSearchClusterConfigDataNodeResourcesArgs']):
"""
:param pulumi.Input['MdbElasticSearchClusterConfigDataNodeResourcesArgs'] resources: Resources allocated to hosts of the Elasticsearch master nodes subcluster. The structure is documented below.
"""
pulumi.set(__self__, "resources", resources)
@property
@pulumi.getter
def resources(self) -> pulumi.Input['MdbElasticSearchClusterConfigDataNodeResourcesArgs']:
"""
Resources allocated to hosts of the Elasticsearch master nodes subcluster. The structure is documented below.
"""
return pulumi.get(self, "resources")
@resources.setter
def resources(self, value: pulumi.Input['MdbElasticSearchClusterConfigDataNodeResourcesArgs']):
pulumi.set(self, "resources", value)
@pulumi.input_type
class MdbElasticSearchClusterConfigDataNodeResourcesArgs:
def __init__(__self__, *,
disk_size: pulumi.Input[int],
disk_type_id: pulumi.Input[str],
resource_preset_id: pulumi.Input[str]):
"""
:param pulumi.Input[int] disk_size: Volume of the storage available to a host, in gigabytes.
:param pulumi.Input[str] disk_type_id: Type of the storage of Elasticsearch hosts.
"""
pulumi.set(__self__, "disk_size", disk_size)
pulumi.set(__self__, "disk_type_id", disk_type_id)
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> pulumi.Input[int]:
"""
Volume of the storage available to a host, in gigabytes.
"""
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: pulumi.Input[int]):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> pulumi.Input[str]:
"""
Type of the storage of Elasticsearch hosts.
"""
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: pulumi.Input[str]):
pulumi.set(self, "disk_type_id", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_preset_id", value)
@pulumi.input_type
class MdbElasticSearchClusterConfigMasterNodeArgs:
def __init__(__self__, *,
resources: pulumi.Input['MdbElasticSearchClusterConfigMasterNodeResourcesArgs']):
"""
:param pulumi.Input['MdbElasticSearchClusterConfigMasterNodeResourcesArgs'] resources: Resources allocated to hosts of the Elasticsearch master nodes subcluster. The structure is documented below.
"""
pulumi.set(__self__, "resources", resources)
@property
@pulumi.getter
def resources(self) -> pulumi.Input['MdbElasticSearchClusterConfigMasterNodeResourcesArgs']:
"""
Resources allocated to hosts of the Elasticsearch master nodes subcluster. The structure is documented below.
"""
return pulumi.get(self, "resources")
@resources.setter
def resources(self, value: pulumi.Input['MdbElasticSearchClusterConfigMasterNodeResourcesArgs']):
pulumi.set(self, "resources", value)
@pulumi.input_type
class MdbElasticSearchClusterConfigMasterNodeResourcesArgs:
def __init__(__self__, *,
disk_size: pulumi.Input[int],
disk_type_id: pulumi.Input[str],
resource_preset_id: pulumi.Input[str]):
"""
:param pulumi.Input[int] disk_size: Volume of the storage available to a host, in gigabytes.
:param pulumi.Input[str] disk_type_id: Type of the storage of Elasticsearch hosts.
"""
pulumi.set(__self__, "disk_size", disk_size)
pulumi.set(__self__, "disk_type_id", disk_type_id)
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> pulumi.Input[int]:
"""
Volume of the storage available to a host, in gigabytes.
"""
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: pulumi.Input[int]):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> pulumi.Input[str]:
"""
Type of the storage of Elasticsearch hosts.
"""
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: pulumi.Input[str]):
pulumi.set(self, "disk_type_id", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_preset_id", value)
@pulumi.input_type
class MdbElasticSearchClusterHostArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
type: pulumi.Input[str],
zone: pulumi.Input[str],
assign_public_ip: Optional[pulumi.Input[bool]] = None,
fqdn: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] name: User defined host name.
:param pulumi.Input[str] type: The type of the host to be deployed. Can be either `DATA_NODE` or `MASTER_NODE`.
:param pulumi.Input[str] zone: The availability zone where the Elasticsearch host will be created.
For more information see [the official documentation](https://cloud.yandex.com/docs/overview/concepts/geo-scope).
:param pulumi.Input[bool] assign_public_ip: Sets whether the host should get a public IP address on creation. Can be either `true` or `false`.
:param pulumi.Input[str] fqdn: The fully qualified domain name of the host.
:param pulumi.Input[str] subnet_id: The ID of the subnet, to which the host belongs. The subnet must
be a part of the network to which the cluster belongs.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "type", type)
pulumi.set(__self__, "zone", zone)
if assign_public_ip is not None:
pulumi.set(__self__, "assign_public_ip", assign_public_ip)
if fqdn is not None:
pulumi.set(__self__, "fqdn", fqdn)
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
User defined host name.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
The type of the host to be deployed. Can be either `DATA_NODE` or `MASTER_NODE`.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter
def zone(self) -> pulumi.Input[str]:
"""
The availability zone where the Elasticsearch host will be created.
For more information see [the official documentation](https://cloud.yandex.com/docs/overview/concepts/geo-scope).
"""
return pulumi.get(self, "zone")
@zone.setter
def zone(self, value: pulumi.Input[str]):
pulumi.set(self, "zone", value)
@property
@pulumi.getter(name="assignPublicIp")
def assign_public_ip(self) -> Optional[pulumi.Input[bool]]:
"""
Sets whether the host should get a public IP address on creation. Can be either `true` or `false`.
"""
return pulumi.get(self, "assign_public_ip")
@assign_public_ip.setter
def assign_public_ip(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "assign_public_ip", value)
@property
@pulumi.getter
def fqdn(self) -> Optional[pulumi.Input[str]]:
"""
The fully qualified domain name of the host.
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "fqdn", value)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the subnet, to which the host belongs. The subnet must
be a part of the network to which the cluster belongs.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subnet_id", value)
@pulumi.input_type
class MdbGreenplumClusterAccessArgs:
def __init__(__self__, *,
data_lens: Optional[pulumi.Input[bool]] = None,
web_sql: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[bool] data_lens: Allow access for [Yandex DataLens](https://cloud.yandex.com/services/datalens).
:param pulumi.Input[bool] web_sql: Allows access for SQL queries in the management console
"""
if data_lens is not None:
pulumi.set(__self__, "data_lens", data_lens)
if web_sql is not None:
pulumi.set(__self__, "web_sql", web_sql)
@property
@pulumi.getter(name="dataLens")
def data_lens(self) -> Optional[pulumi.Input[bool]]:
"""
Allow access for [Yandex DataLens](https://cloud.yandex.com/services/datalens).
"""
return pulumi.get(self, "data_lens")
@data_lens.setter
def data_lens(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "data_lens", value)
@property
@pulumi.getter(name="webSql")
def web_sql(self) -> Optional[pulumi.Input[bool]]:
"""
Allows access for SQL queries in the management console
"""
return pulumi.get(self, "web_sql")
@web_sql.setter
def web_sql(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "web_sql", value)
@pulumi.input_type
class MdbGreenplumClusterBackupWindowStartArgs:
def __init__(__self__, *,
hours: Optional[pulumi.Input[int]] = None,
minutes: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] hours: The hour at which backup will be started (UTC).
:param pulumi.Input[int] minutes: The minute at which backup will be started (UTC).
"""
if hours is not None:
pulumi.set(__self__, "hours", hours)
if minutes is not None:
pulumi.set(__self__, "minutes", minutes)
@property
@pulumi.getter
def hours(self) -> Optional[pulumi.Input[int]]:
"""
The hour at which backup will be started (UTC).
"""
return pulumi.get(self, "hours")
@hours.setter
def hours(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "hours", value)
@property
@pulumi.getter
def minutes(self) -> Optional[pulumi.Input[int]]:
"""
The minute at which backup will be started (UTC).
"""
return pulumi.get(self, "minutes")
@minutes.setter
def minutes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "minutes", value)
@pulumi.input_type
class MdbGreenplumClusterMasterHostArgs:
def __init__(__self__, *,
assign_public_ip: Optional[pulumi.Input[bool]] = None,
fqdn: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[bool] assign_public_ip: Sets whether the master hosts should get a public IP address on creation. Changing this parameter for an existing host is not supported at the moment.
:param pulumi.Input[str] fqdn: (Computed) The fully qualified domain name of the host.
"""
if assign_public_ip is not None:
pulumi.set(__self__, "assign_public_ip", assign_public_ip)
if fqdn is not None:
pulumi.set(__self__, "fqdn", fqdn)
@property
@pulumi.getter(name="assignPublicIp")
def assign_public_ip(self) -> Optional[pulumi.Input[bool]]:
"""
Sets whether the master hosts should get a public IP address on creation. Changing this parameter for an existing host is not supported at the moment.
"""
return pulumi.get(self, "assign_public_ip")
@assign_public_ip.setter
def assign_public_ip(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "assign_public_ip", value)
@property
@pulumi.getter
def fqdn(self) -> Optional[pulumi.Input[str]]:
"""
(Computed) The fully qualified domain name of the host.
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "fqdn", value)
@pulumi.input_type
class MdbGreenplumClusterMasterSubclusterArgs:
def __init__(__self__, *,
resources: pulumi.Input['MdbGreenplumClusterMasterSubclusterResourcesArgs']):
"""
:param pulumi.Input['MdbGreenplumClusterMasterSubclusterResourcesArgs'] resources: Resources allocated to hosts for segment subcluster of the Greenplum cluster. The structure is documented below.
"""
pulumi.set(__self__, "resources", resources)
@property
@pulumi.getter
def resources(self) -> pulumi.Input['MdbGreenplumClusterMasterSubclusterResourcesArgs']:
"""
Resources allocated to hosts for segment subcluster of the Greenplum cluster. The structure is documented below.
"""
return pulumi.get(self, "resources")
@resources.setter
def resources(self, value: pulumi.Input['MdbGreenplumClusterMasterSubclusterResourcesArgs']):
pulumi.set(self, "resources", value)
@pulumi.input_type
class MdbGreenplumClusterMasterSubclusterResourcesArgs:
def __init__(__self__, *,
disk_size: pulumi.Input[int],
disk_type_id: pulumi.Input[str],
resource_preset_id: pulumi.Input[str]):
pulumi.set(__self__, "disk_size", disk_size)
pulumi.set(__self__, "disk_type_id", disk_type_id)
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> pulumi.Input[int]:
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: pulumi.Input[int]):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: pulumi.Input[str]):
pulumi.set(self, "disk_type_id", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_preset_id", value)
@pulumi.input_type
class MdbGreenplumClusterSegmentHostArgs:
def __init__(__self__, *,
fqdn: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] fqdn: (Computed) The fully qualified domain name of the host.
"""
if fqdn is not None:
pulumi.set(__self__, "fqdn", fqdn)
@property
@pulumi.getter
def fqdn(self) -> Optional[pulumi.Input[str]]:
"""
(Computed) The fully qualified domain name of the host.
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "fqdn", value)
@pulumi.input_type
class MdbGreenplumClusterSegmentSubclusterArgs:
def __init__(__self__, *,
resources: pulumi.Input['MdbGreenplumClusterSegmentSubclusterResourcesArgs']):
"""
:param pulumi.Input['MdbGreenplumClusterSegmentSubclusterResourcesArgs'] resources: Resources allocated to hosts for segment subcluster of the Greenplum cluster. The structure is documented below.
"""
pulumi.set(__self__, "resources", resources)
@property
@pulumi.getter
def resources(self) -> pulumi.Input['MdbGreenplumClusterSegmentSubclusterResourcesArgs']:
"""
Resources allocated to hosts for segment subcluster of the Greenplum cluster. The structure is documented below.
"""
return pulumi.get(self, "resources")
@resources.setter
def resources(self, value: pulumi.Input['MdbGreenplumClusterSegmentSubclusterResourcesArgs']):
pulumi.set(self, "resources", value)
@pulumi.input_type
class MdbGreenplumClusterSegmentSubclusterResourcesArgs:
def __init__(__self__, *,
disk_size: pulumi.Input[int],
disk_type_id: pulumi.Input[str],
resource_preset_id: pulumi.Input[str]):
pulumi.set(__self__, "disk_size", disk_size)
pulumi.set(__self__, "disk_type_id", disk_type_id)
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> pulumi.Input[int]:
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: pulumi.Input[int]):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: pulumi.Input[str]):
pulumi.set(self, "disk_type_id", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_preset_id", value)
@pulumi.input_type
class MdbKafkaClusterConfigArgs:
def __init__(__self__, *,
kafka: pulumi.Input['MdbKafkaClusterConfigKafkaArgs'],
version: pulumi.Input[str],
zones: pulumi.Input[Sequence[pulumi.Input[str]]],
assign_public_ip: Optional[pulumi.Input[bool]] = None,
brokers_count: Optional[pulumi.Input[int]] = None,
schema_registry: Optional[pulumi.Input[bool]] = None,
unmanaged_topics: Optional[pulumi.Input[bool]] = None,
zookeeper: Optional[pulumi.Input['MdbKafkaClusterConfigZookeeperArgs']] = None):
"""
:param pulumi.Input['MdbKafkaClusterConfigKafkaArgs'] kafka: Configuration of the Kafka subcluster. The structure is documented below.
:param pulumi.Input[str] version: Version of the Kafka server software.
:param pulumi.Input[Sequence[pulumi.Input[str]]] zones: List of availability zones.
:param pulumi.Input[bool] assign_public_ip: Determines whether each broker will be assigned a public IP address. The default is `false`.
:param pulumi.Input[int] brokers_count: Count of brokers per availability zone. The default is `1`.
:param pulumi.Input[bool] schema_registry: Enables managed schema registry on cluster. The default is `false`.
:param pulumi.Input[bool] unmanaged_topics: Allows to use Kafka AdminAPI to manage topics. The default is `false`.
:param pulumi.Input['MdbKafkaClusterConfigZookeeperArgs'] zookeeper: Configuration of the ZooKeeper subcluster. The structure is documented below.
"""
pulumi.set(__self__, "kafka", kafka)
pulumi.set(__self__, "version", version)
pulumi.set(__self__, "zones", zones)
if assign_public_ip is not None:
pulumi.set(__self__, "assign_public_ip", assign_public_ip)
if brokers_count is not None:
pulumi.set(__self__, "brokers_count", brokers_count)
if schema_registry is not None:
pulumi.set(__self__, "schema_registry", schema_registry)
if unmanaged_topics is not None:
pulumi.set(__self__, "unmanaged_topics", unmanaged_topics)
if zookeeper is not None:
pulumi.set(__self__, "zookeeper", zookeeper)
@property
@pulumi.getter
def kafka(self) -> pulumi.Input['MdbKafkaClusterConfigKafkaArgs']:
"""
Configuration of the Kafka subcluster. The structure is documented below.
"""
return pulumi.get(self, "kafka")
@kafka.setter
def kafka(self, value: pulumi.Input['MdbKafkaClusterConfigKafkaArgs']):
pulumi.set(self, "kafka", value)
@property
@pulumi.getter
def version(self) -> pulumi.Input[str]:
"""
Version of the Kafka server software.
"""
return pulumi.get(self, "version")
@version.setter
def version(self, value: pulumi.Input[str]):
pulumi.set(self, "version", value)
@property
@pulumi.getter
def zones(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
List of availability zones.
"""
return pulumi.get(self, "zones")
@zones.setter
def zones(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "zones", value)
@property
@pulumi.getter(name="assignPublicIp")
def assign_public_ip(self) -> Optional[pulumi.Input[bool]]:
"""
Determines whether each broker will be assigned a public IP address. The default is `false`.
"""
return pulumi.get(self, "assign_public_ip")
@assign_public_ip.setter
def assign_public_ip(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "assign_public_ip", value)
@property
@pulumi.getter(name="brokersCount")
def brokers_count(self) -> Optional[pulumi.Input[int]]:
"""
Count of brokers per availability zone. The default is `1`.
"""
return pulumi.get(self, "brokers_count")
@brokers_count.setter
def brokers_count(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "brokers_count", value)
@property
@pulumi.getter(name="schemaRegistry")
def schema_registry(self) -> Optional[pulumi.Input[bool]]:
"""
Enables managed schema registry on cluster. The default is `false`.
"""
return pulumi.get(self, "schema_registry")
@schema_registry.setter
def schema_registry(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "schema_registry", value)
@property
@pulumi.getter(name="unmanagedTopics")
def unmanaged_topics(self) -> Optional[pulumi.Input[bool]]:
"""
Allows to use Kafka AdminAPI to manage topics. The default is `false`.
"""
return pulumi.get(self, "unmanaged_topics")
@unmanaged_topics.setter
def unmanaged_topics(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "unmanaged_topics", value)
@property
@pulumi.getter
def zookeeper(self) -> Optional[pulumi.Input['MdbKafkaClusterConfigZookeeperArgs']]:
"""
Configuration of the ZooKeeper subcluster. The structure is documented below.
"""
return pulumi.get(self, "zookeeper")
@zookeeper.setter
def zookeeper(self, value: Optional[pulumi.Input['MdbKafkaClusterConfigZookeeperArgs']]):
pulumi.set(self, "zookeeper", value)
@pulumi.input_type
class MdbKafkaClusterConfigKafkaArgs:
def __init__(__self__, *,
resources: pulumi.Input['MdbKafkaClusterConfigKafkaResourcesArgs'],
kafka_config: Optional[pulumi.Input['MdbKafkaClusterConfigKafkaKafkaConfigArgs']] = None):
"""
:param pulumi.Input['MdbKafkaClusterConfigKafkaResourcesArgs'] resources: Resources allocated to hosts of the ZooKeeper subcluster. The structure is documented below.
:param pulumi.Input['MdbKafkaClusterConfigKafkaKafkaConfigArgs'] kafka_config: User-defined settings for the Kafka cluster. The structure is documented below.
"""
pulumi.set(__self__, "resources", resources)
if kafka_config is not None:
pulumi.set(__self__, "kafka_config", kafka_config)
@property
@pulumi.getter
def resources(self) -> pulumi.Input['MdbKafkaClusterConfigKafkaResourcesArgs']:
"""
Resources allocated to hosts of the ZooKeeper subcluster. The structure is documented below.
"""
return pulumi.get(self, "resources")
@resources.setter
def resources(self, value: pulumi.Input['MdbKafkaClusterConfigKafkaResourcesArgs']):
pulumi.set(self, "resources", value)
@property
@pulumi.getter(name="kafkaConfig")
def kafka_config(self) -> Optional[pulumi.Input['MdbKafkaClusterConfigKafkaKafkaConfigArgs']]:
"""
User-defined settings for the Kafka cluster. The structure is documented below.
"""
return pulumi.get(self, "kafka_config")
@kafka_config.setter
def kafka_config(self, value: Optional[pulumi.Input['MdbKafkaClusterConfigKafkaKafkaConfigArgs']]):
pulumi.set(self, "kafka_config", value)
@pulumi.input_type
class MdbKafkaClusterConfigKafkaKafkaConfigArgs:
def __init__(__self__, *,
auto_create_topics_enable: Optional[pulumi.Input[bool]] = None,
compression_type: Optional[pulumi.Input[str]] = None,
default_replication_factor: Optional[pulumi.Input[str]] = None,
log_flush_interval_messages: Optional[pulumi.Input[str]] = None,
log_flush_interval_ms: Optional[pulumi.Input[str]] = None,
log_flush_scheduler_interval_ms: Optional[pulumi.Input[str]] = None,
log_preallocate: Optional[pulumi.Input[bool]] = None,
log_retention_bytes: Optional[pulumi.Input[str]] = None,
log_retention_hours: Optional[pulumi.Input[str]] = None,
log_retention_minutes: Optional[pulumi.Input[str]] = None,
log_retention_ms: Optional[pulumi.Input[str]] = None,
log_segment_bytes: Optional[pulumi.Input[str]] = None,
num_partitions: Optional[pulumi.Input[str]] = None,
socket_receive_buffer_bytes: Optional[pulumi.Input[str]] = None,
socket_send_buffer_bytes: Optional[pulumi.Input[str]] = None):
if auto_create_topics_enable is not None:
pulumi.set(__self__, "auto_create_topics_enable", auto_create_topics_enable)
if compression_type is not None:
pulumi.set(__self__, "compression_type", compression_type)
if default_replication_factor is not None:
pulumi.set(__self__, "default_replication_factor", default_replication_factor)
if log_flush_interval_messages is not None:
pulumi.set(__self__, "log_flush_interval_messages", log_flush_interval_messages)
if log_flush_interval_ms is not None:
pulumi.set(__self__, "log_flush_interval_ms", log_flush_interval_ms)
if log_flush_scheduler_interval_ms is not None:
pulumi.set(__self__, "log_flush_scheduler_interval_ms", log_flush_scheduler_interval_ms)
if log_preallocate is not None:
pulumi.set(__self__, "log_preallocate", log_preallocate)
if log_retention_bytes is not None:
pulumi.set(__self__, "log_retention_bytes", log_retention_bytes)
if log_retention_hours is not None:
pulumi.set(__self__, "log_retention_hours", log_retention_hours)
if log_retention_minutes is not None:
pulumi.set(__self__, "log_retention_minutes", log_retention_minutes)
if log_retention_ms is not None:
pulumi.set(__self__, "log_retention_ms", log_retention_ms)
if log_segment_bytes is not None:
pulumi.set(__self__, "log_segment_bytes", log_segment_bytes)
if num_partitions is not None:
pulumi.set(__self__, "num_partitions", num_partitions)
if socket_receive_buffer_bytes is not None:
pulumi.set(__self__, "socket_receive_buffer_bytes", socket_receive_buffer_bytes)
if socket_send_buffer_bytes is not None:
pulumi.set(__self__, "socket_send_buffer_bytes", socket_send_buffer_bytes)
@property
@pulumi.getter(name="autoCreateTopicsEnable")
def auto_create_topics_enable(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "auto_create_topics_enable")
@auto_create_topics_enable.setter
def auto_create_topics_enable(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "auto_create_topics_enable", value)
@property
@pulumi.getter(name="compressionType")
def compression_type(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "compression_type")
@compression_type.setter
def compression_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "compression_type", value)
@property
@pulumi.getter(name="defaultReplicationFactor")
def default_replication_factor(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "default_replication_factor")
@default_replication_factor.setter
def default_replication_factor(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "default_replication_factor", value)
@property
@pulumi.getter(name="logFlushIntervalMessages")
def log_flush_interval_messages(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "log_flush_interval_messages")
@log_flush_interval_messages.setter
def log_flush_interval_messages(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "log_flush_interval_messages", value)
@property
@pulumi.getter(name="logFlushIntervalMs")
def log_flush_interval_ms(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "log_flush_interval_ms")
@log_flush_interval_ms.setter
def log_flush_interval_ms(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "log_flush_interval_ms", value)
@property
@pulumi.getter(name="logFlushSchedulerIntervalMs")
def log_flush_scheduler_interval_ms(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "log_flush_scheduler_interval_ms")
@log_flush_scheduler_interval_ms.setter
def log_flush_scheduler_interval_ms(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "log_flush_scheduler_interval_ms", value)
@property
@pulumi.getter(name="logPreallocate")
def log_preallocate(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "log_preallocate")
@log_preallocate.setter
def log_preallocate(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "log_preallocate", value)
@property
@pulumi.getter(name="logRetentionBytes")
def log_retention_bytes(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "log_retention_bytes")
@log_retention_bytes.setter
def log_retention_bytes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "log_retention_bytes", value)
@property
@pulumi.getter(name="logRetentionHours")
def log_retention_hours(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "log_retention_hours")
@log_retention_hours.setter
def log_retention_hours(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "log_retention_hours", value)
@property
@pulumi.getter(name="logRetentionMinutes")
def log_retention_minutes(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "log_retention_minutes")
@log_retention_minutes.setter
def log_retention_minutes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "log_retention_minutes", value)
@property
@pulumi.getter(name="logRetentionMs")
def log_retention_ms(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "log_retention_ms")
@log_retention_ms.setter
def log_retention_ms(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "log_retention_ms", value)
@property
@pulumi.getter(name="logSegmentBytes")
def log_segment_bytes(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "log_segment_bytes")
@log_segment_bytes.setter
def log_segment_bytes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "log_segment_bytes", value)
@property
@pulumi.getter(name="numPartitions")
def num_partitions(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "num_partitions")
@num_partitions.setter
def num_partitions(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "num_partitions", value)
@property
@pulumi.getter(name="socketReceiveBufferBytes")
def socket_receive_buffer_bytes(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "socket_receive_buffer_bytes")
@socket_receive_buffer_bytes.setter
def socket_receive_buffer_bytes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "socket_receive_buffer_bytes", value)
@property
@pulumi.getter(name="socketSendBufferBytes")
def socket_send_buffer_bytes(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "socket_send_buffer_bytes")
@socket_send_buffer_bytes.setter
def socket_send_buffer_bytes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "socket_send_buffer_bytes", value)
@pulumi.input_type
class MdbKafkaClusterConfigKafkaResourcesArgs:
def __init__(__self__, *,
disk_size: pulumi.Input[int],
disk_type_id: pulumi.Input[str],
resource_preset_id: pulumi.Input[str]):
"""
:param pulumi.Input[int] disk_size: Volume of the storage available to a ZooKeeper host, in gigabytes.
:param pulumi.Input[str] disk_type_id: Type of the storage of ZooKeeper hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-kafka/concepts/storage).
"""
pulumi.set(__self__, "disk_size", disk_size)
pulumi.set(__self__, "disk_type_id", disk_type_id)
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> pulumi.Input[int]:
"""
Volume of the storage available to a ZooKeeper host, in gigabytes.
"""
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: pulumi.Input[int]):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> pulumi.Input[str]:
"""
Type of the storage of ZooKeeper hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-kafka/concepts/storage).
"""
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: pulumi.Input[str]):
pulumi.set(self, "disk_type_id", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_preset_id", value)
@pulumi.input_type
class MdbKafkaClusterConfigZookeeperArgs:
def __init__(__self__, *,
resources: Optional[pulumi.Input['MdbKafkaClusterConfigZookeeperResourcesArgs']] = None):
"""
:param pulumi.Input['MdbKafkaClusterConfigZookeeperResourcesArgs'] resources: Resources allocated to hosts of the ZooKeeper subcluster. The structure is documented below.
"""
if resources is not None:
pulumi.set(__self__, "resources", resources)
@property
@pulumi.getter
def resources(self) -> Optional[pulumi.Input['MdbKafkaClusterConfigZookeeperResourcesArgs']]:
"""
Resources allocated to hosts of the ZooKeeper subcluster. The structure is documented below.
"""
return pulumi.get(self, "resources")
@resources.setter
def resources(self, value: Optional[pulumi.Input['MdbKafkaClusterConfigZookeeperResourcesArgs']]):
pulumi.set(self, "resources", value)
@pulumi.input_type
class MdbKafkaClusterConfigZookeeperResourcesArgs:
def __init__(__self__, *,
disk_size: Optional[pulumi.Input[int]] = None,
disk_type_id: Optional[pulumi.Input[str]] = None,
resource_preset_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] disk_size: Volume of the storage available to a ZooKeeper host, in gigabytes.
:param pulumi.Input[str] disk_type_id: Type of the storage of ZooKeeper hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-kafka/concepts/storage).
"""
if disk_size is not None:
pulumi.set(__self__, "disk_size", disk_size)
if disk_type_id is not None:
pulumi.set(__self__, "disk_type_id", disk_type_id)
if resource_preset_id is not None:
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> Optional[pulumi.Input[int]]:
"""
Volume of the storage available to a ZooKeeper host, in gigabytes.
"""
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> Optional[pulumi.Input[str]]:
"""
Type of the storage of ZooKeeper hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-kafka/concepts/storage).
"""
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "disk_type_id", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "resource_preset_id", value)
@pulumi.input_type
class MdbKafkaClusterHostArgs:
def __init__(__self__, *,
assign_public_ip: Optional[pulumi.Input[bool]] = None,
health: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
role: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[bool] assign_public_ip: Determines whether each broker will be assigned a public IP address. The default is `false`.
:param pulumi.Input[str] health: Health of the host.
:param pulumi.Input[str] name: The name of the topic.
:param pulumi.Input[str] role: The role type to grant to the topic.
:param pulumi.Input[str] subnet_id: The ID of the subnet, to which the host belongs.
:param pulumi.Input[str] zone_id: The availability zone where the Kafka host was created.
"""
if assign_public_ip is not None:
pulumi.set(__self__, "assign_public_ip", assign_public_ip)
if health is not None:
pulumi.set(__self__, "health", health)
if name is not None:
pulumi.set(__self__, "name", name)
if role is not None:
pulumi.set(__self__, "role", role)
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
if zone_id is not None:
pulumi.set(__self__, "zone_id", zone_id)
@property
@pulumi.getter(name="assignPublicIp")
def assign_public_ip(self) -> Optional[pulumi.Input[bool]]:
"""
Determines whether each broker will be assigned a public IP address. The default is `false`.
"""
return pulumi.get(self, "assign_public_ip")
@assign_public_ip.setter
def assign_public_ip(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "assign_public_ip", value)
@property
@pulumi.getter
def health(self) -> Optional[pulumi.Input[str]]:
"""
Health of the host.
"""
return pulumi.get(self, "health")
@health.setter
def health(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "health", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the topic.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def role(self) -> Optional[pulumi.Input[str]]:
"""
The role type to grant to the topic.
"""
return pulumi.get(self, "role")
@role.setter
def role(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "role", value)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the subnet, to which the host belongs.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subnet_id", value)
@property
@pulumi.getter(name="zoneId")
def zone_id(self) -> Optional[pulumi.Input[str]]:
"""
The availability zone where the Kafka host was created.
"""
return pulumi.get(self, "zone_id")
@zone_id.setter
def zone_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "zone_id", value)
@pulumi.input_type
class MdbKafkaClusterTopicArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
partitions: pulumi.Input[int],
replication_factor: pulumi.Input[int],
topic_config: Optional[pulumi.Input['MdbKafkaClusterTopicTopicConfigArgs']] = None):
"""
:param pulumi.Input[str] name: The name of the topic.
:param pulumi.Input[int] partitions: The number of the topic's partitions.
:param pulumi.Input[int] replication_factor: Amount of data copies (replicas) for the topic in the cluster.
:param pulumi.Input['MdbKafkaClusterTopicTopicConfigArgs'] topic_config: User-defined settings for the topic. The structure is documented below.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "partitions", partitions)
pulumi.set(__self__, "replication_factor", replication_factor)
if topic_config is not None:
pulumi.set(__self__, "topic_config", topic_config)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
The name of the topic.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def partitions(self) -> pulumi.Input[int]:
"""
The number of the topic's partitions.
"""
return pulumi.get(self, "partitions")
@partitions.setter
def partitions(self, value: pulumi.Input[int]):
pulumi.set(self, "partitions", value)
@property
@pulumi.getter(name="replicationFactor")
def replication_factor(self) -> pulumi.Input[int]:
"""
Amount of data copies (replicas) for the topic in the cluster.
"""
return pulumi.get(self, "replication_factor")
@replication_factor.setter
def replication_factor(self, value: pulumi.Input[int]):
pulumi.set(self, "replication_factor", value)
@property
@pulumi.getter(name="topicConfig")
def topic_config(self) -> Optional[pulumi.Input['MdbKafkaClusterTopicTopicConfigArgs']]:
"""
User-defined settings for the topic. The structure is documented below.
"""
return pulumi.get(self, "topic_config")
@topic_config.setter
def topic_config(self, value: Optional[pulumi.Input['MdbKafkaClusterTopicTopicConfigArgs']]):
pulumi.set(self, "topic_config", value)
@pulumi.input_type
class MdbKafkaClusterTopicTopicConfigArgs:
def __init__(__self__, *,
cleanup_policy: Optional[pulumi.Input[str]] = None,
compression_type: Optional[pulumi.Input[str]] = None,
delete_retention_ms: Optional[pulumi.Input[str]] = None,
file_delete_delay_ms: Optional[pulumi.Input[str]] = None,
flush_messages: Optional[pulumi.Input[str]] = None,
flush_ms: Optional[pulumi.Input[str]] = None,
max_message_bytes: Optional[pulumi.Input[str]] = None,
min_compaction_lag_ms: Optional[pulumi.Input[str]] = None,
min_insync_replicas: Optional[pulumi.Input[str]] = None,
preallocate: Optional[pulumi.Input[bool]] = None,
retention_bytes: Optional[pulumi.Input[str]] = None,
retention_ms: Optional[pulumi.Input[str]] = None,
segment_bytes: Optional[pulumi.Input[str]] = None):
if cleanup_policy is not None:
pulumi.set(__self__, "cleanup_policy", cleanup_policy)
if compression_type is not None:
pulumi.set(__self__, "compression_type", compression_type)
if delete_retention_ms is not None:
pulumi.set(__self__, "delete_retention_ms", delete_retention_ms)
if file_delete_delay_ms is not None:
pulumi.set(__self__, "file_delete_delay_ms", file_delete_delay_ms)
if flush_messages is not None:
pulumi.set(__self__, "flush_messages", flush_messages)
if flush_ms is not None:
pulumi.set(__self__, "flush_ms", flush_ms)
if max_message_bytes is not None:
pulumi.set(__self__, "max_message_bytes", max_message_bytes)
if min_compaction_lag_ms is not None:
pulumi.set(__self__, "min_compaction_lag_ms", min_compaction_lag_ms)
if min_insync_replicas is not None:
pulumi.set(__self__, "min_insync_replicas", min_insync_replicas)
if preallocate is not None:
pulumi.set(__self__, "preallocate", preallocate)
if retention_bytes is not None:
pulumi.set(__self__, "retention_bytes", retention_bytes)
if retention_ms is not None:
pulumi.set(__self__, "retention_ms", retention_ms)
if segment_bytes is not None:
pulumi.set(__self__, "segment_bytes", segment_bytes)
@property
@pulumi.getter(name="cleanupPolicy")
def cleanup_policy(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "cleanup_policy")
@cleanup_policy.setter
def cleanup_policy(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cleanup_policy", value)
@property
@pulumi.getter(name="compressionType")
def compression_type(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "compression_type")
@compression_type.setter
def compression_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "compression_type", value)
@property
@pulumi.getter(name="deleteRetentionMs")
def delete_retention_ms(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "delete_retention_ms")
@delete_retention_ms.setter
def delete_retention_ms(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "delete_retention_ms", value)
@property
@pulumi.getter(name="fileDeleteDelayMs")
def file_delete_delay_ms(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "file_delete_delay_ms")
@file_delete_delay_ms.setter
def file_delete_delay_ms(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "file_delete_delay_ms", value)
@property
@pulumi.getter(name="flushMessages")
def flush_messages(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "flush_messages")
@flush_messages.setter
def flush_messages(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "flush_messages", value)
@property
@pulumi.getter(name="flushMs")
def flush_ms(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "flush_ms")
@flush_ms.setter
def flush_ms(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "flush_ms", value)
@property
@pulumi.getter(name="maxMessageBytes")
def max_message_bytes(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "max_message_bytes")
@max_message_bytes.setter
def max_message_bytes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "max_message_bytes", value)
@property
@pulumi.getter(name="minCompactionLagMs")
def min_compaction_lag_ms(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "min_compaction_lag_ms")
@min_compaction_lag_ms.setter
def min_compaction_lag_ms(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "min_compaction_lag_ms", value)
@property
@pulumi.getter(name="minInsyncReplicas")
def min_insync_replicas(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "min_insync_replicas")
@min_insync_replicas.setter
def min_insync_replicas(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "min_insync_replicas", value)
@property
@pulumi.getter
def preallocate(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "preallocate")
@preallocate.setter
def preallocate(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "preallocate", value)
@property
@pulumi.getter(name="retentionBytes")
def retention_bytes(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "retention_bytes")
@retention_bytes.setter
def retention_bytes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "retention_bytes", value)
@property
@pulumi.getter(name="retentionMs")
def retention_ms(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "retention_ms")
@retention_ms.setter
def retention_ms(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "retention_ms", value)
@property
@pulumi.getter(name="segmentBytes")
def segment_bytes(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "segment_bytes")
@segment_bytes.setter
def segment_bytes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "segment_bytes", value)
@pulumi.input_type
class MdbKafkaClusterUserArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
password: pulumi.Input[str],
permissions: Optional[pulumi.Input[Sequence[pulumi.Input['MdbKafkaClusterUserPermissionArgs']]]] = None):
"""
:param pulumi.Input[str] name: The name of the topic.
:param pulumi.Input[str] password: The password of the user.
:param pulumi.Input[Sequence[pulumi.Input['MdbKafkaClusterUserPermissionArgs']]] permissions: Set of permissions granted to the user. The structure is documented below.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "password", password)
if permissions is not None:
pulumi.set(__self__, "permissions", permissions)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
The name of the topic.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def password(self) -> pulumi.Input[str]:
"""
The password of the user.
"""
return pulumi.get(self, "password")
@password.setter
def password(self, value: pulumi.Input[str]):
pulumi.set(self, "password", value)
@property
@pulumi.getter
def permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MdbKafkaClusterUserPermissionArgs']]]]:
"""
Set of permissions granted to the user. The structure is documented below.
"""
return pulumi.get(self, "permissions")
@permissions.setter
def permissions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MdbKafkaClusterUserPermissionArgs']]]]):
pulumi.set(self, "permissions", value)
@pulumi.input_type
class MdbKafkaClusterUserPermissionArgs:
def __init__(__self__, *,
role: pulumi.Input[str],
topic_name: pulumi.Input[str]):
"""
:param pulumi.Input[str] role: The role type to grant to the topic.
:param pulumi.Input[str] topic_name: The name of the topic that the permission grants access to.
"""
pulumi.set(__self__, "role", role)
pulumi.set(__self__, "topic_name", topic_name)
@property
@pulumi.getter
def role(self) -> pulumi.Input[str]:
"""
The role type to grant to the topic.
"""
return pulumi.get(self, "role")
@role.setter
def role(self, value: pulumi.Input[str]):
pulumi.set(self, "role", value)
@property
@pulumi.getter(name="topicName")
def topic_name(self) -> pulumi.Input[str]:
"""
The name of the topic that the permission grants access to.
"""
return pulumi.get(self, "topic_name")
@topic_name.setter
def topic_name(self, value: pulumi.Input[str]):
pulumi.set(self, "topic_name", value)
@pulumi.input_type
class MdbKafkaTopicTopicConfigArgs:
def __init__(__self__, *,
cleanup_policy: Optional[pulumi.Input[str]] = None,
compression_type: Optional[pulumi.Input[str]] = None,
delete_retention_ms: Optional[pulumi.Input[str]] = None,
file_delete_delay_ms: Optional[pulumi.Input[str]] = None,
flush_messages: Optional[pulumi.Input[str]] = None,
flush_ms: Optional[pulumi.Input[str]] = None,
max_message_bytes: Optional[pulumi.Input[str]] = None,
min_compaction_lag_ms: Optional[pulumi.Input[str]] = None,
min_insync_replicas: Optional[pulumi.Input[str]] = None,
preallocate: Optional[pulumi.Input[bool]] = None,
retention_bytes: Optional[pulumi.Input[str]] = None,
retention_ms: Optional[pulumi.Input[str]] = None,
segment_bytes: Optional[pulumi.Input[str]] = None):
if cleanup_policy is not None:
pulumi.set(__self__, "cleanup_policy", cleanup_policy)
if compression_type is not None:
pulumi.set(__self__, "compression_type", compression_type)
if delete_retention_ms is not None:
pulumi.set(__self__, "delete_retention_ms", delete_retention_ms)
if file_delete_delay_ms is not None:
pulumi.set(__self__, "file_delete_delay_ms", file_delete_delay_ms)
if flush_messages is not None:
pulumi.set(__self__, "flush_messages", flush_messages)
if flush_ms is not None:
pulumi.set(__self__, "flush_ms", flush_ms)
if max_message_bytes is not None:
pulumi.set(__self__, "max_message_bytes", max_message_bytes)
if min_compaction_lag_ms is not None:
pulumi.set(__self__, "min_compaction_lag_ms", min_compaction_lag_ms)
if min_insync_replicas is not None:
pulumi.set(__self__, "min_insync_replicas", min_insync_replicas)
if preallocate is not None:
pulumi.set(__self__, "preallocate", preallocate)
if retention_bytes is not None:
pulumi.set(__self__, "retention_bytes", retention_bytes)
if retention_ms is not None:
pulumi.set(__self__, "retention_ms", retention_ms)
if segment_bytes is not None:
pulumi.set(__self__, "segment_bytes", segment_bytes)
@property
@pulumi.getter(name="cleanupPolicy")
def cleanup_policy(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "cleanup_policy")
@cleanup_policy.setter
def cleanup_policy(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cleanup_policy", value)
@property
@pulumi.getter(name="compressionType")
def compression_type(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "compression_type")
@compression_type.setter
def compression_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "compression_type", value)
@property
@pulumi.getter(name="deleteRetentionMs")
def delete_retention_ms(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "delete_retention_ms")
@delete_retention_ms.setter
def delete_retention_ms(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "delete_retention_ms", value)
@property
@pulumi.getter(name="fileDeleteDelayMs")
def file_delete_delay_ms(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "file_delete_delay_ms")
@file_delete_delay_ms.setter
def file_delete_delay_ms(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "file_delete_delay_ms", value)
@property
@pulumi.getter(name="flushMessages")
def flush_messages(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "flush_messages")
@flush_messages.setter
def flush_messages(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "flush_messages", value)
@property
@pulumi.getter(name="flushMs")
def flush_ms(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "flush_ms")
@flush_ms.setter
def flush_ms(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "flush_ms", value)
@property
@pulumi.getter(name="maxMessageBytes")
def max_message_bytes(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "max_message_bytes")
@max_message_bytes.setter
def max_message_bytes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "max_message_bytes", value)
@property
@pulumi.getter(name="minCompactionLagMs")
def min_compaction_lag_ms(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "min_compaction_lag_ms")
@min_compaction_lag_ms.setter
def min_compaction_lag_ms(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "min_compaction_lag_ms", value)
@property
@pulumi.getter(name="minInsyncReplicas")
def min_insync_replicas(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "min_insync_replicas")
@min_insync_replicas.setter
def min_insync_replicas(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "min_insync_replicas", value)
@property
@pulumi.getter
def preallocate(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "preallocate")
@preallocate.setter
def preallocate(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "preallocate", value)
@property
@pulumi.getter(name="retentionBytes")
def retention_bytes(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "retention_bytes")
@retention_bytes.setter
def retention_bytes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "retention_bytes", value)
@property
@pulumi.getter(name="retentionMs")
def retention_ms(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "retention_ms")
@retention_ms.setter
def retention_ms(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "retention_ms", value)
@property
@pulumi.getter(name="segmentBytes")
def segment_bytes(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "segment_bytes")
@segment_bytes.setter
def segment_bytes(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "segment_bytes", value)
@pulumi.input_type
class MdbMongodbClusterClusterConfigArgs:
def __init__(__self__, *,
version: pulumi.Input[str],
access: Optional[pulumi.Input['MdbMongodbClusterClusterConfigAccessArgs']] = None,
backup_window_start: Optional[pulumi.Input['MdbMongodbClusterClusterConfigBackupWindowStartArgs']] = None,
feature_compatibility_version: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] version: Version of MongoDB (either 5.0, 4.4, 4.2 or 4.0).
:param pulumi.Input['MdbMongodbClusterClusterConfigAccessArgs'] access: Shows whether cluster has access to data lens. The structure is documented below.
:param pulumi.Input['MdbMongodbClusterClusterConfigBackupWindowStartArgs'] backup_window_start: Time to start the daily backup, in the UTC timezone. The structure is documented below.
:param pulumi.Input[str] feature_compatibility_version: Feature compatibility version of MongoDB. If not provided version is taken. Can be either `5.0`, `4.4`, `4.2` and `4.0`.
"""
pulumi.set(__self__, "version", version)
if access is not None:
pulumi.set(__self__, "access", access)
if backup_window_start is not None:
pulumi.set(__self__, "backup_window_start", backup_window_start)
if feature_compatibility_version is not None:
pulumi.set(__self__, "feature_compatibility_version", feature_compatibility_version)
@property
@pulumi.getter
def version(self) -> pulumi.Input[str]:
"""
Version of MongoDB (either 5.0, 4.4, 4.2 or 4.0).
"""
return pulumi.get(self, "version")
@version.setter
def version(self, value: pulumi.Input[str]):
pulumi.set(self, "version", value)
@property
@pulumi.getter
def access(self) -> Optional[pulumi.Input['MdbMongodbClusterClusterConfigAccessArgs']]:
"""
Shows whether cluster has access to data lens. The structure is documented below.
"""
return pulumi.get(self, "access")
@access.setter
def access(self, value: Optional[pulumi.Input['MdbMongodbClusterClusterConfigAccessArgs']]):
pulumi.set(self, "access", value)
@property
@pulumi.getter(name="backupWindowStart")
def backup_window_start(self) -> Optional[pulumi.Input['MdbMongodbClusterClusterConfigBackupWindowStartArgs']]:
"""
Time to start the daily backup, in the UTC timezone. The structure is documented below.
"""
return pulumi.get(self, "backup_window_start")
@backup_window_start.setter
def backup_window_start(self, value: Optional[pulumi.Input['MdbMongodbClusterClusterConfigBackupWindowStartArgs']]):
pulumi.set(self, "backup_window_start", value)
@property
@pulumi.getter(name="featureCompatibilityVersion")
def feature_compatibility_version(self) -> Optional[pulumi.Input[str]]:
"""
Feature compatibility version of MongoDB. If not provided version is taken. Can be either `5.0`, `4.4`, `4.2` and `4.0`.
"""
return pulumi.get(self, "feature_compatibility_version")
@feature_compatibility_version.setter
def feature_compatibility_version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "feature_compatibility_version", value)
@pulumi.input_type
class MdbMongodbClusterClusterConfigAccessArgs:
def __init__(__self__, *,
data_lens: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[bool] data_lens: Allow access for DataLens.
"""
if data_lens is not None:
pulumi.set(__self__, "data_lens", data_lens)
@property
@pulumi.getter(name="dataLens")
def data_lens(self) -> Optional[pulumi.Input[bool]]:
"""
Allow access for DataLens.
"""
return pulumi.get(self, "data_lens")
@data_lens.setter
def data_lens(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "data_lens", value)
@pulumi.input_type
class MdbMongodbClusterClusterConfigBackupWindowStartArgs:
def __init__(__self__, *,
hours: Optional[pulumi.Input[int]] = None,
minutes: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] hours: The hour at which backup will be started.
:param pulumi.Input[int] minutes: The minute at which backup will be started.
"""
if hours is not None:
pulumi.set(__self__, "hours", hours)
if minutes is not None:
pulumi.set(__self__, "minutes", minutes)
@property
@pulumi.getter
def hours(self) -> Optional[pulumi.Input[int]]:
"""
The hour at which backup will be started.
"""
return pulumi.get(self, "hours")
@hours.setter
def hours(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "hours", value)
@property
@pulumi.getter
def minutes(self) -> Optional[pulumi.Input[int]]:
"""
The minute at which backup will be started.
"""
return pulumi.get(self, "minutes")
@minutes.setter
def minutes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "minutes", value)
@pulumi.input_type
class MdbMongodbClusterDatabaseArgs:
def __init__(__self__, *,
name: pulumi.Input[str]):
"""
:param pulumi.Input[str] name: The fully qualified domain name of the host. Computed on server side.
"""
pulumi.set(__self__, "name", name)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
The fully qualified domain name of the host. Computed on server side.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@pulumi.input_type
class MdbMongodbClusterHostArgs:
def __init__(__self__, *,
subnet_id: pulumi.Input[str],
zone_id: pulumi.Input[str],
assign_public_ip: Optional[pulumi.Input[bool]] = None,
health: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
role: Optional[pulumi.Input[str]] = None,
shard_name: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] subnet_id: The ID of the subnet, to which the host belongs. The subnet must
be a part of the network to which the cluster belongs.
:param pulumi.Input[str] zone_id: The availability zone where the MongoDB host will be created.
For more information see [the official documentation](https://cloud.yandex.com/docs/overview/concepts/geo-scope).
:param pulumi.Input[bool] assign_public_ip: -(Optional) Should this host have assigned public IP assigned. Can be either `true` or `false`.
:param pulumi.Input[str] health: The health of the host.
:param pulumi.Input[str] name: The fully qualified domain name of the host. Computed on server side.
:param pulumi.Input[str] role: The role of the cluster (either PRIMARY or SECONDARY).
:param pulumi.Input[str] shard_name: The name of the shard to which the host belongs.
:param pulumi.Input[str] type: Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
"""
pulumi.set(__self__, "subnet_id", subnet_id)
pulumi.set(__self__, "zone_id", zone_id)
if assign_public_ip is not None:
pulumi.set(__self__, "assign_public_ip", assign_public_ip)
if health is not None:
pulumi.set(__self__, "health", health)
if name is not None:
pulumi.set(__self__, "name", name)
if role is not None:
pulumi.set(__self__, "role", role)
if shard_name is not None:
pulumi.set(__self__, "shard_name", shard_name)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> pulumi.Input[str]:
"""
The ID of the subnet, to which the host belongs. The subnet must
be a part of the network to which the cluster belongs.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: pulumi.Input[str]):
pulumi.set(self, "subnet_id", value)
@property
@pulumi.getter(name="zoneId")
def zone_id(self) -> pulumi.Input[str]:
"""
The availability zone where the MongoDB host will be created.
For more information see [the official documentation](https://cloud.yandex.com/docs/overview/concepts/geo-scope).
"""
return pulumi.get(self, "zone_id")
@zone_id.setter
def zone_id(self, value: pulumi.Input[str]):
pulumi.set(self, "zone_id", value)
@property
@pulumi.getter(name="assignPublicIp")
def assign_public_ip(self) -> Optional[pulumi.Input[bool]]:
"""
-(Optional) Should this host have assigned public IP assigned. Can be either `true` or `false`.
"""
return pulumi.get(self, "assign_public_ip")
@assign_public_ip.setter
def assign_public_ip(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "assign_public_ip", value)
@property
@pulumi.getter
def health(self) -> Optional[pulumi.Input[str]]:
"""
The health of the host.
"""
return pulumi.get(self, "health")
@health.setter
def health(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "health", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The fully qualified domain name of the host. Computed on server side.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def role(self) -> Optional[pulumi.Input[str]]:
"""
The role of the cluster (either PRIMARY or SECONDARY).
"""
return pulumi.get(self, "role")
@role.setter
def role(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "role", value)
@property
@pulumi.getter(name="shardName")
def shard_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the shard to which the host belongs.
"""
return pulumi.get(self, "shard_name")
@shard_name.setter
def shard_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "shard_name", value)
@property
@pulumi.getter
def type(self) -> Optional[pulumi.Input[str]]:
"""
Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "type", value)
@pulumi.input_type
class MdbMongodbClusterMaintenanceWindowArgs:
def __init__(__self__, *,
type: pulumi.Input[str],
day: Optional[pulumi.Input[str]] = None,
hour: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] type: Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
:param pulumi.Input[str] day: Day of week for maintenance window if window type is weekly. Possible values: `MON`, `TUE`, `WED`, `THU`, `FRI`, `SAT`, `SUN`.
:param pulumi.Input[int] hour: Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
"""
pulumi.set(__self__, "type", type)
if day is not None:
pulumi.set(__self__, "day", day)
if hour is not None:
pulumi.set(__self__, "hour", hour)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter
def day(self) -> Optional[pulumi.Input[str]]:
"""
Day of week for maintenance window if window type is weekly. Possible values: `MON`, `TUE`, `WED`, `THU`, `FRI`, `SAT`, `SUN`.
"""
return pulumi.get(self, "day")
@day.setter
def day(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "day", value)
@property
@pulumi.getter
def hour(self) -> Optional[pulumi.Input[int]]:
"""
Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
"""
return pulumi.get(self, "hour")
@hour.setter
def hour(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "hour", value)
@pulumi.input_type
class MdbMongodbClusterResourcesArgs:
def __init__(__self__, *,
disk_size: pulumi.Input[int],
disk_type_id: pulumi.Input[str],
resource_preset_id: pulumi.Input[str]):
"""
:param pulumi.Input[int] disk_size: Volume of the storage available to a MongoDB host, in gigabytes.
:param pulumi.Input[str] disk_type_id: Type of the storage of MongoDB hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-clickhouse/concepts/storage).
"""
pulumi.set(__self__, "disk_size", disk_size)
pulumi.set(__self__, "disk_type_id", disk_type_id)
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> pulumi.Input[int]:
"""
Volume of the storage available to a MongoDB host, in gigabytes.
"""
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: pulumi.Input[int]):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> pulumi.Input[str]:
"""
Type of the storage of MongoDB hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-clickhouse/concepts/storage).
"""
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: pulumi.Input[str]):
pulumi.set(self, "disk_type_id", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_preset_id", value)
@pulumi.input_type
class MdbMongodbClusterUserArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
password: pulumi.Input[str],
permissions: Optional[pulumi.Input[Sequence[pulumi.Input['MdbMongodbClusterUserPermissionArgs']]]] = None):
"""
:param pulumi.Input[str] name: The fully qualified domain name of the host. Computed on server side.
:param pulumi.Input[str] password: The password of the user.
:param pulumi.Input[Sequence[pulumi.Input['MdbMongodbClusterUserPermissionArgs']]] permissions: Set of permissions granted to the user. The structure is documented below.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "password", password)
if permissions is not None:
pulumi.set(__self__, "permissions", permissions)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
The fully qualified domain name of the host. Computed on server side.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def password(self) -> pulumi.Input[str]:
"""
The password of the user.
"""
return pulumi.get(self, "password")
@password.setter
def password(self, value: pulumi.Input[str]):
pulumi.set(self, "password", value)
@property
@pulumi.getter
def permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MdbMongodbClusterUserPermissionArgs']]]]:
"""
Set of permissions granted to the user. The structure is documented below.
"""
return pulumi.get(self, "permissions")
@permissions.setter
def permissions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MdbMongodbClusterUserPermissionArgs']]]]):
pulumi.set(self, "permissions", value)
@pulumi.input_type
class MdbMongodbClusterUserPermissionArgs:
def __init__(__self__, *,
database_name: pulumi.Input[str],
roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
:param pulumi.Input[str] database_name: The name of the database that the permission grants access to.
"""
pulumi.set(__self__, "database_name", database_name)
if roles is not None:
pulumi.set(__self__, "roles", roles)
@property
@pulumi.getter(name="databaseName")
def database_name(self) -> pulumi.Input[str]:
"""
The name of the database that the permission grants access to.
"""
return pulumi.get(self, "database_name")
@database_name.setter
def database_name(self, value: pulumi.Input[str]):
pulumi.set(self, "database_name", value)
@property
@pulumi.getter
def roles(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
return pulumi.get(self, "roles")
@roles.setter
def roles(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "roles", value)
@pulumi.input_type
class MdbMysqlClusterAccessArgs:
def __init__(__self__, *,
data_lens: Optional[pulumi.Input[bool]] = None,
web_sql: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[bool] data_lens: Allow access for [Yandex DataLens](https://cloud.yandex.com/services/datalens).
:param pulumi.Input[bool] web_sql: Allows access for [SQL queries in the management console](https://cloud.yandex.com/docs/managed-mysql/operations/web-sql-query).
"""
if data_lens is not None:
pulumi.set(__self__, "data_lens", data_lens)
if web_sql is not None:
pulumi.set(__self__, "web_sql", web_sql)
@property
@pulumi.getter(name="dataLens")
def data_lens(self) -> Optional[pulumi.Input[bool]]:
"""
Allow access for [Yandex DataLens](https://cloud.yandex.com/services/datalens).
"""
return pulumi.get(self, "data_lens")
@data_lens.setter
def data_lens(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "data_lens", value)
@property
@pulumi.getter(name="webSql")
def web_sql(self) -> Optional[pulumi.Input[bool]]:
"""
Allows access for [SQL queries in the management console](https://cloud.yandex.com/docs/managed-mysql/operations/web-sql-query).
"""
return pulumi.get(self, "web_sql")
@web_sql.setter
def web_sql(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "web_sql", value)
@pulumi.input_type
class MdbMysqlClusterBackupWindowStartArgs:
def __init__(__self__, *,
hours: Optional[pulumi.Input[int]] = None,
minutes: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] hours: The hour at which backup will be started.
:param pulumi.Input[int] minutes: The minute at which backup will be started.
"""
if hours is not None:
pulumi.set(__self__, "hours", hours)
if minutes is not None:
pulumi.set(__self__, "minutes", minutes)
@property
@pulumi.getter
def hours(self) -> Optional[pulumi.Input[int]]:
"""
The hour at which backup will be started.
"""
return pulumi.get(self, "hours")
@hours.setter
def hours(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "hours", value)
@property
@pulumi.getter
def minutes(self) -> Optional[pulumi.Input[int]]:
"""
The minute at which backup will be started.
"""
return pulumi.get(self, "minutes")
@minutes.setter
def minutes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "minutes", value)
@pulumi.input_type
class MdbMysqlClusterDatabaseArgs:
def __init__(__self__, *,
name: pulumi.Input[str]):
"""
:param pulumi.Input[str] name: Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to `replication_source_name` parameter.
"""
pulumi.set(__self__, "name", name)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to `replication_source_name` parameter.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@pulumi.input_type
class MdbMysqlClusterHostArgs:
def __init__(__self__, *,
zone: pulumi.Input[str],
assign_public_ip: Optional[pulumi.Input[bool]] = None,
fqdn: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
replication_source: Optional[pulumi.Input[str]] = None,
replication_source_name: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] zone: The availability zone where the MySQL host will be created.
:param pulumi.Input[bool] assign_public_ip: Sets whether the host should get a public IP address. It can be changed on the fly only when `name` is set.
:param pulumi.Input[str] fqdn: The fully qualified domain name of the host.
:param pulumi.Input[str] name: Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to `replication_source_name` parameter.
:param pulumi.Input[str] replication_source: Host replication source (fqdn), when replication_source is empty then host is in HA group.
:param pulumi.Input[str] replication_source_name: Host replication source name points to host's `name` from which this host should replicate. When not set then host in HA group. It works only when `name` is set.
:param pulumi.Input[str] subnet_id: The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
"""
pulumi.set(__self__, "zone", zone)
if assign_public_ip is not None:
pulumi.set(__self__, "assign_public_ip", assign_public_ip)
if fqdn is not None:
pulumi.set(__self__, "fqdn", fqdn)
if name is not None:
pulumi.set(__self__, "name", name)
if replication_source is not None:
pulumi.set(__self__, "replication_source", replication_source)
if replication_source_name is not None:
pulumi.set(__self__, "replication_source_name", replication_source_name)
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter
def zone(self) -> pulumi.Input[str]:
"""
The availability zone where the MySQL host will be created.
"""
return pulumi.get(self, "zone")
@zone.setter
def zone(self, value: pulumi.Input[str]):
pulumi.set(self, "zone", value)
@property
@pulumi.getter(name="assignPublicIp")
def assign_public_ip(self) -> Optional[pulumi.Input[bool]]:
"""
Sets whether the host should get a public IP address. It can be changed on the fly only when `name` is set.
"""
return pulumi.get(self, "assign_public_ip")
@assign_public_ip.setter
def assign_public_ip(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "assign_public_ip", value)
@property
@pulumi.getter
def fqdn(self) -> Optional[pulumi.Input[str]]:
"""
The fully qualified domain name of the host.
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "fqdn", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to `replication_source_name` parameter.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="replicationSource")
def replication_source(self) -> Optional[pulumi.Input[str]]:
"""
Host replication source (fqdn), when replication_source is empty then host is in HA group.
"""
return pulumi.get(self, "replication_source")
@replication_source.setter
def replication_source(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "replication_source", value)
@property
@pulumi.getter(name="replicationSourceName")
def replication_source_name(self) -> Optional[pulumi.Input[str]]:
"""
Host replication source name points to host's `name` from which this host should replicate. When not set then host in HA group. It works only when `name` is set.
"""
return pulumi.get(self, "replication_source_name")
@replication_source_name.setter
def replication_source_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "replication_source_name", value)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subnet_id", value)
@pulumi.input_type
class MdbMysqlClusterMaintenanceWindowArgs:
def __init__(__self__, *,
type: pulumi.Input[str],
day: Optional[pulumi.Input[str]] = None,
hour: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] type: Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
:param pulumi.Input[str] day: Day of the week (in `DDD` format). Allowed values: "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"
:param pulumi.Input[int] hour: Hour of the day in UTC (in `HH` format). Allowed value is between 0 and 23.
"""
pulumi.set(__self__, "type", type)
if day is not None:
pulumi.set(__self__, "day", day)
if hour is not None:
pulumi.set(__self__, "hour", hour)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter
def day(self) -> Optional[pulumi.Input[str]]:
"""
Day of the week (in `DDD` format). Allowed values: "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"
"""
return pulumi.get(self, "day")
@day.setter
def day(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "day", value)
@property
@pulumi.getter
def hour(self) -> Optional[pulumi.Input[int]]:
"""
Hour of the day in UTC (in `HH` format). Allowed value is between 0 and 23.
"""
return pulumi.get(self, "hour")
@hour.setter
def hour(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "hour", value)
@pulumi.input_type
class MdbMysqlClusterResourcesArgs:
def __init__(__self__, *,
disk_size: pulumi.Input[int],
disk_type_id: pulumi.Input[str],
resource_preset_id: pulumi.Input[str]):
"""
:param pulumi.Input[int] disk_size: Volume of the storage available to a MySQL host, in gigabytes.
:param pulumi.Input[str] disk_type_id: Type of the storage of MySQL hosts.
"""
pulumi.set(__self__, "disk_size", disk_size)
pulumi.set(__self__, "disk_type_id", disk_type_id)
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> pulumi.Input[int]:
"""
Volume of the storage available to a MySQL host, in gigabytes.
"""
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: pulumi.Input[int]):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> pulumi.Input[str]:
"""
Type of the storage of MySQL hosts.
"""
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: pulumi.Input[str]):
pulumi.set(self, "disk_type_id", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_preset_id", value)
@pulumi.input_type
class MdbMysqlClusterRestoreArgs:
def __init__(__self__, *,
backup_id: pulumi.Input[str],
time: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] backup_id: Backup ID. The cluster will be created from the specified backup. [How to get a list of MySQL backups](https://cloud.yandex.com/docs/managed-mysql/operations/cluster-backups).
:param pulumi.Input[str] time: Timestamp of the moment to which the MySQL cluster should be restored. (Format: "2006-01-02T15:04:05" - UTC). When not set, current time is used.
"""
pulumi.set(__self__, "backup_id", backup_id)
if time is not None:
pulumi.set(__self__, "time", time)
@property
@pulumi.getter(name="backupId")
def backup_id(self) -> pulumi.Input[str]:
"""
Backup ID. The cluster will be created from the specified backup. [How to get a list of MySQL backups](https://cloud.yandex.com/docs/managed-mysql/operations/cluster-backups).
"""
return pulumi.get(self, "backup_id")
@backup_id.setter
def backup_id(self, value: pulumi.Input[str]):
pulumi.set(self, "backup_id", value)
@property
@pulumi.getter
def time(self) -> Optional[pulumi.Input[str]]:
"""
Timestamp of the moment to which the MySQL cluster should be restored. (Format: "2006-01-02T15:04:05" - UTC). When not set, current time is used.
"""
return pulumi.get(self, "time")
@time.setter
def time(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "time", value)
@pulumi.input_type
class MdbMysqlClusterUserArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
password: pulumi.Input[str],
authentication_plugin: Optional[pulumi.Input[str]] = None,
connection_limits: Optional[pulumi.Input['MdbMysqlClusterUserConnectionLimitsArgs']] = None,
global_permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
permissions: Optional[pulumi.Input[Sequence[pulumi.Input['MdbMysqlClusterUserPermissionArgs']]]] = None):
"""
:param pulumi.Input[str] name: Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to `replication_source_name` parameter.
:param pulumi.Input[str] password: The password of the user.
:param pulumi.Input[str] authentication_plugin: Authentication plugin. Allowed values: `MYSQL_NATIVE_PASSWORD`, `CACHING_SHA2_PASSWORD`, `SHA256_PASSWORD` (for version 5.7 `MYSQL_NATIVE_PASSWORD`, `SHA256_PASSWORD`)
:param pulumi.Input['MdbMysqlClusterUserConnectionLimitsArgs'] connection_limits: User's connection limits. The structure is documented below.
If the attribute is not specified there will be no changes.
:param pulumi.Input[Sequence[pulumi.Input[str]]] global_permissions: List user's global permissions
Allowed permissions: `REPLICATION_CLIENT`, `REPLICATION_SLAVE`, `PROCESS` for clear list use empty list.
If the attribute is not specified there will be no changes.
:param pulumi.Input[Sequence[pulumi.Input['MdbMysqlClusterUserPermissionArgs']]] permissions: Set of permissions granted to the user. The structure is documented below.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "password", password)
if authentication_plugin is not None:
pulumi.set(__self__, "authentication_plugin", authentication_plugin)
if connection_limits is not None:
pulumi.set(__self__, "connection_limits", connection_limits)
if global_permissions is not None:
pulumi.set(__self__, "global_permissions", global_permissions)
if permissions is not None:
pulumi.set(__self__, "permissions", permissions)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to `replication_source_name` parameter.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def password(self) -> pulumi.Input[str]:
"""
The password of the user.
"""
return pulumi.get(self, "password")
@password.setter
def password(self, value: pulumi.Input[str]):
pulumi.set(self, "password", value)
@property
@pulumi.getter(name="authenticationPlugin")
def authentication_plugin(self) -> Optional[pulumi.Input[str]]:
"""
Authentication plugin. Allowed values: `MYSQL_NATIVE_PASSWORD`, `CACHING_SHA2_PASSWORD`, `SHA256_PASSWORD` (for version 5.7 `MYSQL_NATIVE_PASSWORD`, `SHA256_PASSWORD`)
"""
return pulumi.get(self, "authentication_plugin")
@authentication_plugin.setter
def authentication_plugin(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "authentication_plugin", value)
@property
@pulumi.getter(name="connectionLimits")
def connection_limits(self) -> Optional[pulumi.Input['MdbMysqlClusterUserConnectionLimitsArgs']]:
"""
User's connection limits. The structure is documented below.
If the attribute is not specified there will be no changes.
"""
return pulumi.get(self, "connection_limits")
@connection_limits.setter
def connection_limits(self, value: Optional[pulumi.Input['MdbMysqlClusterUserConnectionLimitsArgs']]):
pulumi.set(self, "connection_limits", value)
@property
@pulumi.getter(name="globalPermissions")
def global_permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
List user's global permissions
Allowed permissions: `REPLICATION_CLIENT`, `REPLICATION_SLAVE`, `PROCESS` for clear list use empty list.
If the attribute is not specified there will be no changes.
"""
return pulumi.get(self, "global_permissions")
@global_permissions.setter
def global_permissions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "global_permissions", value)
@property
@pulumi.getter
def permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MdbMysqlClusterUserPermissionArgs']]]]:
"""
Set of permissions granted to the user. The structure is documented below.
"""
return pulumi.get(self, "permissions")
@permissions.setter
def permissions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MdbMysqlClusterUserPermissionArgs']]]]):
pulumi.set(self, "permissions", value)
@pulumi.input_type
class MdbMysqlClusterUserConnectionLimitsArgs:
def __init__(__self__, *,
max_connections_per_hour: Optional[pulumi.Input[int]] = None,
max_questions_per_hour: Optional[pulumi.Input[int]] = None,
max_updates_per_hour: Optional[pulumi.Input[int]] = None,
max_user_connections: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] max_connections_per_hour: Max connections per hour.
:param pulumi.Input[int] max_questions_per_hour: Max questions per hour.
:param pulumi.Input[int] max_updates_per_hour: Max updates per hour.
:param pulumi.Input[int] max_user_connections: Max user connections.
"""
if max_connections_per_hour is not None:
pulumi.set(__self__, "max_connections_per_hour", max_connections_per_hour)
if max_questions_per_hour is not None:
pulumi.set(__self__, "max_questions_per_hour", max_questions_per_hour)
if max_updates_per_hour is not None:
pulumi.set(__self__, "max_updates_per_hour", max_updates_per_hour)
if max_user_connections is not None:
pulumi.set(__self__, "max_user_connections", max_user_connections)
@property
@pulumi.getter(name="maxConnectionsPerHour")
def max_connections_per_hour(self) -> Optional[pulumi.Input[int]]:
"""
Max connections per hour.
"""
return pulumi.get(self, "max_connections_per_hour")
@max_connections_per_hour.setter
def max_connections_per_hour(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_connections_per_hour", value)
@property
@pulumi.getter(name="maxQuestionsPerHour")
def max_questions_per_hour(self) -> Optional[pulumi.Input[int]]:
"""
Max questions per hour.
"""
return pulumi.get(self, "max_questions_per_hour")
@max_questions_per_hour.setter
def max_questions_per_hour(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_questions_per_hour", value)
@property
@pulumi.getter(name="maxUpdatesPerHour")
def max_updates_per_hour(self) -> Optional[pulumi.Input[int]]:
"""
Max updates per hour.
"""
return pulumi.get(self, "max_updates_per_hour")
@max_updates_per_hour.setter
def max_updates_per_hour(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_updates_per_hour", value)
@property
@pulumi.getter(name="maxUserConnections")
def max_user_connections(self) -> Optional[pulumi.Input[int]]:
"""
Max user connections.
"""
return pulumi.get(self, "max_user_connections")
@max_user_connections.setter
def max_user_connections(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_user_connections", value)
@pulumi.input_type
class MdbMysqlClusterUserPermissionArgs:
def __init__(__self__, *,
database_name: pulumi.Input[str],
roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
:param pulumi.Input[str] database_name: The name of the database that the permission grants access to.
:param pulumi.Input[Sequence[pulumi.Input[str]]] roles: List user's roles in the database.
Allowed roles: `ALL`,`ALTER`,`ALTER_ROUTINE`,`CREATE`,`CREATE_ROUTINE`,`CREATE_TEMPORARY_TABLES`,
`CREATE_VIEW`,`DELETE`,`DROP`,`EVENT`,`EXECUTE`,`INDEX`,`INSERT`,`LOCK_TABLES`,`SELECT`,`SHOW_VIEW`,`TRIGGER`,`UPDATE`.
"""
pulumi.set(__self__, "database_name", database_name)
if roles is not None:
pulumi.set(__self__, "roles", roles)
@property
@pulumi.getter(name="databaseName")
def database_name(self) -> pulumi.Input[str]:
"""
The name of the database that the permission grants access to.
"""
return pulumi.get(self, "database_name")
@database_name.setter
def database_name(self, value: pulumi.Input[str]):
pulumi.set(self, "database_name", value)
@property
@pulumi.getter
def roles(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
List user's roles in the database.
Allowed roles: `ALL`,`ALTER`,`ALTER_ROUTINE`,`CREATE`,`CREATE_ROUTINE`,`CREATE_TEMPORARY_TABLES`,
`CREATE_VIEW`,`DELETE`,`DROP`,`EVENT`,`EXECUTE`,`INDEX`,`INSERT`,`LOCK_TABLES`,`SELECT`,`SHOW_VIEW`,`TRIGGER`,`UPDATE`.
"""
return pulumi.get(self, "roles")
@roles.setter
def roles(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "roles", value)
@pulumi.input_type
class MdbRedisClusterConfigArgs:
def __init__(__self__, *,
password: pulumi.Input[str],
version: pulumi.Input[str],
databases: Optional[pulumi.Input[int]] = None,
maxmemory_policy: Optional[pulumi.Input[str]] = None,
notify_keyspace_events: Optional[pulumi.Input[str]] = None,
slowlog_log_slower_than: Optional[pulumi.Input[int]] = None,
slowlog_max_len: Optional[pulumi.Input[int]] = None,
timeout: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] password: Password for the Redis cluster.
:param pulumi.Input[str] version: Version of Redis (5.0, 6.0 or 6.2).
:param pulumi.Input[int] databases: Number of databases (changing requires redis-server restart).
:param pulumi.Input[str] maxmemory_policy: Redis key eviction policy for a dataset that reaches maximum memory.
Can be any of the listed in [the official RedisDB documentation](https://docs.redislabs.com/latest/rs/administering/database-operations/eviction-policy/).
:param pulumi.Input[str] notify_keyspace_events: Select the events that Redis will notify among a set of classes.
:param pulumi.Input[int] slowlog_log_slower_than: Log slow queries below this number in microseconds.
:param pulumi.Input[int] slowlog_max_len: Slow queries log length.
:param pulumi.Input[int] timeout: Close the connection after a client is idle for N seconds.
"""
pulumi.set(__self__, "password", password)
pulumi.set(__self__, "version", version)
if databases is not None:
pulumi.set(__self__, "databases", databases)
if maxmemory_policy is not None:
pulumi.set(__self__, "maxmemory_policy", maxmemory_policy)
if notify_keyspace_events is not None:
pulumi.set(__self__, "notify_keyspace_events", notify_keyspace_events)
if slowlog_log_slower_than is not None:
pulumi.set(__self__, "slowlog_log_slower_than", slowlog_log_slower_than)
if slowlog_max_len is not None:
pulumi.set(__self__, "slowlog_max_len", slowlog_max_len)
if timeout is not None:
pulumi.set(__self__, "timeout", timeout)
@property
@pulumi.getter
def password(self) -> pulumi.Input[str]:
"""
Password for the Redis cluster.
"""
return pulumi.get(self, "password")
@password.setter
def password(self, value: pulumi.Input[str]):
pulumi.set(self, "password", value)
@property
@pulumi.getter
def version(self) -> pulumi.Input[str]:
"""
Version of Redis (5.0, 6.0 or 6.2).
"""
return pulumi.get(self, "version")
@version.setter
def version(self, value: pulumi.Input[str]):
pulumi.set(self, "version", value)
@property
@pulumi.getter
def databases(self) -> Optional[pulumi.Input[int]]:
"""
Number of databases (changing requires redis-server restart).
"""
return pulumi.get(self, "databases")
@databases.setter
def databases(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "databases", value)
@property
@pulumi.getter(name="maxmemoryPolicy")
def maxmemory_policy(self) -> Optional[pulumi.Input[str]]:
"""
Redis key eviction policy for a dataset that reaches maximum memory.
Can be any of the listed in [the official RedisDB documentation](https://docs.redislabs.com/latest/rs/administering/database-operations/eviction-policy/).
"""
return pulumi.get(self, "maxmemory_policy")
@maxmemory_policy.setter
def maxmemory_policy(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "maxmemory_policy", value)
@property
@pulumi.getter(name="notifyKeyspaceEvents")
def notify_keyspace_events(self) -> Optional[pulumi.Input[str]]:
"""
Select the events that Redis will notify among a set of classes.
"""
return pulumi.get(self, "notify_keyspace_events")
@notify_keyspace_events.setter
def notify_keyspace_events(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "notify_keyspace_events", value)
@property
@pulumi.getter(name="slowlogLogSlowerThan")
def slowlog_log_slower_than(self) -> Optional[pulumi.Input[int]]:
"""
Log slow queries below this number in microseconds.
"""
return pulumi.get(self, "slowlog_log_slower_than")
@slowlog_log_slower_than.setter
def slowlog_log_slower_than(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "slowlog_log_slower_than", value)
@property
@pulumi.getter(name="slowlogMaxLen")
def slowlog_max_len(self) -> Optional[pulumi.Input[int]]:
"""
Slow queries log length.
"""
return pulumi.get(self, "slowlog_max_len")
@slowlog_max_len.setter
def slowlog_max_len(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "slowlog_max_len", value)
@property
@pulumi.getter
def timeout(self) -> Optional[pulumi.Input[int]]:
"""
Close the connection after a client is idle for N seconds.
"""
return pulumi.get(self, "timeout")
@timeout.setter
def timeout(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "timeout", value)
@pulumi.input_type
class MdbRedisClusterHostArgs:
def __init__(__self__, *,
zone: pulumi.Input[str],
fqdn: Optional[pulumi.Input[str]] = None,
shard_name: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] zone: The availability zone where the Redis host will be created.
For more information see [the official documentation](https://cloud.yandex.com/docs/overview/concepts/geo-scope).
:param pulumi.Input[str] fqdn: The fully qualified domain name of the host.
:param pulumi.Input[str] shard_name: The name of the shard to which the host belongs.
:param pulumi.Input[str] subnet_id: The ID of the subnet, to which the host belongs. The subnet must
be a part of the network to which the cluster belongs.
"""
pulumi.set(__self__, "zone", zone)
if fqdn is not None:
pulumi.set(__self__, "fqdn", fqdn)
if shard_name is not None:
pulumi.set(__self__, "shard_name", shard_name)
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter
def zone(self) -> pulumi.Input[str]:
"""
The availability zone where the Redis host will be created.
For more information see [the official documentation](https://cloud.yandex.com/docs/overview/concepts/geo-scope).
"""
return pulumi.get(self, "zone")
@zone.setter
def zone(self, value: pulumi.Input[str]):
pulumi.set(self, "zone", value)
@property
@pulumi.getter
def fqdn(self) -> Optional[pulumi.Input[str]]:
"""
The fully qualified domain name of the host.
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "fqdn", value)
@property
@pulumi.getter(name="shardName")
def shard_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the shard to which the host belongs.
"""
return pulumi.get(self, "shard_name")
@shard_name.setter
def shard_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "shard_name", value)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the subnet, to which the host belongs. The subnet must
be a part of the network to which the cluster belongs.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subnet_id", value)
@pulumi.input_type
class MdbRedisClusterMaintenanceWindowArgs:
def __init__(__self__, *,
type: pulumi.Input[str],
day: Optional[pulumi.Input[str]] = None,
hour: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] type: Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
:param pulumi.Input[str] day: Day of week for maintenance window if window type is weekly. Possible values: `MON`, `TUE`, `WED`, `THU`, `FRI`, `SAT`, `SUN`.
:param pulumi.Input[int] hour: Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
"""
pulumi.set(__self__, "type", type)
if day is not None:
pulumi.set(__self__, "day", day)
if hour is not None:
pulumi.set(__self__, "hour", hour)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Type of maintenance window. Can be either `ANYTIME` or `WEEKLY`. A day and hour of window need to be specified with weekly window.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter
def day(self) -> Optional[pulumi.Input[str]]:
"""
Day of week for maintenance window if window type is weekly. Possible values: `MON`, `TUE`, `WED`, `THU`, `FRI`, `SAT`, `SUN`.
"""
return pulumi.get(self, "day")
@day.setter
def day(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "day", value)
@property
@pulumi.getter
def hour(self) -> Optional[pulumi.Input[int]]:
"""
Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
"""
return pulumi.get(self, "hour")
@hour.setter
def hour(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "hour", value)
@pulumi.input_type
class MdbRedisClusterResourcesArgs:
def __init__(__self__, *,
disk_size: pulumi.Input[int],
resource_preset_id: pulumi.Input[str],
disk_type_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] disk_size: Volume of the storage available to a host, in gigabytes.
:param pulumi.Input[str] disk_type_id: Type of the storage of Redis hosts - environment default is used if missing.
"""
pulumi.set(__self__, "disk_size", disk_size)
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
if disk_type_id is not None:
pulumi.set(__self__, "disk_type_id", disk_type_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> pulumi.Input[int]:
"""
Volume of the storage available to a host, in gigabytes.
"""
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: pulumi.Input[int]):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_preset_id", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> Optional[pulumi.Input[str]]:
"""
Type of the storage of Redis hosts - environment default is used if missing.
"""
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "disk_type_id", value)
@pulumi.input_type
class MdbSqlServerClusterBackupWindowStartArgs:
def __init__(__self__, *,
hours: Optional[pulumi.Input[int]] = None,
minutes: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] hours: The hour at which backup will be started.
:param pulumi.Input[int] minutes: The minute at which backup will be started.
"""
if hours is not None:
pulumi.set(__self__, "hours", hours)
if minutes is not None:
pulumi.set(__self__, "minutes", minutes)
@property
@pulumi.getter
def hours(self) -> Optional[pulumi.Input[int]]:
"""
The hour at which backup will be started.
"""
return pulumi.get(self, "hours")
@hours.setter
def hours(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "hours", value)
@property
@pulumi.getter
def minutes(self) -> Optional[pulumi.Input[int]]:
"""
The minute at which backup will be started.
"""
return pulumi.get(self, "minutes")
@minutes.setter
def minutes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "minutes", value)
@pulumi.input_type
class MdbSqlServerClusterDatabaseArgs:
def __init__(__self__, *,
name: pulumi.Input[str]):
"""
:param pulumi.Input[str] name: The name of the database.
"""
pulumi.set(__self__, "name", name)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
The name of the database.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@pulumi.input_type
class MdbSqlServerClusterHostArgs:
def __init__(__self__, *,
zone: pulumi.Input[str],
assign_public_ip: Optional[pulumi.Input[bool]] = None,
fqdn: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] zone: The availability zone where the SQLServer host will be created.
:param pulumi.Input[bool] assign_public_ip: Sets whether the host should get a public IP address on creation. Changing this parameter for an existing host is not supported at the moment
:param pulumi.Input[str] fqdn: The fully qualified domain name of the host.
:param pulumi.Input[str] subnet_id: The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
"""
pulumi.set(__self__, "zone", zone)
if assign_public_ip is not None:
pulumi.set(__self__, "assign_public_ip", assign_public_ip)
if fqdn is not None:
pulumi.set(__self__, "fqdn", fqdn)
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter
def zone(self) -> pulumi.Input[str]:
"""
The availability zone where the SQLServer host will be created.
"""
return pulumi.get(self, "zone")
@zone.setter
def zone(self, value: pulumi.Input[str]):
pulumi.set(self, "zone", value)
@property
@pulumi.getter(name="assignPublicIp")
def assign_public_ip(self) -> Optional[pulumi.Input[bool]]:
"""
Sets whether the host should get a public IP address on creation. Changing this parameter for an existing host is not supported at the moment
"""
return pulumi.get(self, "assign_public_ip")
@assign_public_ip.setter
def assign_public_ip(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "assign_public_ip", value)
@property
@pulumi.getter
def fqdn(self) -> Optional[pulumi.Input[str]]:
"""
The fully qualified domain name of the host.
"""
return pulumi.get(self, "fqdn")
@fqdn.setter
def fqdn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "fqdn", value)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subnet_id", value)
@pulumi.input_type
class MdbSqlServerClusterResourcesArgs:
def __init__(__self__, *,
disk_size: pulumi.Input[int],
disk_type_id: pulumi.Input[str],
resource_preset_id: pulumi.Input[str]):
"""
:param pulumi.Input[int] disk_size: Volume of the storage available to a SQLServer host, in gigabytes.
:param pulumi.Input[str] disk_type_id: Type of the storage of SQLServer hosts.
"""
pulumi.set(__self__, "disk_size", disk_size)
pulumi.set(__self__, "disk_type_id", disk_type_id)
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> pulumi.Input[int]:
"""
Volume of the storage available to a SQLServer host, in gigabytes.
"""
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: pulumi.Input[int]):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> pulumi.Input[str]:
"""
Type of the storage of SQLServer hosts.
"""
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: pulumi.Input[str]):
pulumi.set(self, "disk_type_id", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_preset_id", value)
@pulumi.input_type
class MdbSqlServerClusterUserArgs:
def __init__(__self__, *,
name: pulumi.Input[str],
password: pulumi.Input[str],
permissions: Optional[pulumi.Input[Sequence[pulumi.Input['MdbSqlServerClusterUserPermissionArgs']]]] = None):
"""
:param pulumi.Input[str] name: The name of the database.
:param pulumi.Input[str] password: The password of the user.
:param pulumi.Input[Sequence[pulumi.Input['MdbSqlServerClusterUserPermissionArgs']]] permissions: Set of permissions granted to the user. The structure is documented below.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "password", password)
if permissions is not None:
pulumi.set(__self__, "permissions", permissions)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
The name of the database.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def password(self) -> pulumi.Input[str]:
"""
The password of the user.
"""
return pulumi.get(self, "password")
@password.setter
def password(self, value: pulumi.Input[str]):
pulumi.set(self, "password", value)
@property
@pulumi.getter
def permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MdbSqlServerClusterUserPermissionArgs']]]]:
"""
Set of permissions granted to the user. The structure is documented below.
"""
return pulumi.get(self, "permissions")
@permissions.setter
def permissions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MdbSqlServerClusterUserPermissionArgs']]]]):
pulumi.set(self, "permissions", value)
@pulumi.input_type
class MdbSqlServerClusterUserPermissionArgs:
def __init__(__self__, *,
database_name: pulumi.Input[str],
roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
:param pulumi.Input[str] database_name: The name of the database that the permission grants access to.
:param pulumi.Input[Sequence[pulumi.Input[str]]] roles: List user's roles in the database.
Allowed roles: `OWNER`, `SECURITYADMIN`, `ACCESSADMIN`, `BACKUPOPERATOR`, `DDLADMIN`, `DATAWRITER`, `DATAREADER`, `DENYDATAWRITER`, `DENYDATAREADER`.
"""
pulumi.set(__self__, "database_name", database_name)
if roles is not None:
pulumi.set(__self__, "roles", roles)
@property
@pulumi.getter(name="databaseName")
def database_name(self) -> pulumi.Input[str]:
"""
The name of the database that the permission grants access to.
"""
return pulumi.get(self, "database_name")
@database_name.setter
def database_name(self, value: pulumi.Input[str]):
pulumi.set(self, "database_name", value)
@property
@pulumi.getter
def roles(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
List user's roles in the database.
Allowed roles: `OWNER`, `SECURITYADMIN`, `ACCESSADMIN`, `BACKUPOPERATOR`, `DDLADMIN`, `DATAWRITER`, `DATAREADER`, `DENYDATAWRITER`, `DENYDATAREADER`.
"""
return pulumi.get(self, "roles")
@roles.setter
def roles(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "roles", value)
@pulumi.input_type
class StorageBucketCorsRuleArgs:
def __init__(__self__, *,
allowed_methods: pulumi.Input[Sequence[pulumi.Input[str]]],
allowed_origins: pulumi.Input[Sequence[pulumi.Input[str]]],
allowed_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
expose_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
max_age_seconds: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_methods: Specifies which methods are allowed. Can be `GET`, `PUT`, `POST`, `DELETE` or `HEAD`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_origins: Specifies which origins are allowed.
:param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_headers: Specifies which headers are allowed.
:param pulumi.Input[Sequence[pulumi.Input[str]]] expose_headers: Specifies expose header in the response.
:param pulumi.Input[int] max_age_seconds: Specifies time in seconds that browser can cache the response for a preflight request.
"""
pulumi.set(__self__, "allowed_methods", allowed_methods)
pulumi.set(__self__, "allowed_origins", allowed_origins)
if allowed_headers is not None:
pulumi.set(__self__, "allowed_headers", allowed_headers)
if expose_headers is not None:
pulumi.set(__self__, "expose_headers", expose_headers)
if max_age_seconds is not None:
pulumi.set(__self__, "max_age_seconds", max_age_seconds)
@property
@pulumi.getter(name="allowedMethods")
def allowed_methods(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies which methods are allowed. Can be `GET`, `PUT`, `POST`, `DELETE` or `HEAD`.
"""
return pulumi.get(self, "allowed_methods")
@allowed_methods.setter
def allowed_methods(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "allowed_methods", value)
@property
@pulumi.getter(name="allowedOrigins")
def allowed_origins(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies which origins are allowed.
"""
return pulumi.get(self, "allowed_origins")
@allowed_origins.setter
def allowed_origins(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "allowed_origins", value)
@property
@pulumi.getter(name="allowedHeaders")
def allowed_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Specifies which headers are allowed.
"""
return pulumi.get(self, "allowed_headers")
@allowed_headers.setter
def allowed_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "allowed_headers", value)
@property
@pulumi.getter(name="exposeHeaders")
def expose_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Specifies expose header in the response.
"""
return pulumi.get(self, "expose_headers")
@expose_headers.setter
def expose_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "expose_headers", value)
@property
@pulumi.getter(name="maxAgeSeconds")
def max_age_seconds(self) -> Optional[pulumi.Input[int]]:
"""
Specifies time in seconds that browser can cache the response for a preflight request.
"""
return pulumi.get(self, "max_age_seconds")
@max_age_seconds.setter
def max_age_seconds(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_age_seconds", value)
@pulumi.input_type
class StorageBucketGrantArgs:
def __init__(__self__, *,
permissions: pulumi.Input[Sequence[pulumi.Input[str]]],
type: pulumi.Input[str],
id: Optional[pulumi.Input[str]] = None,
uri: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] id: Unique identifier for the rule. Must be less than or equal to 255 characters in length.
"""
pulumi.set(__self__, "permissions", permissions)
pulumi.set(__self__, "type", type)
if id is not None:
pulumi.set(__self__, "id", id)
if uri is not None:
pulumi.set(__self__, "uri", uri)
@property
@pulumi.getter
def permissions(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
return pulumi.get(self, "permissions")
@permissions.setter
def permissions(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "permissions", value)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter
def id(self) -> Optional[pulumi.Input[str]]:
"""
Unique identifier for the rule. Must be less than or equal to 255 characters in length.
"""
return pulumi.get(self, "id")
@id.setter
def id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "id", value)
@property
@pulumi.getter
def uri(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "uri")
@uri.setter
def uri(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "uri", value)
@pulumi.input_type
class StorageBucketLifecycleRuleArgs:
def __init__(__self__, *,
enabled: pulumi.Input[bool],
abort_incomplete_multipart_upload_days: Optional[pulumi.Input[int]] = None,
expiration: Optional[pulumi.Input['StorageBucketLifecycleRuleExpirationArgs']] = None,
id: Optional[pulumi.Input[str]] = None,
noncurrent_version_expiration: Optional[pulumi.Input['StorageBucketLifecycleRuleNoncurrentVersionExpirationArgs']] = None,
noncurrent_version_transitions: Optional[pulumi.Input[Sequence[pulumi.Input['StorageBucketLifecycleRuleNoncurrentVersionTransitionArgs']]]] = None,
prefix: Optional[pulumi.Input[str]] = None,
transitions: Optional[pulumi.Input[Sequence[pulumi.Input['StorageBucketLifecycleRuleTransitionArgs']]]] = None):
"""
:param pulumi.Input[bool] enabled: Specifies lifecycle rule status.
:param pulumi.Input[int] abort_incomplete_multipart_upload_days: Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.
:param pulumi.Input['StorageBucketLifecycleRuleExpirationArgs'] expiration: Specifies a period in the object's expire (documented below).
:param pulumi.Input[str] id: Unique identifier for the rule. Must be less than or equal to 255 characters in length.
:param pulumi.Input['StorageBucketLifecycleRuleNoncurrentVersionExpirationArgs'] noncurrent_version_expiration: Specifies when noncurrent object versions expire (documented below).
:param pulumi.Input[Sequence[pulumi.Input['StorageBucketLifecycleRuleNoncurrentVersionTransitionArgs']]] noncurrent_version_transitions: Specifies when noncurrent object versions transitions (documented below).
:param pulumi.Input[str] prefix: Object key prefix identifying one or more objects to which the rule applies.
:param pulumi.Input[Sequence[pulumi.Input['StorageBucketLifecycleRuleTransitionArgs']]] transitions: Specifies a period in the object's transitions (documented below).
"""
pulumi.set(__self__, "enabled", enabled)
if abort_incomplete_multipart_upload_days is not None:
pulumi.set(__self__, "abort_incomplete_multipart_upload_days", abort_incomplete_multipart_upload_days)
if expiration is not None:
pulumi.set(__self__, "expiration", expiration)
if id is not None:
pulumi.set(__self__, "id", id)
if noncurrent_version_expiration is not None:
pulumi.set(__self__, "noncurrent_version_expiration", noncurrent_version_expiration)
if noncurrent_version_transitions is not None:
pulumi.set(__self__, "noncurrent_version_transitions", noncurrent_version_transitions)
if prefix is not None:
pulumi.set(__self__, "prefix", prefix)
if transitions is not None:
pulumi.set(__self__, "transitions", transitions)
@property
@pulumi.getter
def enabled(self) -> pulumi.Input[bool]:
"""
Specifies lifecycle rule status.
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: pulumi.Input[bool]):
pulumi.set(self, "enabled", value)
@property
@pulumi.getter(name="abortIncompleteMultipartUploadDays")
def abort_incomplete_multipart_upload_days(self) -> Optional[pulumi.Input[int]]:
"""
Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.
"""
return pulumi.get(self, "abort_incomplete_multipart_upload_days")
@abort_incomplete_multipart_upload_days.setter
def abort_incomplete_multipart_upload_days(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "abort_incomplete_multipart_upload_days", value)
@property
@pulumi.getter
def expiration(self) -> Optional[pulumi.Input['StorageBucketLifecycleRuleExpirationArgs']]:
"""
Specifies a period in the object's expire (documented below).
"""
return pulumi.get(self, "expiration")
@expiration.setter
def expiration(self, value: Optional[pulumi.Input['StorageBucketLifecycleRuleExpirationArgs']]):
pulumi.set(self, "expiration", value)
@property
@pulumi.getter
def id(self) -> Optional[pulumi.Input[str]]:
"""
Unique identifier for the rule. Must be less than or equal to 255 characters in length.
"""
return pulumi.get(self, "id")
@id.setter
def id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "id", value)
@property
@pulumi.getter(name="noncurrentVersionExpiration")
def noncurrent_version_expiration(self) -> Optional[pulumi.Input['StorageBucketLifecycleRuleNoncurrentVersionExpirationArgs']]:
"""
Specifies when noncurrent object versions expire (documented below).
"""
return pulumi.get(self, "noncurrent_version_expiration")
@noncurrent_version_expiration.setter
def noncurrent_version_expiration(self, value: Optional[pulumi.Input['StorageBucketLifecycleRuleNoncurrentVersionExpirationArgs']]):
pulumi.set(self, "noncurrent_version_expiration", value)
@property
@pulumi.getter(name="noncurrentVersionTransitions")
def noncurrent_version_transitions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['StorageBucketLifecycleRuleNoncurrentVersionTransitionArgs']]]]:
"""
Specifies when noncurrent object versions transitions (documented below).
"""
return pulumi.get(self, "noncurrent_version_transitions")
@noncurrent_version_transitions.setter
def noncurrent_version_transitions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['StorageBucketLifecycleRuleNoncurrentVersionTransitionArgs']]]]):
pulumi.set(self, "noncurrent_version_transitions", value)
@property
@pulumi.getter
def prefix(self) -> Optional[pulumi.Input[str]]:
"""
Object key prefix identifying one or more objects to which the rule applies.
"""
return pulumi.get(self, "prefix")
@prefix.setter
def prefix(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "prefix", value)
@property
@pulumi.getter
def transitions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['StorageBucketLifecycleRuleTransitionArgs']]]]:
"""
Specifies a period in the object's transitions (documented below).
"""
return pulumi.get(self, "transitions")
@transitions.setter
def transitions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['StorageBucketLifecycleRuleTransitionArgs']]]]):
pulumi.set(self, "transitions", value)
@pulumi.input_type
class StorageBucketLifecycleRuleExpirationArgs:
def __init__(__self__, *,
date: Optional[pulumi.Input[str]] = None,
days: Optional[pulumi.Input[int]] = None,
expired_object_delete_marker: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[str] date: Specifies the date after which you want the corresponding action to take effect.
:param pulumi.Input[int] days: Specifies the number of days after object creation when the specific rule action takes effect.
:param pulumi.Input[bool] expired_object_delete_marker: On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct Object Storage to delete expired object delete markers.
"""
if date is not None:
pulumi.set(__self__, "date", date)
if days is not None:
pulumi.set(__self__, "days", days)
if expired_object_delete_marker is not None:
pulumi.set(__self__, "expired_object_delete_marker", expired_object_delete_marker)
@property
@pulumi.getter
def date(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the date after which you want the corresponding action to take effect.
"""
return pulumi.get(self, "date")
@date.setter
def date(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "date", value)
@property
@pulumi.getter
def days(self) -> Optional[pulumi.Input[int]]:
"""
Specifies the number of days after object creation when the specific rule action takes effect.
"""
return pulumi.get(self, "days")
@days.setter
def days(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "days", value)
@property
@pulumi.getter(name="expiredObjectDeleteMarker")
def expired_object_delete_marker(self) -> Optional[pulumi.Input[bool]]:
"""
On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct Object Storage to delete expired object delete markers.
"""
return pulumi.get(self, "expired_object_delete_marker")
@expired_object_delete_marker.setter
def expired_object_delete_marker(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "expired_object_delete_marker", value)
@pulumi.input_type
class StorageBucketLifecycleRuleNoncurrentVersionExpirationArgs:
def __init__(__self__, *,
days: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] days: Specifies the number of days noncurrent object versions expire.
"""
if days is not None:
pulumi.set(__self__, "days", days)
@property
@pulumi.getter
def days(self) -> Optional[pulumi.Input[int]]:
"""
Specifies the number of days noncurrent object versions expire.
"""
return pulumi.get(self, "days")
@days.setter
def days(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "days", value)
@pulumi.input_type
class StorageBucketLifecycleRuleNoncurrentVersionTransitionArgs:
def __init__(__self__, *,
storage_class: pulumi.Input[str],
days: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] storage_class: Specifies the storage class to which you want the noncurrent object versions to transition. Can only be `COLD` or `STANDARD_IA`.
:param pulumi.Input[int] days: Specifies the number of days noncurrent object versions transition.
"""
pulumi.set(__self__, "storage_class", storage_class)
if days is not None:
pulumi.set(__self__, "days", days)
@property
@pulumi.getter(name="storageClass")
def storage_class(self) -> pulumi.Input[str]:
"""
Specifies the storage class to which you want the noncurrent object versions to transition. Can only be `COLD` or `STANDARD_IA`.
"""
return pulumi.get(self, "storage_class")
@storage_class.setter
def storage_class(self, value: pulumi.Input[str]):
pulumi.set(self, "storage_class", value)
@property
@pulumi.getter
def days(self) -> Optional[pulumi.Input[int]]:
"""
Specifies the number of days noncurrent object versions transition.
"""
return pulumi.get(self, "days")
@days.setter
def days(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "days", value)
@pulumi.input_type
class StorageBucketLifecycleRuleTransitionArgs:
def __init__(__self__, *,
storage_class: pulumi.Input[str],
date: Optional[pulumi.Input[str]] = None,
days: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] storage_class: Specifies the storage class to which you want the object to transition. Can only be `COLD` or `STANDARD_IA`.
:param pulumi.Input[str] date: Specifies the date after which you want the corresponding action to take effect.
:param pulumi.Input[int] days: Specifies the number of days after object creation when the specific rule action takes effect.
"""
pulumi.set(__self__, "storage_class", storage_class)
if date is not None:
pulumi.set(__self__, "date", date)
if days is not None:
pulumi.set(__self__, "days", days)
@property
@pulumi.getter(name="storageClass")
def storage_class(self) -> pulumi.Input[str]:
"""
Specifies the storage class to which you want the object to transition. Can only be `COLD` or `STANDARD_IA`.
"""
return pulumi.get(self, "storage_class")
@storage_class.setter
def storage_class(self, value: pulumi.Input[str]):
pulumi.set(self, "storage_class", value)
@property
@pulumi.getter
def date(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the date after which you want the corresponding action to take effect.
"""
return pulumi.get(self, "date")
@date.setter
def date(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "date", value)
@property
@pulumi.getter
def days(self) -> Optional[pulumi.Input[int]]:
"""
Specifies the number of days after object creation when the specific rule action takes effect.
"""
return pulumi.get(self, "days")
@days.setter
def days(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "days", value)
@pulumi.input_type
class StorageBucketLoggingArgs:
def __init__(__self__, *,
target_bucket: pulumi.Input[str],
target_prefix: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] target_bucket: The name of the bucket that will receive the log objects.
:param pulumi.Input[str] target_prefix: To specify a key prefix for log objects.
"""
pulumi.set(__self__, "target_bucket", target_bucket)
if target_prefix is not None:
pulumi.set(__self__, "target_prefix", target_prefix)
@property
@pulumi.getter(name="targetBucket")
def target_bucket(self) -> pulumi.Input[str]:
"""
The name of the bucket that will receive the log objects.
"""
return pulumi.get(self, "target_bucket")
@target_bucket.setter
def target_bucket(self, value: pulumi.Input[str]):
pulumi.set(self, "target_bucket", value)
@property
@pulumi.getter(name="targetPrefix")
def target_prefix(self) -> Optional[pulumi.Input[str]]:
"""
To specify a key prefix for log objects.
"""
return pulumi.get(self, "target_prefix")
@target_prefix.setter
def target_prefix(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "target_prefix", value)
@pulumi.input_type
class StorageBucketServerSideEncryptionConfigurationArgs:
def __init__(__self__, *,
rule: pulumi.Input['StorageBucketServerSideEncryptionConfigurationRuleArgs']):
"""
:param pulumi.Input['StorageBucketServerSideEncryptionConfigurationRuleArgs'] rule: A single object for server-side encryption by default configuration. (documented below)
"""
pulumi.set(__self__, "rule", rule)
@property
@pulumi.getter
def rule(self) -> pulumi.Input['StorageBucketServerSideEncryptionConfigurationRuleArgs']:
"""
A single object for server-side encryption by default configuration. (documented below)
"""
return pulumi.get(self, "rule")
@rule.setter
def rule(self, value: pulumi.Input['StorageBucketServerSideEncryptionConfigurationRuleArgs']):
pulumi.set(self, "rule", value)
@pulumi.input_type
class StorageBucketServerSideEncryptionConfigurationRuleArgs:
def __init__(__self__, *,
apply_server_side_encryption_by_default: pulumi.Input['StorageBucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs']):
"""
:param pulumi.Input['StorageBucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs'] apply_server_side_encryption_by_default: A single object for setting server-side encryption by default. (documented below)
"""
pulumi.set(__self__, "apply_server_side_encryption_by_default", apply_server_side_encryption_by_default)
@property
@pulumi.getter(name="applyServerSideEncryptionByDefault")
def apply_server_side_encryption_by_default(self) -> pulumi.Input['StorageBucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs']:
"""
A single object for setting server-side encryption by default. (documented below)
"""
return pulumi.get(self, "apply_server_side_encryption_by_default")
@apply_server_side_encryption_by_default.setter
def apply_server_side_encryption_by_default(self, value: pulumi.Input['StorageBucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs']):
pulumi.set(self, "apply_server_side_encryption_by_default", value)
@pulumi.input_type
class StorageBucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs:
def __init__(__self__, *,
kms_master_key_id: pulumi.Input[str],
sse_algorithm: pulumi.Input[str]):
"""
:param pulumi.Input[str] kms_master_key_id: The KMS master key ID used for the SSE-KMS encryption.
:param pulumi.Input[str] sse_algorithm: The server-side encryption algorithm to use. Single valid value is `aws:kms`
"""
pulumi.set(__self__, "kms_master_key_id", kms_master_key_id)
pulumi.set(__self__, "sse_algorithm", sse_algorithm)
@property
@pulumi.getter(name="kmsMasterKeyId")
def kms_master_key_id(self) -> pulumi.Input[str]:
"""
The KMS master key ID used for the SSE-KMS encryption.
"""
return pulumi.get(self, "kms_master_key_id")
@kms_master_key_id.setter
def kms_master_key_id(self, value: pulumi.Input[str]):
pulumi.set(self, "kms_master_key_id", value)
@property
@pulumi.getter(name="sseAlgorithm")
def sse_algorithm(self) -> pulumi.Input[str]:
"""
The server-side encryption algorithm to use. Single valid value is `aws:kms`
"""
return pulumi.get(self, "sse_algorithm")
@sse_algorithm.setter
def sse_algorithm(self, value: pulumi.Input[str]):
pulumi.set(self, "sse_algorithm", value)
@pulumi.input_type
class StorageBucketVersioningArgs:
def __init__(__self__, *,
enabled: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[bool] enabled: Enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket.
"""
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
@property
@pulumi.getter
def enabled(self) -> Optional[pulumi.Input[bool]]:
"""
Enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket.
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enabled", value)
@pulumi.input_type
class StorageBucketWebsiteArgs:
def __init__(__self__, *,
error_document: Optional[pulumi.Input[str]] = None,
index_document: Optional[pulumi.Input[str]] = None,
redirect_all_requests_to: Optional[pulumi.Input[str]] = None,
routing_rules: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] error_document: An absolute path to the document to return in case of a 4XX error.
:param pulumi.Input[str] index_document: Storage returns this index document when requests are made to the root domain or any of the subfolders.
:param pulumi.Input[str] redirect_all_requests_to: A hostname to redirect all website requests for this bucket to. Hostname can optionally be prefixed with a protocol (`http://` or `https://`) to use when redirecting requests. The default is the protocol that is used in the original request.
:param pulumi.Input[str] routing_rules: A json array containing [routing rules](https://cloud.yandex.com/docs/storage/s3/api-ref/hosting/upload#request-scheme) describing redirect behavior and when redirects are applied.
"""
if error_document is not None:
pulumi.set(__self__, "error_document", error_document)
if index_document is not None:
pulumi.set(__self__, "index_document", index_document)
if redirect_all_requests_to is not None:
pulumi.set(__self__, "redirect_all_requests_to", redirect_all_requests_to)
if routing_rules is not None:
pulumi.set(__self__, "routing_rules", routing_rules)
@property
@pulumi.getter(name="errorDocument")
def error_document(self) -> Optional[pulumi.Input[str]]:
"""
An absolute path to the document to return in case of a 4XX error.
"""
return pulumi.get(self, "error_document")
@error_document.setter
def error_document(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "error_document", value)
@property
@pulumi.getter(name="indexDocument")
def index_document(self) -> Optional[pulumi.Input[str]]:
"""
Storage returns this index document when requests are made to the root domain or any of the subfolders.
"""
return pulumi.get(self, "index_document")
@index_document.setter
def index_document(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "index_document", value)
@property
@pulumi.getter(name="redirectAllRequestsTo")
def redirect_all_requests_to(self) -> Optional[pulumi.Input[str]]:
"""
A hostname to redirect all website requests for this bucket to. Hostname can optionally be prefixed with a protocol (`http://` or `https://`) to use when redirecting requests. The default is the protocol that is used in the original request.
"""
return pulumi.get(self, "redirect_all_requests_to")
@redirect_all_requests_to.setter
def redirect_all_requests_to(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "redirect_all_requests_to", value)
@property
@pulumi.getter(name="routingRules")
def routing_rules(self) -> Optional[pulumi.Input[str]]:
"""
A json array containing [routing rules](https://cloud.yandex.com/docs/storage/s3/api-ref/hosting/upload#request-scheme) describing redirect behavior and when redirects are applied.
"""
return pulumi.get(self, "routing_rules")
@routing_rules.setter
def routing_rules(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "routing_rules", value)
@pulumi.input_type
class VpcAddressExternalIpv4AddressArgs:
def __init__(__self__, *,
address: Optional[pulumi.Input[str]] = None,
ddos_protection_provider: Optional[pulumi.Input[str]] = None,
outgoing_smtp_capability: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] address: - Desired IP.
:param pulumi.Input[str] ddos_protection_provider: Enable DDOS protection. Possible values are: "qrator"
:param pulumi.Input[str] outgoing_smtp_capability: Wanted outgoing smtp capability.
:param pulumi.Input[str] zone_id: - Zone for allocating address.
"""
if address is not None:
pulumi.set(__self__, "address", address)
if ddos_protection_provider is not None:
pulumi.set(__self__, "ddos_protection_provider", ddos_protection_provider)
if outgoing_smtp_capability is not None:
pulumi.set(__self__, "outgoing_smtp_capability", outgoing_smtp_capability)
if zone_id is not None:
pulumi.set(__self__, "zone_id", zone_id)
@property
@pulumi.getter
def address(self) -> Optional[pulumi.Input[str]]:
"""
- Desired IP.
"""
return pulumi.get(self, "address")
@address.setter
def address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "address", value)
@property
@pulumi.getter(name="ddosProtectionProvider")
def ddos_protection_provider(self) -> Optional[pulumi.Input[str]]:
"""
Enable DDOS protection. Possible values are: "qrator"
"""
return pulumi.get(self, "ddos_protection_provider")
@ddos_protection_provider.setter
def ddos_protection_provider(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "ddos_protection_provider", value)
@property
@pulumi.getter(name="outgoingSmtpCapability")
def outgoing_smtp_capability(self) -> Optional[pulumi.Input[str]]:
"""
Wanted outgoing smtp capability.
"""
return pulumi.get(self, "outgoing_smtp_capability")
@outgoing_smtp_capability.setter
def outgoing_smtp_capability(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "outgoing_smtp_capability", value)
@property
@pulumi.getter(name="zoneId")
def zone_id(self) -> Optional[pulumi.Input[str]]:
"""
- Zone for allocating address.
"""
return pulumi.get(self, "zone_id")
@zone_id.setter
def zone_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "zone_id", value)
@pulumi.input_type
class VpcDefaultSecurityGroupEgressArgs:
def __init__(__self__, *,
protocol: pulumi.Input[str],
description: Optional[pulumi.Input[str]] = None,
from_port: Optional[pulumi.Input[int]] = None,
id: Optional[pulumi.Input[str]] = None,
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
port: Optional[pulumi.Input[int]] = None,
predefined_target: Optional[pulumi.Input[str]] = None,
security_group_id: Optional[pulumi.Input[str]] = None,
to_port: Optional[pulumi.Input[int]] = None,
v4_cidr_blocks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
v6_cidr_blocks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
:param pulumi.Input[str] description: Description of the security group.
:param pulumi.Input[str] id: Id of the security group.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Labels to assign to this security group.
"""
pulumi.set(__self__, "protocol", protocol)
if description is not None:
pulumi.set(__self__, "description", description)
if from_port is not None:
pulumi.set(__self__, "from_port", from_port)
if id is not None:
pulumi.set(__self__, "id", id)
if labels is not None:
pulumi.set(__self__, "labels", labels)
if port is not None:
pulumi.set(__self__, "port", port)
if predefined_target is not None:
pulumi.set(__self__, "predefined_target", predefined_target)
if security_group_id is not None:
pulumi.set(__self__, "security_group_id", security_group_id)
if to_port is not None:
pulumi.set(__self__, "to_port", to_port)
if v4_cidr_blocks is not None:
pulumi.set(__self__, "v4_cidr_blocks", v4_cidr_blocks)
if v6_cidr_blocks is not None:
pulumi.set(__self__, "v6_cidr_blocks", v6_cidr_blocks)
@property
@pulumi.getter
def protocol(self) -> pulumi.Input[str]:
return pulumi.get(self, "protocol")
@protocol.setter
def protocol(self, value: pulumi.Input[str]):
pulumi.set(self, "protocol", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
Description of the security group.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="fromPort")
def from_port(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "from_port")
@from_port.setter
def from_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "from_port", value)
@property
@pulumi.getter
def id(self) -> Optional[pulumi.Input[str]]:
"""
Id of the security group.
"""
return pulumi.get(self, "id")
@id.setter
def id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "id", value)
@property
@pulumi.getter
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
Labels to assign to this security group.
"""
return pulumi.get(self, "labels")
@labels.setter
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "labels", value)
@property
@pulumi.getter
def port(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "port")
@port.setter
def port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "port", value)
@property
@pulumi.getter(name="predefinedTarget")
def predefined_target(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "predefined_target")
@predefined_target.setter
def predefined_target(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "predefined_target", value)
@property
@pulumi.getter(name="securityGroupId")
def security_group_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "security_group_id")
@security_group_id.setter
def security_group_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "security_group_id", value)
@property
@pulumi.getter(name="toPort")
def to_port(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "to_port")
@to_port.setter
def to_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "to_port", value)
@property
@pulumi.getter(name="v4CidrBlocks")
def v4_cidr_blocks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
return pulumi.get(self, "v4_cidr_blocks")
@v4_cidr_blocks.setter
def v4_cidr_blocks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "v4_cidr_blocks", value)
@property
@pulumi.getter(name="v6CidrBlocks")
def v6_cidr_blocks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
return pulumi.get(self, "v6_cidr_blocks")
@v6_cidr_blocks.setter
def v6_cidr_blocks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "v6_cidr_blocks", value)
@pulumi.input_type
class VpcDefaultSecurityGroupIngressArgs:
def __init__(__self__, *,
protocol: pulumi.Input[str],
description: Optional[pulumi.Input[str]] = None,
from_port: Optional[pulumi.Input[int]] = None,
id: Optional[pulumi.Input[str]] = None,
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
port: Optional[pulumi.Input[int]] = None,
predefined_target: Optional[pulumi.Input[str]] = None,
security_group_id: Optional[pulumi.Input[str]] = None,
to_port: Optional[pulumi.Input[int]] = None,
v4_cidr_blocks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
v6_cidr_blocks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
:param pulumi.Input[str] description: Description of the security group.
:param pulumi.Input[str] id: Id of the security group.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Labels to assign to this security group.
"""
pulumi.set(__self__, "protocol", protocol)
if description is not None:
pulumi.set(__self__, "description", description)
if from_port is not None:
pulumi.set(__self__, "from_port", from_port)
if id is not None:
pulumi.set(__self__, "id", id)
if labels is not None:
pulumi.set(__self__, "labels", labels)
if port is not None:
pulumi.set(__self__, "port", port)
if predefined_target is not None:
pulumi.set(__self__, "predefined_target", predefined_target)
if security_group_id is not None:
pulumi.set(__self__, "security_group_id", security_group_id)
if to_port is not None:
pulumi.set(__self__, "to_port", to_port)
if v4_cidr_blocks is not None:
pulumi.set(__self__, "v4_cidr_blocks", v4_cidr_blocks)
if v6_cidr_blocks is not None:
pulumi.set(__self__, "v6_cidr_blocks", v6_cidr_blocks)
@property
@pulumi.getter
def protocol(self) -> pulumi.Input[str]:
return pulumi.get(self, "protocol")
@protocol.setter
def protocol(self, value: pulumi.Input[str]):
pulumi.set(self, "protocol", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
Description of the security group.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="fromPort")
def from_port(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "from_port")
@from_port.setter
def from_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "from_port", value)
@property
@pulumi.getter
def id(self) -> Optional[pulumi.Input[str]]:
"""
Id of the security group.
"""
return pulumi.get(self, "id")
@id.setter
def id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "id", value)
@property
@pulumi.getter
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
Labels to assign to this security group.
"""
return pulumi.get(self, "labels")
@labels.setter
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "labels", value)
@property
@pulumi.getter
def port(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "port")
@port.setter
def port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "port", value)
@property
@pulumi.getter(name="predefinedTarget")
def predefined_target(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "predefined_target")
@predefined_target.setter
def predefined_target(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "predefined_target", value)
@property
@pulumi.getter(name="securityGroupId")
def security_group_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "security_group_id")
@security_group_id.setter
def security_group_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "security_group_id", value)
@property
@pulumi.getter(name="toPort")
def to_port(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "to_port")
@to_port.setter
def to_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "to_port", value)
@property
@pulumi.getter(name="v4CidrBlocks")
def v4_cidr_blocks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
return pulumi.get(self, "v4_cidr_blocks")
@v4_cidr_blocks.setter
def v4_cidr_blocks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "v4_cidr_blocks", value)
@property
@pulumi.getter(name="v6CidrBlocks")
def v6_cidr_blocks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
return pulumi.get(self, "v6_cidr_blocks")
@v6_cidr_blocks.setter
def v6_cidr_blocks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "v6_cidr_blocks", value)
@pulumi.input_type
class VpcRouteTableStaticRouteArgs:
def __init__(__self__, *,
destination_prefix: Optional[pulumi.Input[str]] = None,
next_hop_address: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] destination_prefix: Route prefix in CIDR notation.
:param pulumi.Input[str] next_hop_address: Address of the next hop.
"""
if destination_prefix is not None:
pulumi.set(__self__, "destination_prefix", destination_prefix)
if next_hop_address is not None:
pulumi.set(__self__, "next_hop_address", next_hop_address)
@property
@pulumi.getter(name="destinationPrefix")
def destination_prefix(self) -> Optional[pulumi.Input[str]]:
"""
Route prefix in CIDR notation.
"""
return pulumi.get(self, "destination_prefix")
@destination_prefix.setter
def destination_prefix(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "destination_prefix", value)
@property
@pulumi.getter(name="nextHopAddress")
def next_hop_address(self) -> Optional[pulumi.Input[str]]:
"""
Address of the next hop.
"""
return pulumi.get(self, "next_hop_address")
@next_hop_address.setter
def next_hop_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "next_hop_address", value)
@pulumi.input_type
class VpcSecurityGroupEgressArgs:
def __init__(__self__, *,
protocol: pulumi.Input[str],
description: Optional[pulumi.Input[str]] = None,
from_port: Optional[pulumi.Input[int]] = None,
id: Optional[pulumi.Input[str]] = None,
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
port: Optional[pulumi.Input[int]] = None,
predefined_target: Optional[pulumi.Input[str]] = None,
security_group_id: Optional[pulumi.Input[str]] = None,
to_port: Optional[pulumi.Input[int]] = None,
v4_cidr_blocks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
v6_cidr_blocks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
:param pulumi.Input[str] description: Description of the security group.
:param pulumi.Input[str] id: Id of the rule.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Labels to assign to this security group.
"""
pulumi.set(__self__, "protocol", protocol)
if description is not None:
pulumi.set(__self__, "description", description)
if from_port is not None:
pulumi.set(__self__, "from_port", from_port)
if id is not None:
pulumi.set(__self__, "id", id)
if labels is not None:
pulumi.set(__self__, "labels", labels)
if port is not None:
pulumi.set(__self__, "port", port)
if predefined_target is not None:
pulumi.set(__self__, "predefined_target", predefined_target)
if security_group_id is not None:
pulumi.set(__self__, "security_group_id", security_group_id)
if to_port is not None:
pulumi.set(__self__, "to_port", to_port)
if v4_cidr_blocks is not None:
pulumi.set(__self__, "v4_cidr_blocks", v4_cidr_blocks)
if v6_cidr_blocks is not None:
pulumi.set(__self__, "v6_cidr_blocks", v6_cidr_blocks)
@property
@pulumi.getter
def protocol(self) -> pulumi.Input[str]:
return pulumi.get(self, "protocol")
@protocol.setter
def protocol(self, value: pulumi.Input[str]):
pulumi.set(self, "protocol", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
Description of the security group.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="fromPort")
def from_port(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "from_port")
@from_port.setter
def from_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "from_port", value)
@property
@pulumi.getter
def id(self) -> Optional[pulumi.Input[str]]:
"""
Id of the rule.
"""
return pulumi.get(self, "id")
@id.setter
def id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "id", value)
@property
@pulumi.getter
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
Labels to assign to this security group.
"""
return pulumi.get(self, "labels")
@labels.setter
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "labels", value)
@property
@pulumi.getter
def port(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "port")
@port.setter
def port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "port", value)
@property
@pulumi.getter(name="predefinedTarget")
def predefined_target(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "predefined_target")
@predefined_target.setter
def predefined_target(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "predefined_target", value)
@property
@pulumi.getter(name="securityGroupId")
def security_group_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "security_group_id")
@security_group_id.setter
def security_group_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "security_group_id", value)
@property
@pulumi.getter(name="toPort")
def to_port(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "to_port")
@to_port.setter
def to_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "to_port", value)
@property
@pulumi.getter(name="v4CidrBlocks")
def v4_cidr_blocks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
return pulumi.get(self, "v4_cidr_blocks")
@v4_cidr_blocks.setter
def v4_cidr_blocks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "v4_cidr_blocks", value)
@property
@pulumi.getter(name="v6CidrBlocks")
def v6_cidr_blocks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
return pulumi.get(self, "v6_cidr_blocks")
@v6_cidr_blocks.setter
def v6_cidr_blocks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "v6_cidr_blocks", value)
@pulumi.input_type
class VpcSecurityGroupIngressArgs:
def __init__(__self__, *,
protocol: pulumi.Input[str],
description: Optional[pulumi.Input[str]] = None,
from_port: Optional[pulumi.Input[int]] = None,
id: Optional[pulumi.Input[str]] = None,
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
port: Optional[pulumi.Input[int]] = None,
predefined_target: Optional[pulumi.Input[str]] = None,
security_group_id: Optional[pulumi.Input[str]] = None,
to_port: Optional[pulumi.Input[int]] = None,
v4_cidr_blocks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
v6_cidr_blocks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
:param pulumi.Input[str] description: Description of the security group.
:param pulumi.Input[str] id: Id of the rule.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Labels to assign to this security group.
"""
pulumi.set(__self__, "protocol", protocol)
if description is not None:
pulumi.set(__self__, "description", description)
if from_port is not None:
pulumi.set(__self__, "from_port", from_port)
if id is not None:
pulumi.set(__self__, "id", id)
if labels is not None:
pulumi.set(__self__, "labels", labels)
if port is not None:
pulumi.set(__self__, "port", port)
if predefined_target is not None:
pulumi.set(__self__, "predefined_target", predefined_target)
if security_group_id is not None:
pulumi.set(__self__, "security_group_id", security_group_id)
if to_port is not None:
pulumi.set(__self__, "to_port", to_port)
if v4_cidr_blocks is not None:
pulumi.set(__self__, "v4_cidr_blocks", v4_cidr_blocks)
if v6_cidr_blocks is not None:
pulumi.set(__self__, "v6_cidr_blocks", v6_cidr_blocks)
@property
@pulumi.getter
def protocol(self) -> pulumi.Input[str]:
return pulumi.get(self, "protocol")
@protocol.setter
def protocol(self, value: pulumi.Input[str]):
pulumi.set(self, "protocol", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
Description of the security group.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="fromPort")
def from_port(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "from_port")
@from_port.setter
def from_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "from_port", value)
@property
@pulumi.getter
def id(self) -> Optional[pulumi.Input[str]]:
"""
Id of the rule.
"""
return pulumi.get(self, "id")
@id.setter
def id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "id", value)
@property
@pulumi.getter
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
Labels to assign to this security group.
"""
return pulumi.get(self, "labels")
@labels.setter
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "labels", value)
@property
@pulumi.getter
def port(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "port")
@port.setter
def port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "port", value)
@property
@pulumi.getter(name="predefinedTarget")
def predefined_target(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "predefined_target")
@predefined_target.setter
def predefined_target(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "predefined_target", value)
@property
@pulumi.getter(name="securityGroupId")
def security_group_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "security_group_id")
@security_group_id.setter
def security_group_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "security_group_id", value)
@property
@pulumi.getter(name="toPort")
def to_port(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "to_port")
@to_port.setter
def to_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "to_port", value)
@property
@pulumi.getter(name="v4CidrBlocks")
def v4_cidr_blocks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
return pulumi.get(self, "v4_cidr_blocks")
@v4_cidr_blocks.setter
def v4_cidr_blocks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "v4_cidr_blocks", value)
@property
@pulumi.getter(name="v6CidrBlocks")
def v6_cidr_blocks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
return pulumi.get(self, "v6_cidr_blocks")
@v6_cidr_blocks.setter
def v6_cidr_blocks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "v6_cidr_blocks", value)
@pulumi.input_type
class VpcSubnetDhcpOptionsArgs:
def __init__(__self__, *,
domain_name: Optional[pulumi.Input[str]] = None,
domain_name_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
ntp_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
:param pulumi.Input[str] domain_name: Domain name.
:param pulumi.Input[Sequence[pulumi.Input[str]]] domain_name_servers: Domain name server IP addresses.
:param pulumi.Input[Sequence[pulumi.Input[str]]] ntp_servers: NTP server IP addresses.
"""
if domain_name is not None:
pulumi.set(__self__, "domain_name", domain_name)
if domain_name_servers is not None:
pulumi.set(__self__, "domain_name_servers", domain_name_servers)
if ntp_servers is not None:
pulumi.set(__self__, "ntp_servers", ntp_servers)
@property
@pulumi.getter(name="domainName")
def domain_name(self) -> Optional[pulumi.Input[str]]:
"""
Domain name.
"""
return pulumi.get(self, "domain_name")
@domain_name.setter
def domain_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "domain_name", value)
@property
@pulumi.getter(name="domainNameServers")
def domain_name_servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Domain name server IP addresses.
"""
return pulumi.get(self, "domain_name_servers")
@domain_name_servers.setter
def domain_name_servers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "domain_name_servers", value)
@property
@pulumi.getter(name="ntpServers")
def ntp_servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
NTP server IP addresses.
"""
return pulumi.get(self, "ntp_servers")
@ntp_servers.setter
def ntp_servers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "ntp_servers", value)
@pulumi.input_type
class YdbDatabaseDedicatedLocationArgs:
def __init__(__self__, *,
region: Optional[pulumi.Input['YdbDatabaseDedicatedLocationRegionArgs']] = None):
"""
:param pulumi.Input['YdbDatabaseDedicatedLocationRegionArgs'] region: Region for the Yandex Database cluster.
The structure is documented below.
"""
if region is not None:
pulumi.set(__self__, "region", region)
@property
@pulumi.getter
def region(self) -> Optional[pulumi.Input['YdbDatabaseDedicatedLocationRegionArgs']]:
"""
Region for the Yandex Database cluster.
The structure is documented below.
"""
return pulumi.get(self, "region")
@region.setter
def region(self, value: Optional[pulumi.Input['YdbDatabaseDedicatedLocationRegionArgs']]):
pulumi.set(self, "region", value)
@pulumi.input_type
class YdbDatabaseDedicatedLocationRegionArgs:
def __init__(__self__, *,
id: pulumi.Input[str]):
"""
:param pulumi.Input[str] id: Region ID for the Yandex Database cluster.
"""
pulumi.set(__self__, "id", id)
@property
@pulumi.getter
def id(self) -> pulumi.Input[str]:
"""
Region ID for the Yandex Database cluster.
"""
return pulumi.get(self, "id")
@id.setter
def id(self, value: pulumi.Input[str]):
pulumi.set(self, "id", value)
@pulumi.input_type
class YdbDatabaseDedicatedScalePolicyArgs:
def __init__(__self__, *,
fixed_scale: pulumi.Input['YdbDatabaseDedicatedScalePolicyFixedScaleArgs']):
"""
:param pulumi.Input['YdbDatabaseDedicatedScalePolicyFixedScaleArgs'] fixed_scale: Fixed scaling policy for the Yandex Database cluster.
The structure is documented below.
"""
pulumi.set(__self__, "fixed_scale", fixed_scale)
@property
@pulumi.getter(name="fixedScale")
def fixed_scale(self) -> pulumi.Input['YdbDatabaseDedicatedScalePolicyFixedScaleArgs']:
"""
Fixed scaling policy for the Yandex Database cluster.
The structure is documented below.
"""
return pulumi.get(self, "fixed_scale")
@fixed_scale.setter
def fixed_scale(self, value: pulumi.Input['YdbDatabaseDedicatedScalePolicyFixedScaleArgs']):
pulumi.set(self, "fixed_scale", value)
@pulumi.input_type
class YdbDatabaseDedicatedScalePolicyFixedScaleArgs:
def __init__(__self__, *,
size: pulumi.Input[int]):
"""
:param pulumi.Input[int] size: Number of instances for the Yandex Database cluster.
"""
pulumi.set(__self__, "size", size)
@property
@pulumi.getter
def size(self) -> pulumi.Input[int]:
"""
Number of instances for the Yandex Database cluster.
"""
return pulumi.get(self, "size")
@size.setter
def size(self, value: pulumi.Input[int]):
pulumi.set(self, "size", value)
@pulumi.input_type
class YdbDatabaseDedicatedStorageConfigArgs:
def __init__(__self__, *,
group_count: pulumi.Input[int],
storage_type_id: pulumi.Input[str]):
"""
:param pulumi.Input[int] group_count: Amount of storage groups of selected type for the Yandex Database cluster.
:param pulumi.Input[str] storage_type_id: Storage type ID for the Yandex Database cluster.
Available presets can be obtained via `yc ydb storage-type list` command.
"""
pulumi.set(__self__, "group_count", group_count)
pulumi.set(__self__, "storage_type_id", storage_type_id)
@property
@pulumi.getter(name="groupCount")
def group_count(self) -> pulumi.Input[int]:
"""
Amount of storage groups of selected type for the Yandex Database cluster.
"""
return pulumi.get(self, "group_count")
@group_count.setter
def group_count(self, value: pulumi.Input[int]):
pulumi.set(self, "group_count", value)
@property
@pulumi.getter(name="storageTypeId")
def storage_type_id(self) -> pulumi.Input[str]:
"""
Storage type ID for the Yandex Database cluster.
Available presets can be obtained via `yc ydb storage-type list` command.
"""
return pulumi.get(self, "storage_type_id")
@storage_type_id.setter
def storage_type_id(self, value: pulumi.Input[str]):
pulumi.set(self, "storage_type_id", value)
@pulumi.input_type
class GetAlbBackendGroupGrpcBackendArgs:
def __init__(__self__, *,
healthcheck: 'GetAlbBackendGroupGrpcBackendHealthcheckArgs',
load_balancing_config: 'GetAlbBackendGroupGrpcBackendLoadBalancingConfigArgs',
name: str,
port: int,
target_group_ids: Sequence[str],
tls: 'GetAlbBackendGroupGrpcBackendTlsArgs',
weight: int):
"""
:param 'GetAlbBackendGroupGrpcBackendHealthcheckArgs' healthcheck: Healthcheck specification that will be used by this backend. Structure is documented below.
:param 'GetAlbBackendGroupGrpcBackendLoadBalancingConfigArgs' load_balancing_config: Load Balancing Config specification that will be used by this backend. Structure is documented below.
:param str name: - Name of the Backend Group.
:param int port: Port for incoming traffic.
:param Sequence[str] target_group_ids: References target groups for the backend.
:param 'GetAlbBackendGroupGrpcBackendTlsArgs' tls: Tls specification that will be used by this backend. Structure is documented below.
:param int weight: Weight of the backend. Traffic will be split between backends of the same BackendGroup according to their weights.
"""
pulumi.set(__self__, "healthcheck", healthcheck)
pulumi.set(__self__, "load_balancing_config", load_balancing_config)
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "port", port)
pulumi.set(__self__, "target_group_ids", target_group_ids)
pulumi.set(__self__, "tls", tls)
pulumi.set(__self__, "weight", weight)
@property
@pulumi.getter
def healthcheck(self) -> 'GetAlbBackendGroupGrpcBackendHealthcheckArgs':
"""
Healthcheck specification that will be used by this backend. Structure is documented below.
"""
return pulumi.get(self, "healthcheck")
@healthcheck.setter
def healthcheck(self, value: 'GetAlbBackendGroupGrpcBackendHealthcheckArgs'):
pulumi.set(self, "healthcheck", value)
@property
@pulumi.getter(name="loadBalancingConfig")
def load_balancing_config(self) -> 'GetAlbBackendGroupGrpcBackendLoadBalancingConfigArgs':
"""
Load Balancing Config specification that will be used by this backend. Structure is documented below.
"""
return pulumi.get(self, "load_balancing_config")
@load_balancing_config.setter
def load_balancing_config(self, value: 'GetAlbBackendGroupGrpcBackendLoadBalancingConfigArgs'):
pulumi.set(self, "load_balancing_config", value)
@property
@pulumi.getter
def name(self) -> str:
"""
- Name of the Backend Group.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: str):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def port(self) -> int:
"""
Port for incoming traffic.
"""
return pulumi.get(self, "port")
@port.setter
def port(self, value: int):
pulumi.set(self, "port", value)
@property
@pulumi.getter(name="targetGroupIds")
def target_group_ids(self) -> Sequence[str]:
"""
References target groups for the backend.
"""
return pulumi.get(self, "target_group_ids")
@target_group_ids.setter
def target_group_ids(self, value: Sequence[str]):
pulumi.set(self, "target_group_ids", value)
@property
@pulumi.getter
def tls(self) -> 'GetAlbBackendGroupGrpcBackendTlsArgs':
"""
Tls specification that will be used by this backend. Structure is documented below.
"""
return pulumi.get(self, "tls")
@tls.setter
def tls(self, value: 'GetAlbBackendGroupGrpcBackendTlsArgs'):
pulumi.set(self, "tls", value)
@property
@pulumi.getter
def weight(self) -> int:
"""
Weight of the backend. Traffic will be split between backends of the same BackendGroup according to their weights.
"""
return pulumi.get(self, "weight")
@weight.setter
def weight(self, value: int):
pulumi.set(self, "weight", value)
@pulumi.input_type
class GetAlbBackendGroupGrpcBackendHealthcheckArgs:
def __init__(__self__, *,
grpc_healthcheck: 'GetAlbBackendGroupGrpcBackendHealthcheckGrpcHealthcheckArgs',
healthcheck_port: int,
healthy_threshold: int,
http_healthcheck: 'GetAlbBackendGroupGrpcBackendHealthcheckHttpHealthcheckArgs',
interval: str,
interval_jitter_percent: float,
stream_healthcheck: 'GetAlbBackendGroupGrpcBackendHealthcheckStreamHealthcheckArgs',
timeout: str,
unhealthy_threshold: int):
"""
:param 'GetAlbBackendGroupGrpcBackendHealthcheckGrpcHealthcheckArgs' grpc_healthcheck: Grpc Healthcheck specification that will be used by this healthcheck. Structure is documented below.
:param int healthcheck_port: Optional alternative port for health checking.
:param int healthy_threshold: Number of consecutive successful health checks required to promote endpoint into the healthy state. 0 means 1. Note that during startup, only a single successful health check is required to mark a host healthy.
:param 'GetAlbBackendGroupGrpcBackendHealthcheckHttpHealthcheckArgs' http_healthcheck: Http Healthcheck specification that will be used by this healthcheck. Structure is documented below.
:param str interval: Interval between health checks.
:param float interval_jitter_percent: An optional jitter amount as a percentage of interval. If specified, during every interval value of (interval_ms * interval_jitter_percent / 100) will be added to the wait time.
:param 'GetAlbBackendGroupGrpcBackendHealthcheckStreamHealthcheckArgs' stream_healthcheck: Stream Healthcheck specification that will be used by this healthcheck. Structure is documented below.
:param str timeout: Time to wait for a health check response.
:param int unhealthy_threshold: Number of consecutive failed health checks required to demote endpoint into the unhealthy state. 0 means 1. Note that for HTTP health checks, a single 503 immediately makes endpoint unhealthy.
"""
pulumi.set(__self__, "grpc_healthcheck", grpc_healthcheck)
pulumi.set(__self__, "healthcheck_port", healthcheck_port)
pulumi.set(__self__, "healthy_threshold", healthy_threshold)
pulumi.set(__self__, "http_healthcheck", http_healthcheck)
pulumi.set(__self__, "interval", interval)
pulumi.set(__self__, "interval_jitter_percent", interval_jitter_percent)
pulumi.set(__self__, "stream_healthcheck", stream_healthcheck)
pulumi.set(__self__, "timeout", timeout)
pulumi.set(__self__, "unhealthy_threshold", unhealthy_threshold)
@property
@pulumi.getter(name="grpcHealthcheck")
def grpc_healthcheck(self) -> 'GetAlbBackendGroupGrpcBackendHealthcheckGrpcHealthcheckArgs':
"""
Grpc Healthcheck specification that will be used by this healthcheck. Structure is documented below.
"""
return pulumi.get(self, "grpc_healthcheck")
@grpc_healthcheck.setter
def grpc_healthcheck(self, value: 'GetAlbBackendGroupGrpcBackendHealthcheckGrpcHealthcheckArgs'):
pulumi.set(self, "grpc_healthcheck", value)
@property
@pulumi.getter(name="healthcheckPort")
def healthcheck_port(self) -> int:
"""
Optional alternative port for health checking.
"""
return pulumi.get(self, "healthcheck_port")
@healthcheck_port.setter
def healthcheck_port(self, value: int):
pulumi.set(self, "healthcheck_port", value)
@property
@pulumi.getter(name="healthyThreshold")
def healthy_threshold(self) -> int:
"""
Number of consecutive successful health checks required to promote endpoint into the healthy state. 0 means 1. Note that during startup, only a single successful health check is required to mark a host healthy.
"""
return pulumi.get(self, "healthy_threshold")
@healthy_threshold.setter
def healthy_threshold(self, value: int):
pulumi.set(self, "healthy_threshold", value)
@property
@pulumi.getter(name="httpHealthcheck")
def http_healthcheck(self) -> 'GetAlbBackendGroupGrpcBackendHealthcheckHttpHealthcheckArgs':
"""
Http Healthcheck specification that will be used by this healthcheck. Structure is documented below.
"""
return pulumi.get(self, "http_healthcheck")
@http_healthcheck.setter
def http_healthcheck(self, value: 'GetAlbBackendGroupGrpcBackendHealthcheckHttpHealthcheckArgs'):
pulumi.set(self, "http_healthcheck", value)
@property
@pulumi.getter
def interval(self) -> str:
"""
Interval between health checks.
"""
return pulumi.get(self, "interval")
@interval.setter
def interval(self, value: str):
pulumi.set(self, "interval", value)
@property
@pulumi.getter(name="intervalJitterPercent")
def interval_jitter_percent(self) -> float:
"""
An optional jitter amount as a percentage of interval. If specified, during every interval value of (interval_ms * interval_jitter_percent / 100) will be added to the wait time.
"""
return pulumi.get(self, "interval_jitter_percent")
@interval_jitter_percent.setter
def interval_jitter_percent(self, value: float):
pulumi.set(self, "interval_jitter_percent", value)
@property
@pulumi.getter(name="streamHealthcheck")
def stream_healthcheck(self) -> 'GetAlbBackendGroupGrpcBackendHealthcheckStreamHealthcheckArgs':
"""
Stream Healthcheck specification that will be used by this healthcheck. Structure is documented below.
"""
return pulumi.get(self, "stream_healthcheck")
@stream_healthcheck.setter
def stream_healthcheck(self, value: 'GetAlbBackendGroupGrpcBackendHealthcheckStreamHealthcheckArgs'):
pulumi.set(self, "stream_healthcheck", value)
@property
@pulumi.getter
def timeout(self) -> str:
"""
Time to wait for a health check response.
"""
return pulumi.get(self, "timeout")
@timeout.setter
def timeout(self, value: str):
pulumi.set(self, "timeout", value)
@property
@pulumi.getter(name="unhealthyThreshold")
def unhealthy_threshold(self) -> int:
"""
Number of consecutive failed health checks required to demote endpoint into the unhealthy state. 0 means 1. Note that for HTTP health checks, a single 503 immediately makes endpoint unhealthy.
"""
return pulumi.get(self, "unhealthy_threshold")
@unhealthy_threshold.setter
def unhealthy_threshold(self, value: int):
pulumi.set(self, "unhealthy_threshold", value)
@pulumi.input_type
class GetAlbBackendGroupGrpcBackendHealthcheckGrpcHealthcheckArgs:
def __init__(__self__, *,
service_name: str):
"""
:param str service_name: Optional service name for grpc.health.v1.HealthCheckRequest message.
"""
pulumi.set(__self__, "service_name", service_name)
@property
@pulumi.getter(name="serviceName")
def service_name(self) -> str:
"""
Optional service name for grpc.health.v1.HealthCheckRequest message.
"""
return pulumi.get(self, "service_name")
@service_name.setter
def service_name(self, value: str):
pulumi.set(self, "service_name", value)
@pulumi.input_type
class GetAlbBackendGroupGrpcBackendHealthcheckHttpHealthcheckArgs:
def __init__(__self__, *,
host: str,
http2: bool,
path: str):
"""
:param str host: Optional "Host" HTTP header value.
:param bool http2: If set, health checks will use HTTP2.
:param str path: HTTP path.
"""
pulumi.set(__self__, "host", host)
pulumi.set(__self__, "http2", http2)
pulumi.set(__self__, "path", path)
@property
@pulumi.getter
def host(self) -> str:
"""
Optional "Host" HTTP header value.
"""
return pulumi.get(self, "host")
@host.setter
def host(self, value: str):
pulumi.set(self, "host", value)
@property
@pulumi.getter
def http2(self) -> bool:
"""
If set, health checks will use HTTP2.
"""
return pulumi.get(self, "http2")
@http2.setter
def http2(self, value: bool):
pulumi.set(self, "http2", value)
@property
@pulumi.getter
def path(self) -> str:
"""
HTTP path.
"""
return pulumi.get(self, "path")
@path.setter
def path(self, value: str):
pulumi.set(self, "path", value)
@pulumi.input_type
class GetAlbBackendGroupGrpcBackendHealthcheckStreamHealthcheckArgs:
def __init__(__self__, *,
receive: str,
send: str):
"""
:param str receive: Optional text to search in reply.
:param str send: Optional message to send. If empty, it's a connect-only health check.
"""
pulumi.set(__self__, "receive", receive)
pulumi.set(__self__, "send", send)
@property
@pulumi.getter
def receive(self) -> str:
"""
Optional text to search in reply.
"""
return pulumi.get(self, "receive")
@receive.setter
def receive(self, value: str):
pulumi.set(self, "receive", value)
@property
@pulumi.getter
def send(self) -> str:
"""
Optional message to send. If empty, it's a connect-only health check.
"""
return pulumi.get(self, "send")
@send.setter
def send(self, value: str):
pulumi.set(self, "send", value)
@pulumi.input_type
class GetAlbBackendGroupGrpcBackendLoadBalancingConfigArgs:
def __init__(__self__, *,
locality_aware_routing_percent: int,
panic_threshold: int,
strict_locality: bool):
"""
:param int locality_aware_routing_percent: Percent of traffic to be sent to the same availability zone. The rest will be equally divided between other zones.
:param int panic_threshold: If percentage of healthy hosts in the backend is lower than panic_threshold, traffic will be routed to all backends no matter what the health status is. This helps to avoid healthy backends overloading when everything is bad. Zero means no panic threshold.
:param bool strict_locality: If set, will route requests only to the same availability zone. Balancer won't know about endpoints in other zones.
"""
pulumi.set(__self__, "locality_aware_routing_percent", locality_aware_routing_percent)
pulumi.set(__self__, "panic_threshold", panic_threshold)
pulumi.set(__self__, "strict_locality", strict_locality)
@property
@pulumi.getter(name="localityAwareRoutingPercent")
def locality_aware_routing_percent(self) -> int:
"""
Percent of traffic to be sent to the same availability zone. The rest will be equally divided between other zones.
"""
return pulumi.get(self, "locality_aware_routing_percent")
@locality_aware_routing_percent.setter
def locality_aware_routing_percent(self, value: int):
pulumi.set(self, "locality_aware_routing_percent", value)
@property
@pulumi.getter(name="panicThreshold")
def panic_threshold(self) -> int:
"""
If percentage of healthy hosts in the backend is lower than panic_threshold, traffic will be routed to all backends no matter what the health status is. This helps to avoid healthy backends overloading when everything is bad. Zero means no panic threshold.
"""
return pulumi.get(self, "panic_threshold")
@panic_threshold.setter
def panic_threshold(self, value: int):
pulumi.set(self, "panic_threshold", value)
@property
@pulumi.getter(name="strictLocality")
def strict_locality(self) -> bool:
"""
If set, will route requests only to the same availability zone. Balancer won't know about endpoints in other zones.
"""
return pulumi.get(self, "strict_locality")
@strict_locality.setter
def strict_locality(self, value: bool):
pulumi.set(self, "strict_locality", value)
@pulumi.input_type
class GetAlbBackendGroupGrpcBackendTlsArgs:
def __init__(__self__, *,
sni: str,
validation_context: 'GetAlbBackendGroupGrpcBackendTlsValidationContextArgs'):
"""
:param str sni: [SNI](https://en.wikipedia.org/wiki/Server_Name_Indication) string for TLS connections.
* `validation_context.0.trusted_ca_id` - Trusted CA certificate ID in the Certificate Manager.
* `validation_context.0.trusted_ca_bytes` - PEM-encoded trusted CA certificate chain.
"""
pulumi.set(__self__, "sni", sni)
pulumi.set(__self__, "validation_context", validation_context)
@property
@pulumi.getter
def sni(self) -> str:
"""
[SNI](https://en.wikipedia.org/wiki/Server_Name_Indication) string for TLS connections.
* `validation_context.0.trusted_ca_id` - Trusted CA certificate ID in the Certificate Manager.
* `validation_context.0.trusted_ca_bytes` - PEM-encoded trusted CA certificate chain.
"""
return pulumi.get(self, "sni")
@sni.setter
def sni(self, value: str):
pulumi.set(self, "sni", value)
@property
@pulumi.getter(name="validationContext")
def validation_context(self) -> 'GetAlbBackendGroupGrpcBackendTlsValidationContextArgs':
return pulumi.get(self, "validation_context")
@validation_context.setter
def validation_context(self, value: 'GetAlbBackendGroupGrpcBackendTlsValidationContextArgs'):
pulumi.set(self, "validation_context", value)
@pulumi.input_type
class GetAlbBackendGroupGrpcBackendTlsValidationContextArgs:
def __init__(__self__, *,
trusted_ca_bytes: str,
trusted_ca_id: str):
pulumi.set(__self__, "trusted_ca_bytes", trusted_ca_bytes)
pulumi.set(__self__, "trusted_ca_id", trusted_ca_id)
@property
@pulumi.getter(name="trustedCaBytes")
def trusted_ca_bytes(self) -> str:
return pulumi.get(self, "trusted_ca_bytes")
@trusted_ca_bytes.setter
def trusted_ca_bytes(self, value: str):
pulumi.set(self, "trusted_ca_bytes", value)
@property
@pulumi.getter(name="trustedCaId")
def trusted_ca_id(self) -> str:
return pulumi.get(self, "trusted_ca_id")
@trusted_ca_id.setter
def trusted_ca_id(self, value: str):
pulumi.set(self, "trusted_ca_id", value)
@pulumi.input_type
class GetAlbBackendGroupHttpBackendArgs:
def __init__(__self__, *,
healthcheck: 'GetAlbBackendGroupHttpBackendHealthcheckArgs',
http2: bool,
load_balancing_config: 'GetAlbBackendGroupHttpBackendLoadBalancingConfigArgs',
name: str,
port: int,
target_group_ids: Sequence[str],
tls: 'GetAlbBackendGroupHttpBackendTlsArgs',
weight: int):
"""
:param 'GetAlbBackendGroupHttpBackendHealthcheckArgs' healthcheck: Healthcheck specification that will be used by this backend. Structure is documented below.
:param bool http2: If set, health checks will use HTTP2.
:param 'GetAlbBackendGroupHttpBackendLoadBalancingConfigArgs' load_balancing_config: Load Balancing Config specification that will be used by this backend. Structure is documented below.
:param str name: - Name of the Backend Group.
:param int port: Port for incoming traffic.
:param Sequence[str] target_group_ids: References target groups for the backend.
:param 'GetAlbBackendGroupHttpBackendTlsArgs' tls: Tls specification that will be used by this backend. Structure is documented below.
:param int weight: Weight of the backend. Traffic will be split between backends of the same BackendGroup according to their weights.
"""
pulumi.set(__self__, "healthcheck", healthcheck)
pulumi.set(__self__, "http2", http2)
pulumi.set(__self__, "load_balancing_config", load_balancing_config)
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "port", port)
pulumi.set(__self__, "target_group_ids", target_group_ids)
pulumi.set(__self__, "tls", tls)
pulumi.set(__self__, "weight", weight)
@property
@pulumi.getter
def healthcheck(self) -> 'GetAlbBackendGroupHttpBackendHealthcheckArgs':
"""
Healthcheck specification that will be used by this backend. Structure is documented below.
"""
return pulumi.get(self, "healthcheck")
@healthcheck.setter
def healthcheck(self, value: 'GetAlbBackendGroupHttpBackendHealthcheckArgs'):
pulumi.set(self, "healthcheck", value)
@property
@pulumi.getter
def http2(self) -> bool:
"""
If set, health checks will use HTTP2.
"""
return pulumi.get(self, "http2")
@http2.setter
def http2(self, value: bool):
pulumi.set(self, "http2", value)
@property
@pulumi.getter(name="loadBalancingConfig")
def load_balancing_config(self) -> 'GetAlbBackendGroupHttpBackendLoadBalancingConfigArgs':
"""
Load Balancing Config specification that will be used by this backend. Structure is documented below.
"""
return pulumi.get(self, "load_balancing_config")
@load_balancing_config.setter
def load_balancing_config(self, value: 'GetAlbBackendGroupHttpBackendLoadBalancingConfigArgs'):
pulumi.set(self, "load_balancing_config", value)
@property
@pulumi.getter
def name(self) -> str:
"""
- Name of the Backend Group.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: str):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def port(self) -> int:
"""
Port for incoming traffic.
"""
return pulumi.get(self, "port")
@port.setter
def port(self, value: int):
pulumi.set(self, "port", value)
@property
@pulumi.getter(name="targetGroupIds")
def target_group_ids(self) -> Sequence[str]:
"""
References target groups for the backend.
"""
return pulumi.get(self, "target_group_ids")
@target_group_ids.setter
def target_group_ids(self, value: Sequence[str]):
pulumi.set(self, "target_group_ids", value)
@property
@pulumi.getter
def tls(self) -> 'GetAlbBackendGroupHttpBackendTlsArgs':
"""
Tls specification that will be used by this backend. Structure is documented below.
"""
return pulumi.get(self, "tls")
@tls.setter
def tls(self, value: 'GetAlbBackendGroupHttpBackendTlsArgs'):
pulumi.set(self, "tls", value)
@property
@pulumi.getter
def weight(self) -> int:
"""
Weight of the backend. Traffic will be split between backends of the same BackendGroup according to their weights.
"""
return pulumi.get(self, "weight")
@weight.setter
def weight(self, value: int):
pulumi.set(self, "weight", value)
@pulumi.input_type
class GetAlbBackendGroupHttpBackendHealthcheckArgs:
def __init__(__self__, *,
grpc_healthcheck: 'GetAlbBackendGroupHttpBackendHealthcheckGrpcHealthcheckArgs',
healthcheck_port: int,
healthy_threshold: int,
http_healthcheck: 'GetAlbBackendGroupHttpBackendHealthcheckHttpHealthcheckArgs',
interval: str,
interval_jitter_percent: float,
stream_healthcheck: 'GetAlbBackendGroupHttpBackendHealthcheckStreamHealthcheckArgs',
timeout: str,
unhealthy_threshold: int):
"""
:param 'GetAlbBackendGroupHttpBackendHealthcheckGrpcHealthcheckArgs' grpc_healthcheck: Grpc Healthcheck specification that will be used by this healthcheck. Structure is documented below.
:param int healthcheck_port: Optional alternative port for health checking.
:param int healthy_threshold: Number of consecutive successful health checks required to promote endpoint into the healthy state. 0 means 1. Note that during startup, only a single successful health check is required to mark a host healthy.
:param 'GetAlbBackendGroupHttpBackendHealthcheckHttpHealthcheckArgs' http_healthcheck: Http Healthcheck specification that will be used by this healthcheck. Structure is documented below.
:param str interval: Interval between health checks.
:param float interval_jitter_percent: An optional jitter amount as a percentage of interval. If specified, during every interval value of (interval_ms * interval_jitter_percent / 100) will be added to the wait time.
:param 'GetAlbBackendGroupHttpBackendHealthcheckStreamHealthcheckArgs' stream_healthcheck: Stream Healthcheck specification that will be used by this healthcheck. Structure is documented below.
:param str timeout: Time to wait for a health check response.
:param int unhealthy_threshold: Number of consecutive failed health checks required to demote endpoint into the unhealthy state. 0 means 1. Note that for HTTP health checks, a single 503 immediately makes endpoint unhealthy.
"""
pulumi.set(__self__, "grpc_healthcheck", grpc_healthcheck)
pulumi.set(__self__, "healthcheck_port", healthcheck_port)
pulumi.set(__self__, "healthy_threshold", healthy_threshold)
pulumi.set(__self__, "http_healthcheck", http_healthcheck)
pulumi.set(__self__, "interval", interval)
pulumi.set(__self__, "interval_jitter_percent", interval_jitter_percent)
pulumi.set(__self__, "stream_healthcheck", stream_healthcheck)
pulumi.set(__self__, "timeout", timeout)
pulumi.set(__self__, "unhealthy_threshold", unhealthy_threshold)
@property
@pulumi.getter(name="grpcHealthcheck")
def grpc_healthcheck(self) -> 'GetAlbBackendGroupHttpBackendHealthcheckGrpcHealthcheckArgs':
"""
Grpc Healthcheck specification that will be used by this healthcheck. Structure is documented below.
"""
return pulumi.get(self, "grpc_healthcheck")
@grpc_healthcheck.setter
def grpc_healthcheck(self, value: 'GetAlbBackendGroupHttpBackendHealthcheckGrpcHealthcheckArgs'):
pulumi.set(self, "grpc_healthcheck", value)
@property
@pulumi.getter(name="healthcheckPort")
def healthcheck_port(self) -> int:
"""
Optional alternative port for health checking.
"""
return pulumi.get(self, "healthcheck_port")
@healthcheck_port.setter
def healthcheck_port(self, value: int):
pulumi.set(self, "healthcheck_port", value)
@property
@pulumi.getter(name="healthyThreshold")
def healthy_threshold(self) -> int:
"""
Number of consecutive successful health checks required to promote endpoint into the healthy state. 0 means 1. Note that during startup, only a single successful health check is required to mark a host healthy.
"""
return pulumi.get(self, "healthy_threshold")
@healthy_threshold.setter
def healthy_threshold(self, value: int):
pulumi.set(self, "healthy_threshold", value)
@property
@pulumi.getter(name="httpHealthcheck")
def http_healthcheck(self) -> 'GetAlbBackendGroupHttpBackendHealthcheckHttpHealthcheckArgs':
"""
Http Healthcheck specification that will be used by this healthcheck. Structure is documented below.
"""
return pulumi.get(self, "http_healthcheck")
@http_healthcheck.setter
def http_healthcheck(self, value: 'GetAlbBackendGroupHttpBackendHealthcheckHttpHealthcheckArgs'):
pulumi.set(self, "http_healthcheck", value)
@property
@pulumi.getter
def interval(self) -> str:
"""
Interval between health checks.
"""
return pulumi.get(self, "interval")
@interval.setter
def interval(self, value: str):
pulumi.set(self, "interval", value)
@property
@pulumi.getter(name="intervalJitterPercent")
def interval_jitter_percent(self) -> float:
"""
An optional jitter amount as a percentage of interval. If specified, during every interval value of (interval_ms * interval_jitter_percent / 100) will be added to the wait time.
"""
return pulumi.get(self, "interval_jitter_percent")
@interval_jitter_percent.setter
def interval_jitter_percent(self, value: float):
pulumi.set(self, "interval_jitter_percent", value)
@property
@pulumi.getter(name="streamHealthcheck")
def stream_healthcheck(self) -> 'GetAlbBackendGroupHttpBackendHealthcheckStreamHealthcheckArgs':
"""
Stream Healthcheck specification that will be used by this healthcheck. Structure is documented below.
"""
return pulumi.get(self, "stream_healthcheck")
@stream_healthcheck.setter
def stream_healthcheck(self, value: 'GetAlbBackendGroupHttpBackendHealthcheckStreamHealthcheckArgs'):
pulumi.set(self, "stream_healthcheck", value)
@property
@pulumi.getter
def timeout(self) -> str:
"""
Time to wait for a health check response.
"""
return pulumi.get(self, "timeout")
@timeout.setter
def timeout(self, value: str):
pulumi.set(self, "timeout", value)
@property
@pulumi.getter(name="unhealthyThreshold")
def unhealthy_threshold(self) -> int:
"""
Number of consecutive failed health checks required to demote endpoint into the unhealthy state. 0 means 1. Note that for HTTP health checks, a single 503 immediately makes endpoint unhealthy.
"""
return pulumi.get(self, "unhealthy_threshold")
@unhealthy_threshold.setter
def unhealthy_threshold(self, value: int):
pulumi.set(self, "unhealthy_threshold", value)
@pulumi.input_type
class GetAlbBackendGroupHttpBackendHealthcheckGrpcHealthcheckArgs:
def __init__(__self__, *,
service_name: str):
"""
:param str service_name: Optional service name for grpc.health.v1.HealthCheckRequest message.
"""
pulumi.set(__self__, "service_name", service_name)
@property
@pulumi.getter(name="serviceName")
def service_name(self) -> str:
"""
Optional service name for grpc.health.v1.HealthCheckRequest message.
"""
return pulumi.get(self, "service_name")
@service_name.setter
def service_name(self, value: str):
pulumi.set(self, "service_name", value)
@pulumi.input_type
class GetAlbBackendGroupHttpBackendHealthcheckHttpHealthcheckArgs:
def __init__(__self__, *,
host: str,
http2: bool,
path: str):
"""
:param str host: Optional "Host" HTTP header value.
:param bool http2: If set, health checks will use HTTP2.
:param str path: HTTP path.
"""
pulumi.set(__self__, "host", host)
pulumi.set(__self__, "http2", http2)
pulumi.set(__self__, "path", path)
@property
@pulumi.getter
def host(self) -> str:
"""
Optional "Host" HTTP header value.
"""
return pulumi.get(self, "host")
@host.setter
def host(self, value: str):
pulumi.set(self, "host", value)
@property
@pulumi.getter
def http2(self) -> bool:
"""
If set, health checks will use HTTP2.
"""
return pulumi.get(self, "http2")
@http2.setter
def http2(self, value: bool):
pulumi.set(self, "http2", value)
@property
@pulumi.getter
def path(self) -> str:
"""
HTTP path.
"""
return pulumi.get(self, "path")
@path.setter
def path(self, value: str):
pulumi.set(self, "path", value)
@pulumi.input_type
class GetAlbBackendGroupHttpBackendHealthcheckStreamHealthcheckArgs:
def __init__(__self__, *,
receive: str,
send: str):
"""
:param str receive: Optional text to search in reply.
:param str send: Optional message to send. If empty, it's a connect-only health check.
"""
pulumi.set(__self__, "receive", receive)
pulumi.set(__self__, "send", send)
@property
@pulumi.getter
def receive(self) -> str:
"""
Optional text to search in reply.
"""
return pulumi.get(self, "receive")
@receive.setter
def receive(self, value: str):
pulumi.set(self, "receive", value)
@property
@pulumi.getter
def send(self) -> str:
"""
Optional message to send. If empty, it's a connect-only health check.
"""
return pulumi.get(self, "send")
@send.setter
def send(self, value: str):
pulumi.set(self, "send", value)
@pulumi.input_type
class GetAlbBackendGroupHttpBackendLoadBalancingConfigArgs:
def __init__(__self__, *,
locality_aware_routing_percent: int,
panic_threshold: int,
strict_locality: bool):
"""
:param int locality_aware_routing_percent: Percent of traffic to be sent to the same availability zone. The rest will be equally divided between other zones.
:param int panic_threshold: If percentage of healthy hosts in the backend is lower than panic_threshold, traffic will be routed to all backends no matter what the health status is. This helps to avoid healthy backends overloading when everything is bad. Zero means no panic threshold.
:param bool strict_locality: If set, will route requests only to the same availability zone. Balancer won't know about endpoints in other zones.
"""
pulumi.set(__self__, "locality_aware_routing_percent", locality_aware_routing_percent)
pulumi.set(__self__, "panic_threshold", panic_threshold)
pulumi.set(__self__, "strict_locality", strict_locality)
@property
@pulumi.getter(name="localityAwareRoutingPercent")
def locality_aware_routing_percent(self) -> int:
"""
Percent of traffic to be sent to the same availability zone. The rest will be equally divided between other zones.
"""
return pulumi.get(self, "locality_aware_routing_percent")
@locality_aware_routing_percent.setter
def locality_aware_routing_percent(self, value: int):
pulumi.set(self, "locality_aware_routing_percent", value)
@property
@pulumi.getter(name="panicThreshold")
def panic_threshold(self) -> int:
"""
If percentage of healthy hosts in the backend is lower than panic_threshold, traffic will be routed to all backends no matter what the health status is. This helps to avoid healthy backends overloading when everything is bad. Zero means no panic threshold.
"""
return pulumi.get(self, "panic_threshold")
@panic_threshold.setter
def panic_threshold(self, value: int):
pulumi.set(self, "panic_threshold", value)
@property
@pulumi.getter(name="strictLocality")
def strict_locality(self) -> bool:
"""
If set, will route requests only to the same availability zone. Balancer won't know about endpoints in other zones.
"""
return pulumi.get(self, "strict_locality")
@strict_locality.setter
def strict_locality(self, value: bool):
pulumi.set(self, "strict_locality", value)
@pulumi.input_type
class GetAlbBackendGroupHttpBackendTlsArgs:
def __init__(__self__, *,
sni: str,
validation_context: 'GetAlbBackendGroupHttpBackendTlsValidationContextArgs'):
"""
:param str sni: [SNI](https://en.wikipedia.org/wiki/Server_Name_Indication) string for TLS connections.
* `validation_context.0.trusted_ca_id` - Trusted CA certificate ID in the Certificate Manager.
* `validation_context.0.trusted_ca_bytes` - PEM-encoded trusted CA certificate chain.
"""
pulumi.set(__self__, "sni", sni)
pulumi.set(__self__, "validation_context", validation_context)
@property
@pulumi.getter
def sni(self) -> str:
"""
[SNI](https://en.wikipedia.org/wiki/Server_Name_Indication) string for TLS connections.
* `validation_context.0.trusted_ca_id` - Trusted CA certificate ID in the Certificate Manager.
* `validation_context.0.trusted_ca_bytes` - PEM-encoded trusted CA certificate chain.
"""
return pulumi.get(self, "sni")
@sni.setter
def sni(self, value: str):
pulumi.set(self, "sni", value)
@property
@pulumi.getter(name="validationContext")
def validation_context(self) -> 'GetAlbBackendGroupHttpBackendTlsValidationContextArgs':
return pulumi.get(self, "validation_context")
@validation_context.setter
def validation_context(self, value: 'GetAlbBackendGroupHttpBackendTlsValidationContextArgs'):
pulumi.set(self, "validation_context", value)
@pulumi.input_type
class GetAlbBackendGroupHttpBackendTlsValidationContextArgs:
def __init__(__self__, *,
trusted_ca_bytes: str,
trusted_ca_id: str):
pulumi.set(__self__, "trusted_ca_bytes", trusted_ca_bytes)
pulumi.set(__self__, "trusted_ca_id", trusted_ca_id)
@property
@pulumi.getter(name="trustedCaBytes")
def trusted_ca_bytes(self) -> str:
return pulumi.get(self, "trusted_ca_bytes")
@trusted_ca_bytes.setter
def trusted_ca_bytes(self, value: str):
pulumi.set(self, "trusted_ca_bytes", value)
@property
@pulumi.getter(name="trustedCaId")
def trusted_ca_id(self) -> str:
return pulumi.get(self, "trusted_ca_id")
@trusted_ca_id.setter
def trusted_ca_id(self, value: str):
pulumi.set(self, "trusted_ca_id", value)
@pulumi.input_type
class GetComputeDiskDiskPlacementPolicyArgs:
def __init__(__self__, *,
disk_placement_group_id: str):
pulumi.set(__self__, "disk_placement_group_id", disk_placement_group_id)
@property
@pulumi.getter(name="diskPlacementGroupId")
def disk_placement_group_id(self) -> str:
return pulumi.get(self, "disk_placement_group_id")
@disk_placement_group_id.setter
def disk_placement_group_id(self, value: str):
pulumi.set(self, "disk_placement_group_id", value)
@pulumi.input_type
class GetComputeInstancePlacementPolicyArgs:
def __init__(__self__, *,
placement_group_id: str):
pulumi.set(__self__, "placement_group_id", placement_group_id)
@property
@pulumi.getter(name="placementGroupId")
def placement_group_id(self) -> str:
return pulumi.get(self, "placement_group_id")
@placement_group_id.setter
def placement_group_id(self, value: str):
pulumi.set(self, "placement_group_id", value)
@pulumi.input_type
class GetComputeInstanceSchedulingPolicyArgs:
def __init__(__self__, *,
preemptible: Optional[bool] = None):
"""
:param bool preemptible: (Optional) Specifies if the instance is preemptible. Defaults to false.
"""
if preemptible is not None:
pulumi.set(__self__, "preemptible", preemptible)
@property
@pulumi.getter
def preemptible(self) -> Optional[bool]:
"""
(Optional) Specifies if the instance is preemptible. Defaults to false.
"""
return pulumi.get(self, "preemptible")
@preemptible.setter
def preemptible(self, value: Optional[bool]):
pulumi.set(self, "preemptible", value)
@pulumi.input_type
class GetFunctionScalingPolicyPolicyArgs:
def __init__(__self__, *,
tag: str,
zone_instances_limit: Optional[int] = None,
zone_requests_limit: Optional[int] = None):
pulumi.set(__self__, "tag", tag)
if zone_instances_limit is not None:
pulumi.set(__self__, "zone_instances_limit", zone_instances_limit)
if zone_requests_limit is not None:
pulumi.set(__self__, "zone_requests_limit", zone_requests_limit)
@property
@pulumi.getter
def tag(self) -> str:
return pulumi.get(self, "tag")
@tag.setter
def tag(self, value: str):
pulumi.set(self, "tag", value)
@property
@pulumi.getter(name="zoneInstancesLimit")
def zone_instances_limit(self) -> Optional[int]:
return pulumi.get(self, "zone_instances_limit")
@zone_instances_limit.setter
def zone_instances_limit(self, value: Optional[int]):
pulumi.set(self, "zone_instances_limit", value)
@property
@pulumi.getter(name="zoneRequestsLimit")
def zone_requests_limit(self) -> Optional[int]:
return pulumi.get(self, "zone_requests_limit")
@zone_requests_limit.setter
def zone_requests_limit(self, value: Optional[int]):
pulumi.set(self, "zone_requests_limit", value)
@pulumi.input_type
class GetIamPolicyBindingArgs:
def __init__(__self__, *,
members: Sequence[str],
role: str):
"""
:param Sequence[str] members: An array of identities that will be granted the privilege in the `role`.
Each entry can have one of the following values:
* **userAccount:{user_id}**: A unique user ID that represents a specific Yandex account.
* **serviceAccount:{service_account_id}**: A unique service account ID.
:param str role: The role/permission that will be granted to the members.
See the [IAM Roles] documentation for a complete list of roles.
"""
pulumi.set(__self__, "members", members)
pulumi.set(__self__, "role", role)
@property
@pulumi.getter
def members(self) -> Sequence[str]:
"""
An array of identities that will be granted the privilege in the `role`.
Each entry can have one of the following values:
* **userAccount:{user_id}**: A unique user ID that represents a specific Yandex account.
* **serviceAccount:{service_account_id}**: A unique service account ID.
"""
return pulumi.get(self, "members")
@members.setter
def members(self, value: Sequence[str]):
pulumi.set(self, "members", value)
@property
@pulumi.getter
def role(self) -> str:
"""
The role/permission that will be granted to the members.
See the [IAM Roles] documentation for a complete list of roles.
"""
return pulumi.get(self, "role")
@role.setter
def role(self, value: str):
pulumi.set(self, "role", value)
@pulumi.input_type
class GetMdbClickhouseClusterCloudStorageArgs:
def __init__(__self__, *,
enabled: bool):
"""
:param bool enabled: (Required) Whether to use Yandex Object Storage for storing ClickHouse data. Can be either `true` or `false`.
"""
pulumi.set(__self__, "enabled", enabled)
@property
@pulumi.getter
def enabled(self) -> bool:
"""
(Required) Whether to use Yandex Object Storage for storing ClickHouse data. Can be either `true` or `false`.
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: bool):
pulumi.set(self, "enabled", value)
@pulumi.input_type
class GetMdbKafkaClusterConfigArgs:
def __init__(__self__, *,
kafka: 'GetMdbKafkaClusterConfigKafkaArgs',
version: str,
zones: Sequence[str],
zookeeper: 'GetMdbKafkaClusterConfigZookeeperArgs',
assign_public_ip: Optional[bool] = None,
brokers_count: Optional[int] = None,
schema_registry: Optional[bool] = None,
unmanaged_topics: Optional[bool] = None):
"""
:param 'GetMdbKafkaClusterConfigKafkaArgs' kafka: (Optional) Configuration of the Kafka subcluster. The structure is documented below.
:param str version: (Required) Version of the Kafka server software.
:param Sequence[str] zones: (Optional) List of availability zones.
:param 'GetMdbKafkaClusterConfigZookeeperArgs' zookeeper: (Optional) Configuration of the ZooKeeper subcluster. The structure is documented below.
:param bool assign_public_ip: The flag that defines whether a public IP address is assigned to the node.
:param int brokers_count: (Optional) Count of brokers per availability zone.
:param bool schema_registry: (Optional) Enables managed schema registry on cluster. Can be either `true` or `false`.
:param bool unmanaged_topics: (Optional) Allows to use Kafka AdminAPI to manage topics. Can be either `true` or `false`.
"""
pulumi.set(__self__, "kafka", kafka)
pulumi.set(__self__, "version", version)
pulumi.set(__self__, "zones", zones)
pulumi.set(__self__, "zookeeper", zookeeper)
if assign_public_ip is not None:
pulumi.set(__self__, "assign_public_ip", assign_public_ip)
if brokers_count is not None:
pulumi.set(__self__, "brokers_count", brokers_count)
if schema_registry is not None:
pulumi.set(__self__, "schema_registry", schema_registry)
if unmanaged_topics is not None:
pulumi.set(__self__, "unmanaged_topics", unmanaged_topics)
@property
@pulumi.getter
def kafka(self) -> 'GetMdbKafkaClusterConfigKafkaArgs':
"""
(Optional) Configuration of the Kafka subcluster. The structure is documented below.
"""
return pulumi.get(self, "kafka")
@kafka.setter
def kafka(self, value: 'GetMdbKafkaClusterConfigKafkaArgs'):
pulumi.set(self, "kafka", value)
@property
@pulumi.getter
def version(self) -> str:
"""
(Required) Version of the Kafka server software.
"""
return pulumi.get(self, "version")
@version.setter
def version(self, value: str):
pulumi.set(self, "version", value)
@property
@pulumi.getter
def zones(self) -> Sequence[str]:
"""
(Optional) List of availability zones.
"""
return pulumi.get(self, "zones")
@zones.setter
def zones(self, value: Sequence[str]):
pulumi.set(self, "zones", value)
@property
@pulumi.getter
def zookeeper(self) -> 'GetMdbKafkaClusterConfigZookeeperArgs':
"""
(Optional) Configuration of the ZooKeeper subcluster. The structure is documented below.
"""
return pulumi.get(self, "zookeeper")
@zookeeper.setter
def zookeeper(self, value: 'GetMdbKafkaClusterConfigZookeeperArgs'):
pulumi.set(self, "zookeeper", value)
@property
@pulumi.getter(name="assignPublicIp")
def assign_public_ip(self) -> Optional[bool]:
"""
The flag that defines whether a public IP address is assigned to the node.
"""
return pulumi.get(self, "assign_public_ip")
@assign_public_ip.setter
def assign_public_ip(self, value: Optional[bool]):
pulumi.set(self, "assign_public_ip", value)
@property
@pulumi.getter(name="brokersCount")
def brokers_count(self) -> Optional[int]:
"""
(Optional) Count of brokers per availability zone.
"""
return pulumi.get(self, "brokers_count")
@brokers_count.setter
def brokers_count(self, value: Optional[int]):
pulumi.set(self, "brokers_count", value)
@property
@pulumi.getter(name="schemaRegistry")
def schema_registry(self) -> Optional[bool]:
"""
(Optional) Enables managed schema registry on cluster. Can be either `true` or `false`.
"""
return pulumi.get(self, "schema_registry")
@schema_registry.setter
def schema_registry(self, value: Optional[bool]):
pulumi.set(self, "schema_registry", value)
@property
@pulumi.getter(name="unmanagedTopics")
def unmanaged_topics(self) -> Optional[bool]:
"""
(Optional) Allows to use Kafka AdminAPI to manage topics. Can be either `true` or `false`.
"""
return pulumi.get(self, "unmanaged_topics")
@unmanaged_topics.setter
def unmanaged_topics(self, value: Optional[bool]):
pulumi.set(self, "unmanaged_topics", value)
@pulumi.input_type
class GetMdbKafkaClusterConfigKafkaArgs:
def __init__(__self__, *,
resources: 'GetMdbKafkaClusterConfigKafkaResourcesArgs',
kafka_config: Optional['GetMdbKafkaClusterConfigKafkaKafkaConfigArgs'] = None):
"""
:param 'GetMdbKafkaClusterConfigKafkaResourcesArgs' resources: (Optional) Resources allocated to hosts of the ZooKeeper subcluster. The structure is documented below.
:param 'GetMdbKafkaClusterConfigKafkaKafkaConfigArgs' kafka_config: (Optional) User-defined settings for the Kafka cluster. The structure is documented below.
"""
pulumi.set(__self__, "resources", resources)
if kafka_config is not None:
pulumi.set(__self__, "kafka_config", kafka_config)
@property
@pulumi.getter
def resources(self) -> 'GetMdbKafkaClusterConfigKafkaResourcesArgs':
"""
(Optional) Resources allocated to hosts of the ZooKeeper subcluster. The structure is documented below.
"""
return pulumi.get(self, "resources")
@resources.setter
def resources(self, value: 'GetMdbKafkaClusterConfigKafkaResourcesArgs'):
pulumi.set(self, "resources", value)
@property
@pulumi.getter(name="kafkaConfig")
def kafka_config(self) -> Optional['GetMdbKafkaClusterConfigKafkaKafkaConfigArgs']:
"""
(Optional) User-defined settings for the Kafka cluster. The structure is documented below.
"""
return pulumi.get(self, "kafka_config")
@kafka_config.setter
def kafka_config(self, value: Optional['GetMdbKafkaClusterConfigKafkaKafkaConfigArgs']):
pulumi.set(self, "kafka_config", value)
@pulumi.input_type
class GetMdbKafkaClusterConfigKafkaKafkaConfigArgs:
def __init__(__self__, *,
auto_create_topics_enable: Optional[bool] = None,
compression_type: Optional[str] = None,
default_replication_factor: Optional[str] = None,
log_flush_interval_messages: Optional[str] = None,
log_flush_interval_ms: Optional[str] = None,
log_flush_scheduler_interval_ms: Optional[str] = None,
log_preallocate: Optional[bool] = None,
log_retention_bytes: Optional[str] = None,
log_retention_hours: Optional[str] = None,
log_retention_minutes: Optional[str] = None,
log_retention_ms: Optional[str] = None,
log_segment_bytes: Optional[str] = None,
num_partitions: Optional[str] = None,
socket_receive_buffer_bytes: Optional[str] = None,
socket_send_buffer_bytes: Optional[str] = None):
if auto_create_topics_enable is not None:
pulumi.set(__self__, "auto_create_topics_enable", auto_create_topics_enable)
if compression_type is not None:
pulumi.set(__self__, "compression_type", compression_type)
if default_replication_factor is not None:
pulumi.set(__self__, "default_replication_factor", default_replication_factor)
if log_flush_interval_messages is not None:
pulumi.set(__self__, "log_flush_interval_messages", log_flush_interval_messages)
if log_flush_interval_ms is not None:
pulumi.set(__self__, "log_flush_interval_ms", log_flush_interval_ms)
if log_flush_scheduler_interval_ms is not None:
pulumi.set(__self__, "log_flush_scheduler_interval_ms", log_flush_scheduler_interval_ms)
if log_preallocate is not None:
pulumi.set(__self__, "log_preallocate", log_preallocate)
if log_retention_bytes is not None:
pulumi.set(__self__, "log_retention_bytes", log_retention_bytes)
if log_retention_hours is not None:
pulumi.set(__self__, "log_retention_hours", log_retention_hours)
if log_retention_minutes is not None:
pulumi.set(__self__, "log_retention_minutes", log_retention_minutes)
if log_retention_ms is not None:
pulumi.set(__self__, "log_retention_ms", log_retention_ms)
if log_segment_bytes is not None:
pulumi.set(__self__, "log_segment_bytes", log_segment_bytes)
if num_partitions is not None:
pulumi.set(__self__, "num_partitions", num_partitions)
if socket_receive_buffer_bytes is not None:
pulumi.set(__self__, "socket_receive_buffer_bytes", socket_receive_buffer_bytes)
if socket_send_buffer_bytes is not None:
pulumi.set(__self__, "socket_send_buffer_bytes", socket_send_buffer_bytes)
@property
@pulumi.getter(name="autoCreateTopicsEnable")
def auto_create_topics_enable(self) -> Optional[bool]:
return pulumi.get(self, "auto_create_topics_enable")
@auto_create_topics_enable.setter
def auto_create_topics_enable(self, value: Optional[bool]):
pulumi.set(self, "auto_create_topics_enable", value)
@property
@pulumi.getter(name="compressionType")
def compression_type(self) -> Optional[str]:
return pulumi.get(self, "compression_type")
@compression_type.setter
def compression_type(self, value: Optional[str]):
pulumi.set(self, "compression_type", value)
@property
@pulumi.getter(name="defaultReplicationFactor")
def default_replication_factor(self) -> Optional[str]:
return pulumi.get(self, "default_replication_factor")
@default_replication_factor.setter
def default_replication_factor(self, value: Optional[str]):
pulumi.set(self, "default_replication_factor", value)
@property
@pulumi.getter(name="logFlushIntervalMessages")
def log_flush_interval_messages(self) -> Optional[str]:
return pulumi.get(self, "log_flush_interval_messages")
@log_flush_interval_messages.setter
def log_flush_interval_messages(self, value: Optional[str]):
pulumi.set(self, "log_flush_interval_messages", value)
@property
@pulumi.getter(name="logFlushIntervalMs")
def log_flush_interval_ms(self) -> Optional[str]:
return pulumi.get(self, "log_flush_interval_ms")
@log_flush_interval_ms.setter
def log_flush_interval_ms(self, value: Optional[str]):
pulumi.set(self, "log_flush_interval_ms", value)
@property
@pulumi.getter(name="logFlushSchedulerIntervalMs")
def log_flush_scheduler_interval_ms(self) -> Optional[str]:
return pulumi.get(self, "log_flush_scheduler_interval_ms")
@log_flush_scheduler_interval_ms.setter
def log_flush_scheduler_interval_ms(self, value: Optional[str]):
pulumi.set(self, "log_flush_scheduler_interval_ms", value)
@property
@pulumi.getter(name="logPreallocate")
def log_preallocate(self) -> Optional[bool]:
return pulumi.get(self, "log_preallocate")
@log_preallocate.setter
def log_preallocate(self, value: Optional[bool]):
pulumi.set(self, "log_preallocate", value)
@property
@pulumi.getter(name="logRetentionBytes")
def log_retention_bytes(self) -> Optional[str]:
return pulumi.get(self, "log_retention_bytes")
@log_retention_bytes.setter
def log_retention_bytes(self, value: Optional[str]):
pulumi.set(self, "log_retention_bytes", value)
@property
@pulumi.getter(name="logRetentionHours")
def log_retention_hours(self) -> Optional[str]:
return pulumi.get(self, "log_retention_hours")
@log_retention_hours.setter
def log_retention_hours(self, value: Optional[str]):
pulumi.set(self, "log_retention_hours", value)
@property
@pulumi.getter(name="logRetentionMinutes")
def log_retention_minutes(self) -> Optional[str]:
return pulumi.get(self, "log_retention_minutes")
@log_retention_minutes.setter
def log_retention_minutes(self, value: Optional[str]):
pulumi.set(self, "log_retention_minutes", value)
@property
@pulumi.getter(name="logRetentionMs")
def log_retention_ms(self) -> Optional[str]:
return pulumi.get(self, "log_retention_ms")
@log_retention_ms.setter
def log_retention_ms(self, value: Optional[str]):
pulumi.set(self, "log_retention_ms", value)
@property
@pulumi.getter(name="logSegmentBytes")
def log_segment_bytes(self) -> Optional[str]:
return pulumi.get(self, "log_segment_bytes")
@log_segment_bytes.setter
def log_segment_bytes(self, value: Optional[str]):
pulumi.set(self, "log_segment_bytes", value)
@property
@pulumi.getter(name="numPartitions")
def num_partitions(self) -> Optional[str]:
return pulumi.get(self, "num_partitions")
@num_partitions.setter
def num_partitions(self, value: Optional[str]):
pulumi.set(self, "num_partitions", value)
@property
@pulumi.getter(name="socketReceiveBufferBytes")
def socket_receive_buffer_bytes(self) -> Optional[str]:
return pulumi.get(self, "socket_receive_buffer_bytes")
@socket_receive_buffer_bytes.setter
def socket_receive_buffer_bytes(self, value: Optional[str]):
pulumi.set(self, "socket_receive_buffer_bytes", value)
@property
@pulumi.getter(name="socketSendBufferBytes")
def socket_send_buffer_bytes(self) -> Optional[str]:
return pulumi.get(self, "socket_send_buffer_bytes")
@socket_send_buffer_bytes.setter
def socket_send_buffer_bytes(self, value: Optional[str]):
pulumi.set(self, "socket_send_buffer_bytes", value)
@pulumi.input_type
class GetMdbKafkaClusterConfigKafkaResourcesArgs:
def __init__(__self__, *,
disk_size: int,
disk_type_id: str,
resource_preset_id: str):
"""
:param int disk_size: (Optional) Volume of the storage available to a ZooKeeper host, in gigabytes.
:param str disk_type_id: (Optional) Type of the storage of ZooKeeper hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-kafka/concepts/storage).
"""
pulumi.set(__self__, "disk_size", disk_size)
pulumi.set(__self__, "disk_type_id", disk_type_id)
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> int:
"""
(Optional) Volume of the storage available to a ZooKeeper host, in gigabytes.
"""
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: int):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> str:
"""
(Optional) Type of the storage of ZooKeeper hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-kafka/concepts/storage).
"""
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: str):
pulumi.set(self, "disk_type_id", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> str:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: str):
pulumi.set(self, "resource_preset_id", value)
@pulumi.input_type
class GetMdbKafkaClusterConfigZookeeperArgs:
def __init__(__self__, *,
resources: 'GetMdbKafkaClusterConfigZookeeperResourcesArgs'):
"""
:param 'GetMdbKafkaClusterConfigZookeeperResourcesArgs' resources: (Optional) Resources allocated to hosts of the ZooKeeper subcluster. The structure is documented below.
"""
pulumi.set(__self__, "resources", resources)
@property
@pulumi.getter
def resources(self) -> 'GetMdbKafkaClusterConfigZookeeperResourcesArgs':
"""
(Optional) Resources allocated to hosts of the ZooKeeper subcluster. The structure is documented below.
"""
return pulumi.get(self, "resources")
@resources.setter
def resources(self, value: 'GetMdbKafkaClusterConfigZookeeperResourcesArgs'):
pulumi.set(self, "resources", value)
@pulumi.input_type
class GetMdbKafkaClusterConfigZookeeperResourcesArgs:
def __init__(__self__, *,
disk_size: int,
disk_type_id: str,
resource_preset_id: str):
"""
:param int disk_size: (Optional) Volume of the storage available to a ZooKeeper host, in gigabytes.
:param str disk_type_id: (Optional) Type of the storage of ZooKeeper hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-kafka/concepts/storage).
"""
pulumi.set(__self__, "disk_size", disk_size)
pulumi.set(__self__, "disk_type_id", disk_type_id)
pulumi.set(__self__, "resource_preset_id", resource_preset_id)
@property
@pulumi.getter(name="diskSize")
def disk_size(self) -> int:
"""
(Optional) Volume of the storage available to a ZooKeeper host, in gigabytes.
"""
return pulumi.get(self, "disk_size")
@disk_size.setter
def disk_size(self, value: int):
pulumi.set(self, "disk_size", value)
@property
@pulumi.getter(name="diskTypeId")
def disk_type_id(self) -> str:
"""
(Optional) Type of the storage of ZooKeeper hosts.
For more information see [the official documentation](https://cloud.yandex.com/docs/managed-kafka/concepts/storage).
"""
return pulumi.get(self, "disk_type_id")
@disk_type_id.setter
def disk_type_id(self, value: str):
pulumi.set(self, "disk_type_id", value)
@property
@pulumi.getter(name="resourcePresetId")
def resource_preset_id(self) -> str:
return pulumi.get(self, "resource_preset_id")
@resource_preset_id.setter
def resource_preset_id(self, value: str):
pulumi.set(self, "resource_preset_id", value)
@pulumi.input_type
class GetMdbKafkaClusterTopicArgs:
def __init__(__self__, *,
cluster_id: str,
name: str,
partitions: int,
replication_factor: int,
topic_config: Optional['GetMdbKafkaClusterTopicTopicConfigArgs'] = None):
"""
:param str cluster_id: The ID of the Kafka cluster.
:param str name: The name of the Kafka cluster.
:param int partitions: (Required) The number of the topic's partitions.
:param int replication_factor: (Required) Amount of data copies (replicas) for the topic in the cluster.
:param 'GetMdbKafkaClusterTopicTopicConfigArgs' topic_config: (Required) User-defined settings for the topic. The structure is documented below.
"""
pulumi.set(__self__, "cluster_id", cluster_id)
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "partitions", partitions)
pulumi.set(__self__, "replication_factor", replication_factor)
if topic_config is not None:
pulumi.set(__self__, "topic_config", topic_config)
@property
@pulumi.getter(name="clusterId")
def cluster_id(self) -> str:
"""
The ID of the Kafka cluster.
"""
return pulumi.get(self, "cluster_id")
@cluster_id.setter
def cluster_id(self, value: str):
pulumi.set(self, "cluster_id", value)
@property
@pulumi.getter
def name(self) -> str:
"""
The name of the Kafka cluster.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: str):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def partitions(self) -> int:
"""
(Required) The number of the topic's partitions.
"""
return pulumi.get(self, "partitions")
@partitions.setter
def partitions(self, value: int):
pulumi.set(self, "partitions", value)
@property
@pulumi.getter(name="replicationFactor")
def replication_factor(self) -> int:
"""
(Required) Amount of data copies (replicas) for the topic in the cluster.
"""
return pulumi.get(self, "replication_factor")
@replication_factor.setter
def replication_factor(self, value: int):
pulumi.set(self, "replication_factor", value)
@property
@pulumi.getter(name="topicConfig")
def topic_config(self) -> Optional['GetMdbKafkaClusterTopicTopicConfigArgs']:
"""
(Required) User-defined settings for the topic. The structure is documented below.
"""
return pulumi.get(self, "topic_config")
@topic_config.setter
def topic_config(self, value: Optional['GetMdbKafkaClusterTopicTopicConfigArgs']):
pulumi.set(self, "topic_config", value)
@pulumi.input_type
class GetMdbKafkaClusterTopicTopicConfigArgs:
def __init__(__self__, *,
cleanup_policy: Optional[str] = None,
compression_type: Optional[str] = None,
delete_retention_ms: Optional[str] = None,
file_delete_delay_ms: Optional[str] = None,
flush_messages: Optional[str] = None,
flush_ms: Optional[str] = None,
max_message_bytes: Optional[str] = None,
min_compaction_lag_ms: Optional[str] = None,
min_insync_replicas: Optional[str] = None,
preallocate: Optional[bool] = None,
retention_bytes: Optional[str] = None,
retention_ms: Optional[str] = None,
segment_bytes: Optional[str] = None):
if cleanup_policy is not None:
pulumi.set(__self__, "cleanup_policy", cleanup_policy)
if compression_type is not None:
pulumi.set(__self__, "compression_type", compression_type)
if delete_retention_ms is not None:
pulumi.set(__self__, "delete_retention_ms", delete_retention_ms)
if file_delete_delay_ms is not None:
pulumi.set(__self__, "file_delete_delay_ms", file_delete_delay_ms)
if flush_messages is not None:
pulumi.set(__self__, "flush_messages", flush_messages)
if flush_ms is not None:
pulumi.set(__self__, "flush_ms", flush_ms)
if max_message_bytes is not None:
pulumi.set(__self__, "max_message_bytes", max_message_bytes)
if min_compaction_lag_ms is not None:
pulumi.set(__self__, "min_compaction_lag_ms", min_compaction_lag_ms)
if min_insync_replicas is not None:
pulumi.set(__self__, "min_insync_replicas", min_insync_replicas)
if preallocate is not None:
pulumi.set(__self__, "preallocate", preallocate)
if retention_bytes is not None:
pulumi.set(__self__, "retention_bytes", retention_bytes)
if retention_ms is not None:
pulumi.set(__self__, "retention_ms", retention_ms)
if segment_bytes is not None:
pulumi.set(__self__, "segment_bytes", segment_bytes)
@property
@pulumi.getter(name="cleanupPolicy")
def cleanup_policy(self) -> Optional[str]:
return pulumi.get(self, "cleanup_policy")
@cleanup_policy.setter
def cleanup_policy(self, value: Optional[str]):
pulumi.set(self, "cleanup_policy", value)
@property
@pulumi.getter(name="compressionType")
def compression_type(self) -> Optional[str]:
return pulumi.get(self, "compression_type")
@compression_type.setter
def compression_type(self, value: Optional[str]):
pulumi.set(self, "compression_type", value)
@property
@pulumi.getter(name="deleteRetentionMs")
def delete_retention_ms(self) -> Optional[str]:
return pulumi.get(self, "delete_retention_ms")
@delete_retention_ms.setter
def delete_retention_ms(self, value: Optional[str]):
pulumi.set(self, "delete_retention_ms", value)
@property
@pulumi.getter(name="fileDeleteDelayMs")
def file_delete_delay_ms(self) -> Optional[str]:
return pulumi.get(self, "file_delete_delay_ms")
@file_delete_delay_ms.setter
def file_delete_delay_ms(self, value: Optional[str]):
pulumi.set(self, "file_delete_delay_ms", value)
@property
@pulumi.getter(name="flushMessages")
def flush_messages(self) -> Optional[str]:
return pulumi.get(self, "flush_messages")
@flush_messages.setter
def flush_messages(self, value: Optional[str]):
pulumi.set(self, "flush_messages", value)
@property
@pulumi.getter(name="flushMs")
def flush_ms(self) -> Optional[str]:
return pulumi.get(self, "flush_ms")
@flush_ms.setter
def flush_ms(self, value: Optional[str]):
pulumi.set(self, "flush_ms", value)
@property
@pulumi.getter(name="maxMessageBytes")
def max_message_bytes(self) -> Optional[str]:
return pulumi.get(self, "max_message_bytes")
@max_message_bytes.setter
def max_message_bytes(self, value: Optional[str]):
pulumi.set(self, "max_message_bytes", value)
@property
@pulumi.getter(name="minCompactionLagMs")
def min_compaction_lag_ms(self) -> Optional[str]:
return pulumi.get(self, "min_compaction_lag_ms")
@min_compaction_lag_ms.setter
def min_compaction_lag_ms(self, value: Optional[str]):
pulumi.set(self, "min_compaction_lag_ms", value)
@property
@pulumi.getter(name="minInsyncReplicas")
def min_insync_replicas(self) -> Optional[str]:
return pulumi.get(self, "min_insync_replicas")
@min_insync_replicas.setter
def min_insync_replicas(self, value: Optional[str]):
pulumi.set(self, "min_insync_replicas", value)
@property
@pulumi.getter
def preallocate(self) -> Optional[bool]:
return pulumi.get(self, "preallocate")
@preallocate.setter
def preallocate(self, value: Optional[bool]):
pulumi.set(self, "preallocate", value)
@property
@pulumi.getter(name="retentionBytes")
def retention_bytes(self) -> Optional[str]:
return pulumi.get(self, "retention_bytes")
@retention_bytes.setter
def retention_bytes(self, value: Optional[str]):
pulumi.set(self, "retention_bytes", value)
@property
@pulumi.getter(name="retentionMs")
def retention_ms(self) -> Optional[str]:
return pulumi.get(self, "retention_ms")
@retention_ms.setter
def retention_ms(self, value: Optional[str]):
pulumi.set(self, "retention_ms", value)
@property
@pulumi.getter(name="segmentBytes")
def segment_bytes(self) -> Optional[str]:
return pulumi.get(self, "segment_bytes")
@segment_bytes.setter
def segment_bytes(self, value: Optional[str]):
pulumi.set(self, "segment_bytes", value)
@pulumi.input_type
class GetMdbKafkaClusterUserArgs:
def __init__(__self__, *,
name: str,
password: str,
permissions: Optional[Sequence['GetMdbKafkaClusterUserPermissionArgs']] = None):
"""
:param str name: The name of the Kafka cluster.
:param str password: (Required) The password of the user.
:param Sequence['GetMdbKafkaClusterUserPermissionArgs'] permissions: (Optional) Set of permissions granted to the user. The structure is documented below.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "password", password)
if permissions is not None:
pulumi.set(__self__, "permissions", permissions)
@property
@pulumi.getter
def name(self) -> str:
"""
The name of the Kafka cluster.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: str):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def password(self) -> str:
"""
(Required) The password of the user.
"""
return pulumi.get(self, "password")
@password.setter
def password(self, value: str):
pulumi.set(self, "password", value)
@property
@pulumi.getter
def permissions(self) -> Optional[Sequence['GetMdbKafkaClusterUserPermissionArgs']]:
"""
(Optional) Set of permissions granted to the user. The structure is documented below.
"""
return pulumi.get(self, "permissions")
@permissions.setter
def permissions(self, value: Optional[Sequence['GetMdbKafkaClusterUserPermissionArgs']]):
pulumi.set(self, "permissions", value)
@pulumi.input_type
class GetMdbKafkaClusterUserPermissionArgs:
def __init__(__self__, *,
role: str,
topic_name: str):
"""
:param str role: Role of the host in the cluster.
:param str topic_name: (Required) The name of the topic that the permission grants access to.
"""
pulumi.set(__self__, "role", role)
pulumi.set(__self__, "topic_name", topic_name)
@property
@pulumi.getter
def role(self) -> str:
"""
Role of the host in the cluster.
"""
return pulumi.get(self, "role")
@role.setter
def role(self, value: str):
pulumi.set(self, "role", value)
@property
@pulumi.getter(name="topicName")
def topic_name(self) -> str:
"""
(Required) The name of the topic that the permission grants access to.
"""
return pulumi.get(self, "topic_name")
@topic_name.setter
def topic_name(self, value: str):
pulumi.set(self, "topic_name", value)
@pulumi.input_type
class GetMdbMysqlClusterAccessArgs:
def __init__(__self__, *,
data_lens: bool,
web_sql: bool):
"""
:param bool data_lens: Allow access for [Yandex DataLens](https://cloud.yandex.com/services/datalens).
:param bool web_sql: Allows access for [SQL queries in the management console](https://cloud.yandex.com/docs/managed-mysql/operations/web-sql-query).
"""
pulumi.set(__self__, "data_lens", data_lens)
pulumi.set(__self__, "web_sql", web_sql)
@property
@pulumi.getter(name="dataLens")
def data_lens(self) -> bool:
"""
Allow access for [Yandex DataLens](https://cloud.yandex.com/services/datalens).
"""
return pulumi.get(self, "data_lens")
@data_lens.setter
def data_lens(self, value: bool):
pulumi.set(self, "data_lens", value)
@property
@pulumi.getter(name="webSql")
def web_sql(self) -> bool:
"""
Allows access for [SQL queries in the management console](https://cloud.yandex.com/docs/managed-mysql/operations/web-sql-query).
"""
return pulumi.get(self, "web_sql")
@web_sql.setter
def web_sql(self, value: bool):
pulumi.set(self, "web_sql", value)
| 41.576468
| 406
| 0.670742
| 92,555
| 796,813
| 5.568927
| 0.02109
| 0.094755
| 0.084157
| 0.041396
| 0.869257
| 0.829143
| 0.790807
| 0.740098
| 0.713539
| 0.680769
| 0
| 0.001588
| 0.223744
| 796,813
| 19,164
| 407
| 41.578637
| 0.831719
| 0.235975
| 0
| 0.678797
| 1
| 0.000166
| 0.15093
| 0.082965
| 0
| 0
| 0
| 0
| 0
| 1
| 0.209787
| false
| 0.006979
| 0.000415
| 0.019442
| 0.326687
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
3b2b8ab41b7b1a07863bd2f0ffde7e6e25d66fc2
| 13,524
|
py
|
Python
|
mass_mer/models.py
|
georgiawang5332/meatFoodManager
|
204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140
|
[
"MIT"
] | null | null | null |
mass_mer/models.py
|
georgiawang5332/meatFoodManager
|
204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140
|
[
"MIT"
] | null | null | null |
mass_mer/models.py
|
georgiawang5332/meatFoodManager
|
204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140
|
[
"MIT"
] | null | null | null |
from django.db import models
from django.utils.translation import gettext_lazy as _
from django.urls import reverse
# Create your models here.
# results = Mass_Mer_Person.objects.all()
# results = Mass_Mer_Person.objects.create(user=user, title="some time")
class Mass_Mer_PersonManager(models.Manager):
def active(self, *arg, **kwargs):
return super(Mass_Mer_PersonManager, self).filter(mass_mer_principal=False)
# Mass_Mer_Person.objects.all() = super(Mass_Mer_PersonManager, self).all()
# def get_queryset(self):
# return super(Mass_Mer_PersonManager, self).get_queryset(mass_mer_principal=False).filter(city='London')
# 量販店
class Mass_Mer(models.Model):
company_name = models.CharField(_('公司名稱'), max_length=255)
company_principal = models.ForeignKey('Mass_Mer_Person', on_delete=models.CASCADE, related_name='midstream',
null=True, blank=True, default='',
help_text=_('公司負責人')) # 店家名字 related_name 查詢之類的
company_phone = models.CharField(_('公司電話'), max_length=10, blank=True,
help_text=_('手機,ex:0225445666,***直接輸入數字,不用此符號「-」'))
cell_phone = models.CharField(_('手機電話'), max_length=10, blank=True,
help_text=_('手機,ex:0912345678,***直接輸入數字,不用此符號「-」'))
address = models.CharField(_('登記地址'), max_length=255)
uniform_numbers = models.CharField(_('統一編號'), max_length=8, blank=True,
help_text=_('企業請提供統一編號 (8碼,ex: 12345678);個人請提供身分證字號'))
area = models.CharField(_('區域'), max_length=5, blank=True,
help_text=_('ex: 文山區'))
regional_app_num = models.CharField(_('地區申請編號'), max_length=10, blank=True,
help_text=_('ex: 1234567890'))
cooperate_businmen = models.CharField(_('合作的中游商'), max_length=255, blank=True,
help_text=_(''))
mailbox = models.CharField(_('信箱'), max_length=8, blank=True,
help_text=_('企業請提供統一編號 (8碼,ex: 12345678);個人請提供身分證字號'))
capital = models.CharField(_('資本額'), max_length=255, blank=True,
help_text=_('ex: 200,000,000'))
approved_date = models.DateTimeField(_('核准設立日期'), auto_now_add=True, help_text=_(''))
class Mass_Mer_Person(models.Model): # 量販店負責人
mass_mer_principal = models.CharField(_('量販店負責人'), max_length=255, blank=True,
help_text=_(''))
certificate_num_principal = models.CharField(_('負責人證號'), max_length=10, blank=True,
help_text=_('格式為身分證字號(1 碼,限大寫英文字)+ 身分字號(最長 9 碼,限數字'))
telephone = models.CharField(_('手機電話'), max_length=10, blank=True,
help_text=_('手機,ex:0912345678,***直接輸入數字,不用此符號「-」'))
address = models.CharField(_('地址'), max_length=255, blank=True,
help_text=_(''))
objects = Mass_Mer_PersonManager()
def get_absolute_url(self):
return reverse('mass_mer:stdetail', kwargs={'id': self.id})
def __str__(self):
return self.mass_mer_principal
def __unicode__(self):
return self.mass_mer_principal
# 生食攤商
class Food_Vendor(models.Model):
company_name = models.CharField(_('攤位名稱'), max_length=255)
company_principal = models.ForeignKey('Food_Vendor_Person', on_delete=models.CASCADE, related_name='midstream',
null=True, blank=True, default='',
help_text=_('公司負責人')) # 店家名字 related_name 查詢之類的
company_phone = models.CharField(_('公司電話'), max_length=10, blank=True,
help_text=_('手機,ex:0225445666,***直接輸入數字,不用此符號「-」'))
cell_phone = models.CharField(_('手機電話'), max_length=10, blank=True,
help_text=_('手機,ex:0912345678,***直接輸入數字,不用此符號「-」'))
address = models.CharField(_('登記地址'), max_length=255)
uniform_numbers = models.CharField(_('統一編號'), max_length=8, blank=True,
help_text=_('企業請提供統一編號 (8碼,ex: 12345678);個人請提供身分證字號'))
area = models.CharField(_('區域'), max_length=5, blank=True,
help_text=_('ex: 台北市'))
vendors_stand_num = models.CharField(_('攤位編號'), max_length=5, blank=True,
help_text=_('需10碼,ex: 1234567890'))
regional_app_num = models.CharField(_('地區申請編號'), max_length=10, blank=True,
help_text=_('ex: 1234567890'))
cooperate_businmen = models.CharField(_('合作的中游商'), max_length=255, blank=True,
help_text=_(''))
mailbox = models.CharField(_('信箱'), max_length=8, blank=True,
help_text=_('企業請提供統一編號 (8碼,ex: 12345678);個人請提供身分證字號'))
capital = models.CharField(_('資本額'), max_length=255, blank=True,
help_text=_('ex: 200,000,000'))
approved_date = models.DateTimeField(_('核准設立日期'), auto_now_add=True, help_text=_(''))
class Food_Vendor_Person(models.Model):
vendors_stand_principal = models.CharField(_('攤位負責人'), max_length=255, blank=True,
help_text=_(''))
vendors_stand_certificate_num = models.CharField(_('負責人證號'), max_length=10, blank=True,
help_text=_('格式為身分證字號(1 碼,限大寫英文字)+ 身分字號(最長 9 碼,限數字'))
telephone = models.CharField(_('電話'), max_length=10, blank=True,
help_text=_('手機,ex:0912345678,***直接輸入數字,不用此符號「-」'))
address = models.CharField(_('地址'), max_length=255, blank=True,
help_text=_(''))
# 店面
class Storefront(models.Model):
company_name = models.CharField(_('公司(攤位)名稱'), max_length=255)
company_principal = models.ForeignKey('Storefront_Person', on_delete=models.CASCADE, related_name='midstream',
null=True, blank=True, default='',
help_text=_('公司負責人')) # 店家名字 related_name 查詢之類的
company_phone = models.CharField(_('公司電話'), max_length=10, blank=True,
help_text=_('手機,ex:0225445666,***直接輸入數字,不用此符號「-」'))
cell_phone = models.CharField(_('手機電話'), max_length=10, blank=True,
help_text=_('手機,ex:0912345678,***直接輸入數字,不用此符號「-」'))
address = models.CharField(_('登記地址'), max_length=255)
uniform_numbers = models.CharField(_('統一編號'), max_length=8, blank=True,
help_text=_('企業請提供統一編號 (8碼,ex: 12345678);個人請提供身分證字號'))
area = models.CharField(_('區域'), max_length=5, blank=True,
help_text=_('ex: 文山區'))
regional_app_num = models.CharField(_('地區申請編號'), max_length=10, blank=True,
help_text=_('ex: 1234567890'))
cooperate_businmen = models.CharField(_('合作的中游商'), max_length=255, blank=True,
help_text=_(''))
mailbox = models.CharField(_('信箱'), max_length=8, blank=True,
help_text=_('企業請提供統一編號 (8碼,ex: 12345678);個人請提供身分證字號'))
capital = models.CharField(_('資本額'), max_length=255, blank=True,
help_text=_('ex: 200,000,000'))
approved_date = models.DateTimeField(_('核准設立日期'), auto_now_add=True, help_text=_(''))
class Storefront_Person(models.Model):
storefront_principal = models.CharField(_('店面負責人'), max_length=255, blank=True,
help_text=_(''))
storefront_certificate_num = models.CharField(_('負責人證號'), max_length=10, blank=True,
help_text=_('格式為身分證字號(1 碼,限大寫英文字)+ 身分字號(最長 9 碼,限數字'))
telephone = models.CharField(_('電話'), max_length=10, blank=True,
help_text=_('手機,ex:0912345678,***直接輸入數字,不用此符號「-」'))
address = models.CharField(_('地址'), max_length=255, blank=True,
help_text=_(''))
# 零售(工廠)
class Retail_Factory(models.Model):
company_name = models.CharField(_('公司名稱'), max_length=255)
company_principal = models.ForeignKey('Retail_Factory_Person', on_delete=models.CASCADE, related_name='midstream',
null=True, blank=True, default='',
help_text=_('公司負責人')) # 店家名字 related_name 查詢之類的
company_phone = models.CharField(_('公司電話'), max_length=10, blank=True,
help_text=_('手機,ex:0225445666,***直接輸入數字,不用此符號「-」'))
cell_phone = models.CharField(_('手機電話'), max_length=10, blank=True,
help_text=_('手機,ex:0912345678,***直接輸入數字,不用此符號「-」'))
address = models.CharField(_('登記地址'), max_length=255)
uniform_numbers = models.CharField(_('統一編號'), max_length=8, blank=True,
help_text=_('企業請提供統一編號 (8碼,ex: 12345678);個人請提供身分證字號'))
area = models.CharField(_('區域'), max_length=5, blank=True,
help_text=_('ex: 文山區'))
regional_app_num = models.CharField(_('地區申請編號'), max_length=10, blank=True,
help_text=_('ex: 1234567890'))
cooperate_businmen = models.CharField(_('合作的中游商'), max_length=255, blank=True,
help_text=_(''))
mailbox = models.CharField(_('信箱'), max_length=8, blank=True,
help_text=_('企業請提供統一編號 (8碼,ex: 12345678);個人請提供身分證字號'))
capital = models.CharField(_('資本額'), max_length=255, blank=True,
help_text=_('ex: 200,000,000'))
approved_date = models.DateTimeField(_('核准設立日期'), auto_now_add=True, help_text=_(''))
class Retail_Factory_Person(models.Model):
retail_factory_principal = models.CharField(_('工廠負責人'), max_length=255, blank=True,
help_text=_(''))
retail_factory_certificate_num = models.CharField(_('負責人證號'), max_length=10, blank=True,
help_text=_('格式為身分證字號(1 碼,限大寫英文字)+ 身分字號(最長 9 碼,限數字'))
telephone = models.CharField(_('手機號碼'), max_length=10, blank=True,
help_text=_('手機,ex:0912345678,***直接輸入數字,不用此符號「-」'))
address = models.CharField(_('地址'), max_length=255, blank=True,
help_text=_(''))
# 其他
class Other(models.Model):
company_name = models.CharField(_('公司名稱'), max_length=255)
company_principal = models.ForeignKey('Other_Person', on_delete=models.CASCADE, related_name='midstream',
null=True, blank=True, default='',
help_text=_('公司負責人'))
company_phone = models.CharField(_('公司電話'), max_length=10, blank=True,
help_text=_('手機,ex:0225445666,***直接輸入數字,不用此符號「-」'))
cell_phone = models.CharField(_('手機電話'), max_length=10, blank=True,
help_text=_('手機,ex:0912345678,***直接輸入數字,不用此符號「-」'))
address = models.CharField(_('登記地址'), max_length=255)
uniform_numbers = models.CharField(_('統一編號'), max_length=8, blank=True,
help_text=_('企業請提供統一編號 (8碼,ex: 12345678);個人請提供身分證字號'))
area = models.CharField(_('區域'), max_length=5, blank=True,
help_text=_('ex: 文山區'))
regional_app_num = models.CharField(_('地區申請編號'), max_length=10, blank=True,
help_text=_('ex: 1234567890'))
cooperate_businmen = models.CharField(_('合作的中游商'), max_length=255, blank=True,
help_text=_(''))
mailbox = models.CharField(_('信箱'), max_length=8, blank=True,
help_text=_('企業請提供統一編號 (8碼,ex: 12345678);個人請提供身分證字號'))
capital = models.CharField(_('資本額'), max_length=255, blank=True,
help_text=_('ex: 200,000,000'))
approved_date = models.DateTimeField(_('核准設立日期'), auto_now_add=True, help_text=_(''))
class Other_Person(models.Model):
other_principal = models.CharField(_('其他負責人'), max_length=255, blank=True,
help_text=_(''))
other_certificate_num = models.CharField(_('負責人證號'), max_length=10, blank=True,
help_text=_('格式為身分證字號(1 碼,限大寫英文字)+ 身分字號(最長 9 碼,限數字'))
telephone = models.CharField(_('電話'), max_length=10, blank=True,
help_text=_('手機,ex:0912345678,***直接輸入數字,不用此符號「-」'))
address = models.CharField(_('地址'), max_length=255, blank=True,
help_text=_(''))
| 64.094787
| 125
| 0.54333
| 1,375
| 13,524
| 5.025455
| 0.114182
| 0.154124
| 0.114617
| 0.150072
| 0.856151
| 0.840376
| 0.810854
| 0.773227
| 0.773227
| 0.773227
| 0
| 0.055937
| 0.321872
| 13,524
| 210
| 126
| 64.4
| 0.697525
| 0.034309
| 0
| 0.754286
| 0
| 0
| 0.135628
| 0.041862
| 0
| 0
| 0
| 0
| 0
| 1
| 0.022857
| false
| 0
| 0.017143
| 0.022857
| 0.594286
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 8
|
3b4d786560d431a3efa27cce5c4036b2041428ed
| 26,861
|
py
|
Python
|
src/algorithms.py
|
IsakFalk/active_learning_code
|
c73a2405bd7cc9fd54e60fa31aa5d689041b6baf
|
[
"MIT"
] | null | null | null |
src/algorithms.py
|
IsakFalk/active_learning_code
|
c73a2405bd7cc9fd54e60fa31aa5d689041b6baf
|
[
"MIT"
] | null | null | null |
src/algorithms.py
|
IsakFalk/active_learning_code
|
c73a2405bd7cc9fd54e60fa31aa5d689041b6baf
|
[
"MIT"
] | null | null | null |
"""
All algorithms used for subsampling dataset in a smart way
"""
import numpy as np
import scipy.linalg as linalg
from tqdm import tqdm
class MCSampling:
"""Uniformly sample from X by shuffling the indices and returning a new matrix"""
def __init__(self, K, stop_t=None):
self.K = K
self.n = self.K.shape[0]
self.stop_t = stop_t
if self.stop_t is None:
self.stop_t = self.n
self.sampled_order = np.zeros(stop_t)
def run_mc(self):
# shuffles in place, so we need a new matrix
self.sampled_order = np.random.permutation(self.K.shape[0])[
:self.stop_t]
def run(self):
"""Run the algorithm, consistent interface for calling self.run_{algorithm}()
to self.run()"""
self.run_mc()
class LeverageScoreSampling:
"""
Sample the dataset according to leverage score sampling.
Note that we calculate the leverage scores according to
l_{tau, i} = (K(K + tau * I)^-1)_{ii} and not
l_{lambda, i} = (K(K + n * lambda * I)^-1)_{ii}
"""
def __init__(self, K, tau, stop_t=None, greedy=True):
"""greedy specifies if we sort or sample"""
self.K = K
self.tau = tau
self.n = self.K.shape[0]
self.greedy = greedy
self.sampled_order = np.zeros(stop_t)
def run(self):
"""Run the algorithm, consistent interface for calling self.run_{algorithm}()
to self.run()"""
self.L_tau = linalg.solve(
a=(self.K + (self.tau + 1e-6) * np.eye(self.n)), b=self.K)
self.l_tau = np.diag(self.L_tau)
self.l_tau_normalised = self.l_tau / self.l_tau.sum()
if self.greedy:
self.sampled_order = np.argsort(self.l_tau)[::-1]
else:
self.sampled_order = np.random.choice(
np.arange(self.n), size=self.n, replace=False, p=self.l_tau_normalised)
def rho_t_func_kh(t):
"""Function for rho_t in FW to get KH"""
return 1/(1 + t)
class KernelHerding:
"""
Notation, we let Qt denote the set of sampled points after finishing iteration t,
Ut denote the set of unsampled points after finishing iteration t. K_ab then corresponds
to the kernel matrix by taking the inner product \Phi_a^T \Phi_b in the RKHS.
"""
def __init__(self, K, stop_t=None):
self.K = K
self.n = K.shape[0]
self.stop_t = stop_t
if self.stop_t is None:
self.stop_t = self.n
self.sampled_order = np.zeros(stop_t).astype(int)
# These just help run the algorithm
# These are all boolean, a one represents that
# the x_i at that index has been sampled / unsampled respectively
self.initial_indices = np.ones(self.n).astype(bool)
self.sampled_indices = np.zeros(self.n).astype(bool)
self.unsampled_indices = ~self.sampled_indices
self.arange_indices = np.arange(0, self.n).astype(int)
# Check for faults
assert self.K.shape == (
self.n, self.n), "K should be of shape ({}, {}), is of shape {}".format(self.n, self.n, self.K.shape)
assert self.stop_t > 0, "stop_t needs to be positive"
# Sanity check: keep objective values for each iteration
self.objective_curve = np.zeros(self.stop_t)
def _objective_func(self, t):
"""Calculate the objective function using sampled_indices until time t
Note that this is a vectorised version of the one in the paper"""
# This gets the corresponding sub-kernel matrices
K_nUtm1 = self.K[np.ix_(self.initial_indices,
self.unsampled_indices)]
K_Qtm1Utm1 = self.K[np.ix_(self.sampled_indices,
self.unsampled_indices)]
# Original factor is T, but since we count from 0, need to increment by 1
# Get it in the form of the FW algorithm to be able to compare
J = (float(t) / self.n) * K_nUtm1.sum(axis=0) - K_Qtm1Utm1.sum(axis=0)
assert J.shape == (self.unsampled_indices.sum(
),), "The output shape of J.shape should be ({},), is {} ".format(self.unsampled_indices.sum(), J.shape)
J = np.atleast_1d(J.squeeze())
return J
def restart(self):
"""Start over, reinitialise everything"""
self.sampled_order = np.zeros(self.stop_t).astype(int)
self.initial_indices = np.ones(self.n).astype(bool)
self.sampled_indices = np.zeros(self.n).astype(bool)
self.unsampled_indices = ~self.sampled_indices
self.arange_indices = np.arange(0, self.n).astype(int)
self.objective_curve = np.zeros(self.stop_t)
def run_kernel_herding(self):
"""Kernel herding on the empirical distribution of X through K
Run kernel herding on the dataset (x_i)_i^n using the kernel matrix
K represented as a numpy array of shape (n, n), where K_ij = K(x_i, x_j).
Since the herding algorithm gives a new ordering of the dataset corresponding
to what datapoint to include when we only return the indices of the new ordering.
This is an array called return_order such that return_order[t] = index of x returned at
end of t'th iteration of kernel herding.
:param K: (np.ndarray, (n, n)) kernel matrix
:param stop_t: (int, >0) stop running when t >= stop_t
:return sampled_order: (np.array, (stop_t,)) the returned indices in the dataset for each t
"""
self.restart()
# Initially (t=0) we sample x_0 always
self.sampled_order[0] = 0
self.sampled_indices[0] = True
self.unsampled_indices = ~self.sampled_indices
self.objective_curve[0] = np.nan
for t in tqdm(range(1, self.stop_t)):
# The objective function of all points we can sample
J = self._objective_func(t)
# Get the index for the argmax
J_argmax = J.argmax()
# The index is not correct as we removed all indices
# which has been sampled, so we map back to the correct index
map_back_to_correct_index = self.arange_indices[self.unsampled_indices]
sampled_index_at_t = map_back_to_correct_index[J_argmax]
# Update the index arrays
self.sampled_order[t] = sampled_index_at_t
self.sampled_indices[sampled_index_at_t] = True
self.unsampled_indices = ~self.sampled_indices
# Put objective value of t
self.objective_curve[t] = J.max()
def run(self):
"""Run the algorithm, consistent interface for calling self.run_{algorithm}() to self.run()"""
self.run_kernel_herding()
class FrankWolfe:
"""
Notation, we let Qt denote the set of sampled points after finishing iteration t,
Ut denote the set of unsampled points after finishing iteration t. K_ab then corresponds
to the kernel matrix by taking the inner product \Phi_a^T \Phi_b in the RKHS.
"""
def __init__(self, K, stop_t=None, rho_t_func=rho_t_func_kh):
self.K = K
self.n = K.shape[0]
self.stop_t = stop_t
if self.stop_t is None:
self.stop_t = self.n
self.rho_t_func = rho_t_func
# self.W is such that self.W[t, j] = w_j at t
# where j is the index of the sampled x at time j
self.W = np.zeros((self.stop_t, self.stop_t))
self.sampled_order = np.zeros(stop_t).astype(int)
# These just help run the algorithm
# These are all boolean, a one represents that
# the x_i at that index has been sampled / unsampled respectively
self.initial_indices = np.ones(self.n).astype(bool)
self.sampled_indices = np.zeros(self.n).astype(bool)
self.unsampled_indices = ~self.sampled_indices
self.arange_indices = np.arange(0, self.n).astype(int)
# Check for faults
assert self.K.shape == (
self.n, self.n), "K should be of shape ({}, {}), is of shape {}".format(self.n, self.n, self.K.shape)
assert self.stop_t > 0, "stop_t needs to be positive"
# Sanity check: keep objective values for each iteration
self.objective_curve = np.zeros(self.stop_t)
def _update_W(self, t):
"""We use the following observation
Following Bach the w_y of the chosen instances
up until time t, follows the recursive structure of
w_t: w_t[t] = rho_t, w_t[u] = 0, u > t and for the rest
w_{t+1} = w_{t} * (1 - rho_t) + [0, ..., rho_t, 0, ..., 0]
where rho_t is in the t'th place
"""
w_tm1 = self.W[t-1, :]
rho_t = self.rho_t_func(t)
rho_t_indexer = np.zeros(self.n)
# NB: in Bach paper, we would multiply by rho_t(t-1)
# but since we count from 0, we instead multiply by rho_t(t)
rho_t_indexer[t] = rho_t
w_t = w_tm1 * (1 - rho_t) + rho_t_indexer
self.W[t, :] = w_t
def _objective_func(self, t):
"""Calculate the objective function using sampled_indices until time t
Note that this is a vectorised version of the one in the paper"""
# This gets the corresponding sub-kernel matrices
K_nUtm1 = self.K[np.ix_(self.initial_indices,
self.unsampled_indices)]
K_Qtm1Utm1 = self.K[np.ix_(self.sampled_indices,
self.unsampled_indices)]
assert K_nUtm1.shape == (
self.n, self.n - t), "K_nUtm1 should have shape ({}, {}), has shape {}".format(self.n, t, K_nUtm1.shape)
assert K_Qtm1Utm1.shape == (
t, self.n - t), "K_Qtm1Utm1 should have shape ({}, {}), has shape {}".format(t, self.n - t, K_Qtm1Utm1.shape)
# At time t, we need to get the previous weights, up til diagonal element
w_tm1 = self.W[t-1, :t].reshape(-1, 1)
uniform_wn = (np.ones((self.n, 1)) / self.n)
weighted_sum = (w_tm1.T @ K_Qtm1Utm1)
repulsive_sum = (uniform_wn.T @ K_nUtm1)
assert weighted_sum.shape == (
1, self.n - t), "Number of elements in weigted_sum at {} should be {}, is {}".format(t, self.n - t, weighted_sum.shape[0])
assert repulsive_sum.shape == (
1, self.n - t), "Number of elements in repulsive_sum at {} should be {}, is {}".format(t, self.n - t, repulsive_sum.shape[0])
J = weighted_sum - repulsive_sum
assert J.shape == (1, self.unsampled_indices.sum(
)), "The output shape of J.shape should be ({},), is {} ".format(self.unsampled_indices.sum(), J.shape)
J = np.atleast_1d(J.squeeze())
return J
def restart(self):
"""Start over, reinitialise everything"""
self.W = np.zeros((self.stop_t, self.stop_t))
self.sampled_order = np.zeros(self.stop_t).astype(int)
self.initial_indices = np.ones(self.n).astype(bool)
self.sampled_indices = np.zeros(self.n).astype(bool)
self.unsampled_indices = ~self.sampled_indices
self.arange_indices = np.arange(0, self.n).astype(int)
self.objective_curve = np.zeros(self.stop_t)
def run_frank_wolfe(self):
"""Kernel herding on the empirical distribution of X through K
Run kernel herding on the dataset (x_i)_i^n using the kernel matrix
K represented as a numpy array of shape (n, n), where K_ij = K(x_i, x_j).
Since the herding algorithm gives a new ordering of the dataset corresponding
to what datapoint to include when we only return the indices of the new ordering.
This is an array called return_order such that return_order[t] = index of x returned at
end of t'th iteration of kernel herding.
:param K: (np.ndarray, (n, n)) kernel matrix
:param stop_t: (int, >0) stop running when t >= stop_t
:return sampled_order: (np.array, (stop_t,)) the returned indices in the dataset for each t
"""
self.restart()
# Initially (t=0) we sample x_0 always
self.sampled_order[0] = 0
self.sampled_indices[0] = True
self.unsampled_indices = ~self.sampled_indices
self.W[0, 0] = 1.0
self.objective_curve[0] = np.nan
for t in tqdm(range(1, self.stop_t)):
# The objective function of all points we can sample
J = self._objective_func(t)
# Get the index for the argmin
J_argmin = J.argmin()
# The index is not correct as we removed all indices
# which has been sampled, so we map back to the correct index
map_back_to_correct_index = self.arange_indices[self.unsampled_indices]
sampled_index_at_t = map_back_to_correct_index[J_argmin]
# Update the index arrays
self.sampled_order[t] = sampled_index_at_t
self.sampled_indices[sampled_index_at_t] = True
self.unsampled_indices = ~self.sampled_indices
self._update_W(t)
# Put objective value of t
self.objective_curve[t] = J.min()
def run(self):
"""Run the algorithm, consistent interface for calling self.run_{algorithm}() to self.run()"""
self.run_frank_wolfe()
class FrankWolfeLineSearch:
def __init__(self, K, stop_t=None):
self.K = K
self.n = K.shape[0]
self.stop_t = stop_t
if self.stop_t is None:
self.stop_t = self.n
# self.W is such that self.W[t, j] = w_j at t
# where j is the index of the sampled x at time j
self.W = np.zeros((self.stop_t, self.stop_t))
self.sampled_order = np.zeros(stop_t).astype(int)
# These just help run the algorithm
# These are all boolean, a one represents that
# the x_i at that index has been sampled / unsampled respectively
self.initial_indices = np.ones(self.n).astype(bool)
self.sampled_indices = np.zeros(self.n).astype(bool)
self.unsampled_indices = ~self.sampled_indices
self.arange_indices = np.arange(0, self.n).astype(int)
# Check for faults
assert self.K.shape == (
self.n, self.n), "K should be of shape ({}, {}), is of shape {}".format(self.n, self.n, self.K.shape)
assert self.stop_t > 0, "stop_t needs to be positive"
# Sanity check:
# - keep objective values for each iteration
# - keep rho_t to see the actual line-length
self.objective_curve = np.zeros(self.stop_t)
self.rho_t = np.zeros(self.stop_t)
def calculate_rho(self, t):
"""Calculate rho using line-search"""
# Let u = np.ones((n, 1)) / n,
# subscript t, n, s indicates currently sampled datapoints, n all of them
# and s the one sampled most recently
uniform_wn = (np.ones((self.n, 1)) / self.n)
w = self.W[t-1, :t].reshape(t, 1)
# Asserts
assert uniform_wn.shape == (
self.n, 1), "uniform_wn should have shape (n, 1), has shape {}".format(uniform_wn.shape)
assert np.allclose(
uniform_wn.sum(), 1), "sum(uniform_wn) should be equal to 1, is equal to {}".format(uniform_wn.sum())
assert w.shape == (
t, 1), "w should have shape ({}, 1), has shape {}".format(t, w.shape)
# Sub-matrices
# t: index along sampled until start of time t
# n: all indices
# x: index of x chosen by fw-ls at time t
x_index = np.array([self.sampled_order[t]])
K_tt = self.K[np.ix_(self.sampled_order[:t], self.sampled_order[:t])]
K_nt = self.K[np.ix_(self.arange_indices, self.sampled_order[:t])]
K_nx = self.K[np.ix_(self.arange_indices, x_index)]
K_tx = self.K[np.ix_(self.sampled_order[:t], x_index)]
K_xx = self.K[self.sampled_order[t], self.sampled_order[t]]
# First the numerator
# w.T @ K_tt @ w - u.T @ K_nt @ w - w.T @ K_tx + u.T @ K_nx
numerator = w.T @ K_tt @ w - uniform_wn.T @ K_nt @ w - \
w.T @ K_tx + uniform_wn.T @ K_nx
# Then the denominator
# K_ss - 2 * w.T @ K_ts + w.T @ K_tt @ w
denominator = K_xx - 2 * w.T @ K_tx + w.T @ K_tt @ w
assert numerator > 0, "Numerator needs to be positive, is {}".format(
numerator)
assert denominator > 0, "Denominator needs to be positive, is {}".format(
denominator)
rho_t = numerator / denominator
assert 0 <= rho_t <= 1, "rho_{} needs to be in [0, 1], but is {} at time {}".format(
t, rho_t, t)
return rho_t
def _update_W(self, t):
"""We use the following observation
Following Bach the w_y of the chosen instances
up until time t, follows the recursive structure of
w_t: w_t[t] = rho_t, w_t[u] = 0, u > t and for the rest
w_{t+1} = w_{t} * (1 - rho_t) + [0, ..., rho_t, 0, ..., 0]
where rho_t is in the t'th place
"""
w_tm1 = self.W[t-1, :]
rho_t = self.calculate_rho(t)
rho_t_indexer = np.zeros(self.n)
# NB: in Bach paper, we would multiply by rho_t(t-1)
# but since we count from 0, we instead multiply by rho_t(t)
rho_t_indexer[t] = rho_t
w_t = w_tm1 * (1 - rho_t) + rho_t_indexer
self.W[t, :] = w_t
def _objective_func(self, t):
"""Calculate the objective function using sampled_indices until time t
Note that this is a vectorised version of the one in the paper"""
# This gets the corresponding sub-kernel matrices
K_nUtm1 = self.K[np.ix_(self.initial_indices,
self.unsampled_indices)]
K_Qtm1Utm1 = self.K[np.ix_(self.sampled_indices,
self.unsampled_indices)]
assert K_nUtm1.shape == (
self.n, self.n - t), "K_nUtm1 should have shape ({}, {}), has shape {}".format(self.n, t, K_nUtm1.shape)
assert K_Qtm1Utm1.shape == (
t, self.n - t), "K_Qtm1Utm1 should have shape ({}, {}), has shape {}".format(t, self.n - t, K_Qtm1Utm1.shape)
# At time t, we need to get the previous weights, up til diagonal element
w_tm1 = self.W[t-1, :t].reshape(-1, 1)
uniform_wn = (np.ones((self.n, 1)) / self.n)
weighted_sum = (w_tm1.T @ K_Qtm1Utm1)
repulsive_sum = (uniform_wn.T @ K_nUtm1)
assert weighted_sum.shape == (
1, self.n - t), "Number of elements in weigted_sum at {} should be {}, is {}".format(t, self.n - t, weighted_sum.shape[0])
assert repulsive_sum.shape == (
1, self.n - t), "Number of elements in repulsive_sum at {} should be {}, is {}".format(t, self.n - t, repulsive_sum.shape[0])
J = weighted_sum - repulsive_sum
assert J.shape == (1, self.unsampled_indices.sum(
)), "The output shape of J.shape should be ({},), is {} ".format(self.unsampled_indices.sum(), J.shape)
J = np.atleast_1d(J.squeeze())
return J
def restart(self):
"""Start over, reinitialise everything"""
self.W = np.zeros((self.stop_t, self.stop_t))
self.sampled_order = np.zeros(self.stop_t).astype(int)
self.initial_indices = np.ones(self.n).astype(bool)
self.sampled_indices = np.zeros(self.n).astype(bool)
self.unsampled_indices = ~self.sampled_indices
self.arange_indices = np.arange(0, self.n).astype(int)
self.objective_curve = np.zeros(self.stop_t)
def run_frank_wolfe(self):
"""Kernel herding on the empirical distribution of X through K
Run kernel herding on the dataset (x_i)_i^n using the kernel matrix
K represented as a numpy array of shape (n, n), where K_ij = K(x_i, x_j).
Since the herding algorithm gives a new ordering of the dataset corresponding
to what datapoint to include when we only return the indices of the new ordering.
This is an array called return_order such that return_order[t] = index of x returned at
end of t'th iteration of kernel herding.
:param K: (np.ndarray, (n, n)) kernel matrix
:param stop_t: (int, >0) stop running when t >= stop_t
:return sampled_order: (np.array, (stop_t,)) the returned indices in the dataset for each t
"""
self.restart()
# Initially (t=0) we sample x_0 always
self.sampled_order[0] = 0
self.sampled_indices[0] = True
self.unsampled_indices = ~self.sampled_indices
self.W[0, 0] = 1.0
self.objective_curve[0] = np.nan
self.rho_t[0] = np.nan
for t in tqdm(range(1, self.stop_t)):
# The objective function of all points we can sample
J = self._objective_func(t)
# Get the index for the argmin
J_argmin = J.argmin()
# The index is not correct as we removed all indices
# which has been sampled, so we map back to the correct index
map_back_to_correct_index = self.arange_indices[self.unsampled_indices]
sampled_index_at_t = map_back_to_correct_index[J_argmin]
# Update the index arrays
self.sampled_order[t] = sampled_index_at_t
self.sampled_indices[sampled_index_at_t] = True
self.unsampled_indices = ~self.sampled_indices
self._update_W(t)
# Put objective value of t
self.objective_curve[t] = J.min()
# Put rho_t
self.rho_t[t] = self.calculate_rho(t)
def run(self):
"""Run the algorithm, consistent interface for calling self.run_{algorithm}() to self.run()"""
self.run_frank_wolfe()
# TODO: check that this works as expected
class BayesianQuadrature:
"""
Notation, we let Qt denote the set of sampled points after finishing iteration t,
Ut denote the set of unsampled points after finishing iteration t. K_ab then corresponds
to the kernel matrix by taking the inner product \Phi_a^T \Phi_b in the RKHS.
"""
def __init__(self, K, stop_t=None):
self.K = K
self.n = K.shape[0]
self.L = linalg.solve(
a=(K + 1e-3 * np.eye(self.n)), b=np.eye(self.n))
self.z = K.mean(axis=1).reshape(self.n, 1)
self.stop_t = stop_t
if self.stop_t is None:
self.stop_t = self.n
# self.W = z.T @ L from paper
self.w = self.z.T @ self.L
self.sampled_order = np.zeros(stop_t).astype(int)
# These just help run the algorithm
# These are all boolean, a one represents that
# the x_i at that index has been sampled / unsampled respectively
self.initial_indices = np.ones(self.n).astype(bool)
self.sampled_indices = np.zeros(self.n).astype(bool)
self.unsampled_indices = ~self.sampled_indices
self.arange_indices = np.arange(0, self.n).astype(int)
# Check for faults
assert self.K.shape == (
self.n, self.n), "K should be of shape ({}, {}), is of shape {}".format(self.n, self.n, self.K.shape)
assert self.L.shape == (
self.n, self.n), "L should be of shape ({}, {}), is of shape {}".format(self.n, self.n, self.L.shape)
assert self.stop_t > 0, "stop_t needs to be positive"
# Sanity check: keep objective values for each iteration
self.objective_curve = np.zeros(self.stop_t)
def _objective_func(self, t):
"""Calculate the objective function using sampled_indices until time t
Note that this is a vectorised version of the one in the paper"""
z_Qtm1 = self.z[self.sampled_indices]
z_Utm1 = self.z[self.unsampled_indices]
L_Qtm1Utm1 = self.L[np.ix_(
self.sampled_indices, self.unsampled_indices)]
assert L_Qtm1Utm1.shape == (
t, self.n - t), "L_Qtm1Utm1 should have shape ({}, {}), has shape {}".format(t, self.n - t, L_Qtm1Utm1.shape)
assert z_Qtm1.shape == (
t, 1), "z_Qtm1 should have shape ({}, {}), has shape {}".format(t, 1, z_Qtm1.shape)
assert z_Utm1.shape == (
self.n - t, 1), "z_Utm1 should have shape ({}, {}), has shape {}".format(self.n - t, 1, z_Utm1.shape)
quadratic_term = (z_Qtm1.T @ L_Qtm1Utm1).T * z_Utm1
diagonal_term = np.diag(self.L[np.ix_(
self.unsampled_indices, self.unsampled_indices)]).reshape(-1, 1) * z_Utm1 ** 2
assert quadratic_term.shape == (self.n - t, 1)
assert diagonal_term.shape == (self.n - t, 1)
J = quadratic_term + diagonal_term
J = np.atleast_1d(J.squeeze())
assert J.shape == (
self.n - t,), "J should have shape ({},), has shape {}".format(self.n - t, J.shape)
return J
def restart(self):
"""Start over, reinitialise everything"""
self.sampled_order = np.zeros(self.stop_t).astype(int)
self.initial_indices = np.ones(self.n).astype(bool)
self.sampled_indices = np.zeros(self.n).astype(bool)
self.unsampled_indices = ~self.sampled_indices
self.arange_indices = np.arange(0, self.n).astype(int)
self.objective_curve = np.zeros(self.stop_t)
def run(self):
"""Bayesian herding on the empirical distribution of X through K
Run kernel herding on the dataset (x_i)_i^n using the kernel matrix
K represented as a numpy array of shape (n, n), where K_ij = K(x_i, x_j).
Since the herding algorithm gives a new ordering of the dataset corresponding
to what datapoint to include when we only return the indices of the new ordering.
This is an array called return_order such that return_order[t] = index of x returned at
end of t'th iteration of kernel herding.
"""
self.restart()
# Initially (t=0) we sample x_0 always
self.sampled_order[0] = 0
self.sampled_indices[0] = True
self.unsampled_indices = ~self.sampled_indices
self.objective_curve[0] = np.nan
for t in tqdm(range(1, self.stop_t)):
# The objective function of all points we can sample
J = self._objective_func(t)
# Get the index for the argmin
J_argmax = J.argmax()
# The index is not correct as we removed all indices
# which has been sampled, so we map back to the correct index
map_back_to_correct_index = self.arange_indices[self.unsampled_indices]
sampled_index_at_t = map_back_to_correct_index[J_argmax]
# Update the index arrays
self.sampled_order[t] = sampled_index_at_t
self.sampled_indices[sampled_index_at_t] = True
self.unsampled_indices = ~self.sampled_indices
# Put objective value of t
self.objective_curve[t] = J.min()
self.w_reindexed = self.w.reshape(-1, 1)[self.sampled_order].squeeze()
| 43.818923
| 137
| 0.614348
| 4,095
| 26,861
| 3.87619
| 0.077167
| 0.030555
| 0.025515
| 0.024948
| 0.860833
| 0.846217
| 0.826939
| 0.819316
| 0.809425
| 0.798526
| 0
| 0.010834
| 0.278396
| 26,861
| 612
| 138
| 43.890523
| 0.808079
| 0.326905
| 0
| 0.724771
| 0
| 0
| 0.079377
| 0
| 0
| 0
| 0
| 0.001634
| 0.097859
| 1
| 0.085627
| false
| 0
| 0.009174
| 0
| 0.131498
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8ecf78628c79ddba98096b4ded37329445eee116
| 187
|
py
|
Python
|
spiel/segmentation/__init__.py
|
adoxography/SPieL
|
1cdb2f54d234526a51e3c1b2783fc8f497709f16
|
[
"MIT"
] | 1
|
2021-12-28T03:18:23.000Z
|
2021-12-28T03:18:23.000Z
|
spiel/segmentation/__init__.py
|
adoxography/SPieL
|
1cdb2f54d234526a51e3c1b2783fc8f497709f16
|
[
"MIT"
] | null | null | null |
spiel/segmentation/__init__.py
|
adoxography/SPieL
|
1cdb2f54d234526a51e3c1b2783fc8f497709f16
|
[
"MIT"
] | null | null | null |
"""
spiel.segmentation
Module for segmenting strings into morphemes
"""
from spiel.segmentation.features import Featurizer
from spiel.segmentation.constraints import ConstraintSegmenter
| 23.375
| 62
| 0.84492
| 20
| 187
| 7.9
| 0.7
| 0.322785
| 0.265823
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096257
| 187
| 7
| 63
| 26.714286
| 0.934911
| 0.342246
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
d9579de552bf8bd12b00a1915f9f4d0e0e31a2a8
| 84
|
py
|
Python
|
CodeWars/Python/7 kyu/Get the Middle Character/main.py
|
opastushkov/codewars-solutions
|
0132a24259a4e87f926048318332dcb4d94858ca
|
[
"MIT"
] | null | null | null |
CodeWars/Python/7 kyu/Get the Middle Character/main.py
|
opastushkov/codewars-solutions
|
0132a24259a4e87f926048318332dcb4d94858ca
|
[
"MIT"
] | null | null | null |
CodeWars/Python/7 kyu/Get the Middle Character/main.py
|
opastushkov/codewars-solutions
|
0132a24259a4e87f926048318332dcb4d94858ca
|
[
"MIT"
] | null | null | null |
def get_middle(s):
return s[int(-round(-len(s)/2)) - 1:int(round(len(s)/2)) + 1]
| 42
| 65
| 0.583333
| 18
| 84
| 2.666667
| 0.555556
| 0.333333
| 0.458333
| 0.5
| 0.583333
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0.054795
| 0.130952
| 84
| 2
| 65
| 42
| 0.60274
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
796463d420b0f9517f139756701b8769580ee632
| 15,252
|
py
|
Python
|
UNIOA/Opt_X.py
|
Huilin-Li/UNIOA
|
0f2527eac955a7193406775e5b71fab35f064422
|
[
"MIT"
] | null | null | null |
UNIOA/Opt_X.py
|
Huilin-Li/UNIOA
|
0f2527eac955a7193406775e5b71fab35f064422
|
[
"MIT"
] | null | null | null |
UNIOA/Opt_X.py
|
Huilin-Li/UNIOA
|
0f2527eac955a7193406775e5b71fab35f064422
|
[
"MIT"
] | null | null | null |
from sklearn.metrics import pairwise_distances
from .LevyFlight import Levy
import numpy as np
from numba import jit, prange
class Opt_X:
@staticmethod
def your():
pass
# <editor-fold desc="2 defs for ba: ba, ba_but_asyncE">
@staticmethod
def ba(old_X, new_Y, old_x_g, old_z1, old_z2, w3, lb_x, ub_x):
new_X = old_X.copy()
n = old_X.shape[1]
for i, y in enumerate(new_Y):
x = old_X[i] + y
if np.random.rand() < old_z1:
x = old_x_g + w3 * np.random.randn(n) * old_z2
new_X[i] = np.clip(x, lb_x, ub_x)
return new_X
@staticmethod
def ba_but_asyncE(func, old_X, old_X_Fit, new_Y, old_x_g, old_z1, old_z2, w3, lb_x, ub_x):
new_X = old_X.copy()
new_X_Fit = old_X_Fit.copy()
n = old_X.shape[1]
for i, y in enumerate(new_Y):
x = old_X[i] + y
if np.random.rand() < old_z1:
x = old_x_g + w3 * np.random.randn(n) * old_z2
new_X[i] = np.clip(x, lb_x, ub_x)
new_X_Fit[i] = func(new_X[i])
return new_X, new_X_Fit
# </editor-fold>
# <editor-fold desc="2 defs for goa: goa, goa_but_asyncE">
@staticmethod
@jit(parallel=True)
def goa(old_X, old_x_g, z, lb_x, ub_x, w1, w2):
M, n = old_X.shape[0], old_X.shape[1]
new_X = old_X.copy()
Dist = pairwise_distances(old_X, metric='euclidean')
for i in prange(M):
Delta_X = np.zeros(n)
for j in range(M):
if i != j:
# js are neighbors
D = Dist[i, j]
norm_D = 2 + np.remainder(D, 2)
delta_x = z * ((ub_x - lb_x) / 2) * \
(w1 * np.exp(-norm_D / w2) - np.exp(-norm_D)) * \
((old_X[i] - old_X[j]) / (D + 2.2204e-16))
Delta_X = Delta_X + delta_x
new_X[i] = np.clip(z * Delta_X + old_x_g, lb_x, ub_x)
return new_X
@staticmethod
def goa_but_asyncE(func, old_X, old_X_Fit, old_x_g, z, lb_x, ub_x, w1, w2):
M, n = old_X.shape[0], old_X.shape[1]
new_X = old_X.copy()
new_X_Fit = old_X_Fit.copy()
Dist = pairwise_distances(old_X, metric='euclidean')
for i in prange(M):
Delta_X = np.zeros(n)
for j in range(M):
if i != j:
# js are neighbors
D = Dist[i, j]
norm_D = 2 + np.remainder(D, 2)
delta_x = z * ((ub_x - lb_x) / 2) * \
(w1 * np.exp(-norm_D / w2) - np.exp(-norm_D)) * \
((old_X[i] - old_X[j]) / (D + 2.2204e-16))
Delta_X = Delta_X + delta_x
new_X[i] = np.clip(z * Delta_X + old_x_g, lb_x, ub_x)
new_X_Fit[i] = func(new_X[i])
return new_X, new_X_Fit
# </editor-fold>
# <editor-fold desc="2 defs for csa: csa, ba_but_asyncE">
@staticmethod
def csa(old_X, X_p, w1, w2, lb_x, ub_x):
new_X = old_X.copy()
M, n = old_X.shape[0], old_X.shape[1]
for i in range(M):
if np.random.rand() > w1:
new = old_X[i] + np.random.rand() * w2 * (X_p[np.random.randint(M)] - old_X[i])
if np.all(new >= lb_x) & np.all(new <= ub_x):
new_X[i] = new
else:
new_X[i] = np.random.uniform(lb_x, ub_x, n)
return new_X
@staticmethod
def csa_but_asyncE(func, old_X, old_X_Fit, X_p, w1, w2, lb_x, ub_x):
new_X = old_X.copy()
new_X_Fit = old_X_Fit.copy()
M, n = old_X.shape[0], old_X.shape[1]
for i in range(M):
if np.random.rand() > w1:
new = old_X[i] + np.random.rand() * w2 * (X_p[np.random.randint(M)] - old_X[i])
if np.all(new >= lb_x) & np.all(new <= ub_x):
new_X[i] = new
else:
new_X[i] = np.random.uniform(lb_x, ub_x, n)
new_X_Fit[i] = func(new_X[i])
return new_X, new_X_Fit
# </editor-fold>
# <editor-fold desc="2 defs for mfo: mfo, mfo_but_asyncE">
@staticmethod
def mfo(old_X, sort_X, z1, z2, w, lb_x, ub_x):
new_X = old_X.copy()
for i, sort_x in enumerate(sort_X):
temp = abs(sort_x - old_X[i]) * np.exp(w * z1) * np.cos(z1 * 2 * np.pi)
if i <= z2:
x = temp + sort_x
else:
x = temp + sort_X[z2]
new_X[i] = np.clip(x, lb_x, ub_x)
return new_X
@staticmethod
def mfo_but_asyncE(func, old_X, old_X_Fit, sort_X, z1, z2, w, lb_x, ub_x):
new_X = old_X.copy()
new_X_Fit = old_X_Fit.copy()
for i, sort_x in enumerate(sort_X):
temp = abs(sort_x - old_X[i]) * np.exp(w * z1) * np.cos(z1 * 2 * np.pi)
if i <= z2:
x = temp + sort_x
else:
x = temp + sort_X[z2]
new_X[i] = np.clip(x, lb_x, ub_x)
new_X_Fit[i] = func(new_X[i])
return new_X, new_X_Fit
# </editor-fold>
# <editor-fold desc="2 defs for mbo: mbo, mbo_but_asyncE">
@staticmethod
@jit(parallel=True)
def mbo(old_X, old_X_Fit, x_g, z, w1, w2, w3, budget):
M, n = old_X.shape[0], old_X.shape[1]
I_s = np.argsort(old_X_Fit)
sorted_X = old_X[I_s]
n_strongs = int(np.ceil(w1 * M))
n_weaks = M - n_strongs
strong_pop = sorted_X[0:n_strongs]
weak_pop = sorted_X[n_strongs:]
# strong
new_strongs = strong_pop.copy()
tfs_strong = np.random.rand(n_strongs, n) * w2 <= w1
for i in prange(n_strongs):
for d in prange(n):
if tfs_strong[i, d]:
new_strongs[i, d] = strong_pop[np.random.randint(n_strongs), d]
else:
new_strongs[i, d] = weak_pop[np.random.randint(n_weaks), d]
# weak
new_weaks = weak_pop.copy()
tfs_weak = np.random.rand(n_weaks, n) <= w1
for i in prange(n_weaks):
for d in prange(n):
if tfs_weak[i, d]:
new_weaks[i, d] = x_g[d]
else:
y = Levy(n=n, T=budget)
new_weaks[i, d] = weak_pop[np.random.randint(n_weaks), d]
if np.random.rand() > w3:
new_weaks[i, d] = new_weaks[i, d] + z * y[d]
temp_X = np.concatenate((new_strongs, new_weaks))
return temp_X
@staticmethod
def mbo_but_asyncE(func, old_X, old_X_Fit, x_g, z, w1, w2, w3, budget):
M, n = old_X.shape[0], old_X.shape[1]
I_s = np.argsort(old_X_Fit)
sorted_X = old_X[I_s]
n_strongs = int(np.ceil(w1 * M))
n_weaks = M - n_strongs
strong_pop = sorted_X[0:n_strongs]
weak_pop = sorted_X[n_strongs:]
# strong
new_strongs = strong_pop.copy()
new_strongs_f = old_X_Fit.copy()[0:n_strongs]
tfs_strong = np.random.rand(n_strongs, n) * w2 <= w1
for i in prange(n_strongs):
for d in prange(n):
if tfs_strong[i, d]:
new_strongs[i, d] = strong_pop[np.random.randint(n_strongs), d]
else:
new_strongs[i, d] = weak_pop[np.random.randint(n_weaks), d]
new_strongs_f[i] = func(new_strongs[i])
# weak
new_weaks = weak_pop.copy()
new_weaks_f = old_X_Fit.copy()[n_strongs:]
tfs_weak = np.random.rand(n_weaks, n) <= w1
for i in prange(n_weaks):
for d in prange(n):
if tfs_weak[i, d]:
new_weaks[i, d] = x_g[d]
else:
y = Levy(n=n, T=budget)
new_weaks[i, d] = weak_pop[np.random.randint(n_weaks), d]
if np.random.rand() > w3:
new_weaks[i, d] = new_weaks[i, d] + z * y[d]
new_weaks_f[i] = func(new_weaks[i])
new_X = np.concatenate((new_strongs, new_weaks))
new_X_Fit = np.concatenate((new_strongs_f, new_weaks_f))
return new_X, new_X_Fit
# </editor-fold>
# <editor-fold desc="2 defs for boa: boa, boa_but_asyncE">
@staticmethod
def boa(old_X, old_X_Fit, x_g, z, w1, w2, lb_x, ub_x):
M = len(old_X)
new_X = old_X.copy()
for i in range(M):
if np.random.rand() > w2:
temp = np.random.rand() ** 2 * x_g - old_X[i]
x = old_X[i] + temp * z * old_X_Fit[i] ** w1
else:
jk = np.random.choice(M, 2, replace=False) # two indices of two neighbors
temp = np.random.rand() ** 2 * old_X[jk[0]] - old_X[jk[1]]
x = old_X[i] + temp * z * old_X_Fit[i] ** w1
new_X[i] = np.clip(x, lb_x, ub_x)
return new_X
@staticmethod
def boa_but_asyncE(func, old_X, old_X_Fit, x_g, z, w1, w2, lb_x, ub_x):
M = len(old_X)
new_X = old_X.copy()
new_X_Fit = old_X_Fit.copy()
for i in range(M):
if np.random.rand() > w2:
temp = np.random.rand() ** 2 * x_g - old_X[i]
x = old_X[i] + temp * z * old_X_Fit[i] ** w1
else:
jk = np.random.choice(M, 2, replace=False) # two indices of two neighbors
temp = np.random.rand() ** 2 * old_X[jk[0]] - old_X[jk[1]]
x = old_X[i] + temp * z * old_X_Fit[i] ** w1
new_X[i] = np.clip(x, lb_x, ub_x)
new_X_Fit[i] = func(new_X[i])
return new_X, new_X_Fit
# </editor-fold>
# <editor-fold desc="2 defs for pso: pso, pso_but_asyncE">
@staticmethod
def pso(old_X, new_Y, lb_x, ub_x):
new_X = old_X.copy()
for i, y in enumerate(new_Y):
x = old_X[i] + y # update equation.
new_X[i] = np.clip(x, lb_x, ub_x)
return new_X
@staticmethod
def pso_but_asyncE(func, old_X, old_X_Fit, new_Y, lb_x, ub_x):
new_X = old_X.copy()
new_X_Fit = old_X_Fit.copy()
for i, y in enumerate(new_Y):
x = old_X[i] + y # update equation.
new_X[i] = np.clip(x, lb_x, ub_x)
new_X_Fit[i] = func(new_X[i])
return new_X, new_X_Fit
# </editor-fold>
# @staticmethod
# def mfo(old_X, sort_X, z1, z2, w, lb_x, ub_x):
# new_X = old_X.copy()
# for i, sort_x in enumerate(sort_X):
# temp = abs(sort_x - old_X[i]) * np.exp(w * z1) * np.cos(z1 * 2 * np.pi)
# if i <= z2:
# x = temp + sort_x
# else:
# x = temp + sort_X[z2]
# new_X[i] = np.clip(x, lb_x, ub_x)
# return new_X
# @staticmethod
# def ba(old_X, new_Y, old_x_g, old_z1, old_z2, w3, lb_x, ub_x):
# new_X = old_X.copy()
# n = old_X.shape[1]
# for i, y in enumerate(new_Y):
# x = old_X[i] + y
# if np.random.rand() < old_z1:
# x = old_x_g + w3 * np.random.randn(n) * old_z2
# new_X[i] = np.clip(x, lb_x, ub_x)
# return new_X
#
# @staticmethod
# def ba_but_asyncE(func, old_X, old_X_Fit, new_Y, old_x_g, old_z1, old_z2, w3, lb_x, ub_x):
# new_X = old_X.copy()
# new_X_Fit = old_X_Fit.copy()
# n = old_X.shape[1]
# for i, y in enumerate(new_Y):
# x = old_X[i] + y
# if np.random.rand() < old_z1:
# x = old_x_g + w3 * np.random.randn(n) * old_z2
# new_X[i] = np.clip(x, lb_x, ub_x)
# new_X_Fit[i] = func(new_X[i])
# return new_X, new_X_Fit
# @staticmethod
# def csa(old_X, X_p, w1, w2, lb_x, ub_x):
# new_X = old_X
# N, n = old_X.shape[0], old_X.shape[1]
# for i in range(N):
# if np.random.rand() > w1:
# new = old_X[i] + np.random.rand() * w2 * (X_p[np.random.randint(N)] - old_X[i])
# if np.all(new >=lb_x) & np.all(new <= ub_x):
# new_X[i] = new
# else:
# new_X[i] = np.random.uniform(lb_x, ub_x, n)
# return new_X
# @staticmethod
# @jit(parallel=True)
# def goa(old_X, old_x_g, z, lb_x, ub_x, w1, w2):
# N, n = old_X.shape[0], old_X.shape[1]
# new_X =old_X.copy()
# Dist = pairwise_distances(old_X, metric='euclidean')
# for i in prange(N):
# Delta_X = np.zeros(n)
# for j in range(N):
# if i != j:
# # js are neighbors
# D = Dist[i, j]
# norm_D = 2 + np.remainder(D, 2)
# delta_x = z * ((ub_x - lb_x) / 2) * \
# (w1 * np.exp(-norm_D/w2)-np.exp(-norm_D)) * \
# ((old_X[i] - old_X[j])/(D+2.2204e-16))
# Delta_X = Delta_X + delta_x
# new_X[i] = np.clip(z * Delta_X + old_x_g, lb_x, ub_x)
# return new_X
# @staticmethod
# @jit(parallel=True)
# def mbo(old_X, old_X_Fit, x_g, z, w1, w2, w3, budget):
# N, n = old_X.shape[0], old_X.shape[1]
# I_s = np.argsort(old_X_Fit)
# sorted_X = old_X[I_s]
# n_strongs = int(np.ceil(w1 * N))
# n_weaks = N - n_strongs
# strong_pop = sorted_X[0:n_strongs]
# weak_pop = sorted_X[n_strongs:]
# # strong
# new_strongs = strong_pop.copy()
# tfs_strong = np.random.rand(n_strongs, n) * w2 <= w1
# for i in prange(n_strongs):
# for d in prange(n):
# if tfs_strong[i, d]:
# new_strongs[i, d] = strong_pop[np.random.randint(n_strongs), d]
# else:
# new_strongs[i, d] = weak_pop[np.random.randint(n_weaks), d]
#
# # weak
# new_weaks = weak_pop.copy()
# tfs_weak = np.random.rand(n_weaks, n) <= w1
# for i in prange(n_weaks):
# for d in prange(n):
# if tfs_weak[i, d]:
# new_weaks[i, d] = x_g[d]
# else:
# y = Levy(n=n, T=budget)
# new_weaks[i, d] = weak_pop[np.random.randint(n_weaks), d]
# if np.random.rand() > w3:
# new_weaks[i, d] = new_weaks[i, d] + z * y[d]
#
#
# temp_X = np.concatenate((new_strongs, new_weaks))
# return temp_X
# @staticmethod
# def boa(old_X, old_X_Fit, x_g, z, w1, w2,lb_x, ub_x):
# N = len(old_X)
# new_X = old_X.copy()
# for i in range(N):
# if np.random.rand()>w2:
# temp = np.random.rand() ** 2 * x_g - old_X[i]
# x = old_X[i] + temp * z * old_X_Fit[i] ** w1
# else:
# jk = np.random.choice(N, 2, replace=False) # two indices of two neighbors
# temp = np.random.rand()**2*old_X[jk[0]]-old_X[jk[1]]
# x = old_X[i] + temp * z * old_X_Fit[i] ** w1
# new_X[i] = np.clip(x, lb_x, ub_x)
# return new_X
| 37.752475
| 97
| 0.490296
| 2,479
| 15,252
| 2.754336
| 0.048003
| 0.087873
| 0.04174
| 0.031634
| 0.942004
| 0.934388
| 0.927797
| 0.920475
| 0.913445
| 0.905536
| 0
| 0.019424
| 0.372148
| 15,252
| 403
| 98
| 37.846154
| 0.693609
| 0.312877
| 0
| 0.873362
| 0
| 0
| 0.001742
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.065502
| false
| 0.004367
| 0.017467
| 0
| 0.148472
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
796e37841a2b9327525d2f20afdde82f19ecdb55
| 245
|
py
|
Python
|
slpostfix.py
|
xDiaym/SingleLineRPN
|
ef6adc921f4367037c5f8e7618da70c47f60385e
|
[
"MIT"
] | 1
|
2020-05-18T16:35:07.000Z
|
2020-05-18T16:35:07.000Z
|
slpostfix.py
|
xDiaym/SingleLineRPN
|
ef6adc921f4367037c5f8e7618da70c47f60385e
|
[
"MIT"
] | null | null | null |
slpostfix.py
|
xDiaym/SingleLineRPN
|
ef6adc921f4367037c5f8e7618da70c47f60385e
|
[
"MIT"
] | null | null | null |
print((lambda f,i:f.reduce((lambda s,_:(lambda d,t:{'+':lambda a,b:a+b,'-':lambda a,b:a-b,'*':lambda a,b:a*b,'/':lambda a,b:a/b}.get(t)(s,d))(float(i.pop(0)),i.pop(0))),i,float(i.pop(0))))(__import__('functools'),__import__('sys').argv[1:]+[0]))
| 245
| 245
| 0.595918
| 54
| 245
| 2.537037
| 0.351852
| 0.116788
| 0.233577
| 0.262774
| 0.291971
| 0.291971
| 0.291971
| 0.291971
| 0.291971
| 0.291971
| 0
| 0.021008
| 0.028571
| 245
| 1
| 245
| 245
| 0.554622
| 0
| 0
| 0
| 0
| 0
| 0.065041
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 8
|
79997662056929b0e35dbe058d0908cdde7a5c68
| 3,081
|
py
|
Python
|
test/test_helpers.py
|
hegga/act-api-python
|
8a7fe79c89e0e718c8ab3c6fade33161ed7cc9d6
|
[
"ISC"
] | null | null | null |
test/test_helpers.py
|
hegga/act-api-python
|
8a7fe79c89e0e718c8ab3c6fade33161ed7cc9d6
|
[
"ISC"
] | null | null | null |
test/test_helpers.py
|
hegga/act-api-python
|
8a7fe79c89e0e718c8ab3c6fade33161ed7cc9d6
|
[
"ISC"
] | null | null | null |
""" Test for act helpers """
import pytest
import act.api
def test_add_uri_fqdn() -> None: # type: ignore
""" Test for extraction of facts from uri with fqdn """
api = act.api.Act("", None, "error")
uri = "http://www.mnemonic.no/home"
facts = act.api.helpers.uri_facts(api, uri)
assert len(facts) == 4
assert api.fact("componentOf").source("fqdn", "www.mnemonic.no").destination("uri", uri) \
in facts
assert api.fact("componentOf").source("path", "/home").destination("uri", uri) in facts
assert api.fact("scheme", "http").source("uri", uri) in facts
assert api.fact("basename", "home").source("path", "/home") in facts
def test_uri_should_fail() -> None: # type: ignore
""" Test for extraction of facts from uri with ipv4 """
api = act.api.Act("", None, "error")
with pytest.raises(act.api.base.ValidationError):
act.api.helpers.uri_facts(api, "http://")
with pytest.raises(act.api.base.ValidationError):
act.api.helpers.uri_facts(api, "www.mnemonic.no")
with pytest.raises(act.api.base.ValidationError):
act.api.helpers.uri_facts(api, "127.0.0.1")
def test_add_uri_ipv4() -> None: # type: ignore
""" Test for extraction of facts from uri with ipv4 """
api = act.api.Act("", None, "error")
uri = "http://127.0.0.1:8080/home"
facts = act.api.helpers.uri_facts(api, uri)
assert len(facts) == 5
assert api.fact("componentOf").source("ipv4", "127.0.0.1").destination("uri", uri) in facts
assert api.fact("componentOf").source("path", "/home").destination("uri", uri) in facts
assert api.fact("scheme", "http").source("uri", uri) in facts
assert api.fact("basename", "home").source("path", "/home") in facts
assert api.fact("port", "8080").source("uri", uri) in facts
def test_add_uri_ipv6() -> None: # type: ignore
""" Test for extraction of facts from uri with ipv4 """
api = act.api.Act("", None, "error")
uri = "http://[2001:67c:21e0::16]"
facts = act.api.helpers.uri_facts(api, uri)
assert len(facts) == 2
assert api.fact("scheme", "http").source("uri", uri) in facts
assert api.fact("componentOf").source("ipv6", "2001:67c:21e0::16").destination("uri", uri) \
in facts
def test_add_uri_ipv6_with_port_path_query() -> None: # type: ignore
""" Test for extraction of facts from uri with ipv6, path and query """
api = act.api.Act("", None, "error")
uri = "http://[2001:67c:21e0::16]:8080/path?q=a"
facts = act.api.helpers.uri_facts(api, uri)
assert len(facts) == 6
assert api.fact("scheme", "http").source("uri", uri) in facts
assert api.fact("componentOf").source("ipv6", "2001:67c:21e0::16").destination("uri", uri) \
in facts
assert api.fact("port", "8080").source("uri", uri) in facts
assert api.fact("componentOf").source("path", "/path").destination("uri", uri) in facts
assert api.fact("basename", "path").source("path", "/path") in facts
assert api.fact("componentOf").source("query", "q=a").destination("uri", uri) in facts
| 37.120482
| 96
| 0.63778
| 454
| 3,081
| 4.270925
| 0.129956
| 0.078907
| 0.113976
| 0.093863
| 0.872099
| 0.828778
| 0.828778
| 0.809696
| 0.772047
| 0.754513
| 0
| 0.036149
| 0.173969
| 3,081
| 82
| 97
| 37.573171
| 0.725737
| 0.11295
| 0
| 0.54
| 0
| 0
| 0.197994
| 0
| 0
| 0
| 0
| 0
| 0.42
| 1
| 0.1
| false
| 0
| 0.04
| 0
| 0.14
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
79c4b8efab13e728a2f4053348681270fa4235ff
| 81
|
py
|
Python
|
src/common/timestamp.py
|
vkhaydarov/PlantEye
|
bfc4f59023cfa97012ce0e5ca1b94f97b88b6f69
|
[
"MIT"
] | 1
|
2022-01-25T08:03:27.000Z
|
2022-01-25T08:03:27.000Z
|
src/common/timestamp.py
|
vkhaydarov/PlantEye
|
bfc4f59023cfa97012ce0e5ca1b94f97b88b6f69
|
[
"MIT"
] | null | null | null |
src/common/timestamp.py
|
vkhaydarov/PlantEye
|
bfc4f59023cfa97012ce0e5ca1b94f97b88b6f69
|
[
"MIT"
] | 1
|
2021-12-03T09:17:35.000Z
|
2021-12-03T09:17:35.000Z
|
from time import time
def get_timestamp():
return int(round(time() * 1000))
| 16.2
| 36
| 0.691358
| 12
| 81
| 4.583333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.060606
| 0.185185
| 81
| 5
| 36
| 16.2
| 0.772727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
8ddf276c1340fab80b6c4e8c58a5dffe6042636a
| 3,647
|
py
|
Python
|
bandit/containers/portfolio.py
|
zmy920423/bandit_portfolio_version
|
ce92c8f491dfc9cd94caa0783c7c5d263c3358a3
|
[
"MIT"
] | null | null | null |
bandit/containers/portfolio.py
|
zmy920423/bandit_portfolio_version
|
ce92c8f491dfc9cd94caa0783c7c5d263c3358a3
|
[
"MIT"
] | 1
|
2021-03-02T08:23:41.000Z
|
2021-03-02T08:23:41.000Z
|
bandit/containers/portfolio.py
|
zmy920423/bandit_portfolio_version
|
ce92c8f491dfc9cd94caa0783c7c5d263c3358a3
|
[
"MIT"
] | 1
|
2021-12-04T08:23:16.000Z
|
2021-12-04T08:23:16.000Z
|
from bandit.containers.container import Container
import torch as torch
from collections import OrderedDict
from bandit.functional import estimator_sample,estimator_ledoit_wolf
class Portfolio(Container):
"""
portfolio class
"""
def __init__(self, container_id=-1, module={"file": "eg", "name": "EG"}, **kwargs):
if module["name"] in ["OPAMC","ROPATC"]:
self.risk = True
self.returns = []
else:
self.risk = False
self.returns = None
self.k = kwargs["k"]
import_str = "from bandit.modules.{} import {}".format(module["file"], module["name"])
exec(import_str)
module = eval(module["name"] + "(**kwargs)")
super(Portfolio, self).__init__(container_id=container_id, module=module)
def decide(self, bandit_data):
portfolio = OrderedDict()
weight = self._module.decide()["w"]
i = 0
for stock in bandit_data.arm_reward.keys():
portfolio[stock] = weight[i]
i += 1
return portfolio
def update(self, result, bandit_data, **kwargs):
stock_return = torch.tensor(list(bandit_data.arm_reward.values()))
last_weight = torch.tensor(list(result.values()))
last_weight_hat = last_weight * stock_return / torch.dot(last_weight, stock_return)
arm_context = bandit_data.arm_context
if self.risk:
self.returns.append(stock_return.numpy().tolist())
covariance = estimator_ledoit_wolf(self.returns)
self._module(mean=stock_return, last_weight=last_weight, last_weight_hat=last_weight_hat, covariance=covariance)
else:
self._module(arm_reward=stock_return, last_weight=last_weight, last_weight_hat=last_weight_hat, arm_context = arm_context)
class PortfolioCardinality(Container):
"""
portfolio class
"""
def __init__(self, container_id=-1, module={"file": "eg", "name": "EG"}, **kwargs):
if module["name"] in ["OPAMC","ROPATC"]:
self.risk = True
self.returns = []
else:
self.risk = False
self.returns = None
self.k = kwargs["k"]
import_str = "from bandit.modules.{} import {}".format(module["file"], module["name"])
exec(import_str)
module = eval(module["name"] + "(**kwargs)")
super(PortfolioCardinality, self).__init__(container_id=container_id, module=module)
def decide(self, bandit_data):
portfolio = OrderedDict()
weight = self._module.decide()["w"]
idx = torch.topk(weight, self.k).indices
weight_c = torch.zeros(len(weight))
weight_c[idx] = weight[idx]
weight_c = weight_c / torch.sum(weight_c)
i = 0
for stock in bandit_data.arm_reward.keys():
portfolio[stock] = weight_c[i]
i += 1
return portfolio
def update(self, result, bandit_data, **kwargs):
stock_return = torch.tensor(list(bandit_data.arm_reward.values()))
last_weight = torch.tensor(list(result.values()))
last_weight_hat = last_weight * stock_return / torch.dot(last_weight, stock_return)
arm_context = bandit_data.arm_context
if self.risk:
self.returns.append(stock_return.numpy().tolist())
covariance = estimator_ledoit_wolf(self.returns)
self._module(mean=stock_return, last_weight=last_weight, last_weight_hat=last_weight_hat, covariance=covariance)
else:
self._module(arm_reward=stock_return, last_weight=last_weight, last_weight_hat=last_weight_hat, arm_context = arm_context)
| 40.522222
| 134
| 0.637236
| 440
| 3,647
| 5.020455
| 0.175
| 0.108646
| 0.05885
| 0.072431
| 0.851969
| 0.851969
| 0.851969
| 0.851969
| 0.851969
| 0.851969
| 0
| 0.002165
| 0.240197
| 3,647
| 89
| 135
| 40.977528
| 0.79502
| 0.0085
| 0
| 0.805556
| 0
| 0
| 0.046317
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.083333
| false
| 0
| 0.111111
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5c2e3816429fde339ae156259d85da6822e6e5b0
| 215
|
py
|
Python
|
trade/admin.py
|
dc74089/oneshirt
|
437941bf29e41098df3eb3cde2370ea29c897969
|
[
"Apache-2.0"
] | null | null | null |
trade/admin.py
|
dc74089/oneshirt
|
437941bf29e41098df3eb3cde2370ea29c897969
|
[
"Apache-2.0"
] | 6
|
2018-03-06T18:07:08.000Z
|
2018-12-27T22:54:12.000Z
|
trade/admin.py
|
dc74089/oneshirt
|
437941bf29e41098df3eb3cde2370ea29c897969
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(OneshirtUser)
admin.site.register(Item)
admin.site.register(Trade)
admin.site.register(PasswordResetRequest)
| 21.5
| 41
| 0.813953
| 28
| 215
| 6.25
| 0.5
| 0.205714
| 0.388571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088372
| 215
| 9
| 42
| 23.888889
| 0.892857
| 0.12093
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.166667
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 7
|
3093bbb9c7042c987260f233b991d866e2367f0b
| 157
|
py
|
Python
|
reagent/net_builder/continuous_actor/__init__.py
|
kellielu/ReAgent
|
c538992672220453cdc95044def25c4e0691a8b0
|
[
"BSD-3-Clause"
] | 2
|
2021-10-31T01:05:46.000Z
|
2021-11-08T09:43:25.000Z
|
reagent/net_builder/continuous_actor/__init__.py
|
kellielu/ReAgent
|
c538992672220453cdc95044def25c4e0691a8b0
|
[
"BSD-3-Clause"
] | null | null | null |
reagent/net_builder/continuous_actor/__init__.py
|
kellielu/ReAgent
|
c538992672220453cdc95044def25c4e0691a8b0
|
[
"BSD-3-Clause"
] | null | null | null |
#!/usr/bin/env python3
from . import dirichlet_fully_connected # noqa
from . import fully_connected # noqa
from . import gaussian_fully_connected # noqa
| 26.166667
| 47
| 0.77707
| 21
| 157
| 5.571429
| 0.52381
| 0.25641
| 0.461538
| 0.376068
| 0.478632
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007519
| 0.152866
| 157
| 5
| 48
| 31.4
| 0.87218
| 0.229299
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
eb76cd449461ae9ddc8f2b3ded2d949a0896df2d
| 107
|
py
|
Python
|
tests/test_json_schema.py
|
riddopic/opta
|
25fa6435fdc7e2ea9c7963ed74100fffb0743063
|
[
"Apache-2.0"
] | 595
|
2021-05-21T22:30:48.000Z
|
2022-03-31T15:40:25.000Z
|
tests/test_json_schema.py
|
riddopic/opta
|
25fa6435fdc7e2ea9c7963ed74100fffb0743063
|
[
"Apache-2.0"
] | 463
|
2021-05-24T21:32:59.000Z
|
2022-03-31T17:12:33.000Z
|
tests/test_json_schema.py
|
riddopic/opta
|
25fa6435fdc7e2ea9c7963ed74100fffb0743063
|
[
"Apache-2.0"
] | 29
|
2021-05-21T22:27:52.000Z
|
2022-03-28T16:43:45.000Z
|
from opta.json_schema import check_schemas
def test_returns_without_error() -> None:
check_schemas()
| 17.833333
| 42
| 0.785047
| 15
| 107
| 5.2
| 0.866667
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140187
| 107
| 5
| 43
| 21.4
| 0.847826
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
eb8e5cd617af66b94c18d48447eab26b2fd59f7d
| 146
|
py
|
Python
|
active_campaign/ecommerce/__init__.py
|
jlorencelim/active-campaign
|
39d5d252bc19ee788f74d9c1ffa7745cbfcbdc2e
|
[
"MIT"
] | null | null | null |
active_campaign/ecommerce/__init__.py
|
jlorencelim/active-campaign
|
39d5d252bc19ee788f74d9c1ffa7745cbfcbdc2e
|
[
"MIT"
] | 1
|
2019-02-12T22:51:53.000Z
|
2019-02-13T03:08:11.000Z
|
active_campaign/ecommerce/__init__.py
|
jlorencelim/active-campaign
|
39d5d252bc19ee788f74d9c1ffa7745cbfcbdc2e
|
[
"MIT"
] | 1
|
2019-02-08T09:28:13.000Z
|
2019-02-08T09:28:13.000Z
|
from active_campaign.ecommerce.connection import *
from active_campaign.ecommerce.customer import *
from active_campaign.ecommerce.order import *
| 36.5
| 50
| 0.856164
| 18
| 146
| 6.777778
| 0.444444
| 0.245902
| 0.442623
| 0.663934
| 0.540984
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082192
| 146
| 3
| 51
| 48.666667
| 0.910448
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
c61400dabb329395629c8db07f292c3e16897f73
| 585
|
py
|
Python
|
scripts/list_to_json.py
|
EnzoVargasM/advancing-hero
|
ebf79ebe22b839c0f495e772a0058c51e2a28dc9
|
[
"MIT"
] | 1
|
2021-04-12T01:27:34.000Z
|
2021-04-12T01:27:34.000Z
|
scripts/list_to_json.py
|
EnzoVargasM/advancing-hero
|
ebf79ebe22b839c0f495e772a0058c51e2a28dc9
|
[
"MIT"
] | null | null | null |
scripts/list_to_json.py
|
EnzoVargasM/advancing-hero
|
ebf79ebe22b839c0f495e772a0058c51e2a28dc9
|
[
"MIT"
] | 2
|
2021-04-01T00:13:51.000Z
|
2021-04-11T07:15:54.000Z
|
import json
my_list = [
[4, 1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 1, 1, 1, 1, 1],
[4, 2, 2, 1, 1, 1, 1, 1, 1, 5, 5, 1, 1, 1, 1, 1],
[4, 2, 2, 1, 1, 1, 1, 1, 1, 5, 5, 1, 1, 1, 1, 1],
[4, 1, 1, 2, 1, 1, 1, 1, 1, 5, 5, 1, 1, 3, 1, 1],
[4, 1, 1, 2, 1, 1, 1, 1, 1, 5, 5, 1, 1, 3, 1, 1],
[4, 1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 1, 1, 3, 1, 1],
[4, 1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 1, 1, 1, 3, 1],
[4, 1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 1, 1, 1, 3, 1],
[4, 1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 1, 1, 1, 1, 3],
]
with open('world.json', 'w') as outfile:
json.dump(my_list, outfile)
| 39
| 53
| 0.358974
| 160
| 585
| 1.3
| 0.1
| 0.769231
| 0.822115
| 0.807692
| 0.6875
| 0.6875
| 0.6875
| 0.6875
| 0.6875
| 0.6875
| 0
| 0.371134
| 0.336752
| 585
| 15
| 54
| 39
| 0.164948
| 0
| 0
| 0.428571
| 0
| 0
| 0.018771
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.071429
| 0
| 0.071429
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c6471cf21e085429384f240ab5d07f728b47b354
| 35,664
|
py
|
Python
|
test/kb_Amplicon_server_2_test.py
|
Tianhao-Gu/kb_Amplicon
|
34ed79f44bd69ea3755dd6cc3c659d216522408e
|
[
"MIT"
] | null | null | null |
test/kb_Amplicon_server_2_test.py
|
Tianhao-Gu/kb_Amplicon
|
34ed79f44bd69ea3755dd6cc3c659d216522408e
|
[
"MIT"
] | 6
|
2021-11-10T02:45:51.000Z
|
2022-02-19T03:41:20.000Z
|
test/kb_Amplicon_server_2_test.py
|
Tianhao-Gu/kb_Amplicon
|
34ed79f44bd69ea3755dd6cc3c659d216522408e
|
[
"MIT"
] | 1
|
2021-11-09T20:10:09.000Z
|
2021-11-09T20:10:09.000Z
|
# -*- coding: utf-8 -*-
import os
import time
import unittest
import inspect
from mock import patch
import requests
from configparser import ConfigParser
from kb_Amplicon.kb_AmpliconImpl import kb_Amplicon
from kb_Amplicon.kb_AmpliconServer import MethodContext
from installed_clients.authclient import KBaseAuth as _KBaseAuth
from kb_Amplicon.Utils.MDSUtils import MDSUtils
from installed_clients.DataFileUtilClient import DataFileUtil
from installed_clients.WorkspaceClient import Workspace
from installed_clients.AbstractHandleClient import AbstractHandle as HandleService
class kb_AmpliconTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.token = os.environ.get('KB_AUTH_TOKEN', None)
config_file = os.environ.get('KB_DEPLOYMENT_CONFIG', None)
cls.cfg = {}
config = ConfigParser()
config.read(config_file)
for nameval in config.items('kb_Amplicon'):
cls.cfg[nameval[0]] = nameval[1]
# Getting username from Auth profile for token
auth_service_url = cls.cfg['auth-service-url']
auth_client = _KBaseAuth(auth_service_url)
user_id = auth_client.get_user(cls.token)
# WARNING: don't call any logging methods on the context object,
# it'll result in a NoneType error
cls.ctx = MethodContext(None)
cls.ctx.update({'token': cls.token,
'user_id': user_id,
'provenance': [
{'service': 'kb_Amplicon',
'method': 'please_never_use_it_in_production',
'method_params': []
}],
'authenticated': 1})
cls.wsURL = cls.cfg['workspace-url']
cls.wsClient = Workspace(cls.wsURL)
cls.shockURL = cls.cfg['shock-url']
cls.serviceImpl = kb_Amplicon(cls.cfg)
cls.scratch = cls.cfg['scratch']
cls.callback_url = os.environ['SDK_CALLBACK_URL']
cls.dfu = DataFileUtil(cls.callback_url)
cls.mds_util = MDSUtils(cls.cfg)
cls.hs = HandleService(url=cls.cfg['handle-service-url'],
token=cls.token)
suffix = int(time.time() * 1000)
cls.wsName = "test_kb_Amplicon_" + str(suffix)
ret = cls.wsClient.create_workspace({'workspace': cls.wsName})
cls.wsId = ret[0]
small_file = os.path.join(cls.scratch, 'test.txt')
with open(small_file, "w") as f:
f.write("empty content")
cls.test_shock = cls.dfu.file_to_shock({'file_path': small_file, 'make_handle': True})
cls.handles_to_delete = []
cls.nodes_to_delete = []
cls.handles_to_delete.append(cls.test_shock['handle']['hid'])
cls.nodes_to_delete.append(cls.test_shock['shock_id'])
@classmethod
def tearDownClass(cls):
if hasattr(cls, 'wsName'):
cls.wsClient.delete_workspace({'workspace': cls.wsName})
print('Test workspace was deleted')
if hasattr(cls, 'nodes_to_delete'):
for node in cls.nodes_to_delete:
cls.delete_shock_node(node)
if hasattr(cls, 'handles_to_delete'):
cls.hs.delete_handles(cls.hs.hids_to_handles(cls.handles_to_delete))
print('Deleted handles ' + str(cls.handles_to_delete))
@classmethod
def delete_shock_node(cls, node_id):
header = {'Authorization': 'Oauth {0}'.format(cls.token)}
requests.delete(cls.shockURL + '/node/' + node_id, headers=header,
allow_redirects=True)
print('Deleted shock node ' + node_id)
def getMDSUtil(self):
return self.__class__.mds_util
def mock_file_to_shock(params):
print('Mocking DataFileUtilClient.file_to_shock')
print(params)
return kb_AmpliconTest().test_shock
def loadExpressionMatrix(self):
if hasattr(self.__class__, 'expr_matrix_ref'):
return self.__class__.expr_matrix_ref
# matrix_file_name = 'test_import.xlsx'
col_attribute = {'attributes': [{'attribute': 'test_attribute_1',
'attribute_ont_id': 'OBI_0500020',
'source': 'upload',
'unit': 'Hour',
'unit_ont_id': 'UO_0000032'},
{'attribute': 'test_attribute_2',
'attribute_ont_id': 'CHEBI:9168',
'source': 'upload',
'unit': 'nanogram per milliliter',
'unit_ont_id': 'UO_0000275'},
{'attribute': 'test_attribute_3',
'attribute_ont_id': 'CHEBI:9168',
'source': 'upload',
'unit': 'nanogram per milliliter',
'unit_ont_id': 'UO_0000275'}],
'instances': {'instance_1': ['1', '5', '9'],
'instance_2': ['2', '6', '10'],
'instance_3': ['3', '7', '11'],
'instance_4': ['4', '8', '12']},
'ontology_mapping_method': 'User Curation'}
info = self.dfu.save_objects({
'id': self.wsId,
'objects': [{'type': 'KBaseExperiments.AttributeMapping',
'data': col_attribute,
'name': 'test_ExpressionMatrix_col_attribute_mapping'}]})[0]
col_attributemapping_ref = "%s/%s/%s" % (info[6], info[0], info[4])
self.__class__.col_attributemapping_ref = col_attributemapping_ref
print('Loaded Col AttributeMapping: ' + col_attributemapping_ref)
row_attribute = {'attributes': [{'attribute': 'test_attribute_1',
'attribute_ont_id': 'OBI_0500020',
'source': 'upload',
'unit': 'Hour',
'unit_ont_id': 'UO_0000032'},
{'attribute': 'test_attribute_2',
'attribute_ont_id': 'CHEBI:9168',
'source': 'upload',
'unit': 'nanogram per milliliter',
'unit_ont_id': 'UO_0000275'},
{'attribute': 'test_attribute_3',
'attribute_ont_id': 'CHEBI:9168',
'source': 'upload',
'unit': 'nanogram per milliliter',
'unit_ont_id': 'UO_0000275'}],
'instances': {'WRI_RS00010_CDS_1': ['1', '4', '7'],
'WRI_RS00015_CDS_1': ['3', '4', '8'],
'WRI_RS00025_CDS_1': ['3', '6', '7'],
'WRI_RS00030_CDS_1': ['3', '6', '7'],
'WRI_RS00035_CDS_1': ['3', '6', '7']},
'ontology_mapping_method': 'User Curation'}
info = self.dfu.save_objects({
'id': self.wsId,
'objects': [{'type': 'KBaseExperiments.AttributeMapping',
'data': row_attribute,
'name': 'test_ExpressionMatrix_row_attribute_mapping'}]})[0]
row_attributemapping_ref = "%s/%s/%s" % (info[6], info[0], info[4])
self.__class__.row_attributemapping_ref = row_attributemapping_ref
print('Loaded Row AttributeMapping: ' + row_attributemapping_ref)
matrix_data = {'attributes': {'Instrument': 'Old Faithful',
'Scientist': 'Marie Currie'},
'col_attributemapping_ref': col_attributemapping_ref,
'col_mapping': {'instance_1': 'instance_1',
'instance_2': 'instance_2',
'instance_3': 'instance_3',
'instance_4': 'instance_4'},
'col_normalization': 'test_col_normalization',
'data': {'col_ids': ['instance_1', 'instance_2', 'instance_3',
'instance_4'],
'row_ids': ['WRI_RS00010_CDS_1', 'WRI_RS00015_CDS_1',
'WRI_RS00025_CDS_1', 'WRI_RS00030_CDS_1',
'WRI_RS00035_CDS_1'],
'values': [[1, 2, 3, 4],
[50, 60, 70, 80],
[9, 10, 11, 12],
[9, 10, 11, 12],
[9, 10, 11, 12]]},
'description': 'test_desc',
'row_attributemapping_ref': row_attributemapping_ref,
'row_mapping': {'WRI_RS00010_CDS_1': 'WRI_RS00010_CDS_1',
'WRI_RS00015_CDS_1': 'WRI_RS00015_CDS_1',
'WRI_RS00025_CDS_1': 'WRI_RS00025_CDS_1',
'WRI_RS00030_CDS_1': 'WRI_RS00030_CDS_1',
'WRI_RS00035_CDS_1': 'WRI_RS00035_CDS_1'},
'row_normalization': 'test_row_normalization',
'scale': 'log2',
'search_attributes': ['Scientist | Marie Currie',
'Instrument | Old Faithful']}
info = self.dfu.save_objects({'id': self.wsId,
'objects': [{'type': 'KBaseMatrices.ExpressionMatrix',
'data': matrix_data,
'name': 'test_ExpressionMatrix'}]})[0]
expr_matrix_ref = "%s/%s/%s" % (info[6], info[0], info[4])
self.__class__.expr_matrix_ref = expr_matrix_ref
print('Loaded ExpressionMatrix: ' + expr_matrix_ref)
# load associated matrix
matrix_data = {'attributes': {'Instrument': 'Old Faithful',
'Scientist': 'Marie Currie'},
'col_attributemapping_ref': col_attributemapping_ref,
'col_mapping': {'instance_1': 'instance_1',
'instance_2': 'instance_2',
'instance_3': 'instance_3',
'instance_4': 'instance_4'},
'col_normalization': 'test_col_normalization',
'data': {'col_ids': ['instance_1', 'instance_2', 'instance_3',
'instance_4'],
'row_ids': ['WRI_RS00010_CDS_1', 'WRI_RS00015_CDS_1',
'WRI_RS00025_CDS_1', 'WRI_RS00030_CDS_1',
'WRI_RS00035_CDS_1'],
'values': [[0.1, 0.2, 0.3, 0.4],
[0.5, 0.6, 0.7, 0.8],
[0.9, 1, 1.1, 1.2],
[0.9, 1, 1.1, 1.2],
[0.9, 1, 1.1, 1.2]]},
'description': 'test_desc',
'row_attributemapping_ref': row_attributemapping_ref,
'row_mapping': {'WRI_RS00010_CDS_1': 'WRI_RS00010_CDS_1',
'WRI_RS00015_CDS_1': 'WRI_RS00015_CDS_1',
'WRI_RS00025_CDS_1': 'WRI_RS00025_CDS_1',
'WRI_RS00030_CDS_1': 'WRI_RS00030_CDS_1',
'WRI_RS00035_CDS_1': 'WRI_RS00035_CDS_1'},
'row_normalization': 'test_row_normalization',
'scale': 'log2',
'search_attributes': ['Scientist | Marie Currie',
'Instrument | Old Faithful']}
info = self.dfu.save_objects({
'id': self.wsId,
'objects': [{'type': 'KBaseMatrices.ExpressionMatrix',
'data': matrix_data,
'name': 'test_associated_ExpressionMatrix'}]})[0]
asso_matrix_ref = "%s/%s/%s" % (info[6], info[0], info[4])
self.__class__.asso_matrix_ref = asso_matrix_ref
print('Loaded Associated ExpressionMatrix: ' + asso_matrix_ref)
def start_test(self):
testname = inspect.stack()[1][3]
print('\n*** starting test: ' + testname + ' **')
def test_init_ok(self):
self.start_test()
class_attri = ['ws_url', 'callback_url', 'token', 'scratch', 'dfu', 'working_dir',
'output_dir']
mds_util = self.getMDSUtil()
self.assertTrue(set(class_attri) <= set(mds_util.__dict__.keys()))
self.assertEqual(mds_util.scratch, self.cfg.get('scratch'))
@patch.object(DataFileUtil, "file_to_shock", side_effect=mock_file_to_shock)
def test_run_metaMDS_scale_by_attri_plot_associated_matrix_without_color(self, file_to_shock):
self.start_test()
self.loadExpressionMatrix()
# testing col dimension with linked matrix
params = {'workspace_name': self.wsName,
'input_obj_ref': self.expr_matrix_ref,
'n_components': 3,
'max_iter': 20,
'plot_script': 'plot(my_data.mds,type="t",display="sites")',
'plot_type': 'ps',
'plot_name': '',
'attribute_mapping_obj_ref': self.col_attributemapping_ref,
'associated_matrix_obj_ref': self.asso_matrix_ref,
'scale_size_by': {'attribute_size': ["test_attribute_1"]},
# 'color_marker_by': {'attribute_color': ['test_attribute_2']},
'mds_matrix_name': 'output_mds_from_obj',
'dimension': 'col'}
ret = self.serviceImpl.run_metaMDS(self.ctx, params)[0]
self.assertTrue('report_name' in ret)
self.assertTrue('report_ref' in ret)
self.assertTrue('mds_ref' in ret)
pca_matrix_ref = ret.get('mds_ref')
pca_data = self.dfu.get_objects({"object_refs": [pca_matrix_ref]})['data'][0]['data']
expected_values = ['distance_matrix', 'mds_parameters', 'original_matrix_ref',
'rotation_matrix', 'site_ordination', 'species_ordination']
self.assertTrue(set(expected_values) <= set(pca_data.keys()))
expected_row_ids = ['WRI_RS00010_CDS_1', 'WRI_RS00015_CDS_1', 'WRI_RS00025_CDS_1',
'WRI_RS00030_CDS_1', 'WRI_RS00035_CDS_1']
expected_col_ids = ['instance_1', 'instance_2', 'instance_3', 'instance_4']
result_row_ids = [value[0] for value in pca_data.get('species_ordination').get('values')]
result_col_ids = [value[0] for value in pca_data.get('site_ordination').get('values')]
self.assertCountEqual(result_row_ids, expected_row_ids)
self.assertCountEqual(result_col_ids, expected_col_ids)
mds_dir = '/kb/module/work/tmp/mds_output'
expected_files = ['dist_matrix.csv', 'mds_script.R', 'others.json',
'plotly_fig.html', 'site_ordination.csv', 'species_ordination.csv',
'test_ExpressionMatrix.csv',
'usr_plt_name.ps']
self.assertTrue(set(expected_files) <= set(os.listdir(mds_dir)))
@patch.object(DataFileUtil, "file_to_shock", side_effect=mock_file_to_shock)
def test_run_metaMDS_scale_by_attri_plot_associated_matrix(self, file_to_shock):
self.start_test()
self.loadExpressionMatrix()
# testing col dimension with linked matrix
params = {'workspace_name': self.wsName,
'input_obj_ref': self.expr_matrix_ref,
'n_components': 3,
'max_iter': 20,
'plot_script': 'plot(my_data.mds,type="t",display="sites")',
'plot_type': 'ps',
'plot_name': '',
'attribute_mapping_obj_ref': self.col_attributemapping_ref,
'associated_matrix_obj_ref': self.asso_matrix_ref,
'scale_size_by': {'attribute_size': ["test_attribute_1"]},
'color_marker_by': {'attribute_color': ['test_attribute_2']},
'mds_matrix_name': 'output_mds_from_obj',
'dimension': 'col'}
ret = self.serviceImpl.run_metaMDS(self.ctx, params)[0]
self.assertTrue('report_name' in ret)
self.assertTrue('report_ref' in ret)
self.assertTrue('mds_ref' in ret)
pca_matrix_ref = ret.get('mds_ref')
pca_data = self.dfu.get_objects({"object_refs": [pca_matrix_ref]})['data'][0]['data']
expected_values = ['distance_matrix', 'mds_parameters', 'original_matrix_ref',
'rotation_matrix', 'site_ordination', 'species_ordination']
self.assertTrue(set(expected_values) <= set(pca_data.keys()))
expected_row_ids = ['WRI_RS00010_CDS_1', 'WRI_RS00015_CDS_1', 'WRI_RS00025_CDS_1',
'WRI_RS00030_CDS_1', 'WRI_RS00035_CDS_1']
expected_col_ids = ['instance_1', 'instance_2', 'instance_3', 'instance_4']
result_row_ids = [value[0] for value in pca_data.get('species_ordination').get('values')]
result_col_ids = [value[0] for value in pca_data.get('site_ordination').get('values')]
self.assertCountEqual(result_row_ids, expected_row_ids)
self.assertCountEqual(result_col_ids, expected_col_ids)
mds_dir = '/kb/module/work/tmp/mds_output'
expected_files = ['dist_matrix.csv', 'mds_script.R', 'others.json',
'plotly_fig.html', 'site_ordination.csv', 'species_ordination.csv',
'test_ExpressionMatrix.csv',
'usr_plt_name.ps']
self.assertTrue(set(expected_files) <= set(os.listdir(mds_dir)))
@patch.object(DataFileUtil, "file_to_shock", side_effect=mock_file_to_shock)
def test_run_metaMDS_with_linked_matrix_ok(self, file_to_shock):
self.start_test()
self.loadExpressionMatrix()
# testing col dimension with linked matrix
params = {'workspace_name': self.wsName,
'input_obj_ref': self.expr_matrix_ref,
'n_components': 3,
'max_iter': 20,
'plot_script': 'plot(my_data.mds,type="t",display="sites")',
'plot_type': 'ps',
'plot_name': '',
'attribute_mapping_obj_ref': self.col_attributemapping_ref,
'associated_matrix_obj_ref': self.asso_matrix_ref,
'scale_size_by': {'row_size': ['WRI_RS00010_CDS_1']},
'color_marker_by': {'attribute_color': ['test_attribute_2']},
'mds_matrix_name': 'output_mds_from_obj',
'dimension': 'col'}
ret = self.serviceImpl.run_metaMDS(self.ctx, params)[0]
self.assertTrue('report_name' in ret)
self.assertTrue('report_ref' in ret)
self.assertTrue('mds_ref' in ret)
pca_matrix_ref = ret.get('mds_ref')
pca_data = self.dfu.get_objects({"object_refs": [pca_matrix_ref]})['data'][0]['data']
expected_values = ['distance_matrix', 'mds_parameters', 'original_matrix_ref',
'rotation_matrix', 'site_ordination', 'species_ordination']
self.assertTrue(set(expected_values) <= set(pca_data.keys()))
expected_row_ids = ['WRI_RS00010_CDS_1', 'WRI_RS00015_CDS_1', 'WRI_RS00025_CDS_1',
'WRI_RS00030_CDS_1', 'WRI_RS00035_CDS_1']
expected_col_ids = ['instance_1', 'instance_2', 'instance_3', 'instance_4']
result_row_ids = [value[0] for value in pca_data.get('species_ordination').get('values')]
result_col_ids = [value[0] for value in pca_data.get('site_ordination').get('values')]
self.assertCountEqual(result_row_ids, expected_row_ids)
self.assertCountEqual(result_col_ids, expected_col_ids)
mds_dir = '/kb/module/work/tmp/mds_output'
expected_files = ['dist_matrix.csv', 'mds_script.R', 'others.json',
'plotly_fig.html', 'site_ordination.csv', 'species_ordination.csv',
'test_ExpressionMatrix.csv',
'usr_plt_name.ps']
self.assertTrue(set(expected_files) <= set(os.listdir(mds_dir)))
@patch.object(DataFileUtil, "file_to_shock", side_effect=mock_file_to_shock)
def test_run_metaMDS_with_row_linked_matrix_ok(self, file_to_shock):
self.start_test()
self.loadExpressionMatrix()
# testing row dimension with linked matrix
params = {'workspace_name': self.wsName,
'input_obj_ref': self.expr_matrix_ref,
'n_components': 3,
'max_iter': 20,
'plot_script': 'plot(my_data.mds,type="t",display="sites")',
'plot_type': 'ps',
'plot_name': '',
'attribute_mapping_obj_ref': self.row_attributemapping_ref,
'associated_matrix_obj_ref': self.asso_matrix_ref,
'scale_size_by': {'col_size': ['instance_2']},
'color_marker_by': {'attribute_color': ['test_attribute_2']},
'mds_matrix_name': 'output_mds_from_obj',
'dimension': 'row'}
ret = self.serviceImpl.run_metaMDS(self.ctx, params)[0]
self.assertTrue('report_name' in ret)
self.assertTrue('report_ref' in ret)
self.assertTrue('mds_ref' in ret)
pca_matrix_ref = ret.get('mds_ref')
pca_data = self.dfu.get_objects({"object_refs": [pca_matrix_ref]})['data'][0]['data']
expected_values = ['distance_matrix', 'mds_parameters', 'original_matrix_ref',
'rotation_matrix', 'site_ordination', 'species_ordination']
self.assertTrue(set(expected_values) <= set(pca_data.keys()))
expected_row_ids = ['instance_1', 'instance_2', 'instance_3', 'instance_4']
expected_col_ids = ['WRI_RS00010_CDS_1', 'WRI_RS00015_CDS_1', 'WRI_RS00025_CDS_1',
'WRI_RS00030_CDS_1', 'WRI_RS00035_CDS_1']
result_row_ids = [value[0] for value in pca_data.get('species_ordination').get('values')]
result_col_ids = [value[0] for value in pca_data.get('site_ordination').get('values')]
self.assertCountEqual(result_row_ids, expected_row_ids)
self.assertCountEqual(result_col_ids, expected_col_ids)
mds_dir = '/kb/module/work/tmp/mds_output'
expected_files = ['dist_matrix.csv', 'mds_script.R', 'others.json',
'plotly_fig.html', 'site_ordination.csv', 'species_ordination.csv',
'test_ExpressionMatrix.csv',
'usr_plt_name.ps']
self.assertTrue(set(expected_files) <= set(os.listdir(mds_dir)))
@patch.object(DataFileUtil, "file_to_shock", side_effect=mock_file_to_shock)
def test_run_metaMDS_with_linked_matrix_ok_only_scale_size(self, file_to_shock):
self.start_test()
self.loadExpressionMatrix()
# testing only scale_size_by with linked matrix
params = {'workspace_name': self.wsName,
'input_obj_ref': self.expr_matrix_ref,
'n_components': 3,
'max_iter': 20,
'plot_script': 'plot(my_data.mds,type="t",display="sites")',
'plot_type': 'ps',
'plot_name': '',
'associated_matrix_obj_ref': self.asso_matrix_ref,
'scale_size_by': {'row_size': ['WRI_RS00010_CDS_1']},
'mds_matrix_name': 'output_mds_from_obj',
'dimension': 'col'}
ret = self.serviceImpl.run_metaMDS(self.ctx, params)[0]
self.assertTrue('report_name' in ret)
self.assertTrue('report_ref' in ret)
self.assertTrue('mds_ref' in ret)
pca_matrix_ref = ret.get('mds_ref')
pca_data = self.dfu.get_objects({"object_refs": [pca_matrix_ref]})['data'][0]['data']
expected_values = ['distance_matrix', 'mds_parameters', 'original_matrix_ref',
'rotation_matrix', 'site_ordination', 'species_ordination']
self.assertTrue(set(expected_values) <= set(pca_data.keys()))
expected_row_ids = ['WRI_RS00010_CDS_1', 'WRI_RS00015_CDS_1', 'WRI_RS00025_CDS_1',
'WRI_RS00030_CDS_1', 'WRI_RS00035_CDS_1']
expected_col_ids = ['instance_1', 'instance_2', 'instance_3', 'instance_4']
result_row_ids = [value[0] for value in pca_data.get('species_ordination').get('values')]
result_col_ids = [value[0] for value in pca_data.get('site_ordination').get('values')]
self.assertCountEqual(result_row_ids, expected_row_ids)
self.assertCountEqual(result_col_ids, expected_col_ids)
mds_dir = '/kb/module/work/tmp/mds_output'
expected_files = ['dist_matrix.csv', 'mds_script.R', 'others.json',
'plotly_fig.html', 'site_ordination.csv', 'species_ordination.csv',
'test_ExpressionMatrix.csv',
'usr_plt_name.ps']
self.assertTrue(set(expected_files) <= set(os.listdir(mds_dir)))
@patch.object(DataFileUtil, "file_to_shock", side_effect=mock_file_to_shock)
def test_run_metaMDS_ok_col_dimension(self, file_to_shock):
self.start_test()
self.loadExpressionMatrix()
# testing col dimension
params = {'workspace_name': self.wsName,
'input_obj_ref': self.expr_matrix_ref,
'n_components': 3,
'max_iter': 20,
'plot_script': 'plot(my_data.mds,type="t",display="sites")',
'plot_type': 'ps',
'plot_name': '',
'attribute_mapping_obj_ref': self.col_attributemapping_ref,
'scale_size_by': {'attribute_size': ["test_attribute_1"]},
'color_marker_by': {'attribute_color': ['test_attribute_2']},
'mds_matrix_name': 'output_mds_from_obj',
'dimension': 'col'}
ret = self.serviceImpl.run_metaMDS(self.ctx, params)[0]
self.assertTrue('report_name' in ret)
self.assertTrue('report_ref' in ret)
self.assertTrue('mds_ref' in ret)
pca_matrix_ref = ret.get('mds_ref')
pca_data = self.dfu.get_objects({"object_refs": [pca_matrix_ref]})['data'][0]['data']
expected_values = ['distance_matrix', 'mds_parameters', 'original_matrix_ref',
'rotation_matrix', 'site_ordination', 'species_ordination']
self.assertTrue(set(expected_values) <= set(pca_data.keys()))
expected_row_ids = ['WRI_RS00010_CDS_1', 'WRI_RS00015_CDS_1', 'WRI_RS00025_CDS_1',
'WRI_RS00030_CDS_1', 'WRI_RS00035_CDS_1']
expected_col_ids = ['instance_1', 'instance_2', 'instance_3', 'instance_4']
result_row_ids = [value[0] for value in pca_data.get('species_ordination').get('values')]
result_col_ids = [value[0] for value in pca_data.get('site_ordination').get('values')]
self.assertCountEqual(result_row_ids, expected_row_ids)
self.assertCountEqual(result_col_ids, expected_col_ids)
mds_dir = '/kb/module/work/tmp/mds_output'
expected_files = ['dist_matrix.csv', 'mds_script.R', 'others.json',
'plotly_fig.html', 'site_ordination.csv', 'species_ordination.csv',
'test_ExpressionMatrix.csv',
'usr_plt_name.ps']
self.assertTrue(set(expected_files) <= set(os.listdir(mds_dir)))
@patch.object(DataFileUtil, "file_to_shock", side_effect=mock_file_to_shock)
def test_run_metaMDS_ok_row_dimension(self, file_to_shock):
self.start_test()
self.loadExpressionMatrix()
# testing row dimension
params = {'workspace_name': self.wsName,
'input_obj_ref': self.expr_matrix_ref,
'n_components': 3,
'max_iter': 20,
'plot_script': 'plot(my_data.mds,type="t",display="sites")',
'plot_type': 'ps',
'plot_name': '',
'attribute_mapping_obj_ref': self.row_attributemapping_ref,
'scale_size_by': {'attribute_size': ["test_attribute_1"]},
'color_marker_by': {'attribute_color': ['test_attribute_2']},
'mds_matrix_name': 'output_mds_from_obj',
'dimension': 'row'}
ret = self.serviceImpl.run_metaMDS(self.ctx, params)[0]
self.assertTrue('report_name' in ret)
self.assertTrue('report_ref' in ret)
self.assertTrue('mds_ref' in ret)
pca_matrix_ref = ret.get('mds_ref')
pca_data = self.dfu.get_objects({"object_refs": [pca_matrix_ref]})['data'][0]['data']
expected_values = ['distance_matrix', 'mds_parameters', 'original_matrix_ref',
'rotation_matrix', 'site_ordination', 'species_ordination']
self.assertTrue(set(expected_values) <= set(pca_data.keys()))
expected_row_ids = ['instance_1', 'instance_2', 'instance_3', 'instance_4']
expected_col_ids = ['WRI_RS00010_CDS_1', 'WRI_RS00015_CDS_1', 'WRI_RS00025_CDS_1',
'WRI_RS00030_CDS_1', 'WRI_RS00035_CDS_1']
result_row_ids = [value[0] for value in pca_data.get('species_ordination').get('values')]
result_col_ids = [value[0] for value in pca_data.get('site_ordination').get('values')]
self.assertCountEqual(result_row_ids, expected_row_ids)
self.assertCountEqual(result_col_ids, expected_col_ids)
mds_dir = '/kb/module/work/tmp/mds_output'
expected_files = ['dist_matrix.csv', 'mds_script.R', 'others.json',
'plotly_fig.html', 'site_ordination.csv', 'species_ordination.csv',
'test_ExpressionMatrix.csv',
'usr_plt_name.ps']
self.assertTrue(set(expected_files) <= set(os.listdir(mds_dir)))
@patch.object(DataFileUtil, "file_to_shock", side_effect=mock_file_to_shock)
def test_run_metaMDS_with_linked_matrix_ok_only_color_by(self, file_to_shock):
self.start_test()
self.loadExpressionMatrix()
# testing only color_marker_by
params = {'workspace_name': self.wsName,
'input_obj_ref': self.expr_matrix_ref,
'n_components': 3,
'max_iter': 20,
'plot_script': 'plot(my_data.mds,type="t",display="sites")',
'plot_type': 'ps',
'plot_name': '',
'attribute_mapping_obj_ref': self.col_attributemapping_ref,
'scale_size_by': None,
'color_marker_by': {'attribute_color': ['test_attribute_2']},
'mds_matrix_name': 'output_mds_from_obj',
'dimension': 'col'}
ret = self.serviceImpl.run_metaMDS(self.ctx, params)[0]
self.assertTrue('report_name' in ret)
self.assertTrue('report_ref' in ret)
self.assertTrue('mds_ref' in ret)
pca_matrix_ref = ret.get('mds_ref')
pca_data = self.dfu.get_objects({"object_refs": [pca_matrix_ref]})['data'][0]['data']
expected_values = ['distance_matrix', 'mds_parameters', 'original_matrix_ref',
'rotation_matrix', 'site_ordination', 'species_ordination']
self.assertTrue(set(expected_values) <= set(pca_data.keys()))
expected_row_ids = ['WRI_RS00010_CDS_1', 'WRI_RS00015_CDS_1', 'WRI_RS00025_CDS_1',
'WRI_RS00030_CDS_1', 'WRI_RS00035_CDS_1']
expected_col_ids = ['instance_1', 'instance_2', 'instance_3', 'instance_4']
result_row_ids = [value[0] for value in pca_data.get('species_ordination').get('values')]
result_col_ids = [value[0] for value in pca_data.get('site_ordination').get('values')]
self.assertCountEqual(result_row_ids, expected_row_ids)
self.assertCountEqual(result_col_ids, expected_col_ids)
mds_dir = '/kb/module/work/tmp/mds_output'
expected_files = ['dist_matrix.csv', 'mds_script.R', 'others.json',
'plotly_fig.html', 'site_ordination.csv', 'species_ordination.csv',
'test_ExpressionMatrix.csv',
'usr_plt_name.ps']
self.assertTrue(set(expected_files) <= set(os.listdir(mds_dir)))
@patch.object(DataFileUtil, "file_to_shock", side_effect=mock_file_to_shock)
def test_run_metaMDS_ok_without_grouping(self, file_to_shock):
self.start_test()
self.loadExpressionMatrix()
# testing without grouping
params = {'workspace_name': self.wsName,
'input_obj_ref': self.expr_matrix_ref,
'n_components': 3,
'max_iter': 20,
'plot_script': 'plot(my_data.mds,type="t",display="sites")',
'plot_type': 'ps',
'plot_name': '',
'mds_matrix_name': 'output_mds_from_obj'}
ret = self.serviceImpl.run_metaMDS(self.ctx, params)[0]
self.assertTrue('report_name' in ret)
self.assertTrue('report_ref' in ret)
self.assertTrue('mds_ref' in ret)
pca_matrix_ref = ret.get('mds_ref')
pca_data = self.dfu.get_objects({"object_refs": [pca_matrix_ref]})['data'][0]['data']
expected_values = ['distance_matrix', 'mds_parameters', 'original_matrix_ref',
'rotation_matrix', 'site_ordination', 'species_ordination']
self.assertTrue(set(expected_values) <= set(pca_data.keys()))
expected_row_ids = ['WRI_RS00010_CDS_1', 'WRI_RS00015_CDS_1', 'WRI_RS00025_CDS_1',
'WRI_RS00030_CDS_1', 'WRI_RS00035_CDS_1']
expected_col_ids = ['instance_1', 'instance_2', 'instance_3', 'instance_4']
result_row_ids = [value[0] for value in pca_data.get('species_ordination').get('values')]
result_col_ids = [value[0] for value in pca_data.get('site_ordination').get('values')]
self.assertCountEqual(result_row_ids, expected_row_ids)
self.assertCountEqual(result_col_ids, expected_col_ids)
mds_dir = '/kb/module/work/tmp/mds_output'
expected_files = ['dist_matrix.csv', 'mds_script.R', 'others.json',
'plotly_fig.html', 'site_ordination.csv', 'species_ordination.csv',
'test_ExpressionMatrix.csv',
'usr_plt_name.ps']
self.assertTrue(set(expected_files) <= set(os.listdir(mds_dir)))
| 50.731152
| 98
| 0.561519
| 3,932
| 35,664
| 4.707528
| 0.076297
| 0.01772
| 0.023447
| 0.013614
| 0.824419
| 0.816802
| 0.808158
| 0.806591
| 0.805457
| 0.805457
| 0
| 0.034364
| 0.315416
| 35,664
| 702
| 99
| 50.803419
| 0.723776
| 0.016627
| 0
| 0.755319
| 0
| 0
| 0.290894
| 0.055086
| 0
| 0
| 0
| 0
| 0.115248
| 1
| 0.030142
| false
| 0
| 0.024823
| 0.001773
| 0.062057
| 0.017731
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d6706592b831e6c0c5181fd86f1fc01c8186dcab
| 47
|
py
|
Python
|
main.py
|
clitic/up-to-pypi
|
aa4ca670172402b022e442cc773c7f0f1da2a321
|
[
"MIT"
] | null | null | null |
main.py
|
clitic/up-to-pypi
|
aa4ca670172402b022e442cc773c7f0f1da2a321
|
[
"MIT"
] | null | null | null |
main.py
|
clitic/up-to-pypi
|
aa4ca670172402b022e442cc773c7f0f1da2a321
|
[
"MIT"
] | null | null | null |
import up_to_pypi.main
up_to_pypi.main.main()
| 11.75
| 22
| 0.808511
| 10
| 47
| 3.4
| 0.5
| 0.235294
| 0.470588
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085106
| 47
| 3
| 23
| 15.666667
| 0.790698
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 8
|
d6ce541318b6f35c0491e96ac7f0898c8d1a02c1
| 6,076
|
py
|
Python
|
playground/auto_sharding_solver/test_sharding_spec.py
|
yf225/alpa
|
a7b5f061537e260875c621a82e14265b1df64c5f
|
[
"Apache-2.0"
] | 114
|
2022-03-02T20:38:16.000Z
|
2022-03-31T20:41:50.000Z
|
playground/auto_sharding_solver/test_sharding_spec.py
|
yf225/alpa
|
a7b5f061537e260875c621a82e14265b1df64c5f
|
[
"Apache-2.0"
] | 6
|
2022-03-09T22:04:50.000Z
|
2022-03-30T17:53:15.000Z
|
playground/auto_sharding_solver/test_sharding_spec.py
|
yf225/alpa
|
a7b5f061537e260875c621a82e14265b1df64c5f
|
[
"Apache-2.0"
] | 5
|
2022-03-05T12:04:31.000Z
|
2022-03-31T03:55:42.000Z
|
from hlo import ShardingSpec, ShardingSpecType
from cluster_env import ClusterEnvironment
from common import compute_bytes
def test_tile():
cluster_env = ClusterEnvironment([[0, 1, 2], [3, 4, 5]], [1,1], [1,1], None)
sharding = ShardingSpec.tile((12, 12), [0, 1], [0, 1], cluster_env)
assert sharding.tile_assignment_dimensions == (2, 3)
assert sharding.tile_assignment_devices == (0, 1, 2, 3, 4, 5)
assert sharding.replicate_on_last_tile_dim == False
sharding = ShardingSpec.tile((12, 12), [1, 0], [1, 0], cluster_env)
assert sharding.tile_assignment_dimensions == (2, 3)
assert sharding.tile_assignment_devices == (0, 1, 2, 3, 4, 5)
assert sharding.replicate_on_last_tile_dim == False
sharding = ShardingSpec.tile((12, 12), [0, 1], [1, 0], cluster_env)
assert sharding.tile_assignment_dimensions == (3, 2)
assert sharding.tile_assignment_devices == (0, 3, 1, 4, 2, 5)
assert sharding.replicate_on_last_tile_dim == False
sharding = ShardingSpec.tile((12, 12), [0], [0], cluster_env)
assert sharding.tile_assignment_dimensions == (2, 1, 3)
assert sharding.tile_assignment_devices == (0, 1, 2, 3, 4, 5)
assert sharding.replicate_on_last_tile_dim == True
sharding = ShardingSpec.tile((12, 12), [0], [1], cluster_env)
assert sharding.tile_assignment_dimensions == (3, 1, 2)
assert sharding.tile_assignment_devices == (0, 3, 1, 4, 2, 5)
assert sharding.replicate_on_last_tile_dim == True
sharding = ShardingSpec.tile((12, 12), [1], [1], cluster_env)
assert sharding.tile_assignment_dimensions == (1, 3, 2)
assert sharding.tile_assignment_devices == (0, 3, 1, 4, 2, 5)
assert sharding.replicate_on_last_tile_dim == True
sharding = ShardingSpec.tile((12, 12), [1], [0], cluster_env)
assert sharding.tile_assignment_dimensions == (1, 2, 3)
assert sharding.tile_assignment_devices == (0, 1, 2, 3, 4, 5)
assert sharding.replicate_on_last_tile_dim == True
sharding = ShardingSpec.tile((12, 12, 12), [0, 1], [0, 1], cluster_env)
assert sharding.tile_assignment_dimensions == (2, 3, 1)
assert sharding.tile_assignment_devices == (0, 1, 2, 3, 4, 5)
assert sharding.replicate_on_last_tile_dim == False
sharding = ShardingSpec.tile((12, 12, 12), [0, 1], [1, 0], cluster_env)
assert sharding.tile_assignment_dimensions == (3, 2, 1)
assert sharding.tile_assignment_devices == (0, 3, 1, 4, 2, 5)
assert sharding.replicate_on_last_tile_dim == False
sharding = ShardingSpec.tile((12, 12, 12), [1], [0], cluster_env)
assert sharding.tile_assignment_dimensions == (1, 2, 1, 3)
assert sharding.tile_assignment_devices == (0, 1, 2, 3, 4, 5)
assert sharding.replicate_on_last_tile_dim == True
def test_tile2():
cluster_env = ClusterEnvironment([[0, 1, 2, 3]], [1,1], [1,1], None)
sharding = ShardingSpec.tile((12, 12), [1], [1], cluster_env)
assert sharding.tile_assignment_dimensions == (1, 4)
assert sharding.tile_assignment_devices == (0, 1, 2, 3)
assert sharding.replicate_on_last_tile_dim == False
sharding = ShardingSpec.tile((12, 12), [1], [0], cluster_env)
assert sharding.type == ShardingSpecType.REPLICATED
cluster_env = ClusterEnvironment([[0], [1], [2], [3]], [1,1], [1,1], None)
sharding = ShardingSpec.tile((12, 12), [1], [0], cluster_env)
assert sharding.tile_assignment_dimensions == (1, 4)
assert sharding.tile_assignment_devices == (0, 1, 2, 3)
assert sharding.replicate_on_last_tile_dim == False
sharding = ShardingSpec.tile((12, 12), [1], [1], cluster_env)
assert sharding.type == ShardingSpecType.REPLICATED
def test_tile3():
cluster_env = ClusterEnvironment([[0, 1], [2, 3]], [1,1], [1,1], None)
shape = (12, 12)
src = ShardingSpec.split(shape, 1, cluster_env)
dst = ShardingSpec.tile(shape, [0], [0], cluster_env)
print(src)
print(dst)
cost = cluster_env.resharding_cost(shape, src, dst)
print(cost)
def assert_allclose(x, y):
assert abs((x - y) / (y + 1e-8)) < 0.01
def test_resharding_cost():
cluster_env = ClusterEnvironment([[0, 1, 2], [3, 4, 5]], [1, 1], [1, 1], None)
shape = (128, 128)
src = ShardingSpec.tile(shape, [0], [0], cluster_env)
dst = ShardingSpec.tile(shape, [0], [0], cluster_env)
cost = cluster_env.resharding_cost(shape, src, dst)
assert_allclose(cost, 0)
src = ShardingSpec.tile(shape, [0, 1], [0, 1], cluster_env)
dst = ShardingSpec.tile(shape, [1, 0], [1, 0], cluster_env)
cost = cluster_env.resharding_cost(shape, src, dst)
assert_allclose(cost, 0)
src = ShardingSpec.tile(shape, [0], [0], cluster_env)
dst = ShardingSpec.tile(shape, [0, 1], [0, 1], cluster_env)
cost = cluster_env.resharding_cost(shape, src, dst)
assert_allclose(cost, 0)
src = ShardingSpec.tile(shape, [0], [0], cluster_env)
dst = ShardingSpec.tile(shape, [0, 1], [0, 1], cluster_env)
cost = cluster_env.resharding_cost(shape, src, dst)
assert_allclose(cost, 0)
src = ShardingSpec.tile(shape, [0, 1], [0, 1], cluster_env)
dst = ShardingSpec.tile(shape, [0], [0], cluster_env)
cost = cluster_env.resharding_cost(shape, src, dst)
assert_allclose(cost, cluster_env.all_gather_cost(compute_bytes(shape), 1))
src = ShardingSpec.tile(shape, [0, 1], [0, 1], cluster_env)
dst = ShardingSpec.replicated(cluster_env)
cost = cluster_env.resharding_cost(shape, src, dst)
assert_allclose(cost, cluster_env.all_gather_cost(compute_bytes(shape), 0)
+ cluster_env.all_gather_cost(compute_bytes(shape), 1))
def test_resharding_cost2():
cluster_env = ClusterEnvironment([[0], [1], [2], [3]], [1,1], [1,1], None)
shape = (128, 128)
src = ShardingSpec.tile(shape, [0, 1], [0, 1], cluster_env)
dst = ShardingSpec.tile(shape, [0], [0], cluster_env)
cost = cluster_env.resharding_cost(shape, src, dst)
assert_allclose(cost, 0)
if __name__ == "__main__":
test_tile()
test_tile2()
#test_tile3()
test_resharding_cost()
test_resharding_cost2()
| 40.506667
| 82
| 0.669684
| 872
| 6,076
| 4.446101
| 0.066514
| 0.123807
| 0.111426
| 0.17333
| 0.906887
| 0.906887
| 0.906113
| 0.890121
| 0.879804
| 0.84292
| 0
| 0.066185
| 0.179394
| 6,076
| 149
| 83
| 40.778523
| 0.711392
| 0.001975
| 0
| 0.612613
| 0
| 0
| 0.00132
| 0
| 0
| 0
| 0
| 0
| 0.423423
| 1
| 0.054054
| false
| 0
| 0.027027
| 0
| 0.081081
| 0.027027
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
d6e224baeb75379e0e3ead46621525e47d381277
| 1,906
|
py
|
Python
|
src/morion/model_decorators.py
|
UofG-CSP3/morion
|
4d013b80ab0edc1154bae18dc00c8a8d3d6c7950
|
[
"MIT"
] | null | null | null |
src/morion/model_decorators.py
|
UofG-CSP3/morion
|
4d013b80ab0edc1154bae18dc00c8a8d3d6c7950
|
[
"MIT"
] | null | null | null |
src/morion/model_decorators.py
|
UofG-CSP3/morion
|
4d013b80ab0edc1154bae18dc00c8a8d3d6c7950
|
[
"MIT"
] | null | null | null |
"""
This module contains decorators that can be used in model implementation to relate them to each other.
For example, getting dies from a wafer.
"""
from functools import wraps
from typing import Callable, Type
from .mongomodel import MongoModel
def forward_link_one(model_get: Callable[[], Type[MongoModel]]):
"""
Links to a single instance of another model type that is defined in the code after this model
:param model_get: Method that returns the model name of the model that is not yet defined
:return: Decorator that links to a single instance of another model type
"""
def decorator(func: Callable[[MongoModel], dict]):
@wraps(func)
def wrap(self):
return model_get().find_one(query=func(self))
return wrap
return decorator
def link_one(model: Type[MongoModel]):
"""
Links to a single instance of another model type
:param model: The model type to link to
:return: Decorator that links to a single instance of another model type
"""
return forward_link_one(lambda: model)
def forward_link_many(model_get: Callable[[], Type[MongoModel]]):
"""
Links to multiple instances of another model type that is defined in the code after this model
:param model_get: Method that returns the model name of the model that is not yet defined
:return: Decorator that links to multiple instances of another model type
"""
def decorator(func: Callable[[MongoModel], dict]):
@wraps(func)
def wrap(self):
return model_get().find(query=func(self))
return wrap
return decorator
def link_many(model: Type[MongoModel]):
"""
Links to multiple instances of another model type
:param model: The model type to link to
:return: Decorator that links to multiple instances of another model type
"""
return forward_link_many(lambda: model)
| 32.305085
| 102
| 0.703568
| 272
| 1,906
| 4.867647
| 0.231618
| 0.081571
| 0.084592
| 0.108761
| 0.794562
| 0.787009
| 0.787009
| 0.73716
| 0.73716
| 0.669184
| 0
| 0
| 0.224554
| 1,906
| 58
| 103
| 32.862069
| 0.895805
| 0.516264
| 0
| 0.47619
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.380952
| false
| 0
| 0.142857
| 0.095238
| 0.904762
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
ba73b743394169c330e45fce1b4e5ff6264f8b71
| 33
|
py
|
Python
|
tools/third_party/importlib_metadata/prepare/example/example/__init__.py
|
meyerweb/wpt
|
f04261533819893c71289614c03434c06856c13e
|
[
"BSD-3-Clause"
] | 2,479
|
2018-05-28T14:51:29.000Z
|
2022-03-30T14:41:18.000Z
|
tools/third_party/importlib_metadata/prepare/example/example/__init__.py
|
meyerweb/wpt
|
f04261533819893c71289614c03434c06856c13e
|
[
"BSD-3-Clause"
] | 7,642
|
2018-05-28T09:38:03.000Z
|
2022-03-31T20:55:48.000Z
|
tools/third_party/importlib_metadata/prepare/example/example/__init__.py
|
meyerweb/wpt
|
f04261533819893c71289614c03434c06856c13e
|
[
"BSD-3-Clause"
] | 1,303
|
2018-05-29T14:50:02.000Z
|
2022-03-30T17:30:42.000Z
|
def main():
return 'example'
| 11
| 20
| 0.606061
| 4
| 33
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.242424
| 33
| 2
| 21
| 16.5
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0.212121
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
bac203797720f8182f74be38446757d3fb8d706e
| 4,345
|
py
|
Python
|
source/keeper/storage/streams.py
|
rob-smallshire/keeper
|
560427b2b7d8df6b0fcc24f52380fc0d50ffef19
|
[
"MIT"
] | 1
|
2021-02-25T21:16:50.000Z
|
2021-02-25T21:16:50.000Z
|
source/keeper/storage/streams.py
|
rob-smallshire/keeper
|
560427b2b7d8df6b0fcc24f52380fc0d50ffef19
|
[
"MIT"
] | 1
|
2020-11-04T12:32:07.000Z
|
2020-11-05T11:15:15.000Z
|
source/keeper/storage/streams.py
|
rob-smallshire/keeper
|
560427b2b7d8df6b0fcc24f52380fc0d50ffef19
|
[
"MIT"
] | 1
|
2020-11-11T13:29:37.000Z
|
2020-11-11T13:29:37.000Z
|
import io
class WriteOnlyStream:
"""A write-only wrapper around a stream.
Closing this stream does not close the underlying stream.
"""
def __init__(self, raw, name=None):
self._raw = raw
self._name = name
def close(self):
self._raw = None
def __enter__(self):
return self
def __exit__(self, exc_type, exc_val, exc_tb):
self.close()
@property
def _f(self):
if self.closed:
raise ValueError("I/O operation on closed file.")
return self._raw
@property
def closed(self):
return self._raw is None
def fileno(self):
raise io.UnsupportedOperation(f"{type(self).__name__} has no fileno")
def flush(self):
return self._f.flush()
def isatty(self):
return self._f.isatty()
@property
def mode(self):
return "wb"
def readable(self):
return False
def read(self, n=None):
raise io.UnsupportedOperation(f"{type(self).__name__} is not readable")
def readall(self):
raise io.UnsupportedOperation(f"{type(self).__name__} is not readable")
def readinto(self, b):
raise io.UnsupportedOperation(f"{type(self).__name__} is not readable")
def readline(self, size: int = -1):
raise io.UnsupportedOperation(f"{type(self).__name__} is not readable")
def readlines(self, hint: int = -1):
raise io.UnsupportedOperation(f"{type(self).__name__} is not readable")
def seek(self, offset, whence=io.SEEK_SET):
raise io.UnsupportedOperation(f"{type(self).__name__} is not seekable")
def tell(self):
return self._f.tell()
def truncate(self, size=None):
raise io.UnsupportedOperation(f"{type(self).__name__} is not truncatable")
def writable(self) -> bool:
return True
def write(self, b) -> int:
return self._f.write(b)
def writelines(self, lines):
return self._f.writelines(lines)
def __del__(self):
return self.close()
@property
def name(self):
if self._name is not None:
return self._name
try:
return self._raw.name
except AttributeError:
return self._name
class ReadOnlyStream:
"""A write-only wrapper around a stream.
Closing this stream does not close the underlying stream.
"""
def __init__(self, raw, name=None):
self._raw = raw
self._name = name
def __enter__(self):
return self
def __exit__(self, exc_type, exc_val, exc_tb):
self.close()
def close(self):
self._raw = None
@property
def _f(self):
if self.closed:
raise ValueError("I/O operation on closed file.")
return self._raw
@property
def closed(self):
return self._raw is None
def fileno(self):
raise io.UnsupportedOperation(f"{type(self).__name__} has no fileno")
def flush(self):
return self._f.flush()
def isatty(self):
return self._f.isatty()
@property
def mode(self):
return "rb"
def readable(self):
return True
def read(self, n=None):
return self._f.read(n)
def readall(self):
return self._f.readall()
def readinto(self, b):
return self._f.readinto(b)
def readline(self, size: int = -1):
return self._f.readline(size)
def readlines(self, hint: int = -1):
return self._f.readlines(hint)
def seek(self, offset, whence=io.SEEK_SET):
raise io.UnsupportedOperation(f"{type(self).__name__} is not seekable")
def tell(self):
return self._f.tell()
def truncate(self, size=None):
raise io.UnsupportedOperation(f"{type(self).__name__} is not truncatable")
def writable(self) -> bool:
return True
def write(self, b) -> int:
raise io.UnsupportedOperation(f"{type(self).__name__} is not writable")
def writelines(self, lines):
raise io.UnsupportedOperation(f"{type(self).__name__} is not writable")
def __del__(self):
return self.close()
@property
def name(self):
if self._name is not None:
return self._name
try:
return self._raw.name
except AttributeError:
return self._name
| 23.61413
| 82
| 0.608976
| 556
| 4,345
| 4.534173
| 0.147482
| 0.1071
| 0.072194
| 0.144387
| 0.87505
| 0.855216
| 0.806426
| 0.806426
| 0.804839
| 0.804839
| 0
| 0.001281
| 0.281473
| 4,345
| 184
| 83
| 23.61413
| 0.806214
| 0.044419
| 0
| 0.894309
| 0
| 0
| 0.132153
| 0.066198
| 0
| 0
| 0
| 0
| 0
| 1
| 0.390244
| false
| 0
| 0.00813
| 0.203252
| 0.682927
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 9
|
79eefc760f8945ba2885412298af6a091be247cb
| 3,717
|
py
|
Python
|
python/misc/frequencies_map/frequencies_map_test.py
|
TGITS/programming-workouts
|
799e805ccf3fd0936ec8ac2417f7193b8e9bcb55
|
[
"MIT"
] | null | null | null |
python/misc/frequencies_map/frequencies_map_test.py
|
TGITS/programming-workouts
|
799e805ccf3fd0936ec8ac2417f7193b8e9bcb55
|
[
"MIT"
] | 16
|
2020-05-30T12:38:13.000Z
|
2022-02-19T09:23:31.000Z
|
python/misc/frequencies_map/frequencies_map_test.py
|
TGITS/programming-workouts
|
799e805ccf3fd0936ec8ac2417f7193b8e9bcb55
|
[
"MIT"
] | null | null | null |
import unittest
from frequencies_map import frequencies_map_with_comprehension_from, frequencies_map_with_for_from, frequencies_map_with_map_from, frequencies_map_with_counter_from
class FrequenciesMapWithForTest(unittest.TestCase):
def test_empty_list(self):
self.assertEqual(frequencies_map_with_for_from([]), {})
def test_single_element_list(self):
self.assertEqual(frequencies_map_with_for_from(["a"]), {"a": 1})
def test_several_identical_elements_list(self):
self.assertEqual(frequencies_map_with_for_from(
["a", "a", "a"]), {"a": 3})
def test_several_different_elements_list_sorted(self):
self.assertEqual(frequencies_map_with_for_from(
["a", "a", "a", "b", "b", "c", "d", "d", "d", "d"]), {"a": 3, "b": 2, "c": 1, "d": 4})
def test_several_different_elements_list_unsorted(self):
self.assertEqual(frequencies_map_with_for_from(
["a", "b", "c", "a", "d", "a", "d", "b", "d", "d"]), {"a": 3, "b": 2, "c": 1, "d": 4})
class FrequenciesMapWithMapTest(unittest.TestCase):
def test_empty_list(self):
self.assertEqual(frequencies_map_with_map_from([]), {})
def test_single_element_list(self):
self.assertEqual(frequencies_map_with_map_from(["a"]), {"a": 1})
def test_several_identical_elements_list(self):
self.assertEqual(frequencies_map_with_map_from(
["a", "a", "a"]), {"a": 3})
def test_several_different_elements_list_sorted(self):
self.assertEqual(frequencies_map_with_map_from(
["a", "a", "a", "b", "b", "c", "d", "d", "d", "d"]), {"a": 3, "b": 2, "c": 1, "d": 4})
def test_several_different_elements_list_unsorted(self):
self.assertEqual(frequencies_map_with_map_from(
["a", "b", "c", "a", "d", "a", "d", "b", "d", "d"]), {"a": 3, "b": 2, "c": 1, "d": 4})
class FrequenciesMapWithComprehensionTest(unittest.TestCase):
def test_empty_list(self):
self.assertEqual(frequencies_map_with_comprehension_from([]), {})
def test_single_element_list(self):
self.assertEqual(
frequencies_map_with_comprehension_from(["a"]), {"a": 1})
def test_several_identical_elements_list(self):
self.assertEqual(frequencies_map_with_comprehension_from(
["a", "a", "a"]), {"a": 3})
def test_several_different_elements_list_sorted(self):
self.assertEqual(frequencies_map_with_comprehension_from(
["a", "a", "a", "b", "b", "c", "d", "d", "d", "d"]), {"a": 3, "b": 2, "c": 1, "d": 4})
def test_several_different_elements_list_unsorted(self):
self.assertEqual(frequencies_map_with_comprehension_from(
["a", "b", "c", "a", "d", "a", "d", "b", "d", "d"]), {"a": 3, "b": 2, "c": 1, "d": 4})
class FrequenciesMapWithCounterTest(unittest.TestCase):
def test_empty_list(self):
self.assertEqual(frequencies_map_with_counter_from([]), {})
def test_single_element_list(self):
self.assertEqual(
frequencies_map_with_counter_from(["a"]), {"a": 1})
def test_several_identical_elements_list(self):
self.assertEqual(frequencies_map_with_counter_from(
["a", "a", "a"]), {"a": 3})
def test_several_different_elements_list_sorted(self):
self.assertEqual(frequencies_map_with_counter_from(
["a", "a", "a", "b", "b", "c", "d", "d", "d", "d"]), {"a": 3, "b": 2, "c": 1, "d": 4})
def test_several_different_elements_list_unsorted(self):
self.assertEqual(frequencies_map_with_counter_from(
["a", "b", "c", "a", "d", "a", "d", "b", "d", "d"]), {"a": 3, "b": 2, "c": 1, "d": 4})
if __name__ == "__main__":
unittest.main()
| 41.3
| 164
| 0.622814
| 499
| 3,717
| 4.276553
| 0.08016
| 0.164011
| 0.202437
| 0.281162
| 0.91612
| 0.862699
| 0.862699
| 0.862699
| 0.862699
| 0.838332
| 0
| 0.013254
| 0.188055
| 3,717
| 89
| 165
| 41.764045
| 0.693837
| 0
| 0
| 0.741935
| 0
| 0
| 0.038741
| 0
| 0
| 0
| 0
| 0
| 0.322581
| 1
| 0.322581
| false
| 0
| 0.032258
| 0
| 0.419355
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
03107adc71743725424b2361e5a9dcd1060c0b19
| 821
|
py
|
Python
|
Pyton_Codes/Python Data Structures/3.Lists/ex_9.4.py
|
Bombjack88/Python-for-Everybody--PY4E-
|
0dee57e015ed0c773bdb11e841ed4b2b639b5eca
|
[
"MIT"
] | null | null | null |
Pyton_Codes/Python Data Structures/3.Lists/ex_9.4.py
|
Bombjack88/Python-for-Everybody--PY4E-
|
0dee57e015ed0c773bdb11e841ed4b2b639b5eca
|
[
"MIT"
] | null | null | null |
Pyton_Codes/Python Data Structures/3.Lists/ex_9.4.py
|
Bombjack88/Python-for-Everybody--PY4E-
|
0dee57e015ed0c773bdb11e841ed4b2b639b5eca
|
[
"MIT"
] | null | null | null |
name = input("Enter file:")
if len(name) < 1:
name = "mbox-short.txt"
handle = open(name)
hist=dict()
for line in handle:
if line.startswith('From:'):
words=line.split()
if words[1] not in hist:
hist[words[1]]=1
else:
hist[words[1]]=hist[words[1]]+1
#print(hist)
nome=conta=None
for a,b in hist.items():
if conta==None or b>conta:
nome=a
conta=b
print(nome,conta)
# Alternativa
name = input("Enter file:")
if len(name) < 1:
name = "mbox-short.txt"
handle = open(name)
hist=dict()
for line in handle:
if line.startswith('From:'):
words=line.split()
hist[words[1]]=hist.get(words[1],0)+1
#print(hist)
nome=conta=None
for a,b in hist.items():
if conta==None or b>conta:
nome=a
conta=b
print(nome,conta)
| 21.605263
| 45
| 0.588307
| 132
| 821
| 3.659091
| 0.257576
| 0.074534
| 0.082816
| 0.074534
| 0.819876
| 0.819876
| 0.819876
| 0.819876
| 0.819876
| 0.819876
| 0
| 0.019386
| 0.246041
| 821
| 38
| 46
| 21.605263
| 0.760905
| 0.041413
| 0
| 0.848485
| 0
| 0
| 0.076433
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.060606
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
034b5a11a5878a75f302c173807ce0e05e487714
| 23,482
|
py
|
Python
|
fhir/resources/STU3/tests/test_contract.py
|
mmabey/fhir.resources
|
cc73718e9762c04726cd7de240c8f2dd5313cbe1
|
[
"BSD-3-Clause"
] | null | null | null |
fhir/resources/STU3/tests/test_contract.py
|
mmabey/fhir.resources
|
cc73718e9762c04726cd7de240c8f2dd5313cbe1
|
[
"BSD-3-Clause"
] | null | null | null |
fhir/resources/STU3/tests/test_contract.py
|
mmabey/fhir.resources
|
cc73718e9762c04726cd7de240c8f2dd5313cbe1
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/Contract
Release: STU3
Version: 3.0.2
Revision: 11917
Last updated: 2019-10-24T11:53:00+11:00
"""
import io
import json
import os
import unittest
import pytest
from .. import contract
from ..fhirdate import FHIRDate
from .fixtures import force_bytes
@pytest.mark.usefixtures("base_settings")
class ContractTests(unittest.TestCase):
def instantiate_from(self, filename):
datadir = os.environ.get("FHIR_UNITTEST_DATADIR") or ""
with io.open(os.path.join(datadir, filename), "r", encoding="utf-8") as handle:
js = json.load(handle)
self.assertEqual("Contract", js["resourceType"])
return contract.Contract(js)
def testContract1(self):
inst = self.instantiate_from("pcd-example-notOrg.json")
self.assertIsNotNone(inst, "Must have instantiated a Contract instance")
self.implContract1(inst)
js = inst.as_json()
self.assertEqual("Contract", js["resourceType"])
inst2 = contract.Contract(js)
self.implContract1(inst2)
def implContract1(self, inst):
self.assertEqual(
force_bytes(inst.friendly[0].contentAttachment.title),
force_bytes("The terms of the consent in friendly consumer speak."),
)
self.assertEqual(force_bytes(inst.id), force_bytes("pcd-example-notOrg"))
self.assertEqual(inst.issued.date, FHIRDate("2015-11-18").date)
self.assertEqual(inst.issued.as_json(), "2015-11-18")
self.assertEqual(
force_bytes(inst.legal[0].contentAttachment.title),
force_bytes("The terms of the consent in lawyer speak."),
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].code), force_bytes("Opt-In")
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].display),
force_bytes("Default Authorization with exceptions."),
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].system),
force_bytes("http://www.infoway-inforoute.ca.org/Consent-subtype-codes"),
)
self.assertEqual(
force_bytes(inst.term[0].text),
force_bytes(
"Withhold this order and any results or related objects from any provider."
),
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].code), force_bytes("withhold-from")
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].display),
force_bytes("Withhold all data from specified actor entity."),
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].system),
force_bytes("http://example.org/fhir/consent-term-type-codes"),
)
self.assertEqual(force_bytes(inst.text.status), force_bytes("generated"))
self.assertEqual(force_bytes(inst.type.coding[0].code), force_bytes("57016-8"))
self.assertEqual(
force_bytes(inst.type.coding[0].system), force_bytes("http://loinc.org")
)
def testContract2(self):
inst = self.instantiate_from("contract-example-42cfr-part2.json")
self.assertIsNotNone(inst, "Must have instantiated a Contract instance")
self.implContract2(inst)
js = inst.as_json()
self.assertEqual("Contract", js["resourceType"])
inst2 = contract.Contract(js)
self.implContract2(inst2)
def implContract2(self, inst):
self.assertEqual(
force_bytes(inst.agent[0].role[0].coding[0].code), force_bytes("IR")
)
self.assertEqual(
force_bytes(inst.agent[0].role[0].coding[0].display),
force_bytes("Recipient"),
)
self.assertEqual(
force_bytes(inst.agent[0].role[0].coding[0].system),
force_bytes("http://org.mdhhs.fhir.consent-actor-type"),
)
self.assertEqual(
force_bytes(inst.agent[0].role[0].text),
force_bytes("Recipient of restricted health information"),
)
self.assertEqual(
force_bytes(inst.agent[1].role[0].coding[0].code), force_bytes("IS")
)
self.assertEqual(
force_bytes(inst.agent[1].role[0].coding[0].display), force_bytes("Sender")
)
self.assertEqual(
force_bytes(inst.agent[1].role[0].coding[0].system),
force_bytes("http://org.mdhhs.fhir.consent-actor-type"),
)
self.assertEqual(
force_bytes(inst.agent[1].role[0].text),
force_bytes("Sender of restricted health information"),
)
self.assertEqual(force_bytes(inst.id), force_bytes("C-2121"))
self.assertEqual(inst.issued.date, FHIRDate("2031-11-01T21:18:27-04:00").date)
self.assertEqual(inst.issued.as_json(), "2031-11-01T21:18:27-04:00")
self.assertEqual(
force_bytes(inst.legal[0].contentAttachment.contentType),
force_bytes("application/pdf"),
)
self.assertEqual(
force_bytes(inst.legal[0].contentAttachment.language), force_bytes("en-US")
)
self.assertEqual(
force_bytes(inst.legal[0].contentAttachment.title),
force_bytes("MDHHS-5515 Consent To Share Your Health Information"),
)
self.assertEqual(
force_bytes(inst.legal[0].contentAttachment.url),
force_bytes("http://org.mihin.ecms/ConsentDirective-2121"),
)
self.assertEqual(
inst.meta.lastUpdated.date, FHIRDate("2016-07-19T18:18:42.108-04:00").date
)
self.assertEqual(
inst.meta.lastUpdated.as_json(), "2016-07-19T18:18:42.108-04:00"
)
self.assertEqual(force_bytes(inst.meta.versionId), force_bytes("1"))
self.assertEqual(force_bytes(inst.securityLabel[0].code), force_bytes("R"))
self.assertEqual(
force_bytes(inst.securityLabel[0].display), force_bytes("Restricted")
)
self.assertEqual(
force_bytes(inst.securityLabel[0].system),
force_bytes("http://hl7.org/fhir/v3/Confidentiality"),
)
self.assertEqual(force_bytes(inst.securityLabel[1].code), force_bytes("ETH"))
self.assertEqual(
force_bytes(inst.securityLabel[1].display),
force_bytes("substance abuse information sensitivity"),
)
self.assertEqual(
force_bytes(inst.securityLabel[1].system),
force_bytes("http://hl7.org/fhir/v3/ActCode"),
)
self.assertEqual(
force_bytes(inst.securityLabel[2].code), force_bytes("42CFRPart2")
)
self.assertEqual(
force_bytes(inst.securityLabel[2].system),
force_bytes("http://hl7.org/fhir/v3/ActCode"),
)
self.assertEqual(force_bytes(inst.securityLabel[3].code), force_bytes("TREAT"))
self.assertEqual(
force_bytes(inst.securityLabel[3].display), force_bytes("treatment")
)
self.assertEqual(
force_bytes(inst.securityLabel[3].system),
force_bytes("http://hl7.org/fhir/v3/ActReason"),
)
self.assertEqual(force_bytes(inst.securityLabel[4].code), force_bytes("HPAYMT"))
self.assertEqual(
force_bytes(inst.securityLabel[4].display),
force_bytes("healthcare payment"),
)
self.assertEqual(
force_bytes(inst.securityLabel[4].system),
force_bytes("http://hl7.org/fhir/v3/ActReason"),
)
self.assertEqual(
force_bytes(inst.securityLabel[5].code), force_bytes("HOPERAT")
)
self.assertEqual(
force_bytes(inst.securityLabel[5].display),
force_bytes("healthcare operations"),
)
self.assertEqual(
force_bytes(inst.securityLabel[5].system),
force_bytes("http://hl7.org/fhir/v3/ActReason"),
)
self.assertEqual(
force_bytes(inst.securityLabel[6].code), force_bytes("PERSISTLABEL")
)
self.assertEqual(
force_bytes(inst.securityLabel[6].display),
force_bytes("persist security label"),
)
self.assertEqual(
force_bytes(inst.securityLabel[6].system),
force_bytes("http://hl7.org/fhir/v3/ActCode"),
)
self.assertEqual(
force_bytes(inst.securityLabel[7].code), force_bytes("PRIVMARK")
)
self.assertEqual(
force_bytes(inst.securityLabel[7].display), force_bytes("privacy mark")
)
self.assertEqual(
force_bytes(inst.securityLabel[7].system),
force_bytes("http://hl7.org/fhir/v3/ActCode"),
)
self.assertEqual(
force_bytes(inst.securityLabel[8].code), force_bytes("NORDSCLCD")
)
self.assertEqual(
force_bytes(inst.securityLabel[8].display),
force_bytes("no redisclosure without consent directive"),
)
self.assertEqual(
force_bytes(inst.securityLabel[8].system),
force_bytes("http://hl7.org/fhir/v3/ActCode"),
)
self.assertEqual(
force_bytes(inst.signer[0].signature[0].type[0].code),
force_bytes("1.2.840.10065.1.12.1.1"),
)
self.assertEqual(
force_bytes(inst.signer[0].signature[0].type[0].system),
force_bytes("urn:iso-astm:E1762-95:2013"),
)
self.assertEqual(
inst.signer[0].signature[0].when.date,
FHIRDate("2017-02-08T10:57:34+01:00").date,
)
self.assertEqual(
inst.signer[0].signature[0].when.as_json(), "2017-02-08T10:57:34+01:00"
)
self.assertEqual(force_bytes(inst.signer[0].type.code), force_bytes("SELF"))
self.assertEqual(
force_bytes(inst.signer[0].type.system),
force_bytes("http://org.mdhhs.fhir.consent-signer-type"),
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].code), force_bytes("MDHHS-5515")
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].display),
force_bytes(
"Michigan MDHHS-5515 Consent to Share Behavioral Health Information for Care Coordination Purposes"
),
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].system),
force_bytes("http://hl7.org/fhir/consentcategorycodes"),
)
self.assertEqual(force_bytes(inst.text.status), force_bytes("generated"))
self.assertEqual(force_bytes(inst.type.coding[0].code), force_bytes("OPTIN"))
self.assertEqual(
force_bytes(inst.type.coding[0].system),
force_bytes("http://org.mdhhs.fhir.consentdirective-type"),
)
self.assertEqual(
force_bytes(inst.type.text), force_bytes("Opt-in consent directive")
)
def testContract3(self):
inst = self.instantiate_from("pcd-example-notLabs.json")
self.assertIsNotNone(inst, "Must have instantiated a Contract instance")
self.implContract3(inst)
js = inst.as_json()
self.assertEqual("Contract", js["resourceType"])
inst2 = contract.Contract(js)
self.implContract3(inst2)
def implContract3(self, inst):
self.assertEqual(
force_bytes(inst.friendly[0].contentAttachment.title),
force_bytes("The terms of the consent in friendly consumer speak."),
)
self.assertEqual(force_bytes(inst.id), force_bytes("pcd-example-notLabs"))
self.assertEqual(inst.issued.date, FHIRDate("2014-08-17").date)
self.assertEqual(inst.issued.as_json(), "2014-08-17")
self.assertEqual(
force_bytes(inst.legal[0].contentAttachment.title),
force_bytes("The terms of the consent in lawyer speak."),
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].code), force_bytes("Opt-In")
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].display),
force_bytes("Default Authorization with exceptions."),
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].system),
force_bytes("http://www.infoway-inforoute.ca.org/Consent-subtype-codes"),
)
self.assertEqual(
force_bytes(inst.term[0].subType.coding[0].code),
force_bytes("ProcedureRequest"),
)
self.assertEqual(
force_bytes(inst.term[0].subType.coding[0].system),
force_bytes("http://hl7.org/fhir/resource-types"),
)
self.assertEqual(
force_bytes(inst.term[0].text),
force_bytes("Withhold orders from any provider."),
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].code),
force_bytes("withhold-object-type"),
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].system),
force_bytes("http://example.org/fhir/consent-term-type-codes"),
)
self.assertEqual(
force_bytes(inst.term[1].subType.coding[0].code),
force_bytes("DiagnosticReport"),
)
self.assertEqual(
force_bytes(inst.term[1].subType.coding[0].system),
force_bytes("http://hl7.org/fhir/resource-types"),
)
self.assertEqual(
force_bytes(inst.term[1].text),
force_bytes("Withhold order results from any provider."),
)
self.assertEqual(
force_bytes(inst.term[1].type.coding[0].code),
force_bytes("withhold-object-type"),
)
self.assertEqual(
force_bytes(inst.term[1].type.coding[0].system),
force_bytes("http://example.org/fhir/consent-term-type-codes"),
)
self.assertEqual(force_bytes(inst.text.status), force_bytes("generated"))
self.assertEqual(force_bytes(inst.type.coding[0].code), force_bytes("57016-8"))
self.assertEqual(
force_bytes(inst.type.coding[0].system), force_bytes("http://loinc.org")
)
def testContract4(self):
inst = self.instantiate_from("pcd-example-notThem.json")
self.assertIsNotNone(inst, "Must have instantiated a Contract instance")
self.implContract4(inst)
js = inst.as_json()
self.assertEqual("Contract", js["resourceType"])
inst2 = contract.Contract(js)
self.implContract4(inst2)
def implContract4(self, inst):
self.assertEqual(
force_bytes(inst.friendly[0].contentAttachment.title),
force_bytes("The terms of the consent in friendly consumer speak."),
)
self.assertEqual(force_bytes(inst.id), force_bytes("pcd-example-notThem"))
self.assertEqual(inst.issued.date, FHIRDate("2015-11-18").date)
self.assertEqual(inst.issued.as_json(), "2015-11-18")
self.assertEqual(
force_bytes(inst.legal[0].contentAttachment.title),
force_bytes("The terms of the consent in lawyer speak."),
)
self.assertEqual(
force_bytes(inst.signer[0].signature[0].type[0].code),
force_bytes("1.2.840.10065.1.12.1.1"),
)
self.assertEqual(
force_bytes(inst.signer[0].signature[0].type[0].system),
force_bytes("urn:iso-astm:E1762-95:2013"),
)
self.assertEqual(
inst.signer[0].signature[0].when.date,
FHIRDate("2013-06-08T10:57:34-07:00").date,
)
self.assertEqual(
inst.signer[0].signature[0].when.as_json(), "2013-06-08T10:57:34-07:00"
)
self.assertEqual(force_bytes(inst.signer[0].type.code), force_bytes("COVPTY"))
self.assertEqual(
force_bytes(inst.signer[0].type.system),
force_bytes("http://www.hl7.org/fhir/contractsignertypecodes"),
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].code), force_bytes("Opt-In")
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].display),
force_bytes("Default Authorization with exceptions."),
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].system),
force_bytes("http://www.infoway-inforoute.ca.org/Consent-subtype-codes"),
)
self.assertEqual(
force_bytes(inst.term[0].text),
force_bytes(
"Withhold this order and any results or related objects from specified nurse provider."
),
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].code), force_bytes("withhold-from")
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].display),
force_bytes("Withhold all data from specified actor entity."),
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].system),
force_bytes("http://example.org/fhir/consent-term-type-codes"),
)
self.assertEqual(force_bytes(inst.text.status), force_bytes("generated"))
self.assertEqual(force_bytes(inst.type.coding[0].code), force_bytes("57016-8"))
self.assertEqual(
force_bytes(inst.type.coding[0].system), force_bytes("http://loinc.org")
)
def testContract5(self):
inst = self.instantiate_from("pcd-example-notAuthor.json")
self.assertIsNotNone(inst, "Must have instantiated a Contract instance")
self.implContract5(inst)
js = inst.as_json()
self.assertEqual("Contract", js["resourceType"])
inst2 = contract.Contract(js)
self.implContract5(inst2)
def implContract5(self, inst):
self.assertEqual(
force_bytes(inst.friendly[0].contentAttachment.title),
force_bytes("The terms of the consent in friendly consumer speak."),
)
self.assertEqual(force_bytes(inst.id), force_bytes("pcd-example-notAuthor"))
self.assertEqual(inst.issued.date, FHIRDate("2015-11-18").date)
self.assertEqual(inst.issued.as_json(), "2015-11-18")
self.assertEqual(
force_bytes(inst.legal[0].contentAttachment.title),
force_bytes("The terms of the consent in lawyer speak."),
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].code), force_bytes("Opt-In")
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].display),
force_bytes("Default Authorization with exceptions."),
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].system),
force_bytes("http://www.infoway-inforoute.ca.org/Consent-subtype-codes"),
)
self.assertEqual(
force_bytes(inst.term[0].text),
force_bytes("Withhold all data authored by Good Health provider."),
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].code),
force_bytes("withhold-authored-by"),
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].display),
force_bytes("Withhold all data authored by specified actor entity."),
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].system),
force_bytes("http://example.org/fhir/consent-term-type-codes"),
)
self.assertEqual(force_bytes(inst.text.status), force_bytes("generated"))
self.assertEqual(force_bytes(inst.type.coding[0].code), force_bytes("57016-8"))
self.assertEqual(
force_bytes(inst.type.coding[0].system), force_bytes("http://loinc.org")
)
def testContract6(self):
inst = self.instantiate_from("contract-example.json")
self.assertIsNotNone(inst, "Must have instantiated a Contract instance")
self.implContract6(inst)
js = inst.as_json()
self.assertEqual("Contract", js["resourceType"])
inst2 = contract.Contract(js)
self.implContract6(inst2)
def implContract6(self, inst):
self.assertEqual(force_bytes(inst.id), force_bytes("C-123"))
self.assertEqual(
force_bytes(inst.identifier.system),
force_bytes("http://happyvalley.com/contract"),
)
self.assertEqual(force_bytes(inst.identifier.value), force_bytes("12347"))
self.assertEqual(
force_bytes(inst.text.div),
force_bytes(
'<div xmlns="http://www.w3.org/1999/xhtml">A human-readable rendering of the contract</div>'
),
)
self.assertEqual(force_bytes(inst.text.status), force_bytes("generated"))
def testContract7(self):
inst = self.instantiate_from("pcd-example-notThis.json")
self.assertIsNotNone(inst, "Must have instantiated a Contract instance")
self.implContract7(inst)
js = inst.as_json()
self.assertEqual("Contract", js["resourceType"])
inst2 = contract.Contract(js)
self.implContract7(inst2)
def implContract7(self, inst):
self.assertEqual(
force_bytes(inst.friendly[0].contentAttachment.title),
force_bytes("The terms of the consent in friendly consumer speak."),
)
self.assertEqual(force_bytes(inst.id), force_bytes("pcd-example-notThis"))
self.assertEqual(inst.issued.date, FHIRDate("2015-11-18").date)
self.assertEqual(inst.issued.as_json(), "2015-11-18")
self.assertEqual(
force_bytes(inst.legal[0].contentAttachment.title),
force_bytes("The terms of the consent in lawyer speak."),
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].code), force_bytes("Opt-In")
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].display),
force_bytes("Default Authorization with exceptions."),
)
self.assertEqual(
force_bytes(inst.subType[0].coding[0].system),
force_bytes("http://www.infoway-inforoute.ca.org/Consent-subtype-codes"),
)
self.assertEqual(
force_bytes(inst.term[0].text),
force_bytes(
"Withhold this order and any results or related objects from any provider."
),
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].code),
force_bytes("withhold-identified-object-and-related"),
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].display),
force_bytes(
"Withhold the identified object and any other resources that are related to this object."
),
)
self.assertEqual(
force_bytes(inst.term[0].type.coding[0].system),
force_bytes("http://example.org/fhir/consent-term-type-codes"),
)
self.assertEqual(force_bytes(inst.text.status), force_bytes("generated"))
self.assertEqual(force_bytes(inst.type.coding[0].code), force_bytes("57016-8"))
self.assertEqual(
force_bytes(inst.type.coding[0].system), force_bytes("http://loinc.org")
)
| 41.052448
| 115
| 0.609744
| 2,684
| 23,482
| 5.226528
| 0.103949
| 0.187482
| 0.186769
| 0.233462
| 0.84089
| 0.82927
| 0.809453
| 0.708226
| 0.690262
| 0.676647
| 0
| 0.035692
| 0.255472
| 23,482
| 571
| 116
| 41.124343
| 0.766688
| 0.007027
| 0
| 0.517691
| 0
| 0.001862
| 0.200695
| 0.023982
| 0
| 0
| 0
| 0
| 0.3054
| 1
| 0.027933
| false
| 0
| 0.014898
| 0
| 0.046555
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ceec3204a614fa8b71ad8fab515fcc2b7b5399e7
| 107
|
py
|
Python
|
scinol/__init__.py
|
mihahauke/scinol_icml2019
|
8f6bf250c9501a47d3c4b2323f830abcbf56cce3
|
[
"MIT"
] | 3
|
2020-04-30T11:32:46.000Z
|
2021-04-23T01:16:54.000Z
|
scinol/__init__.py
|
mihahauke/scinol_icml2019
|
8f6bf250c9501a47d3c4b2323f830abcbf56cce3
|
[
"MIT"
] | 6
|
2020-01-28T22:55:13.000Z
|
2022-02-10T00:20:24.000Z
|
scinol/__init__.py
|
mihahauke/scinol_icml2019
|
8f6bf250c9501a47d3c4b2323f830abcbf56cce3
|
[
"MIT"
] | 1
|
2020-09-23T07:26:31.000Z
|
2020-09-23T07:26:31.000Z
|
from ._scinol import *
from ._nag import *
from ._prescinol import *
from ._sfmd import *
# __all__ = TODO
| 17.833333
| 25
| 0.719626
| 14
| 107
| 4.928571
| 0.571429
| 0.434783
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.186916
| 107
| 5
| 26
| 21.4
| 0.793103
| 0.130841
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
0630fd5623ac3364d41b77dbb665a60b19719d76
| 16,174
|
py
|
Python
|
src/Tracker/run_cmd.py
|
tiennvuit/AI_Challenge_HCM
|
8faf8d94b9f823b8c39176a241a4820b8a0d825e
|
[
"MIT"
] | null | null | null |
src/Tracker/run_cmd.py
|
tiennvuit/AI_Challenge_HCM
|
8faf8d94b9f823b8c39176a241a4820b8a0d825e
|
[
"MIT"
] | null | null | null |
src/Tracker/run_cmd.py
|
tiennvuit/AI_Challenge_HCM
|
8faf8d94b9f823b8c39176a241a4820b8a0d825e
|
[
"MIT"
] | null | null | null |
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_01 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_02 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_03 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_04 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_05 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_06 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_07 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_08 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_09 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_10 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_11 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_12 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_13 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_14 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_15 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_16 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_17 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_18 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_19 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_20 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_21 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_22 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_23 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_24 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_25 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
----------------------------------------------------------------
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_08 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_20 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_22 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_25 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
---------------------------------
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_03 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_13 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_19 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
----------------------------------- 4/9/2020------------------------
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_01 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_02 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_04 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_06 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
---------------------------------
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_07 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_09 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_10 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_12 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
--------------------------------------------------
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_03 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_05 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_14 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_16 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_18 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_21 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_23 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_24 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
3,5,14,16,18,21,23,24
-----------------------------------------------
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_08 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_11 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_13 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_15 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
-------------------------------
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_17 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_19 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_20 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_25 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
python tools/generate_detections.py --model=networks/mars-small128.pb --mot_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/data/cam_22 --output_dir=/home/mmlab/working/Challenges/AI_HCM_2020/Counting_Vehicles/Task03/deep_sort/output_generate/
| 105.712418
| 275
| 0.811797
| 2,348
| 16,174
| 5.300681
| 0.02385
| 0.064117
| 0.109915
| 0.174032
| 0.998393
| 0.998393
| 0.998393
| 0.998393
| 0.998393
| 0.998393
| 0
| 0.064485
| 0.05175
| 16,174
| 152
| 276
| 106.407895
| 0.747017
| 0
| 0
| 0.907692
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
0661c4b5d4baa0cc93fde2cc1f984e182c27f809
| 99
|
py
|
Python
|
app/internal/drawable/drawable.py
|
Nenivar/outreach-storytelling
|
f09d46b5cf7e3bd7b121786c62162670cb40b8a8
|
[
"MIT"
] | 1
|
2018-11-27T14:54:59.000Z
|
2018-11-27T14:54:59.000Z
|
app/internal/drawable/drawable.py
|
Nenivar/outreach-storytelling
|
f09d46b5cf7e3bd7b121786c62162670cb40b8a8
|
[
"MIT"
] | null | null | null |
app/internal/drawable/drawable.py
|
Nenivar/outreach-storytelling
|
f09d46b5cf7e3bd7b121786c62162670cb40b8a8
|
[
"MIT"
] | null | null | null |
class Drawable():
def draw(self, screen):
pass
def blit(self, screen):
pass
| 19.8
| 27
| 0.555556
| 12
| 99
| 4.583333
| 0.666667
| 0.363636
| 0.509091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 99
| 5
| 28
| 19.8
| 0.833333
| 0
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0.4
| 0
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
2323f0b062f7b63bc04435701f9131ea85e2396e
| 121
|
py
|
Python
|
nanotube/__init__.py
|
Gawquon/Nano-Builder
|
b93eb3aeac2646c451ad39110c131321144e3fce
|
[
"MIT"
] | 1
|
2018-10-23T19:42:36.000Z
|
2018-10-23T19:42:36.000Z
|
nanotube/__init__.py
|
Gawquon/Nano-Builder
|
b93eb3aeac2646c451ad39110c131321144e3fce
|
[
"MIT"
] | 3
|
2018-10-23T14:32:33.000Z
|
2019-04-26T15:23:50.000Z
|
nanotube/__init__.py
|
Gawquon/Nano-Builder
|
b93eb3aeac2646c451ad39110c131321144e3fce
|
[
"MIT"
] | 1
|
2018-10-23T14:23:38.000Z
|
2018-10-23T14:23:38.000Z
|
from nanotube.nanotube import SWCNT
from nanotube.nanotube import SWCNT_solvated
from nanotube.nanotube import CNT_forest
| 40.333333
| 44
| 0.884298
| 17
| 121
| 6.176471
| 0.411765
| 0.342857
| 0.571429
| 0.742857
| 0.590476
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 121
| 3
| 45
| 40.333333
| 0.954545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
2326c52088efebc7ee5b50065f40a0fa26f133ef
| 2,293
|
py
|
Python
|
tests/nonrealtime/test_nonrealtime_Session_duration.py
|
butayama/supriya
|
0c197324ecee4232381221880d1f40e109bb756c
|
[
"MIT"
] | 191
|
2015-11-13T02:28:42.000Z
|
2022-03-29T10:26:44.000Z
|
tests/nonrealtime/test_nonrealtime_Session_duration.py
|
butayama/supriya
|
0c197324ecee4232381221880d1f40e109bb756c
|
[
"MIT"
] | 130
|
2016-01-04T16:59:02.000Z
|
2022-02-26T15:37:20.000Z
|
tests/nonrealtime/test_nonrealtime_Session_duration.py
|
butayama/supriya
|
0c197324ecee4232381221880d1f40e109bb756c
|
[
"MIT"
] | 22
|
2016-05-04T10:32:16.000Z
|
2022-02-26T19:22:45.000Z
|
import supriya.nonrealtime
def test_01():
session = supriya.nonrealtime.Session()
assert session.offsets == [float("-inf"), 0.0]
assert session.duration == 0.0
def test_02():
session = supriya.nonrealtime.Session()
with session.at(0):
session.add_group()
assert session.offsets == [float("-inf"), 0.0, float("inf")]
assert session.duration == 0.0
def test_03():
session = supriya.nonrealtime.Session()
with session.at(23.5):
session.add_group()
assert session.offsets == [float("-inf"), 0.0, 23.5, float("inf")]
assert session.duration == 23.5
def test_04():
session = supriya.nonrealtime.Session()
with session.at(23.5):
session.add_group(duration=1.0)
assert session.offsets == [float("-inf"), 0.0, 23.5, 24.5]
assert session.duration == 24.5
def test_05():
session = supriya.nonrealtime.Session()
with session.at(0):
session.add_group()
with session.at(23.5):
session.add_group(duration=1.0)
assert session.offsets == [float("-inf"), 0.0, 23.5, 24.5, float("inf")]
assert session.duration == 24.5
def test_06():
session = supriya.nonrealtime.Session(padding=11.0)
assert session.offsets == [float("-inf"), 0.0]
assert session.duration == 0.0
def test_07():
session = supriya.nonrealtime.Session(padding=11.0)
with session.at(0):
session.add_group()
assert session.offsets == [float("-inf"), 0.0, float("inf")]
assert session.duration == 0.0
def test_08():
session = supriya.nonrealtime.Session(padding=11.0)
with session.at(23.5):
session.add_group()
assert session.offsets == [float("-inf"), 0.0, 23.5, float("inf")]
assert session.duration == 34.5
def test_09():
session = supriya.nonrealtime.Session(padding=11.0)
with session.at(23.5):
session.add_group(duration=1.0)
assert session.offsets == [float("-inf"), 0.0, 23.5, 24.5]
assert session.duration == 35.5
def test_10():
session = supriya.nonrealtime.Session(padding=11.0)
with session.at(0):
session.add_group()
with session.at(23.5):
session.add_group(duration=1.0)
assert session.offsets == [float("-inf"), 0.0, 23.5, 24.5, float("inf")]
assert session.duration == 35.5
| 27.963415
| 76
| 0.63672
| 328
| 2,293
| 4.390244
| 0.103659
| 0.180556
| 0.173611
| 0.222222
| 0.923611
| 0.919444
| 0.919444
| 0.877083
| 0.876389
| 0.876389
| 0
| 0.076423
| 0.195377
| 2,293
| 81
| 77
| 28.308642
| 0.704065
| 0
| 0
| 0.786885
| 0
| 0
| 0.025294
| 0
| 0
| 0
| 0
| 0
| 0.327869
| 1
| 0.163934
| false
| 0
| 0.016393
| 0
| 0.180328
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
88d8df72a656fd2656551c77df5cf355e099a756
| 20,075
|
py
|
Python
|
CAPPA_Data_Analysis/DBR_Analysis_Old.py
|
rnsheehan/CAPPA_Data_Analysis
|
8ab5d650dd668fa6e3695ce0deb23a5f2ed61e48
|
[
"MIT"
] | null | null | null |
CAPPA_Data_Analysis/DBR_Analysis_Old.py
|
rnsheehan/CAPPA_Data_Analysis
|
8ab5d650dd668fa6e3695ce0deb23a5f2ed61e48
|
[
"MIT"
] | null | null | null |
CAPPA_Data_Analysis/DBR_Analysis_Old.py
|
rnsheehan/CAPPA_Data_Analysis
|
8ab5d650dd668fa6e3695ce0deb23a5f2ed61e48
|
[
"MIT"
] | null | null | null |
import os
import glob
import re
import sys # access system routines, including writing console output to file
import math
import scipy
import numpy as np
import matplotlib.pyplot as plt
import Common
import Plotting
# Make plots of the results obtained for the design of the DBR grating for the CORNERSTONE fab run April 2018
# See notebook 426, pg 7 for details
# R. Sheehan 3 - 4 - 2018
MOD_NAME_STR = "DBR_Analysis" # use this in exception handling messages
def DBR_Sim_Plots():
# Run the functions to plot the DBR simulation Data
# R. Sheehan 3 - 4 - 2018
FUNC_NAME = ".DBR_Sim_Plots()" # use this in exception handling messages
ERR_STATEMENT = "Error: " + MOD_NAME_STR + FUNC_NAME
try:
DATA_HOME = "C:/Users/Robert/Research/CAPPA/Simulations/DBR_Design_Apr_2018/"
if os.path.isdir(DATA_HOME):
os.chdir(DATA_HOME)
print os.getcwd()
#plot_RI_versus_WL()
#Wh=2000; Nl=20;
#plot_reflectivity_versus_WL_layers(Wh)
#Wh_list = range(500, 2500, 500)
#Nl_list = range(5, 25, 5)
#for Nl in Nl_list:
#for Wh in Wh_list:
# #plot_neff_versus_WL(Wh)
# #plot_period_versus_WL(Wh)
# plot_reflectivity_versus_WL_layers(Wh)
#plot_reflectivity_versus_width_ratio('Ex')
#plot_device_dims_versus_width_ratio('Ey')
#plot_index_contrast_versus_width_ratio()
plot_layer_lengths_versus_width_ratio()
else:
raise EnvironmentError
except EnvironmentError:
print ERR_STATEMENT
print "Cannot find",DATA_HOME
except Exception:
print ERR_STATEMENT
def read_DBR_data_file(Wl, Wh, Polar, Nlayers):
# read a file containing DBR simulation data
# data is contained in files of the form "DBR_params_Wl_*_Wh_*_Pol_*_Nl_*.txt"
# Wl is the lower waveguide width expressed in nm
# Wh is the higher waveguide width expressed in nm
# Polar is either Ex or Ey
# Nlayers is the assumed number of layers
# contents of the file are as follows
# col[0] = wavelength (nm)
# col[1] = core refractive index (RI)
# col[2] = substrate RI, cladding is assumed to be air
# col[3] = effective RI in waveguide with width W1
# col[4] = layer length of waveguide with width W1 units (nm)
# col[5] = effective RI in waveguide with width W2
# col[6] = layer length of waveguide with width W2 units (nm)
# col[7] = period of grating formed from waveguides with width W1 and W2 units (nm)
# col[8] = total length of grating structure formed from waveguides with width W1 and W2 units (um)
# col[9] = reflectivity of grating structure formed from waveguides with width W1 and W2 units (um)
# R. Sheehan 3 - 4 - 2018
FUNC_NAME = ".read_DBR_data_file()" # use this in exception handling messages
ERR_STATEMENT = "Error: " + MOD_NAME_STR + FUNC_NAME
try:
filename = "DBR_params_Wl_%(v1)d_Wh_%(v2)d_Pol_%(v3)s_Nl_%(v4)d.txt"%{"v1":Wl, "v2":Wh, "v3":Polar, "v4":Nlayers}
if glob.glob(filename):
data = Common.read_matrix(filename, '\t', True)
data = Common.transpose_multi_col(data)
return data
else:
raise Exception
except Exception:
print ERR_STATEMENT
def plot_RI_versus_WL():
# make a plot of RI versus wavelength
# R. Sheehan 3 - 4 - 2018
FUNC_NAME = ".plot_RI_versus_WL()" # use this in exception handling messages
ERR_STATEMENT = "Error: " + MOD_NAME_STR + FUNC_NAME
try:
Wl = 250; Wh = 1000; pol = 'Ex'; Nl = 15;
data = read_DBR_data_file(Wl, Wh, pol, Nl)
if data is not None:
hv_data = []; labels = []; mark_list = []
hv_data.append([data[0], data[1]]); hv_data.append([data[0], data[2]]);
labels.append('$n_{core}$ Si'); labels.append('$n_{sub}$ SiO$_{2}$');
mark_list.append(Plotting.labs[0]); mark_list.append(Plotting.labs[1]);
args = Plotting.plot_arg_multiple()
args.loud = True
args.x_label = "Wavelength (nm)"
args.y_label = "Refractive Index"
args.mrk_list = mark_list
args.crv_lab_list = labels
args.plt_range = [1500, 1660, 1.0, 4.0]
args.fig_name = 'RI_Dispersion_Si_SiO2'
Plotting.plot_multiple_curves(hv_data, args)
del data; del hv_data; del labels; del mark_list; del args;
else:
raise Exception
except Exception:
print ERR_STATEMENT
def plot_neff_versus_WL(Wh):
# make a plot of a quantity versus wavelength
# R. Sheehan 3 - 4 - 2018
FUNC_NAME = ".plot_neff_versus_WL()" # use this in exception handling messages
ERR_STATEMENT = "Error: " + MOD_NAME_STR + FUNC_NAME
try:
Wl = 250; pol1 = 'Ex'; pol2 = 'Ey'; Nl = 15;
data1 = read_DBR_data_file(Wl, Wh, pol1, Nl)
data2 = read_DBR_data_file(Wl, Wh, pol2, Nl)
if data1 is not None and data2 is not None:
hv_data = []; labels = []; mark_list = []
hv_data.append([data2[0], data2[3]]); hv_data.append([data2[0], data2[5]]);
labels.append('$E_{y}$ Wl'); labels.append('$E_{y}$ Wh');
mark_list.append(Plotting.labs[0]); mark_list.append(Plotting.labs[1]);
hv_data.append([data1[0], data1[3]]); hv_data.append([data1[0], data1[5]]);
labels.append('$E_{x}$ Wl'); labels.append('$E_{x}$ Wh');
mark_list.append(Plotting.labs_dashed[0]); mark_list.append(Plotting.labs_dashed[1]);
args = Plotting.plot_arg_multiple()
args.loud = True
args.x_label = 'Wavelength (nm)'
args.y_label = 'Effective Refractive Index $n_{eff}$'
args.mrk_list = mark_list
args.crv_lab_list = labels
args.plt_range = [1500, 1660, 1.4, 3.0]
args.fig_name = 'Neff_Dispersion_Si_SiO2_Wh_%(v1)d'%{"v1":Wh}
Plotting.plot_multiple_curves(hv_data, args)
del data1; del data2; del hv_data; del labels; del mark_list; del args;
except Exception:
print ERR_STATEMENT
def plot_period_versus_WL(Wh):
# make a plot of a quantity versus wavelength
# R. Sheehan 3 - 4 - 2018
FUNC_NAME = ".plot_period_versus_WL()" # use this in exception handling messages
ERR_STATEMENT = "Error: " + MOD_NAME_STR + FUNC_NAME
try:
Wl = 250; pol1 = 'Ex'; pol2 = 'Ey'; Nl = 15;
data1 = read_DBR_data_file(Wl, Wh, pol1, Nl)
data2 = read_DBR_data_file(Wl, Wh, pol2, Nl)
if data1 is not None and data2 is not None:
hv_data = []; labels = []; mark_list = []
hv_data.append([data2[0], data2[4]]); hv_data.append([data2[0], data2[6]]); hv_data.append([data2[0], data2[7]]);
labels.append('$E_{y}$ $L_{Wl}$'); labels.append('$E_{y}$ $L_{Wh}$'); labels.append('$E_{y}$ $\Lambda$');
mark_list.append(Plotting.labs[0]); mark_list.append(Plotting.labs[1]); mark_list.append(Plotting.labs[2]);
hv_data.append([data1[0], data1[4]]); hv_data.append([data1[0], data1[6]]); hv_data.append([data1[0], data1[7]]);
labels.append('$E_{x}$ $L_{Wl}$'); labels.append('$E_{x}$ $L_{Wh}$'); labels.append('$E_{x}$ $\Lambda$');
mark_list.append(Plotting.labs_dashed[0]); mark_list.append(Plotting.labs_dashed[1]); mark_list.append(Plotting.labs_dashed[2]);
args = Plotting.plot_arg_multiple()
args.loud = True
args.x_label = 'Wavelength (nm)'
args.y_label = 'Grating Structure Lengths (nm)'
args.mrk_list = mark_list
args.crv_lab_list = labels
args.plt_range = [1500, 1660, 120, 550]
args.fig_name = 'Grating_Lengths_Dispersion_Si_SiO2_Wh_%(v1)d'%{"v1":Wh}
Plotting.plot_multiple_curves(hv_data, args)
del data1; del data2; del hv_data; del labels; del mark_list; del args;
except Exception:
print ERR_STATEMENT
def plot_reflectivity_versus_WL(Wh, Nl):
# make a plot of a quantity versus wavelength
# R. Sheehan 3 - 4 - 2018
FUNC_NAME = ".plot_reflectivity_versus_WL()" # use this in exception handling messages
ERR_STATEMENT = "Error: " + MOD_NAME_STR + FUNC_NAME
try:
Wl = 250; pol1 = 'Ex'; pol2 = 'Ey';
data1 = read_DBR_data_file(Wl, Wh, pol1, Nl)
data2 = read_DBR_data_file(Wl, Wh, pol2, Nl)
if data1 is not None and data2 is not None:
hv_data = []; labels = []; mark_list = []
hv_data.append([data2[0], data2[9]]);
labels.append('$E_{y}$');
mark_list.append(Plotting.labs[0]);
hv_data.append([data1[0], data1[9]]);
labels.append('$E_{x}$');
mark_list.append(Plotting.labs_dashed[0]);
args = Plotting.plot_arg_multiple()
args.loud = False
args.x_label = 'Wavelength (nm)'
args.y_label = 'Grating Reflectivity'
args.mrk_list = mark_list
args.crv_lab_list = labels
args.plt_range = [1500, 1660, 0, 1]
args.fig_name = 'Reflectivity_Dispersion_Si_SiO2_Wh_%(v1)d_Nl_%(v2)d'%{"v1":Wh,"v2":Nl}
Plotting.plot_multiple_curves(hv_data, args)
del data1; del data2; del hv_data; del labels; del mark_list; del args;
except Exception:
print ERR_STATEMENT
def plot_reflectivity_versus_WL_layers(Wh):
# make a plot of a quantity versus wavelength
# R. Sheehan 3 - 4 - 2018
FUNC_NAME = ".plot_reflectivity_versus_WL()" # use this in exception handling messages
ERR_STATEMENT = "Error: " + MOD_NAME_STR + FUNC_NAME
try:
Wl = 250; pol1 = 'Ex'; pol2 = 'Ey';
Nl = 5
data1 = read_DBR_data_file(Wl, Wh, pol1, Nl)
data2 = read_DBR_data_file(Wl, Wh, pol2, Nl)
Nl = 10
data1a = read_DBR_data_file(Wl, Wh, pol1, Nl)
data2a = read_DBR_data_file(Wl, Wh, pol2, Nl)
Nl = 15
data1b = read_DBR_data_file(Wl, Wh, pol1, Nl)
data2b = read_DBR_data_file(Wl, Wh, pol2, Nl)
Nl = 20
data1c = read_DBR_data_file(Wl, Wh, pol1, Nl)
data2c = read_DBR_data_file(Wl, Wh, pol2, Nl)
if data1 is not None and data2 is not None:
hv_data = []; labels = []; mark_list = []
# Ey polarisation
#hv_data.append([data2[0], data2[9]]); hv_data.append([data2a[0], data2a[9]]); hv_data.append([data2b[0], data2b[9]]); hv_data.append([data2c[0], data2c[9]]);
#labels.append('$E_{y}$ $N_{l} = 5$'); labels.append('$E_{y}$ $N_{l} = 10$'); labels.append('$E_{y}$ $N_{l} = 15$'); labels.append('$E_{y}$ $N_{l} = 20$');
#mark_list.append(Plotting.labs[0]); mark_list.append(Plotting.labs[1]); mark_list.append(Plotting.labs[2]); mark_list.append(Plotting.labs[3]);
# Ex polarisation
hv_data.append([data1[0], data1[9]]); hv_data.append([data1a[0], data1a[9]]); hv_data.append([data1b[0], data1b[9]]); hv_data.append([data1c[0], data1c[9]]);
labels.append('$E_{x}$ $N_{l} = 5$'); labels.append('$E_{x}$ $N_{l} = 10$'); labels.append('$E_{x}$ $N_{l} = 15$'); labels.append('$E_{x}$ $N_{l} = 20$');
#mark_list.append(Plotting.labs_dashed[0]); mark_list.append(Plotting.labs_dashed[1]); mark_list.append(Plotting.labs_dashed[2]); mark_list.append(Plotting.labs_dashed[3]);
mark_list.append(Plotting.labs[0]); mark_list.append(Plotting.labs[1]); mark_list.append(Plotting.labs[2]); mark_list.append(Plotting.labs[3]);
args = Plotting.plot_arg_multiple()
args.loud = False
args.x_label = 'Wavelength (nm)'
args.y_label = 'Grating Reflectivity'
args.mrk_list = mark_list
args.crv_lab_list = labels
args.plt_range = [1500, 1660, 0, 1]
args.fig_name = 'Ex_Reflectivity_Dispersion_Si_SiO2_Wh_%(v1)d'%{"v1":Wh}
Plotting.plot_multiple_curves(hv_data, args)
del data1; del data2; del hv_data; del labels; del mark_list; del args;
except Exception:
print ERR_STATEMENT
def plot_reflectivity_versus_width_ratio(pol):
# make a plot of reflectivity versus waveguide width ratio
# choose \lambda = 1590 nm
# R. Sheehan 3 - 4 - 2018
FUNC_NAME = ".plot_reflectivity_versus_width_ratio()" # use this in exception handling messages
ERR_STATEMENT = "Error: " + MOD_NAME_STR + FUNC_NAME
try:
Wh_list = range(500, 2500, 500)
Nl_list = range(5, 25, 5)
Wl = 250;
# Extract the data from the files
hv_data = []; labels = []; mark_list = []; count = 0
for Nl in Nl_list:
wratio = []; rvals = []
for Wh in Wh_list:
wratio.append(Wh/Wl)
data = read_DBR_data_file(Wl, Wh, pol, Nl)
rvals.append(data[9][3])
hv_data.append([wratio, rvals])
labels.append('$N_{l}$ = %(v1)d'%{"v1":Nl})
mark_list.append(Plotting.labs[count])
count = (count+1)%len(Plotting.labs)
if len(hv_data) > 2:
args = Plotting.plot_arg_multiple()
args.loud = True
args.x_label = "Waveguide Rib Width Ratio $W_{h}/W_{l}$"
args.y_label = "%(v1)s Reflectivity"%{"v1":pol}
args.mrk_list = mark_list
args.crv_lab_list = labels
args.plt_range = [2, 8, 0, 1]
args.fig_name = 'Reflectivity_W_Ratio_Pol_%(v1)s'%{"v1":pol}
Plotting.plot_multiple_curves(hv_data, args)
del data; del hv_data; del labels; del mark_list; del args;
else:
raise Exception
except Exception:
print ERR_STATEMENT
def plot_index_contrast_versus_width_ratio():
# make a plot of reflectivity versus waveguide width ratio
# choose \lambda = 1590 nm
# R. Sheehan 3 - 4 - 2018
FUNC_NAME = ".plot_index_contrast_versus_width_ratio()" # use this in exception handling messages
ERR_STATEMENT = "Error: " + MOD_NAME_STR + FUNC_NAME
try:
Wh_list = range(500, 2500, 500)
Wl = 250;
# Extract the data from the files
hv_data = []; labels = []; mark_list = [];
Nl = 5
wratio = []; rvals = []
for Wh in Wh_list:
wratio.append(Wh/Wl)
data = read_DBR_data_file(Wl, Wh, 'Ey', Nl)
rvals.append((data[5][3]**2-data[3][3]**2)/(2.0*data[5][3]**2))
hv_data.append([wratio, rvals])
labels.append('$E_{y}$')
mark_list.append(Plotting.labs[0])
wratio = []; rvals = []
for Wh in Wh_list:
wratio.append(Wh/Wl)
data = read_DBR_data_file(Wl, Wh, 'Ex', Nl)
rvals.append((data[5][3]**2-data[3][3]**2)/(2.0*data[5][3]**2))
hv_data.append([wratio, rvals])
labels.append('$E_{x}$')
mark_list.append(Plotting.labs_dashed[0])
if len(hv_data) > 0:
args = Plotting.plot_arg_multiple()
args.loud = True
args.x_label = "Waveguide Rib Width Ratio $W_{h}/W_{l}$"
args.y_label = "Index Contrast $\Delta n$"
args.mrk_list = mark_list
args.crv_lab_list = labels
args.plt_range = [2, 8, 0, 0.14]
args.fig_name = 'Index_Contrast_W_Ratio'
Plotting.plot_multiple_curves(hv_data, args)
del data; del hv_data; del labels; del mark_list; del args;
else:
raise Exception
except Exception:
print ERR_STATEMENT
def plot_device_dims_versus_width_ratio(pol):
# make a plot of reflectivity versus waveguide width ratio
# choose \lambda = 1590 nm
# R. Sheehan 3 - 4 - 2018
FUNC_NAME = ".plot_device_dims_versus_width_ratio()" # use this in exception handling messages
ERR_STATEMENT = "Error: " + MOD_NAME_STR + FUNC_NAME
try:
Wh_list = range(500, 2500, 500)
Nl_list = range(5, 25, 5)
Wl = 250;
# Extract the data from the files
hv_data = []; labels = []; mark_list = []; count = 0
for Nl in Nl_list:
wratio = []; rvals = []
for Wh in Wh_list:
wratio.append(Wh/Wl)
data = read_DBR_data_file(Wl, Wh, pol, Nl)
rvals.append(data[8][3])
hv_data.append([wratio, rvals])
labels.append('$N_{l}$ = %(v1)d'%{"v1":Nl})
mark_list.append(Plotting.labs[count])
count = (count+1)%len(Plotting.labs)
if len(hv_data) > 2:
args = Plotting.plot_arg_multiple()
args.loud = True
args.x_label = "Waveguide Rib Width Ratio $W_{h}/W_{l}$"
args.y_label = "%(v1)s Total Grating Length (um)"%{"v1":pol}
args.mrk_list = mark_list
args.crv_lab_list = labels
args.plt_range = [2, 8, 0, 10]
args.fig_name = 'Total_Length_W_Ratio_Pol_%(v1)s'%{"v1":pol}
Plotting.plot_multiple_curves(hv_data, args)
del data; del hv_data; del labels; del mark_list; del args;
else:
raise Exception
except Exception:
print ERR_STATEMENT
def plot_layer_lengths_versus_width_ratio():
# make a plot of reflectivity versus waveguide width ratio
# choose \lambda = 1590 nm
# R. Sheehan 3 - 4 - 2018
FUNC_NAME = ".plot_layer_lengths_versus_width_ratio()" # use this in exception handling messages
ERR_STATEMENT = "Error: " + MOD_NAME_STR + FUNC_NAME
try:
Wh_list = range(500, 2500, 500)
Wl = 250;
# Extract the data from the files
hv_data = []; labels = []; mark_list = [];
Nl = 5
wratio = []; rvals = []; l1vals = []; l2vals = [];
for Wh in Wh_list:
wratio.append(Wh/Wl)
data = read_DBR_data_file(Wl, Wh, 'Ey', Nl)
rvals.append(data[7][3]); l1vals.append(data[4][3]);
l2vals.append(data[6][3]);
hv_data.append([wratio, rvals]); hv_data.append([wratio, l1vals]);
hv_data.append([wratio, l2vals]);
labels.append('$E_{y}$'); labels.append('$E_{y}$ $L_{W1}$');
labels.append('$E_{y}$ $L_{W2}$');
mark_list.append(Plotting.labs[0]); mark_list.append(Plotting.labs[1]);
mark_list.append(Plotting.labs[2]);
wratio = []; rvals = []; l1vals = []; l2vals = [];
for Wh in Wh_list:
wratio.append(Wh/Wl)
data = read_DBR_data_file(Wl, Wh, 'Ex', Nl)
rvals.append(data[7][3]); l1vals.append(data[4][3]);
l2vals.append(data[6][3]);
hv_data.append([wratio, rvals]); hv_data.append([wratio, l1vals]);
hv_data.append([wratio, l2vals]);
labels.append('$E_{x}$'); labels.append('$E_{x}$ $L_{W1}$');
labels.append('$E_{x}$ $L_{W2}$');
mark_list.append(Plotting.labs_dashed[0]); mark_list.append(Plotting.labs_dashed[1]);
mark_list.append(Plotting.labs_dashed[2]);
if len(hv_data) > 0:
args = Plotting.plot_arg_multiple()
args.loud = True
args.x_label = "Waveguide Rib Width Ratio $W_{h}/W_{l}$"
args.y_label = "Grating Period $\Lambda$ (nm)"
args.mrk_list = mark_list
args.crv_lab_list = labels
args.plt_range = [2, 8, 100, 500]
args.fig_name = 'Grating_Period_W_Ratio'
Plotting.plot_multiple_curves(hv_data, args)
del data; del hv_data; del labels; del mark_list; del args;
else:
raise Exception
except Exception:
print ERR_STATEMENT
| 38.020833
| 206
| 0.5866
| 2,787
| 20,075
| 3.998206
| 0.088985
| 0.033923
| 0.04523
| 0.071076
| 0.838553
| 0.803195
| 0.725298
| 0.710222
| 0.702773
| 0.690927
| 0
| 0.041696
| 0.286775
| 20,075
| 527
| 207
| 38.092979
| 0.736555
| 0.184458
| 0
| 0.662651
| 0
| 0
| 0.107024
| 0.043105
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.03012
| null | null | 0.042169
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
88efcbefc61ad1c150e45ca09e732baf005fc042
| 112
|
py
|
Python
|
tests/test_example.py
|
ARCTraining/example_project
|
87d6b6c942729a27cd81e30ed6540a46dc15122d
|
[
"MIT"
] | null | null | null |
tests/test_example.py
|
ARCTraining/example_project
|
87d6b6c942729a27cd81e30ed6540a46dc15122d
|
[
"MIT"
] | null | null | null |
tests/test_example.py
|
ARCTraining/example_project
|
87d6b6c942729a27cd81e30ed6540a46dc15122d
|
[
"MIT"
] | null | null | null |
def increment_by_one(x):
return x + 1
def test_increment_by_one():
assert increment_by_one(3) == 4
| 18.666667
| 35
| 0.678571
| 19
| 112
| 3.631579
| 0.578947
| 0.478261
| 0.608696
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.034483
| 0.223214
| 112
| 5
| 36
| 22.4
| 0.758621
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.5
| false
| 0
| 0
| 0.25
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
cc64c26653dd69405a12ea900a79496049ba2423
| 205
|
py
|
Python
|
src/item.py
|
bussigaboran/the_island
|
eac257e2381182039851c9eeeeda56703a77fcb2
|
[
"MIT"
] | null | null | null |
src/item.py
|
bussigaboran/the_island
|
eac257e2381182039851c9eeeeda56703a77fcb2
|
[
"MIT"
] | null | null | null |
src/item.py
|
bussigaboran/the_island
|
eac257e2381182039851c9eeeeda56703a77fcb2
|
[
"MIT"
] | null | null | null |
class Tile():
""" The smallest building block in a map """
def __init__(self):
self.tile = '.'
def get(self):
return self.tile
def set(self, item):
self.tile = item
| 22.777778
| 48
| 0.546341
| 27
| 205
| 4
| 0.592593
| 0.222222
| 0.203704
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.321951
| 205
| 8
| 49
| 25.625
| 0.776978
| 0.17561
| 0
| 0
| 0
| 0
| 0.006211
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| false
| 0
| 0
| 0.142857
| 0.714286
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
cc76fc5013b52f8faefffea2a53794977fef2bc8
| 96
|
py
|
Python
|
classifier/loss.py
|
theovincent/birdClassification
|
21e23a4f4c67714006e7ccc606134ca8d0fe5d9d
|
[
"MIT"
] | null | null | null |
classifier/loss.py
|
theovincent/birdClassification
|
21e23a4f4c67714006e7ccc606134ca8d0fe5d9d
|
[
"MIT"
] | null | null | null |
classifier/loss.py
|
theovincent/birdClassification
|
21e23a4f4c67714006e7ccc606134ca8d0fe5d9d
|
[
"MIT"
] | null | null | null |
import torch
def cross_entropy_loss():
return torch.nn.CrossEntropyLoss(reduction="mean")
| 16
| 54
| 0.770833
| 12
| 96
| 6
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 96
| 5
| 55
| 19.2
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0.041667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
9d66462af654e5d29501fdf76b7ead00dde72b54
| 81
|
py
|
Python
|
gtas/parsers/tests/__init__.py
|
minelytics/GTAS
|
81b034a740837e61b00a17f6521a9a33fb0935bd
|
[
"MIT"
] | null | null | null |
gtas/parsers/tests/__init__.py
|
minelytics/GTAS
|
81b034a740837e61b00a17f6521a9a33fb0935bd
|
[
"MIT"
] | null | null | null |
gtas/parsers/tests/__init__.py
|
minelytics/GTAS
|
81b034a740837e61b00a17f6521a9a33fb0935bd
|
[
"MIT"
] | null | null | null |
from gtas.parsers.tests.edifact import *
from gtas.parsers.tests.paxlst import *
| 27
| 40
| 0.802469
| 12
| 81
| 5.416667
| 0.583333
| 0.246154
| 0.461538
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.098765
| 81
| 2
| 41
| 40.5
| 0.890411
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
9d8ad192883a4ee3500cf487690a0355e16216f1
| 760
|
py
|
Python
|
5-semester/programming/lab1-tests.py
|
Rakleed/rgpu
|
47ab2a05a8398c15be7e41e9e98fafe5c2a36627
|
[
"MIT"
] | null | null | null |
5-semester/programming/lab1-tests.py
|
Rakleed/rgpu
|
47ab2a05a8398c15be7e41e9e98fafe5c2a36627
|
[
"MIT"
] | null | null | null |
5-semester/programming/lab1-tests.py
|
Rakleed/rgpu
|
47ab2a05a8398c15be7e41e9e98fafe5c2a36627
|
[
"MIT"
] | null | null | null |
import squareseqdigit
def test_squareseqdigit_1():
assert squareseqdigit.square_sequence_digit(1) == 1, " square_sequence_digit(1) == 1 "
def test_squareseqdigit_2():
assert squareseqdigit.square_sequence_digit(2) == 4, " square_sequence_digit(2) == 4 "
def test_squareseqdigit_3():
assert squareseqdigit.square_sequence_digit(7) == 5, " square_sequence_digit(7) == 5 "
def test_squareseqdigit_4():
assert squareseqdigit.square_sequence_digit(12) == 6, " square_sequence_digit(12) == 6 "
def test_squareseqdigit_5():
assert squareseqdigit.square_sequence_digit(17) == 0, " square_sequence_digit(17) == 0 "
def test_squareseqdigit_6():
assert squareseqdigit.square_sequence_digit(27) == 9, " square_sequence_digit(27) == 9 "
| 29.230769
| 92
| 0.744737
| 98
| 760
| 5.408163
| 0.204082
| 0.316981
| 0.430189
| 0.384906
| 0.713208
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054878
| 0.136842
| 760
| 25
| 93
| 30.4
| 0.753049
| 0
| 0
| 0
| 0
| 0
| 0.248684
| 0.193421
| 0
| 0
| 0
| 0
| 0.461538
| 1
| 0.461538
| true
| 0
| 0.076923
| 0
| 0.538462
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
9d8fa95b621512072c19eb54c83f4e6e08b54e9e
| 8,732
|
py
|
Python
|
policies/actor.py
|
siekmanj/apex
|
49483c827d8e70302b3e993acf29e9798f4435c1
|
[
"MIT"
] | null | null | null |
policies/actor.py
|
siekmanj/apex
|
49483c827d8e70302b3e993acf29e9798f4435c1
|
[
"MIT"
] | 1
|
2019-11-14T21:12:31.000Z
|
2019-11-14T21:12:31.000Z
|
policies/actor.py
|
siekmanj/rrl
|
49483c827d8e70302b3e993acf29e9798f4435c1
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import sqrt
from policies.base import Net
class Actor(Net):
def __init__(self):
super(Actor, self).__init__()
def forward(self):
raise NotImplementedError
def get_action(self):
raise NotImplementedError
class Linear_Actor(Actor):
def __init__(self, state_dim, action_dim, hidden_size=32):
super(Linear_Actor, self).__init__()
self.l1 = nn.Linear(state_dim, hidden_size)
self.l2 = nn.Linear(hidden_size, action_dim)
self.action_dim = action_dim
for p in self.parameters():
p.data = torch.zeros(p.shape)
def forward(self, state):
a = self.l1(state)
a = self.l2(a)
self.action = a
return a
def get_action(self):
return self.action
class FF_Actor(Actor):
def __init__(self, state_dim, action_dim, layers=(256, 256), env_name=None, nonlinearity=F.relu, normc_init=False, max_action=1):
super(FF_Actor, self).__init__()
self.actor_layers = nn.ModuleList()
self.actor_layers += [nn.Linear(state_dim, layers[0])]
for i in range(len(layers)-1):
self.actor_layers += [nn.Linear(layers[i], layers[i+1])]
self.network_out = nn.Linear(layers[-1], action_dim)
self.action = None
self.action_dim = action_dim
self.env_name = env_name
self.nonlinearity = nonlinearity
self.max_action = max_action
if normc_init:
self.initialize_parameters()
def forward(self, state):
x = state
for idx, layer in enumerate(self.actor_layers):
x = self.nonlinearity(layer(x))
self.action = torch.tanh(self.network_out(x))
return self.action
def get_action(self):
return self.action
class FF_Stochastic_Actor(Actor):
def __init__(self, state_dim, action_dim, layers=(256, 256), env_name=None, nonlinearity=F.relu, normc_init=True, bounded=False, fixed_std=None):
super(FF_Stochastic_Actor, self).__init__()
self.actor_layers = nn.ModuleList()
self.actor_layers += [nn.Linear(state_dim, layers[0])]
for i in range(len(layers)-1):
self.actor_layers += [nn.Linear(layers[i], layers[i+1])]
self.means = nn.Linear(layers[-1], action_dim)
if fixed_std is None:
self.log_stds = nn.Linear(layers[-1], action_dim)
self.learn_std = True
else:
self.fixed_std = fixed_std
self.learn_std = False
self.action = None
self.action_dim = action_dim
self.env_name = env_name
self.nonlinearity = nonlinearity
self.bounded = bounded
if normc_init:
self.initialize_parameters()
def _get_dist_params(self, state):
x = state
for idx, layer in enumerate(self.actor_layers):
x = self.nonlinearity(layer(x))
mu = self.means(x)
if self.learn_std:
sd = torch.clamp(self.log_stds(x), -2, 1).exp()
else:
sd = self.fixed_std
return mu, sd
def forward(self, state, deterministic=True, return_log_probs=False):
mu, sd = self._get_dist_params(state)
if not deterministic or return_log_probs:
dist = torch.distributions.Normal(mu, sd)
sample = dist.rsample()
if self.bounded:
self.action = torch.tanh(mu) if deterministic else torch.tanh(sample)
else:
self.action = mu if deterministic else sample
if return_log_probs:
log_prob = dist.log_prob(sample)
if self.bounded:
log_prob -= torch.log((1 - torch.tanh(sample).pow(2)) + 1e-6)
return self.action, log_prob.sum(1, keepdim=True)
else:
return self.action
def pdf(self, state):
mu, sd = self._get_dist_params(state)
return torch.distributions.Normal(mu, sd)
def get_action(self):
return self.action
class LSTM_Actor(Actor):
def __init__(self, input_dim, action_dim, layers=(128, 128), env_name=None, nonlinearity=torch.tanh, normc_init=False, bounded=False):
super(LSTM_Actor, self).__init__()
self.actor_layers = nn.ModuleList()
self.actor_layers += [nn.LSTMCell(input_dim, layers[0])]
for i in range(len(layers)-1):
self.actor_layers += [nn.LSTMCell(layers[i], layers[i+1])]
self.network_out = nn.Linear(layers[i-1], action_dim)
self.action = None
self.action_dim = action_dim
self.init_hidden_state()
self.env_name = env_name
self.nonlinearity = nonlinearity
self.bounded = bounded
self.is_recurrent = True
if normc_init:
self.initialize_parameters()
def get_hidden_state(self):
return self.hidden, self.cells
def set_hidden_state(self, data):
if len(data) != 2:
print("Got invalid hidden state data.")
exit(1)
self.hidden, self.cells = data
def init_hidden_state(self, batch_size=1):
self.hidden = [torch.zeros(batch_size, l.hidden_size) for l in self.actor_layers]
self.cells = [torch.zeros(batch_size, l.hidden_size) for l in self.actor_layers]
def forward(self, x):
dims = len(x.size())
if dims == 3: # if we get a batch of trajectories
self.init_hidden_state(batch_size=x.size(1))
y = []
for t, x_t in enumerate(x):
for idx, layer in enumerate(self.actor_layers):
c, h = self.cells[idx], self.hidden[idx]
self.hidden[idx], self.cells[idx] = layer(x_t, (h, c))
x_t = self.hidden[idx]
y.append(x_t)
x = torch.stack([x_t for x_t in y])
else:
if dims == 1: # if we get a single timestep (if not, assume we got a batch of single timesteps)
x = x.view(1, -1)
for idx, layer in enumerate(self.actor_layers):
h, c = self.hidden[idx], self.cells[idx]
self.hidden[idx], self.cells[idx] = layer(x, (h, c))
x = self.hidden[idx]
x = self.nonlinearity(self.network_out(x))
if dims == 1:
x = x.view(-1)
self.action = self.network_out(x)
return self.action
def get_action(self):
return self.action
class LSTM_Stochastic_Actor(Actor):
def __init__(self, state_dim, action_dim, layers=(128, 128), env_name=None, normc_init=False, bounded=False, fixed_std=None):
super(LSTM_Stochastic_Actor, self).__init__()
self.actor_layers = nn.ModuleList()
self.actor_layers += [nn.LSTMCell(state_dim, layers[0])]
for i in range(len(layers)-1):
self.actor_layers += [nn.LSTMCell(layers[i], layers[i+1])]
self.network_out = nn.Linear(layers[i-1], action_dim)
self.action = None
self.action_dim = action_dim
self.init_hidden_state()
self.env_name = env_name
self.bounded = bounded
self.is_recurrent = True
if fixed_std is None:
self.log_stds = nn.Linear(layers[-1], action_dim)
self.learn_std = True
else:
self.fixed_std = fixed_std
self.learn_std = False
if normc_init:
self.initialize_parameters()
def _get_dist_params(self, state):
dims = len(state.size())
x = state
if dims == 3: # if we get a batch of trajectories
self.init_hidden_state(batch_size=x.size(1))
action = []
y = []
for t, x_t in enumerate(x):
for idx, layer in enumerate(self.actor_layers):
c, h = self.cells[idx], self.hidden[idx]
self.hidden[idx], self.cells[idx] = layer(x_t, (h, c))
x_t = self.hidden[idx]
y.append(x_t)
x = torch.stack([x_t for x_t in y])
else:
if dims == 1: # if we get a single timestep (if not, assume we got a batch of single timesteps)
x = x.view(1, -1)
for idx, layer in enumerate(self.actor_layers):
h, c = self.hidden[idx], self.cells[idx]
self.hidden[idx], self.cells[idx] = layer(x, (h, c))
x = self.hidden[idx]
if dims == 1:
x = x.view(-1)
mu = self.network_out(x)
if self.learn_std:
sd = torch.clamp(self.log_stds(x), -2, 2).exp()
else:
sd = self.fixed_std
return mu, sd
def init_hidden_state(self, batch_size=1):
self.hidden = [torch.zeros(batch_size, l.hidden_size) for l in self.actor_layers]
self.cells = [torch.zeros(batch_size, l.hidden_size) for l in self.actor_layers]
def forward(self, state, deterministic=True, return_log_probs=False):
mu, sd = self._get_dist_params(state)
if not deterministic or return_log_probs:
dist = torch.distributions.Normal(mu, sd)
sample = dist.rsample()
if hasattr(self, 'bounded') and self.bounded:
self.action = torch.tanh(mu) if deterministic else torch.tanh(sample)
else:
self.action = mu if deterministic else sample
if return_log_probs:
return self.action, dist.log_prob(sample)
else:
return self.action
def pdf(self, state):
mu, sd = self._get_dist_params(state)
return torch.distributions.Normal(mu, sd)
def get_action(self):
return self.action
| 29.400673
| 147
| 0.657925
| 1,327
| 8,732
| 4.136398
| 0.097212
| 0.049189
| 0.06012
| 0.037165
| 0.830206
| 0.809801
| 0.794862
| 0.782838
| 0.765895
| 0.739661
| 0
| 0.011168
| 0.220683
| 8,732
| 296
| 148
| 29.5
| 0.795445
| 0.025996
| 0
| 0.735683
| 0
| 0
| 0.004353
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.114537
| false
| 0
| 0.022026
| 0.026432
| 0.237885
| 0.004405
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d1a2d1e9de385a8a3a567200780e0271c475eefe
| 207
|
py
|
Python
|
example/city.py
|
MichaelSchneeberger/dataclass-abc
|
b438f8cf3a9ce5bc477496d67379b6ec10ad1a09
|
[
"Apache-2.0"
] | 9
|
2020-09-05T17:47:47.000Z
|
2022-02-03T03:33:03.000Z
|
example/city.py
|
MichaelSchneeberger/dataclass-abc
|
b438f8cf3a9ce5bc477496d67379b6ec10ad1a09
|
[
"Apache-2.0"
] | null | null | null |
example/city.py
|
MichaelSchneeberger/dataclass-abc
|
b438f8cf3a9ce5bc477496d67379b6ec10ad1a09
|
[
"Apache-2.0"
] | 2
|
2021-02-21T16:33:16.000Z
|
2021-04-06T14:38:38.000Z
|
from abc import ABC
from example.mixins.citynamemixin import CityNameMixin
from example.mixins.spherepositionmixin import SpherePositionMixin
class City(CityNameMixin, SpherePositionMixin, ABC):
pass
| 23
| 66
| 0.84058
| 22
| 207
| 7.909091
| 0.454545
| 0.126437
| 0.195402
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115942
| 207
| 8
| 67
| 25.875
| 0.95082
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.2
| 0.6
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
d1bd70bdbaf945c16298ef256c31476f88c7dc47
| 23,321
|
py
|
Python
|
sdk/python/pulumi_aws/lambda_/layer_version_permission.py
|
chivandikwa/pulumi-aws
|
19c08bf9dcb90544450ffa4eec7bf6751058fde2
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_aws/lambda_/layer_version_permission.py
|
chivandikwa/pulumi-aws
|
19c08bf9dcb90544450ffa4eec7bf6751058fde2
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_aws/lambda_/layer_version_permission.py
|
chivandikwa/pulumi-aws
|
19c08bf9dcb90544450ffa4eec7bf6751058fde2
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['LayerVersionPermissionArgs', 'LayerVersionPermission']
@pulumi.input_type
class LayerVersionPermissionArgs:
def __init__(__self__, *,
action: pulumi.Input[str],
layer_name: pulumi.Input[str],
principal: pulumi.Input[str],
statement_id: pulumi.Input[str],
version_number: pulumi.Input[int],
organization_id: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a LayerVersionPermission resource.
:param pulumi.Input[str] action: Action, which will be allowed. `lambda:GetLayerVersion` value is suggested by AWS documantation.
:param pulumi.Input[str] layer_name: The name or ARN of the Lambda Layer, which you want to grant access to.
:param pulumi.Input[str] principal: AWS account ID which should be able to use your Lambda Layer. `*` can be used here, if you want to share your Lambda Layer widely.
:param pulumi.Input[str] statement_id: The name of Lambda Layer Permission, for example `dev-account` - human readable note about what is this permission for.
:param pulumi.Input[int] version_number: Version of Lambda Layer, which you want to grant access to. Note: permissions only apply to a single version of a layer.
:param pulumi.Input[str] organization_id: An identifier of AWS Organization, which should be able to use your Lambda Layer. `principal` should be equal to `*` if `organization_id` provided.
"""
pulumi.set(__self__, "action", action)
pulumi.set(__self__, "layer_name", layer_name)
pulumi.set(__self__, "principal", principal)
pulumi.set(__self__, "statement_id", statement_id)
pulumi.set(__self__, "version_number", version_number)
if organization_id is not None:
pulumi.set(__self__, "organization_id", organization_id)
@property
@pulumi.getter
def action(self) -> pulumi.Input[str]:
"""
Action, which will be allowed. `lambda:GetLayerVersion` value is suggested by AWS documantation.
"""
return pulumi.get(self, "action")
@action.setter
def action(self, value: pulumi.Input[str]):
pulumi.set(self, "action", value)
@property
@pulumi.getter(name="layerName")
def layer_name(self) -> pulumi.Input[str]:
"""
The name or ARN of the Lambda Layer, which you want to grant access to.
"""
return pulumi.get(self, "layer_name")
@layer_name.setter
def layer_name(self, value: pulumi.Input[str]):
pulumi.set(self, "layer_name", value)
@property
@pulumi.getter
def principal(self) -> pulumi.Input[str]:
"""
AWS account ID which should be able to use your Lambda Layer. `*` can be used here, if you want to share your Lambda Layer widely.
"""
return pulumi.get(self, "principal")
@principal.setter
def principal(self, value: pulumi.Input[str]):
pulumi.set(self, "principal", value)
@property
@pulumi.getter(name="statementId")
def statement_id(self) -> pulumi.Input[str]:
"""
The name of Lambda Layer Permission, for example `dev-account` - human readable note about what is this permission for.
"""
return pulumi.get(self, "statement_id")
@statement_id.setter
def statement_id(self, value: pulumi.Input[str]):
pulumi.set(self, "statement_id", value)
@property
@pulumi.getter(name="versionNumber")
def version_number(self) -> pulumi.Input[int]:
"""
Version of Lambda Layer, which you want to grant access to. Note: permissions only apply to a single version of a layer.
"""
return pulumi.get(self, "version_number")
@version_number.setter
def version_number(self, value: pulumi.Input[int]):
pulumi.set(self, "version_number", value)
@property
@pulumi.getter(name="organizationId")
def organization_id(self) -> Optional[pulumi.Input[str]]:
"""
An identifier of AWS Organization, which should be able to use your Lambda Layer. `principal` should be equal to `*` if `organization_id` provided.
"""
return pulumi.get(self, "organization_id")
@organization_id.setter
def organization_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "organization_id", value)
@pulumi.input_type
class _LayerVersionPermissionState:
def __init__(__self__, *,
action: Optional[pulumi.Input[str]] = None,
layer_name: Optional[pulumi.Input[str]] = None,
organization_id: Optional[pulumi.Input[str]] = None,
policy: Optional[pulumi.Input[str]] = None,
principal: Optional[pulumi.Input[str]] = None,
revision_id: Optional[pulumi.Input[str]] = None,
statement_id: Optional[pulumi.Input[str]] = None,
version_number: Optional[pulumi.Input[int]] = None):
"""
Input properties used for looking up and filtering LayerVersionPermission resources.
:param pulumi.Input[str] action: Action, which will be allowed. `lambda:GetLayerVersion` value is suggested by AWS documantation.
:param pulumi.Input[str] layer_name: The name or ARN of the Lambda Layer, which you want to grant access to.
:param pulumi.Input[str] organization_id: An identifier of AWS Organization, which should be able to use your Lambda Layer. `principal` should be equal to `*` if `organization_id` provided.
:param pulumi.Input[str] policy: Full Lambda Layer Permission policy.
:param pulumi.Input[str] principal: AWS account ID which should be able to use your Lambda Layer. `*` can be used here, if you want to share your Lambda Layer widely.
:param pulumi.Input[str] revision_id: A unique identifier for the current revision of the policy.
:param pulumi.Input[str] statement_id: The name of Lambda Layer Permission, for example `dev-account` - human readable note about what is this permission for.
:param pulumi.Input[int] version_number: Version of Lambda Layer, which you want to grant access to. Note: permissions only apply to a single version of a layer.
"""
if action is not None:
pulumi.set(__self__, "action", action)
if layer_name is not None:
pulumi.set(__self__, "layer_name", layer_name)
if organization_id is not None:
pulumi.set(__self__, "organization_id", organization_id)
if policy is not None:
pulumi.set(__self__, "policy", policy)
if principal is not None:
pulumi.set(__self__, "principal", principal)
if revision_id is not None:
pulumi.set(__self__, "revision_id", revision_id)
if statement_id is not None:
pulumi.set(__self__, "statement_id", statement_id)
if version_number is not None:
pulumi.set(__self__, "version_number", version_number)
@property
@pulumi.getter
def action(self) -> Optional[pulumi.Input[str]]:
"""
Action, which will be allowed. `lambda:GetLayerVersion` value is suggested by AWS documantation.
"""
return pulumi.get(self, "action")
@action.setter
def action(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "action", value)
@property
@pulumi.getter(name="layerName")
def layer_name(self) -> Optional[pulumi.Input[str]]:
"""
The name or ARN of the Lambda Layer, which you want to grant access to.
"""
return pulumi.get(self, "layer_name")
@layer_name.setter
def layer_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "layer_name", value)
@property
@pulumi.getter(name="organizationId")
def organization_id(self) -> Optional[pulumi.Input[str]]:
"""
An identifier of AWS Organization, which should be able to use your Lambda Layer. `principal` should be equal to `*` if `organization_id` provided.
"""
return pulumi.get(self, "organization_id")
@organization_id.setter
def organization_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "organization_id", value)
@property
@pulumi.getter
def policy(self) -> Optional[pulumi.Input[str]]:
"""
Full Lambda Layer Permission policy.
"""
return pulumi.get(self, "policy")
@policy.setter
def policy(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "policy", value)
@property
@pulumi.getter
def principal(self) -> Optional[pulumi.Input[str]]:
"""
AWS account ID which should be able to use your Lambda Layer. `*` can be used here, if you want to share your Lambda Layer widely.
"""
return pulumi.get(self, "principal")
@principal.setter
def principal(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "principal", value)
@property
@pulumi.getter(name="revisionId")
def revision_id(self) -> Optional[pulumi.Input[str]]:
"""
A unique identifier for the current revision of the policy.
"""
return pulumi.get(self, "revision_id")
@revision_id.setter
def revision_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "revision_id", value)
@property
@pulumi.getter(name="statementId")
def statement_id(self) -> Optional[pulumi.Input[str]]:
"""
The name of Lambda Layer Permission, for example `dev-account` - human readable note about what is this permission for.
"""
return pulumi.get(self, "statement_id")
@statement_id.setter
def statement_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "statement_id", value)
@property
@pulumi.getter(name="versionNumber")
def version_number(self) -> Optional[pulumi.Input[int]]:
"""
Version of Lambda Layer, which you want to grant access to. Note: permissions only apply to a single version of a layer.
"""
return pulumi.get(self, "version_number")
@version_number.setter
def version_number(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "version_number", value)
class LayerVersionPermission(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
action: Optional[pulumi.Input[str]] = None,
layer_name: Optional[pulumi.Input[str]] = None,
organization_id: Optional[pulumi.Input[str]] = None,
principal: Optional[pulumi.Input[str]] = None,
statement_id: Optional[pulumi.Input[str]] = None,
version_number: Optional[pulumi.Input[int]] = None,
__props__=None):
"""
Provides a Lambda Layer Version Permission resource. It allows you to share you own Lambda Layers to another account by account ID, to all accounts in AWS organization or even to all AWS accounts.
For information about Lambda Layer Permissions and how to use them, see [Using Resource-based Policies for AWS Lambda][1]
## Example Usage
```python
import pulumi
import pulumi_aws as aws
lambda_layer_permission = aws.lambda_.LayerVersionPermission("lambdaLayerPermission",
action="lambda:GetLayerVersion",
layer_name="arn:aws:lambda:us-west-2:123456654321:layer:test_layer1",
principal="111111111111",
statement_id="dev-account",
version_number=1)
```
## Import
Lambda Layer Permissions can be imported using `layer_name` and `version_number`, separated by a comma (`,`).
```sh
$ pulumi import aws:lambda/layerVersionPermission:LayerVersionPermission example arn:aws:lambda:us-west-2:123456654321:layer:test_layer1,1
```
[1]https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountlayer
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] action: Action, which will be allowed. `lambda:GetLayerVersion` value is suggested by AWS documantation.
:param pulumi.Input[str] layer_name: The name or ARN of the Lambda Layer, which you want to grant access to.
:param pulumi.Input[str] organization_id: An identifier of AWS Organization, which should be able to use your Lambda Layer. `principal` should be equal to `*` if `organization_id` provided.
:param pulumi.Input[str] principal: AWS account ID which should be able to use your Lambda Layer. `*` can be used here, if you want to share your Lambda Layer widely.
:param pulumi.Input[str] statement_id: The name of Lambda Layer Permission, for example `dev-account` - human readable note about what is this permission for.
:param pulumi.Input[int] version_number: Version of Lambda Layer, which you want to grant access to. Note: permissions only apply to a single version of a layer.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: LayerVersionPermissionArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Provides a Lambda Layer Version Permission resource. It allows you to share you own Lambda Layers to another account by account ID, to all accounts in AWS organization or even to all AWS accounts.
For information about Lambda Layer Permissions and how to use them, see [Using Resource-based Policies for AWS Lambda][1]
## Example Usage
```python
import pulumi
import pulumi_aws as aws
lambda_layer_permission = aws.lambda_.LayerVersionPermission("lambdaLayerPermission",
action="lambda:GetLayerVersion",
layer_name="arn:aws:lambda:us-west-2:123456654321:layer:test_layer1",
principal="111111111111",
statement_id="dev-account",
version_number=1)
```
## Import
Lambda Layer Permissions can be imported using `layer_name` and `version_number`, separated by a comma (`,`).
```sh
$ pulumi import aws:lambda/layerVersionPermission:LayerVersionPermission example arn:aws:lambda:us-west-2:123456654321:layer:test_layer1,1
```
[1]https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountlayer
:param str resource_name: The name of the resource.
:param LayerVersionPermissionArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(LayerVersionPermissionArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
action: Optional[pulumi.Input[str]] = None,
layer_name: Optional[pulumi.Input[str]] = None,
organization_id: Optional[pulumi.Input[str]] = None,
principal: Optional[pulumi.Input[str]] = None,
statement_id: Optional[pulumi.Input[str]] = None,
version_number: Optional[pulumi.Input[int]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = LayerVersionPermissionArgs.__new__(LayerVersionPermissionArgs)
if action is None and not opts.urn:
raise TypeError("Missing required property 'action'")
__props__.__dict__["action"] = action
if layer_name is None and not opts.urn:
raise TypeError("Missing required property 'layer_name'")
__props__.__dict__["layer_name"] = layer_name
__props__.__dict__["organization_id"] = organization_id
if principal is None and not opts.urn:
raise TypeError("Missing required property 'principal'")
__props__.__dict__["principal"] = principal
if statement_id is None and not opts.urn:
raise TypeError("Missing required property 'statement_id'")
__props__.__dict__["statement_id"] = statement_id
if version_number is None and not opts.urn:
raise TypeError("Missing required property 'version_number'")
__props__.__dict__["version_number"] = version_number
__props__.__dict__["policy"] = None
__props__.__dict__["revision_id"] = None
super(LayerVersionPermission, __self__).__init__(
'aws:lambda/layerVersionPermission:LayerVersionPermission',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
action: Optional[pulumi.Input[str]] = None,
layer_name: Optional[pulumi.Input[str]] = None,
organization_id: Optional[pulumi.Input[str]] = None,
policy: Optional[pulumi.Input[str]] = None,
principal: Optional[pulumi.Input[str]] = None,
revision_id: Optional[pulumi.Input[str]] = None,
statement_id: Optional[pulumi.Input[str]] = None,
version_number: Optional[pulumi.Input[int]] = None) -> 'LayerVersionPermission':
"""
Get an existing LayerVersionPermission resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] action: Action, which will be allowed. `lambda:GetLayerVersion` value is suggested by AWS documantation.
:param pulumi.Input[str] layer_name: The name or ARN of the Lambda Layer, which you want to grant access to.
:param pulumi.Input[str] organization_id: An identifier of AWS Organization, which should be able to use your Lambda Layer. `principal` should be equal to `*` if `organization_id` provided.
:param pulumi.Input[str] policy: Full Lambda Layer Permission policy.
:param pulumi.Input[str] principal: AWS account ID which should be able to use your Lambda Layer. `*` can be used here, if you want to share your Lambda Layer widely.
:param pulumi.Input[str] revision_id: A unique identifier for the current revision of the policy.
:param pulumi.Input[str] statement_id: The name of Lambda Layer Permission, for example `dev-account` - human readable note about what is this permission for.
:param pulumi.Input[int] version_number: Version of Lambda Layer, which you want to grant access to. Note: permissions only apply to a single version of a layer.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _LayerVersionPermissionState.__new__(_LayerVersionPermissionState)
__props__.__dict__["action"] = action
__props__.__dict__["layer_name"] = layer_name
__props__.__dict__["organization_id"] = organization_id
__props__.__dict__["policy"] = policy
__props__.__dict__["principal"] = principal
__props__.__dict__["revision_id"] = revision_id
__props__.__dict__["statement_id"] = statement_id
__props__.__dict__["version_number"] = version_number
return LayerVersionPermission(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def action(self) -> pulumi.Output[str]:
"""
Action, which will be allowed. `lambda:GetLayerVersion` value is suggested by AWS documantation.
"""
return pulumi.get(self, "action")
@property
@pulumi.getter(name="layerName")
def layer_name(self) -> pulumi.Output[str]:
"""
The name or ARN of the Lambda Layer, which you want to grant access to.
"""
return pulumi.get(self, "layer_name")
@property
@pulumi.getter(name="organizationId")
def organization_id(self) -> pulumi.Output[Optional[str]]:
"""
An identifier of AWS Organization, which should be able to use your Lambda Layer. `principal` should be equal to `*` if `organization_id` provided.
"""
return pulumi.get(self, "organization_id")
@property
@pulumi.getter
def policy(self) -> pulumi.Output[str]:
"""
Full Lambda Layer Permission policy.
"""
return pulumi.get(self, "policy")
@property
@pulumi.getter
def principal(self) -> pulumi.Output[str]:
"""
AWS account ID which should be able to use your Lambda Layer. `*` can be used here, if you want to share your Lambda Layer widely.
"""
return pulumi.get(self, "principal")
@property
@pulumi.getter(name="revisionId")
def revision_id(self) -> pulumi.Output[str]:
"""
A unique identifier for the current revision of the policy.
"""
return pulumi.get(self, "revision_id")
@property
@pulumi.getter(name="statementId")
def statement_id(self) -> pulumi.Output[str]:
"""
The name of Lambda Layer Permission, for example `dev-account` - human readable note about what is this permission for.
"""
return pulumi.get(self, "statement_id")
@property
@pulumi.getter(name="versionNumber")
def version_number(self) -> pulumi.Output[int]:
"""
Version of Lambda Layer, which you want to grant access to. Note: permissions only apply to a single version of a layer.
"""
return pulumi.get(self, "version_number")
| 47.018145
| 204
| 0.65932
| 2,847
| 23,321
| 5.224447
| 0.074464
| 0.069517
| 0.074358
| 0.060643
| 0.848124
| 0.824055
| 0.801869
| 0.763345
| 0.754807
| 0.73531
| 0
| 0.005051
| 0.244458
| 23,321
| 495
| 205
| 47.113131
| 0.839103
| 0.403756
| 0
| 0.607407
| 1
| 0
| 0.104836
| 0.009924
| 0
| 0
| 0
| 0
| 0
| 1
| 0.159259
| false
| 0.003704
| 0.018519
| 0
| 0.274074
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d1e19dff6ffbedadc5579accc6c988a7815daffe
| 203
|
py
|
Python
|
models/pointnet2/__init__.py
|
PointCloudYC/PointNet-modern.pytorch
|
1a0b373fcb21f24b667a0bb4831211da5b92f98d
|
[
"Apache-2.0"
] | 2
|
2021-05-20T14:36:23.000Z
|
2022-02-01T11:33:56.000Z
|
models/pointnet2/__init__.py
|
PointCloudYC/PointNet-modern.pytorch
|
1a0b373fcb21f24b667a0bb4831211da5b92f98d
|
[
"Apache-2.0"
] | null | null | null |
models/pointnet2/__init__.py
|
PointCloudYC/PointNet-modern.pytorch
|
1a0b373fcb21f24b667a0bb4831211da5b92f98d
|
[
"Apache-2.0"
] | null | null | null |
from .pointnet2_ssg_cls import PointNet2SSGCls
from .pointnet2_msg_cls import PointNet2MSGCls
from .pointnet2_ssg_semseg import PointNet2SSGSemSeg
from .pointnet2_msg_semseg import PointNet2MSGSemSeg
| 50.75
| 53
| 0.8867
| 24
| 203
| 7.166667
| 0.458333
| 0.302326
| 0.186047
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043478
| 0.093596
| 203
| 4
| 54
| 50.75
| 0.891304
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
882fd67aabe20a31d5031af0209e1cd26ae8cb88
| 1,429
|
py
|
Python
|
APIScan/models.py
|
sporiyano/archerysec
|
207777100b8e0d2049fc7f2efa5bf47547fb7112
|
[
"BSD-3-Clause"
] | 1
|
2019-06-27T07:36:53.000Z
|
2019-06-27T07:36:53.000Z
|
APIScan/models.py
|
sacseacyber/archerysec
|
207777100b8e0d2049fc7f2efa5bf47547fb7112
|
[
"BSD-3-Clause"
] | null | null | null |
APIScan/models.py
|
sacseacyber/archerysec
|
207777100b8e0d2049fc7f2efa5bf47547fb7112
|
[
"BSD-3-Clause"
] | 2
|
2018-03-06T03:34:34.000Z
|
2019-07-03T03:24:00.000Z
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class APIScan_db(models.Model):
project_id = models.UUIDField(blank=True)
scan_url = models.URLField(blank=True)
scan_id = models.UUIDField(blank=True)
req_header = models.TextField(blank=True)
req_body = models.TextField(blank=True)
method = models.CharField(blank=True, max_length=20)
auth_url = models.CharField(blank=True, max_length=10)
auth_token_key = models.TextField(blank=True)
extra_vaule_auth = models.TextField(blank=True)
date_time = models.DateTimeField(null=True)
class APIScan_url_db(models.Model):
project_id = models.UUIDField(blank=True)
scan_url = models.URLField(blank=True)
scan_id = models.UUIDField(blank=True)
req_header = models.TextField(blank=True)
req_body = models.TextField(blank=True)
method = models.CharField(blank=True, max_length=20)
auth_url = models.CharField(blank=True, max_length=10)
auth_token_key = models.TextField(blank=True)
extra_vaule_auth = models.TextField(blank=True)
date_time = models.DateTimeField(null=True)
class api_token_db(models.Model):
project_id = models.UUIDField(blank=True)
scan_url = models.URLField(blank=True)
scan_id = models.UUIDField(blank=True)
api_token = models.TextField(blank=True)
date_time = models.DateTimeField(null=True)
| 36.641026
| 58
| 0.743877
| 198
| 1,429
| 5.161616
| 0.227273
| 0.193738
| 0.176125
| 0.21135
| 0.879648
| 0.879648
| 0.879648
| 0.879648
| 0.879648
| 0.879648
| 0
| 0.007377
| 0.146256
| 1,429
| 39
| 59
| 36.641026
| 0.830328
| 0.03219
| 0
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.066667
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 9
|
ee3371da788028f8586c88b677fdf184b9690eb1
| 3,670
|
py
|
Python
|
01.10minutes_to_pandas/time_series.py
|
predora005/pandas-practice
|
f7f954cfba6c4cc5ccb58695cc2a32cdeb5fdb3d
|
[
"MIT"
] | null | null | null |
01.10minutes_to_pandas/time_series.py
|
predora005/pandas-practice
|
f7f954cfba6c4cc5ccb58695cc2a32cdeb5fdb3d
|
[
"MIT"
] | null | null | null |
01.10minutes_to_pandas/time_series.py
|
predora005/pandas-practice
|
f7f954cfba6c4cc5ccb58695cc2a32cdeb5fdb3d
|
[
"MIT"
] | null | null | null |
# coding: utf-8
import numpy as np
import pandas as pd
##################################################
# メイン
##################################################
if __name__ == '__main__':
print("------------------------------------------------------------------")
print("Time series")
print("------------------------------")
rng = pd.date_range('1/1/2012', periods=100, freq='1S')
print("rng = pd.date_range('1/1/2012', periods=100, freq='1S')")
print(rng)
print("------------------------------")
ts = pd.Series(np.random.randint(0, 500, len(rng)), index=rng)
print("ts = pd.Series(np.random.randint(0, 500, len(rng)), index=rng)")
print(ts)
print("------------------------------")
# resampleで1Minごとのグループに集約
ts2 = ts.resample('1Min').sum()
print("ts.resample('1Min').sum()")
print(ts2)
print("------------------------------------------------------------------")
print("Time zone representation:")
print("------------------------------")
rng2 = pd.date_range('3/6/2012 00:00', periods=50, freq='D')
print("rng2 = pd.date_range('3/6/2012 00:00', periods=50, freq='D')")
print(rng2)
print("------------------------------")
ts2 = pd.Series(np.random.randn(len(rng2)), rng2)
print("ts2 = pd.Series(np.random.randn(len(rng2)), rng2)")
print(ts2)
print("------------------------------")
ts2_utc = ts.tz_localize('UTC')
print("ts2_utc = ts.tz_localize('UTC')")
print(ts2_utc)
print("------------------------------------------------------------------")
print("Converting to another time zone:")
print("------------------------------")
ts2_us = ts.tz_localize('US/Eastern')
print("ts2_utc = ts.tz_localize('US/Eastern')")
print(ts2_utc)
print("------------------------------------------------------------------")
print("Converting between time span representations:")
print("------------------------------")
rng3 = pd.date_range('1/1/2012', periods=10, freq='M')
print("rng3 = pd.date_range('1/1/2012', periods=10, freq='M')")
print(rng3)
print("------------------------------")
ts3 = pd.Series(np.random.randn(len(rng3)), index=rng3)
print("ts3 = pd.Series(np.random.randn(len(rng3)), index=rng3)")
print(ts3)
print("------------------------------")
ps3_period = ts3.to_period('M')
print("ps3_period = ts3.to_period('M')")
print(ps3_period)
print("------------------------------")
ps3_timestamp = ps3_period.to_timestamp('D', how='start')
print("ps3_timestamp = ps3_period.to_timestamp('D', how='start')")
print(ps3_timestamp)
print("------------------------------------------------------------------")
print("Converting between period and timestamp enables some convenient arithmetic functions to be used. ")
print("------------------------------")
#prng = pd.period_range('199001', '199212', freq='M')
prng = pd.period_range('1990Q1', '1992Q4', freq='Q-NOV')
print("prng = pd.period_range('1990Q1', '1992Q4', freq='Q-NOV')")
print(prng)
print("------------------------------")
tsp = pd.Series(np.random.rand(len(prng)), prng)
print("tsp = pd.Series(np.random.rand(len(prng)), prng)")
print(tsp)
print("------------------------------")
tsp.index = prng.asfreq(freq='M', how='end') + 1
print("tsp.index = prng.asfreq(freq='M', how='end') + 1")
print(tsp)
print("------------------------------")
tsp.index = (prng.asfreq('M','e') + 0).asfreq(freq='H', how='s') + 9
print("(tsp.index = prng.asfreq('M','e') + 1).asfreq(freq='H', how='s') + 9")
print(tsp)
| 41.704545
| 110
| 0.453134
| 403
| 3,670
| 4.029777
| 0.220844
| 0.049261
| 0.049261
| 0.078818
| 0.809729
| 0.769089
| 0.744458
| 0.718596
| 0.649631
| 0.649631
| 0
| 0.047436
| 0.149864
| 3,670
| 88
| 111
| 41.704545
| 0.473077
| 0.025341
| 0
| 0.369863
| 0
| 0.041096
| 0.523467
| 0.328534
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.027397
| 0
| 0.027397
| 0.753425
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
ee772a013f72429224fce5aedf55b7a5d3b4101f
| 319
|
py
|
Python
|
2021/examples-in-class-2021-09-24/if_block_example1.py
|
ati-ozgur/course-python
|
38237d120043c07230658b56dc3aeb01c3364933
|
[
"Apache-2.0"
] | 1
|
2021-02-04T16:59:11.000Z
|
2021-02-04T16:59:11.000Z
|
2021/examples-in-class-2021-09-24/if_block_example1.py
|
ati-ozgur/course-python
|
38237d120043c07230658b56dc3aeb01c3364933
|
[
"Apache-2.0"
] | null | null | null |
2021/examples-in-class-2021-09-24/if_block_example1.py
|
ati-ozgur/course-python
|
38237d120043c07230658b56dc3aeb01c3364933
|
[
"Apache-2.0"
] | 1
|
2019-10-30T14:37:48.000Z
|
2019-10-30T14:37:48.000Z
|
birth_year = 1999
if birth_year < 2000:
print("line 1")
print("line 2")
print("line 3")
else:
print("line 4")
print("line 5")
print("line 6")
if birth_year < 2000:
print("line 1")
print("line 2")
print("line 3")
else:
print("line 4")
print("line 5")
print("line 6")
| 11.814815
| 21
| 0.545455
| 49
| 319
| 3.489796
| 0.285714
| 0.631579
| 0.128655
| 0.175439
| 0.923977
| 0.923977
| 0.923977
| 0.923977
| 0.923977
| 0.923977
| 0
| 0.104803
| 0.282132
| 319
| 26
| 22
| 12.269231
| 0.641921
| 0
| 0
| 0.941176
| 0
| 0
| 0.227848
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.705882
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 10
|
c98aebff2ff333e344cb388137f2d83153223337
| 3,123
|
py
|
Python
|
tests/station/test_parameter_get.py
|
ismaelJimenez/mamba_client
|
2be6a14d61bbcd16db020f41146cca63c17ebf50
|
[
"MIT"
] | null | null | null |
tests/station/test_parameter_get.py
|
ismaelJimenez/mamba_client
|
2be6a14d61bbcd16db020f41146cca63c17ebf50
|
[
"MIT"
] | null | null | null |
tests/station/test_parameter_get.py
|
ismaelJimenez/mamba_client
|
2be6a14d61bbcd16db020f41146cca63c17ebf50
|
[
"MIT"
] | null | null | null |
from mamba_client.station import NetworkController, ParameterGet
from mamba_client.mock.mamba_server_mock import MambaServerMock
class TestClass:
def test_parameter_get_init(self):
MambaServerMock(port=34562)
network_controller = NetworkController(port=34562)
param_set = ParameterGet(network_controller=network_controller,
parameter_id='test_1')
assert param_set._network_controller == network_controller
assert param_set._parameter_id == 'test_1'
network_controller.close()
def test_parameter_set_call(self):
mock = MambaServerMock(port=34563)
network_controller = NetworkController(port=34563)
parameter_get = ParameterGet(network_controller=network_controller,
parameter_id='test_1')
assert mock._shared_memory['last_tc'] == 'tm_meta test_1'
assert mock._shared_memory[
'last_tm'] == '> OK test_1;str;str;test description;7;4'
reply = parameter_get()
assert mock._shared_memory['last_tc'] == 'tm test_1'
assert '> OK test_1;' in mock._shared_memory['last_tm']
assert ';1;1;0;1' in mock._shared_memory['last_tm']
assert reply == '1'
parameter_get = ParameterGet(network_controller=network_controller,
parameter_id='test_1',
parameter_type='int')
assert mock._shared_memory['last_tc'] == 'tm_meta test_1'
assert mock._shared_memory[
'last_tm'] == '> OK test_1;str;str;test description;7;4'
reply = parameter_get()
assert mock._shared_memory['last_tc'] == 'tm test_1'
assert '> OK test_1;' in mock._shared_memory['last_tm']
assert ';1;1;0;1' in mock._shared_memory['last_tm']
assert reply == 1
parameter_get = ParameterGet(network_controller=network_controller,
parameter_id='test_10',
parameter_type='hex')
assert mock._shared_memory['last_tc'] == 'tm_meta test_10'
assert mock._shared_memory[
'last_tm'] == '> OK test_10;str;str;test description;7;4'
reply = parameter_get()
assert mock._shared_memory['last_tc'] == 'tm test_10'
assert '> OK test_10;' in mock._shared_memory['last_tm']
assert ';10;10;0;1' in mock._shared_memory['last_tm']
assert reply == 16
parameter_get = ParameterGet(network_controller=network_controller,
parameter_id='test_10',
parameter_type='float')
assert mock._shared_memory['last_tc'] == 'tm_meta test_10'
assert mock._shared_memory[
'last_tm'] == '> OK test_10;str;str;test description;7;4'
reply = parameter_get()
assert mock._shared_memory['last_tc'] == 'tm test_10'
assert '> OK test_10;' in mock._shared_memory['last_tm']
assert ';10;10;0;1' in mock._shared_memory['last_tm']
assert reply == 10.0
| 39.0375
| 75
| 0.612232
| 373
| 3,123
| 4.769437
| 0.134048
| 0.112423
| 0.179876
| 0.224845
| 0.747611
| 0.747611
| 0.747611
| 0.747611
| 0.747611
| 0.747611
| 0
| 0.038909
| 0.284022
| 3,123
| 79
| 76
| 39.531646
| 0.756708
| 0
| 0
| 0.631579
| 0
| 0
| 0.170989
| 0
| 0
| 0
| 0
| 0
| 0.45614
| 1
| 0.035088
| false
| 0
| 0.035088
| 0
| 0.087719
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c9cf141b9daf676c4eb439e23d83893c23a2218c
| 57,543
|
py
|
Python
|
tccli/services/cme/cme_client.py
|
zyh911/tencentcloud-cli
|
dfc5dbd660d4c60d265921c4edc630091478fc41
|
[
"Apache-2.0"
] | null | null | null |
tccli/services/cme/cme_client.py
|
zyh911/tencentcloud-cli
|
dfc5dbd660d4c60d265921c4edc630091478fc41
|
[
"Apache-2.0"
] | null | null | null |
tccli/services/cme/cme_client.py
|
zyh911/tencentcloud-cli
|
dfc5dbd660d4c60d265921c4edc630091478fc41
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli.nice_command import NiceCommand
import tccli.error_msg as ErrorMsg
import tccli.help_template as HelpTemplate
from tccli import __version__
from tccli.utils import Utils
from tccli.configure import Configure
from tencentcloud.common import credential
from tencentcloud.common.profile.http_profile import HttpProfile
from tencentcloud.common.profile.client_profile import ClientProfile
from tencentcloud.cme.v20191029 import cme_client as cme_client_v20191029
from tencentcloud.cme.v20191029 import models as models_v20191029
from tccli.services.cme import v20191029
from tccli.services.cme.v20191029 import help as v20191029_help
def doDescribeTasks(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeTasks", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"ProjectId": argv.get("--ProjectId"),
"TaskTypeSet": Utils.try_to_json(argv, "--TaskTypeSet"),
"StatusSet": Utils.try_to_json(argv, "--StatusSet"),
"Offset": Utils.try_to_json(argv, "--Offset"),
"Limit": Utils.try_to_json(argv, "--Limit"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeTasksRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeTasks(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeTeams(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeTeams", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"TeamIds": Utils.try_to_json(argv, "--TeamIds"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeTeamsRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeTeams(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doExportVideoEditProject(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ExportVideoEditProject", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"ProjectId": argv.get("--ProjectId"),
"Definition": Utils.try_to_json(argv, "--Definition"),
"ExportDestination": argv.get("--ExportDestination"),
"CMEExportInfo": Utils.try_to_json(argv, "--CMEExportInfo"),
"VODExportInfo": Utils.try_to_json(argv, "--VODExportInfo"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ExportVideoEditProjectRequest()
model.from_json_string(json.dumps(param))
rsp = client.ExportVideoEditProject(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeSharedSpace(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeSharedSpace", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"Authorizee": Utils.try_to_json(argv, "--Authorizee"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeSharedSpaceRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeSharedSpace(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doGrantResourceAuthorization(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("GrantResourceAuthorization", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"Owner": Utils.try_to_json(argv, "--Owner"),
"Resources": Utils.try_to_json(argv, "--Resources"),
"Authorizees": Utils.try_to_json(argv, "--Authorizees"),
"Permissions": Utils.try_to_json(argv, "--Permissions"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.GrantResourceAuthorizationRequest()
model.from_json_string(json.dumps(param))
rsp = client.GrantResourceAuthorization(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doSearchMaterial(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("SearchMaterial", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"SearchScopes": Utils.try_to_json(argv, "--SearchScopes"),
"MaterialTypes": Utils.try_to_json(argv, "--MaterialTypes"),
"Text": argv.get("--Text"),
"Resolution": argv.get("--Resolution"),
"DurationRange": Utils.try_to_json(argv, "--DurationRange"),
"CreateTimeRange": Utils.try_to_json(argv, "--CreateTimeRange"),
"Tags": Utils.try_to_json(argv, "--Tags"),
"Sort": Utils.try_to_json(argv, "--Sort"),
"Offset": Utils.try_to_json(argv, "--Offset"),
"Limit": Utils.try_to_json(argv, "--Limit"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.SearchMaterialRequest()
model.from_json_string(json.dumps(param))
rsp = client.SearchMaterial(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doRevokeResourceAuthorization(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("RevokeResourceAuthorization", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"Owner": Utils.try_to_json(argv, "--Owner"),
"Resources": Utils.try_to_json(argv, "--Resources"),
"Authorizees": Utils.try_to_json(argv, "--Authorizees"),
"Permissions": Utils.try_to_json(argv, "--Permissions"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.RevokeResourceAuthorizationRequest()
model.from_json_string(json.dumps(param))
rsp = client.RevokeResourceAuthorization(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeJoinTeams(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeJoinTeams", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"MemberId": argv.get("--MemberId"),
"Offset": Utils.try_to_json(argv, "--Offset"),
"Limit": Utils.try_to_json(argv, "--Limit"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeJoinTeamsRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeJoinTeams(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeResourceAuthorization(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeResourceAuthorization", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"Owner": Utils.try_to_json(argv, "--Owner"),
"Resource": Utils.try_to_json(argv, "--Resource"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeResourceAuthorizationRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeResourceAuthorization(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doImportMaterial(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ImportMaterial", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"VodFileId": argv.get("--VodFileId"),
"Owner": Utils.try_to_json(argv, "--Owner"),
"Name": argv.get("--Name"),
"ClassPath": argv.get("--ClassPath"),
"Tags": Utils.try_to_json(argv, "--Tags"),
"PreProcessDefinition": Utils.try_to_json(argv, "--PreProcessDefinition"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ImportMaterialRequest()
model.from_json_string(json.dumps(param))
rsp = client.ImportMaterial(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeTaskDetail(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeTaskDetail", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"TaskId": argv.get("--TaskId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeTaskDetailRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeTaskDetail(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doModifyTeam(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ModifyTeam", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"TeamId": argv.get("--TeamId"),
"Name": argv.get("--Name"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ModifyTeamRequest()
model.from_json_string(json.dumps(param))
rsp = client.ModifyTeam(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteMaterial(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DeleteMaterial", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"MaterialId": argv.get("--MaterialId"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteMaterialRequest()
model.from_json_string(json.dumps(param))
rsp = client.DeleteMaterial(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doModifyMaterial(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ModifyMaterial", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"MaterialId": argv.get("--MaterialId"),
"Owner": Utils.try_to_json(argv, "--Owner"),
"Name": argv.get("--Name"),
"Tags": Utils.try_to_json(argv, "--Tags"),
"ClassPath": argv.get("--ClassPath"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ModifyMaterialRequest()
model.from_json_string(json.dumps(param))
rsp = client.ModifyMaterial(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteTeam(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DeleteTeam", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"TeamId": argv.get("--TeamId"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteTeamRequest()
model.from_json_string(json.dumps(param))
rsp = client.DeleteTeam(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doAddTeamMember(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("AddTeamMember", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"TeamId": argv.get("--TeamId"),
"TeamMembers": Utils.try_to_json(argv, "--TeamMembers"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.AddTeamMemberRequest()
model.from_json_string(json.dumps(param))
rsp = client.AddTeamMember(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doModifyTeamMember(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ModifyTeamMember", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"TeamId": argv.get("--TeamId"),
"MemberId": argv.get("--MemberId"),
"Remark": argv.get("--Remark"),
"Role": argv.get("--Role"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ModifyTeamMemberRequest()
model.from_json_string(json.dumps(param))
rsp = client.ModifyTeamMember(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteTeamMembers(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DeleteTeamMembers", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"TeamId": argv.get("--TeamId"),
"MemberIds": Utils.try_to_json(argv, "--MemberIds"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteTeamMembersRequest()
model.from_json_string(json.dumps(param))
rsp = client.DeleteTeamMembers(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteLoginStatus(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DeleteLoginStatus", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"UserIds": Utils.try_to_json(argv, "--UserIds"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteLoginStatusRequest()
model.from_json_string(json.dumps(param))
rsp = client.DeleteLoginStatus(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeProjects(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeProjects", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"ProjectIds": Utils.try_to_json(argv, "--ProjectIds"),
"AspectRatioSet": Utils.try_to_json(argv, "--AspectRatioSet"),
"CategorySet": Utils.try_to_json(argv, "--CategorySet"),
"Sort": Utils.try_to_json(argv, "--Sort"),
"Owner": Utils.try_to_json(argv, "--Owner"),
"Offset": Utils.try_to_json(argv, "--Offset"),
"Limit": Utils.try_to_json(argv, "--Limit"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeProjectsRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeProjects(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeLoginStatus(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeLoginStatus", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"UserIds": Utils.try_to_json(argv, "--UserIds"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeLoginStatusRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeLoginStatus(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeMaterials(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeMaterials", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"MaterialIds": Utils.try_to_json(argv, "--MaterialIds"),
"Sort": Utils.try_to_json(argv, "--Sort"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeMaterialsRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeMaterials(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeClass(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeClass", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"Owner": Utils.try_to_json(argv, "--Owner"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeClassRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeClass(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doCreateTeam(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("CreateTeam", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"Name": argv.get("--Name"),
"OwnerId": argv.get("--OwnerId"),
"OwnerRemark": argv.get("--OwnerRemark"),
"TeamId": argv.get("--TeamId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.CreateTeamRequest()
model.from_json_string(json.dumps(param))
rsp = client.CreateTeam(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doModifyProject(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ModifyProject", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"ProjectId": argv.get("--ProjectId"),
"Name": argv.get("--Name"),
"AspectRatio": argv.get("--AspectRatio"),
"Owner": Utils.try_to_json(argv, "--Owner"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ModifyProjectRequest()
model.from_json_string(json.dumps(param))
rsp = client.ModifyProject(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doCreateClass(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("CreateClass", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"Owner": Utils.try_to_json(argv, "--Owner"),
"ClassPath": argv.get("--ClassPath"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.CreateClassRequest()
model.from_json_string(json.dumps(param))
rsp = client.CreateClass(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doImportMediaToProject(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ImportMediaToProject", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"ProjectId": argv.get("--ProjectId"),
"VodFileId": argv.get("--VodFileId"),
"Name": argv.get("--Name"),
"PreProcessDefinition": Utils.try_to_json(argv, "--PreProcessDefinition"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ImportMediaToProjectRequest()
model.from_json_string(json.dumps(param))
rsp = client.ImportMediaToProject(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doListMedia(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ListMedia", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"ClassPath": argv.get("--ClassPath"),
"Owner": Utils.try_to_json(argv, "--Owner"),
"Offset": Utils.try_to_json(argv, "--Offset"),
"Limit": Utils.try_to_json(argv, "--Limit"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ListMediaRequest()
model.from_json_string(json.dumps(param))
rsp = client.ListMedia(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doCreateProject(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("CreateProject", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"Category": argv.get("--Category"),
"Name": argv.get("--Name"),
"AspectRatio": argv.get("--AspectRatio"),
"Owner": Utils.try_to_json(argv, "--Owner"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.CreateProjectRequest()
model.from_json_string(json.dumps(param))
rsp = client.CreateProject(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteClass(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DeleteClass", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"Owner": Utils.try_to_json(argv, "--Owner"),
"ClassPath": argv.get("--ClassPath"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteClassRequest()
model.from_json_string(json.dumps(param))
rsp = client.DeleteClass(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteProject(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DeleteProject", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"ProjectId": argv.get("--ProjectId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteProjectRequest()
model.from_json_string(json.dumps(param))
rsp = client.DeleteProject(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doFlattenListMedia(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("FlattenListMedia", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"ClassPath": argv.get("--ClassPath"),
"Owner": Utils.try_to_json(argv, "--Owner"),
"Offset": Utils.try_to_json(argv, "--Offset"),
"Limit": Utils.try_to_json(argv, "--Limit"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.FlattenListMediaRequest()
model.from_json_string(json.dumps(param))
rsp = client.FlattenListMedia(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeTeamMembers(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeTeamMembers", g_param[OptionsDefine.Version])
return
param = {
"Platform": argv.get("--Platform"),
"TeamId": argv.get("--TeamId"),
"MemberIds": Utils.try_to_json(argv, "--MemberIds"),
"Offset": Utils.try_to_json(argv, "--Offset"),
"Limit": Utils.try_to_json(argv, "--Limit"),
"Operator": argv.get("--Operator"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.CmeClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeTeamMembersRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeTeamMembers(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
CLIENT_MAP = {
"v20191029": cme_client_v20191029,
}
MODELS_MAP = {
"v20191029": models_v20191029,
}
ACTION_MAP = {
"DescribeTasks": doDescribeTasks,
"DescribeTeams": doDescribeTeams,
"ExportVideoEditProject": doExportVideoEditProject,
"DescribeSharedSpace": doDescribeSharedSpace,
"GrantResourceAuthorization": doGrantResourceAuthorization,
"SearchMaterial": doSearchMaterial,
"RevokeResourceAuthorization": doRevokeResourceAuthorization,
"DescribeJoinTeams": doDescribeJoinTeams,
"DescribeResourceAuthorization": doDescribeResourceAuthorization,
"ImportMaterial": doImportMaterial,
"DescribeTaskDetail": doDescribeTaskDetail,
"ModifyTeam": doModifyTeam,
"DeleteMaterial": doDeleteMaterial,
"ModifyMaterial": doModifyMaterial,
"DeleteTeam": doDeleteTeam,
"AddTeamMember": doAddTeamMember,
"ModifyTeamMember": doModifyTeamMember,
"DeleteTeamMembers": doDeleteTeamMembers,
"DeleteLoginStatus": doDeleteLoginStatus,
"DescribeProjects": doDescribeProjects,
"DescribeLoginStatus": doDescribeLoginStatus,
"DescribeMaterials": doDescribeMaterials,
"DescribeClass": doDescribeClass,
"CreateTeam": doCreateTeam,
"ModifyProject": doModifyProject,
"CreateClass": doCreateClass,
"ImportMediaToProject": doImportMediaToProject,
"ListMedia": doListMedia,
"CreateProject": doCreateProject,
"DeleteClass": doDeleteClass,
"DeleteProject": doDeleteProject,
"FlattenListMedia": doFlattenListMedia,
"DescribeTeamMembers": doDescribeTeamMembers,
}
AVAILABLE_VERSION_LIST = [
v20191029.version,
]
AVAILABLE_VERSIONS = {
'v' + v20191029.version.replace('-', ''): {"help": v20191029_help.INFO,"desc": v20191029_help.DESC},
}
def cme_action(argv, arglist):
if "help" in argv:
versions = sorted(AVAILABLE_VERSIONS.keys())
opt_v = "--" + OptionsDefine.Version
version = versions[-1]
if opt_v in argv:
version = 'v' + argv[opt_v].replace('-', '')
if version not in versions:
print("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST))
return
action_str = ""
docs = AVAILABLE_VERSIONS[version]["help"]
desc = AVAILABLE_VERSIONS[version]["desc"]
for action, info in docs.items():
action_str += " %s\n" % action
action_str += Utils.split_str(" ", info["desc"], 120)
helpstr = HelpTemplate.SERVICE % {"name": "cme", "desc": desc, "actions": action_str}
print(helpstr)
else:
print(ErrorMsg.FEW_ARG)
def version_merge():
help_merge = {}
for v in AVAILABLE_VERSIONS:
for action in AVAILABLE_VERSIONS[v]["help"]:
if action not in help_merge:
help_merge[action] = {}
help_merge[action]["cb"] = ACTION_MAP[action]
help_merge[action]["params"] = []
for param in AVAILABLE_VERSIONS[v]["help"][action]["params"]:
if param["name"] not in help_merge[action]["params"]:
help_merge[action]["params"].append(param["name"])
return help_merge
def register_arg(command):
cmd = NiceCommand("cme", cme_action)
command.reg_cmd(cmd)
cmd.reg_opt("help", "bool")
cmd.reg_opt(OptionsDefine.Version, "string")
help_merge = version_merge()
for actionName, action in help_merge.items():
c = NiceCommand(actionName, action["cb"])
cmd.reg_cmd(c)
c.reg_opt("help", "bool")
for param in action["params"]:
c.reg_opt("--" + param, "string")
for opt in OptionsDefine.ACTION_GLOBAL_OPT:
stropt = "--" + opt
c.reg_opt(stropt, "string")
def parse_global_arg(argv):
params = {}
for opt in OptionsDefine.ACTION_GLOBAL_OPT:
stropt = "--" + opt
if stropt in argv:
params[opt] = argv[stropt]
else:
params[opt] = None
if params[OptionsDefine.Version]:
params[OptionsDefine.Version] = "v" + params[OptionsDefine.Version].replace('-', '')
config_handle = Configure()
profile = config_handle.profile
if ("--" + OptionsDefine.Profile) in argv:
profile = argv[("--" + OptionsDefine.Profile)]
is_conexist, conf_path = config_handle._profile_existed(profile + "." + config_handle.configure)
is_creexist, cred_path = config_handle._profile_existed(profile + "." + config_handle.credential)
config = {}
cred = {}
if is_conexist:
config = config_handle._load_json_msg(conf_path)
if is_creexist:
cred = config_handle._load_json_msg(cred_path)
if os.environ.get(OptionsDefine.ENV_SECRET_ID):
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
if os.environ.get(OptionsDefine.ENV_SECRET_KEY):
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
if os.environ.get(OptionsDefine.ENV_REGION):
config[OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
for param in params.keys():
if param == OptionsDefine.Version:
continue
if params[param] is None:
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId]:
if param in cred:
params[param] = cred[param]
else:
raise Exception("%s is invalid" % param)
else:
if param in config:
params[param] = config[param]
elif param == OptionsDefine.Region:
raise Exception("%s is invalid" % OptionsDefine.Region)
try:
if params[OptionsDefine.Version] is None:
version = config["cme"][OptionsDefine.Version]
params[OptionsDefine.Version] = "v" + version.replace('-', '')
if params[OptionsDefine.Endpoint] is None:
params[OptionsDefine.Endpoint] = config["cme"][OptionsDefine.Endpoint]
except Exception as err:
raise Exception("config file:%s error, %s" % (conf_path, str(err)))
versions = sorted(AVAILABLE_VERSIONS.keys())
if params[OptionsDefine.Version] not in versions:
raise Exception("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST))
return params
def show_help(action, version):
docs = AVAILABLE_VERSIONS[version]["help"][action]
desc = AVAILABLE_VERSIONS[version]["desc"]
docstr = ""
for param in docs["params"]:
docstr += " %s\n" % ("--" + param["name"])
docstr += Utils.split_str(" ", param["desc"], 120)
helpmsg = HelpTemplate.ACTION % {"name": action, "service": "cme", "desc": desc, "params": docstr}
print(helpmsg)
def get_actions_info():
config = Configure()
new_version = max(AVAILABLE_VERSIONS.keys())
version = new_version
try:
profile = config._load_json_msg(os.path.join(config.cli_path, "default.configure"))
version = profile["cme"]["version"]
version = "v" + version.replace('-', '')
except Exception:
pass
if version not in AVAILABLE_VERSIONS.keys():
version = new_version
return AVAILABLE_VERSIONS[version]["help"]
| 40.21174
| 105
| 0.684566
| 6,387
| 57,543
| 5.972914
| 0.046814
| 0.062282
| 0.180791
| 0.067472
| 0.811083
| 0.790846
| 0.784555
| 0.773493
| 0.768408
| 0.729718
| 0
| 0.008384
| 0.187477
| 57,543
| 1,430
| 106
| 40.23986
| 0.80755
| 0.0061
| 0
| 0.690063
| 0
| 0
| 0.093427
| 0.004409
| 0
| 0
| 0
| 0
| 0
| 1
| 0.030757
| false
| 0.000789
| 0.021293
| 0
| 0.08123
| 0.003155
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
11ac3dd80a6d3d683757b0092824c2ad1efe26c3
| 5,005
|
py
|
Python
|
code/ch05/rbf_kernel_pca.py
|
takseki/python-machine-learning-book
|
d7c7a2e0845c6bab153d65a0b945e6d1cc5f61cb
|
[
"MIT"
] | 2
|
2019-05-21T09:37:21.000Z
|
2021-06-01T15:08:57.000Z
|
code/ch05/rbf_kernel_pca.py
|
takseki/python-machine-learning-book
|
d7c7a2e0845c6bab153d65a0b945e6d1cc5f61cb
|
[
"MIT"
] | null | null | null |
code/ch05/rbf_kernel_pca.py
|
takseki/python-machine-learning-book
|
d7c7a2e0845c6bab153d65a0b945e6d1cc5f61cb
|
[
"MIT"
] | null | null | null |
import numpy as np
from scipy.spatial.distance import pdist, squareform
from scipy import exp
from scipy.linalg import eigh
def rbf_kernel_pca(X, gamma, n_components):
"""
RBF kernel PCA implementation.
Parameters
------------
X: {NumPy ndarray}, shape = [n_samples, n_features]
gamma: float
Tuning parameter of the RBF kernel
n_components: int
Number of principal components to return
Returns
------------
X_pc: {NumPy ndarray}, shape = [n_samples, k_features]
Projected dataset
"""
# Calculate pairwise squared Euclidean distances
# in the MxN dimensional dataset.
sq_dists = pdist(X, 'sqeuclidean')
# Convert pairwise distances into a square matrix.
mat_sq_dists = squareform(sq_dists)
# Compute the symmetric kernel matrix.
K = exp(-gamma * mat_sq_dists)
# Center the kernel matrix.
N = K.shape[0]
one_n = np.ones((N, N)) / N
K = K - one_n.dot(K) - K.dot(one_n) + one_n.dot(K).dot(one_n)
# Obtaining eigenpairs from the centered kernel matrix
# numpy.eigh returns them in sorted order
eigvals, eigvecs = eigh(K)
print(np.sqrt(eigvals[-1]))
print(np.sqrt(eigvals[-2]))
# Collect the top k eigenvectors (projected samples)
#X_pc = np.column_stack((eigvecs[:, -i]
# for i in range(1, n_components + 1)))
# scikit-learnの結果と比べてみても, たぶんこれが正しい気がする
# ただ結局各成分にスケール因子が入るだけなので、
# 学習という意味ではどちらでも良いのかもしれない
X_pc = np.column_stack((np.sqrt(eigvals[-i]) * eigvecs[:, -i]
for i in range(1, n_components + 1)))
# PCA固有ベクトルvをデータサンプルに直すには X v とする必要がある
# ここで正規化された特異ベクトルの間の関係を使う。
# X v_i = sigma_i a_i (sigma_i = sqrt(lambda_i))
# よって sqrt(lambda_i) a_i で主成分方向に基底変換したデータサンプルになる。
return X_pc
##
# 本文の後で出てくるバージョン
# 計算は一緒で返すものが違うだけ
# 固有値と固有ベクトルを返す
#
def rbf_kernel_pca2(X, gamma, n_components):
"""
RBF kernel PCA implementation.
Parameters
------------
X: {NumPy ndarray}, shape = [n_samples, n_features]
gamma: float
Tuning parameter of the RBF kernel
n_components: int
Number of principal components to return
Returns
------------
X_pc: {NumPy ndarray}, shape = [n_samples, k_features]
Projected dataset
lambdas: list
Eigenvalues
"""
# Calculate pairwise squared Euclidean distances
# in the MxN dimensional dataset.
sq_dists = pdist(X, 'sqeuclidean')
# Convert pairwise distances into a square matrix.
mat_sq_dists = squareform(sq_dists)
# Compute the symmetric kernel matrix.
K = exp(-gamma * mat_sq_dists)
# Center the kernel matrix.
N = K.shape[0]
one_n = np.ones((N, N)) / N
K = K - one_n.dot(K) - K.dot(one_n) + one_n.dot(K).dot(one_n)
# Obtaining eigenpairs from the centered kernel matrix
# numpy.eigh returns them in sorted order
eigvals, eigvecs = eigh(K)
# Collect the top k eigenvectors (projected samples)
alphas = np.column_stack((eigvecs[:, -i]
for i in range(1, n_components + 1)))
# Collect the corresponding eigenvalues
lambdas = [eigvals[-i] for i in range(1, n_components + 1)]
return alphas, lambdas
import numpy as np
from scipy.spatial.distance import pdist, squareform
from scipy import exp
from scipy.linalg import eigh
##
# カーネルを線形にしてみた
# test_kpca.py で使う
#
def linear_kernel_pca(X, n_components):
"""
RBF kernel PCA implementation.
Parameters
------------
X: {NumPy ndarray}, shape = [n_samples, n_features]
gamma: float
Tuning parameter of the RBF kernel
n_components: int
Number of principal components to return
Returns
------------
X_pc: {NumPy ndarray}, shape = [n_samples, k_features]
Projected dataset
"""
# 線形カーネル関数は内積(x_i, x_j)とする
N = X.shape[0]
K = np.ones((N, N))
for i in range(N):
for j in range(N):
K[i, j] = np.dot(X[i, :], X[j, :])
print(K.shape)
# Center the kernel matrix.
N = K.shape[0]
one_n = np.ones((N, N)) / N
K = K - one_n.dot(K) - K.dot(one_n) + one_n.dot(K).dot(one_n)
# Obtaining eigenpairs from the centered kernel matrix
# numpy.eigh returns them in sorted order
eigvals, eigvecs = eigh(K)
print(np.sqrt(eigvals[-1]))
print(np.sqrt(eigvals[-2]))
# Collect the top k eigenvectors (projected samples)
#X_pc = np.column_stack((eigvecs[:, -i]
# for i in range(1, n_components + 1)))
# scikit-learnの結果と比べてみても, たぶんこれが正しい気がする
# ただ結局各成分にスケール因子が入るだけなので、
# 学習という意味ではどちらでも良いのかもしれない
X_pc = np.column_stack((np.sqrt(eigvals[-i]) * eigvecs[:, -i]
for i in range(1, n_components + 1)))
# PCA固有ベクトルvをデータサンプルに直すには X v とする必要がある
# ここで正規化された特異ベクトルの間の関係を使う。
# X v_i = sigma_i a_i (sigma_i = sqrt(lambda_i))
# よって sqrt(lambda_i) a_i で主成分方向に基底変換したデータサンプルになる。
return X_pc
| 27.054054
| 67
| 0.627972
| 670
| 5,005
| 4.559701
| 0.174627
| 0.01964
| 0.013748
| 0.025205
| 0.903764
| 0.903764
| 0.903764
| 0.890016
| 0.890016
| 0.881833
| 0
| 0.00567
| 0.25994
| 5,005
| 184
| 68
| 27.201087
| 0.819114
| 0.533067
| 0
| 0.755102
| 0
| 0
| 0.010486
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.061224
| false
| 0
| 0.163265
| 0
| 0.285714
| 0.102041
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
11b0ed7045397cf66313ae39cb9f138dac6a15d2
| 26,439
|
py
|
Python
|
trec2014/python/cuttsum/summarizer/filters.py
|
kedz/cuttsum
|
992c21192af03fd2ef863f5ab7d10752f75580fa
|
[
"Apache-2.0"
] | 6
|
2015-09-10T02:22:21.000Z
|
2021-10-01T16:36:46.000Z
|
trec2014/python/cuttsum/summarizer/filters.py
|
kedz/cuttsum
|
992c21192af03fd2ef863f5ab7d10752f75580fa
|
[
"Apache-2.0"
] | null | null | null |
trec2014/python/cuttsum/summarizer/filters.py
|
kedz/cuttsum
|
992c21192af03fd2ef863f5ab7d10752f75580fa
|
[
"Apache-2.0"
] | 2
|
2018-04-04T10:44:32.000Z
|
2021-10-01T16:37:26.000Z
|
from cuttsum.sentsim import SentenceLatentVectorsResource
from cuttsum.summarizer.ap import APSummarizer, APSalienceSummarizer
from cuttsum.summarizer.baseline import HACSummarizer
import os
import pandas as pd
import numpy as np
from datetime import datetime, timedelta
from sklearn.metrics.pairwise import cosine_similarity
from cuttsum.salience import SaliencePredictionAggregator
from cuttsum.data import get_resource_manager
from cuttsum.misc import passes_simple_filter
class RankedSalienceFilteredSummary(object):
def __init__(self):
self.dir_ = os.path.join(
os.getenv(u'TREC_DATA', u'.'),
u'ranked-salience-filtered-summaries')
if not os.path.exists(self.dir_):
os.makedirs(self.dir_)
def get_tsv_path(self, event, sal_cutoff, sim_cutoff):
return os.path.join(self.dir_,
"sal-ranked-{}-sal_{}-sim_{}.tsv".format(
event.fs_name(), sal_cutoff, sim_cutoff))
def get_dataframe(self, event, sal_cutoff, sim_cutoff):
tsv = self.get_tsv_path(event, sal_cutoff, sim_cutoff)
if not os.path.exists(tsv):
return None
else:
with open(tsv, u'r') as f:
df = pd.io.parsers.read_csv(
f, sep='\t', quoting=3)
df.columns = ['query id', 'system id', 'run id', 'stream id',
'sentence id', 'timestamp', 'conf', 'text']
return df
def make(self, event, prefix, feature_set, sal_cutoff, sim_cutoff):
tsv_path = self.get_tsv_path(event, sal_cutoff, sim_cutoff)
lvecs = SentenceLatentVectorsResource()
string_res = get_resource_manager(u'SentenceStringsResource')
spa = SaliencePredictionAggregator()
#cluster_df = hac.get_dataframe(event, dist_cutoff)
#for _, row in cluster_df.iterrows():
# print row['hour'], datetime.utcfromtimestamp(row['timestamp'])
epoch = datetime.utcfromtimestamp(0)
updates = []
Xcache = None
#timestamps = sorted(list(cluster_df['timestamp'].unique()))
hours = event.list_event_hours()
for hour in hours:
#hour = datetime.utcfromtimestamp(timestamp) - timedelta(hours=1)
hp1 = hour + timedelta(hours=1)
timestamp = str(int((hp1 - epoch).total_seconds()))
lvec_df = lvecs.get_dataframe(event, hour)
sal_df = spa.get_dataframe(event, hour, prefix, feature_set)
str_df = string_res.get_dataframe(event, hour)
if lvec_df is None or sal_df is None or str_df is None:
continue
str_df.drop_duplicates(['stream id', 'sentence id'], inplace=True)
lvec_df.drop_duplicates(['stream id', 'sentence id'], inplace=True)
sal_df.drop_duplicates(['stream id', 'sentence id'], inplace=True)
str_df.sort(['stream id', 'sentence id'], inplace=True)
str_df.reset_index(drop=True, inplace=True)
lvec_df.sort(['stream id', 'sentence id'], inplace=True)
lvec_df.reset_index(drop=True, inplace=True)
sal_df.sort(['stream id', 'sentence id'], inplace=True)
sal_df.reset_index(drop=True, inplace=True)
str_df = str_df.join(
str_df.groupby('stream id')['sentence id'].agg('count'),
on='stream id', rsuffix='_r').rename(
columns={"sentence id_r": "document count"})
good_sents = str_df.apply(
lambda x: passes_simple_filter(
x['streamcorpus'], x['document count']), axis=1)
#good_sents = good_sents.reset_index()
str_df = str_df[good_sents]
lvec_df = lvec_df[good_sents]
sal_df = sal_df[good_sents]
n_rows = len(sal_df)
for i in xrange(n_rows):
assert sal_df['stream id'].iloc[i] == \
lvec_df['stream id'].iloc[i]
assert sal_df['sentence id'].iloc[i] == \
lvec_df['sentence id'].iloc[i]
assert str_df['stream id'].iloc[i] == \
lvec_df['stream id'].iloc[i]
assert str_df['sentence id'].iloc[i] == \
lvec_df['sentence id'].iloc[i]
if n_rows == 0:
continue
Xsal = sal_df.as_matrix()[:,2:].astype(np.float64).mean(axis=1)
mu_sal = np.mean(Xsal)
sig_sal = np.std(Xsal)
Xsal_norm = (Xsal - mu_sal) / sig_sal
lvec_df = lvec_df[Xsal_norm > sal_cutoff]
str_df = str_df[Xsal_norm > sal_cutoff]
str_df = str_df.set_index(['stream id', 'sentence id'])
lvec_df['salience'] = Xsal_norm[Xsal_norm > sal_cutoff]
lvec_df.sort(['salience'], inplace=True, ascending=False)
if Xcache is None:
Xlvecs = lvec_df.as_matrix()[:, 2:-2].astype(np.float64)
K = cosine_similarity(Xlvecs)
K_ma = np.ma.array(K, mask=True)
good_indexes = []
for i, (_, row) in enumerate(lvec_df.iterrows()):
sim = K_ma[i,:].max(fill_value=0.0)
if not isinstance(sim, np.float64):
sim = 0
if sim < sim_cutoff:
up_str = str_df.loc[
row['stream id'],
row['sentence id']]['streamcorpus']
updates.append({
'query id': event.query_num,
'system id': 'cunlp',
'run id': 'sal-ranked-sal_{}-sim_{}'.format(
sal_cutoff, sim_cutoff),
'stream id': row['stream id'],
'sentence id': row['sentence id'],
'timestamp': timestamp,
'conf': row['salience'],
'string': up_str})
K_ma.mask[:,i] = False
good_indexes.append(i)
Xcache = Xlvecs[good_indexes].copy()
else:
xtmp = lvec_df.as_matrix()[:, 2:-2].astype(np.float64)
Xlvecs = np.vstack([Xcache, xtmp])
start_index = Xcache.shape[0]
K = cosine_similarity(Xlvecs)
K_ma = np.ma.array(K, mask=True)
K_ma.mask.T[np.arange(0, start_index)] = False
good_indexes = []
for i, (_, row) in enumerate(lvec_df.iterrows(), start_index):
#print i
sim = K_ma[i,:].max(fill_value=0.0)
#print sim
if sim < sim_cutoff:
up_str = str_df.loc[
row['stream id'],
row['sentence id']]['streamcorpus']
updates.append({
'query id': event.query_num,
'system id': 'cunlp',
'run id': 'sal-ranked-sal_{}-sim_{}'.format(
sal_cutoff, sim_cutoff),
'stream id': row['stream id'],
'sentence id': row['sentence id'],
'timestamp': timestamp,
'conf': row['salience'],
'string': up_str})
K_ma.mask[:,i] = False
good_indexes.append(i)
if len(good_indexes) > 0:
Xcache = np.vstack([Xcache, Xlvecs[good_indexes].copy()])
#Xcache = Xlvecs[good_indexes].copy()
if len(updates) == 0:
updates.append({
'query id': event.query_num,
'system id': 'cunlp',
'run id': 'sal-ranked-sal_{}-sim_{}'.format(
sal_cutoff, sim_cutoff),
'stream id': 1111,
'sentence id': 1,
'timestamp': timestamp,
'conf': 0,
'string': 'place holder'})
df = pd.DataFrame(updates,
columns=["query id", "system id", "run id",
"stream id", "sentence id", "timestamp",
"conf", "string"])
with open(tsv_path, u'w') as f:
df.to_csv(
f, sep='\t', index=False, index_label=False, header=False)
#str_df['salience'] = Xsal_norm
#sal_norm = (row['salience'] - sal_mean) / sal_std
#if sal_norm < center_threshold:
# continue
#salience = []
#for _, row in clusters.iterrows():
# sal_pred = sal_df.loc[
# (sal_df['stream id'] == row['stream id']) & \
# (sal_df['sentence id'] == row['sentence id'])].as_matrix()[:,2:].astype(np.float64).mean()
# salience.append(sal_pred)
#clusters['salience'] = salience
class APFilteredSummary(object):
def __init__(self):
self.dir_ = os.path.join(
os.getenv(u'TREC_DATA', u'.'), u'ap-filtered-summaries')
if not os.path.exists(self.dir_):
os.makedirs(self.dir_)
def get_tsv_path(self, event, sim_cutoff, prefix=None, feature_set=None):
return os.path.join(self.dir_,
"ap-{}-sim_{}.tsv".format(event.fs_name(), sim_cutoff))
def get_dataframe(self, event, sim_cutoff):
tsv = self.get_tsv_path(event, sim_cutoff)
if not os.path.exists(tsv):
return None
else:
with open(tsv, u'r') as f:
df = pd.io.parsers.read_csv(
f, sep='\t', quoting=3)
df.columns = ['query id', 'system id', 'run id', 'stream id',
'sentence id', 'timestamp', 'conf', 'text']
return df
def make(self, event, min_cluster_size=2, sim_threshold=.2264):
tsv_path = self.get_tsv_path(event, sim_threshold)
lvecs = SentenceLatentVectorsResource()
ap = APSummarizer()
cluster_df = ap.get_dataframe(event)
#for _, row in cluster_df.iterrows():
# print row['hour'], datetime.utcfromtimestamp(row['timestamp'])
updates = []
Xcache = None
timestamps = sorted(list(cluster_df['timestamp'].unique()))
for timestamp in timestamps:
hour = datetime.utcfromtimestamp(timestamp) - timedelta(hours=1)
lvec_df = lvecs.get_dataframe(event, hour)
lvec_df.drop_duplicates(['stream id', 'sentence id'], inplace=True)
clusters = cluster_df[cluster_df['timestamp'] == timestamp].copy()
clusters.sort(['stream id', 'sentence id'], inplace=True)
for _, row in clusters.iterrows():
if row['cluster size'] < min_cluster_size:
continue
vec = lvec_df.loc[
(lvec_df['stream id'] == row['stream id']) & \
(lvec_df['sentence id'] == row['sentence id'])].as_matrix()[:,2:].astype(np.float64)
if Xcache is None:
Xcache = vec
else:
if np.max(cosine_similarity(Xcache, vec)) >= sim_threshold:
continue
else:
Xcache = np.vstack((Xcache, vec))
updates.append({
'query id': event.query_id[5:],
'system id': 'cunlp',
'run id': 'ap-sim_{}'.format(sim_threshold),
'stream id': row['stream id'],
'sentence id': row['sentence id'],
'timestamp': timestamp,
'conf': 1.0,
'string': row['string']
})
df = pd.DataFrame(updates,
columns=["query id", "system id", "run id",
"stream id", "sentence id", "timestamp",
"conf", "string"])
with open(tsv_path, u'w') as f:
df.to_csv(
f, sep='\t', index=False, index_label=False, header=False)
#for timestamp, group in cluster_df.groupby(["timestamp"]):
# print timestamp
class APSalienceFilteredSummary(object):
def __init__(self):
self.dir_ = os.path.join(
os.getenv(u'TREC_DATA', u'.'), u'ap-sal-filtered-summaries')
if not os.path.exists(self.dir_):
os.makedirs(self.dir_)
def get_tsv_dir(self, prefix, feature_set):
return os.path.join(self.dir_, prefix + "." + feature_set.fs_name())
def get_tsv_path(self, event, prefix, feature_set, sal_cutoff, sim_cutoff):
tsv_dir = self.get_tsv_dir(prefix, feature_set)
return os.path.join(tsv_dir,
"ap-sal-{}-sal_{}-sim_{}.tsv".format(
event.fs_name(), sal_cutoff, sim_cutoff))
def get_dataframe(self, event, prefix, feature_set,
sal_cutoff, sim_cutoff):
tsv = self.get_tsv_path(
event, prefix, feature_set, sal_cutoff, sim_cutoff)
if not os.path.exists(tsv):
return None
else:
with open(tsv, u'r') as f:
df = pd.io.parsers.read_csv(
f, sep='\t', quoting=3,
)
df.columns = ['query id', 'system id', 'run id', 'stream id',
'sentence id', 'timestamp', 'conf', 'text']
return df
def make(self, event, prefix, feature_set,
min_cluster_size=2, sim_threshold=.2264, center_threshold=1.0):
tsv_path = self.get_tsv_path(event, prefix, feature_set,
center_threshold, sim_threshold)
lvecs = SentenceLatentVectorsResource()
spa = SaliencePredictionAggregator()
apsal = APSalienceSummarizer()
cluster_df = apsal.get_dataframe(event, prefix, feature_set)
#for _, row in cluster_df.iterrows():
# print row['hour'], datetime.utcfromtimestamp(row['timestamp'])
updates = []
Xcache = None
timestamps = sorted(list(cluster_df['timestamp'].unique()))
for timestamp in timestamps:
hour = datetime.utcfromtimestamp(timestamp) - timedelta(hours=1)
lvec_df = lvecs.get_dataframe(event, hour)
lvec_df.drop_duplicates(['stream id', 'sentence id'], inplace=True)
sal_df = spa.get_dataframe(event, hour, prefix, feature_set)
sal_df.drop_duplicates(['stream id', 'sentence id'], inplace=True)
clusters = cluster_df[cluster_df['timestamp'] == timestamp].copy()
clusters.sort(['stream id', 'sentence id'], inplace=True)
salience = []
for _, row in clusters.iterrows():
sal_pred = sal_df.loc[
(sal_df['stream id'] == row['stream id']) & \
(sal_df['sentence id'] == row['sentence id'])].as_matrix()[:,2:].astype(np.float64).mean()
salience.append(sal_pred)
clusters['salience'] = salience
clusters.sort(['salience'], ascending=False, inplace=True)
sal_mean = np.mean(salience)
sal_std = np.std(salience)
#print clusters
for _, row in clusters.iterrows():
if row['cluster size'] < min_cluster_size:
continue
vec = lvec_df.loc[
(lvec_df['stream id'] == row['stream id']) & \
(lvec_df['sentence id'] == row['sentence id'])].as_matrix()[:,2:].astype(np.float64)
sal_norm = (row['salience'] - sal_mean) / sal_std
if sal_norm < center_threshold:
continue
if Xcache is None:
Xcache = vec
else:
if np.max(cosine_similarity(Xcache, vec)) >= sim_threshold:
continue
else:
Xcache = np.vstack((Xcache, vec))
updates.append({
'query id': event.query_id[5:],
'system id': 'cunlp',
'run id': 'apsal-sal_{}-sim_{}'.format(
center_threshold, sim_threshold),
'stream id': row['stream id'],
'sentence id': row['sentence id'],
'timestamp': timestamp,
'conf': row['salience'],
'string': row['string']
})
df = pd.DataFrame(updates,
columns=["query id", "system id", "run id",
"stream id", "sentence id", "timestamp",
"conf", "string"])
with open(tsv_path, u'w') as f:
df.to_csv(
f, sep='\t', index=False, index_label=False, header=False)
class APSalTRankSalThreshFilteredSummary(object):
def __init__(self):
self.dir_ = os.path.join(
os.getenv(u'TREC_DATA', u'.'),
u'ap-sal-time-ranked-sal-thr-filtered-summaries')
if not os.path.exists(self.dir_):
os.makedirs(self.dir_)
def get_tsv_dir(self, prefix, feature_set):
return os.path.join(self.dir_, prefix + "." + feature_set.fs_name())
def get_tsv_path(self, event, prefix, feature_set, sal_cutoff, sim_cutoff):
tsv_dir = self.get_tsv_dir(prefix, feature_set)
return os.path.join(tsv_dir,
"ap-sal-time-ranked-sal-thr-{}-sal_{}-sim_{}.tsv".format(
event.fs_name(), sal_cutoff, sim_cutoff))
def get_dataframe(self, event, prefix, feature_set,
sal_cutoff, sim_cutoff):
tsv = self.get_tsv_path(
event, prefix, feature_set, sal_cutoff, sim_cutoff)
if not os.path.exists(tsv):
return None
else:
with open(tsv, u'r') as f:
df = pd.io.parsers.read_csv(
f, sep='\t', quoting=3,
)
df.columns = ['query id', 'system id', 'run id', 'stream id',
'sentence id', 'timestamp', 'conf', 'text']
return df
def make(self, event, prefix, feature_set,
min_cluster_size=2, sim_threshold=.2264, center_threshold=1.0):
tsv_path = self.get_tsv_path(event, prefix, feature_set,
center_threshold, sim_threshold)
lvecs = SentenceLatentVectorsResource()
spa = SaliencePredictionAggregator()
apsal = APSalienceSummarizer()
cluster_df = apsal.get_dataframe(event, prefix, feature_set)
#for _, row in cluster_df.iterrows():
# print row['hour'], datetime.utcfromtimestamp(row['timestamp'])
updates = []
Xcache = None
timestamps = sorted(list(cluster_df['timestamp'].unique()))
for timestamp in timestamps:
hour = datetime.utcfromtimestamp(timestamp) - timedelta(hours=1)
lvec_df = lvecs.get_dataframe(event, hour)
lvec_df.drop_duplicates(['stream id', 'sentence id'], inplace=True)
sal_df = spa.get_dataframe(event, hour, prefix, feature_set)
sal_df.drop_duplicates(['stream id', 'sentence id'], inplace=True)
clusters = cluster_df[cluster_df['timestamp'] == timestamp].copy()
clusters.sort(['stream id', 'sentence id'], inplace=True)
salience = []
for _, row in clusters.iterrows():
sal_pred = sal_df.loc[
(sal_df['stream id'] == row['stream id']) & \
(sal_df['sentence id'] == row['sentence id'])].as_matrix()[:,2:].astype(np.float64).mean()
salience.append(sal_pred)
clusters['salience'] = salience
#clusters.sort(['salie'], inplace=True)
sal_mean = np.mean(salience)
sal_std = np.std(salience)
#print clusters
for _, row in clusters.iterrows():
if row['cluster size'] < min_cluster_size:
continue
vec = lvec_df.loc[
(lvec_df['stream id'] == row['stream id']) & \
(lvec_df['sentence id'] == row['sentence id'])].as_matrix()[:,2:].astype(np.float64)
sal_norm = (row['salience'] - sal_mean) / sal_std
if sal_norm < center_threshold:
continue
if Xcache is None:
Xcache = vec
else:
if np.max(cosine_similarity(Xcache, vec)) >= sim_threshold:
continue
else:
Xcache = np.vstack((Xcache, vec))
updates.append({
'query id': event.query_id[5:],
'system id': 'cunlp',
'run id': 'apsal-time-ranked-sal_{}-sim_{}'.format(
center_threshold, sim_threshold),
'stream id': row['stream id'],
'sentence id': row['sentence id'],
'timestamp': timestamp,
'conf': row['salience'],
'string': row['string']
})
print "Writing", tsv_path, "For ", center_threshold, sim_threshold
df = pd.DataFrame(updates,
columns=["query id", "system id", "run id",
"stream id", "sentence id", "timestamp",
"conf", "string"])
with open(tsv_path, u'w') as f:
df.to_csv(
f, sep='\t', index=False, index_label=False, header=False)
class HACFilteredSummary(object):
def __init__(self):
self.dir_ = os.path.join(
os.getenv(u'TREC_DATA', u'.'), u'hac-filtered-summaries')
if not os.path.exists(self.dir_):
os.makedirs(self.dir_)
def get_tsv_path(self, event, dist_cutoff, sim_cutoff):
return os.path.join(self.dir_,
"hac-{}-dist_{}-sim_{}.tsv".format(
event.fs_name(), dist_cutoff, sim_cutoff))
def get_dataframe(self, event, dist_cutoff, sim_cutoff):
tsv = self.get_tsv_path(event, dist_cutoff, sim_cutoff)
if not os.path.exists(tsv):
return None
else:
with open(tsv, u'r') as f:
df = pd.io.parsers.read_csv(
f, sep='\t', quoting=3,
)
df.columns = ['query id', 'system id', 'run id', 'stream id',
'sentence id', 'timestamp', 'conf', 'text']
return df
def make(self, event, prefix, feature_set,
min_cluster_size=2, sim_threshold=.2264,
dist_cutoff=1.35):
tsv_path = self.get_tsv_path(event, dist_cutoff, sim_threshold)
lvecs = SentenceLatentVectorsResource()
#spa = SaliencePredictionAggregator()
hac = HACSummarizer()
cluster_df = hac.get_dataframe(event, dist_cutoff)
#for _, row in cluster_df.iterrows():
# print row['hour'], datetime.utcfromtimestamp(row['timestamp'])
updates = []
Xcache = None
timestamps = sorted(list(cluster_df['timestamp'].unique()))
for timestamp in timestamps:
hour = datetime.utcfromtimestamp(timestamp) - timedelta(hours=1)
lvec_df = lvecs.get_dataframe(event, hour)
lvec_df.drop_duplicates(['stream id', 'sentence id'], inplace=True)
# sal_df = spa.get_dataframe(event, hour, prefix, feature_set)
# sal_df.drop_duplicates(['stream id', 'sentence id'], inplace=True)
clusters = cluster_df[cluster_df['timestamp'] == timestamp].copy()
clusters.sort(['stream id', 'sentence id'], inplace=True)
# salience = []
# for _, row in clusters.iterrows():
# sal_pred = sal_df.loc[
# (sal_df['stream id'] == row['stream id']) & \
# (sal_df['sentence id'] == row['sentence id'])
# ].as_matrix()[:,2:].astype(np.float64).mean()
# salience.append(sal_pred)
# clusters['salience'] = salience
# clusters.sort(['salience'], ascending=False, inplace=True)
# sal_mean = np.mean(salience)
# sal_std = np.std(salience)
for _, row in clusters.iterrows():
if row['cluster size'] < min_cluster_size:
continue
vec = lvec_df.loc[
(lvec_df['stream id'] == row['stream id']) & \
(lvec_df['sentence id'] == row['sentence id'])
].as_matrix()[:,2:].astype(np.float64)
#sal_norm = (row['salience'] - sal_mean) / sal_std
#if sal_norm < center_threshold:
# continue
if Xcache is None:
Xcache = vec
else:
if np.max(cosine_similarity(Xcache, vec)) >= sim_threshold:
continue
else:
Xcache = np.vstack((Xcache, vec))
updates.append({
'query id': event.query_id[5:],
'system id': 'cunlp',
'run id': 'hac-dist_{}-sim_{}'.format(
dist_cutoff, sim_threshold),
'stream id': row['stream id'],
'sentence id': row['sentence id'],
'timestamp': timestamp,
'conf': 1.0,
'string': row['string']
})
df = pd.DataFrame(updates,
columns=["query id", "system id", "run id",
"stream id", "sentence id", "timestamp",
"conf", "string"])
with open(tsv_path, u'w') as f:
df.to_csv(
f, sep='\t', index=False, index_label=False, header=False)
| 43.342623
| 111
| 0.509966
| 2,867
| 26,439
| 4.513777
| 0.074991
| 0.040182
| 0.043273
| 0.048682
| 0.843443
| 0.837184
| 0.821652
| 0.79847
| 0.780697
| 0.753265
| 0
| 0.006193
| 0.36484
| 26,439
| 609
| 112
| 43.413793
| 0.764426
| 0.081281
| 0
| 0.754717
| 0
| 0
| 0.116094
| 0.016626
| 0
| 0
| 0
| 0
| 0.008386
| 0
| null | null | 0.004193
| 0.023061
| null | null | 0.002096
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
11f4700147bdc481df8b612aaa01955233a18733
| 6,988
|
py
|
Python
|
levels 2.0.py
|
el-jeu/game
|
b19b7384d9b84daaa25509fb7989352a5f5a7fcb
|
[
"Unlicense"
] | null | null | null |
levels 2.0.py
|
el-jeu/game
|
b19b7384d9b84daaa25509fb7989352a5f5a7fcb
|
[
"Unlicense"
] | null | null | null |
levels 2.0.py
|
el-jeu/game
|
b19b7384d9b84daaa25509fb7989352a5f5a7fcb
|
[
"Unlicense"
] | null | null | null |
levelsMap = [
#level 1-1
("g1","f1",[["ma1","ma3","ma5","b1","m1","e1","m1","b1","ma1","ma3","ma5"],
["ma2","ma4","ma6","b1","b1","b1","b1","b1","ma2","ma4","ma6"],
["b1","b1","b1","m1","b1","m1","b1","m1","b1","b1","b1"],
["m1","b1","b1","b1","b1","b1","b1","b1","b1","b1","m1"],
["b1","b1","m1","b1","ma1","ma3","ma5","b1","m1","b1","b1"],
["b1","b1","m1","b1","ma2","ma4","ma6","p1","m1","b1","b1"],
["m1","b1","b1","b1","b1","b1","b1","b1","b1","b1","m1"],
["b1","b1","b1","m1","b1","m1","b1","m1","b1","b1","b1"],
["ma1","ma3","ma5","b1","b1","b1","b1","b1","ma1","ma3","ma5"],
["ma2","ma4","ma6","b1","m1","e1","m1","b1","ma2","ma4","ma6"]]),
#level 1-2
("g1","f1",[["e1","b1","b1","b1","m1","b1","m1","b1","b1","b1","b1"],
["b1","m1","m1","b1","m1","b1","m1","b1","m1","m1","b1"],
["b1","m1","m1","b1","m1","b1","m1","b1","m1","m1","b1"],
["b1","b1","b1","b1","b1","b1","b1","b1","b1","b1","b1"],
["m1","m1","b1","m1","b1","m1","b1","m1","b1","m1","m1"],
["m1","m1","b1","m1","b1","m1","p1","m1","b1","m1","m1"],
["b1","b1","b1","b1","b1","b1","b1","b1","b1","b1","b1"],
["b1","m1","m1","b1","m1","b1","m1","b1","m1","m1","b1"],
["b1","m1","m1","b1","m1","b1","m1","b1","m1","m1","b1"],
["b1","b1","b1","b1","m1","b1","m1","b1","b1","b1","e1"]]),
#level 1-3
("g1","f1",[["b1","b1","b1","m1","b1","m1","b1","m1","b1","m1","b1"],
["b1","m1","e1","b1","b1","b1","b1","b1","b1","m1","b1"],
["b1","m1","b1","m1","b1","m1","b1","ma1","ma3","ma5","b1"],
["b1","ma1","ma3","ma5","b1","b1","b1","ma2","ma4","ma6","b1"],
["b1","ma2","ma4","ma6","b1","m1","p1","b1","b1","b1","b1"],
["b1","b1","b1","b1","b1","b1","m1","b1","m1","m1","b1"],
["b1","m1","e1","m1","b1","m1","b1","b1","b1","e1","m1"],
["b1","b1","m1","b1","m1","b1","b1","b1","b1","b1","b1"],
["b1","m1","m1","b1","m1","b1","ma1","ma3","ma5","b1","b1"],
["b1","m1","m1","b1","m1","b1","ma2","ma4","ma6","b1","m1"],
["b1","b1","b1","b1","b1","b1","b1","b1","b1","b1","b1"]]),
#level 2-1
("g1","f2",[["e1","b2","b2","b2","b2","b2","b2","b2","b2","b2","e1"],
["b2","b2","b2","b2","m2","b2","b2","b2","b2","b2","b2"],
["mb1","mb3","mb5","b2","b2","b2","m2","b2","mb1","mb3","mb5"],
["mb2","mb4","mb6","b2","b2","b2","b2","b2","mb2","mb4","mb6"],
["b2","m2","b2","b2","mb1","mb3","mb5","b2","b2","m2","m2"],
["b2","b2","b2","b2","mb2","mb4","mb6","b2","b2","b2","b2"],
["mb1","mb3","mb5","b2","b2","m2","b2","b2","mb1","mb3","mb5"],
["mb2","mb4","mb6","b2","b2","b2","b2","b2","mb2","mb4","mb6"],
["b2","b2","m2","b2","b2","b2","b2","m2","b2","b2","b2"],
["e1","b2","b2","b2","b2","p1","b2","b2","b2","b2","e1"]]),
#level 2-2
("g1","f2",[["e1","m2","m2","b2","m2","p1","m2","b2","m2","m2","b2"],
["b2","b2","b2","b2","b2","b2","b2","b2","b2","b2","b2"],
["m2","m2","b2","m2","m2","b2","m2","m2","e1","m2","m2"],
["b2","b2","b2","b2","b2","m2","b2","b2","b2","b2","b2"],
["b2","m2","m2","b2","m2","m2","b2","m2","m2","b2","m2"],
["e1","m2","b2","b2","b2","b2","b2","b2","b2","b2","b2"],
["m2","b2","m2","m2","b2","m2","m2","b2","m2","m2","b2"],
["b2","b2","b2","b2","b2","b2","m2","b2","b2","m2","b2"],
["m2","m2","b2","m2","m2","b2","m2","m2","b2","m2","m2"],
["e1","b2","b2","m2","b2","b2","e1","m2","b2","b2","e1"]]),
#level 2-3
("g1","f2",[["b2","b2","b2","b2","mb1","mb3","mb5","b2","b2","b2","b2"],
["b2","e1","b2","b2","mb2","mb4","mb6","b2","b2","e1","b2"],
["b2","b2","b2","b2","mb1","mb3","mb5","b2","b2","b2","b2"],
["b2","b2","b2","b2","mb2","mb4","mb6","b2","b2","b2","b2"],
["mb1","mb3","mb5","b2","b2","b2","b2","b2","mb1","mb3","mb5"],
["mb2","mb4","mb6","b2","b2","p1","b2","b2","mb2","mb4","mb6"],
["b2","b2","b2","b2","mb1","mb3","mb5","b2","b2","b2","b2"],
["b2","b2","b2","b2","mb2","mb4","mb6","b2","b2","b2","b2"],
["b2","e1","b2","b2","mb1","mb3","mb5","b2","b2","e1","b2"],
["b2","b2","b2","b2","mb2","mb4","mb6","b2","b2","b2","b2"]]),
#level 3-1
("g1","f33",[["v","v","v","v","m3","m3","m3","v","v","v","v"],
["v","v","m3","m3","e1","m5","b3","m3","m3","v","v"],
["v","m3","b3","m5","b3","b3","b3","b3","b3","m3","v"],
["v","m3","b3","b3","b3","m5","b3","m5","b3","m3","v"],
["m3","m5","b3","m5","b3","p1","b3","m5","b3","b3","m3"],
["m3","b3","b3","m5","b3","m5","b3","m5","m5","e1","m3"],
["v","m3","m5","b3","m5","b3","b3","b3","b3","m3","v"],
["v","m3","e1","b3","b3","m5","b3","m5","b3","m3","v"],
["v","v","m3","m3","b3","b3","b3","m3","m3","v","v"],
["v","v","v","v","m3","m3","m3","v","v","v","v"]]),
#level 3-2
("g1","f33",[["v","v","v","v","m3","m3","m3","v","v","v","v"],
["v","v","m3","m3","b3","e1","b3","m3","m3","v","v"],
["v","m3","b3","b3","b3","m5","b3","b3","b3","m3","v"],
["v","m3","b3","m5","m5","m5","m5","m5","b3","m3","v"],
["m3","e1","b3","b3","m5","p1","b3","b3","b3","e1","m3"],
["m3","e1","b3","b3","b3","b3","m5","b3","b3","e1","m3"],
["v","m3","b3","m5","m5","m5","m5","m5","b3","m3","v"],
["v","m3","b3","b3","b3","m5","b3","b3","b3","m3","v"],
["v","v","m3","m3","b3","e1","b3","m3","m3","v","v"],
["v","v","v","v","m3","m3","m3","v","v","v","v"]]),
#level 3-3
("g1","f33",[["v","v","v","v","m3","m3","m3","v","v","v","v"],
["v","v","m3","m3","m5","e1","b3","m3","m3","v","v"],
["v","m3","e1","b3","b3","m5","b3","b3","e1","m3","v"],
["v","m3","m5","m5","b3","m5","b3","m5","m5","m3","v"],
["m3","m5","b3","b3","b3","p1","b3","m5","b3","e1","m3"],
["m3","e1","b3","m5","b3","b3","b3","b3","b3","m5","m3"],
["v","m3","m5","m5","b3","m5","b3","m5","m5","m3","v"],
["v","m3","e1","b3","b3","m5","b3","b3","e1","m3","v"],
["v","v","m3","m3","b3","e1","m5","m3","m3","v","v"],
["v","v","v","v","m3","m3","m3","v","v","v","v"]])]
| 59.726496
| 82
| 0.304951
| 1,047
| 6,988
| 2.035339
| 0.029608
| 0.259033
| 0.26748
| 0.251525
| 0.941811
| 0.889254
| 0.836227
| 0.791178
| 0.653214
| 0.60535
| 0
| 0.173977
| 0.223526
| 6,988
| 117
| 83
| 59.726496
| 0.218762
| 0.011591
| 0
| 0.347826
| 0
| 0
| 0.303553
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.